mc68hc05l25 Freescale Semiconductor, Inc, mc68hc05l25 Datasheet - Page 42

no-image

mc68hc05l25

Manufacturer Part Number
mc68hc05l25
Description
M68hc05 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Interrupts
An RTI instruction is used to signify when the interrupt software service routine is completed. The RTI
instruction causes the register contents to be recovered from the stack and normal processing to resume
at the next instruction that was to be executed when the interrupt took place.
sequence of events that occurs during interrupt processing.
6.3 Reset Interrupt Sequence
The reset function is not in the strictest sense an interrupt; however, it is acted upon in a similar manner
as shown in
program to vector to its starting address, which is specified by the contents of memory locations $1FFE
through $1FFF. The I bit in the condition code register also is set. The MCU is configured to a known state
during this type of reset as previously described in
6.4 Software Interrupt (SWI)
The SWI is an executable instruction and a nonmaskable interrupt since it is executed regardless of the
state of the I bit in the CCR. If the I bit is zero (interrupts enabled), the SWI instruction executes after
interrupts which were pending before the SWI was fetched or before interrupts generated after the SWI
was fetched. The interrupt service routine address is specified by the contents of memory locations
$1FFC and $1FFD.
6.5 Hardware Interrupts
All hardware interrupts except reset are maskable by the I bit in the CCR. If the I bit is set, all hardware
interrupts (internal and external) are disabled. Clearing the I bit enables the hardware interrupts. Two
types of hardware interrupts are explained in the following sections.
6.6 External Interrupt (IRQ)
The IRQ pin provides an asynchronous interrupt to the CPU. The IRQ pin is enabled by the IRQE bit in
the INTCR. Also see
memory locations $1FFA:$1FFB.
CPU instructions BIH and BIL test the pin state of the PC3/IRQ pin.
6.6.1 External Interrupt Trigger Condition
External interrupt (IRQ) is activated by the negative-edged signal.
The limit on the minimum pulse width (t
the interrupt service routine's service time + 21 machine cycles.
42
Figure
PC3/IRQ
6-1. A low level input on the RESET pin or internally generated RST signal causes the
H
L
7.4 Port
C. The interrupt service routine address is specified by the contents of
MC68HC05L25 Data Sheet, Rev. 3.1
ILIH
) is as specified. The pulse interval (t
t
ILIH
t
ILIL
Chapter 5
Resets.
Figure 6-1
ILIL
) must be longer than
Freescale Semiconductor
shows the

Related parts for mc68hc05l25