dows 98 ACPI functions
Supports Japanese, Korean and Portuguese
·
Supports Japanese DOS/V 106-key
·
keyboard
Supports code set 1, for PS/2 model
·
30 keyboard
General Description
The HT82K28A is a keyboard encoder espe
cially designed for IBM PC/AT, IBM PS/2 and
all compatible machines.
The HT82K28A accepts keyboard inputs and
contains a 16-character first-in-first-out buffer
Pin Assignment
HT82K28A
Supports code set 2, for PC/AT, PS/2 model
·
50,60 keyboards
Supports code set 3, for PS/2 model
·
80 keyboard
RC oscillator
·
Phantom key detection
·
Minimal external components
·
Pin-compatible with Holtek HT6547E-2
·
40-pin DIP/DICE form
·
in which data is stored. An inexpensive RC os
-
cillator can be used for the system clock. The
device offers the advantage of simple imple
mentation in high performance and low cost
keyboard applications.
-
-
OSC1
VSS
VDD
VSS
IO 0
IO 1
C2
C3
C4
C5
C6
C7
R10
R11
R12
R0
R1
R2
R3
R4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
H T82K 28A
4 0 D IP
C1
C0
DATA
CLOCK
R18
R17
NC
R16
CAP
NUM
SCRL
R9
R8
R15
R14
NC
R13
R7
R6
R5
1February 16, 2000
HT82K28A
Pin Description
Pin No.Pin NameI/ODescription
1OSC1ISystem clock input
2, 4VSS
3VDD
5, 6IO0~IO1OCustomer defined optional output lines
39, 40,
7~12
16~23, 28,
29, 13~15
24, 26, 27
33, 35
25, 34NC
30SCRLOLED pin
31NUMOLED pin
32CAPOLED pin
37CLOCKI/O Synchronous clock signal. Used to clock the transmission data
38DATAI/O Bidirectional data transmission line
C0~C7IKeyboard matrix scanning input pins
R0~R18OKeyboard matrix scanning output pins
Negative power supply, ground
¾
Positive power supply
¾
No connection
¾
Absolute Maximum Ratings
Supply Voltage ............................4.75V to 5.25V
Storage Temperature.................-55°Cto125°C
Note: These are stress ratings only. Stresses exceeding the range specified under ²Absolute Maxi-
mum 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.
Input Voltage .................V
Operating Temperature ..................0°Cto70°C
2February 16, 2000
-0.3V to VDD+0.3V
SS
HT82K28A
Electrical Characteristics
Ta=25°C
SymbolParameterTest ConditionsMin. Typ. Max. Unit
V
I
V
V
V
R
f
DD
DD
IL
IH
OL
ph
SYS
Operating Voltage
Operating Current
Input Low Voltage (C0~C7)
Input Low Voltage (DATA, CLOCK)
Input High Voltage
Output Low Voltage (R0~R18)
Output Low Voltage (DATA, CLOCK)
Internal Pull-high Resistance (C0~C7)
Internal Pull-high Resistance
(CLOCK, DATA)
System Clock
I
OL
I
OL
¾
4.7555.25V
¾¾
¾
¾
¾
=10mA
=15mA
¾
¾
0
0
3.5
¾¾
¾¾
51020
2515
¾¾4¾
25mA
0.6V
¾
0.6V
¾
V
¾
DD
0.5V
0.5V
kW
kW
MHz
V
3February 16, 2000
Functional Description
The HT82K28A basic 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 sys
tem and responds to the system if necessary. All
communication between the keyboard and the
system is managed through the CLOCK and
DATA pins.
The keyboard begins to scan for pressed or re
leased keys and commands from the system after
the BAT (Basic Assurance Test) has been run.
Working modes
Three working modes are supported by the
HT82K28A. These are setup by the alternate
scan code command F0. The various modes are
described as follows.
Mode 3
·
Supports code set 3, for PS/2 model 80 key
boards.
·
-
Enters mode 3 when an F0 command is issued
followed by a 3".
·
Contains an 11 bit data stream, including one
start bit (always zero) eight data bits, one par
ity bit (odd parity) and one stop bit (always
one).
Response codes, i.e FA/FE... do not occupy
buffer positions.
HT82K28A
-
-
Mode 1
·
Supports code set 1 for PS/2 model 30 key
boards.
·
Enters mode1 after an F0 Command is issued
followed by a 1".
·
Contains an 11 bit data stream, including one
start bit (always zero) eight data bits, one parity bit (odd parity) and one stop bit (always
one).
·
All keys are typematic/make/break as default.
·
The working mode can be changed again in
this mode, by issuing an F0 command followed by an option. See the F0 command for
more detail.
Mode 2
·
Supports code set 2 for PC/AT, PS/2 model 50,
60 keyboards.
·
Enters mode 2 after power on.
The working mode can be changed by an F0
command followed by an option byte 1, 2 or 3.
See the F0 command for more details.
·
Contains an 11 bit data stream, including one
start bit (always zero) eight data bits, one par
ity bit (odd parity) and one stop bit (always
one)
·
All keys are typematic/make/break as default.
Basic assurance test - BAT
The following functions are offered by the Basic
-
Assurance Test:
·
Turns on LED status indicators.
·
Keyboard processor test.
·
RAM test.
·
Turns off LED status indicators, i.e. the
LEDs.
·
Reports the BAT result to the system.
Note: During the BAT, activity on the "clock"
and "data" line are ignored. The LED¢s
are turned on at the beginning and
turned off at the end of the BAT. The
BAT takes a minimum of 450ms after
POR and a maximum of 2.5s. The re
sponse to a satisfactory BAT completion
is ²AA² and response to BAT failure is
an ²FC² error. The reset keyboard com
mand ²FF² will also cause the keyboard
to execute the BAT. Completion codes
are sent between 300 and 500ms after a
-
reset command is acknowledged. After
the BAT, the keyboard sets the keys to
typematic and make/break, and sets the
default typematic rate and delay.
-
-
4February 16, 2000
HT82K28A
Power-on
Twoimportant activities take place when power
is first applied to the keyboard. The first is the
presence of an H/W signal POR (Power-On-Re
set) that resets the keyboard processor. The sec
ond activity is the running of the self test BAT
(Basic Assurance Test) routine.
PO RR eset
150m s~2s300m s~500m s
450m s~2.5sec
Pow er on startBA T started BAT com plete
PC-type/mode/code set
The following table describes the relationship
between different computer types, the working
mode and the code sets.
PS/2 30mode 1code set 1
PC-ATmode 2code set 2
PS/2 50mode 2code set 2
PS/2 60mode 2code set 2
PS/2 80mode 3code set 3
The mode can be changed between mode 2 & 3.
Keys
·
For code set 1, 2
All keys except the PAUSE key have a make
and break code. The PAUSE key has a make
code only.
The defaults except for PAUSE are make/
break/typematic. In mode 1, 2 and 3 the key
type may be changed to be one of the follow
ing:
m ode1
All keys except PAUSE are typematic.
Typematic means that the KB keeps send
-
ing make codes if the key is held down.
-
-
The data report is according to the
typematic rate/delay:
Default values are: delay 500ms ± 20%
10.9 char/sec ± 20%
The typematic rate and delay can be modi
-
fied with the F3 command.
¨
If two or more keys are held down, only the
last key pressed repeats at the typematic
rate.
Typematic operation stops when the last
key pressed is released even if other keys
are still held down.
If a key is pressed and held down while key
board transmission is inhibited, only the
first make code is stored in the buffer over
flow as a result of typematic action.
Four key types are supported as shown:
Key typepressholdrelease
Typematic
Make/break
Make
Typematic/
make1
make1
make1
make1
make2
X
X
make2
X
break
X
break
make/break
Note: "make1" send out only one make
code.
"Make2" continue sending out make
codes until key is released.
"X" nothing sent out.
·
For code set 3
¨
-
Typematic
¨
Make/break
¨
Make
¨
Typematic/make/break
Can be configured by command
m ode2m ode3
¨
Typematic
¨
Make/break
¨
Make
¨
Typematic/make/break
Time interval between phantoms
The time interval between two continuous error
codes 00/FF sent while phantom detected=
1000ms ± 20%
5February 16, 2000
System command table
Commandmode 1mode 2mode 3
FF - reset
FE - resend
FD - set key type make
FC - set key type make/break
FB - set key type typematic
FA - set all keys typematic/make/break
F9 - set all keys make
F8 - set all keys make/break
F7 - set all keys typematic
F6 - set default
F5 - default disabled
F4 - enable
F3 - set typematic rate/delay
F2 - Read ID
F1 F0 - select alternate scan codes
EF EE - Echo
ED - set/reset status indicators
HT82K28A
y
y
y
y
y
y
y
y
y
y
y
y
y
y
x
y
x
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
x
y
x
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
x
y
x
y
y
The keyboard should respond within 20ms, ex
cept when performing the BAT or executing a
reset command.
Command description
·
Default disable - F5
¨
Send an acknowledge FA to the system
¨
Clear its output buffer, FIFO
¨
Set the default key types
¨
Set typematic rate/delay as default value
¨
Clear the last typematic key
¨
Stop scanning and wait for further instruc
tion
·
Echo - EE
¨
Send an EE to the system
¨
Continue scanning if the keyboard is en
abled
Note: This command does not need to feed
back the ACK
·
-
Enable - F4
¨
Send an ACK to the system
¨
Clear output buffer
¨
Clear the last typematic key
¨
Start scanning
·
Invalid command
¨
Send an FE to the system
¨
No further activities
Note: No ACK
·
Read ID - F2
-
¨
Send an ACK to the system
¨
Discontinue scanning
¨
2 byte ID-AB, 83
The 2nd byte must follow the completion of
-
the first byte within 500ms
¨
Resume scanning
6February 16, 2000
HT82K28A
·
Resend - FE
¨
Send the last code to the system
Note: * No FA response
·
Reset - FF
¨
Disable keyboard
¨
Send an ACK to the system, the keyboard
acknowledges the command with an ACK
and ensures the system accepts the ACK be
fore executing the command
¨
The system sets CLK=DATA=high for
500ms: acceptance of ACK
¨
The system can issue any command to the
KB within the 500ms period mentioned
above to override FF
¨
If no override, the system performs its BAT
and enters mode 2 (even if it is set to be
mode 3)
·
Select alternate scan code - F0
¨
Send an ACK to the system
¨
Clears both output buffer and the typematic
key
¨
Accept option byte
·
Set all keys - F7, F8, F9, FA
¨
FA: Set all keys to typematic/make/break
¨
F9: Set all keys to make
¨
F8: Set all keys to make/break
¨
F7: Set all keys to typematic
¨
Send an ACK to the system
¨
Clear output buffer
¨
Set all keys to the type indicated by the command
·
Set default - F6
¨
Send an ACK to the system
¨
Clear the output buffer
¨
Set to default key states: Default key type
typematic rate/delay
·
Set key type - FB,FC,FD
¨
FB : Set key type - Typematic
¨
FC : Set key type - Make/Break
¨
FD : Set key type - Make
¨
The keyboard responds with ACK, clears its
output buffer and prepares to receive key
identification
¨
Key identification is accomplished by the
system identifying each key by its scan code
value as defined in scan code set3.
¨
-
Only scan code set3 values are valid for key
identification
¨
The type of each identified key is set to the
value indicated by the command
¨
These commands can be sent using any
scan code set, but affect only the operation
of scan code set3
·
Set LED - ED
¨
Send ACK to the system
¨
Discontinue scanning
¨
Wait for the option from the system
¨
Respond with ACK to the system
¨
Set indicator
¨
If command comes from the system in place
of option, discard the set LED function and
then process the new command
¨
LED default after power on - all off
¨
Set default disable - do not change the LEDs
·
Set typematic rate/delay - F3
¨
Send an ACK to the system
¨
Stop scanning
¨
Wait for the system typematic rate and delay
¨
Send an ACK to the system
¨
Set rate/delay
¨
Bit 6,5 delay
¨
Bit 4,3,2,1,0 typematic rate
¨
Bit 7=0 (always)
Delay= (1+bit6,bit5) ´ 250ms
Typematic rate= 1/period
...where period= (8+A) ´ (2^B) ´ 0.00417
...where A= binary value of bit 2, 1 and 0
...where B= binary value of bit 4 and 3
00: keyboard detect a error/overrun (set 2, set 3)
AB,83: keyboard ID
AA: BAT completion
FC: BAT failure
EE: Echo
FA: Acknowledge
FE: Resend
FF: Keyboard detects a overrun (set 1)
·
FA: Acknowledge
If the KB (Keyboard) receives any valid input
except EE (echo) and resend (FE) then send
an FA to the system first.
If the command is EE, then send an EE back
to the system.
If the command is FE, then send the last key
code to system.
If there is an interrupt while sending FA, the
KB discards the FA and accepts the command
from the system and processes it.
·
00/FF: Key overrun
If the keyboard detects an overrun error, the
KB sends an overrun error code to the system.
mode 1: FF
mode 2,3: 00
HT82K28A
·
FE: Resend
The KB issues an FE when there is a parity
error in transmission.
Data communications
·
Data output
¨
If CLK=0, no transmission (keyboard inhib
ited).
¨
If CLK=1, DATA=0, no transmission (sys
tem request to send).
¨
If CLK=1, DATA=1, transmission permit
ted.
¨
Data will be valid before the trailing edge
and beyond the leading edge of the clock.
¨
The KB checks the clock line for an active
level 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 state of the clock
line at intervals of no more than 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 on the "data" line. If the line
is active it is forced 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 following the 10th bit, a frame
error has occurred, and the keyboard contin
ues to count until the "data" line becomes ac
tive. The keyboard then makes the "data" line
inactive and sends a Resend.
-
-
-
-
-
8February 16, 2000
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 1 s.
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
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
Make Only
Make Only
Make Only
Make/Break
Make/Break
Make/Break
* Different from code set 2
15February 16, 2000
Timing Diagrams
Data output
(1 ) (3 )(3 )
CLK
D A T AS ta rt B itB it 0P a rity B itS to p B it
T1T2(2 )
1st
CLK
T3T4
2nd
CLK
(3 )
(3 )(4 )
10th
CLK
11th
CLK
T5
HT82K28A
(5 ) (7 )
(6 )
T1
T2
T3
T4
T5
Keyboard data input
(1 )
CLK
DATAStart BitBit 0Parity BitStop Bit
T7
T8
T 9T im e fro m in a c tiv e to a c tiv e C L K tra n s itio n , u s e d to tim e
Tim ing Param eter
D A TA transition to the falling edge of C LK
R ising edge of C LK to D ATA transition
D u ra tio n o f C L K in a c tiv e
D u ra tio n o f C L K a c tiv e
T im e to a u x ilia ry d e v ic e in h ib it a fte r c lo c k 1 1 to e n s u re
the auxiliary device does not start another transm ission
(4 )
(2 )
I/O
In h ib it
Tim ing Param eter
D u ra tio n o f C L K in a c tiv e
D u ra tio n o f C L K a c tiv e
w hen the auxiliary device sam ples D A TA
(3 )
1st
CLK
T7T8
2nd
CLK
T9
(5 )(7 )
9th
CLK
(5 )
10th
CLK
Min/Max
5/25 msec
5/T 4-5 msec
30/50 msec
30/50 msec
>0/50 msec
(6 )
Min/Max
30/50 msec
30/50 msec
5/25
11th
CLK
m
(8 )
sec
16February 16, 2000
Application Circuits
HT82K28A
VDD
GND
DATA
CLOCK
F.B.
0.1mF
10mF
V
DD
L E D C A P
L E D N U M
L E D S C R L
3
VDD
4
1
2
38
37
5
32
31
30
25
34
36
6
VSS
OSC1
VSS
DATA
CLOCK
IO 0
CAP
NUM
SCRL
NC
NC
NC
IO 1
R
C7
C6
C5
C4
C3
C2
C1
C0
R17
R16
R15
R14
R13
R12
R11
R10
R9
R8
R7
R6
R5
R4
R3
R2
R1
R0
12
11
10
9
8
7
40
39
35
33
27
26
24
15
14
13
29
28
23
22
21
20
19
18
17
16
HT82K28A
17February 16, 2000
HT82K28A
Standard Holtek Win98 keyboard
C7C6C5C4C3C2C1C0
R0F5L-CTRL WAKE-UP R-CTRLSLEEPPOWERPAUSE
R1
R2
R3
R4
R5
R6
R7
R8
R9PRINTR-ALTL-ALT
R10F10F9F12ENTERF11
R11POWERDEL
R12SLEEPINSERT
R13PG DNPG UPNUM -NUM *NUM .NUM 3NUM 6NUM 9
R14ENDHOME
R15K94R-SHFL-SHFWAKE UP
R16K129L-WINK130
R17K109R-WIN
!
1
@
2
#
3
$
4
&
7
*
8
(
9
)
0
~
F1K132XK45S
F2K133CF4DF3E
%
5
^
6
+
=
F8APP
_
-
K131ZESCATABQ
CAP
LOCK
BVGFT R
NMHJY U
K56
?
/
DOWN
Arrow
RIGHT
Arrow
LEFT
Arrow
<
,
>
.
K42
NUM
LOCK
NUM /NUM 0NUM 2NUM 5NUM 8
F6K
LF7 O
"
'
SPACENUM 1NUM 4NUM 7
UP
Arrow
:
;
|
\
NUM
ENTER
}
]
{
[
SCR
LOCK
BSK14
K107NUM +
W
I
P
18February 16, 2000
HT82K28A
The above key code is according to the Microsoft specification except for the following keys.
Key NoCode Set 1 Make/BreakCode Set 2 Make/BreakCode Set 3 Make/Break
147DFD6AF0 6A5DF0 5D
947CFC68F0 6868F0 68
10978F863F0 6378F0 78
129F1F1F1
130F0F2F2
19February 16, 2000
HT82K28A
Holtek Semiconductor Inc. (Headquarters)
No.3 Creation Rd. II, Science-based Industrial Park, Hsinchu, Taiwan, R.O.C.
Tel: 886-3-563-1999
Fax: 886-3-563-1189
Holtek Semiconductor Inc. (Taipei Office)
5F, No.576, Sec.7 Chung Hsiao E. Rd., Taipei, Taiwan, R.O.C.
Tel: 886-2-2782-9635
Fax: 886-2-2782-9636
Fax: 886-2-2782-7128 (International sales hotline)
Holtek Semiconductor (Hong Kong) Ltd.
RM.711, Tower 2, Cheung Sha Wan Plaza, 833 Cheung Sha Wan Rd., Kowloon, Hong Kong
Tel: 852-2-745-8288
Fax: 852-2-742-8657
Copyright Ó 2000 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek
assumes noresponsibility 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 pres
ent a risk to human life due to malfunction or otherwise. 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.
20February 16, 2000
-
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.