R01UH0092EJ0110 Rev.1.10
Page 371 of 807
Jul 31, 2012
M16C/64C Group
20. Real-Time Clock
20.2.1
Real-Time Clock Second Data Register (RTCSEC)
SC03 to SC00 (First digit of second count bit) (b3-b0)
SC12 to SC10 (Second digit of second count bit) (b6-b4)
Set a value between 00 and 59 by the BCD code.
These bits become 00 at compare match in compare mode 2 and compare mode 3.
Write to bits SC12 to SC10 and SC03 to SC00 in the RTCSEC register when bits TSTART and TCSTF
in the RTCCR1 register are both 0 (count stopped). Read these bits when the BSY bit is 0 (not while
data is updated).
BSY (Real-time clock busy flag) (b7)
This bit is 1 while data is updated. Read the following bits when the BSY bit is 0 (not while data is
updated):
•
Bits SC12 to SC10 and SC03 to SC00 in the RTCSEC register
•
Bits MN12 to MN10 and MN03 to MN00 in the RTCMIN register
•
Bits HR11 to HR10 and HR03 to HR00 in the RTCHR register
•
Bits WK2 to WK0 in the RTCWK register
•
The RTCPM bit in the RTCCR1 register
b7 b6 b5 b4
b1
b2
b3
Real-Time Clock Second Data Register
Symbol
RTCSEC
Address
0340h
Bit Symbol
RW
Reset Value
00h
b0
SC00
SC01
SC02
SC03
RW
RW
RW
RW
Bit Name
First digit of second count bit
Function
Count 0 to 9 every second.
When the digit increments, 1
is added to the 2nd digit of
second.
Setting
Range
0 to 9
SC10
SC11
SC12
RW
RW
RW
Second digit of second count bit
When counting 0 to 5, 60
seconds are counted.
0 to 5
BSY
Real-time clock busy flag
This bit is 1 while registers RTCSEC,
RTCMIN, RTCHR or RTCWK are
updated.
RO
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...