![NXP Semiconductors MC9S08LG16 Reference Manual Download Page 132](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08lg16/mc9s08lg16_reference-manual_1721837132.webp)
Chapter 7 Keyboard Interrupt (S08KBIV2)
MC9S08LG32 MCU Series, Rev. 5
132
Freescale Semiconductor
7.3.2
KBI Pin Enable Register (KBIPE)
KBIPE contains the pin enable control bits.
7.3.3
KBI Edge Select Register (KBIES)
KBIES contains the edge select control bits.
7
6
5
4
3
2
1
0
R
0
0
0
0
KBF
0
KBIE
KBMOD
W
KBACK
Reset:
0
0
0
0
0
0
0
0
= Unimplemented
Figure 7-3. KBI
Status and Control Register
Table 7-3. KBISC Register Field Descriptions
Field
Description
7:4
Unused register bits, always read 0.
3
KBF
Keyboard Interrupt Flag
— KBF indicates when a keyboard interrupt is detected. Writes have no effect on KBF.
0 No keyboard interrupt detected.
1 Keyboard interrupt detected.
2
KBACK
Keyboard Acknowledge
— Writing a 1 to KBACK is part of the flag clearing mechanism. KBACK always reads
as 0.
1
KBIE
Keyboard Interrupt Enable
— KBIE determines whether a keyboard interrupt is requested.
0 Keyboard interrupt request not enabled.
1 Keyboard interrupt request enabled.
0
KBMOD
Keyboard Detection Mode
— KBMOD (along with the KBEDG bits) controls the detection mode of the keyboard
interrupt pins.
0 Keyboard detects edges only.
1 Keyboard detects both edges and levels.
7
6
5
4
3
2
1
0
R
KBIPE7
KBIPE6
KBIPE5
KBIPE4
KBIPE3
KBIPE2
KBIPE1
KBIPE0
W
Reset:
0
0
0
0
0
0
0
0
Figure 7-4. KBI Pin Enable Register
Table 7-4. KBIPE Register Field Descriptions
Field
Description
7:0
KBIPEn
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.
Summary of Contents for MC9S08LG16
Page 2: ......
Page 4: ......
Page 8: ......
Page 20: ......
Page 26: ...Chapter 1 Device Overview MC9S08LG32 MCU Series Rev 5 26 Freescale Semiconductor...
Page 40: ...Chapter 2 Pins and Connections MC9S08LG32 MCU Series Rev 5 40 Freescale Semiconductor...
Page 372: ......