
Programmable Interrupt Controller
Élan™SC520 Microcontroller User’s Manual
15-13
and the internal ignne signal is subsequently deasserted. The interrupt request and ignne
signal are also cleared by a system reset.
15.5.3.4
Disabling the Slave Controllers
Each of the slave controllers can also be disabled via software, and interrupt requests can
be easily routed to the associated interrupt channels of the Master controller. For example,
if the Slave 1 controller is disabled, interrupt request irq_p3 that is hooked to the priority 3
input of the same controller is visible to the Master controller channel input IR2. Similarly,
if the Slave 2 controller is also disabled, interrupt request irq_p13 is visible to the Master
controller channel input IR5 (see Figure 15-1 on page 15-3). In other words, both of these
interrupt requests would bypass the slave controllers. In this manner, a very simple interrupt
configuration is realized via software, in which eight or fewer interrupt priorities can be
implemented using just the Master controller. As such, only one EOI needs to be generated
to minimize software overhead and improve latency of the interrupt cycle.
For more information about this topic, see “Software Considerations” on page 15-18.
15.5.4
Edge-Triggered or Level-Sensitive Interrupts
Each of the 22 interrupt priority levels can be configured as an edge-triggered or level-
sensitive interrupt. This departs from the standard implementation of the individual interrupt
controller, whereby a global bit for each controller determines the interrupt type for all the
incoming interrupt requests.
In the ÉlanSC520 microcontroller, each individual interrupt controller is enhanced to provide
this interrupt type recognition capability on a per channel basis. A bit is provided for each
of the 22 interrupt channels for interrupt type programmability. The selection between global
and per-channel interrupt mode is done via software. However, the original global bit is
retained for the individual controllers, such that all of the interrupts for each device can be
restored globally as either edge- or level-sensitive. This is useful for PC/AT compatibility,
especially for the Master and Slave 1 controllers.
Regardless of whether the controller is programmed for edge-sensitive or level-sensitive
mode, the interrupt request source must continue asserting the interrupt request until the
CPU acknowledges the interrupt. Because this acknowledgment is not viewable externally
to the ÉlanSC520 microcontroller, it is recommended that external interrupt sources provide
a mechanism through which the interrupt service routine can deassert the interrupt request
via software.
15.5.5
Interrupt Sharing
The controllers support sharing interrupt inputs from multiple interrupt sources. Interrupt
sharing is applicable to all internal and external interrupt sources. To put it simply, since
OR gates are used to map interrupt sources to interrupt channels, it is easy to map more
than one interrupt source to a single interrupt channel. This is shown in Figure 15-3.
Level-sensitive interrupt sharing is typically implemented by tying multiple interrupt outputs
using an open drain or open collector output to a single interrupt input pin. Of course, this
can be done externally to the ÉlanSC520 microcontroller in the conventional manner.
However, interrupt sharing can also be easily configured internally to the microcontroller,
merely by mapping multiple interrupt sources to the same interrupt channel. The channel’s
OR gates inherently “share” the interrupt channel among multiple interrupts. In this scenario,
an interrupt-pending status bit must be implemented in each device. All internal peripherals
have interrupt status bits.
Содержание 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...