The HT6542B is a keyboard controller developed by Holtek with a 4-bit microprocessor . It is
pin-to-pin compatible with Intel 8042 keyboard
controller used in IBM PC’s. PC manufacturers
need not modify any printed wiring layout
when using the HT6542B in lieu of the Intel
Pin Assignment
40 Pin DIP package44 Pin PLCC package
•
Support PS/2 compatible mouse
•
Auto-detect AT and PS/2 motherboard
•
Support 40 pin DIP and 44 pin PLCC packages
8042 based keyboard controller. Furthermore,
the HT6542B can support a system clock speed
of up to 12MHz. The HT6542B can detect th e
motherboard type automatically, therefore it
can be employed on both of AT and PS/2 motherboard.
HT6542B
130th Nov ’95
Block Diagram
HT6542B
Pin Description
Pin No.
(DIP)
12KBCIIKeyboard clock input pin
2,33,4OSCI,OSCOI
45
5,7,11,25
67
89
910 A0I
Pin No.
(PLCC)
1,6,8,12,13,
23,29,34
Pin
Name
RESI
NC— No connection
CSIHost-interface chip select, active low
RDIHost-interface read signal, active low
I/OPin Descriptions
System clock input pin, to generate internal
oscillator signal
Low level to reset HT6542B. After
level HT6542B needs 10ms to initial internal circuit
Host-interface address select input. When high, it
selects the command/sta tus registers; when low it
selects the data register
230th Nov ’95
RES goes to high
HT6542B
Pin No.
(DIP)
1011WRIHost-interface write signal, active low
12~1914~21D0~D7I/O
2022VSS— Circuit ground
2124RCOHost-reset control signal output
2225A20OGate A20 control signal output
2326P22/MSDOI/O
2427P23/MSCOI/O
2628TESTI
2730P10/KBDII/O
2831P11/MSDII/O
29~33
3438
3539KB-OBFOO
3640MS-OBFOO
3741KBCOO
3842KBDOO
3943KBDI/MSCII
4044VDD— Positive power supply
Pin No.
(PLCC)
32~33
35~37
Pin
Name
P12~P16I/O General purpose input/output pins
KBD-INHI
I/OPin Descriptions
Host interface data bus. An 8-bit bi-directional port
for data transfers between the host CPU and the
HT6542B
General purpose input/output pin for AT
motherboard.
Mouse data output pin for PS/2 motherboard
General purpose input/output pin for AT
motherboard.
Mouse clock output pin for PS/2 motherboard
Test input pin, for IC test only. Connected to VCC in
applications
General purpose input/output pin for AT
motherboard.
Keyboard data input pin for PS/2 motherboard
General purpose input/output pin for AT
motherboard.
Mouse data input pin for PS/2 motherboard
Keyboard inhibit input. When low, keyboard is
inhibited. When high, keyboard transmission is
enabled.
Keyboard output buffer full interrupt for AT and
PS/2 mother board (active high)
Output low for AT mothboard.
Mouse output b uffer full interrup t for PS/2 mo ther
board (active high).
Keyboard clock output pin for AT and PS/2
motherboard.
Keyboard data output pin for AT and PS/2
motherboard.
Keyboard data input pin for AT motherboard
Mouse clock input pin for PS/2 motherboard
Absolu te Maximu m R a tin g s
Supply Voltage ............................ –0.3V to 5.5V
When power is switched on, the HT6542B autodetect the motherboard type (AT or PS/2), then
disable the keyboard/mouse and waits for the
self-test command to perform a self-test. If no
error is detected during self-test, HEX 55 is
registered in the outp ut buffer (note that any
value other than HEX 55 would indicate
HT6542B failure) and the keyboard interface is
enabled. The HT6542B is now ready to receive
a system command or keyboard data.
Keyboard/mous e da ta transmission
The keyboard/mouse transmits data to the controller in an 11-bit format in sync, with the
keyboard/mouse clock s ignal. If this transmission is not complete d within the specified period, the HT6542B wil l register HEX FF into
the output buffer and set the "tra nsmit timeout" error bit in the STATUS REGISTER to 1.
Controller data transmission
The controller transmits data to the keyboard/mouse in the same manner as it receives
data from the keyboard/mouse. When the
HT6542B starts transmitting data and the keyboard/mouse does no t start receiving (does not
start clocking) or data transmission is not completed within 15ms , the HT65 42B will register
HEX FE into the output buffer and set the
"transmit time-out" error bit in the STATUS
REGISTER to 1.
Keyboard inhibited (KBD-INH to low)
If the KBD-INH is switched to low, the keyboard/mous e is i nhibit ed. The HT654 2B rece ive
keyboard/mouse code a nd check the
status, if inhibited the ke yboard SCAN CODE
and mouse code will be ignored and the keyboard/mouse command response is registered
into the HT6542B’s output buffer.
Status register notations
The STATUS REGIST ER is lo cated in HEX 64
of the I/O. It provides the HT6542B and interface status to the system. The following are the
definitions for each bit:
•
b0(OBF): Output buffer full
This bit is set while the HT6542B is sending
data to the output buffer and cleared when the
system reads the output buffer(I/O HEX 60H).
KBD-INH
HT6542B
•
b1(IBF): Input buffer full
This bit is set while the system is sending
data to the HT6542B’s input buffer and
cleared when th e HT6542B reads the input
buffer data.
•
b2: System flag
This bit is 0 after power-on reset, set to 1 after
self-test OK.
•
b3: Command/Data
When the system writes the data to the
HT6542B from I/O 64H, this bit becomes 1.
Reset to 0 if from I/O 60H.
•
b4:
This bit reflects the
ever data is placed in the HT65 42B’s output
buffer.
•
b5: Auxiliary Output Buffer Full.
0: The HT6542B’s output buffer is a keyboard
data.
1: The HT6542B’s output buffer is a mouse
data.
•
b6: Transmit tim e- ou t
Set to 1 when the keybo ard or mouse is not
able to completely transmite data to the
HT6542B within the specified period.
•
b7: Parity error
1: The HT6542B has received the key-
board/mouse code with a parity error.
(should be odd parity).
Outpu t buffer
The output buffer is located in I/O HEX 60. It is
used to transmi t keyboard/mouse cod e or keyboard controller response data. The output buffer data is valid only when OBF=1.
Input buffer
The input buffer is located in I/O HEX 60 or
HEX 64. The system writes command and data
into this port in the following categories:
•
Data written to I/O HEX 64 as command
write.
•
Data written to I/O HEX 60 as data write.
KBD-INH status when-
530th Nov ’95
Application Circuit
For AT motherboard (40 pin DIP, for example)
HT6542B
630th Nov ’95
For PS/2 motherboard (40 pin DIP, for example)
HT6542B
730th Nov ’95
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.