17.4.6 Alarm and Compare Registers

These registers may be written when the RTC is running, but the Alarm must be disabled; the control register bit 2 reads as a '0'.

Table 17-10. Alarm and Compare
Address OffsetRegister NameBit 
NumbersNameR/WReset ValueDescription
0x0CAlarm[31:0]Alarm LowerR/W0Sets the alarm (wake-up) time on write and returns the alarm time on read.
0x10[31:0]Alarm UpperR/W0Sets the alarm (wake-up) time on write and returns the alarm time on read.
0x14Compare[31:0]Compare LowerR/W0Sets the compare bits on the alarm time on write and returns the compare value on read.

0: Bit is ignored

1: Bit is compared

0x18[31:0]Compare UpperR/W0Sets the compare bits on the alarm time on write and returns the compare value on read.

0: Bit is ignored

1: Bit is compared

See Table 17-5 for register bit allocation.

The Alarm setting must be set such that the ALARM*PRESCALER is greater than the 8 RTC clock cycles, assuming that the CPU writes to the control register to clear a wakeup condition within two RTC clock periods. As the prescaler value should be set to achieve a 1 Hz pulse and the slowest RTCCLK source is 32 KHz, this requirement is always true.