Hello.
I'm having some difficulty working with the RTC. I'm attempting to manipulate the RTC so that while the main application is active it increases a seconds variable every one second RTCMOD = 32-1. This way I can keep track of time for my sensor reads since power up. This is simple and I have been able to accomplish this aspect.
However, there will be times that I would like to be able to set the device to LPM3.5, utilizing the RTC, but I would need the device to sleep for say a week. One design is to keep the RTC running at 1hz, however this eats up too much energy from the power source. I want the device to sleep for 1 week, so I thought chance RTCMOD to 604800 * (32-1). Which will wake the device up in one week.
I figured i would be able to switch back to 1hz once I get out of LPM3.5, but it doesn't want to seem to do that. More importantly, I image there is a way better way of managing this.
Is there any insight as to a recommendation on how to accomplish this?
Michael