Hi,
In my project we configured different frequencies as below for MK20FX512VMD12
- Y1 = 16 MHz crystal oscillator
- Load capacitance set by OSA0_CR registers = 10 pF
- Clock input is selected to EXTAL0 (16MHz)
- PLL pre-divider = 2, multiplier = 30
- OUTDIV1 = 0 OUTDIV2 = 1 OUTDIV3 = 2 OUTDIV4 = 5
Module Clocks
- PLL = 240 MHz (16 MHz / 2 * 30)
- MCGOUTCLK = PLL / 2 = 120 MHz
- Core Clock = MCGOUTCLK / OUTDIV1 (0) = 120 MHz
- Bus Clock = MCGOUTCLK / OUTDIV2 (1) = 60 MHz
- FlexBus Clock = MCGOUTCLK / OUTDIV3 (2) = 40 MHz
- SRAM Clock = MCGOUTCLK / OUTDIV4 (5) = 20 MHz
MCG_C1 0x20 (External reference clock is selected)
Enabled the sleep mode by setting the LPTMR TEN and TIE bits of LPTMR register
Low Leakage Stop Mode in SMC_PMCTRL register
SLEEPEEP bit in System Control Register
After WFI instruction it waits for interrupt, after this point what is the system/core clock frequency?
As it was configured to use external reference clock in low power mode can I consider 16MHz as the clock used as System/Core clock during this sleep mode?
But from the reference manual it is given as System/Core clock will become divide by 8, which is correct? does it uses external reference clock or it divides the frequency by 8 for computation?
Please see https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-after-coming-out-from-SleepMode... for more details.
Regards,
Venkata