Professional Documents
Culture Documents
Features
· Design for Windows 95/98/NT/2000/XP · 101/102/104/105/107/109 keys or other special ap-
· Supports WindowsTM keys plication keyboard encoder
· Supports PC/AT and PS/2 code set 1, 2, 3 · 8 external hot keys
General Description
The HT82K628A is a keyboard encoder designed for An inexpensive RC oscillator can be used for the system
IBM PC/AT, IBM PS/2 and all compatible machines. clock. Simple implementation of this device is an advan-
tage for high performance and low cost keyboard appli-
The HT82K628A accepts keyboard inputs and provides
cations.
a 16-character first-in-first-out buffer in which data is
stored.
Pin Assignment
R 5 1 4 0 R 6
R 4 2 3 9 R 7
C 3 3 3 8 C 4
C 2 4 3 7 C 5
C 1 5 3 6 C 6
C 0 6 3 5 C 7
R 3 7 3 4 N C
R 2 8 3 3 O S C 1
R 1 9 3 2 V D D
R 0 1 0 3 1 R E S E T
R 1 9 1 1 3 0 C A P S
R 1 8 1 2 2 9 R 8
R 1 7 1 3 2 8 R 9
R 1 6 1 4 2 7 R 1 0
V S S 1 5 2 6 R 1 1
S C R O L L 1 6 2 5 R 1 2
N U M 1 7 2 4 R 1 3
D A T A 1 8 2 3 R 1 4
C L O C K 1 9 2 2 R 1 5
F n S e le c t 2 0 2 1 M a c r o K e y s e le c t
H T 8 2 K 6 2 8 A
4 0 D IP -A
Pin Description
Pin No. Pin Name I/O Description
10~7, 2~1,
40~39, 29~22, R0~R19 O Keyboard matrix scanning output pins
14~11
6~3, 38~35 C0~C7 I Keyboard matrix scanning input pins
15 VSS ¾ Negative power supply, ground
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
Chip reset input. Active low. Built-in power-on reset circuit to reset the en-
31 RESET I
tire chip. Chip can also be externally reset via RESET pin.
32 VDD ¾ 5.0V positive power supply
33 OSC1 I System clock input; 58.3kW resistor connected for RC OSC
34 NC ¾ No connection
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.
Test Conditions
Symbol Parameter Min. Typ. Max. Unit
VDD Conditions
VDD Operating Voltage ¾ ¾ 3 5 5.25 V
IDD Operating Current (RC OSC) 5V No load, fSYS= 4MHz ¾ 2.5 5 mA
VIL Input Low Voltage 5V ¾ 0 ¾ 1.5 V
VIH Input High Voltage 5V ¾ 3.5 ¾ 5 V
IOL Sink Current (C0~C7, R0~R19, DATA, CLOCK) 5V VOL= 0.5V 16 25 ¾ mA
IOH1 Source Current (C0~C7, R0~R19) 5V VOH= 4.5V -8 -16 ¾ mA
IOH2 Source Current (Scroll, Num, Caps) 5V VOH= 4.5V -2.5 -4 ¾ mA
ILED LED Sink Current (Scroll, Num, Caps) 5V VOL=3.4V 10 18 24 mA
Rph Internal Pull-high Resistance (C0~C7, R0~R19) 5V ¾ 5 12 20 kW
Rph1 Internal Pull-high Resistance (DATA, CLOCK) 5V ¾ 2 4.7 8 kW
Rph2 Internal Pull-high Resistance (RESET) 5V ¾ 25 50 75 kW
fSYS System Clock (RC OSC) 5V ¾ ¾ 4 ¾ MHz
Functional Description
Command from the Host The HT82K628A responds to the option byte with ACK,
The following table shows the commands that the host sets the indicators and if the HT82K628A was previously
may send and their hexadecimal values. enabled, continues scanning. The status of the indica-
tors will reflect the bits in the option byte and can be acti-
Command Hex Value vated or deactivated in any combination. If another
Set/Reset Status Indicators ED command is received in place of the option byte, execu-
tion of the Set/Reset Mode Indicators command is
Echo EE
stopped, with no change to the indicator status, and the
Invalid Command EF new command is processed.
Select Alternate Scan Codes F0 Immediately after power-on, the lights default to the off
Invalid Command F1 state. If the Set Default and Default Disable commands
are received, the lamps remain in the state they were in
Read ID F2
before the command was received.
Set Typematic Rate/Delay F3
EEH - Echo
Enable F4
Echo is a diagnostic aid. When the HT82K628A re-
Default Disable F5
ceives this command, it issues a hex EE response and if
Set Default F6 the HT82K628A was previously enabled, continues
Set All Keys - Typematic F7 scanning.
The host issues the Set Typematic Rate/Delay com- Upon receipt of this command, the HT82K628A will re-
mand to change the typematic rate and delay. The spond with ACK, clears its output buffer, clears the last
HT82K628A responds to the command with ACK, stops typematic key, and starts scanning.
scanning and waits for the system to issue the rate/de-
lay value byte. The HT82K628A responds to the value F5H - Default Disable
byte with another ACK, sets the rate and delay to the The Default Disable command resets all conditions to
value indicated, and continues scanning (if it was previ- the power on default states. The HT82K628A will re-
ously enabled). Bit6 and 5 indicate the delay, and bits 4, spond with ACK, clears its output buffer, sets the default
3, 2, 1 and 0 indicate the rate. Bit7 is always 0. The delay key types (scan code set 3 operation only) and
is equal to 1 plus the binary value bit 6 and 5, multiplied typematic rate/delay, and clears the last typematic key.
by 250ms±20%. The HT82K628A then stops scanning and awaits further
command.
The period (interval from one typematic output to the
next) is determined by the following equation: F6H - Set Default
Period = (8+A)*(2^B)*0.00417 seconds. The Set Default command resets all conditions to the
power on default states. The HT82K628A will respond
Where:
with ACK, clears its output buffer, sets the default key
A = binary value of bits 2, 1, and 0. types (scan code set 3 operation only) and typematic
B = binary value of bits 4, and 3. rate/delay, and clears the last typematic key then contin-
ues scanning.
The typematic rate is 1 for each period and are listed as
follows: F7H, F8H, F9H, FAH - Set All Keys
Typematic Typematic These commands instruct the HT82K628A to set all
Bit Bit
Rate ± 20% Rate ± 20% keys to the type listed below:
00000 30.0 10000 7.5 Hex Value Command
00001 26.7 10001 6.7 F7 Set All Keys-Typematic
00010 24.0 10010 6.0 F8 Set All Keys-Make/Break
00011 21.8 10011 5.5 F9 Set All Keys-Make
00100 20.0 10100 5.0 FA Set All Keys-Typematic/Make/Break
00101 18.5 10101 4.6 The HT82K628A will respond with ACK, clears its output
buffer, sets all keys to the type indicated by this com-
00110 17.1 10110 4.3
mand, and continues scanning (if it was previously en-
00111 16.0 10111 4.0 abled). Although these commands can be sent using
01000 15.0 11000 3.7 any code set, they affect only scan code set 3 operation.
01001 13.3 11001 3.3 FBH, FCH, FDH - Set Key Type
01010 12.0 11010 3.0 These commands instruct the HT82K628A to set indi-
01011 10.9 11011 2.7 vidual keys to the type listed below:
Data Stream
Mode 1,2,3
B1: start bit
always 0
B2: data bit 0
b3: data bit 1
b4: data bit 2
b5: data bit 3
B6 data bit 4
b7: data bit 5
b8: data bit 6
b9: data bit 7
b10: parity bit
(odd par)
b11: stop bit
always 1
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 Number
Base Left-Shift Right-Shift
and Symbol
95 / E0 35/E0 B5 E0 AA E0 35/E0 B5 E0 2A E0 B6 E0 35/E0 B5 E0 36
Both Shift
When both shift keys are held down: key number 95
E0 AA E0 B6 E0 35/E0 B5 E0 2A E0 36
Key Number
Base Shift/Ctrl Alt
and Symbol
124 Print Screen E0 2A E0 37/E0 B7 E0 AA E0 37/E0 B7 54/D4
Key Number
Base Ctrl
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
Make/Break code Default
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
Make/Break code Default
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 F1/- Make
151 Korea KC-R F0/- Make
75 Insert E0 70 E0 F0 12 E0 70 E0 F0 59 E0 70 E0 12 E0 70
/E0 F0 70 /E0 F0 70 E0 12 /E0 F0 70 E0 59 /E0 F0 70 E0 F0 12
76 Delete E0 71 E0 F0 12 E0 71 E0 F0 59 E0 71 E0 12 E0 71
/E0 F0 71 /E0 F0 71 E0 12 /E0 F0 71 E0 59 /E0 F0 71 E0 F0 12
79 ¬ E0 6B E0 F0 12 E0 6B E0 F0 59 E0 6B E0 12 E0 6B
/E0 F0 6B /E0 F0 6B E0 12 /E0 F0 6B E0 59 /E0 F0 6B E0 F0 12
80 Home E0 6C E0 F0 12 E0 6C E0 F0 59 E0 6C E0 12 E0 6C
/E0 F0 6C /E0 F0 6C E0 12 /E0 F0 6C E0 59 /E0 F0 6C E0 F0 12
81 End E0 69 E0 F0 12 E0 69 E0 F0 59 E0 69 E0 12 E0 69
/E0 F0 69 /E0 F0 69 E0 12 /E0 F0 69 E0 59 /E0 F0 69 E0 F0 12
83 E0 75 E0 F0 12 E0 75 E0 F0 59 E0 75 E0 12 E0 75
/E0 F0 75 /E0 F0 75 E0 12 /E0 F0 75 E0 59 /E0 F0 75 E0 F0 12
84 ¯ E0 72 E0 F0 12 E0 72 E0 F0 59 E0 72 E0 12 E0 72
/E0 F0 72 /E0 F0 72 E0 12 /E0 F0 72 E0 59 /E0 F0 72 E0 F0 12
85 PgUp E0 7D E0 F0 12 E0 7D E0 F0 59 E0 7D E0 12 E0 7D
/E0 F0 7D /E0 F0 7D E0 12 /E0 F0 7D E0 59 /E0 F0 7D E0 F0 12
86 PgDn E0 7A E0 F0 12 E0 7A E0 F0 59 E0 7A E0 12 E0 7A
/E0 F0 7A /E0 F0 7A E0 12 /E0 F0 7A E0 59 /E0 F0 7A E0 F0 12
89 ® E0 74 E0 F0 12 E0 74 E0 F0 59 E0 74 E0 12 E0 74
/E0 F0 74 /E0 F0 74 E0 12 /E0 F0 74 E0 59 /E0 F0 74 E0 F0 12
E0 1F E0 F0 12 E0 1F E0 F0 59 E0 1F E0 12 E0 1F
L Win
/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
R Win
/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
APP
/E0 F0 2F /E0 F0 2F E0 12 /E0 F0 2F E059 /E0 F0 2F E0 F0 12
When both shift keys are held down: Both Shift
key number 75 E0 AA E0 B6 E0 52/E0 D2 E0 2A E0 36
Key Number
Base Left-Shift Right-Shift
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: Both Shift
key number 95 E0 F0 12 E0 F0 59 E0 4A/E0 F0 4A E0 12 E0 59
Key Number
Base Shift/Ctrl Alt
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
Base Ctrl
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.
Key Number
Make/Break code Default
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
Make/Break code Default
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 F1/- Make
Volume- E0 21/E0 F0 21
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
Key Number
Make/Break code Default
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 F1/- Make
Timing Diagrams
Data Output
(1 ) (3 ) (3 ) (3 ) (3 ) (4 )
1 s t 2 n d 1 0 th 1 1 th
C L K C L K C L K C L K C L K
(5 ) (7 )
T 3 T 4 T 5
(2 ) T 1 T 2
D A T A S ta r t B it B it 0 P a r ity B it S to p B it
(6 )
T im in g P a r a m e te r M in /M a x
T 1 D A T A tr a n s itio n to th e fa llin g e d g e o f C L K 5 /2 5 m s e c
T 2 R is in g e d g e o f C L K to D A T A tr a n s itio n 5 /T 4 -5 m s e c
T 3 D u r a tio n o f C L K in a c tiv e 3 0 /5 0 m s e c
T 4 D u r a tio n o f C L K a c tiv e 3 0 /5 0 m s e c
T 5 T im e to a u x ilia r y d e v ic e in h ib it a fte r c lo c k 1 1 to e n s u r e > 0 /5 0 m s e c
th e a u x ilia r y d e v ic e d o e s n o t s ta r t a n o th e r tr a n s m is s io n
(1 ) I/O (2 ) (4 ) 2 n d 9 th 1 0 th 1 1 th
1 s t
In h ib it C L K C L K C L K C L K C L K
C L K
(8 )
T 7 T 8
T 9 (6 )
D A T A S ta r t B it B it 0 P a r ity B it S to p B it
(3 ) (5 ) (5 ) (7 )
T im in g P a r a m e te r M in /M a x
T 7 D u r a tio n o f C L K in a c tiv e 3 0 /5 0 m s e c
T 8 D u r a tio n o f C L K a c tiv e 3 0 /5 0 m s e c
T 9 T im e fr o m in a c tiv e to a c tiv e C L K tr a n s itio n , u s e d to tim e 5 /2 5 m s e c
w h e n th e a u x ilia r y d e v ic e s a m p le s D A T A
· Fn key usage
Status
7 &7 Home 7 7
8 *8 8 8
9 (9 PgUp 9 9
0 )0 * * 0
U U ¬ 4 U
I I 5 I
O O ® 6 O
P P - - P
J J End 1 J
K K ¯ 2 K
L L PgDn 3 L
:; :; + + :;
M M Ins 0 M
?/ ?/ / / ?/
F10/
F10 ScrLock F10 ScrLock
ScrLock
Key Matrix
C0 C1 C2 C3 C4 C5 C6 C7
PAUSE CTRL-R Next CTRL-L F5
R0 Pre Track Stop Play/Pause
126 64 Track 58 116
Q TAB A ESC Z N-CHG ¢(~) 1(!)
R1
17 16 31 110 46 131 1 2
CAPS
W S |(\) X CHG F1 2(@)
R2 LOCK
18 32 45 47 132 112 3
30
E F3 D F4 C ROMA F2 3(#)
R3
19 114 33 115 48 133 113 4
R T F G V B 5(%) 4($)
R4
20 21 34 35 49 50 6 5
U Y J H M N 6(^) 7(&)
R5
23 22 37 36 52 51 7 8
I ](}) K F6 ,(<) \(-) =(+) 8(*)
R6
24 28 38 117 53 56 13 9
O F7 L .(>) F8 9(¢(¢)
R7 APP
25 118 39 54 119 10
P [({) ;(:) '(²) |(\) /(?) _(-) 0(¢)¢)
R8
26 27 40 41 42 55 12 11
SCROLL
ALT-L ALT-R PRINT
R9 LOCK Vol- Vol+ Mute
60 62 SCREEN
125
|(\) BACK \(|) F11 ENTER-L F12 F9 F10
R10
14 15 29 122 43 123 120 121
NUM
7(Home) 4(¬) 1(End) SPACE ¯ DEL
R11 LOCK POWER
91 92 93 61 84 76
90
Screen F10/
R16 WIN-L Rec Rew Min Eject
Save Scroll
KC-L KC-R
R17 WIN-R 00 000 F2/F12
150 151
WWW WWW WWW WWW WWW WWW
R18 Media E-mail
Home Back Forward Stop Refresh Bkmk
R19
My / ¯/ ¬/ ®/
Calculator
Computer Page Up Page Down Home END
Application Circuits
3 2 V D D
V D D
F .B . 1 5 6
V S S C 0
1 0 m F 0 .1 m F C 1 5
C 2 4
C 3 3
G N D
C 4 3 8
V D D
3 7
L E D 2 C 5
3 0 C 6 3 6
C A P
C 7 3 5
L E D 1 1 0
V D D
1 7 R 0
N U M 9
R 1
L E D 0 8
1 6 R 2
1 N 4 1 4 8 S C R 7
R 3
R 4 2
4 7 k W
3 1 R 5 1
R E S E T
R 6 4 0
0 .1 m F 3 9
R 7
R 8 2 9
o p tio n
R 9 2 8
R 1 0 2 7
1 9 C L K
C L O C K 2 6
R 1 1
1 8 R 1 2 2 5
D A T A D A T A
R 1 3 2 4
V D D
R 1 4 2 3
R 1 5 2 2
5 8 .3 k W R 1 6 1 4
3 3 O S C 1 R 1 7 1 3
2 0 R 1 8 1 2
F n S e le c t
R 1 9 1 1
2 1 M a c r o K e y s e le c t
H T 8 2 K 6 2 8 A
Note: Fn Select ® GND: Enable the Mini Keyboard
Macro Key Select ® GND: Disable the Macro Key
Package Information
40-pin DIP (600mil) Outline Dimensions
4 0 2 1
B
1 2 0
C
D
a I
E F G
Dimensions in mil
Symbol
Min. Nom. Max.
A 2045 ¾ 2065
B 535 ¾ 555
C 145 ¾ 155
D 125 ¾ 145
E 16 ¾ 20
F 50 ¾ 70
G ¾ 100 ¾
H 595 ¾ 615
I 635 ¾ 670
a 0° ¾ 15°