MC68HC08KH12A Data Sheet, Rev. 1.1
Freescale Semiconductor
149
Chapter 15
Keyboard Interrupt Module (KBI)
15.1 Introduction
The keyboard module provides twenty independently maskable external interrupts which are accessible
via PTD7-PTD0, PTE3-PTE0 and PTF7-PTF0. Though the functionality of the three keyboard interrupts
on the three ports is similar, the implementation is quite different. On port-D, enabling keyboard interrupt
on a pin also enables its internal pull-up device. On port-E, the pull-up device is control by the PEPEx bit
resided in the Port-E Keyboard Interrupt Enable Register (KBEIER). On port-F, the pull-up device is
control by the PFPEx bit resided in the Port-F Control Register (PFPER).
15.2 Features
Twenty Keyboard Interrupt Pins with Separate Keyboard Interrupt Enable Bits and three Keyboard
Interrupt Masks.
Hysteresis Buffers
Internal Pull-ups.
Programmable Edge-Only or Edge- and Level- Interrupt Sensitivity
Exit from Low-Power Modes
Addr.
Register Name
Bit 7
0
6
0
5
0
4
0
3
2
0
1
Bit 0
$000C
Port D Keyboard Status and
Control Register
(KBDSCR)
Read:
Write:
Reset:
Read:
Write:
Reset:
Read:
Write:
Reset:
Read:
Write:
Reset:
Read:
Write:
Reset:
Read:
Write:
Reset:
Read:
Write:
Reset:
KEYDF
IMASKD
MODED
ACKD
0
0
0
0
0
0
0
0
$000D
Port D Keyboard Interrupt
Enable Register
(KBDIER)
KBDIE7
KBDIE6
KBDIE5
KBDIE4
KBDIE3
KBDIE2
KBDIE1
KBDIE0
0
0
0
0
0
0
0
0
0
0
0
0
0
$000E
Port E Keyboard Status and
Control Register
(KBESCR)
KEYEF
IMASKE
MODEE
ACKE
0
0
0
0
0
0
0
0
$000F
Port E Keyboard Interrupt
Enable Register
(KBEIER)
PEPE3
PEPE2
PEPE1
PEPE0
KBEIE3
KBEIE2
KBEIE1
KBEIE0
0
0
0
0
0
0
0
0
0
0
0
0
0
$0040
Port F Keyboard Status and
Control Register
(KBFSCR)
KEYFF
IMASKF
MODEF
ACKF
0
0
0
0
0
0
0
0
$0041
Port F Keyboard Interrupt
Enable Register
(KBFIER)
KBFIE7
KBFIE6
KBFIE5
KBFIE4
KBFIE3
KBFIE2
KBFIE1
KBFIE0
0
0
0
0
0
0
0
0
$0042
Port F Pull-up Enable Register
(PFPER)
PFPE7
PFPE6
PFPE5
PFPE4
PFPE3
PFPE2
PFPE1
PFPE0
1
1
1
1
1
1
1
1
=Unimplemented
Figure 15-1. KBI I/O Register Summary