
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
537 of 808
NXP Semiconductors
UM10360
Chapter 27: LPC17xx Real-Time Clock (RTC) and backup registers
6.2.3 Counter Increment Interrupt Register (CIIR - 0x4002 400C)
The Counter Increment Interrupt Register (CIIR) gives the ability to generate an interrupt
every time a counter is incremented. This interrupt remains valid until cleared by writing a
1 to bit 0 of the Interrupt Location Register (ILR[0]).
6.2.4 Alarm Mask Register (AMR - 0x4002 4010)
The Alarm Mask Register (AMR) allows the user to mask any of the alarm registers.
shows the relationship between the bits in the AMR and the alarms. For the
alarm function, every non-masked alarm register must match the corresponding time
counter for an interrupt to be generated. The interrupt is generated only when the counter
comparison first changes from no match to match. The interrupt is removed when a one is
written to the appropriate bit of the Interrupt Location Register (ILR). If all mask bits are
set, then the alarm is disabled.
6.2.5 RTC Auxiliary control register (RTC_AUX - 0x4002 405C)
The RTC Auxiliary Control register contains added interrupt flags for functions that are not
part of the Real Time Clock itself (the part recording the passage of time and generating
other time related functions). On the LPC17xx, the only added interrupt flag is for failure of
the RTC oscillator.
Table 492. Counter Increment Interrupt Register (CIIR - address 0x4002 400C) bit description
Bit
Symbol
Description
Reset
value
0
IMSEC
When 1, an increment of the Second value generates an interrupt.
0
1
IMMIN
When 1, an increment of the Minute value generates an interrupt.
0
2
IMHOUR
When 1, an increment of the Hour value generates an interrupt.
0
3
IMDOM
When 1, an increment of the Day of Month value generates an
interrupt.
0
4
IMDOW
When 1, an increment of the Day of Week value generates an interrupt. 0
5
IMDOY
When 1, an increment of the Day of Year value generates an interrupt.
0
6
IMMON
When 1, an increment of the Month value generates an interrupt.
0
7
IMYEAR
When 1, an increment of the Year value generates an interrupt.
0
Table 493. Alarm Mask Register (AMR - address 0x4002 4010) bit description
Bit
Symbol
Description
Reset
value
0
AMRSEC
When 1, the Second value is not compared for the alarm.
0
1
AMRMIN
When 1, the Minutes value is not compared for the alarm.
0
2
AMRHOUR When 1, the Hour value is not compared for the alarm.
0
3
AMRDOM
When 1, the Day of Month value is not compared for the alarm.
0
4
AMRDOW
When 1, the Day of Week value is not compared for the alarm.
0
5
AMRDOY
When 1, the Day of Year value is not compared for the alarm.
0
6
AMRMON
When 1, the Month value is not compared for the alarm.
0
7
AMRYEAR
When 1, the Year value is not compared for the alarm.
0