8 Real-TiMe ClOCK (RTC)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
8-1
Real-Time Clock (RTC)
8
note: The RTC is available only in the S1C17624/604.
RTC Module Overview
8.1
The S1C17624/604 incorporates a real-time clock (RTC) with a perpetual calendar, and an OSC1 oscillator circuit
to generate the operating clock for the RTC.
The RTC and OSC1 oscillator circuit (CLG) operate in SLEEP mode. Moreover, the RTC can periodically generate
interrupt requests to the CPU.
The main features of the RTC are outlined below.
• Contains time counters (seconds, minutes, and hours) and calendar counters (days, days of the week, months, and
year).
• BCD data can be read from and written to both counters.
• Includes read buffers to prevent carry over at reading.
• Capable of controlling the starting and stopping of time clocks.
• 24-hour or 12-hour mode can be selected.
• A 30-second correction function can be implemented in software.
• Periodic interrupts are possible.
• Interrupt period can be selected from 1/512 second, 1/256 second, 1/128 second, 1/64 second, 1 second, 1 min-
ute, or 1 hour. (Level/edge interrupt mode)
Figure 8.1.1 shows a block diagram of the RTC.
1 Hz
1 second
1 minute
1 hour
To ITC
RTC
Interrupt
control
1-second counter
Divider
Controller
10-second counter
1-minute counter
10-minute counter
1-hour counter
10-hour counter
1-day counter
10-day counter
1-month counter
10-month counter
1-year counter
10-year counter
Days of week counter
32 kHz
Internal data bus
CLG
OSC1
oscillator
24H/12H
AM/PM
1/512–1/64
second
Read buffer
1.1 RTC Block Diagram
Figure 8.