Hi,
So I've run into a problem when using the hibernation module on the TM4C1294.
I have two modes, a hibernation mode which requests hibernation and a mode that just busy-waits on the RTC match (so I can use UART interrupts to change mode at any time).
How it works at the moment is that when I first power on I will set RTC match 1 second in the future. I will then do all that I need to do in about 300ms, I then hibernate (or wait). RTC Match then triggers a wake from hibernation and we set RTC match 1 second in the future again.
However, if we set a RTC Trim value of anything less than 0x7FFF the RTC match will never occur when we get to the 60th second (where the trim is made) and we will never wake because the match value is essentially skipped as that is what the trim is designed to do. I have thought of some workarounds but wanted advice here too:
workaround 1: Just read the RTC on boot and use another timer to interrupt and increment in software
workaround 2: Somehow get another interrupt source triggered on trim, I don't know if it is possible.
workaround 3: another method of trimming?
Thankyou!
Cameron