English
Language : 

C541U_99 Datasheet, PDF (153/192 Pages) Siemens Semiconductor Group – 8-BIT CMOS MICROCONTROLLER
Interrupt System
C541U
7.4 External Interrupts
The external interrupts 0 and 1 can be programmed to be level-activated or transition activated by
setting or clearing bit IT0 or IT1 in register TCON. If ITx = 0 (x = 0 or 1), external interrupt x is
triggered by a detected low level at the INTx pin. In edge-triggered mode (ITx = ) two bits of the
ITCON register define the type of signal transition for which the external interrupt inputs are
sensitive. Edge-triggered interrupt can be activated for an interrupt input signal at the rising edge,
at the falling edge or at both signal transitions. In edge-triggered mode, if successive samples of the
INTx pin show a different logic level in two consequent machine cycles, the corresponding interrupt
request flag IEx in TCON is set. Flag bit IEx=1 then requests the interrupt.
If the external interrupt 0 or 1 is level-activated, the external source has to hold the request active
until the requested interrupt is actually generated. Then it has to deactivate the request before the
interrupt service routine is completed, or else another interrupt will be generated.
Since the external interrupt pins are sampled once in each machine cycle, an input high or low
should be held for at least 6 oscillator periods to ensure sampling. lf the external interrupt is
transition-activated, the external source has to hold the request pin high for at least one cycle, and
then hold it low for at least one cycle to ensure that the transition is recognized so that the
corresponding interrupt request flag will be set (see figure 7-5). The external interrupt request flags
will automatically be cleared by the CPU when the service routine is called.
a) Level-Activated Interrupt
INTx
Low-Level Threshold
> 1 Machine Cycle
b) Transition-Activated Interrupt
INTx
IxETF = 1
INTx
IxETR = 1
> 1 Machine Cycle
Transition to
be detected
High-Level Threshold
> 1 Machine Cycle
Low-Level Threshold
High-Level Threshold
Low-Level Threshold
MCT02577
Figure 7-5
External Interrupt Detection
Semiconductor Group
7-20
1997-10-01