English
Language : 

MC68HC908LJ24 Datasheet, PDF (409/464 Pages) Motorola, Inc – Microcontrollers
20.5 Functional Description
Keyboard Interrupt Module (KBI)
Functional Description
INTERNAL BUS
KBI0
.
KBIE0
.
TO PULLUP ENABLE
.
KBI7
KBIE7
TO PULLUP ENABLE
VDD
D CLR Q
CK
ACKK
RESET
KEYBOARD
INTERRUPT FF
VECTOR FETCH
DECODER
KEYF
SYNCHRONIZER
KEYBOARD
INTERRUPT
REQUEST
IMASKK
MODEK
Figure 20-2. Keyboard Interrupt Block Diagram
Writing to the KBIE7–KBIE0 bits in the keyboard interrupt enable register
independently enables or disables a port A or port D pin as a keyboard
interrupt pin. Enabling a keyboard interrupt pin in port A or port D also
enables its internal pullup device. A logic 0 applied to an enabled
keyboard interrupt pin latches a keyboard interrupt request.
A keyboard interrupt is latched when one or more keyboard pins goes
low after all were high. The MODEK bit in the keyboard status and
control register controls the triggering mode of the keyboard interrupt.
• If the keyboard interrupt is edge-sensitive only, a falling edge on a
keyboard pin does not latch an interrupt request if another
keyboard pin is already low. To prevent losing an interrupt request
on one pin because another pin is still low, software can disable
the latter pin while it is low.
• If the keyboard interrupt is falling edge- and low level-sensitive, an
interrupt request is present as long as any keyboard pin is low.
MC68HC908LJ24/LK24 — Rev. 2.1
Freescale Semiconductor
Keyboard Interrupt Module (KBI)
Data Sheet
409