Datasheet

Section 10 Realtime Clock (RTC)
Rev. 2.00 Sep. 23, 2005 Page 152 of 472
REJ09B0160-0200
10.5 Interrupt Source
There are five kinds of RTC interrupts: week interrupts, day interrupts, hour interrupts, minute
interrupts, and second interrupts.
When using an interrupt, initiate the RTC last after other registers are set. Do not set multiple
interrupt enable bits in RTCCR2 simultaneously to 1.
When an interrupt request of the RTC occurs, the IRRTA flag in IRR1 is set to 1. When clearing
the flag, write 0.
Table 10.2 Interrupt Source
Interrupt Name Interrupt Source Interrupt Enable Bit
Overflow interrupt Occurs when the free running counter is
overflown.
FOIE
Week periodic interrupt Occurs every week when the day-of-week date
register value becomes 0.
WKIE
Day periodic interrupt Occurs every day when the day-of-week date
register is counted.
DYIE
Hour periodic interrupt Occurs every hour when the hour date register
is counted.
HRIE
Minute periodic interrupt Occurs every minute when the minute date
register is counted.
MNIE
Second periodic interrupt Occurs every second when the second date
register is counted.
SCIE