Epic Direct Interrupt Mode - Motorola MPC8240 User Manual

Integrated host processor with integrated pci
Table of Contents

Advertisement

11.5 EPIC Direct Interrupt Mode

In direct interrupt mode, the IRQ[0:4] signals represent external interrupts that are
controlled and prioritized by the five IRQ vector/priority registers (IVPR0–IVPR4), and the
five IRQ destination registers (IDR0–IDR4). The external interrupts can be programmed
for either level- or edge-sensitive activation and either polarity. The direct interrupt mode
is selected when EICR[SIE] = 0. Note that EICR[SIE] only has meaning when
GCR[M] = 1 (direct mode is a subset of mixed-mode operation).
11.6 EPIC Serial Interrupt Interface
The serial interrupt mode is selected when EICR[SIE] = 1. Note that EICR[SIE] only has
meaning when GCR[M] = 1 (serial interrupt mode is also a subset of mixed-mode
operation). When the MPC8240 is in serial interrupt mode, 16 interrupt sources are
supported through the following serial interrupt signals (that are multiplexed with the
IRQ[0:3] input signals used in direct interrupt mode):
• Serial interrupt (S_INT) input signal
• Serial clock (S_CLK) output signal
• Serial reset (S_RST) output signal
• Serial frame (S_FRAME) output signal
The 16 serial interrupts are controlled and prioritized by the 16 serial vector/priority
registers (SVPR0–15) and the 16 serial destination registers (SDR0–15).
11.6.1 Sampling of Serial Interrupts
When the EPIC unit is programmed for serial interrupts, 16 sources are sampled through
the S_INT input signal. Each source (0–15) is allocated a one-cycle time slot in a sequence
of 16 cycles in which to request an interrupt. The serial interrupt interface is clocked by the
EPIC S_CLK output. This clock can be programmed to run at 1/2 to 1/14 of the MPC8240's
SDRAM_CLK frequency by appropriately setting a 3-bit field in the serial interrupt
configuration register. See Section 11.9.3, "EPIC Interrupt Configuration Register
(EICR)." Extreme care should be used with regard to board noise problems if a frequency
above 33 MHz is chosen. All references to the clock and to cycles in this subsection refer
to the S_CLK clock.
When EPIC is switched to serial mode by setting EICR[SIE] = 1, a 16-cycle sequence
begins 4 S_CLK cycles after EPIC outputs a 2-cycle high pulse through the S_RST output
signal. The 16-cycle sequence keeps repeating; after going from interrupt source cycle
count of 0, 1, 2, 3, 4,... 15, the count immediately returns to 0, 1, 2, and so on, with no
S_CLK delays between cycle count 15 and the next cycle count 0. Each time the sequence
count is pointing to interrupt source 0, the S_FRAME signal is active. S_FRAME is
provided to guarantee synchronization between the MPC8240's EPIC unit and the serial
interrupt source device.
Chapter 11. Embedded Programmable Interrupt Controller (EPIC) Unit
EPIC Direct Interrupt Mode
11-11

Advertisement

Table of Contents
loading

Table of Contents