TS80C52X2
6.5 Interrupt System
The TS80C52X2 has a total of 6 interrupt vectors: two external interrupts (INT0 and INT1), three timer interrupts
(timers 0, 1 and 2) and the serial port interrupt. These interrupts are shown in Figure 9.
High priority
interrupt
IPH, IP
3
INT0
IE0
IE1
0
3
0
3
0
3
0
3
0
TF0
INT1
TF1
Interrupt
polling
sequence, decreasing
from high to low priority
RI
TI
3
0
TF2
EXF2
Low priority
interrupt
Individual Enable
Global Disable
Figure 9. Interrupt Control System
Each of the interrupt sources can be individually enabled or disabled by setting or clearing a bit in the Interrupt
Enable register (See Table 11.). This register also contains a global disable bit, which must be cleared to disable
all interrupts at once.
Each interrupt source can also be individually programmed to one out of four priority levels by setting or clearing
a bit in the Interrupt Priority register (See Table 12.) and in the Interrupt Priority High register (See Table 13.).
shows the bit values and priority levels associated with each combination.
24
Rev. B - Jan. 25, 1999
Preliminary