C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
Rev. 1.4
155
11.3.2. External Interrupts
Two of the external interrupt sources (/INT0 and /INT1) are configurable as active-low level-sensitive or
active-low edge-sensitive inputs depending on the setting of bits IT0 (TCON.0) and IT1 (TCON.2). IE0
(TCON.1) and IE1 (TCON.3) serve as the interrupt-pending flag for the /INT0 and /INT1 external interrupts,
respectively. If an /INT0 or /INT1 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 follows the state of the external interrupt's input pin.
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.
Table 11.4. Interrupt Summary
Interrupt Source
Interru
pt
Vector
Priority
Order
Pending Flags
B
it ad
d
res
sa
b
le
?
Clear
ed by
HW?
S
F
RP
AGE (SFRPGEN =
1)
Enable
Flag
Priority
Control
Reset
0x0000
Top
None
N/A N/A
0
Always
Enabled
Always
Highest
External Interrupt 0 (/INT0) 0x0003
0
IE0 (TCON.1)
Y
Y
0
EX0 (IE.0) PX0 (IP.0)
Timer 0 Overflow
0x000B
1
TF0 (TCON.5)
Y
Y
0
ET0 (IE.1) PT0 (IP.1)
External Interrupt 1 (/INT1) 0x0013
2
IE1 (TCON.3)
Y
Y
0
EX1 (IE.2) PX1 (IP.2)
Timer 1 Overflow
0x001B
3
TF1 (TCON.7)
Y
Y
0
ET1 (IE.3) PT1 (IP.3)
UART0
0x0023
4
RI0 (SCON0.0)
TI0 (SCON0.1)
Y
0
ES0 (IE.4) PS0 (IP.4)
Timer 2
0x002B
5
TF2 (TMR2CN.7)
EXF2 (TMR2CN.6)
Y
0
ET2 (IE.5) PT2 (IP.5)
Serial Peripheral Interface
0x0033
6
SPIF (SPI0CN.7)
WCOL (SPI0CN.6)
MODF (SPI0CN.5)
RXOVRN (SPI0CN.4)
Y
0
ESPI0
(EIE1.0)
PSPI0
(EIP1.0)
SMBus Interface
0x003B
7
SI (SMB0CN.3)
Y
0
ESMB0
(EIE1.1)
PSMB0
(EIP1.1)
ADC0 Window Comparator 0x0043
8
AD0WINT
(ADC0CN.1)
Y
0
EWADC0
(EIE1.2)
PWADC0
(EIP1.2)
Programmable Counter
Array
0x004B
9
CF (PCA0CN.7)
CCFn (PCA0CN.n)
Y
0
EPCA0
(EIE1.3)
PPCA0
(EIP1.3)
Comparator 0 Falling Edge 0x0053
10
CP0FIF (CPT0CN.4)
Y
1
ECP0F
(EIE1.4)
PCP0F
(EIP1.4)
Comparator 0 Rising Edge 0x005B
11
CP0RIF (CPT0CN.5)
Y
1
ECP0R
(EIE1.5)
PCP0R
(EIP1.5)
Comparator 1 Falling Edge 0x0063
12
CP1FIF (CPT1CN.4)
Y
2
ECP1F
(EIE1.6)
PCP1F
(EIP1.6)
Summary of Contents for C8051F12 Series
Page 2: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 2 Rev 1 4 NOTES ...
Page 104: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 104 Rev 1 4 NOTES ...
Page 112: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 112 Rev 1 4 NOTES ...
Page 176: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 176 Rev 1 4 ...
Page 184: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 184 Rev 1 4 NOTES ...
Page 197: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 Rev 1 4 197 NOTES ...
Page 198: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 198 Rev 1 4 ...
Page 210: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 210 Rev 1 4 NOTES ...
Page 218: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 218 Rev 1 4 NOTES ...
Page 234: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 234 Rev 1 4 NOTES ...
Page 258: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 258 Rev 1 4 NOTES ...
Page 272: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 272 Rev 1 4 NOTES ...
Page 286: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 286 Rev 1 4 NOTES ...
Page 308: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 308 Rev 1 4 NOTES ...
Page 340: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 340 Rev 1 4 NOTES ...
Page 348: ...C8051F120 1 2 3 4 5 6 7 C8051F130 1 2 3 348 Rev 1 4 NOTES ...