Hi there,
I am testing with KL25Z board about the LLS mode.
and have a question about wake-up the core from Low power modes.
The document <<Using Low Power modes on Kinetis family>>(AN4470) explains that from LLS to Run mode, the trigger condition is "
Wakeup from enabled LLWU pin or module source or Reset pin" at table 6. How to enter LLS mode.
But in the demo chapter, Low power exit modes:
External pin SW2 has been enabled to wake up via the LLWU from any LLS and VLLSx mode, all wakeup
interrupts from these modes must go through LLWU_ISR.
Is there a conflict about these description of exiting the LLS mode?
"Enable LLWU pin" is not equal to "enable LLWU interrupt", such as:
Or is there anything I misunderstand about LLWU?
Thanks,
Henry Xin
Hi Marek, Alice,
Thanks your reply.
I have read the more detailed information about LLWU in the datasheet and <<Power Management for Kinetis MCUs When and how to use Kinetis low-power modes>> document.
I got a summary(Wake-up condition, and exiting action) as following. Can you review them whether they are correct?
Thanks,
Henry Xin
Hello,
I have checked your wake-up conditions and actions and I have only following comments:
case #3 - the GPIO interrupt handler may not be invoked when LLWU wake-up the CPU. The GPIO is in static mode in the LLS. In addition, the GPIO (PORT module) interrupt condition can be set differently than LLWU condition for the same pin. See also the description of the LLS mode:
case #4: The LLWU interrupt will be called when the wakeup interrupt is detected. It is the same case as number 3.
Best Regards,
Marek Neuzil
Hello Henry ,
"Enable LLWU pin" is not equal to "enable LLWU interrupt" -- yes .
For example , we use the pin to wekeup , when enter the pin , it will enter the LLWU interrupt, then it can wake up the mcu.
you can also refer to :http://cache.freescale.com/files/32bit/doc/app_note/AN4503.pdf?fsrch=1&sr=1 - >
14 LLWU pin and module Wakeup
Hope it helps
Alice
Hello,
I am not sure what is not clear about exit of the LLS mode by using LLWU but I recommend to read the reference manual for the KL25Z derivative - Chapter 15 Low-Leakage Wakeup Unit (LLWU). There is detailed description how the LLWU works on KL25Z.
See for example the block diagram and the LLWU features description:
The LLWU module features include:
• Support for up to 16 external input pins and up to 8 internal modules with individual
enable bits
• Input sources may be external pins or from internal peripherals capable of running in
LLS or VLLS. See the chip configuration information for wakeup input sources for
this device.
• External pin wakeup inputs, each of which is programmable as falling-edge, risingedge,
or any change
• Wakeup inputs that are activated if enabled after MCU enters a low-leakage power
mode
• Optional digital filters provided to qualify an external pin detect. When entering
VLLS0, the filters are disabled and bypassed.
Best Regards,
Marek Neuzil