AnsweredAssumed Answered

low power mode for KL24z

Question asked by Mike Conover on Jan 8, 2015
Latest reply on Jan 9, 2015 by Mark Butcher

I am using a KL24Z processor and for some reason I can't get the processor below around 3.65 mA when I put it in low power mode. I am using MQX lite in a Code Warrior project with processor expert. I am using a JTAG cable to program it and when I measure the 3.65mA, that is with the JTAG cable unplugged.


I followed this guide exactly minus the board changes because I have a custom made board and don't need to cut traces and all that fun stuff. Tutorial: Using the FRDM-KL25Z as Low Power Board | MCU on Eclipse


In my project, I have 3 different clock configurations. Clock configuration 0 is used to generate the 48MHz clock for the USB. Clock configuration 1 is used for low power mode and clock config 2 is for normal operation when USB isn't used. For my current test, I am not using the USB clock configuration. So, I start out in clock configuration 2 and then switch to clock configuration 1 which is the exact same setup as in this guide MCU eclipse guide. One thing that is different, is that I have the system oscillator enabled in my project. When I execute Cpu_SetOperationMode(DOM_STOP, NULL, NULL);   what exactly happens to all of the clocks, peripherals and IO pins?? I have tried all the different low power modes, but get the same current draw.


     1. Will this automatically disable the system oscillator?

     2. Do all of the peripherals get disabled automatically? 

     3. Do I have to go through all the IO pins and set them to the correct state or will they all be driven low?


Let me know if you need screenshots of all the processor expert settings in order to help.


Thanks a lot,