I want to use the RTC registers to save data after reset or power up. I read everything in the forum I could find including the "Non-volitile Variable storage" topic.
I need some guidance on how to store my variables and how to recall them on reset or powerup. In the "Non-volitile Variable storage" topic there are two Void functions; how would I call these to store and restore.
If I store my variable every time it changes to a RTC register such as:
LPC_RTC->GPREG0 = MOTOR_WATTHOURS
LPC_RTC->GPREG1 = FAN WATTHOURS
How would I recall the values from the register before the main() starts after a reset or powerup??
Thanks
Bill Lynn
I want to use the RTC registers to save data after reset or power up. I read everything in the forum I could find including the "Non-volitile Variable storage" topic. I need some guidance on how to store my variables and how to recall them on reset or powerup. In the "Non-volitile Variable storage" topic there are two Void functions; how would I call these to store and restore.
If I store my variable every time it changes to a RTC register such as:
LPC_RTC->GPREG0 = MOTOR_WATTHOURS
LPC_RTC->GPREG1 = FAN WATTHOURS
How would I recall the values from the register before the main() starts after a reset or powerup??
Thanks Bill Lynn