C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D
90
Rev. 1.3
9.3.5. Interrupt Register Descriptions
The SFRs used to enable the interrupt sources and set their priority level are described below. Refer to the
datasheet section associated with a particular on-chip peripheral for information regarding valid interrupt
conditions for the peripheral and the behavior of its interrupt-pending flag(s).
Table 9.4. Interrupt Summary
Interrupt Source
Interrupt
Vector
Priority
Order
Pending Flag
Bit ad
dr
es
sa
ble
?
Clear
ed
b
y
HW?
Enable
Flag
Priority
Control
Reset
0x0000
Top
None
N/A
N/A
Always
Enabled
Always
Highest
External Interrupt 0
(INT0)
0x0003
0
IE0 (TCON.1)
Y
Y
EX0 (IE.0) PX0 (IP.0)
Timer 0 Overflow
0x000B
1
TF0 (TCON.5)
Y
Y
ET0 (IE.1) PT0 (IP.1)
External Interrupt 1
(INT1)
0x0013
2
IE1 (TCON.3)
Y
Y
EX1 (IE.2) PX1 (IP.2)
Timer 1 Overflow
0x001B
3
TF1 (TCON.7)
Y
Y
ET1 (IE.3) PT1 (IP.3)
UART0
0x0023
4
RI0 (SCON0.0)
TI0 (SCON0.1)
Y
N
ES0 (IE.4) PS0 (IP.4)
Timer 2 Overflow
0x002B
5
TF2H (TMR2CN.7)
TF2L (TMR2CN.6)
Y
N
ET2 (IE.5) PT2 (IP.5)
SPI0
0x0033
6
SPIF (SPI0CN.7)
WCOL
(SPI0CN.6)
MODF (SPI0CN.5)
RXOVRN (SPI0CN.4)
Y
N
ESPI0
(IE.6)
PSPI0
(IP.6)
SMB0
0x003B
7
SI (SMB0CN.0)
Y
N
ESMB0
(EIE1.0)
PSMB0
(EIP1.0)
USB0
0x0043
8
Special
N
N
EUSB0
(EIE1.1)
PUSB0
(EIP1.1)
ADC0 Window
Compare
0x004B
9
AD0WINT
(ADC0CN.3)
Y
N
EWADC0
(EIE1.2)
PWADC0
(EIP1.2)
ADC0 Conversion
Complete
0x0053
10
AD0INT (ADC0CN.5)
Y
N
EADC0
(EIE1.3)
PADC0
(EIP1.3)
Programmable Counter
Array
0x005B
11
CF (PCA0CN.7)
CCFn (PCA0CN.n)
Y
N
EPCA0
(EIE1.4)
PPCA0
(EIP1.4)
Comparator0
0x0063
12
CP0FIF (CPT0CN.4)
CP0RIF (CPT0CN.5)
N
N
ECP0
(EIE1.5)
PCP0
(EIP1.5)
Comparator1
0x006B
13
CP1FIF (CPT1CN.4)
CP1RIF (CPT1CN.5)
N
N
ECP1
(EIE1.6)
PCP1
(EIP1.6)
Timer 3 Overflow
0x0073
14
TF3H (TMR3CN.7)
TF3L (TMR3CN.6)
N
N
ET3
(EIE1.7)
PT3
(EIP1.7)
VBUS Level
0x007B
15
N/A
N/A
N/A
EVBUS
(EIE2.0)
PVBUS
(EIP2.0)
UART1
0x0083
16
RI1 (SCON1.0)
TI1 (SCON1.1)
N
N
ES1
(EIE2.1)
PS1
(EIP2.1)