R01UH0092EJ0110 Rev.1.10
Page 375 of 807
Jul 31, 2012
M16C/64C Group
20. Real-Time Clock
20.2.5
Real-Time Clock Control Register 1 (RTCCR1)
TCSTF (Real-time clock count status flag) (b1)
TSTART (Real-time clock count start bit) (b7)
The real-time clock uses the TSTART bit to instruct the count to start or stop, and use the TCSTF bit to
indicate count start or stop.
The real-time clock starts counting and the TCSTF bit becomes 1 (count started) when the TSTART bit
is set to 1 (count started). It takes up to two cycles of the count source until the TCSTF bit becomes 1
after setting the TSTART bit to 1. During this time, do not access registers associated with the real-time
clock
other than the TCSTF bit.
Also, when setting the TSTART bit to 0 (count stopped), the real-time clock stops counting and the
TCSTF bit becomes 0 (count stopped). It takes the time for up to three cycles of the count source until
the TCSTF bit becomes 0 after setting the TSTART bit to 0. During this time, do not access registers
associated with the real-time clock
other than the TCSTF bit.
Note:
1. Registers associated with the real-time clock: RTCSEC, RTCMIN, RTCHR, RTCWK, RTCCR1, RTCCR2,
RTCCSR, RTCCSEC, RTCCMIN, and RTCCHR.
b7
0
0
b6 b5 b4
b1
b2
b3
Real-Time Clock Control Register 1
Symbol
RTCCR1
Address
0344h
Bit Symbol
RW
Reset Value
0000 X00Xb
b0
TSTART
Real-time clock count start bit
0 : Count stopped
1 : Count started
RW
—
(b0)
TCSTF
TOENA
—
(b3)
RW
RO
RW
RW
Bit Name
RTCRST
RTCPM
H12H24
RW
RW
RW
Function
Real-time clock count status
flag
0 : Count stopped
1 : Counting
RTCOUT pin output bit
0 : Compare output disabled
1 : Compare output enabled
Operating mode select bit
0 : 12-hour mode
1 : 24-hour mode
a.m./p.m. bit
0 : a.m.
1 : p.m.
Real-time clock reset bit
Setting this bit to 0 after setting it to 1
resets the real-time clock.
Reserved bit
Set to 0
Reserved bit
Set to 0
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...