English
Language : 

MC68HC908QC16_07 Datasheet, PDF (162/274 Pages) Freescale Semiconductor, Inc – Microcontrollers
System Integration Module (SIM)
14.6.1.2 SWI Instruction
The SWI instruction is a non-maskable instruction that causes an interrupt regardless of the state of the
interrupt mask (I bit) in the condition code register.
NOTE
A software interrupt pushes PC onto the stack. A software interrupt does
not push PC – 1, as a hardware interrupt does.
14.6.2 Interrupt Status Registers
The flags in the interrupt status registers identify maskable interrupt sources. Table 14-3 summarizes the
interrupt sources and the interrupt status register flags that they set. The interrupt status registers can be
useful for debugging.
Table 14-3. Interrupt Sources
Priority
Source
Flag
Mask(1)
INT
Register Flag
Vector
Address
Highest Reset
—
—
—
$FFFE–$FFFF
SWI instruction
—
—
—
$FFFC–$FFFD
IRQ pin
IRQF
IMASK
IF1
$FFFA–$FFFB
TIM1 channel 0 interrupt
CH0F
CH0IE
IF3
$FFF6–$FFF7
TIM1 channel 1 interrupt
CH1F
CH1IE
IF4
$FFF4–$FFF5
TIM1 overflow interrupt
TOF
TOIE
IF5
$FFF2–$FFF3
TIM1 channel 2 vector
CH2F
CH2IE
IF6
$FFF0–$FFF1
TIM1 channel 3 vector
CH3F
CH3IE
IF7
$FFEE–$FFEF
ESCI error vector
OR, HF,
FE, PE
ORIE, NEIE,
FEIE, PEIE
IF9
$FFEA–$FFEB
ESCI receive vector
SCRF
SCRIE
IF10
$FFE8–$FFE9
ESCI transmit vector
SCTE, TC
SCTIE, TCIE
IF11
$FFE6–$FFE7
SPI receive
SPRF, OVRF, MODF SPRIE, ERRIE
IF12
$FFE4–$FFE5
SPI transmit
SPTE
SPTIE
IF13
$FFE2–$FFE3
Keyboard interrupt
KEYF
IMASKK
IF14
$FFE0–$FFE1
ADC conversion complete interrupt
COCO
AIEN
IF15
$FFDE–$FFDF
TIM2 channel 0 interrupt flag
CH0F
CH0IE
IF16
$FFDC–$FFDD
TIM2 channel 1 interrupt flag
CH1F
CH1IE
IF17
$FFDA–$FFDB
TIM2 overflow interrupt flag
TOF
TOIEINT
IF18
$FFD8–$FFD9
Lowest Periodic wakeup interrupt flag
PWUF
PWUIE
IF19
$FFD6–$FFD7
1. The I bit in the condition code register is a global mask for all interrupt sources except the SWI instruction.
MC68HC908QC16 • MC68HC908QC8 • MC68HC908QC4 Data Sheet, Rev. 3
162
Freescale Semiconductor