WM8321
Production Data
20.3 RTC INTERRUPTS
The Real Time Clock (RTC) is associated with two Interrupt event flags.
The RTC_PER_EINT interrupt is set each time a periodic timeout occurs. The periodic timeout is
configured using the RTC_PINT_FREQ field described in Table 51.
The RTC_ALM_EINT interrupt is set when the RTC Alarm is triggered. The RTC Alarm time is
configured as described in Section 20.2.
Each of these secondary interrupts triggers a primary Real Time Clock Interrupt, RTC_INT (see
Section 23). This can be masked by setting the mask bit(s) as described in Table 50.
ADDRESS
R16401
BIT
LABEL
DESCRIPTION
RTC Periodic interrupt
RTC_PER_EINT
3
(4011h)
(Rising Edge triggered)
Note: Cleared when a ‘1’ is written.
RTC Alarm interrupt
Interrupt Status
1
RTC_ALM_EINT
2
3
(Rising Edge triggered)
Note: Cleared when a ‘1’ is written.
Interrupt mask.
R16409
(4019h)
IM_RTC_PER_EINT
0 = Do not mask interrupt.
1 = Mask interrupt.
Interrupt Status
1 Mask
Default value is 1 (masked)
Interrupt mask.
IM_RTC_ALM_EINT
2
0 = Do not mask interrupt.
1 = Mask interrupt.
Default value is 1 (masked)
Table 50 Real Time Clock (RTC) Interrupts
The frequency of the RTC periodic interrupts is set by the RTC_PINT_FREQ field, as described in
Table 51.
ADDRESS
R16421
(4025h)
BIT
LABEL
DEFAULT
DESCRIPTION
RTC Periodic Interrupt timeout period
000 = Disabled
001 = 2s
RTC_PINT_FREQ
[2:0]
6:4
000
RTC Control
010 = 4s
011 = 8s
100 = 16s
101 = 32s
110 = 64s
111 = 128s
Table 51 Real Time Clock (RTC) Periodic Interrupt Control
PD, February 2012, Rev 4.0
106
w