V83053A/B
The first page
Keyboard Encoder
SPECIFICATION
TABLE OF CONTENTS
1. GENERAL DESCRIPTION
2. FEATURES
3. APPLICATION
4. PIN ASSIGMENT
5. ABSOLUTE MAXIMUM RATINGS
6. DC CHARACTERISTICS DC
7. AC CHARACTERISTICS AC
8. BLOCK DIAGRAM
9. FUNCTION DESCRIPTIONS
9.1 POWER-ON-RESETAND SELF-TEST
9.2 KEYBOARD BUFFER
9.3 LOW VOLTAGE RESET(LVR)
9.4 COMMAND DESCRIPTION
9.4.1 COMMAND FROM THE SYSTEM
9.4.2 COMMAND TO THE SYSTEM
9.4.3 DATA COMMUNICATION VIA SERIAL PORT
9.5 KEYBOARD SCAN CODE TABLE
9.6 TURBO FUNCTION TURBO
9.7 INTERNAL-MULTIKEY FUNCTION
10. TIMING DIAGRAM
11. APPLICATION CIRCUIT
12. APPLICATION MATRIX
13. PAD DIAGRAM
1. GENERAL DESCRIPTION
The V83053A/B (V83053A:Silver frame, V83053B:Carbon frame(>500KOhm))
a single chip keyboardencoder developed for IBM PC AT, IBM PS2 and compatible machine keyboard.
The device detects the key press and release activity, sends the scan code to system,
and accepts the command from system. A high performance,
low cost keyboard can be achieved by using the V83053A/B with the minimal external components
(Only one 10uA-CAP and three LED) .
2.FEATURES
Support scan code set 1, 2 and 3.
Support PC AT and PS/2 keyboard.
104/107 keys with multi-media or other special application keyboard encoder.
Support WINDOWS 95, 98, 2000 keys.
IBM PC AT or compatible machine keyboard.
IBM PS/2 model 30,50,60,80 or compatible machine keyboard.
Phantom key detects.
Built-in RC oscillator without external resistor.
Internal pull-up resistor for inputs
Tri-state outputs.
Low power CMOS device technology.
3.APPLICATION
IBM PC AT or compatible machine keyboard.
IBM PS/2 model 30,50,60,80 or compatible keyboard.
Japanese keyboard.
Korean keyboard.
Brazilian keyboard.
PIN No. | PIN NAME
| PINATTR.
| FUNCTION |
4 | GND | POWER | Negative power supply pin. |
5 | DATA | I/O | Data line of serial port. |
6 | CLK | I/O | Clock line of serial port. |
8.9 12~27 | C0~C17 | O | Keyboard matrix scanning output pins. |
28~35 | R0~R7 | I | Keyboard matrix scanning input pins. |
10.11 | NC | - | No connection |
36 | SCRL | O | Scroll lock indicator Scroll lock | ||
37 | NUM | O | Num lock indicator Num lock | ||
1 | CAPS | O | CAPS lock indicator CAPS lock | ||
2 | VDD | POWER | Positive power supply pin. | ||
Parameter | Sym | Ratings |
Supply Voltage | VCC | -0.5 ~ +6V |
Input Voltage | VIN | -0.3V ~ +6V |
Output Voltage | VOUT | -0.3V ~ +6V |
Operating temperature | TOP | 0℃ ~ 70℃ |
Storage temperature | TS | -50℃~ 150℃ |
Parameter | Sym.
| Min.
| Typ
| Max.
| Unit
| Condition
|
Operating voltage | VCC | 4.5 | 5 | 5.5 | ||
Operating supply current | ICC | - | - | 3 | mA | Fosc=1.8MHz |
Input leakage | IIN | - | - | 2 | μ | VIN=VCC,VSS |
Input high voltage | VIH | 2.0 | - | - | V | |
Input low voltage | VIL | - | - | 0.8 | V | |
Output low voltage | VOL1 | - | - | 0.4 | V | IOL1=4.4mA |
Output low voltage for LEDS |
VOL2 |
- |
- |
3.2 |
V |
IOL2=10mA |
Internal Pull-high resistance (PORT B,E) |
R PH1 | 200k |
- |
400k |
K Ω |
V PH1 =0 |
Internal Pull-high resistance for DATA CLK
| R PH2 |
3.5 |
4.2 |
5 | K Ω |
VPH2=0 |
Output low voltage for DATA CLK |
VOL3 |
- |
- |
0.4 |
V |
IOL3=5mA |
Parameter | Sym.
| Min.
| Typ.
| Max.
| Unit
|
Time from DATA transition to the falling edge of CLK | T1 |
5 |
- |
25 |
μs |
Time from rising ege of CLK to DATA transition | T2 | 5 | - | T4-5 | μs | ||
Duration of CLK inactive | T3 | 30 | 40 | 5 | μs | ||
Duration of CLK active | T4 | 30 | 40 | 5 | μs | ||
Time from the falling edge of clock 11 to auxiliary device inhibit to ensure the auxiliary device does not start another transmission |
T5 |
- |
- |
50 |
μs | ||
Time from inactive to active CLK transition,used when auxiliary device samples DATA |
T6 |
5 |
- |
25 |
μs | ||
System clock | Fosc | - | 1.8 | - | MHz |
9.FUNCTION DESCRI
The V83053A 's main function is to detect key press and release activity and
to transmit the corresponding scan code,as well as make and break codes to the system.
The device also accepts commands from the system. The communication between the keyboard
and the system is realized via a serial port consists of CLOCK and DATA pins.
9.1POWER-ON-RESET AND SELF-TEST
The power-on-reset (POR) occurs first when power is applied to the keyboard.
The duration of POR is 150ms ~ 2s. After POR, the self-test BAT (Basic Assurance Test)
happens, it takes 300ms~ 500ms.
The following activities take place in BAT
(1) Turns on LED indicators at the beginning.
(2) Test.
(3) Turns off LED indicators at the end.
(4) Send the result to the system.
A completion code AA is sent to the system if BAT is successful. An error code is sent if BAT fails.
BAT takes 300ms~500ms. The completion codes are sent 450ms~2.5s after POR,
and300ms~500ms after RESET command is acknowledged.
9.2 KEYBOARD BUFFER
An FIFO is used to buffer the received scan code.
(1) The buffer is 16-byte.
(2) Respond codes, i.e FA and repeated codes isn't be buffered.Additional keystroke is discarded.
Respond codes, i.e FAand repeated
9.3 LOW VOLTAGE RESET
V83053A/B has a low voltage reset function, which is used to monitor the voltage of power supply
or external source.The low voltage reset voltage is 2.2V-2.7V.
Vhys > 0.1V. Low voltage reset will not happen if the period Vdd stays in low voltage is less than T ( 0.6ms).
V83053A/B
The first page
Keyboard Encoder
SPECIFICATION
TABLE OF CONTENTS
1. GENERAL DESCRIPTION
2. FEATURES
3. APPLICATION
4. PIN ASSIGMENT
5. ABSOLUTE MAXIMUM RATINGS
6. DC CHARACTERISTICS DC
7. AC CHARACTERISTICS AC
8. BLOCK DIAGRAM
9. FUNCTION DESCRIPTIONS
9.1 POWER-ON-RESETAND SELF-TEST
9.2 KEYBOARD BUFFER
9.3 LOW VOLTAGE RESET(LVR)
9.4 COMMAND DESCRIPTION
9.4.1 COMMAND FROM THE SYSTEM
9.4.2 COMMAND TO THE SYSTEM
9.4.3 DATA COMMUNICATION VIA SERIAL PORT
9.5 KEYBOARD SCAN CODE TABLE
9.6 TURBO FUNCTION TURBO
9.7 INTERNAL-MULTIKEY FUNCTION
10. TIMING DIAGRAM
11. APPLICATION CIRCUIT
12. APPLICATION MATRIX
13. PAD DIAGRAM
1. GENERAL DESCRIPTION
The V83053A/B (V83053A:Silver frame, V83053B:Carbon frame(>500KOhm))
a single chip keyboardencoder developed for IBM PC AT, IBM PS2 and compatible machine keyboard.
The device detects the key press and release activity, sends the scan code to system,
and accepts the command from system. A high performance,
low cost keyboard can be achieved by using the V83053A/B with the minimal external components
(Only one 10uA-CAP and three LED) .
2.FEATURES
Support scan code set 1, 2 and 3.
Support PC AT and PS/2 keyboard.
104/107 keys with multi-media or other special application keyboard encoder.
Support WINDOWS 95, 98, 2000 keys.
IBM PC AT or compatible machine keyboard.
IBM PS/2 model 30,50,60,80 or compatible machine keyboard.
Phantom key detects.
Built-in RC oscillator without external resistor.
Internal pull-up resistor for inputs
Tri-state outputs.
Low power CMOS device technology.
3.APPLICATION
IBM PC AT or compatible machine keyboard.
IBM PS/2 model 30,50,60,80 or compatible keyboard.
Japanese keyboard.
Korean keyboard.
Brazilian keyboard.
4.PIN ASSIGMENT
PIN No.
PIN NAME
PINATTR.
FUNCTION
4
GND
POWER
Negative power supply pin.
5
DATA
I/O
Data line of serial port.
6
CLK
I/O
Clock line of serial port.
8.9
12~27
C0~C17
O
Keyboard matrix scanning output pins.
28~35
R0~R7
I
Keyboard matrix scanning input pins.
10.11
NC
-
No connection
36
SCRL
O
Scroll lock indicator Scroll lock
37
NUM
O
Num lock indicator Num lock
1
CAPS
O
CAPS lock indicator CAPS lock
2
VDD
POWER
Positive power supply pin.
5.ABSOLUTE MAXIMUM RATINGS
Parameter
Sym
Ratings
Supply Voltage
VCC
-0.5 ~ +6V
Input Voltage
VIN
-0.3V ~ +6V
Output Voltage
VOUT
-0.3V ~ +6V
Operating temperature
TOP
0℃ ~ 70℃
Storage temperature
TS
-50℃~ 150℃
6.DC CHARACTERISTICS
(VDD = 5V, Temperature = 27℃)
Parameter
Sym.
Min.
Typ
Max.
Unit
Condition
Operating voltage
VCC
4.5
5
5.5
Operating supply current
ICC
-
-
3
mA
Fosc=1.8MHz
Input leakage
IIN
-
-
2
μ
VIN=VCC,VSS
Input high voltage
VIH
2.0
-
-
V
Input low voltage
VIL
-
-
0.8
V
Output low voltage
VOL1
-
-
0.4
V
IOL1=4.4mA
Output low voltage for LEDS
VOL2
-
-
3.2
V
IOL2=10mA
Internal Pull-high resistance (PORT B,E)
R PH1
200k
-
400k
K
Ω
V PH1 =0
Internal Pull-high resistance for DATA CLK
R PH2
3.5
4.2
5
K
Ω
VPH2=0
Output low voltage for DATA CLK
VOL3
-
-
0.4
V
IOL3=5mA
7.AC CHARACTERISTICS
Parameter
Sym.
Min.
Typ.
Max.
Unit
Time from DATA transition to the falling edge of
CLK
T1
5
-
25
μs
Time from rising ege of CLK to DATA transition
T2
5
-
T4-5
μs
Duration of CLK inactive
T3
30
40
5
μs
Duration of CLK active
T4
30
40
5
μs
Time from the falling edge of clock 11 to auxiliary device inhibit to ensure the auxiliary
device does not start another transmission
T5
-
-
50
μs
Time from inactive to active CLK transition,used
when auxiliary device samples DATA
T6
5
-
25
μs
System clock
Fosc
-
1.8
-
MHz
8.BLOCK DIAGRAM
9.FUNCTION DESCRI
The V83053A 's main function is to detect key press and release activity and
to transmit the corresponding scan code,as well as make and break codes to the system.
The device also accepts commands from the system. The communication between the keyboard
and the system is realized via a serial port consists of CLOCK and DATA pins.
9.1POWER-ON-RESET AND SELF-TEST
The power-on-reset (POR) occurs first when power is applied to the keyboard.
The duration of POR is 150ms ~ 2s. After POR, the self-test BAT (Basic Assurance Test)
happens, it takes 300ms~ 500ms.
The following activities take place in BAT
(1) Turns on LED indicators at the beginning.
(2) Test.
(3) Turns off LED indicators at the end.
(4) Send the result to the system.
A completion code AA is sent to the system if BAT is successful. An error code is sent if BAT fails.
BAT takes 300ms~500ms. The completion codes are sent 450ms~2.5s after POR,
and300ms~500ms after RESET command is acknowledged.
9.2 KEYBOARD BUFFER
An FIFO is used to buffer the received scan code.
(1) The buffer is 16-byte.
(2) Respond codes, i.e FA and repeated codes isn't be buffered.Additional keystroke is discarded.
Respond codes, i.e FAand repeated
9.3 LOW VOLTAGE RESET
V83053A/B has a low voltage reset function, which is used to monitor the voltage of power supply
or external source.The low voltage reset voltage is 2.2V-2.7V.
Vhys > 0.1V. Low voltage reset will not happen if the period Vdd stays in low voltage is less than T ( 0.6ms).
9.4 COMMAND DESCRIPTION
9.4.1 COMMAND FROM THE SYSTEM
Reset – FF (hex)
Send ACK to system.
Checks clock and data lines-Reset in the high state for at least 500 ms or receives anothercommand.
Default to scan code set 2.
Resend – FE (hex)
Sends the previous code again. If the previous code is RESEND, the last code before RESEND will be sent.
Default to scan code set 2.
Resend – FE (hex)
Sends the previous code again. If the previous code is RESEND, the last code before RESEND will be sent.
Set Key Type - FB, FC, FD (hex)
Keyboard responds with ACK.
Clears output buffer.
Receives key ID byte
Responds ACK.
Sets key ID type (affect only scan code set 3 operation). FB: Typematic
FC: Make/Break
FD: Make
Returns to previous scanning rate.
Set All Keys - F7, F8, F9, FA (hex)
Sends ACK to the system.
Clears output buffer.
Sets all key type to the type specified by the command (affect only scan code set 3 operation).
F7: Typematic F8: Make/Break F9: Make
FA: Typematic/Make/Break Returns to previous scanning rate.
Set Default - F6 (hex)
Sends an ACK to the system.
Resets all conditions to power-on state.
Clears output buffer.
Sets the default key type (scan code set 3 only).
Set the default typematic rate/delay.
Default Disable - F5 (hex)
Sends an ACK to the system.
Resets all conditions to power-on state.
Clears the output buffer.
Sets the default key type (scan code set 3 only).
Set the default typematic rate/delay.
Clears last typematic key.
Stops scanning and wait for commands,
Enable - F4 (hex)
Sends and ACK to the system.
Clears the output buffer.
Clears the last typematic key.
Start scanning.
Set Typematic Rate/Delay - F3 (hex)
Sends an ACK to the system.
Receives rate/delay value byte
Sends an ACK to the system.
Set rate/delay.
Returns to previous scanning state.
Note:
1. Repeat period = (8+A) x (2B) x 0.00417 s A - Binary value of bits 2, 1, and 0
B - Binary value of bits 4 and 3
2. Delay = (C +1) x 250 ms
C:Binary value of bits 6 and 5.Bit7 is always 0.
B4~b0 | Typematic Rate | B4~b0 | Typematic Rate | |
00000 | 30.0 | 10000 | 7.5 | |
00001 | 26.7 | 10001 | 6.7 | |
00010 | 24.0 | 10010 | 6.0 | |
00011 | 21.8 | 10011 | 5.5 | |
00100 | 20.0 | 10100 | 5.0 | |
00101 | 18.5 | 10101 | 4.6 | |
00110 | 17.1 | 10110 | 4.3 | |
00111 | 16.0 | 10111 | 4.0 | |
01000 | 15.0 | 11000 | 3.7 | |
01001 | 13.3 | 11001 | 3.3 | |
01010 | 12.0 | 11010 | 3.0 | |
01011 | 10.9 | 11011 | 2.7 | |
01100 | 10.0 | 11100 | 2.5 | |
01101 | 9.2 | 11101 | 2.3 | |
01110 | 8.6 | 11110 | 2.1 | |
01111 | 8.0 | 11111 | 2.0 |
V83053A/B
The first page
Keyboard Encoder
SPECIFICATION
TABLE OF CONTENTS
1. GENERAL DESCRIPTION
2. FEATURES
3. APPLICATION
4. PIN ASSIGMENT
5. ABSOLUTE MAXIMUM RATINGS
6. DC CHARACTERISTICS DC
7. AC CHARACTERISTICS AC
8. BLOCK DIAGRAM
9. FUNCTION DESCRIPTIONS
9.1 POWER-ON-RESETAND SELF-TEST
9.2 KEYBOARD BUFFER
9.3 LOW VOLTAGE RESET(LVR)
9.4 COMMAND DESCRIPTION
9.4.1 COMMAND FROM THE SYSTEM
9.4.2 COMMAND TO THE SYSTEM
9.4.3 DATA COMMUNICATION VIA SERIAL PORT
9.5 KEYBOARD SCAN CODE TABLE
9.6 TURBO FUNCTION TURBO
9.7 INTERNAL-MULTIKEY FUNCTION
10. TIMING DIAGRAM
11. APPLICATION CIRCUIT
12. APPLICATION MATRIX
13. PAD DIAGRAM
1. GENERAL DESCRIPTION
The V83053A/B (V83053A:Silver frame, V83053B:Carbon frame(>500KOhm))
a single chip keyboardencoder developed for IBM PC AT, IBM PS2 and compatible machine keyboard.
The device detects the key press and release activity, sends the scan code to system,
and accepts the command from system. A high performance,
low cost keyboard can be achieved by using the V83053A/B with the minimal external components
(Only one 10uA-CAP and three LED) .
2.FEATURES
Support scan code set 1, 2 and 3.
Support PC AT and PS/2 keyboard.
104/107 keys with multi-media or other special application keyboard encoder.
Support WINDOWS 95, 98, 2000 keys.
IBM PC AT or compatible machine keyboard.
IBM PS/2 model 30,50,60,80 or compatible machine keyboard.
Phantom key detects.
Built-in RC oscillator without external resistor.
Internal pull-up resistor for inputs
Tri-state outputs.
Low power CMOS device technology.
3.APPLICATION
IBM PC AT or compatible machine keyboard.
IBM PS/2 model 30,50,60,80 or compatible keyboard.
Japanese keyboard.
Korean keyboard.
Brazilian keyboard.
4.PIN ASSIGMENT
PIN No.
PIN NAME
PINATTR.
FUNCTION
4
GND
POWER
Negative power supply pin.
5
DATA
I/O
Data line of serial port.
6
CLK
I/O
Clock line of serial port.
8.9
12~27
C0~C17
O
Keyboard matrix scanning output pins.
28~35
R0~R7
I
Keyboard matrix scanning input pins.
10.11
NC
-
No connection
36
SCRL
O
Scroll lock indicator Scroll lock
37
NUM
O
Num lock indicator Num lock
1
CAPS
O
CAPS lock indicator CAPS lock
2
VDD
POWER
Positive power supply pin.
5.ABSOLUTE MAXIMUM RATINGS
Parameter
Sym
Ratings
Supply Voltage
VCC
-0.5 ~ +6V
Input Voltage
VIN
-0.3V ~ +6V
Output Voltage
VOUT
-0.3V ~ +6V
Operating temperature
TOP
0℃ ~ 70℃
Storage temperature
TS
-50℃~ 150℃
6.DC CHARACTERISTICS
(VDD = 5V, Temperature = 27℃)
Parameter
Sym.
Min.
Typ
Max.
Unit
Condition
Operating voltage
VCC
4.5
5
5.5
Operating supply current
ICC
-
-
3
mA
Fosc=1.8MHz
Input leakage
IIN
-
-
2
μ
VIN=VCC,VSS
Input high voltage
VIH
2.0
-
-
V
Input low voltage
VIL
-
-
0.8
V
Output low voltage
VOL1
-
-
0.4
V
IOL1=4.4mA
Output low voltage for LEDS
VOL2
-
-
3.2
V
IOL2=10mA
Internal Pull-high resistance (PORT B,E)
R PH1
200k
-
400k
K
Ω
V PH1 =0
Internal Pull-high resistance for DATA CLK
R PH2
3.5
4.2
5
K
Ω
VPH2=0
Output low voltage for DATA CLK
VOL3
-
-
0.4
V
IOL3=5mA
7.AC CHARACTERISTICS
Parameter
Sym.
Min.
Typ.
Max.
Unit
Time from DATA transition to the falling edge of
CLK
T1
5
-
25
μs
Time from rising ege of CLK to DATA transition
T2
5
-
T4-5
μs
Duration of CLK inactive
T3
30
40
5
μs
Duration of CLK active
T4
30
40
5
μs
Time from the falling edge of clock 11 to auxiliary device inhibit to ensure the auxiliary
device does not start another transmission
T5
-
-
50
μs
Time from inactive to active CLK transition,used
when auxiliary device samples DATA
T6
5
-
25
μs
System clock
Fosc
-
1.8
-
MHz
8.BLOCK DIAGRAM
9.FUNCTION DESCRI
The V83053A 's main function is to detect key press and release activity and
to transmit the corresponding scan code,as well as make and break codes to the system.
The device also accepts commands from the system. The communication between the keyboard
and the system is realized via a serial port consists of CLOCK and DATA pins.
9.1POWER-ON-RESET AND SELF-TEST
The power-on-reset (POR) occurs first when power is applied to the keyboard.
The duration of POR is 150ms ~ 2s. After POR, the self-test BAT (Basic Assurance Test)
happens, it takes 300ms~ 500ms.
The following activities take place in BAT
(1) Turns on LED indicators at the beginning.
(2) Test.
(3) Turns off LED indicators at the end.
(4) Send the result to the system.
A completion code AA is sent to the system if BAT is successful. An error code is sent if BAT fails.
BAT takes 300ms~500ms. The completion codes are sent 450ms~2.5s after POR,
and300ms~500ms after RESET command is acknowledged.
9.2 KEYBOARD BUFFER
An FIFO is used to buffer the received scan code.
(1) The buffer is 16-byte.
(2) Respond codes, i.e FA and repeated codes isn't be buffered.Additional keystroke is discarded.
Respond codes, i.e FAand repeated
9.3 LOW VOLTAGE RESET
V83053A/B has a low voltage reset function, which is used to monitor the voltage of power supply
or external source.The low voltage reset voltage is 2.2V-2.7V.
Vhys > 0.1V. Low voltage reset will not happen if the period Vdd stays in low voltage is less than T ( 0.6ms).
9.4 COMMAND DESCRIPTION
9.4.1 COMMAND FROM THE SYSTEM
Reset – FF (hex)
Send ACK to system.
Checks clock and data lines-Reset in the high state for at least 500 ms or receives anothercommand.
Default to scan code set 2.
Resend – FE (hex)
Sends the previous code again. If the previous code is RESEND, the last code before RESEND will be sent.
Default to scan code set 2.
Resend – FE (hex)
Sends the previous code again. If the previous code is RESEND, the last code before RESEND will be sent.
Set Key Type - FB, FC, FD (hex)
Keyboard responds with ACK.
Clears output buffer.
Receives key ID byte
Responds ACK.
Sets key ID type (affect only scan code set 3 operation). FB: Typematic
FC: Make/Break
FD: Make
Returns to previous scanning rate.
Set All Keys - F7, F8, F9, FA (hex)
Sends ACK to the system.
Clears output buffer.
Sets all key type to the type specified by the command (affect only scan code set 3 operation).
F7: Typematic F8: Make/Break F9: Make
FA: Typematic/Make/Break Returns to previous scanning rate.
Set Default - F6 (hex)
Sends an ACK to the system.
Resets all conditions to power-on state.
Clears output buffer.
Sets the default key type (scan code set 3 only).
Set the default typematic rate/delay.
Default Disable - F5 (hex)
Sends an ACK to the system.
Resets all conditions to power-on state.
Clears the output buffer.
Sets the default key type (scan code set 3 only).
Set the default typematic rate/delay.
Clears last typematic key.
Stops scanning and wait for commands,
Enable - F4 (hex)
Sends and ACK to the system.
Clears the output buffer.
Clears the last typematic key.
Start scanning.
Set Typematic Rate/Delay - F3 (hex)
Sends an ACK to the system.
Receives rate/delay value byte
Sends an ACK to the system.
Set rate/delay.
Returns to previous scanning state.
Note:
1. Repeat period = (8+A) x (2B) x 0.00417 s A - Binary value of bits 2, 1, and 0
B - Binary value of bits 4 and 3
2. Delay = (C +1) x 250 ms
C:Binary value of bits 6 and 5.Bit7 is always 0.
B4~b0
Typematic Rate
B4~b0
Typematic Rate
00000
30.0
10000
7.5
00001
26.7
10001
6.7
00010
24.0
10010
6.0
00011
21.8
10011
5.5
00100
20.0
10100
5.0
00101
18.5
10101
4.6
00110
17.1
10110
4.3
00111
16.0
10111
4.0
01000
15.0
11000
3.7
01001
13.3
11001
3.3
01010
12.0
11010
3.0
01011
10.9
11011
2.7
01100
10.0
11100
2.5
01101
9.2
11101
2.3
01110
8.6
11110
2.1
01111
8.0
11111
2.0
3. Default rate = 10.9 chars/sec + 20%
Default delay = 500 ms 20%
Read ID - F2 (hex)
Sends an ACK to the system.
Discontinues scanning.
Sends two ID bytes. The second byte will be sent within 500 us after first byte.
Resumes scanning.
Select Alternate Scan Codes - F0 (hex)
Sends an ACK to the system.
Clears the output buffer.
Sets the default typematic rate/delay.
Clears last typematic key.
Receives option byte.
Sends an ACK to the system.
Option byte=
01: scan code set 1
02: scan code set 2
03: scan code set 3
Returns to previous scanning rate.
Invalid commands – EF, F1 (hex)
Returns a RESEND command.
Returns to previous scanning state.
Echo – EE (hex)
Sends an EE (hex) to the system.
Returns to previous scanning state.
Set status indicators – ED (hex)
Sends an ACK to the system.
Receives option byte.
Sends an ACK to the system.
Updates status indicators.
Returns to previous scanning state.
9.4.2 COMMAND TO THE SYSTEM
Acknowledge - FA (hex)
If the keyboard receives an valid command from the system, an ACK will be send back to the system,
except that the command received is RESEND or ECHO.
BAT Completion Code - AA (hex)
This command is sent to the system after successful completion of keyboard BAT.
Buffer overrun 00, FF (hex)
If keyboard buffer overflows, the last byte in the buffer will be replaced by 00 or FF
Scan code set 1 - FF,
Scan code sets 2 and 3 – 00
Resend - FE (hex)
This command is sent to the system after the keyboard receives an invalid code or any incorrect parity.
Echo - EE (hex)
This command is sent to the system after the keyboard receives an ECHO command.
Keyboards ID - 83AB (hex)
The 2-byte ID is sent to the system after receives READ ID command. The low byte is sent first,
then high byte issent.
9.4.3 DATA COMMUNICATION VIA SERIAL PORT
Data output
The keyboard first checks the CLK and DATA lines. If both of them are high,
that means data transmission fromkeyboard to the system is permitted,
then keyboard starts to clock data out. Data will be valid before the trailing edge and after
theleading edge. The keyboard checks the clock line at least every 60us.
If the clock line is lowered before the leading edge of the 10th clock,
the keyboard should stop sending, and set both data line and clock line to high.
Data input
The system checks the CLK line first. If the keyboard is not sending data or it is sending
data but has not reached the 10th clock,
the system can force the clock line low for more than 60us and prepares to send data.
The keyboard checks clock line status at intervals of no more than 5ms.
If a system-request- to-send (RTS) is detected,
the keyboard clocks 11 bits in. After the 10th bit,
the keyboard checks the data line. If the data line is high, the keyboard pulls it low and
clocks one more bit to signal the system that data has been received.
If data is low after the 10th bit, a frame error occurs. When a frame error occurs,
the keyboard should continue to count until data line goes high,
then pulls it low and sends a RESEND command tothe system.
9.5 KEYBOARD SCAN CODE TABLE
The keyboard supports 3 scan code sets. When a key is pressed down, its make scan code is
sent to the system. When the key is released, its break code is sent.
If two or more keys are held down, onlythe last key pressed repeats at the typematic rate.
Typematic operation stops when the last pressed key is released.
scan code set 1
Key | Make Code | Break Code | Key | Make Code | Break Code |
`(~) | 29 | A9 | X | 2D | AD |
1 | 02 | 82 | C | 2E | AE |
2 | 03 | 83 | V | 2F | AF |
3 | 04 | 84 | B | 30 | B0 |
4 | 05 | 85 | N | 31 | B1 |
5 | 06 | 86 | M | 32 | B2 |
6 | 07 | 87 | , (<) | 33 | B3 |
7 | 08 | 88 | . (>) | 34 | B4 |
8 | 09 | 89 | /(?) | 35 | B5 |
9 | 0A | 8A | SHIFT_R | 36 | B6 |
0 | 0B | 8B | CTRL_L | 1D | 9D |
-(-) | 0C | 8C | ALT_L | 38 | B8 |
=(+) | 0D | 8D | SPACE | 39 | B9 |
BACKSPACE | 0E | 8E | ALT_R | E038 | E0B8 |
TAB | 0F | 8F | CTRL_R | E01D | E09D |
Q | 10 | 90 | NUM | 45 | C5 |
W | 11 | 91 | (7) | 47 | C7 |
E | 12 | 92 | (4) | 4B | CB |
R | 13 | 93 | (1) | 4F | CF |
T | 14 | 94 | (8) | 48 | C8 |
Y | 15 | 95 | (5) | 4C | CC |
U | 16 | 96 | (2) | 50 | D0 |
I | 17 | 97 | ( ) | 52 | D2 |
O | 18 | 98 | (*) | 37 | B7 |
P | 19 | 99 | (9) | 49 | C9 |
[({) | 1A | 9A | (6) | 4D | CD |
](}) | 1B | 9B | (3) | 51 | D1 |
\(|) (101 key keyboard only) | 2B |
AB |
(DEL) |
53 |
D3 |
CAPS | 3A | BA | (-) | 4A | CA |
A | 1E | 9E | (+) | 4E | CE |
S | 1F | 9F | (ENTER) | E01C | E09C |
D | 20 | A0 | ESC | 01 | 81 |
F | 21 | A1 | F1 | 3B | BB |
G | 22 | A2 | F2 | 3C | BC |
H | 23 | A3 | F3 | 3D | BD | ||
J | 24 | A4 | F4 | 3E | BE | ||
K | 25 | A5 | F5 | 3F | BF | ||
L | 26 | A6 | F6 | 40 | C0 | ||
;(:) | 27 | A7 | F7 | 41 | C1 | ||
'(") | 28 | A8 | F8 | 42 | C2 | ||
K42 (102 key keyboard only) |
2B |
AB |
F9 |
43 |
C3 | ||
ENTER | 1C | 9C | F10 | 4 | C4 | ||
SHIFT_L | 2A | AA | F11 | 57 | D7 | ||
K45 (102 key keyboard only) |
56 |
D6 |
F12 |
58 |
D8 | ||
Z | 2C | AC | SCROLL | 46 | C6 |
Key | Base Case, or Shift + Nun Lock Make/Break |
Shift Case * Make/Break | Nun Lock Make/Break |
INS |
E0 52/E0 D2 | E0 AA E0 52 /E0 D2 E0 2A | E0 2A E0 52 /E0 D2 E0 AA |
DEL |
E0 53/E0 D3 | E0 AA E0 53 /E0 D3 E0 2A | E0 2A E0 53 /E0 D3 E0 AA |
LEFT |
E0 4B/E0 CB | E0 AA E0 4B /E0 CB E0 2A | E0 2A E0 4B /E0 CB E0 AA |
HOME |
E0 47/E0 C7 | E0 AA E0 47 /E0 C7 E0 2A | E0 2A E0 47 /E0 C7 E0 AA |
END |
E0 4F/E0 CF | E0 AA E0 4F /E0 CF E0 2A | E0 2A E0 4F /E0 CF E0 AA |
UP |
E0 48/E0 C8 | E0 AA E0 48 /E0 C8 E0 2A | E0 2A E0 48 /E0 C8 E0 AA |
DOWN |
E0 50/E0 D0 | E0 AA E0 50 /E0 D0 E0 2A | E0 2A E0 50 /E0 D0 E0 AA |
PAGE UP |
E0 49/E0 C9 | E0 AA E0 49 /E0 C9 E0 2A | E0 2A E0 49 /E0 C9 E0 AA |
PAGE DOWN |
E0 51/E0 D1 | E0 AA E0 51 /E0 D1 E0 2A | E0 2A E0 51 /E0 D1 E0 AA |
RIGHT |
E0 4D/ED CD | E0 AA E0 4D /E0 CD E0 2A | E0 2A E0 4D /E0 CD E0 AA |
Key | Scan Code Make/Break | Shift Case Make/Break * |
(/) | E0 4A / E0 F0 4A | E0 F0 12 E0 4A / E0 F0 4A E0 12 |
Key | Scan Code Make/Break | Ctrl Case, Shift Case Make/Break | Alt Case Make/Break |
| E0 12 E0 7C /E0 F0 7C E0 F0 12 |
E0 7C / E0 F0 7C |
84 / F0 84 |
Key Pause (not typematic) | Make Code E1 1D 45 E1 9D C5 | Ctrl Key Pressed E0 46 E0 C6 |
QQ: 10298183192
手机:18312529938
电话: 0755-28796192
邮箱: 10298183192@qq.com
地址:Liulian Xuekeng Industry Zone,Pingdi Town,Longgang Area,Shenzhen City