Keyboard Interrupt (S08KBIV2)
MC9S08JS16 MCU Series Reference Manual, Rev. 4
Freescale Semiconductor
111
8.3.2
KBI Pin Enable Register (KBIPE)
KBIPE contains the pin enable control bits.
8.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 8-3. KBI
Status and Control Register
Table 8-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.
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 8-4. KBI Pin Enable Register
Table 8-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.
Summary of Contents for HCS08 Series
Page 2: ......
Page 4: ......
Page 8: ......
Page 62: ...Chapter 4 Memory MC9S08JS16 MCU Series Reference Manual Rev 4 62 Freescale Semiconductor...
Page 305: ......