AnsweredAssumed Answered

How to use multiple clock configurations?

Question asked by Grzegorz Kaczmarek on May 5, 2015
Latest reply on May 6, 2015 by Mark Butcher



I am using KL05 and I'd like to set two clock configurations with PE in KDS2.0.

First one uses internal fast oscillator with core clock and bus = 4[MHz]. This is intended for normal run mode where fastest possible SPI communication (for this oscillator) is needed.

Second is for low power mode where core clock would be reduced to 1[MHz] (derived from fast internal oscillator) and bus clock to the lowest possible as it will not be used.

Low power mode I want to use to sleep the device but with precise timing (oscillator would be calibrated in run mode).

I'd like to exit low power mode on some timer interrupt, for example after 60[s].


I am a bit lost in clock configurations now...

Is it possible? In low power modes core clock is off. How about systick and TIMER_INT component that uses SYST_RVR as periodic interrupt source?


Second thing is how to use multiple clock configurations and how to switch between them in run time?


Thanks in advance for any hints.