RTC problem for K60

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

RTC problem for K60

跳至解决方案
1,649 次查看
AaronsCook
Contributor III

Hi, All

I have a question for K60's RTC. The RTC has VBAT power-supply and OSC 32.768 as clock.

But how can I make sure that the RTC is Running When the chip power down and re-power?

Is it ture to read the RTC millisecond counter and to judge it not zero?

Thanks

wang

1 解答
1,176 次查看
eduardo_viramon
NXP Employee
NXP Employee

Wang,

In fact that is the case, once awake MCU can check the RTC counter register to detect change to the counter. Read the reference manual in detail to understand the cases where the counter may be read as zero like counter overflow or invalid time.

Regards,

Eduardo

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,177 次查看
eduardo_viramon
NXP Employee
NXP Employee

Wang,

In fact that is the case, once awake MCU can check the RTC counter register to detect change to the counter. Read the reference manual in detail to understand the cases where the counter may be read as zero like counter overflow or invalid time.

Regards,

Eduardo

0 项奖励
回复
1,176 次查看
AaronsCook
Contributor III

Hi, Eduardo

Thank you for your help~

Regards,

Wang