Download Print this page

Renesas M16C/50 Series User Manual page 448

Advertisement

M16C/5L Group, M16C/56 Group
20.2.5
Real-Time Clock Control Register 1 (RTCCR1)
Real-Time Clock Control Register 1
b7
b6 b5 b4
b3
b2
b1
0
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
(1)
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
Note:
1. Registers associated with the real-time clock: RTCSEC, RTCMIN, RTCHR, RTCWK, RTCCR1, RTCCR2,
RTCCSR, RTCCSEC, RTCCMIN, and RTCCHR.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
0
RTCCR1
Bit Symbol
Bit Name
Reserved bit
(b0)
Real-time clock count status
TCSTF
flag
TOENA
RTCOUT pin output bit
Reserved bit
(b3)
RTCRST
Real-time clock reset bit
RTCPM
a.m./p.m. bit
H12H24
Operating mode select bit
TSTART
Real-time clock count start bit
(1)
other than the TCSTF bit.
Address
0344h
Function
Set to 0
0 : Count stopped
1 : Counting
0 : Compare output disabled
1 : Compare output enabled
Set to 0
Setting this bit to 0 after setting it to 1
resets the real-time clock.
0 : a.m.
1 : p.m.
0 : 12-hour mode
1 : 24-hour mode
0 : Count stopped
1 : Count started
20. Real-Time Clock
Reset Value
0000 X00Xb
RW
RW
RO
RW
RW
RW
RW
RW
RW
Page 411 of 803

Advertisement

loading