
Programmable Interrupt Controller
15-18
Élan™SC520 Microcontroller User’s Manual
NMI (as indicated in Figure 15-1) polarity inversion of the interrupt sources if needed,
different interrupt mode per channel, global interrupt mode enables, or master NMI enable.
These registers are listed in Table 15-2 on page 15-4.
It is recommended that EOIs be issued for all the channels prior to using the Set Interrupt-
Enable Flag (STI) instruction. This is to clear all spurious In-Service (xISR) register bits that
are potentially set during the initialization phase before enabling the CPU to accept interrupt
requests.
15.5.8.2
PC/AT Configuration
To configure the ÉlanSC520 microcontroller’s PIC to be PC/AT-compatible, the same
configuration sequence detailed in “Programming” on page 15-16 is observed with the
following exceptions:
1. The SNGL bit must be cleared to 0 in the Master PIC Initialization Control Word 1
(MPICICW1) register (Port 0020h).
2. The S2 and S5 bits must be set to 1 and cleared to 0, respectively, in the Master PIC
Initialization Control Word 3 (MPICICW3) register (Port 0021h).
3. The M_GINT_MODE and S1_GINT_MODE bits must be set to 1 in the Interrupt Control
(PICICR) register (MMCR offset D00h).
4. The base interrupt vector numbers 08h and 70h must be written for the Master and Slave
1 PIC, respectively, to the Master PIC Initialization Control Word 2 (MPICICW2) register
(Port 0021h) and the Slave 1 PIC Initialization Control Word 2 (S1PICICW2) register
(Port 00A1h). This correctly programs the T7–T3 bit field in those registers, which
corresponds to bits 7–3 of the 8-bit base interrupt vector number. This also clears the
A10–A8 bit field (bits 2–0), which should be 0 for PC-AT-compatible interrupts.
5. The SFNM and AEOI bits must be cleared to 0 in the Master PIC Initialization Control
Word 4 (MPICICW4) register (Port 0021h) and the Slave 1 PIC Initialization Control
Word 4 (S1PICICW4) register (Port 00A1h).
6. Any interrupt sources used in the system must be mapped to appropriate interrupt
priorities via the interrupt mapping registers. Table 15-4 on page 15-12 correlates the
PC/AT IRQs and I/O devices to the ÉlanSC520 microcontroller’s interrupt priorities.
In this case, only the Slave 1 controller is cascaded to the Master controller via input IR2.
The Slave 2 controller is logically removed from the Master controller, and the highest
priority channel originally hooked to the former is now automatically routed to input IR5 of
the latter, thereby preserving the architecture of the PC/AT interrupt controller.
15.5.9
Software Considerations
15.5.9.1
Interrupt Sharing
Interrupt sharing increases system complexity and involves more software overhead.
Thorough understanding of performance implications to a system implementing interrupt
sharing is needed. For multiple interrupt requests sharing a line, the system designer needs
to be fully aware of the latency involved and the implications in interrupt sharing.
For example, in the worst case scenario, it may take an unacceptably long amount of time
before the CPU is able to service the first interrupt request hooked at the very beginning
of the interrupt chain (created during the interrupt hooking process). This problem is
compounded further if one or more interrupt requests before it are still pending. This can
be alleviated somewhat by prioritizing or re-ordering the more critical interrupt table entries
later in the chain during the interrupt hooking process.
Содержание 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...