There are a couple of app notes that should give you all the info you need:
http://cache.freescale.com/files/32bit/doc/app_note/AN4503.pdf?fsrch=1&sr=3
And
http://www.freescale.com/files/microcontrollers/doc/app_note/AN4470.pdf
Also notice that the KL25_SC code has a demo project that shows the KL25 going into all the low power modes, you can use that code as a reference for your own code:
There are a couple of app notes that should give you all the info you need:
http://cache.freescale.com/files/32bit/doc/app_note/AN4503.pdf?fsrch=1&sr=3
And
http://www.freescale.com/files/microcontrollers/doc/app_note/AN4470.pdf
Also notice that the KL25_SC code has a demo project that shows the KL25 going into all the low power modes, you can use that code as a reference for your own code:
I can enter each LLPS mode. However, I dont know how to generate interrupt / reset event to exit. There is no sample code provided to exit LLPS mode. I tried many ways but with no luck
where should I write the code. after asm"WFI"? or should be in the Cpu_OnLLSWakeUpINT(), I am using RTC to wake up the MCU from VLLS3 mode. the application notes say about using interrupt or reset to exit VLLS3, but it did not say how. I am quite new to freescale MCU. Please give more detailed hint,
Thank you very much
As long as you are using Keil or IAR, since they to to have forgotten to include the CW projects for bare metal.
I tried out the Keil Low Power demo one and it works fine, I suggest you download Keil MDK and try out the free version.
.