
iiiPeriPheraLModuLes1(systeM):reaL-tiMeCLoCk(rtC)
s1C33L17teChniCaLManuaL
ePson
iii-3-3
III
RTC
1-daycounter
This 4-bit BCD counter counts in units of days. It counts from 0 to 9 with 1 carried over 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. The count
data is read out and written using RTCDL[3:0] (D[3:0]/0x30191C).
rtCdL[3:0]:RTC1-dayCounterBitsintheRTCDayRegister(D[3:0]/0x30191C)
10-daycounter
This 2-bit BCD counter counts tens of days. It counts from 0 to 2 or 3 with 1 carried over 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 outputs a carry over of 1 to the 1-month counter. The
count data is read out and written using RTCDH[1:0] (D[5:4]/0x30191C).
rtCdh[1:0]:RTC10-dayCounterBitsintheRTCDayRegister(D[5:4]/0x30191C)
1-monthcounter
This 4-bit BCD counter counts in units of months. It counts from 0 to 9 with 1 carried over from the day
counter. This counter is reset to 0 after 9 and outputs a carry over of 1 to the 10-month counter. The counter is
reset to 1 when years change. The count data is read out and written using RTCMOL[3:0] (D[3:0]/0x301920).
rtCMoL[3:0]:RTC1-monthCounterBitsintheRTCMonthRegister(D[3:0]/0x301920)
10-monthcounter
This counter counts in units of 10 months, and is set to 1 with 1 carried over from the 1-month counter. When
years change, this counter is reset to 0 along with the 1-month counter, and outputs a carry over of 1 to the
1-year counter. The count data is read out and written using RTCMOH (D4/0x301920).
rtCMoh:RTC10-monthCounterBitintheRTCMonthRegister(D4/0x301920)
1-yearcounter
This 4-bit BCD counter counts in units of years. It counts from 0 to 9 with 1 carried over from the month
counter. This counter is reset to 0 after 9 and outputs a carry over of 1 to the 10-year counter. The count data is
read out and written using RTCYL[3:0] (D[3:0]/0x301924).
rtCyL[3:0]:RTC1-yearCounterBitsintheRTCYearRegister(D[3:0]/0x301924)
10-yearcounter
This 4-bit BCD counter counts tens of years. It counts from 0 to 9 with 1 carried over from the 1-year counter.
The count data is read out and written using RTCYH[3:0] (D[7:4]/0x301924).
rtCyh[3:0]:RTC10-yearCounterBitsintheRTCYearRegister(D[7:4]/0x301924)
daysofweekcounter
This is a septenary counter (that counts from 0 to 6) representing the days of the week. It counts with the same
timing as the 1-day counter. The count data is read out and written using RTCWK[2:0] (D[2:0]/0x301928).
rtCWk[2:0]:RTCDaysofWeekCounterBitsintheRTCDaysofWeekRegister(D[2:0]/0x301928)
The correspondence between the counter values and days of the week can be set in a program as desired. Table
III.3.2.1 lists the basic correspondence.
TableIII.3.2.1CorrespondencebetweenCounterValuesandDaysoftheWeek
rtCWk2
1
0
rtCWk1
1
0
1
0
daysoftheweek
Saturday
Friday
Thursday
Wednesday
Tuesday
Monday
Sunday
rtCWk0
0
1
0
1
0
1
0