R01UH0092EJ0110 Rev.1.10
Page 388 of 807
Jul 31, 2012
M16C/64C Group
20. Real-Time Clock
Figure 20.7
Count Start/Stop Operating Example
BSY bit
TSTART bit in the
RTCCR1 register
RTCSEC
44
45
2
3
1
RTCMIN
RTCHR
RTCOUT pin output
1 s
Low is output after counting starts.
TCSTF bit in the
RTCCR1 register
Low is output when the RTCOUT pin is used first,
e.g., after reset. When count stops after selecting
the RTCOUT pin, the state before stop is retained.
Set to 0 by a program
The state before
stop is retained.
Count
started
Count stopped
46
Undefined
0
RTCPM bit
BSY bit: Bit in RTCSEC register
RTCSEC: Bits SC12 to SC10 and SC03 to SC00 in RTCSEC register
RTCMIN: Bits MN12 to MN10 and MN03 to MN00 in RTCMIN register
RTCHR: Bits HR11 to HR10 and HR03 to HR00 in RTCHR register
RTCPM bit: Bit in RTCCR1 register
1 s
Undefined
The above assumes the following:
y
The TOENA bit in the RTCCR1 register is 1 (compare output enabled).
y
Bits RTCCMP1 to RTCCMP0 in the RTCCR2 register are 01b (compare mode 1).
Set to 1 by a program
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...