English
Language : 

DS89C420-QCL Datasheet, PDF (91/139 Pages) Maxim Integrated Products – Ultra-High-Speed Flash Microcontroller User’s Guide
Ultra-High-Speed Flash
Microcontroller User’s Guide
SECTION 9: INTERRUPTS
The ultra-high-speed microcontroller family improves upon the traditional 8051 architecture by utilizing a five-priority interrupt system.
The five priority levels, from highest priority to lowest, are 4, 3, 2, 1, and 0. The power-fail interrupt, when enabled, always receives the
highest priority (level 4), while other interrupt sources can be configured to level 3, 2, 1, or 0. Each source has independent priority
bits, flag(s), interrupt vector, and enable. In addition, interrupts can be globally enabled (or disabled). The interrupt system is com-
patible with the original 8051 family, having all of the original interrupts available. A summary of all interrupt sources is provided in the
table below.
Table 9-1. Interrupt Summary
INTERRUPT
Power-fail
External interrupt 0
Timer 0 overflow
External interrupt 1
Timer 1 overflow
Serial port 0
Timer 2 overflow
Serial port 1
External interrupt 2
External interrupt 3
External interrupt 4
External interrupt 5
Watchdog interrupt
INTERRUPT
VECTOR
33h
03h
0Bh
13h
1Bh
23h
2Bh
3Bh
43h
4Bh
53h
5Bh
63h
NATURAL
ORDER
0 (highest)
1
2
3
4
5
6
7
8
9
10
11
12
FLAG
PFI (WDCON.4)
IE0 (TCON.1)**
TF0 (TCON.5)*
IE1 (TCON.3)**
TF1 (TCON.7)*
RI_0 (SCON0.0),
TI_0 (SCON0.1)
TF2 (T2CON.7)
EXF2(T2CON.6)
RI_1 (SCON1.0),
TI_1 (SCON1.1)
IE2 (EXIF.4)
IE3 (EXIF.5)
IE4 (EXIF.6)
IE5 (EXIF.7)
WDIF (WDCON.3)
ENABLE
EPFI (WDCON.5)
EX0 (IE.0)
ET0 (IE.1)
EX1 (IE.2)
ET1 (IE.3)
ES0 (IE.4)
ET2 (IE.5)
ES1 (IE.6)
EX2 (EIE.0)
EX3 (EIE.1)
EX4 (EIE.2)
EX5 (EIE.3)
EWDI (EIE.4)
PRIORITY
CONTROL
N/A
MPX0 (IP1.0)
LPX0 (IP0.0)
MPT0 (IP1.1)
LPT0 (IP0.1)
MPX1 (IP1.2)
LPX1 (IP0.2)
MPT1 (IP1.3)
LPT1 (IP0.3)
MPS0 (IP1.4)
LPS0 (IP0.4)
MPT2 (IP1.5)
LPT2 (IP0.5)
MPS1 (IP1.6)
LPS1 (IP0.6)
MPX2 (EIP1.0)
LPX2 (EIP0.0)
MPX3 (EIP1.1)
LPX3 (EIP0.1)
MPX4 (EIP1.2)
LPX4 (EIP0.2)
MPX5 (EIP1.3)
LPX5 (EIP0.3)
MPWDI (EIP1.4)
LPWDI (EIP0.4)
Unless marked, these flags must be cleared manually by software.
*Cleared automatically by hardware when the service routine is vectored to.
**If edge-triggered, cleared automatically by hardware when the service routine is vectored to. If level-triggered, flag follows the state of the pin.
INTERRUPT OVERVIEW
An interrupt allows the software to react to unscheduled or asynchronous events. When an interrupt occurs, the CPU is expected to
“service” the interrupt. This service takes the form of an interrupt service routine (ISR). The ISR resides at a predetermined address,
as shown in Table 9-1. When the interrupt occurs, the CPU vectors to this address and runs code created to service the interrupt. The
CPU stays in an interrupt service state until the return from interrupt instruction (RETI) is executed at completion of the ISR. When an
RETI is performed, the processorl returns to the instruction that would have been next when the interrupt occurred. Once an ISR has
begun, it can be interrupted only by a higher priority interrupt.
91 _____________________________________________________________________________________________