HOLTEK HT82K628A User Manual

Windows 2000 PS/2 Keyboard Encoder

Features

·
Design for Windows 95/98/NT/2000/XP
·
Supports WindowsTMkeys
·
Supports PC/AT and PS/2 code set 1, 2, 3
·
Supports Japanese , Korean , Brazilian and European
·
RC oscillator
·
Phantom key detection
·
Low power consumption

General Description

The HT82K628A is a keyboard encoder designed for IBM PC/AT, IBM PS/2 and all compatible machines.
The HT82K628A accepts keyboard inputs and provides a 16-character first-in-first-out buffer in which data is stored.

Pin Assignment

HT82K628A
·
101/102/104/105/107/109 keys or other special ap plication keyboard encoder
·
8 external hot keys
·
Supports Mini-keyboard and Internet/Multimedia keyboard
·
WINDOWS is a registered trademark of Microsoft corporation
·
40-pin DIP package
An inexpensiveRC oscillator can beused for the system clock. Simple implementation of this device is an advan tage for high performance and low cost keyboard appli cations.
-
-
-
R 5
R 4
C 3
C 2
C 1
C 0
R 3
R 2
R 1
R 0
R 1 9
R 1 8
R 1 7
R 1 6
V S S
S C R O L L
N U M
D A T A
C L O C K
F n S e l e c t
1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
2 0
4 0
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
2 8
2 7
2 6
2 5
2 4
2 3
2 2
2 1
H T 8 2 K 6 2 8 A
4 0 D I P - A
R 6
R 7
C 4
C 5
C 6
C 7
N C
O S C 1
V D D
R E S E T
C A P S
R 8
R 9
R 1 0
R 1 1
R 1 2
R 1 3
R 1 4
R 1 5
M a c r o K e y s e l e c t
Rev. 1.60 1 April 16, 2004
HT82K628A

Pin Description

Pin No. Pin Name I/O Description
10~7, 2~1, 40~39, 29~22, 14~11
6~3, 38~35 C0~C7 I Keyboard matrix scanning input pins
15 VSS
16 SCROLL O Scroll Lock indicator
17 NUM O Num Lock indicator
18 DATA I/O Bidirectional data transmission line
19 CLOCK I/O Synchronous clock signal. Used to clock the transmission data.
20 Fn Select I Mini-keyboard select, enables the function if connected to VSS.
21 Macro Key Select I Macro Key select, disables the function if connected to VSS.
30 CAPS O Caps Lock indicator
31 RESET
32 VDD
33 OSC1 I
34 NC
R0~R19 O
Keyboard matrix scanning output pins
¾
Negative power supply, ground
Chip reset input. Active low. Built-in power-on reset circuit to reset the en
I
tire chip. Chip can also be externally reset via RESET
5.0V positive power supply
¾
pin.
System clock input; 58.3kW resistor connected for RC OSC
No connection
¾
-

Absolute Maximum Ratings

Supply Voltage ..........................VSS-0.3V to VSS+5.5V
Input Voltage .............................V
3V to VDD+0.3V
SS-0.
Note: These are stress ratings only. Stresses exceeding the range specified under ²Absolute Maximum Ratings² may
cause substantial damage to the device. Functional operation of this device at other conditions beyond those listed in the specification is not implied and prolonged exposure to extreme conditions may affect device reliabil­ity.

Electrical Characteristics

Symbol Parameter
V
I
V
V
I
I
I
I
R
R
R
f
DD
DD
IL
IH
OL
OH1
OH2
LED
ph
ph1
ph2
SYS
Operating Voltage
Operating Current (RC OSC) 5V
Input Low Voltage 5V
Input High Voltage 5V
Sink Current (C0~C7, R0~R19, DATA, CLOCK) 5V
Source Current (C0~C7, R0~R19) 5V
Source Current (Scroll, Num, Caps) 5V
LED Sink Current (Scroll, Num, Caps) 5V VOL=3.4V 10 18 24 mA
Internal Pull-high Resistance (C0~C7, R0~R19) 5V
Internal Pull-high Resistance (DATA, CLOCK) 5V
Internal Pull-high Resistance (RESET)5V
System Clock (RC OSC) 5V
Storage Temperature ...........................-50°Cto125°C
Operating Temperature ..........................-25°Cto70°C
Ta=25°C
Test Conditions
V
DD
Conditions
¾¾
No load, f
SYS
= 4MHz
¾ ¾
= 0.5V
V
OL
= 4.5V
V
OH
= 4.5V
V
OH
¾ ¾ ¾ ¾¾4¾
Min. Typ. Max. Unit
3 5 5.25 V
2.5 5 mA
¾
0
3.5
16 25
-8 -16 ¾
-2.5 -4 ¾
51220
2 4.7 8
25 50 75
¾ ¾
1.5 V
5V
mA
¾
mA
mA
kW kW kW
MHz
Rev. 1.60 2 April 16, 2004

Functional Description

Command from the Host
The following table shows the commands that the host may send and their hexadecimal values.
Command Hex Value
Set/Reset Status Indicators ED
Echo EE
Invalid Command EF
Select Alternate Scan Codes F0
Invalid Command F1
Read ID F2
Set Typematic Rate/Delay F3
Enable F4
Default Disable F5
Set Default F6
Set All Keys - Typematic F7
Set All Keys - Make/Break F8
Set All Keys - Make F9
Set All Keys - Typematic/Make/Break FA
Set Key Type - Typematic FB
Set Key Type - Make/Break FC
Set Key Type - Make FD
Resend FE
Reset FF
The commands may be sent to the HT82K628A at any time and the HT82K628A will respond within 25ms ex­cept whenperforming the internal diagnostics or execut ing a Reset command.
EDH - Set/Reset Status Indicators
Three status indicators on the keyboard-Num Lock, Caps Lock, and Scroll Lock-are accessible by the host. The HT82K628A activates or deactivates these indica tors when it receives a valid command-code sequence from the system. The command sequence begins with the command byte (hex ED). The HT82K628A responds to the command byte with ACK, discontinues scanning, assignments for this option byte are as follow:
Bit Indicator
0 Scroll Lock Indicator
1 Num Lock Indicator
2 Caps Lock Indicator
3~7 Reserved (Must be 0)
If a bit for an indicator is set to 1, the indicator is turned on. If a bit is set to 0, the indicator is turned off.
HT82K628A
The HT82K628A responds to the option byte with ACK, sets theindicators and if the HT82K628Awas previously enabled, continues scanning. The status of the indica tors will reflect the bits in the option byte and can be acti vated or deactivated in any combination. If another command is received in place of the option byte, execu tion of the Set/Reset Mode Indicators command is stopped, with no change to the indicator status, and the new command is processed.
Immediately after power-on, the lights default to the off state. If the Set Default and Default Disable commands are received, the lamps remain in the state they were in before the command was received.
EEH - Echo
Echo is a diagnostic aid. When the HT82K628A re ceives this command, it issues a hex EE response and if the HT82K628A was previously enabled, continues scanning.
EFH and F1H - Invalid Command
EFh and F1h are invalid commands and are not sup ported. If HT82K628A receives one of these and sends it, the HT82K628A will not acknowledge the command, but returns a Resend command and continues in its pre­vious scanning state.
F0H - Select Alternate Scan Codes
This commandinstructs the HT82K628A to select one of the three sets of scan codes. The HT82K628A acknowl­edges receipt of this command with ACK, clears both the output buffer and the typematic key. The host then sends the option byte and the keyboard responds with
­another ACK. An option byte value of hex 01 selects
scan code set 1, hex 02 selects set 2 and hex 03 selects code set3.
An option byte value of hex 00 causes the HT82K628A to acknowledge with ACK and sends a byte telling the host which scan code set is currently in use.
­After establishing the new scan code set, the HT82K628A returns to the scanning state it was in be fore receiving the Select Alternate Scan Codes com mand.
F2H - Read ID
This command requests identification information from
the HT82K628A. The HT82K628A responds with ACK, discontinues scanning and sends the two keyboard ID bytes hex83h and Abh. After the output of the second ID byte, the HT82K628A resumes scanning.
-
-
-
-
-
-
-
Rev. 1.60 3 April 16, 2004
HT82K628A
F3H - Set Typematic Rate/Delay
The host issues the Set Typematic Rate/Delay com mand to change the typematic rate and delay. The HT82K628A responds to the command with ACK, stops scanning and waits for the system to issue the rate/de lay value byte. The HT82K628A responds to the value byte with another ACK, sets the rate and delay to the value indicated, and continues scanning (if it was previ ously enabled). Bit6 and 5 indicate the delay, and bits 4, 3, 2,1 and 0 indicate the rate. Bit7 is always 0. The delay is equal to 1 plus the binary value bit 6 and 5, multiplied by 250ms±20%.
The period (interval from one typematic output to the next) is determined by the following equation:
Period = (8+A)*(2^B)*0.00417 seconds.
Where:
A = binary value of bits 2, 1, and 0.
B = binary value of bits 4, and 3.
The typematic rate is 1 for each period and are listed as follows:
Bit
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.0 11110 2.1
01111 8.0 11111 2.0
The default values for the HT82K628A are as follows: Typematic rate= 10.9 characters per second ± 20% Delay = 500ms±20%
The execution of this command stops without change to the existing rate if another command is received instead of the rate/delay value byte.
Typematic
Rate ± 20%
Bit
Typematic
Rate ± 20%
F4H - Enable
Upon receipt of this command, the HT82K628A will re
­spond with ACK, clears its output buffer, clears the last
typematic key, and starts scanning.
-
F5H - Default Disable
The Default Disable command resets all conditions to the power on default states. The HT82K628A will re
­spond with ACK, clears its output buffer, sets the default key types (scan code set 3 operation only) and typematic rate/delay, and clears the last typematic key. The HT82K628Athen stops scanning and awaits further command.
F6H - Set Default
The Set Default command resets all conditions to the power on default states. The HT82K628A will respond with ACK, clears its output buffer, sets the default key types (scan code set 3 operation only) and typematic rate/delay, and clears thelast typematic key then contin ues scanning.
F7H, F8H, F9H, FAH - Set All Keys
These commands instruct the HT82K628A to set all keys to the type listed below:
Hex Value Command
F7 Set All Keys-Typematic
F8 Set All Keys-Make/Break
F9 Set All Keys-Make
FA Set All Keys-Typematic/Make/Break
The HT82K628Awill respond withACK, clears its output buffer, sets all keys to the type indicated by this com­mand, and continues scanning (if it was previously en­abled). Although these commands can be sent using any code set, they affect only scan codeset 3 operation.
FBH, FCH, FDH - Set Key Type
These commands instruct the HT82K628A to set indi vidual keys to the type listed below:
Hex Value Command
FB Set Key Type-Typematic
FC Set Key Type-Make/Break
FD Set Key Type-Make
The HT82K628Awill respond withACK, clears its output buffer and prepares to receive key identification. Key identification is accomplished by the host identifying each key by its scan code value as defined in scan code set 3. Only scan code set 3 values are valid for key iden tification. The type of each identified key is set to the value indicated by the command. Although these com mands can be sent using any code set, they affect only scan code set 3 operation.
-
-
-
-
-
-
Rev. 1.60 4 April 16, 2004
HT82K628A
FEH - Resend
The hostsends this command when it detects an error in any transmissionfrom the HT82K628A. Itis sent only af ter a data transmission and before the host allows the next data output. When a Resend is received, the HT82K628A sends the previous output again (unless the previous output was Resend, in which case the HT82K628A sends the last byte before the Resend command).
Commands to the Host
The following table shows the commands that the HT82K628A may send to the host, and their hexadeci
mal values.
Command Hex Value
Key Detection Error/Overrun 00 (Code Set 2 and 3)
Keyboard ID 83AB
Bat Completion Code AA
Bat Failure Core FC
Echo EE
Acknowledge FA
Resend FE
Key Detection Error/Overrun FF (Code Set 1)
00H or FFH - Key Detection Error
The HT82K628Asends a key detectionerror character if conditions in the keyboard make it impossible to identify a switch closure. If the HT82K628A is using scan code set 1, the code is FFH. Forsets 2 and 3, thecode is 00H.
00H or FFH - Overrun
An overrun character is placed in the HT82K628A buffer and replaces the last code when the buffer capacity has been exceeded. The code is sent to the host when it reaches the top of the buffer queue. If the HT82K628A is using scancode set 1, the code is FFH. For sets 2 and 3, the code is 00H.
83AbH - Keyboard ID
The keyboard ID consists of 2 bytes, Hex 83AbH. The HT82K628A responds to the Read ID with ACK, discon tinues scanning and sends 2 ID bytes. The low byte is sent first followed by the high byte. Following the output of Keyboard ID, the HT82K628A begins scanning.
EEH - Echo
The HT82K628A sends this code in response to an Echo command.
AAH - BAT Completion Code
Following satisfactory completion of the BAT, the HT82K628A sends AAH. Any other code indicates key
­board failure.
FCH - BAT Failure Code
If a BAT failure occurs, the HT82K628Asends this code, discontinues scanning and waits for a host response or reset.
FEH - Resend
The HT82K628A issues a Resend command following
­receipt of an invalid input or any input with incorrect par
ity. If the host sends nothing to the HT82K628A, no re sponse is required.
Data Communications
·
Data output
¨
If CLK=0, no transmission (keyboard is inhibited).
¨
If CLK=1, DATA=0, no transmission (system re quest to send).
¨
If CLK=1, DATA=1, transmission permitted.
¨
Data will be valid before the trailing edge and be yond the leading edge of the clock.
¨
The KB checks the clock line for an active level of at least every 60ms.
¨
If line contention occurs (system brings the clock low before the tenth clock), set clock=data=high.
·
Data input
¨
The system overrides the clock line for at least 60ms.
¨
The keyboard checks the clock line state at inter­vals of 10ms
¨
If a system request-to-send is detected, the key­board counts 11 data bits.
¨
Data will be valid before the rising edge and beyond the falling edge
¨
After the 10th bit, the keyboard checks for an active level onthe ²data² line. If the line is active it isforced to be inactive, and counts one more bit.
Note: This action signals the system that the
keyboard has received its data. Upon
reception of this signal, the system returns
to the ready state, in which it can accept
-
keyboard outputs or goes to the inhibit state until it is ready.
If the keyboard ²data² line is found to be at an inactive level followingthe 10th bit, a frame errorhas occurred, and the keyboard continues to count until the ²data² line becomes active. The keyboard then makes the ²data² line inactive and sends a Resend.
-
-
-
-
-
Rev. 1.60 5 April 16, 2004
HT82K628A
Data Stream
Mode 1,2,3
B1:
B2: b3: b4: b5:
B6 b7: b8: b9:
b10:
b11:
Note:
The parity bit is either 1 or 0, and the 8 data bits, plus the parity bit, always have an odd number of 1ms.
Key Code Set 1
Key Number
and Symbol
1 ~ ' 29/A9 47 X 2D/AD
2 ! 1 02/82 48 C 2E/AE
3 @ 2 03/83 49 V 2F/AF
4 # 3 04/84 50 B 30/B0
5 $ 4 05/85 51 N 31/B1
6 % 5 06/86 52 M 32/B2
7 ^ 6 07/87 53 < , 33/B3
8 & 7 08/88 54 > . 34/B4
9 * 8 09/89 55 ? / 35/B5
10 ( 9 0A/8A 57 Shift (R) 36/B6
11 ) 0 0B/8B 58 Ctrl (L) 1D/9D
12 _ - 0C/8C 60 Alt (L) 38/B8
13 + = 0D/8D 61 Space 39/B9
14 56 7D/D6 FD 62 Alt (R) E0 38/E0 B8
15 Back Space 0E/8E 64 Ctrl (R) E0 1D/E0 9D
16 Tab 0F/8F 90 Num Lock 45/C5
17 Q 10/90 91 7 Home 47/C7
18 W 11/91 92 4
19 E 12/92 93 1 End 4F/CF
20 R 13/93 96 8
21 T 14/94 97 5 4C/CC
22 Y 15/95 98 2
23 U 16/96 99 0 Ins 52/D2
24 I 17/97 100 * 37/B7
25 O 18/98 101 9 PgUp 49/C9
26 P 19/99 102 6
27 { [ 1A/9A 103 3 PgDn 51/D1
28 } ] 1B/9B 104 . Del 53/D3
*29
½
\ 2B/AB 105 - 4A/CA
Make/Break Code
Key Number and Symbol
start bit
always 0 data bit 0 data bit 1 data bit 2 data bit 3 data bit 4 data bit 5 data bit 6 data bit 7
parity bit (odd par)
stop bit
always 1
Make/Break Code
¬
¯
®
4B/CB
48/C8
50/D0
4D/CD
Rev. 1.60 6 April 16, 2004
HT82K628A
Key Number
and Symbol
30 Caps Lock 3A/BA 106 + 4E/CE
31 A 1E/9E 107 7E/FE
32 S 1F/9F 108 Enter E0 1C/E0 9C
33 D 20/A0 110 ESC 01/81
34 F 21/A1 112 F1 3B/BB
35 G 22/A2 113 F2 3C/BC
36 H 23/A3 114 F3 3D/BD
37 J 24/A4 115 F4 3E/BE
38 K 25/A5 116 F5 3F/BF
39 L 26/A6 117 F6 40/C0
40 : ; 27/A7 118 F7 41/C1
41 28/A8 119 F8 42/C2
**42
43 Enter 1C/9C 121 F10 44/C4
44 Shift (L) 2A/AA 122 F11 57/D7
**45 Macro 56/D6 123 F12 58/D8
46 Z 2C/AC 125 Scroll Lock 46/C6
*101-Key Keyboard Only
**102-Key Keyboard Only
½
\ 2B/AB 120 F9 43/C3
Make/Break Code
Key Number and Symbol
Make/Break Code
Key Number
and Symbol
75
76
79
80
81
83
84
85
86
89
When both shift keys are held down: key number 75
95 / E0 35/E0 B5 E0 AA E0 35/E0 B5 E0 2A E0 B6 E0 35/E0 B5 E0 36
When both shift keys are held down: key number 95
Insert
Delete
¬
Home
End
 ¯
PgUp
PgDn
®
L Win
R Win
APP
Key Number and Symbol
Base Case Shift+Num
E0 52
/E0 D2
E0 53
/E0 D3
E0 4B
/E0 CB
E0 47
/E0 C7
E0 4F
/E0 CF
E0 48
/E0 C8
E0 50
/E0 D0
E0 49
/E0 C9
E0 51
/E0 D1
E0 4D
/E0 CD
E0 5B E0 AA E0 5B E0 B6 E0 5B E0 2A E0 5B
/E0 DB /E0 DB E0 2A /E0 DB E0 36 /E0 DB E0 AA
E0 5C E0 AA E0 5C E0 B6 E0 5C E0 2A E0 5C
/E0 DC /E0 DC E0 2A /E0 DC E0 36 /E0 DC E0 AA
E0 5D E0 AA E0 5D E0 B6 E0 5D E0 2A E0 5D
/E0 DD /E0 DD E0 2A /E0 DD E0 36 /E0 DD E0 AA
Base Left-Shift Right-Shift
Left-Shift Right-Shift Num Lock
E0 AA E0 52
/E0 D2 E0 2A
E0 AA E0 53
/E0 D3 E0 2A
E0 AA E0 4B
/E0 CB E0 2A
E0 AA E0 47
/E0 C7 E0 2A
E0 AA E0 4F
/E0 CF E0 2A
E0 AA E0 48
/E0 C8 E0 2A
E0 AA E0 50
/E0 D0 E0 2A
E0 AA E0 49
/E0 C9 E0 2A
E0 AA E0 51
/E0 D1 E0 2A
E0 AA E0 4D
/E0 CD E0 2A
Both Shift E0 AA E0 B6 E0 52/E0 D2 E0 2A E0 36
Both Shift E0 AA E0 B6 E0 35/E0 B5 E0 2A E0 36
E0 B6 E0 52
/E0 D2 E0 36
E0 B6 E0 53
/E0 D3 E0 36
E0 B6 E0 4B
/E0 CB E0 36
E0 B6 E0 47
/E0 C7 E0 36
E0 B6 E0 4F
/E0 CF E0 36
E0 B6 E0 48
/E0 C8 E0 36
E0 B6 E0 50
/E0 D0 E0 36
E0 B6 E0 49
/E0 C9 E0 36
E0 B6 E0 51
/E0 D1 E0 36
E0 B6 E0 4D
/E0 CD E0 36
E0 2A E0 52
/E0 D2 E0 AA
E0 2A E0 53
/E0 D3 E0 AA
E0 2A E0 4B
/E0 CB E0 AA
E0 2A E0 47
/E0 C7 E0 AA
E0 2A E0 4F
E0 CF E0 AA
E0 2A E0 48
E0 C8 E0 AA
E0 2A E0 50
/E0 D0 E0 AA
E0 2A E0 49
/E0 C9 E0 AA
E0 2A E0 51
E0 D1 E0 AA
E0 2A E0 4D
E0 CD E0 AA
Rev. 1.60 7 April 16, 2004
HT82K628A
Key Number and Symbol
124 Print Screen E0 2A E0 37/E0 B7 E0 AA E0 37/E0 B7 54/D4
Key Number and Symbol
126 Pause E1 1D 45 E1 9D C5 E0 46 E0 C6
This key is not typematic, all associated scan codes occur on the make code.
Key Number
and Function
ACPI Power E0 5E/E0 DE Make/Break
ACPI Sleep E0 5F/E0 DF Make/Break
ACPI Wake-up E0 63/E0 E3 Make/Break
Key Number
and Function
56 Brazil BA0 73/F3 Typematic
131 Japanese J131 7B/FB Make
132 Japanese J132 79/F9 Make
133 Japanese J133 70/F0 Make
150 Korea KC-L
151 Korea KC-R
Multimedia Key Function Make/Break code
E-Mail E0 6C/E0 EC
WWW Home E0 32/E0 B2
WWW Favorites E0 66/E0 E6
WWW Search E065/E0 E5
WWW Refresh E0 67/E0 E7
WWW Stop E0 68/E0 E8
WWW Forward E0 69/E0 E9
WWW Back E0 6A/E0 EA
Media E0 6D/E0 ED
Play/Pause E0 22/E0 A2
Stop E0 24/E0 A4
Prev Track E0 10/E0 90
Next Track E0 19/E0 99
Volume+ E0 30/E0 B0 Volume-
Mute E0 20/E0 A0
My Computer E0 6B/E0 EB
Calculator E0 21/E0 A1
Screen save E0 26/E0 A6
Rec E0 1E/E0 9E
Rew E0 17/E0 97
Minimize E0 2D/E0 AD
Eject E0 11/E0 91
Base Shift/Ctrl Alt
Base Ctrl
Make/Break code Default
Make/Break code Default
F1/­F0/-
E0 2E/E0 AE
Make
Make
Rev. 1.60 8 April 16, 2004
HT82K628A
Key Code Set 2
Key Number
and Symbol
1 ~ ' 0E/F0 0E 47 X 22/F0 22
2 ! 1 16/F0 16 48 C 21/F0 21
3 @ 2 1E/F0 1E 49 V 2A/F0 2A
4 # 3 26/F0 26 50 B 32/F0 32
5 $ 4 25/F0 25 51 N 31/F0 31
6 % 5 2E/F0 2E 52 M 3A/F0 3A
7 ^ 6 36/F0 36 53 < , 41/F0 41
8 & 7 3D/F0 3D 54 > . 49/F0 49
9 * 8 3E/F0 3E 55 ? / 4A/F0 4A
10 ( 9 46/F0 46 57 Shift (R) 59/F0 59
11 ) 0 45/F0 45 58 Ctrl (L) 14/F0 14
12 _ - 4E/F0 4E 60 Alt (L) 11/F0 11
13 + = 55/F0 55 61 Space 29/F0 29
14 6A/F0 6A 62 Alt (R) E0 11/E0 F0 11
15 Back Space 66/F0 66 64 Ctrl (R) E0 14/E0 E0 F0 14
16 Tab 0D/F0 0D 90 Num Lock 77/F0 77
17 Q 15/F0 15 91 7 Home 6C/F0 6C
18 W 1D/F0 1D 92 4
19 E 24/F0 24 93 1 End 69/F0 69
20 R 2D/F0 2D 96 8
21 T 2C/F0 2C 97 5 73/F0 73
22 Y 35/F0 35 98 2
23 U 3C/F0 3C 99 0 Ins 70/F0 70
24 I 43/F0 43 100 * 7C/F0 7C
25 O 44/F0 44 101 9 PgUp 7D/F0 7D
26 P 4D/F0 4D 102 6
27 { [ 54/F0 54 103 3 PgDn 7A/ F0 7A
28 } ] 5B/F0 5B 104 . Del 71/F0 71
*29
30 Caps Lock 58/F0 58 106 + 79/F0 79
31 A 1C/F0 1C 107 6D/F0 6D
32 S 1B/F0 1B 108 Enter E0 5A/E0 F0 5A
33 D 23/F0 23 110 ESC 76/F0 76
34 F 2B/F0 2B 112 F1 05/F0 05
35 G 34/F0 34 113 F2 06/F0 06
36 H 33/F0 33 114 F3 04/F0 04
37 J 3B/F0 3B 115 F4 0C/F0 0C
38 K 42/F0 42 116 F5 03/F0 03
39 L 4B/F0 4B 117 F6 0B F0 0B
½
\ 5D/F0 5D 105 - 7B/F0 7B
Make/Break Code
Key Number and Symbol
Make/Break Code
¬
¯
®
6B/F0 6B
75/F0 75
72/F0 72
74/ F0 74
Rev. 1.60 9 April 16, 2004
HT82K628A
Key Number
and Symbol
40 : ; 4C/F0 4C 118 F7 83/F0 83
41 52/F0 52 119 F8 0A/F0 0A
**42
43 Enter 5A/F0 5A 121 F10 09/F0 09
44 Shift (L) 12/F0 12 122 F11 78/F0 78
**45 Macro 61/F0 61 123 F12 07/F0 07
46 Z 1A/F0 1A 125 Scroll Lock 7E/F0 7E
*101-Key Keyboard Only
**102-Key Keyboard Only
Key Number
and Symbol
75
76
79
80
81
83
84
85
86
89
When both shift keys are held down: key number 75
½
Insert
Delete
¬
Home
End
 ¯
PgUp
PgDn
®
L Win
R Win
APP
\ 5D/F0 5D 120 F9 01/F0 01
Make/Break Code
Base Case Shift+Num
E0 70
/E0 F0 70
E0 71
/E0 F0 71
E0 6B
/E0 F0 6B
E0 6C
/E0 F0 6C
E0 69
/E0 F0 69
E0 75
/E0 F0 75
E0 72
/E0 F0 72
E0 7D
/E0 F0 7D
E0 7A
/E0 F0 7A
E0 74
/E0 F0 74
E0 1F E0 F0 12 E0 1F E0 F0 59 E0 1F E0 12 E0 1F
/E0 F0 1F /E0 F0 1F E0 12 /E0 F0 1F E0 59 /E0 F0 1F E0 F0 12
E0 27 E0 F0 12 E0 27 E0 F0 59 E0 27 E0 12 E0 27
/E0 F0 27 /E0 F0 27 E0 12 /E0 F0 27 E0 59 /E0 F0 27 E0 F0 12
E0 2F E0 F0 12 E0 2F E0 F0 59 E0 2F E0 12 E0 2F
/E0 F0 2F /E0 F0 2F E0 12 /E0 F0 2F E059 /E0 F0 2F E0 F0 12
Left-Shift Right-Shift Num Lock
E0 F0 12 E0 70
/E0 F0 70 E0 12
E0 F0 12 E0 71
/E0 F0 71 E0 12
E0 F0 12 E0 6B /E0 F0 6B E0 12 E0 F0 12 E0 6C /E0 F0 6C E0 12
E0 F0 12 E0 69 /E0 F0 69 E0 12
E0 F0 12 E0 75 /E0 F0 75 E0 12
E0 F0 12 E0 72 /E0 F0 72 E0 12 E0 F0 12 E0 7D /E0 F0 7D E0 12
E0 F0 12 E0 7A /E0 F0 7A E0 12
E0 F0 12 E0 74 /E0 F0 74 E0 12
Both Shift E0 AA E0 B6 E0 52/E0 D2 E0 2A E0 36
Key Number and Symbol
E0 F0 59 E0 70
/E0 F0 70 E0 59
E0 F0 59 E0 71
/E0 F0 71 E0 59
E0 F0 59 E0 6B /E0 F0 6B E0 59 E0 F0 59 E0 6C /E0 F0 6C E0 59
E0 F0 59 E0 69 /E0 F0 69 E0 59
E0 F0 59 E0 75 /E0 F0 75 E0 59
E0 F0 59 E0 72 /E0 F0 72 E0 59 E0 F0 59 E0 7D /E0 F0 7D E0 59
E0 F0 59 E0 7A /E0 F0 7A E0 59
E0 F0 59 E0 74 /E0 F0 74 E0 59
Make/Break Code
E0 12 E0 70
/E0 F0 70 E0 F0 12
E0 12 E0 71
/E0 F0 71 E0 F0 12
E0 12 E0 6B
/E0 F0 6B E0 F0 12
E0 12 E0 6C
/E0 F0 6C E0 F0 12
E0 12 E0 69
/E0 F0 69 E0 F0 12
E0 12 E0 75
/E0 F0 75 E0 F0 12
E0 12 E0 72
/E0 F0 72 E0 F0 12
E0 12 E0 7D
/E0 F0 7D E0 F0 12
E0 12 E0 7A
/E0 F0 7A E0 F0 12
E0 12 E0 74
/E0 F0 74 E0 F0 12
Key Number
and Symbol
95 / E0 4A/E0 F0 4A E0 F0 12 E0 4A/E0 F0 4A E0 12 E0 F0 59 E0 4A/E0 F0 4A E0 59
When both shift keys are held down: key number 95
Key Number
and Symbol
124 Print Screen E0 12 E0 7C/E0 F0 7C E0 F0 12 E0 7C/E0 F0 7C 84/F0 84
Key Number
and Symbol
126 Pause E1 14 77 E1 F0 14 F0 77 E0 7E E0 F0 7E
This key is not typematic, all associated scan codes occur on the make code.
Rev. 1.60 10 April 16, 2004
Base Left-Shift Right-Shift
Both Shift E0 F0 12 E0 F0 59 E0 4A/E0 F0 4A E0 12 E0 59
Base Shift/Ctrl Alt
Base Ctrl
HT82K628A
Key Number
and Function
ACPI Power E0 37/E0 F0 37 Make/Break
ACPI Sleep E0 3F/E0 F0 3F Make/Break
ACPI Wake-up E0 5E/E0 F0 5E Make/Break
Key Number
and Function
56 Brazil BA0 51/F0 51 Typematic
131 Japanese J131 67/F0 67 Make
132 Japanese J132 64/F0 64 Make
133 Japanese J133 13/F0 13 Make
150 Korea KC-L
151 Korea KC-R
Multimedia Key Function Make/Break code
E-Mail E0 48/E0 F0 48
WWW Home E0 3A/E0 F0 3A
WWW Favorites E0 18/E0 F0 18
WWW Search E0 10/E0 F0 10
WWW Refresh E0 20/E0 F0 20
WWW Stop E0 28/E0 F0 28
WWW Forward E0 30/E0 F0 30
WWW Back E0 38/E0 F0 38
Media E0 50/E0 F0 50
Play/Pause E0 34/E0 F0 34
Stop E0 3B/E0 F0 3B
Prev Track E0 15/E0 F0 15
Next Track E0 4D/E0 F0 4D
Volume+ E0 32/E0 F0 32 Volume-
Mute E0 23/E0 F0 23
My Computer E0 40/E0 F0 40
Calculator E0 2B/E0 F0 2B
Screen save E0 4B/E0 F0 4B
Rec E0 1C/E0 F0 1C
Rew E0 43/E0 F0 43
Minimize E0 22/E0 F0 22
Eject E0 1D/E0 F0 1D
Make/Break code Default
Make/Break code Default
F1/­F2/-
E0 21/E0 F0 21
Make
Make
Rev. 1.60 11 April 16, 2004
Key Code Set 3
Key
Number
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
*29
30 31 32 33 34 35 36 37 38 39 40 41
**42
43 44
**45
46 47 48 49 50 51 52 53 54
*101-Key Keyboard Only
**102-Key Keyboard Only
/Break Code
0E/F0 0E
16/F0 16
1E/F0 1E
26/F0 26 25/F0 25
2E/F0 2E
36/F0 36 3D/F0 3D 3E/F0 3E
46/F0 46
45/F0 45 4E/F0 4E
55/F0 55 5D/F0 5D
66/F0 66
0D /F0 0D
15/F0 15 1D/F0 1D
24/F0 24 2D/F0 2D 2C/F0 2C
35/F0 35 3C/F0 3C
43/F0 43
44/F0 44 4D/F0 4D
54/F0 54 5B/F0 5B 5C/F0 5C
14/F0 14 1C/F0 1C 1B/F0 1B
23/F0 23 2B/F0 2B
34/F0 34
33/F0 33 3B/F0 3B
42/F0 42 4B/F0 4B 4C/F0 4C
52/F0 52
53/F0 53 5A/F0 5A
12/F0 12
13/F0 13 1A/F0 1A
22/F0 22
21/F0 21 2A/F0 2A
32/F0 32
31/F0 31 3A/F0 3A
41/F0 41
49/F0 49
Make
Default
Key State
Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic
Make/Break
Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic
Make/Break
Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic Typematic
Key
Number
55 57 58 59 60 61 62 63 64 75 76 79 80 81 83 84 85 86 89 90 91 92 93 95 96 97 98
99 100 101 102 103 104 105 106 107 108 110 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Make
/Break Code
4A/F0 4A
59/F0 59 11/F0 11
8B/F0 8B
19/F0 19 29/F0 29 39/F0 39
8C/F0 8C
58/F0 58 67/F0 67 64/F0 64 61/F0 61
6E/F0 6E
65/F0 65 63/F0 63
60/F0 60 6F/F0 6F 6D/F0 6D 6A/F0 6A
76/F0 76 6C/F0 6C 6B/F0 6B
69/F0 69
77/F0 77
75/F0 75
73/F0 73
72/F0 72
70/F0 70 7E/F0 7E 7D/F0 7D
74/F0 74 7A/F0 7A
71/F0 71
84/F0 84 7C/F0 7C 7B/F0 7B
79/F0 79
08/F0 08
07/F0 07 0F/F0 0F
17/F0 17 1F/F0 1F
27/F0 27 2F/F0 2F
37/F0 37 3F/F0 3F
47/F0 47 4F/F0 4F
56/F0 56 5E/F0 5E
57/F0 57 5F/F0 5F
62/F0 62 8D/F0 8D
HT82K628A
Default
Key State
Typematic Make/Break Make/Break Make/Break Make/Break
Typematic
Make Only
Make/Break
Make Only Make Only
Typematic
Typematic
Make Only Make Only
Typematic
Typematic
Make Only Make Only
Typematic
Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only
Typematic
Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only Make Only
Typematic
Rev. 1.60 12 April 16, 2004
HT82K628A
Key Number
and Function
Make/Break code Default
56 Brazil BA0 51/F0 51 Typematic
131 Japanese J131 67/F0 67 Make
132 Japanese J132 64/F0 64 Make
133 Japanese J133 13/F0 13 Make
150 Korea KC-L
151 Korea KC-R
F1/­F2/-

Timing Diagrams

Data Output
( 1 ) ( 3 ) ( 3 )
C L K
( 2 )
D A T A S t a r t B i t B i t 0 P a r i t y B i t S t o p B i t
T 1
T 2
T 3
T 4
T 5
1 s t
C L K
T 3 T 4
T 1 T 2
T i m i n g P a r a m e t e r
D A T A t r a n s i t i o n t o t h e f a l l i n g e d g e o f C L K
R i s i n g e d g e o f C L K t o D A T A t r a n s i t i o n
D u r a t i o n o f C L K i n a c t i v e
D u r a t i o n o f C L K a c t i v e
T i m e t o a u x i l i a r y d e v i c e i n h i b i t a f t e r c l o c k 1 1 t o e n s u r e t h e a u x i l i a r y d e v i c e d o e s n o t s t a r t a n o t h e r t r a n s m i s s i o n
2 n d C L K
( 3 )
( 3 ) ( 4 )
1 0 t h C L K
1 1 t h C L K
( 5 ) ( 7 )
T 5
M i n / M a x
5 / 2 5 ms e c
5 / T 4 - 5 ms e c 3 0 / 5 0 ms e c
3 0 / 5 0 ms e c
> 0 / 5 0 ms e c
Make
Make
( 6 )
Keyboard Data Input
( 1 )
I n h i b i t
C L K
D A T A S t a r t B i t B i t 0 P a r i t y B i t S t o p B i t
T 7
T 8
T 9 T i m e f r o m i n a c t i v e t o a c t i v e C L K t r a n s i t i o n , u s e d t o t i m e
( 4 )
( 2 )
I / O
T i m i n g P a r a m e t e r
D u r a t i o n o f C L K i n a c t i v e
D u r a t i o n o f C L K a c t i v e
w h e n t h e a u x i l i a r y d e v i c e s a m p l e s D A T A
1 s t C L K
T 7 T 8
( 3 )
2 n d
C L K
T 9
( 5 ) ( 7 )
C L K
9 t h
1 0 t h C L K
( 5 )
( 6 )
1 1 t h C L K
M i n / M a x
3 0 / 5 0 ms e c
3 0 / 5 0 ms e c
5 / 2 5
s e c
m
( 8 )
Rev. 1.60 13 April 16, 2004
·
Fn key usage
Status
Key
Location
7 &7 Home 7 7
Fn
OFF OFF ON OFF OFF ON ON ON
Num Lock
Fn
Num
Lock
Fn
Num
Lock
HT82K628A
Fn
Num Lock
8*8
9 (9 PgUp 9 9
0)0 * * 0
UU
II 5 I
OO
PP - - P
J J End 1 J
KK
L L PgDn 3 L
:; :; + + :;
M M Ins 0 M
>. >. Del . >.
?/ ?/ / / ?/
Enter Enter (L) Enter(R) Enter(R) Enter(L)
F1/F11 F1 F11 F1 F11
F2/F12 F2 F12 F2 F12
¬
®
¯
88
4U
6O
2K
F10/
ScrLock
/PgUp
¯/PgDn ¯
¬/Home ¬
®/End ®
Rev. 1.60 14 April 16, 2004
F10 ScrLock F10 ScrLock
Page Up
Page Down
Home
End
¯
¬
®
Page Up
Page Down
Home
End
Key Matrix
R0
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10
R11
R12
R13
R14
R15
R16
R17
R18
R19
HT82K628A
C0 C1 C2 C3 C4 C5 C6 C7
PAUSE
126
Q
17
W
18
E
19
R
20
U
23
I
24
O
25
P
26
SCROLL
LOCK
125
|(\)
14
7(Home)
91
8()
96
9(PgUp)
101
+
106
Wake-up
Screen
Save
KC-L
150
Media E-mail
My
Computer
Pre Track Stop Play/Pause
16
30
114
21
22
28
118
27
15
92
97
102
107
SHIFT-L44SHIFT-R
Calculator
TAB
CAPS LOCK
F3
T
Y
](})
F7
[({)
BACK
4(¬)
5
6(®)
.
WIN-L Rec Rew Min Eject
A
31
S
32
D
33
F
34
J
37
K
38
L
39
;(:)
40
Vol-
\(|)
29
1(End)
93
2(¯)
98
3(PgDn)
103
ENTER-R
108
57
WIN-R 00 000 F2/F12
WWW Home
/
Page Up¯/Page Down¬/Home
ESC
110
|(\)
45
F4
115
G
35
H
36
F6
117
'(²)
41
ALT-L
60
F11
122
SPACE
61
0(Ins)
99
.(Del)
104
83
WWW
Search
WWW
Back
CTRL-R
64
Z
46
X
47
C
48
V
49
M
52
,(<)
53
.(>)
54
|(\)
42
Vol+
ENTER-L
43
NUM
LOCK
90
95
*
100
WWW
Forward
Next
Track
N-CHG
131
CHG
132
ROMA
133
B
50
N
51
\(-)
56
APP
/(?)
55
ALT-R
62
F12
123
¯
84
/
®
89
-
105
¬
79
WWW
Stop
®/
END
CTRL-L
58
¢(~)
1
F1
112
F2
113
5(%)
6
6(^)
7
=(+)
13
F8
119
_(-)
12
Mute
F9
120
DEL
76
INS
75
PgUp
85
HOME
80
F1/F11 FN
WWW
Refresh
F5
116
1(!)
2
2(@)
3
3(#)
4
4($)
5
7(&)
8
8(*)
9
9(¢(¢)
10
0(¢)¢)
11
PRINT
SCREEN
F10
121
POWER
SLEEP
PgDn
86
END
81
F10/
Scroll
KC-R
151
WWW
Bkmk
Rev. 1.60 15 April 16, 2004

Application Circuits

V D D
G N D
o p t i o n
F . B .
1 0mF
4 7 k
0 . 1mF
HT82K628A
3 2
V D D
1 5
0 . 1mF
V
D D
L E D 2
C L O C K
D A T A
L E D 1
L E D 0
5 8 . 3 k
V
D D
W
V
D D
1 N 4 1 4 8
W
V S S
3 0
C A P
1 7
N U M
1 6
S C R
3 1
R E S E T
1 9
C L K
1 8
D A T A
3 3
O S C 1
2 0
F n S e l e c t
2 1
M a c r o K e y s e l e c t
R 1 0 R 1 1 R 1 2 R 1 3 R 1 4 R 1 5 R 1 6 R 1 7 R 1 8 R 1 9
6
C 0
5
C 1
4
C 2
3
C 3
3 8
C 4
3 7
C 5
3 6
C 6
3 5
C 7
1 0
R 0
9
R 1
8
R 2
7
R 3
2
R 4
1
R 5
4 0
R 6
3 9
R 7
2 9
R 8
2 8
R 9
2 7 2 6 2 5 2 4 2 3 2 2 1 4 1 3 1 2 1 1
Note:
Fn Select ® GND: Enable Macro Key Select ® GND: Disable
H T 8 2 K 6 2 8 A
the Mini Keyboard
the Macro Key
Rev. 1.60 16 April 16, 2004

Package Information

40-pin DIP (600mil) Outline Dimensions
HT82K628A
A
4 0
B
1
C
D
E
Symbol
F G
Min. Nom. Max.
A 2045
B 535
C 145
D 125
E16
F50
G
¾
H 595
I 635
2 1
2 0
Dimensions in mil
¾ ¾ ¾ ¾ ¾ ¾
100
¾ ¾
H
a
I
a 0°¾15°
2065
555
155
145
20
70
¾
615
670
Rev. 1.60 17 April 16, 2004
Holtek Semiconductor Inc. (Headquarters)
No.3, Creation Rd. II, Science Park, Hsinchu, Taiwan Tel: 886-3-563-1999 Fax: 886-3-563-1189 http://www.holtek.com.tw
Holtek Semiconductor Inc. (Taipei Sales Office)
4F-2, No. 3-2, YuanQu St., Nankang Software Park, Taipei 115, Taiwan Tel: 886-2-2655-7070 Fax: 886-2-2655-7373 Fax: 886-2-2655-7383 (International sales hotline)
HT82K628A
Holtek Semiconductor Inc. (Shanghai Sales Office)
7th Floor, Building 2, No.889, Yi Shan Rd., Shanghai, China 200233 Tel: 021-6485-5560 Fax: 021-6485-0313 http://www.holtek.com.cn
Holtek Semiconductor Inc. (Shenzhen Sales Office)
5/F, Unit A, Productivity Building, Cross of Science M 3rd Road and Gaoxin M 2nd Road, Science Park, Nanshan District, Shenzhen, China 518057 Tel: 0755-8616-9908, 8616-9308 Fax: 0755-8616-9533
Holtek Semiconductor Inc. (Beijing Sales Office)
Suite 1721, Jinyu Tower, A129 West Xuan Wu Men Street, Xicheng District, Beijing, China 100031 Tel: 010-6641-0030, 6641-7751, 6641-7752 Fax: 010-6641-0125
Holtek Semiconductor Inc. (Chengdu Sales Office)
709, Building 3, Champagne Plaza, No.97 Dongda Street, Chengdu, Sichuan, China 610016 Tel: 028-6653-6590 Fax: 028-6653-6591
Holmate Semiconductor, Inc. (North America Sales Office)
46729 Fremont Blvd., Fremont, CA 94538 Tel: 510-252-9880 Fax: 510-252-9885 http://www.holmate.com
Copyright Ó 2004 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek as sumes no responsibility arising from the use of the specifications described. The applications mentioned herein are used solely for the purpose of illustration and Holtek makes no warranty or representation that such applications will be suitable without further modification, nor recommends the use of its products for application that may present a risk to human life due to malfunction or otherwise. Holtek¢s products are not authorized for use as critical components in life support devices or systems. Holtek reserves the right to alter its products without prior notification. For the most up-to-date information, please visit our web site at http://www.holtek.com.tw.
-
Rev. 1.60 18 April 16, 2004
Loading...