
MC68HC05F8
MOTOROLA
5-7
INTERRUPTS
5
INT2E
1 (set)
–
External interrupt IRQ2 enabled.
0 (clear) –
External interrupt IRQ2 disabled.
5.3.3
External Interrupt Flags (INTF1 & INTF2)
INTF1
1 (set)
–
An interrupt on IRQ1 pin has occurred.
0 (clear) –
An interrupt on IRQ1 pin has not occurred.
After servicing this interrupt, this ag should be cleared by writing a “0” to this bit.
INTF2
1 (set)
–
An interrupt on IRQ2 pin has occurred.
0 (clear) –
An interrupt on IRQ2 pin has not occurred.
After servicing this interrupt, this ag should be cleared by writing a “0” to this bit.
5.4
Keyboard Interrupt
Port pins PA0-PA7 can be congured as keyboard interrupt lines with internal pull-up when the
control bits KEYE, KEYX4, KEYX5, KEYX6, and KEYX7 are set. A falling edge of negative pulse
with minimum width of TILIH (250ns) on any congured port A pins will cause a keyboard interrupt
to occur. A keyboard interrupt is recognized by the interrupt ag KEYF in the Miscellaneous
register (bit 4 of address $17). This ag is cleared by writing a logic “0” to this bit.
When the interrupt is recognized, the current state of the machine is pushed onto the stack and
the interrupt mask bit in the condition code register is set. This masks any further interrupt until
the present one is serviced. The keyboard interrupt causes the program counter to vector to
memory location $FFF0 and $FFF1 which contains the starting address of the interrupt’s service
routine.
When congured, the keyboard interrupt lines remain active in during Stop mode. This allows a
keyboard interrupt to wake up the MCU when in Stop mode. See
Figure 5-4 for keyboard interrupt
circuit.
Address
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
Miscellaneous Register
$17
POR
INTF1 INTF2
KEYF
r000 ----
r=1 for POR; r=0 for RESET
TPG
41
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
In
c
..
.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com