28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Interrupt Controller Module<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

7.8.1 Interrupt Sources and Prioritization<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

7.8.2 Fast and Normal Interrupt Requests<br />

Each interrupt source in the system sends a unique signal to the interrupt<br />

controller. Up to 40 interrupt sources are supported. Each interrupt<br />

source can be programmed to one of 32 priority levels using PLSR in the<br />

interrupt controller. The highest priority level is 31 and lowest priority<br />

level is 0. By default, each interrupt source is assigned to the priority<br />

level 0. Each interrupt source is associated with a 5-bit priority level<br />

select value that selects one of 32 priority levels. The interrupt controller<br />

uses the priority levels as the basis for the generation of all interrupt<br />

signals to the M•CORE processor.<br />

Interrupt requests may be forced by software by writing to IFRH and<br />

IFRL. Each bit of IFRH and IFRL is logically ORed with the<br />

corresponding interrupt source signal before the priority level select<br />

logic. To negate the forced interrupt request, the interrupt handler can<br />

clear the appropriate IFR bit. IPR reflects the state of each priority level.<br />

FIER allows individual enabling or masking of pending fast interrupt<br />

requests. FIER is logically ANDed with IPR, and the result is stored in<br />

FIPR. FIPR bits are bit-wise ORed together and inverted to form the fast<br />

interrupt signal routed to the M•CORE processor. The FIPR allows<br />

software to quickly determine the highest priority pending fast interrupt.<br />

The output of FIPR also feeds into a 32-to-5 priority encoder to generate<br />

the vector number to present to the M•CORE processor if vectored<br />

interrupts are required.<br />

NIER allows individual enabling or masking of pending normal interrupt<br />

requests. NIER is logically ANDed with IPR, and the result is stored in<br />

NIPR. NIPR bits are bit-wise ORed together and inverted to form the<br />

normal interrupt signal routed to the M•CORE processor. The normal<br />

interrupt signal is only asserted if the fast interrupt signal is negated. The<br />

NIPR allows software to quickly determine the highest priority pending<br />

normal interrupt. The output of NIPR also feeds into a 32-to-5 priority<br />

encoder to generate the vector number to present to the M•CORE<br />

processor if vectored interrupts are required. If the fast interrupt signal is<br />

asserted, then the vector number is determined by the highest priority<br />

fast interrupt.<br />

Technical Data <strong>MMC2107</strong> – Rev. 2.0<br />

168 Interrupt Controller Module MOTOROLA<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!