How to using LLWU to wake KL25Z from VLLS3 mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to using LLWU to wake KL25Z from VLLS3 mode

Jump to solution
1,720 Views
pengliang
Contributor III

Is there any tutorial about this?

If anyone knows, please refer to me

Thanks in advance

0 Kudos
1 Solution
544 Views
eduardo_viramon
NXP Employee
NXP Employee

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:

KL2 Product Summary Page

View solution in original post

0 Kudos
6 Replies
545 Views
eduardo_viramon
NXP Employee
NXP Employee

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:

KL2 Product Summary Page

0 Kudos
544 Views
pengliang
Contributor III

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

0 Kudos
544 Views
JimDon
Senior Contributor III

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.

.

0 Kudos
544 Views
pengliang
Contributor III

Thank you

I have CW 10.3, Does the file also work for CW?

0 Kudos
544 Views
JimDon
Senior Contributor III

This is the LLWU sample from the sample code. See KL25_SC.exe.

http://www.freescale.com/files/32bit/software/KL25_SC.exe

544 Views
pengliang
Contributor III

There are a few samples in the sample code, which one is the LLWU tutorial?

I went through out them, could not find it for LLWU

Thank you

0 Kudos