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.
19CLOCKI/O Synchronous clock signal. Used to clock the transmission data.
20Fn SelectIMini-keyboard select, enables the function if connected to VSS.
21Macro Key SelectIMacro Key select, disables the function if connected to VSS.
30CAPSOCaps Lock indicator
31RESET
32VDD
33OSC1I
34NC
R0~R19O
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 reliability.
Electrical Characteristics
SymbolParameter
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 Voltage5V
Input High Voltage5V
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.4V101824mA
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
355.25V
2.55mA
¾
0
3.5
1625
-8-16¾
-2.5-4¾
51220
24.78
255075
¾
¾
1.5V
5V
mA
¾
mA
mA
kW
kW
kW
MHz
Rev. 1.602April 16, 2004
Functional Description
Command from the Host
The following table shows the commands that the host
may send and their hexadecimal values.
CommandHex Value
Set/Reset Status IndicatorsED
EchoEE
Invalid CommandEF
Select Alternate Scan CodesF0
Invalid CommandF1
Read IDF2
Set Typematic Rate/DelayF3
EnableF4
Default DisableF5
Set DefaultF6
Set All Keys - TypematicF7
Set All Keys - Make/BreakF8
Set All Keys - MakeF9
Set All Keys - Typematic/Make/BreakFA
Set Key Type - TypematicFB
Set Key Type - Make/BreakFC
Set Key Type - MakeFD
ResendFE
ResetFF
The commands may be sent to the HT82K628A at any
time and the HT82K628A will respond within 25ms except 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:
BitIndicator
0Scroll Lock Indicator
1Num Lock Indicator
2Caps Lock Indicator
3~7Reserved (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 previous scanning state.
F0H - Select Alternate Scan Codes
This commandinstructs the HT82K628A to select one of
the three sets of scan codes. The HT82K628A acknowledges 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.603April 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
0000030.0100007.5
0000126.7100016.7
0001024.0100106.0
0001121.8100115.5
0010020.0101005.0
0010118.5101014.6
0011017.1101104.3
0011116.0101114.0
0100015.0110003.7
0100113.3110013.3
0101012.0110103.0
0101110.9110112.7
0110010.0111002.5
011019.2111012.3
011108.0111102.1
011118.0111112.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 ValueCommand
F7Set All Keys-Typematic
F8Set All Keys-Make/Break
F9Set All Keys-Make
FASet All Keys-Typematic/Make/Break
The HT82K628Awill respond withACK, clears its output
buffer, sets all keys to the type indicated by this command, and continues scanning (if it was previously enabled). 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 ValueCommand
FBSet Key Type-Typematic
FCSet Key Type-Make/Break
FDSet 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.604April 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.
CommandHex Value
Key Detection Error/Overrun 00 (Code Set 2 and 3)
Keyboard ID83AB
Bat Completion CodeAA
Bat Failure CoreFC
EchoEE
AcknowledgeFA
ResendFE
Key Detection Error/OverrunFF (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 intervals of 10ms
¨
If a system request-to-send is detected, the keyboard 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.605April 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/A947X2D/AD
2!102/8248C2E/AE
3@203/8349V2F/AF
4#304/8450B30/B0
5$405/8551N31/B1
6%506/8652M32/B2
7^607/8753<,33/B3
8&708/8854>.34/B4
9*809/8955?/35/B5
10(90A/8A57Shift (R)36/B6
11)00B/8B58Ctrl (L)1D/9D
12_-0C/8C60Alt (L)38/B8
13+=0D/8D61Space39/B9
1456 7D/D6 FD62Alt (R)E0 38/E0 B8
15Back Space0E/8E64Ctrl (R)E0 1D/E0 9D
16Tab0F/8F90Num Lock45/C5
17Q10/90917Home47/C7
18W11/91924
19E12/92931End4F/CF
20R13/93968
21T14/949754C/CC
22Y15/95982
23U16/96990Ins52/D2
24I17/97100*37/B7
25O18/981019PgUp49/C9
26P19/991026
27{[1A/9A1033PgDn51/D1
28}]1B/9B104.Del53/D3
*29
½
\2B/AB105-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
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.6012April 16, 2004
HT82K628A
Key Number
and Function
Make/Break codeDefault
56Brazil BA051/F0 51Typematic
131Japanese J13167/F0 67Make
132Japanese J13264/F0 64Make
133Japanese J13313/F0 13Make
150Korea KC-L
151Korea KC-R
F1/F2/-
Timing Diagrams
Data Output
( 1 )( 3 )( 3 )
C L K
( 2 )
D A T AS t a r t B i tB i t 0P a r i t y B i tS t o p B i t
T 1
T 2
T 3
T 4
T 5
1 s t
C L K
T 3T 4
T 1T 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 AS t a r t B i tB i t 0P a r i t y B i tS t o p B i t
T 7
T 8
T 9T 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 7T 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.6013April 16, 2004
·
Fn key usage
Status
Key
Location
7&7Home77
Fn
OFFOFFONOFFOFFONONON
Num
Lock
Fn
Num
Lock
Fn
Num
Lock
HT82K628A
Fn
Num
Lock
8*8
9(9PgUp99
0)0**0
UU
II5I
OO
PP--P
JJEnd1J
KK
LLPgDn3L
:;:;++:;
MMIns0M
>.>.Del.>.
?/?///?/
EnterEnter (L)Enter(R)Enter(R)Enter(L)
F1/F11F1F11F1F11
F2/F12F2F12F2F12
¬
®
¯
88
4U
6O
2K
F10/
ScrLock
/PgUp
¯/PgDn¯
¬/Home¬
®/End®
Rev. 1.6014April 16, 2004
F10ScrLockF10ScrLock
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
C0C1C2C3C4C5C6C7
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
MediaE-mail
My
Computer
Pre TrackStopPlay/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-LRecRewMinEject
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-R00000F2/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/F11FN
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.6015April 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
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)
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.6018April 16, 2004
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.