mc68hc05x4dw Freescale Semiconductor, Inc, mc68hc05x4dw Datasheet - Page 50

no-image

mc68hc05x4dw

Manufacturer Part Number
mc68hc05x4dw
Description
Xc68hc705x4 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Non-maskable
software interrupt
(SWI)
Resets, Interrupts and Low Power Modes
MC68HC05X4
Software interrupt (SWI)
CAN interrupt (CIRQ)
Core timer (CTIMER)
Programmable timer
Wired-OR interrupt
Source
Reset
RTI instruction (return from interrupt) causes the register contents to be
recovered from the stack and normal processing to resume.
Unlike reset, hardware interrupts do not cause the current instruction
execution to be halted, but are considered pending until the current
instruction is complete. The current instruction is the one already fetched
and being operated on. When the current instruction is complete, the
processor checks all pending hardware interrupts. If interrupts are not
masked (CCR I-bit clear) and the corresponding interrupt enable bit is
set, the processor proceeds with interrupt processing; otherwise, the
next instruction is fetched and executed.
If both an external interrupt and a timer interrupt are pending after an
instruction execution, the external interrupt is serviced first.
Table 1
Figure 2
The software interrupt (SWI) is an executable instruction and a
non-maskable interrupt: it is executed regardless of the state of the I-bit
in the CCR. If the I-bit is zero (interrupts enabled), SWI is executed after
interrupts that were pending when the SWI was fetched, but before
interrupts generated after the SWI was fetched. The SWI interrupt
service routine address is specified by the contents of memory locations
$1FFC and $1FFD.
Freescale Semiconductor, Inc.
For More Information On This Product,
Resets, Interrupts and Low Power Modes
shows the relative priority of all the possible interrupt sources.
Register
shows the interrupt processing flow.
CTCSR
Table 1. Interrupt priorities
CINT
PCR
TSR
Go to: www.freescale.com
WIF, OIF, EIF, TIF, RIF
ICF, OFC, TOF
CTOF, RTIF
Flags
WOIF
Vector address
$1FFC, $1FFD
$1FFE, $1FFF
$1FFA, $1FFB
$1FF8, $1FF9
$1FF6, $1FF7
$1FF4, $1FF5
Priority
highest
lowest
4-resets

Related parts for mc68hc05x4dw