English
Language : 

AT89C51AC2_08 Datasheet, PDF (94/121 Pages) ATMEL Corporation – Enhanced 8-bit Microcontroller with 32 KB Flash Memory
Each of the interrupt sources can be individually enabled or disabled by setting or clear-
ing a bit in the Interrupt Enable register. This register also contains a global disable bit
which must be cleared to disable all the interrupts at the same time.
Each interrupt source can also be individually programmed to one of four priority levels
by setting or clearing a bit in the Interrupt Priority registers. The Table below shows the
bit values and priority levels associated with each combination.
Table 68. Priority Level Bit Values
IPH.x
0
0
1
1
IPL.x
0
1
0
1
Interrupt Level Priority
0 (Lowest)
1
2
3 (Highest)
A low-priority interrupt can be interrupted by a high priority interrupt but not by another
low-priority interrupt. A high-priority interrupt cannot be interrupted by any other interrupt
source.
If two interrupt requests of different priority levels are received simultaneously, the
request of the higher priority level is serviced. If interrupt requests of the same priority
level are received simultaneously, an internal polling sequence determines which
request is serviced. Thus within each priority level there is a second priority structure
determined by the polling sequence, see Table 69.
Table 69. Interrupt Priority Within level
Interrupt Name
external interrupt (INT0)
Timer 0 (TF0)
external interrupt (INT1)
Timer 1 (TF1)
PCA (CF or CCFn)
UART (RI or TI)
Timer 2 (TF2)
ADC (ADCI)
Interrupt Address Vector
0003h
000Bh
0013h
001Bh
0033h
0023h
002Bh
0043h
Priority Number
1
2
3
4
5
6
7
9
94 A/T89C51AC2
4127H–8051–02/08