DEMO9S08LIN Freescale, DEMO9S08LIN Datasheet - Page 100

no-image

DEMO9S08LIN

Manufacturer Part Number
DEMO9S08LIN
Description
Manufacturer
Freescale
Datasheet

Specifications of DEMO9S08LIN

Lead Free Status / RoHS Status
Compliant
Chapter 7 Keyboard Interrupt (S08KBIV2)
7.3.3
KBIxES contains the edge select control bits.
7.4
This on-chip peripheral module is called a keyboard interrupt (KBI) 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 (KBIxSC). 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).
100
KBEDGn
KBIPEn
Field
Field
7:0
7:0
Reset:
Reset:
Functional Description
Keyboard Pin Enables — Each of the KBIPEn bits enable the corresponding keyboard interrupt pin.
0 Pin not enabled as keyboard interrupt.
1 Pin enabled as keyboard interrupt.
Keyboard 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.
W
KBIx Edge Select Register (KBIxES)
W
R
R
KBEDG7
KBIPE7
0
0
7
7
KBEDG6
KBIPE6
MC9S08LC60 Series Data Sheet: Technical Data, Rev. 4
0
0
6
Table 7-3. KBIxPE Register Field Descriptions
6
Table 7-4. KBIxES Register Field Descriptions
Figure 7-5. KBIx Edge Select Register
Figure 7-4. KBIx Pin Enable Register
KBEDG5
KBIPE5
5
0
5
0
KBEDG4
KBIPE4
0
0
4
4
Description
Description
KBEDG3
KBIPE3
0
0
3
3
KBEDG2
KBIPE2
0
0
2
2
KBEDG1
KBIPE1
0
0
1
1
Freescale Semiconductor
KBEDG0
KBIPE0
0
0
0
0