SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
The timer interrupt can be generated periodically: every second, every minute, every hour, or every day (see RTC_INTERRUPTS_REG[1:0] for a description of how to set this up). The IT_TIMER bit of RTC_INTERRUPTS_REG enables this interrupt. The timer interrupt is active-low.
The RTC_STATUS_REG bits are only updated at each new interrupt and occur according to Table 23-5. For example, bit 2 (SEC) is set every time one second has passed. Bit 2 is also set when 1 minute has passed, because the completion of 1 minute also marks the completion of 1 second (from 59 seconds to 60 seconds). The same holds true for hours and days: each of them also corresponds to the passing of a second.
Conversely, bit 5 (DAY) is always set when a day has passed. It might also be set when an hour, minute, or second has passed. However, this only occurs when the elapsed hour, minute, or second corresponds to the start of a new day.
STATUS_REG Bit | One Day Has Passed | One Hour Has Passed | One Minute Has Passed | One Second Has Passed |
---|---|---|---|---|
[5] (DAY) | 1 | 0/1(1) | 0/1(1) | 0/1(1) |
[4] (HOUR) | 1 | 1 | 0/1(1) | 0/1(1) |
[3] (MIN) | 1 | 1 | 1 | 0/1(1) |
[2] (SEC) | 1 | 1 | 1 | 1 |