M16C/5L Group, M16C/56 Group
20.2.4
Real-Time Clock Day Data Register (RTCWK)
Real-Time Clock Day Data Register
b7 b6 b5 b4
b3
b2
b1
WK2 to WK0 (Day count bit) (b2-b0)
A week is counted by counting from 000b (Day 1) to 110b (Day 7) repeatedly. Do not set these bits to
111b.
When the digit increments from the RTCHR register, 1 is added.
These bits become 000b at compare match in compare mode 2 and compare mode 3.
Write to bits WK2 to WK0 in the RTCWK register when bits TSTART and TCSTF in the RTCCR1
register are both 0 (count stopped). Read these bits when the BSY bit in the RTCSEC register is 0 (not
while data is updated).
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
RTCWK
Bit Symbol
Bit Name
WK0
WK1
Day count bit
WK2
—
No register bits. If necessary, set to 0. The read value is undefined.
(b6-b3)
—
Reserved bit
(b7)
Address
0343h
Function
b2 b1 b0
0
0
0 : Day 1
0
0
1 : Day 2
0
1
0 : Day 3
0
1
1 : Day 4
1
0
0 : Day 5
1
0
1 : Day 6
1
1
0 : Day 7
1
1
1 : Do not set
The read value is undefined.
20. Real-Time Clock
Reset Value
XXXX X000b
RW
RW
RW
RW
—
RO
Page 410 of 803