Rtc Interrupts; Miscellaneous Register Group; Interrupt Location Register (Ilr - 0Xe002 4000); User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

17.4.1 RTC interrupts

Interrupt generation is controlled through the Interrupt Location Register (ILR), Counter
Increment Interrupt Register (CIIR), the alarm registers, and the Alarm Mask Register
(AMR). Interrupts are generated only by the transition into the interrupt state. The ILR
separately enables CIIR and AMR interrupts. Each bit in CIIR corresponds to one of the
time counters. If CIIR is enabled for a particular counter, then every time the counter is
incremented an interrupt is generated. The alarm registers allow the user to specify a date
and time for an interrupt to be generated. The AMR provides a mechanism to mask alarm
compares. If all nonmasked alarm registers match the value in their corresponding time
counter, then an interrupt is generated.
The RTC interrupt can bring the microcontroller out of power-down mode if the RTC is
operating from its own oscillator on the RTXC1-2 pins. When the RTC interrupt is enabled
for wake-up and its selected event occurs, X1/2 pins associated oscillator wake-up cycle is
started. For details on the RTC based wake-up process see
Wake-up register (INTWAKE - 0xE01F C144)" on page 20
timer" on page

17.4.2 Miscellaneous register group

Table 185
descriptions follow.
Table 185: Miscellaneous registers
Name
ILR
CTC
CCR
CIIR
AMR
CTIME0
CTIME1
CTIME2

17.4.3 Interrupt Location Register (ILR - 0xE002 4000)

The Interrupt Location Register is a 2-bit register that specifies which blocks are
generating an interrupt (see
corresponding interrupt. Writing a zero has no effect. This allows the programmer to read
this register and write back the same value to clear only the interrupt that is detected by
the read.

User manual

37.
summarizes the registers located from 0 to 7 of A[6:2]. More detailed
Size Description
2
Interrupt Location. Reading this location
indicates the source of an interrupt. Writing a
one to the appropriate bit at this location clears
the associated interrupt.
15
Clock Tick Counter. Value from the clock
divider.
4
Clock Control Register. Controls the function of
the clock divider.
8
Counter Increment Interrupt. Selects which
counters will generate an interrupt when they
are incremented.
8
Alarm Mask Register. Controls which of the
alarm registers are masked.
32
Consolidated Time Register 0
32
Consolidated Time Register 1
32
Consolidated Time Register 2
Table
Rev. 01 — 12 January 2006
186). Writing a one to the appropriate bit clears the
UM10161
Chapter 17: RTC
Section 3.5.3 "Interrupt
and
Section 3.12 "Wake-up
Access
Address
R/W
0xE002 4000
RO
0xE002 4004
R/W
0xE002 4008
R/W
0xE002 400C
R/W
0xE002 4010
RO
0xE002 4014
RO
0xE002 4018
RO
0xE002 401C
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
215

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents