© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
User manual
Rev. 01 — 12 January 2006
19
Philips Semiconductors
UM10161
Volume 1
Chapter 3: System control block
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.
[1]
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
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)”
and
“External Interrupt Polarity register (EXTPOLAR - 0xE01F C14C)”
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.
Table 8:
External interrupt registers
Name
Description
Access Reset
value
Address
EXTINT
The External Interrupt Flag Register contains
interrupt flags for EINT0, EINT1, EINT2 and
EINT3. See
.
R/W
0
0xE01F C140
EXTWAKE
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
.
R/W
0
0xE01F C144
EXTMODE
The External Interrupt Mode Register controls
whether each pin is edge- or level sensitive.
R/W
0
0xE01F C148
EXTPOLAR
The External Interrupt Polarity Register controls
which level or edge on each pin will cause an
interrupt.
R/W
0
0xE01F C14C