External Interrupt Inputs; Register Description; 0Xe01F C140) - Philips LPC213 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

3.5 External interrupt inputs

The LPC2131/2/4/6/8 includes four External Interrupt Inputs as selectable pin functions.
The External Interrupt Inputs can optionally be used to wake up the processor from
Power-down mode.

3.5.1 Register description

The external interrupt function has four registers associated with it. The EXTINT register
contains the interrupt flags, and the EXTWAKEUP 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 7:
Name
EXTINT
INTWAKE
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 EINT3 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 EINT3 is set and an appropriate code starts to execute (handling
wakeup 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
User manual
External interrupt registers
Description
The External Interrupt Flag Register contains
interrupt flags for EINT0, EINT1, EINT2 and
EINT3. See
Table
The Interrupt Wakeup 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 levelsensitive.
The External Interrupt Polarity Register controls
which level or edge on each pin will cause an
interrupt.
Reset value relects the data stored in used bits only. It does not include reserved bits content.
Rev. 01 — 24 June 2005
8.
Table
9.
UM10120
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. 2005. All rights reserved.
Section
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents