Interrupt Priority Structure; External Interrupt Pin Glitch Suppression - Philips P89LPC938 User Manual

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors

4.1 Interrupt priority structure

Table 21:
Priority bits
IPxH
0
0
1
1
There are four SFRs associated with the four interrupt levels: IP0, IP0H, IP1, IP1H. Every
interrupt has two bits in IPx and IPxH (x = 0, 1) and can therefore be assigned to one of
four levels, as shown in
The P89LPC938 has two external interrupt inputs in addition to the Keypad Interrupt
function. The two interrupt inputs are identical to those present on the standard 80C51
microcontrollers.
These external interrupts can be programmed to be level-triggered or edge-triggered by
clearing or setting bit IT1 or IT0 in Register TCON. If ITn = 0, external interrupt n is
triggered by a low level detected at the INTn pin. If ITn = 1, external interrupt n is edge
triggered. In this mode if consecutive samples of the INTn pin show a high level in one
cycle and a low level in the next cycle, interrupt request flag IEn in TCON is set, causing
an interrupt request.
Since the external interrupt pins are sampled once each machine cycle, an input high or
low level should be held for at least one machine cycle to ensure proper sampling. If the
external interrupt is edge-triggered, the external source has to hold the request pin high
for at least one machine cycle, and then hold it low for at least one machine cycle. This is
to ensure that the transition is detected and that interrupt request flag IEn is set. IEn is
automatically cleared by the CPU when the service routine is called.
If the external interrupt is level-triggered, the external source must hold the request active
until the requested interrupt is generated. If the external interrupt is still asserted when the
interrupt service routine is completed, another interrupt will be generated. It is not
necessary to clear the interrupt flag IEn when the interrupt is level sensitive, it simply
tracks the input pin level.
If an external interrupt has been programmed as level-triggered and is enabled when the
P89LPC938 is put into Power-down mode or Idle mode, the interrupt occurrence will
cause the processor to wake-up and resume operation. Refer to
reduction modes"

4.2 External Interrupt pin glitch suppression

Most of the P89LPC938 pins have glitch suppression circuits to reject short glitches
(please refer to the P89LPC938 data sheet, Dynamic characteristics for glitch filter
specifications). However, pins SDA/INT0/P1.3 and SCL/T0/P1.2 do not have the glitch
suppression circuits. Therefore, INT1 has glitch suppression while INT0 does not.
User manual
Interrupt priority level
IPx
0
1
0
1
Table
22.
for details.
Rev. 03 — 7 June 2005
Interrupt priority level
Level 0 (lowest priority)
Level 1
Level 2
Level 3
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10119
P89LPC938 User manual
Section 6.3 "Power
31 of 139

Advertisement

Table of Contents
loading

Table of Contents