Hello,
I am using an MKL03Z32 and developing on it using Keil.
I need an example project to understand the LLWU wake-up of the device from VLLS3 state (for example) using an internal interrupt source (RTC for example).
I have seen a bare metal project but I would like to see an example that uses the SDK API to do this. This will make the integration of this functionality in my current project much easier.
Thanks,
Gaurav.
解決済! 解決策の投稿を見る。
There is a power manager demo in KSDK installation folder, which can wake up from VLSS3 by LPTMR.
SDK_2.2_FRDM-KL03Z\boards\frdmkl03z\demo_apps\power_manager
Please see the below picture, I select 'I' to enter VLLS3, next I input 'T' to select LPTMR as wake up source (I enabled LPO)
I hope it helps
Regards
Daniel
Hi Gaurav:
I would suggest you refer to the power manager demo under the KSDK installation folder
SDK_2.2_FRDM-KL03Z\boards\frdmkl03z\demo_apps\power_manager
This demo application demonstrates the use of power modes in the KSDK. and use source pin to wake up from VLLS3
Regards
Daniel
Hi Daniel,
Thanks for your response but that is not what I was looking for. I needed an example where the MCU wakes up from VLLS3 state because of an internal source like RTC or LPTMR.
On further reading the Reference Manual of the MKL03Z, I think this MCU does not have this capability. I mean this cannot be woken up from VLLS3 by an RTC alarm or an LPTMR interrupt. Could you please confirm if my understanding is correct?
=============quoted from Reference Manual ==============
Chapter 19
Low-Leakage Wakeup Unit (LLWU)
19.1 Chip-specific LLWU information
"This device has no LLWU module wakeup source and uses the external pin inputs only of LLWU_P4 and LLWU_P7 as wakeup source to the LLWU module."
=============quoted from Reference Manual ==============
Best regards,
Gaurav.
Hi Gaurav Banyal:
Let me try to explain.
Only two pins are used for pin wake up (P4 and P7). Their control ( enable, flag, filter) come from LLWU module. Modules like CMP, RTC and LPTIMER are still able to wake up VLLSx modes, but they don't have extra controls from LLWU (no LLWU_ME bits. The enable and flags should be located in module their own register bank).
Regards
Daniel
Hi Daniel,
Thanks for your explanation. I however still have a question. I read in the description of the LPTMR the following:
========quoted from RM========
32.5.7 LPTMR interrupt
The LPTMR interrupt is generated asynchronously to the system clock and can be used to
generate a wakeup from any low-power mode, including the low-leakage modes, provided the LPTMR is enabled as a wakeup source.
========quoted from RM========
I want to wake up the uC from VLLS3 mode because of an LPTMR interrupt (the LPTMR in my case is clocked by the LPO). How do I do this : "provided the LPTMR is enabled as a wakeup source."? The SDK example "power_mode_switch" does not help me on this.
Thanks for your help,
Gaurav.
There is a power manager demo in KSDK installation folder, which can wake up from VLSS3 by LPTMR.
SDK_2.2_FRDM-KL03Z\boards\frdmkl03z\demo_apps\power_manager
Please see the below picture, I select 'I' to enter VLLS3, next I input 'T' to select LPTMR as wake up source (I enabled LPO)
I hope it helps
Regards
Daniel