SDK example for Wake-up using RTC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SDK example for Wake-up using RTC

ソリューションへジャンプ
1,759件の閲覧回数
gauravbanyal
Contributor IV

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.

0 件の賞賛
返信
1 解決策
1,529件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Gaurav Banyal

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)

pastedImage_1.png

I hope it helps

Regards

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,529件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

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

pastedImage_2.png

Regards

Daniel

0 件の賞賛
返信
1,529件の閲覧回数
gauravbanyal
Contributor IV

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.

0 件の賞賛
返信
1,529件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

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

1,529件の閲覧回数
gauravbanyal
Contributor IV

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.

0 件の賞賛
返信
1,530件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Gaurav Banyal

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)

pastedImage_1.png

I hope it helps

Regards

Daniel

0 件の賞賛
返信