mc68hc705j1avs Freescale Semiconductor, Inc, mc68hc705j1avs Datasheet - Page 102

no-image

mc68hc705j1avs

Manufacturer Part Number
mc68hc705j1avs
Description
M68hc05 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
External Interrupt Module (IRQ)
8.3 Operation
Technical Data
PA0
IRQ
PA3
PA2
PA1
(MOR)
PIRQ
The interrupt request/programming voltage pin (IRQ/V
pins 0–3 (PA0–PA3) provide external interrupts. The PIRQ bit in the
mask option register (MOR) enables PA0–PA3 as IRQ interrupt sources,
which are combined into a single ORing function to be latched by the
IRQ latch.
After completing its current instruction, the CPU tests the IRQ latch. If the
IRQ latch is set, the CPU then tests the I bit in the condition code register
and the IRQE bit in the IRQ status and control register. If the
I bit is clear and the IRQE bit is set, the CPU then begins the interrupt
sequence. This interrupt is serviced by the interrupt service routine
located at $07FA and $07FB.
The CPU clears the IRQ latch while it fetches the interrupt vector, so that
another external interrupt request can be latched during the interrupt
service routine. As soon as the I bit is cleared during the return from
interrupt, the CPU can recognize the new interrupt request.
shows the sequence of events caused by an interrupt.
Freescale Semiconductor, Inc.
Figure 8-1. IRQ Module Block Diagram
For More Information On This Product,
IRQ VECTOR FETCH
Figure 8-1
External Interrupt Module (IRQ)
Go to: www.freescale.com
IRQR
RESET
LEVEL-SENSITIVE TRIGGER
V
shows the structure of the IRQ module.
DD
(MOR LEVEL BIT)
D
CK
LATCH
CLR
IRQ
Q
IRQF
IRQE
MC68HC705J1A — Rev. 4.0
PP
TO BIH & BIL
INSTRUCTION
PROCESSING
EXTERNAL
INTERRUPT
REQUEST
) and port A
Figure 8-2

Related parts for mc68hc705j1avs