Rev. 5.00, 09/03, page 417 of 760
13.2.12 Day of Week Alarm Register (RWKAR)
The day of week alarm register (RWKAR) is an 8-bit readable/writable register, and an alarm
register corresponding to the BCD-coded day of week section counter RWKCNT of the RTC.
When the ENB bit is set to 1, a comparison with the RWKCNT value is performed. From among
the RSECAR/RMINAR/RHRAR/RWKAR/RDAYAR/RMONAR registers, the counter and alarm
register comparison is performed only on those with ENB bits set to 1, and if each of those
coincide, an RTC alarm interrupt is generated.
The range that can be set is 0–6 (decimal) + ENB bit. Errant operation will result if any other
value is set.
The ENB bit in RWKAR is initialized by a power-on reset. The remaining RWKAR fields are not
initialized and retain their contents by a manual reset, or in standby mode.
Bit:76543210
ENB———— Day of week
Initial value:00000———
R/W:R/WRRRRR/WR/WR/W
Days of the week are coded as shown in table 13.4.
Table 13.4 Day-of-Week Codes (RWKAR)
Day of Week Code
Sunday 0
Monday 1
Tuesday 2
Wednesday 3
Thursday 4
Friday 5
Saturday 6