MC9SO8 How to save RTC time bevor POR event occurse

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

MC9SO8 How to save RTC time bevor POR event occurse

1,575 次查看
joachimsasse
Contributor I

is there a method to save current time and date before a POR like reset pin, reset date and time to initial values?

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

1,199 次查看
joachimsasse
Contributor I

I use RESET Pin and PE. I watched that after RESET the initialization sequence copy the start time, hard coded from PE, to the variables holding time and the current time is lost. 

Is there a methode to save and copy the current time over PE sequence? 

 

0 项奖励
回复

1,199 次查看
tonyp
Senior Contributor II

Reset pin and power-on reset are two different cases. Which one do you really mean?

Power-on reset without some battery backup is not really possible. Unless you don't care for the date time staying frozen at the time of power down.


Reset pin: Just make sure you don't clear the variables holding the date time during initialization. Possibly add some CRC to verify correctness. Again, the date time will not remain too accurate over repeated resets out very long reset durations.

0 项奖励
回复