MC9SO8 How to save RTC time bevor POR event occurse

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9SO8 How to save RTC time bevor POR event occurse

865 Views
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?

Tags (2)
0 Kudos
2 Replies

489 Views
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 Kudos

489 Views
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 Kudos