Real-Time Clock Hour Data Register (Rtchr) - Renesas M16C/64C User Manual

Table of Contents

Advertisement

M16C/64C Group
20.2.3

Real-Time Clock Hour Data Register (RTCHR)

Real-Time Clock Hour Data Register
b7 b6 b5 b4
b3
b2
b1
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).
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
Symbol
b0
RTCHR
Bit Symbol
Bit Name
HR00
HR01
First digit of hour count bit
HR02
HR03
HR10
Second digit of hour count bit
HR11
No register bit. If necessary, set to 0. The read value is undefined.
(b6)
Reserved bit
(b7)
Address
0342h
Function
Count 0 to 9 every hour.
When the digit increments, 1
is added to the 2nd digit of
hour.
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).
The read value is undefined.
20. Real-Time Clock
Reset Value
XX00 0000b
Setting
RW
Range
RW
RW
0 to 9
RW
RW
RW
0 to 2
RW
RO
Page 373 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents