LPC43xx RTC: How to avoid reiniting after each Deep Power Down wakeup

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

LPC43xx RTC: How to avoid reiniting after each Deep Power Down wakeup

1,512 次查看
KhaVo
Contributor I

Hi all,

I have to sleep the LPC4337 MCU in a long time, so I use RTC wake up from Deep Power Pown mode, but there is an issue with RTC initializing:

As LPC43xx RTC Datasheet:

The RTC is configured as follows:
• See Table 874 for clocking and power control. The 1 kHz output of the 32 kHz oscillator must be enabled in the CREG0 register in the CREG block (see Table 97).

But this is clock is disabled after reset (wake-up):

pastedImage_5.png

This mean I have to enable these bits each bootup (wakeup) and reinitialize whole RTC?

So my questions is: Does RTC need to reinitialize fully after wakeup? If not, how to do that.

PS. I did try to omit the initializing sequence on wake up, but in that case RTC alarm doesn't work any more so it doesn't wake up after second sleep (RTC time increases normally). I may miss somethings.

Thanks,
Kha Vo

标签 (2)
标记 (1)
0 项奖励
回复
2 回复数

1,059 次查看
soledad
NXP Employee
NXP Employee

Hi,

Look into the attached source code which comes from an example which realized several power-down/wakeup scenarios.
It's programmed in a pretty simple way, please let me know if this helps.

Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,059 次查看
KhaVo
Contributor I

Hi Sol,

Thank you for your answer but it doesn't solve my problem!

I did make the RTC run and wake up from deep power-down, but the RTC need to re-init every time before enter sleep.

I need to keep RTC running (without renit) on next wake-up/sleep.

Do you have any idea for this?

Regards,

Kha Vo

0 项奖励
回复