Datasheet
KBIx_PE field descriptions
Field Description
7–0
KBIPE
KBI Pin Enables
Each of the KBIPEn bits enable the corresponding KBI interrupt pin.
0 Pin is not enabled as KBI interrupt.
1 Pin is enabled as KBI interrupt.
11.4.3 KBIx Edge Select Register (KBIx_ES)
KBIx_ES contains the edge select control bits.
Address: Base address + 3041h offset
Bit 7 6 5 4 3 2 1 0
Read
KBEDG
Write
Reset
0 0 0 0 0 0 0 0
KBIx_ES field descriptions
Field Description
7–0
KBEDG
KBI Edge Selects
Each of the KBEDGn bits selects the falling edge/low-level or rising edge/high-level function of the
corresponding pin.
0 Falling edge/low level.
1 Rising edge/high level.
11.5 Functional Description
This on-chip peripheral module is called a keyboard interrupt module because originally
it was designed to simplify the connection and use of row-column matrices of keyboard
switches. However, these inputs are also useful as extra external interrupt inputs and as
an external means of waking the MCU from stop or wait low-power modes.
The KBI module allows up to eight pins to act as additional interrupt sources. Writing to
the KBIPEn bits in the keyboard interrupt pin enable register (KBIxPE) independently
enables or disables each KBI pin. Each KBI pin can be configured as edge sensitive or
edge and level sensitive based on the KBMOD bit in the keyboard interrupt status and
control register. Edge sensitive can be software programmed to be either falling or rising;
the level can be either low or high. The polarity of the edge or edge and level sensitivity
is selected using the KBEDGn bits in the keyboard interrupt edge select register
(KBIxES).
Chapter 11 Keyboard Interrupts (KBI)
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
Freescale Semiconductor, Inc. 283
