Epson S1C17624 Technical Manual page 89

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

notes: • Data should not be read from or written to the counters while 1 is being carried over. (See
Section 8.3.5, "Counter Hold and Busy Flag," and Section 8.3.7, "Counter Read.")
• Rewriting RTC24H/RTC_CNTL0 register may corrupt the count data in this register. Therefore,
after changing the RTC24H setting, be sure to set up this register again.
D[7:6]
Reserved
D[5:4]
RTCDh[1:0]: RTC 10-day Counter Bits
These bits comprise a 2-bit BCD counter used to count tens of days. The counter counts from 0 to 2 or
3 with a carry over of 1 from the 1-day counter. The number of days in each month and leap years are
taken into account, so that when months change the counter is reset to 0 along with the 1-day counter,
and a carry over of 1 is output to the 1-month counter.
D[3:0]
RTCDl[3:0]: RTC 1-day Counter Bits
These bits comprise a 4-bit BCD counter used to count units of days.
The counter counts from 0 to 9 with a carry over of 1 from the hour counter. This counter is reset to 0
after 9 and outputs a carry over of 1 to the 10-day counter. The number of days in each month and leap
years are taken into account, so that the counter is reset to 1 when months change.
RTC Month Register (RTC_MOnTh)
Register name address
Bit
RTC Month
0x5148
D7–5 –
Register
(8 bits)
D4
(RTC_MOnTh)
D3–0 RTCMOl[3:0] RTC 1-month counter
* Software reset (RTCRST → 1 → 0) does not affect the counter values. This register retains the value set before a software reset is
performed.
notes: • Data should not be read from or written to the counters while 1 is being carried over. (See
Section 8.3.5, "Counter Hold and Busy Flag," and Section 8.3.7, "Counter Read.")
• Rewriting RTC24H/RTC_CNTL0 register may corrupt the count data in this register. Therefore,
after changing the RTC24H setting, be sure to set up this register again.
D[7:5]
Reserved
D4
RTCMOh: RTC 10-month Counter Bit
This is a tens of months count bit.
This bit is set to 1 with a carry over of 1 from the 1-month counter. When years change, this bit is reset
to 0 along with the 1-month counter, and a carry over of 1 is output to the 1-year counter.
D[3:0]
RTCMOl[3:0]: RTC 1-month Counter Bits
These bits comprise a 4-bit BCD counter used to count units of months.
The counter counts from 0 to 9 with a carry over of 1 from the day counter. This counter is reset to 0 af-
ter 9 and outputs a carry over of 1 to the 10-month counter. The counter is reset to 1 when years change.
RTC Year Register (RTC_YeaR)
Register name address
Bit
RTC Year
0x5149
D7–4 RTCYh[3:0] RTC 10-year counter
Register
(8 bits)
D3–0 RTCYl[3:0] RTC 1-year counter
(RTC_YeaR)
* Software reset (RTCRST → 1 → 0) does not affect the counter values. This register retains the value set before a software reset is
performed.
notes: • Data should not be read from or written to the counters while 1 is being carried over. (See
Section 8.3.5, "Counter Hold and Busy Flag," and Section 8.3.7, "Counter Read.")
• Rewriting RTC24H/RTC_CNTL0 register may corrupt the count data in this register. Therefore,
after changing the RTC24H setting, be sure to set up this register again.
S1C17624/604/622/602/621 TeChniCal Manual
name
Function
reserved
RTCMOh
RTC 10-month counter
name
Function
Seiko epson Corporation
8 Real-TiMe ClOCK (RTC)
Setting
init. R/W
0 when being read.
0 to 1
X (*) R/W
0 to 9
X (*) R/W
Setting
init. R/W
0 to 9
X (*) R/W
0 to 9
X (*) R/W
Remarks
Remarks
8-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents