Registers, Table 122), Table 123) – Rainbow Electronics AT89C5132 User Manual
Page 135
135
AT8xC5132
4173A–8051–08/02
Registers
Table 122. KBCON Register
KBCON (S:A3h) – Keyboard Control Register
Reset Value = 0000 1111b
Table 123. KBSTA Register
KBSTA (S:A4h) – Keyboard Control and Status Register
Reset Value = 0000 0000b
7
6
5
4
3
2
1
0
KINL3
KINL2
KINL1
KINL0
KINM3
KINM2
KINM1
KINM0
Bit
Number
Bit
Mnemonic
Description
7 - 4
KINL3:0
Keyboard Input Level Bit
Set to enable a high level detection on the respective KIN3:0 input.
Clear to enable a low level detection on the respective KIN3:0 input.
3 - 0
KINM3:0
Keyboard Input Mask Bit
Set to prevent the respective KINF3:0 flag from generating a keyboard interrupt.
Clear to allow the respective KINF3:0 flag to generate a keyboard interrupt.
7
6
5
4
3
2
1
0
KPDE
-
-
-
KINF3
KINF2
KINF1
KINF0
Bit
Number
Bit
Mnemonic
Description
7
KPDE
Keyboard Power Down Enable Bit
Set to enable exit of power down mode by the keyboard interrupt.
Clear to disable exit of power down mode by the keyboard interrupt.
6 - 4
-
Reserved
The values read from these Bits are always 0. Do not set these Bits.
3 - 0
KINF3:0
Keyboard Input Interrupt Flag
Set by hardware when the respective KIN3:0 input detects a programmed level.
Cleared when reading KBSTA.