
Interrupts and Interrupt Controller (INTC)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor
10-41
10.5.4
Order of Execution
An ISR with a higher priority can preempt an ISR with a lower priority, regardless of the unique vectors
associated with each of their peripheral or software settable interrupt requests. However, if multiple
peripheral or software settable interrupt requests are asserted, more than one has the highest priority, and
that priority is high enough to cause preemption, the INTC selects the one with the lowest unique vector
regardless of the order in time that they asserted. However, the ability to meet deadlines with this
scheduling scheme is no less than if the ISRs execute in the time order that their peripheral or software
settable interrupt requests asserted.
shows the order of execution of both ISRs with different priorities and the
same priority.
Table 10-13. Order of ISR Execution Example
Step#
Step Description
Code Executing at End of Step
PRI in
INTC_CPR
at End of
Step
RTOS ISR108
1
1
ISR108 executes for peripheral interrupt request 100 because the first eight ISRs are for software settable interrupt requests.
ISR208 ISR308 ISR408
Interrupt
Exception
Handler
1
RTOS at priority 0 is executing.
X
0
2
Peripheral interrupt request 100 at priority 1
asserts. Interrupt taken.
X
1
3
Peripheral interrupt request 400 at priority 4 is
asserts. Interrupt taken.
X
4
4
Peripheral interrupt request 300 at priority 3 is
asserts.
X
4
5
Peripheral interrupt request 200 at priority 3 is
asserts.
X
4
6
ISR408 completes. Interrupt exception
handler writes to INTC_EOIR_PRCn.
X
1
7
Interrupt taken. ISR208 starts to execute,
even though peripheral interrupt request 300
asserted first.
X
3
8
ISR208 completes. Interrupt exception
handler writes to INTC_EOIR_PRCn.
X
1
9
Interrupt taken. ISR308 starts to execute.
X
3
10
ISR308 completes. Interrupt exception
handler writes to INTC_EOIR_PRCn.
X
1
11
ISR108 completes. Interrupt exception
handler writes to INTC_EOIR_PRCn.
X
0
12
RTOS continues execution.
X
0
Summary of Contents for PXN2020
Page 1: ...PXN20 Microcontroller Reference Manual Devices Supported PXN2020 PXN2120 PXN20RM Rev 1 06 2011...
Page 42: ...PXN20 Microcontroller Reference Manual Rev 1 lxiv Freescale Semiconductor...
Page 64: ...Introduction PXN20 Microcontroller Reference Manual Rev 1 1 22 Freescale Semiconductor...
Page 112: ...Signal Description PXN20 Microcontroller Reference Manual Rev 1 3 44 Freescale Semiconductor...
Page 118: ...Resets PXN20 Microcontroller Reference Manual Rev 1 4 6 Freescale Semiconductor...
Page 372: ...e200z6 Core Z6 PXN20 Microcontroller Reference Manual Rev 1 13 8 Freescale Semiconductor...
Page 412: ...e200z0 Core Z0 PXN20 Microcontroller Reference Manual Rev 1 14 14 Freescale Semiconductor...
Page 821: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 27 49...
Page 822: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 27 50 Freescale Semiconductor...
Page 1376: ...Memory Map PXN20 Microcontroller Reference Manual Rev 1 A 118 Freescale Semiconductor...