SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
The alarm interrupt can be generated when the time set into the Timer/Calendar (TC) ALARM registers (see Section 23.4.3.2) is exactly the same as in the TC registers. This interrupt is then generated, if the IT_ALARM bit in the interrupt register (RTC_INTERRUPTS_REG) is set. This interrupt is low-level sensitive. The RTC_STATUS_REG[6] ALARM bit indicates that alarm interrupt has occurred. This interrupt is disabled by setting the RTC_STATUS_REG[6] ALARM bit to 1.
To set up an alarm:
When the RTC_PMIC_REG[3:0] EXT_WAKEUP_EN and RTC_PMIC_REG[16] PWR_ENABLE_EN bits are set to 0x1, the PMIC_PWR_ENABLE is controlled by EXT_WAKEUP[3:0] ALARM and ALARM2.
The ALARM2 is set by writing the exact time and date to generate an alarm in RTC_ALARM2_SECONDS_REG, RTC_ALARM2_MINUTES_REG, RTC_ALARM2_HOURS_REG, RTC_ALARM2_DAYS_REG, RTC_ALARM2_MONTHS_REG, and RTC_ALARM2_YEARS_REG registers.