
Programmable Interrupt Controller
Élan™SC520 Microcontroller User’s Manual
15-7
15.5
OPERATION
15.5.1
Interrupt Flow Sequence
The following describes the typical interrupt flow sequence in a system that uses the
ÉlanSC520 microcontroller’s PIC.
1. When a device generates an interrupt request that translates to either a rising edge or
level High at the mapped interrupt channel, the corresponding Interrupt Request (xIR)
register bit is set.
2. The PIC performs a check on its internal Interrupt Mask (xINTMSK) register and In-
Service (xISR) register. If this requesting interrupt is not masked off and if another
interrupt of the same or higher priority is not in progress, the Master controller requests
an interrupt from the CPU.
3. If the IF bit is set in the CPU’s Flags register (via the STI instruction), the CPU
acknowledges the interrupt. At this time, the PIC places the 8-bit interrupt vector of the
currently active highest-priority interrupt request on the data bus, and the corresponding
In-Service (xISR) register bit is set in the PIC. If the IF bit is disabled, the interrupt is
ignored.
Note that the interrupt request must remain active at least until the first CPU acknowledge
pulse occurs before it is considered as a valid interrupt request. If no interrupt request is
active when the acknowledgement occurs, then the affected master or slave PIC returns
the interrupt entry number associated with its IR7 input. However, in this circumstance no
In-Service (xISR) register bit is set. This is known as the spurious interrupt condition and
can be detected by the interrupt handler for priority level P22 (for the Master controller),
P10 (for the Slave 1 controller), and P20 (for the Slave 2 controller). The Interrupt Request
(xIR) register bit is always set for the duration of the interrupt request, regardless of whether
it is a spurious or a valid interrupt request.
Master PIC Initialization
Control Word 3 (ICW3)
Slave 2 PIC Initialization
Control Word 3 (ICW3)
Slave 1 PIC Initialization
Control Word 3 (ICW3)
MPICICW3
S2PICICW3
S1PICICW3
0021h
0025h
00A1h
Slave cascading channel select (MPICICW3)
Master PIC Initialization
Control Word 4 (ICW4)
Slave 2 PIC Initialization
Control Word 4 (ICW4)
Slave 1 PIC Initialization
Control Word 4 (ICW4)
MPICICW4
S2PICICW4
S1PICICW4
0021h
0025h
00A1h
Nested mode, EOI mode
Master PIC Interrupt Mask
(OCW1)
Slave 2 PIC Interrupt Mask
(OCW1)
Slave 1 PIC Interrupt Mask
(OCW1)
MPICINTMSK
S2PICINTMSK
S1PICINTMSK
0021h
0025h
00A1h
Channel interrupt mask
Floating Point Error Interrupt
Clear
FPUERRCLR
F0h
Clear FPU error interrupt
Table 15-3
Programmable Interrupt Controller Registers—Direct-Mapped (Continued)
Register
Mnemonic
I/O Address Function
Содержание Elan SC520
Страница 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Страница 4: ...iv lan SC520 Microcontroller User s Manual...
Страница 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Страница 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Страница 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Страница 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Страница 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Страница 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Страница 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Страница 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Страница 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Страница 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Страница 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Страница 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Страница 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Страница 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...