14. Functions
RX8130CE Jump to Top / Bottom
ETM50E-07 Seiko Epson Corporation 25
14.1.2. Week counter
The day (of the week) is indicated by 7 bits, bit 0 to bit 6.
The day data values are counted as: Day 01hDay 02hDay 04hDay 08hDay 10hDay 20hDay
40hDay 01hDay 02h, etc.
It is incremented when carry is generated from the HOUR register. This register does not generate carry to
a higher register. Since this register is not connected with the YEAR, MONTH and DAY registers, it needs to be
set again with the matching day of the week if any of the YEAR, MONTH or DAY registers have been changed.
Table 15 Setting example of the week register value.
Do not set "1" to more than one day at the same time.
14.1.3. Calendar counter
1) [DAY],[MONTH ]register
The DAY register is a variable (between 28-base and 31-base) BCD counter that is influenced by the month and
the leap year. The MONTH register is a 12-base BCD counter triggered by carryover of the day register.
[
2) YEAR]register
This register is a BCD counter for years 00 to 99.
The leap year is automatically determined and influences the DAY register.
This RTC processes following years as leap years: 00,04,08,12,,, 96.
User software correction is needed in the years 2100,2200,2300 as they are common years.
< Definition of leap years>
Leap year : year divisible by 4 , year divisible by 400
Ex. 2000,2004,2008,2012,,, 2096,2400,2800,,,
Common year: year indivisible by 4, year divisible by 100
Ex. 2001,2002,2003,2005,,, 2099,2100,2200,2300,2500,,