LPTMR0 Clocked from ERCLK32K in LLS mode of MK60

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPTMR0 Clocked from ERCLK32K in LLS mode of MK60

跳至解决方案
882 次查看
rajkumar_yerraj
Contributor II

Hi,

I am configuring MK60 controller in LLS mode with wake up interrupt from LPTMR0.

SMC_PMCTRL |= SMC_PMCTRL_LPWUI_MASK;

LPTMR0 is sourced from RTC_Oscillator (source to ERCLK32K). 

SIM_SOPT1 |= (SIM_SOPT1_OSC32KSEL_MASK); /* RTC oscillator drives 32 kHz clock for various peripherals */

 LPTMR0 is working fine in Normal Run mode but when it enters the LLS mode, LPTMR0 stopped. But according to 

Power Management for Kinetis MCUs document, LPTimer should work.

pastedImage_1.png

Could you tell me, if i am missing anything in configuration .

Thank you.

-Rajkumar

标记 (1)
0 项奖励
1 解答
748 次查看
nxf54945
NXP Employee
NXP Employee

Hello Gangadhar rao,

I hope you are doing well. 

When configuring your MCU to go into LLS mode, you need to select which signals will wakeup the system from the Low Leakage Stop (See section 3.3.4.1 “Wake-up Sources” on the reference manual).

This configuration is set on the Low Leakage Wakeup Unit (chapter 16 of the reference manual).  

I found this document which might help you set your application: http://cache.freescale.com/files/32bit/doc/app_note/AN4503.pdf  

Also, in the SDK for the TWR-K60D, in the demo apps folder, you will find the power_manager example. There, you can select the configuration to wake up the MCU using the LPTMR. You can download the SDK here: https://mcuxpresso.nxp.com/en/welcome  

 

I hope this information helps.  

  

Best regards, 

Javier 

在原帖中查看解决方案

2 回复数
748 次查看
rajkumar_yerraj
Contributor II

Hi,

Thanks for the info.

My issue is solved.

-Rajkumar

0 项奖励
749 次查看
nxf54945
NXP Employee
NXP Employee

Hello Gangadhar rao,

I hope you are doing well. 

When configuring your MCU to go into LLS mode, you need to select which signals will wakeup the system from the Low Leakage Stop (See section 3.3.4.1 “Wake-up Sources” on the reference manual).

This configuration is set on the Low Leakage Wakeup Unit (chapter 16 of the reference manual).  

I found this document which might help you set your application: http://cache.freescale.com/files/32bit/doc/app_note/AN4503.pdf  

Also, in the SDK for the TWR-K60D, in the demo apps folder, you will find the power_manager example. There, you can select the configuration to wake up the MCU using the LPTMR. You can download the SDK here: https://mcuxpresso.nxp.com/en/welcome  

 

I hope this information helps.  

  

Best regards, 

Javier