R01UH0092EJ0110 Rev.1.10
Page 373 of 807
Jul 31, 2012
M16C/64C Group
20. Real-Time Clock
20.2.3
Real-Time Clock Hour Data Register (RTCHR)
HR03 to HR00 (First digit of hour count bit) (b3-b0)
HR11 and HR10 (Second digit of hour count bit) (b5-b4)
When the H12H24 bit in the RTCCR1 register is 0 (12-hour mode), set a value between 00 and 11 by
BCD code. When the H12H24 bit in the RTCCR1 register is 1 (24-hour mode), set a value between 00
and 23 by the BCD code.
When the digit increments from the RTCMIN register, 1 is added.
These bits become 00 at compare match in compare mode 2 and compare mode 3.
Write to bits HR11 to HR10 and HR03 to HR00 in the RTCHR 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 Hour Data Register
Symbol
RTCHR
Address
0342h
Bit Symbol
RW
Reset Value
XX00 0000b
b0
HR00
HR01
HR02
HR03
RW
RW
RW
RW
Bit Name
First digit of hour count bit
Function
Count 0 to 9 every hour.
When the digit increments, 1
is added to the 2nd digit of
hour.
Setting
Range
0 to 9
—
(b6)
—
No register bit. If necessary, set to 0. The read value is undefined.
HR10
HR11
RW
RW
Second digit of hour count bit
Count 0 to 1 when the
H12H24 bit is set to 0 (12-
hour mode).
Count 0 to 2 when the
H12H24 bit is set to
1 (24-hour mode).
0 to 2
—
(b7)
Reserved bit
The read value is undefined.
RO
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...