Duncan
October 7, 2014, 3:57pm
1
I would like to use the RTC to set an alarm and then catch the event when it goes off.
I know how to set the time and the alarm. Also found instructions on how to use the Alarm to wake up from a power sleep.
Is it possible to catch the interrupt and process it as a normal interrupt?
I’ve looked everywhere I can think of for instructions or an example, without success.
Thanks
@ Duncan -
RTC doesn’t support this event. You can use Register class to check RTC Alarm register, poll and raise by yourself, but not exactly what you wanted.
Or you can create a class that checks the system clock (or RTC ) on a seperate thread and create your own event once it is greater than the alarm time.
Duncan
October 8, 2014, 2:31pm
4
@ Dat and hagster
Thanks for confirming it can’t be done directly.
I figure out something using the timer class.
Duncan