Datasheet
Section 17 Timer RE
REJ09B0465-0300 Rev. 3.00 Page 611 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
17.2.4 Timer RE Day-of-Week Data Register (TREWK)
Address:
Bit:
Value after reset:
b7
BSY
⎯
b6
⎯
0
b5
⎯
0
b4
⎯
0
b3
⎯
0
b2
⎯
b1
WK[2:0]
⎯
b0
⎯
H'FFFFAB
Bit Symbol Bit Name Description R/W
7 BSY Timer RE busy This bit is set to 1 when the timer RE is updating
(calculating) the values of second, minute, hour, and day-
of-week data registers. When this bit is 0, the values of
second, minute, hour, and day-of-week data registers
must be adopted.
R
6 to 3 ⎯ Reserved These bits are read as 0. The write value should be 0. ⎯
2 to 0 WK[2:0] Day-of-week
counting
000: Sunday
001: Monday
010: Tuesday
011: Wednesday
100: Thursday
101: Friday
110: Saturday
111: Setting prohibited
R/W
TREWK is used in realtime clock mode and counts the BCD-coded day-of-week value on the
carry generated once per day by TREHR. Bits WK[2:0] indicate the day of the week with a binary
code, ranging from decimal 0 to 6. This register is not used in output-compare mode.