Interrupt Controller (INTC)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
10-3
Two modes are available to determine the vector for the interrupt request source: software vector mode
and hardware vector mode. In software vector mode, as shown in
common interrupt exception handler whose location is determined by an address derived from special
purpose registers IVPR and IVOR4. The interrupt exception handler reads the INTC_IACKR to determine
the vector of the interrupt request source. Typical program flow for software vector mode is shown in
.
Figure 10-3. Program Flow–Software Vector Mode
In hardware vector mode, the core branches to an interrupt exception handler unique for each interrupt
request source. Typical program flow for hardware vector mode is shown in
.
Figure 10-4. Program Flow–Hardware Vector Mode
ISR
ISR 0 address
ISR 0
ISR
ISR 1
•
•
•
ISR
ISR n
•
•
•
ISR
ISR N
ISR n address
ISR N address
ISR 1 address
•
•
•
•
•
•
Prolog
(Including
using IACKR
to get vector
then bl ISR_n
Epilog
IVPR + IVOR4
IRQ[n]
taken
IACKR
Instructions
Address
Instructions
Address
VTBA
N is the maximum number of usable interrupt vectors. which equals 231, and includes 16 reserved IRQ vectors
and eight software-settable IRQ vectors. Because the memory is mapped in four-byte words, the total number of
interrupt vectors must be a multiple of four, therefore one more interrupt vector exists to complete the word. This
results in a total of 232 interrupt vectors. However, interrupt vector 232 is reserved and not available.
Prolog
b handler 0
handler 0
ISR
•
•
•
•
•
•
ISR
•
•
•
•
•
•
Instructions
NOTE:
‘b ISR_n’ is technically
Epilog
Prolog
Epilog
ISR
Prolog
Epilog
handler n
handler N
b handler 1
•
•
•
b handler 2
•
•
•
b handler
n
b handler N
IVPR + 0x0000
IVPR + 0x0010
IVPR + 0x0020
IVPR +
n
[0x0010]
Refer to definition of N
IRQ[n]
taken
Address
Address IVPR + 0x12C0 contains the 231 interrupt vector and is the last
usable interrupt vector address in the interrupt memory map for this device.
part of the handler.
N is the maximum number of usable interrupt vectors. which equals 231(address is IVPR + 0x12C0), and includes
16 reserved IRQ vectors and eight software-settable IRQ vectors. Because the memory is mapped in four-byte
words, the total number of interrupt registers must be a multiple of four, therefore another interrupt vector exists in
memory to complete the word for a total of 232 interrupt vectors. However, the 232 interrupt vector is reserved and
is not available.
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...