English
Language : 

MC908AS60ACFU Datasheet, PDF (301/414 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Chapter 24
Keyboard Module (KBI)
24.1 Introduction
The keyboard interrupt module (KBD) provides five independently maskable external interrupt pins.
This module is only available on 64-pin package options.
24.2 Features
KBD features include:
• Five Keyboard Interrupt Pins with Separate Keyboard Interrupt Enable Bits and One Keyboard
Interrupt Mask
• Hysteresis Buffers
• Programmable Edge-Only or Edge- and Level- Interrupt Sensitivity
• Automatic Interrupt Acknowledge
• Exit from Low-Power Modes
24.3 Functional Description
Writing to the KBIE4–KBIE0 bits in the keyboard interrupt enable register independently enables or
disables each port G or port H pin as a keyboard interrupt pin. Enabling a keyboard interrupt pin also
enables its internal pullup device. A low level 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.
MC68HC908AZ60A • MC68HC908AS60A • MC68HC908AS60E Data Sheet, Rev. 6
Freescale Semiconductor
301