English
Language : 

MC908AB32CFUE Datasheet, PDF (347/392 Pages) Freescale Semiconductor, Inc – Microcontrollers
Keyboard Interrupt Module (KBI)
19.5 Functional Description
INTERNAL BUS
KBD0
.
KBIE0
.
TO PULLUP ENABLE
.
KBD4
KBIE4
TO PULLUP ENABLE
VDD
D CLR Q
CK
ACKK
RESET
KEYBOARD
INTERRUPT FF
VECTOR FETCH
DECODER
KEYF
SYNCHRONIZER
Keyboard
Interrupt
Request
IMASKK
MODEK
Figure 19-2. Keyboard Interrupt Block Diagram
Writing to the KBIE4–KBIE0 bits in the keyboard interrupt enable register
independently enables or disables the corresponding port pin as a
keyboard interrupt pin. Enabling a keyboard interrupt pin also enables its
internal pull-up 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.
If the MODEK bit is set, the keyboard interrupt pins are both falling edge-
and low level-sensitive, and both of the following actions must occur to
clear a keyboard interrupt request:
MC68HC908AB32 — Rev. 1.1
Freescale Semiconductor
Keyboard Interrupt Module (KBI)
Technical Data
347