RTC Alarm Modes | Cypress Semiconductor
RTC Alarm Modes
I am working with the RTC component. I would like to schedule an alarm to trigger on time intervals relative to a set time. For example:
Start time = 10:20:32
Next alarm interval = Start time + 10 seconds = 10:20:42
"Next Next" alarm interval = Start time + 20 seconds = 10:21:02
I thought that this might be possible using the RTC's Alarm functionality. I wrote the following code to test it (with the other supporting code for the RTC of course):
Unfortunatley, this seems to not work. I may need to provide a full date and time to compare to. Does anyone have experience dealing with this sort of thing?