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,513件の閲覧回数
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,060件の閲覧回数
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,060件の閲覧回数
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 件の賞賛
返信