HOLTEK HT82M33A

HT82M33A
3D Mouse Controller
Feature
•
•
•
•
•
•
Microsoft Intelli mouse compatible
IBM PS/2 mouse and Microsoft serial mouse
compatible
Support rolling buttons in serial and PS/2
mouse mode
Supports three buttons (RB, Ro, LB) and
three axis (X, Y, Z) inputs
•
•
Fit Plug and Play com port device specification
Z axis can support two kinds of scroller input (optomechanical and mechanical)
2MHz operating frequency with external
resonator
18-pin DIP package
General Description
The HT82M33A is a Plug and Play 2-in-1 (Serial and PS/2) 3D mouse controller. It is compatible with Microsoft Intelli mouse. The Z axis can
support two kinds of scroller input, namely; optomechanical and mechanical.
Pin Assignment
Z1
1
18
VDD
Z2
2
17
TEST
RESET
3
16
Y2
MODE
4
15
Y1
OSCI
5
14
X2
OSCO
6
13
X1
CLOCK
7
12
LB
DATA
8
11
Ro
VSS
9
10
RB
HT82M33A
– 18 DIP
1
3rd Mar ’99
HT82M33A
Pin Description
Pin No.
Pin Name
I/O
Description
1,2
Z1, Z2
I
“Z axis input”: Supports two kinds of scroller input, optomechanical
and mechanical
3
RESET
I
“Reset input”: Resets internal circuit by input low, normal is
connected to high by internal pull-high resistor (120kΩ).
4
MODE
I
“MS or PS/2 mode selection”: Low for PS/2 mouse, high for MS
mouse. The MS PnP mouse ID code sure will appear when this pin
rise from low to high. Normal is connected to low by internal
pull-low resistor (60kΩ). The mode input transition voltage is 2.0V.
5
OSCI
I
“Oscillator in”: Connect to 2MHz crystal or resonator
6
OSCO
O
“Oscillator out”: Connect to 2MHz crystal or resonator
7
CLOCK
I/O
“CLOCK I/O”: PS/2 mouse CLOCK line. NMOS open drain output
with 7.5kΩ pull-high resistor.
8
DATA
I/O
“DATA/RXD I/O” PS/2 mouse DATA line or MS mouse RXD output.
NMOS open drain output with 7.5kΩ pull-high resistor.
9
VSS
I
Negative power pin
10~12
RB, Ro, LB
I
“Right Button”: Normal pull-high (45kΩ), press connect to low.
“Rolling Button” : Normal pull-high (45kΩ), press connect to low.
“Left Button”: Normal pull-high (45kΩ), press connect to low.
13~16
X1, X2,
Y1, Y2
I
“X/Y axis input”: Auto level detecting input. Any signal over 0.6V
VPP is acceptable but the +VP cannot be over 2.5V
17
TEST
I
“IC test pin”: with built-in pull-low resistor. In normal operation
this is connected to VSS or floating. While the pin is connected to
VDD, this will provide the H/W test. The chip will accord the state
of the RB pin, to switch the X1/Y1 and X2/Y2 via the PIN Ro and
LB output.
18
VDD
I
Positive power pin.
Absolute Maximum Ratings
Supply Voltage ..............................–0.3V to 6.5V
Storage Temperature................. –50°C to 125°C
Input Voltage................. VSS–0.3V to VDD+0.3V
Operating Temperature............... –25°C to 70°C
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.
2
3rd Mar ’99
HT82M33A
Ta=25°C
D.C. Characteristics
Symbol
Test Conditions
Parameter
VDD
Conditions
—
VDD
Operating Voltage
—
ISD
Standby Voltage
5V
IDD
Operating Current
5V
VIL
Input Low Voltage
(RB, Ro, LB, TEST)
5V
VIH
Input High Voltage
(RB, Ro, LB, TEST)
VIL1
Min. Typ. Max. Unit
4.5
5.0
5.5
V
RESET=0V, no load
—
—
1.5
mA
Freq=2MHz,
RESET=5V, no load
—
2.2
3
mA
—
0
—
1.5
V
5V
—
3.5
—
5.0
V
Input Low Voltage (Z1, Z2)
5V
—
0
—
1.0
V
VIH1
Input High Voltage (Z1, Z2)
5V
—
1.2
—
5.0
V
VIL2
Input Low Voltage
(CLOCK, DATA)
5V
—
0
—
1.2
V
VIH2
Input High Voltage
(CLOCK, DATA)
5V
—
2.1
—
5.0
V
VIL3
Input Low Voltage (RESET)
5V
—
0
—
1.8
V
VIH3
Input High Voltage (RESET)
5V
—
3.3
—
5.0
V
IOL
Output Sink Current
(CLOCK, DATA)
5V
VIL=0.5V
6
—
—
mA
IOH
Output Source Current
(CLOCK, DATA)
5V
VIH=4.5V
—
2
—
mA
RL
Pull-low Resistor (Z1, Z2)
5V
VIH=5V, VSS=0V
—
600
—
kΩ
RL1
Pull-low Resistor (TEST)
5V
VIH=5V, VSS=0V
10
17
30
kΩ
RL2
Pull-low Resistor (RB, Ro, LB)
5V
VIH=5V,VSS=0V
33
45
56
kΩ
RL3
Pull-low Resistor (MODE)
5V
VIH=5V,VSS=0V
48
60
72
kΩ
RH
Pull-high Resistor
(CLOCK, DATA)
5V
VIL=0V
5
7.5
10
kΩ
RH1
Pull-high Resistor (RESET)
5V
VIL=0V
100
125
150
kΩ
3
3rd Mar ’99
HT82M33A
Ta=25°C
A.C. Characteristics
Symbol
Test Conditions
Parameter
VDD
Conditions
Min. Typ. Max. Unit
fP
X,Y Input Frequency
5V
—
—
—
8.2
kHz
fN
X,Y Operating Frequency
5V
—
—
—
8
kHz
tKD
Key Debounce
5V
—
—
52
—
ms
tMS
Transmission Time
5V
Serial mouse mode
—
33
—
ms
tS
Start Bit Time
5V
Serial mouse mode
—
0.85
—
ms
tD
Data Bit Time
5V
Serial mouse mode
—
0.82
—
ms
tP
Stop Bit Time
5V
Serial mouse mode
—
0.82
—
ms
tRD
ID Code Delay
5V
Serial mouse mode
—
15
—
ms
tR
Rising Edge Crossed Width
5V
—
50
—
—
µs
tF
Falling Edge Crossed Width
5V
—
50
—
—
µs
tRESET
Reset Low Pulse Width
5V
—
1
—
—
µs
FOSC
System Clock
5V
—
2.0
—
MHz
Crystal Oscillator
4
3rd Mar ’99
HT82M33A
Functional Description
• Win 95 Plug and Play ID fields
Serial mouse
For compatibility with the old serial mouse
drivers, all mouse-compatible pointing devices must restrict themselves to a 6-bit character set, for all fields except the mouse ID.
Therefore, all old-mouse-compatible strings
are limited to values of 0×00 to 0×3f; character
strings are ASCII codes from 0×20 to 0×5f,
offset by subtracting 0×20.
• Data format of 3D Serial mouse
1200 bps, N, 7, 1, single direction
Bit No.
6
5
4
3
2
1
0
1st word
1
L
R
Y7
Y6
X7
X6
2nd word
0
X5
X4
X3
X2
X1
X0
3rd word
0
Y5
Y4
Y3
Y2
Y1
Y0
4th word
0
0
Ro
Z3
Z2
Z1
Z0
Notes: X7~X0: -128<X<127, (2’s complement)
Y7~Y0: -128<Y<127, (2’s complement)
Z3~Z0: -8<Z<7, (2’s complement)
Button status:1=pressed, 0=released
Microsoft mode
Field Name
Size
Field Data
Description
Old Mouse ID
1
4D
Identifies a mouse for old Microsoft
mode drivers
Compatible with Microsoft
Intelli mouse
5
5A, 40, 00, 00, 00
“Z@”
Begin PnP
1
08
“(” indicates PnP IDs will follow
PnP Rev
2
01, 24
Identifiers PnP version 1.0
EISA ID
3
28, 34, 2B
“HTK” (A mouse company)
Product ID
4
10, 10, 10, 11
“0001” (Unique product identifier)
Extended
1
3C
“\”
Class Name
6
3C, 2D, 2F, 35, 33, 25
“\MOUSE” fits a defined Windows 95
class name
Driver ID
8
3C, 30, 2E, 30, 10,
26, 10, 21
“\PNP0F0A” fits a defined Windows 95
Microsoft mouse compatible ID
Checksum
2
19, 10
Checksum of all characters from begin
PnP to End PnP, exclusive of the
checksum characters themselves.
End PnP
1
09
“)” indicates PnP IDs complete
5
3rd Mar ’99
HT82M33A
• Encourage the Plug and Play mouse ID
RTS
RXD
15ms
'4d 5a 40 00 00 00'+PnP ID stream
• Mouse mode changes between Standard and
PS/2 mouse
3D PS/2 mode
• PS/2 status byte
Sending the commands in the following sequence will set the mouse to 3D PS/2 mode.
bit
7:RESERVED
Command
Response From Mouse
F3h
FAh
C8h
FAh
F3h
FAh
64h
FAh
2: 1= LEFT BUTTON PRESSED
F3h
FAh
1: 1= MIDDLE BUTTON PRESSED
50h
FAh
0: 1= RIGHT BUTTON PRESSED
F2h
FAh, 03h
6: 0=STREAM MODE, 1= REMOTE MODE
5: 0=DISABLED, 1=ENABLED
4: 0=SCALING 1:1, 1= SCALING 2:1
3: 1=WRAP MODE, 0=STREAM or REMOTE
(different from IBM spec.)
* Any time the PC sends a reset “FFh” com-
• Standard PS/2 data format
mand to the mouse, it will reset the mouse
to Standard PS/2 mode.
* After power on reset is initiated, the mouse
is set to Standard PS/2 mode.
Variable rps, O, 8, 1, bidirectional, synchronous
Bit No.
1st word
7
6
5
4
YV XV YS XS
3
2
1
0
1
M
R
L
2nd word X7 X6 X5 X4 X3 X2 X1 X0
3rd word
Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
• Data format for 3D PS/2
Variable rps, O, 8, 1, bidirectional, synchronous
Bit No.
1st word
7
6
5
4
YV XV YS XS
3
2
1
0
1
Ro
R
L
2nd word X7 X6 X5 X4 X3 X2 X1 X0
3rd word Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
4th word
Z7 Z6 Z5 Z4 Z3 Z2 Z1 Z0
The x/y data report is 9-bit 2’s complement
The z data report is 8-bit 2’s complement
X move right is positive, move left is negative
Y move up is positive, move down is negative
Z rolling toward user is positive, else is negative
Button status : 1=pressed, 0=released
6
3rd Mar ’99
HT82M33A
Timing Diagrams
X,Y,Z input
• X,Y Axis Photo-coupler crossed width
X1 (Y1)
X2 (Y2)
TR
TF
• Z Axis counting
Z1
Z2
+1
+1
+1
+1
+1
+1
+1
+1
Serial mouse
• Word structure
RXD
1st word
2nd word
3rd word
1
4
4th word
• Key output
Key in/release
RXD
2 3
tms
1
2 3
tms
4
• Bit structure
RXD
Data bit no.
0
1
2
3
4
5
6
TS TD TD TD TD TD TD TD TD TP
7
1
3rd Mar ’99
HT82M33A
• Encourage the Plug and Play ID
RTS
tRD
tRD
RXD
4D
PnP ID
4D
PnP ID
• PnP COM Enumerator timing
check
dev
1st
setup
1st
wait
2nd
setup
2nd
wait
T1
T2
T3
T4
T2
T4
200ms
+35ms
200ms
+35ms
200ms
+35ms
200ms
+35ms
200ms
+35ms
200ms
+35ms
ldle
DTR
RTS
T1: Interval to hold DTR high while waiting for DSR
T2: Interval for external device to power down or detect the port state
T3: DTR-RTS enumerator signature delay
T4: Maximum interval to wait for DSR and/or first received character
T5: PnP COM ID per/character timeout 200ms ( not shown )
T6: PnP COM ID EndPnP timeout 2.2 seconds ( not shown )
T7: Disconnect verification timeout 5 seconds ( not shown )
8
3rd Mar ’99
HT82M33A
PS/2 mouse
• Data output
• Data input
9
3rd Mar ’99
HT82M33A
Application Circuits
HT82M33A 3D 2 in1 mouse (This application circuit is for reference only)
100kΩ
51kΩ
100Ω
1N4148
100kΩ
51kΩ
2MHz
1N5871
47pF
47kΩ
1µF
1N4148
LB
12
11
Button
Button
IR
IR
VDD
2
5
2
RTS
SG
RXD
1.5kΩ
3
7
DTR
1
4
DSR
GND
VCC/RTS
4
TXD
6
3
5
6
CLOCK/DTR
DATA
RXD
Button
RXD
TXD
1N4148
4.7kΩ
10
13
18
VDD
17
TEST
16
Y2
15
Y1
14
Ro
X2
1
Z1
2
Z2
3
RESET
4
MODE
5
OSCI
6
OSCO
7
CLOCK
8
DATA
RB
X1
VSS
9
47kΩ
1N4148
VDD
HT82M33A(X~Z)
100kΩ
Data 47kΩ
CLock/DTR
VCC/RTS
Reserve
for
Resonator
47pF 1MΩ
10µF 0.1µF
TXD
3rd Mar ’99
10
IR
1.5kΩ
Clock/DTR
680pF
VDD
5.1V
1N4148
Notes: CLOCK & DATA is internal pull-high 10kΩ.
OSCI & OSCO are build in R & C.
Z1 & Z2 is internal pull-low 250kΩ.
HT82M33A
HT82M33A 3D 2 in1 mouse (This application circuit is for reference only)
Clock/DTR
680pF
VDD
5.1V
100Ω
1N4148
47pF
VCC/RTS
47kΩ
1µF
1N4148
Button
Button
18
VDD
17
TEST
16
Y2
15
Y1
14
X2
13
X1
12
LB
11
Ro
OSCO
CLOCK
DATA
RB
IR
IR
VDD
5
2
SG
RXD
1.5kΩ
2
RTS
1
3
7
GND
4
DSR
VCC/RTS
TXD
DTR
6
4
3
5
6
CLOCK/DTR
DATA
RXD
Button
RXD
TXD
1N4148
4.7kΩ
10
VSS
1
Z1
2
Z2
3
RESET
4
MODE
5
OSCI
6
7
8
9
47kΩ
1N4148
VDD
HT82M33A(X~Z)
100kΩ
Data 47kΩ
CLock/DTR
TXD
3rd Mar ’99
11
Encoder
EVZVXC0012B
2MHz
1N5871
Reserve
for
Resonator
47pF 1MΩ
10µF 0.1µF
1N4148
Notes: CLOCK & DATA is internal pull-high 10kΩ.
OSCI & OSCO are build in R & C.
Z1 & Z2 is internal pull-low 250kΩ.
HT82M33A
HT82M33A 3D PS2 mouse (This application circuit is for reference only)
IR
1.5kΩ
2MHz
47pF 1MΩ
47pF
Reserve
for
Resonator
DATA
CLOCK
47kΩ
1
2
3
4
5
6
7
8
9
1µF
1N4148
OSCI
MODE
RESET
LB
X1
X2
Y1
Y2
VDD
OSCO
Ro
Z1
CLOCK
TEST
DATA
RB
Z2
VSS
18
17
16
15
14
12
S2
S1
0.1µF
11
S3
13
10
HT82M33A(X~Z)
IR
IR
VDD
1.5kΩ
3rd Mar ’99
12
HT82M33A
HT82M33A 3D PS2 mouse (This application circuit is for reference only)
47pF
Encoder
EVZVXC0012B
2MHz
47pF 1MΩ
Reserve
for
Resonator
CLOCK
DATA
47kΩ
1
2
3
4
5
6
7
8
9
1µF
1N4148
OSCI
MODE
RESET
LB
X1
X2
Y1
Y2
VDD
OSCO
Ro
Z1
CLOCK
TEST
DATA
RB
Z2
VSS
18
17
16
15
14
12
S2
S1
0.1µF
11
S3
13
10
HT82M33A(X~Z)
IR
IR
VDD
1.5kΩ
3rd Mar ’99
13