1 interrupt controller theory of operation, 1 interrupt controller theory of operation -2 – Motorola ColdFire MCF5281 User Manual

Page 192

Advertising
background image

Interrupt Controller Modules

10-2

Freescale Semiconductor

Section 2.3.3.1, “Exception Stack Frame Definition

” for more information on the stack frame format).

After the exception stack frame is stored in memory, the processor accesses the 32-bit pointer from the
exception vector table using the vector number as the offset, and then jumps to that address to begin
execution of the service routine. After the status register is stored in the exception stack frame, the SR[I]
mask field is set to the level of the interrupt being acknowledged, effectively masking that level and all
lower values while in the service routine. For many peripheral devices, the processing of the IACK cycle
directly negates the interrupt request, while other devices require that request to be explicitly negated
during the processing of the service routine.

For this device, the processing of the interrupt acknowledge cycle is fundamentally different than previous
68K/ColdFire cores. In the new approach, all IACK cycles are directly handled by the interrupt controller,
so the requesting peripheral device is not accessed during the IACK. As a result, the interrupt request must
be explicitly cleared in the peripheral during the interrupt service routine. For more information, see

Section 10.1.1.3, “Interrupt Vector Determination

.”

Unlike the M68000 family, all ColdFire processors guarantee that the first instruction of the service routine
is executed before sampling for interrupts is resumed. By making this initial instruction a load of the SR,
interrupts can be safely disabled, if required.

During the execution of the service routine, the appropriate actions must be performed on the peripheral
to negate the interrupt request.

For more information on exception processing, see the ColdFire Programmer’s Reference Manual at

http://www.freescale.com/coldfire

.

10.1.1

Interrupt Controller Theory of Operation

To support the interrupt architecture of the 68K/ColdFire programming model, the combined 63 interrupt
sources are organized as 7 levels, with each level supporting up to 9 prioritized requests. Consider the
interrupt priority structure shown in

Table 10-1

, which orders the interrupt levels/priorities from highest

to lowest.

Table 10-1. Interrupt Priority Scheme

Interrupt

Level

ICR[IL]

Priority

ICR[IP]

Supported Interrupt

Sources

7

7

#8–63

6

5

4

— (Mid-point)

#7 (IRQ7)

3

#8–63

2

1

0

MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3

Advertising
This manual is related to the following products: