English
Language : 

C8051F52X_12 Datasheet, PDF (104/221 Pages) Silicon Laboratories – 8/4/2 kB ISP Flash MCU Family
C8051F52x/F53x
10.5. External Interrupts
The INT0 and INT0 external interrupt sources are configurable as active high or low, edge or level sensi-
tive. The IN0PL (INT0 Polarity) and IN1PL (INT0 Polarity) bits in the IT01CF register select active high or
active low; the IT0 and IT1 bits in TCON (Section “18.1. Timer 0 and Timer 1” on page 182) select level or
edge sensitive. The table below lists the possible configurations.
IT0 IN0PL
INT0 Interrupt
1
0
Active low, edge sensitive
1
1 Active high, edge sensitive
0
0
Active low, level sensitive
0
1 Active high, level sensitive
IT1 IN1PL
INT1 Interrupt
1
0 Active low, edge sensitive
1
1 Active high, edge sensitive
0
0
Active low, level sensitive
0
1 Active high, level sensitive
INT0 and INT0 are assigned to Port pins as defined in the IT01CF register (see SFR Definition 10.5). Note
that INT0 and INT0 Port pin assignments are independent of any Crossbar assignments. INT0 and INT0
will monitor their assigned Port pins without disturbing the peripheral that was assigned the Port pin via the
Crossbar. To assign a Port pin only to INT0 and/or INT0, configure the Crossbar to skip the selected pin(s).
This is accomplished by setting the associated bit in register XBR0 (see Section “13.1. Priority Crossbar
Decoder” on page 122 for complete details on configuring the Crossbar).
In the typical configuration, the external interrupt pins should be skipped in the crossbar and configured as
open-drain with the pin latch set to 1. See Section “13. Port Input/Output” on page 120 for more informa-
tion.
IE0 (TCON.1) and IE1 (TCON.3) serve as the interrupt-pending flags for the INT0 and INT0 external inter-
rupts, respectively. If an INT0 or INT0 external interrupt is configured as edge-sensitive, the corresponding
interrupt-pending flag is automatically cleared by the hardware when the CPU vectors to the ISR. When
configured as level sensitive, the interrupt-pending flag remains logic 1 while the input is active as defined
by the corresponding polarity bit (IN0PL or IN1PL); the flag remains logic 0 while the input is inactive. The
external interrupt source must hold the input active until the interrupt request is recognized. It must then
deactivate the interrupt request before execution of the ISR completes or another interrupt request will be
generated.
104
Rev. 1.4