English
Language : 

MC9S08AC16_0911 Datasheet, PDF (153/336 Pages) Freescale Semiconductor, Inc – HCS08 Microcontrollers
Chapter 9
Keyboard Interrupt (S08KBIV1)
9.1 Introduction
The MC9S08AC16 Series has one KBI module with seven keyboard interrupt inputs that are shared with
port D and port G pins. See Chapter 2, “Pins and Connections,” for more information about the logic and
hardware aspects of these pins.
NOTE
Bit 7 of KBISC and KBIPE is reserved and reads 0. Neglect the correlative
information in Section 9.4.1, “KBI Status and Control Register (KBISC),”
and Section 9.4.2, “KBI Pin Enable Register (KBIPE).”
9.2 Keyboard Pin Sharing
The KBI input KBIP6 shares a common pin with PTD3 and AD11, and KBI input KBIP5 shares a common
pin with PTD2 and AD10.
The KBI inputs KBIP4–KBIP0 are shared on common pins with PTG4–PTG0.
KBIP3–KBIP0 are always falling-edge/low-level sensitive. KBIP6–KBIP4 can be configured for
rising-edge/high-level or for falling-edge/low-level sensitivity. When any of the inputs KBIP6–KBIP0 are
enabled and configured to detect rising edges/high levels, and the pin pullup is enabled through the
corresponding port pullup enable bit for that pin, a pulldown resistor rather than a pullup resistor is enabled
on the pin.
9.3 Features
The keyboard interrupt (KBI) module features include:
• Four falling edge/low level sensitive
• Three falling edge/low level or rising edge/high level sensitive
• Choice of edge-only or edge-and-level sensitivity
• Common interrupt flag and interrupt enable control
• Capable of waking up the MCU from stop3, stop2, or wait mode
MC9S08AC16 Series Data Sheet, Rev. 8
Freescale Semiconductor
153