|
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
|
▷ |