
III PERIPHERAL MODULES 1 (SYSTEM): REAL-TIME CLOCK (RTC)
III-3-2
EPSON
S1C33E07 TECHNICAL MANUAL
III.3.2 RTC Counters
The RTC contains the following 13 counters, whose count values can be read out as BCD data from the respective
registers. Each counter can also be set to any desired date and time by writing data to the respective register.
1-second counter
This 4-bit BCD counter counts in units of seconds. It counts from 0 to 9 synchronously with a 1-second signal
derived from the 32.768-kHz OSC1 clock by dividing the clock into smaller frequencies. This counter is reset
to 0 after 9 and outputs a carry over of 1 to the 10-second counter. The count data is read out and written using
RTCSL[3:0] (D[3:0]/0x301910).
RTCSL[3:0]: RTC 1-second Counter Bits in the RTC Second Register (D[3:0]/0x301910)
10-second counter
This 3-bit BCD counter counts tens of seconds. It counts from 0 to 5 with 1 carried over from the 1-second
counter. This counter is reset to 0 after 5 and outputs a carry over of 1 to the 1-minute counter. The count data is
read out and written using RTCSH[2:0] (D[6:4]/0x301910).
RTCSH[2:0]: RTC 10-second Counter Bits in the RTC Second Register (D[6:4]/0x301910)
1-minute counter
This 4-bit BCD counter counts in units of minutes. It counts from 0 to 9 with 1 carried over from the 10-second
counter. This counter is reset to 0 after 9 and outputs a carry over of 1 to the 10-minute counter. The count data
is read out and written using RTCMIL[3:0] (D[3:0]/0x301914).
RTCMIL[3:0]: RTC 1-minute Counter Bits in the RTC Minute Register (D[3:0]/0x301914)
10-minute counter
This 3-bit BCD counter counts tens of minutes. It counts from 0 to 5 with 1 carried over from the 1-minute
counter. This counter is reset to 0 after 5 and outputs a carry over of 1 to the 1-hour counter. The count data is
read out and written using RTCMIH[2:0] (D[6:4]/0x301914).
RTCMIH[2:0]: RTC 10-minute Counter Bits in the RTC Minute Register (D[6:4]/0x301914)
1-hour counter
This 4-bit BCD counter counts in units of hours. It counts from 0 to 9 with 1 carried over from the 10-minute
counter. This counter is reset to 0 after 9 and outputs a carry over of 1 to the 10-hour counter. Depending
whether 12-hour or 24-hour mode is selected, the counter is reset at 12 o’clock or 24 o’clock. The count data is
read out and written using RTCHL[3:0] (D[3:0]/0x301918).
RTCHL[3:0]: RTC 1-hour Counter Bits in the RTC Hour Register (D[3:0]/0x301918)
10-hour counter
This 2-bit BCD counter counts tens of hours. With a carry over of 1 from the 1-hour counter, this counter counts
from 0 to 1 (when 12-hour mode is selected) or from 0 to 2 (when 24-hour mode is selected). The counter is
reset at 12 o’clock or 24 o’clock, and outputs a carry over of 1 to the 1-day counter. The count data is read out
and written using RTCHH[1:0] (D[5:4]/0x301918).
RTCHH[1:0]: RTC 10-hour Counter Bits in the RTC Hour Register (D[5:4]/0x301918)
When 12-hour mode is selected, RTCAP (D6/0x301918) that indicates A.M. or P.M. is enabled, with A.M. and
P.M. represented by 0 and 1, respectively. For 24-hour mode, RTCAP (D6/0x301918) is fixed to 0.
RTCAP: AM/PM Indicator Bit in the RTC Hour Register (D6/0x301918)