The HT82K629A can function both in USB and PS2 in
terface environment. For PS2 interface, it supports IBM
PC/AT, IBM PS/2 and all compatible machines and pro
vides a 16-character first-in-first-out buffer in which data
Block Diagram
SYS
=6M
HT82K629A
·
Supports PS2 code set 1 and code set 2
·
Supports multimedia key
·
Supports ACPI key
·
Supports mini-keyboard with Fn key
·
Built-in Watchdog Timer
·
HALT function and wake-up feature for USB mode to
reduce power consumption
·
40-pin DIP package
is stored. For USB interface, it can support the USB
standard request as well as HID class request version
7Fn_SelIMini-keyboard select, the function is enabled if connected to
8NUMONum lock indicator
9CAPSOCaps lock indicator
10SCROLLOScroll lock indicator
15VDD
16V33O
17USBD+/CLKI/O
18USBD-/DATAI/O
27VSS
28RESET
29
30
C0~C19O
OSCO
OSCI
Keyboard matrix scanning output pins
Positive power supply
¾
3.3V regulator output
¾
USBD- or PS2 CLK I/O line
USB or PS2 function is controlled by software control register.
USBD- or PS2 DATA I/O line
USB or PS2 function is controlled by software control register.
¾
Negative power supply, ground
ISchmitt trigger input. Active low.
OIOSCO, OSCI are connected to a 6MHz or 12MHz crystal/resonator for
the internal system clock.
C 1 8
4 0
C 1 9
3 9
R 4
3 8
R 5
3 7
R 6
3 6
R 7
3 5
C 1 1
3 4
C 1 0
3 3
C 9
3 2
C 8
3 1
O S C I
3 0
O S C O
2 9
R E S E T
2 8
V S S
2 7
C 7
2 6
C 6
2 5
C 5
2 4
C 4
2 3
C 3
2 2
C 2
2 1
VSS
.
Absolute Maximum Ratings
Supply Voltage ..........................VSS-0.3V to VSS+6.0V
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.
Rev. 1.402September 15, 2004
Storage Temperature ...........................-50°Cto125°C
Operating Temperature ..............................0°Cto70°C
-
HT82K629A
D.C. Characteristics
SymbolParameter
V
f
I
I
V
R
V
V
V
V
I
I
I
I
I
I
DD
SYS
SB
OP
V330
ph
IL1
IH1
IL2
IH2
OL1
OL2
OL3
OL4
OH1
OH2
Operating Voltage5V
Operating Frequency5V f
Standby Current5V No load,systemHALT
Operating Current5V
3.3V Regulator Output5V
Internal Pull-high Resistance
(C0~C19, R0~R7)
Input Low Voltage for I/O Ports 5V
Input HighVoltageforI/OPorts5V
Input Low Voltage (RESET)5V
Input High Voltage (RESET)5V
Sink Current (Fn_sel)5V
Sink Current (R0~R7)5V
Sink Current (C0~C19, NUM,
CAPS, SCROLL)
Sink Current (C0~C19, NUM,
CAPS, SCROLL)
Source Current (Fn_sel)5V
Source Current (C0~C19,
R0~R7, NUM,CAPS, SCROLL)
Test Conditions
V
DD
SYS
No load, f
I
V33O
5V
V
OL
V
OL
V
5V
OL
V
5V
OL
V
OH
V
5V
OH
Ta=25°C
Conditions
¾
Min.Typ.Max.Unit
4.4
¾
5.5V
=6MHz5.974766.0258MHz
500
mA
12mA
kW
0.8V
5V
0.4V
V
¾
¾
¾
¾
DD
DD
V
V
mA
mA
mA
mA
mA
mA
=-5mA
=0.4V
=0.4V
=0.4V
=3.4V
=3.4V
=3.4V
SYS
¾
¾
¾
¾
¾
=6MHz
¾¾
¾¾
33.33.6V
255075
0
2
0
0.9V
DD
¾
¾
¾
¾
1025
510
24
1217
-8-16¾
-2-5¾
A.C. Characteristics
SymbolParameter
f
WDT
Built-in 32kHz RC OSC for Watchdog Timer
Test Conditions
V
DD
Conditions
Min. Typ. Max. Unit
¾¾¾32¾
Ta=25°C
kHz
Rev. 1.403September 15, 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 - Typematic
Set All Keys - Make/Break
Set All Keys - Make
Set All Keys - Typematic/Make/Break
Set Key Type - Typematic
Set Key Type - Make/Break
Set Key Type - Make
ResendFE
ResetFF
The commands may be sent to the HT82K629A at any
time and the HT82K629A will respond within 25ms except whenperforming the internal diagnostics or executing 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 HT82K629A 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 HT82K629A 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.
F7
F8
F9
FA
FB
FC
FD
HT82K629A
The HT82K629A responds to the option byte with ACK,
sets theindicatorsandif the HT82K629Awas 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 HT82K629A re
ceives this command, it issues a hex EE response and if
the HT82K629A was previously enabled, continues
scanning.
EFH and F1H - Invalid Command
EFH and F1H are invalid commands and are not sup
ported. If HT82K629A receives one of these and sends
it, the HT82K629A will not acknowledge the command,
but returns a Resend command and continues in its previous scanning state.
F0H - Select Alternate Scan Codes
This commandinstructstheHT82K629Ato select one of
the two sets of scan codes. The HT82K629A 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.
An option byte value of hex 00 causes the HT82K629A
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
HT82K629A 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 HT82K629A. The HT82K629A responds with
discontinues scanning and sends the two keyboard ID
bytes hex 83h and ABh. After the output of the second
ID byte, the HT82K629A resumes scanning.
ACK
-
-
-
-
-
-
-
,
Rev. 1.404September 15, 2004
HT82K629A
F3H - Set Typematic Rate/Delay
The host issues the Set Typematic Rate/Delay com
mand to change the typematic rate and delay. The
HT82K629A responds to the command with ACK, stops
scanning and waits for the system to issue the rate/de
lay value byte. The HT82K629A 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). Bits 6 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, mul
tiplied 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 HT82K629A are as follows:
Typematic rate= 10.9 characters per second ± 20%
Delay = 500ms±20%
The execution of this command stops without changes
to the existing rate if another command is received in
stead of the rate/delay value byte.
Typematic
Rate ± 20%
Bit
Typematic
Rate ± 20%
F4H - Enable
Upon receipt of this command, the HT82K629A 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 HT82K629A will
respond with
fault typematic rate/delay, and clears the last typematic
key. The HT82K629A then stops scanning and awaits
further command.
F6H - Set Default
The Set Default command resets all conditions to the
power on default states. The HT82K629A will respond
with ACK, clears its output buffer, sets the default key
typematic rate/delay, and clears the last typematic key
then continues scanning.
F7H, F8H, F9H, FAH - Set All Keys
Since HT82K629A do not support keyboard code set 3
format, so it will not acknowledge the command but re
turns a Resend command and continues in its previous
scanning state.
FBH, FCH, FDH - Set Key Type
Since HT82K629A do not support keyboard code set 3
format, so it will not acknowledge the command but returns a Resend command and continues in its previous
scanning state.
FEH - Resend
The hostsendsthiscommand when it detects an error in
any transmissionfrom the HT82K629A. It is sent only af
ter a data transmission and before the host allows the
next data output. When a Resend is received, the
HT82K629A sends the previous output again (unless
the previous output was Resent, in which case the
HT82K629A sends the last byte before the Resend
command).
-
, clears its output buffer, sets the de
ACK
-
-
-
-
Rev. 1.405September 15, 2004
HT82K629A
Commands to the Host
The following table shows the commands that the
HT82K629A may send to the host and their hexadeci
mal values.
CommandHex Value
Key Detection Error/Overrun00 (Code Set 2)
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 HT82K629Asends a key detection error character if
conditions in the keyboard make it impossible to identify
a switch closure. If the HT82K629A is using scan code
set 1, the code is FFH. For sets 2, the code is 00H.
00H or FFH - Overrun
An overrun character is placed in the HT82K629A 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 HT82K629Ais
using scan code set 1, the code is
. For sets 2, the
FFH
code is 00H.
83AbH - Keyboard ID
The keyboard ID consists of 2 bytes, Hex 83AbH. The
HT82K629A responds to the Read ID with ACK, discontinues scanning and sends 2 ID bytes. The low byte is
sent first followed by the high byte. Following the output
of Keyboard ID, the HT82K629A begins scanning.
EEH - Echo
The HT82K629A sends this code in response to an
Echo command.
AAH - BAT Completion Code
Following a satisfactory completion of the BAT, the
HT82K629A sends AAH. Any other code indicates key
board failure.
FCH - BAT Failure Code
If a BAT failure occurs, the HT82K629A sends this code,
discontinues scanning and waits for a host response or
reset.
FEH - Resend
The HT82K629A issues a Resend command following
receipt of an invalid input or any input with incorrect par
ity. If the host sends nothing to the HT82K629A, 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 ev
ery 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 isactive it is forced
to be inactive, and counts one more bits.
Note: This action signals the system that the
keyboard has received its data. Upon
reception of thissignal, 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 error has 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.
Data Stream
Mode 1,2,3
B1
B2
B3
B4
B5
B6
-
B7
B8
B9
B10
B11
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)
Note: The parity bit is either 1or 0, and the 8 data bits,
plus the parity bit, always have an odd number
of 1ms.
-
-
-
-
-
-
-
Rev. 1.406September 15, 2004
HT82K629A
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
14Keycode14 (*J)7D/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
29Keycode29 (*4)2B/AB105-4A/CA
30Caps Lock3A/BA106+4E/CE
31A1E/9E107Keycode107 (*B)7E/FE
32S1F/9F108Enter_RE0 1C/E0 9C
33D20/A0110ESC01/81
34F21/A1112F13B/BB
35G22/A2113F23C/BC
36H23/A3114F33D/BD
37J24/A4115F43E/BE
38K25/A5116F53F/BF
39L26/A6117F640/C0
40:;27/A7118F741/C1
41
²¢
Make/Break Code
28/A8119F842/C2
Key Number
and Symbol
Make/Break Code
¬
¯
®
4D/CD
4B/CB
48/C8
50/D0
Rev. 1.407September 15, 2004
Loading...
+ 16 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.