beautypg.com

Table 48 – Rainbow Electronics AT89C5132 User Manual

Page 37

background image

37

AT8xC5132

4173A–8051–08/02

Table 48. Priority Levels

A low-priority interrupt is always interrupted by a higher priority interrupt but not by
another interrupt of lower or equal priority. Higher priority interrupts are serviced before
lower priority interrupts. The response to simultaneous occurrence of equal priority inter-
rupts is determined by an internal hardware polling sequence detailed in Table 49. Thus
within each priority level there is a second priority structure determined by the polling
sequence. The interrupt control system is shown in Figure 21.

Table 49. Priority Within Same Level

IPHxx

IPLxx

Priority Level

0

0

0 Lowest

0

1

1

1

0

2

1

1

3 Highest

Interrupt Name

Priority Number

Interrupt Address

Vectors

Interrupt Request Flag

Cleared by Hardware

(H) or by Software (S)

INT0

1 (Highest Priority)

C:0003h

H if edge, S if level

Timer 0

2

C:000Bh

H

INT1

3

C:0013h

H if edge, S if level

Timer 1

4

C:001Bh

H

Serial Port

5

C:0023h

S

Audio Interface

7

C:0033h

S

MMC Interface

8

C:003Bh

S

SPI Controller

10

C:004Bh

S

A-to-D Converter

11

C:0053h

S

Keyboard

12

C:005Bh

S

Reserved

13

C:0063h

-

USB

14

C:006Bh

S

Reserved

15 (Lowest Priority)

C:0073h

-