My question is about selecting the FDIV value for FLASH.
I am using the FEE(FLL Engaged External) Mode.
External Osc = 16MHz
RDIV = 512
Input to the FLL = 16MHz / 512 = 31250
FLL Output = 31250 * 1024 = 32MHz
but I want a 40MHz core clock, So I set BUSDIV bit before changing ICS_C2[BDIV]=0x000. As given in the reference manual.
After doing this, we get Core clock = 40Mhz and Bus/FLASH clock = 20MHz.
Can we use FDIV = 0x13 value? Because in the reference manual, there is one NOTE which tells not to use maximum value. Which value we are considering too High = 0x13 or FDIV[5:0] 2^6 = 64?
So is it safe to use FLASH for 20MHz?
Hi Sourdev,
If you are using FRDM-KEAZ64Q64(S9KEAZ64AMLH), please note that you should read KEA128RM and S9KEA128P80M48SF0.
Notice: In FEE mode, FLL output frequency = OSC/RDIV *1280.
For that NOTE, configure FTMRE_FCLKDIV[FDIV] between fNVMOP.
You can set Core clock = 40Mhz and Bus/FLASH clock = 20MHz.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
If you have to use 16MHz crystal as clock source with FEE mode, then the frequency of the Core clock will be 32MHz, and the frequency of the Bus\Flash clock will be 16MHz.
For 40MHz Core clock and 20MHz Bus\Flash clock, you may need to use 10MHz crystal with FEE.