English
Language : 

MC9S12KG128_10 Datasheet, PDF (513/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Chapter 17 Interrupt (INTV1) Block Description
17.6.3 Interrupt Priority Decoder
The priority decoder evaluates all interrupts pending and determines their validity and priority. When the
CPU requests an interrupt vector, the decoder will provide the vector for the highest priority interrupt
request. Because the vector is not supplied until the CPU requests it, it is possible that a higher priority
interrupt request could override the original exception that caused the CPU to request the vector. In this
case, the CPU will receive the highest priority vector and the system will process this exception instead of
the original request.
NOTE
Care must be taken to ensure that all exception requests remain active until
the system begins execution of the applicable service routine; otherwise, the
exception request may not be processed.
If for any reason the interrupt source is unknown (e.g., an interrupt request becomes inactive after the
interrupt has been recognized but prior to the vector request), the vector address will default to that of the
last valid interrupt that existed during the particular interrupt sequence. If the CPU requests an interrupt
vector when there has never been a pending interrupt request, the INT will provide the software interrupt
(SWI) vector address.
17.7 Exception Priority
The priority (from highest to lowest) and address of all exception vectors issued by the INT upon request
by the CPU is shown in Table 17-5.
Table 17-5. Exception Vector Map and Priority
Vector Address
0xFFFE–0xFFFF
0xFFFC–0xFFFD
0xFFFA–0xFFFB
0xFFF8–0xFFF9
0xFFF6–0xFFF7
0xFFF4–0xFFF5
0xFFF2–0xFFF3
0xFFF0–0xFF00
Source
System reset
Crystal monitor reset
COP reset
Unimplemented opcode trap
Software interrupt instruction (SWI) or BDM vector request
XIRQ signal
IRQ signal
Device-specific I-bit maskable interrupt sources (priority in descending order)
MC9S12KG128 Data Sheet, Rev. 1.16
Freescale Semiconductor
513