Register Description; External Interrupt Flag Register (Extint - 0Xe01F C140) - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

3.5.1 Register description

The external interrupt function has four registers associated with it. The EXTINT register
contains the interrupt flags and the EXTWAKE register contains bits that enable individual
external interrupts to wake up the microcontroller from Power-down mode. The
EXTMODE and EXTPOLAR registers specify the level and edge sensitivity parameters.
Table 8:
Name
EXTINT
EXTWAKE
EXTMODE
EXTPOLAR
[1]

3.5.2 External Interrupt Flag register (EXTINT - 0xE01F C140)

When a pin is selected for its external interrupt function, the level or edge on that pin
(selected by its bits in the EXTPOLAR and EXTMODE registers) will set its interrupt flag in
this register. This asserts the corresponding interrupt request to the VIC, which will cause
an interrupt if interrupts from the pin are enabled.
Writing ones to bits EINT0 through EINT2 in EXTINT register clears the corresponding
bits. In level-sensitive mode this action is efficacious only when the pin is in its inactive
state.
Once a bit from EINT0 to EINT2 is set and an appropriate code starts to execute (handling
wake-up and/or external interrupt), this bit in EXTINT register must be cleared. Otherwise
the event that was just triggered by activity on the EINT pin will not be recognized in the
future.
Important: whenever a change of external interrupt operating mode (i.e. active
level/edge) is performed (including the initialization of an external interrupt), the
corresponding bit in the EXTINT register must be cleared! For details see
3.5.4 "External Interrupt Mode register (EXTMODE - 0xE01F C148)"
"External Interrupt Polarity register (EXTPOLAR - 0xE01F
For example, if a system wakes up from power-down using a LOW level on external
interrupt 0 pin, its post-wake-up code must reset the EINT0 bit in order to allow future
entry into the power-down mode. If the EINT0 bit is left set to 1, subsequent attempt(s) to
invoke power-down mode will fail. The same goes for external interrupt handling.
More details on power-down mode will be discussed in the following chapters.
User manual
External interrupt registers
Description
The External Interrupt Flag Register contains
interrupt flags for EINT0, EINT1, EINT2 and
EINT3. See
Table
The Interrupt wake-up register contains four
enable bits that control whether each external
interrupt will cause the processor to wake up
from Power-down mode. See
The External Interrupt Mode Register controls
whether each pin is edge- or level sensitive.
The External Interrupt Polarity Register controls
which level or edge on each pin will cause an
interrupt.
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
Rev. 01 — 12 January 2006
9.
Table
10.
UM10161
Chapter 3: System control block
Access Reset
Address
[1]
value
R/W
0
0xE01F C140
R/W
0
0xE01F C144
R/W
0
0xE01F C148
R/W
0
0xE01F C14C
and
Section 3.5.5
C14C)".
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
Section
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents