HT6523 Holtek Semiconductor Inc., HT6523 Datasheet - Page 4

no-image

HT6523

Manufacturer Part Number
HT6523
Description
Ps/2 Mouse Controller
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Data Format
The following data report format is valid for the stream
and remote modes and is 3 bytes long:
·
Rev. 1.20
FF
FE
F6
F5
F4
F3, XX
F2
Hex Code
Byte
The response must be within 20ms, unless the host
inhibits the mouse output or inhibits the data transmis-
sions from the system that require a response. If the
host initiates a command or data transmission and the
response is invalid or has a parity error, the host re-
transmits the command or data. If after two retries the
response is still invalid or has a parity error, the host
resets the mouse.
The following describe valid commands:
3
2
1
7
6-1
0
7
6-1
0
7
6
5
4
3
2
1
0
Bit
Reset
Resend
Set default
Disable
Enable
Set sampling
rate
Read device type
MSB of Y Data
Y Data
LSB of Y Data
MSB of X Data
X Data
LSB of X Data
Y Data Overflow 1=Overflow
X Data Overflow 1=Overflow
Y Data sign 1=Negative
X Data sign 1=Negative
Reserved always=1
Reserved for middle Button
Right Button Status 1=Pressed
Left Button Status 1=Pressed
Command
Description
This command cause the mouse to enter a reset mode and do an internal self-test.
The system can send this command when it detects an error in any transmission
from the mouse. The Resend command could be sent following a mouse transmis-
sion and before the system enables the interface allowing the next mouse output.
On receipt of Resend, the mouse retransmits the previous three bytes if the previ-
ous output was a 3-byte packet. The previous two bytes if the previous output was a
2-byte packet, and the previous one byte if the previous output was a 1-byte packet,
unless the previous output from the mouse was a Resent command. In this case,
the mouse will resend the previous output prior to the Resend command. If a Re-
send command is received by the mouse from the host immediately following a
3-byte data packet transmission from the mouse to the host while the mouse is in
stream mode. The mouse should resend the 3-byte data packet prior to clearing the
count accumulators.
This command reinitializes all conditions to the power-on default state.
This command is used in the stream mode to stop transmissions initiated from the
mouse. It responds to all other commands while disabled. If the mouse is in the
stream mode, it must be disabled before sending it any command that requires a
response.
Begin transmission, if in stream mode
In the stream mode, this command sets the sampling rate to the value indicated by
bytes hex XX shown in the following figure:
Second Byte hex XX (sample rate): hex 0A (10/sec), hex 14 (20/sec),
hex 28 (40/sec), hex 3C (60/sec), hex 50 (80/sec), hex 64 (100/sec),
hex C8 (200/sec)
This command always receives a response of hex 00
4
Commands
·
The following table lists all the valid commands:
Hex Code
Description
FE
EE
EC
EB
EA
FF
F6
F5
F4
F3
F2
F0
E9
E8
E7
E6
Reset
Resend
Set default
Disable
Enable
Set sampling rate
Read device type
Set remote mode
Set wrap mode
Reset wrap mode
Read data
Set stream mode
Status request
Set resolution
Set scaling 2:1
Reset scaling
Command
March 6, 2003
HT6523

Related parts for HT6523