R01UH0092EJ0110 Rev.1.10
Page 374 of 807
Jul 31, 2012
M16C/64C Group
20. Real-Time Clock
20.2.4
Real-Time Clock Day Data Register (RTCWK)
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).
b7 b6 b5 b4
b1
b2
b3
Real-Time Clock Day Data Register
Symbol
RTCWK
Address
0343h
Bit Symbol
RW
Reset Value
XXXX X000b
b0
WK0
WK1
WK2
RW
RW
RW
Bit Name
—
(b6-b3)
—
No register bits. If necessary, set to 0. The read value is undefined.
Function
Day count bit
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
—
(b7)
Reserved bit
The read value is undefined.
RO
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...