Download Print this page

Renesas M16C/50 Series User Manual page 444

Advertisement

M16C/5L Group, M16C/56 Group
20.2.1
Real-Time Clock Second Data Register (RTCSEC)
Real-Time Clock Second Data Register
b7 b6 b5 b4
b3
b2
b1
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
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
RTCSEC
Bit Symbol
SC00
SC01
First digit of second count bit
SC02
SC03
SC10
SC11
Second digit of second count bit
SC12
BSY
Real-time clock busy flag
Address
0340h
Bit Name
Count 0 to 9 every second.
When the digit increments, 1
is added to the 2nd digit of
second.
When counting 0 to 5, 60
seconds are counted.
This bit is 1 while registers RTCSEC,
RTCMIN, RTCHR or RTCWK are
updated.
20. Real-Time Clock
Reset Value
00h
Setting
Function
Range
0 to 9
0 to 5
Page 407 of 803
RW
RW
RW
RW
RW
RW
RW
RW
RO

Advertisement

loading