English
Language : 

SH7727 Datasheet, PDF (539/1109 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Section 16 Realtime Clock (RTC)
16.2.12 Day of the Week Alarm Register (RWKAR)
The day of the week alarm register (RWKAR) is an 8-bit read/write alarm register that
corresponds to the BCD-coded day of week section counter RWKCNT of the RTC. When the
ENB bit is set to 1in RWKAR, the RWKAR value and RWKCNT value are compared. In this
way, the RSECAR, RMINAR, RHRAR, RWKAR, RDAYAR, and RMONAR registers are
checked, and when the ENB bit is set to 1, the alarm register and the corresponding counter are
compared. If all values in the specified alarm registers and the corresponding counters match, an
RTC alarm interrupt is generated.
The settable range is “0 to 6 in decimal + ENB bit”. If other values are set, correct operation is not
provided.
Only the ENB bit in RWKAR is initialized to 0 by a power-on reset, and the other bits are not
initialized. The RWKAR contents are retained after a manual reset or in standby mode.
Bit: 7
6
5
4
3
2
1
0
ENB
—
—
—
—
Day of week
Initial value: 0
0
0
0
0
—
—
—
R/W: R/W
R
R
R
R
R/W R/W R/W
Days of the week are coded as shown in table 16.4.
Table 16.4 Day-of-Week Codes (RWKAR)
Day of Week
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Code
0
1
2
3
4
5
6
16.2.13 Date Alarm Register (RDAYAR)
The date alarm register (RDAYAR) is an 8-bit read/write alarm register that corresponds to the
BCD-coded date section counter RDAYCNT of the RTC. When the ENB bit is set to 1in
RDAYAR, the RDAYAR value and RDAYCNT value are compared. In this way, the RSECAR,
Rev. 5.00 Dec 12, 2005 page 467 of 1034
REJ09B0254-0500