English
Language : 

MC68HC908QY4_10 Datasheet, PDF (112/168 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
System Integration Module (SIM)
CLI
LDA #$FF
BACKGROUND ROUTINE
INT1
PSHH
PULH
RTI
INT1 INTERRUPT SERVICE ROUTINE
INT2
PSHH
INT2 INTERRUPT SERVICE ROUTINE
PULH
RTI
Figure 13-10. Interrupt Recognition Example
13.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.
13.6.2 Interrupt Status Registers
The flags in the interrupt status registers identify maskable interrupt sources. Table 13-3 summarizes the
interrupt sources and the interrupt status register flags that they set. The interrupt status registers can be
useful for debugging.
Table 13-3. Interrupt Sources
Priority
Source
Highest Reset
SWI instruction
IRQ pin
Timer channel 0 interrupt
Timer channel 1 interrupt
Timer overflow interrupt
Keyboard interrupt
Lowest ADC conversion complete interrupt
Flag
—
—
IRQF
CH0F
CH1F
TOF
KEYF
COCO
Mask(1)
—
—
IMASK
CH0IE
CH1IE
TOIE
IMASKK
AIEN
INT
Register
Flag
—
—
IF1
IF3
IF4
IF5
IF14
IF15
Vector
Address
$FFFE–$FFFF
$FFFC–$FFFD
$FFFA–$FFFB
$FFF6–$FFF7
$FFF4–$FFF5
$FFF2–$FFF3
$FFE0–$FFE1
$FFDE–$FFDF
1. The I bit in the condition code register is a global mask for all interrupt sources except the SWI
instruction.
MC68HC908QY/QT Family Data Sheet, Rev. 6
112
Freescale Semiconductor