Datasheet

Keyboard Interrupts (S08KBIV2)
MC9S08JM60 Series Data Sheet, Rev. 3
Freescale Semiconductor 131
9.3.2 KBI Pin Enable Register (KBIPE)
KBIPE contains the pin enable control bits.
9.3.3 KBI Edge Select Register (KBIES)
KBIES contains the edge select control bits.
76543210
R 0 0 0 0 KBF 0
KBIE KBMOD
W KBACK
Reset:00000000
= Unimplemented
Figure 9-3. KBI Status and Control Register
Table 9-2. 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.0Keyboard detects edges only.
1 Keyboard detects both edges and levels.
76543210
R
KBIPE7 KBIPE6 KBIPE5 KBIPE4 KBIPE3 KBIPE2 KBIPE1 KBIPE0
W
Reset:00000000
Figure 9-4. KBI Pin Enable Register
Table 9-3. 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.