HT82M39A
3-Key 3D PS/2 Mouse Controller
Feature
·
Microsoft Intelli 3D PS/2 and IBM PS/2 mouse com-
·
Z axis can support two kinds of scroller input
patible
·
Supports rolling buttons in PS/2 mouse mode
·
X/Y axis photo input with built-in Holtek¢s special dy-
(optomechanical and mechanical)
·
2MHz RC oscillator for system frequency with an ex-
ternal pull-high resistor
·
16-pin DIP package
namic photo-input resistor
·
Supports three buttons and three axis (X, Y, Z) in-
puts
General Description
The HT82M39A is a Plug and Play PS/2 3D mouse con-
troller. It is compatible with Microsoft Intelli 3D PS/2
mouse. The Z axis can support two kinds of scroller input,
namely; optomechanical and mechanical.
Pin Assignment
Z 1
1
2
3
4
5
6
7
8
H T 8 2 M 3 9 A
1 6 D IP -A
Z 2
V D D
N C
V S S
O S C I
C L K
D A T A
1 6
1 5
1 4
1 3
1 2
1 1
1 0
9
Y 2
Y 1
X 2
X 1
T E S T
L B
R 0
R B
Pin Description
Pin No.
1, 2
3
4
5
6
7
8
Pin Name
Z1, Z2
VDD
NC
VSS
OSCI
CLK
DATA
I/O
I
Description
²Z²
axis input supports two kinds of scroller input; optomechanical and mechanical.
¾
Positive power supply
¾
No connection
¾
Negative power supply, ground
I
I/O
I/O
2MHz RC oscillator for system frequency with external pull-high resistor and
built-in C
²CLK
I/O²: PS/2 mouse CLK line. NMOS open drain output with 5kW pull-high resis-
tor.
²DATA
I/O²: PS/2 mouse DATA line. NMOS open drain output with 5kW pull-high
resistor.
Right Button: Normal pull-low (50kW),
Pressing the button connects to high.
Rolling Button: Normal pull-low (50kW),
Pressing the button connects to high.
Left Button: Normal pull-low (50kW),
Pressing the button connects to high.
For IC manufacture testing, user should leave it floating.
X/Y axis photo input with built-in Holtek¢s special dynamic photo input resistor
9~11
RB, RO, LB
I
12
13~16
TEST
X1, X2, Y1, Y2
I
I
Rev. 1.40
1
September 23, 2005
HT82M39A
Absolute Maximum Ratings
Supply Voltage .........................................-0.3V to 6.5V
Input Voltage..............................V
SS
-0.3V
to V
DD
+0.3V
Storage Temperature ............................-50°C to 125°C
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 reliabil-
ity.
Electrical Characteristics
Symbol
V
DD
I
OP
f
OSC
V
IL1
V
IH1
V
IL2
V
IH2
R
PH2
Isink
V
IL3
V
IH3
R
PL3
V
IL4
V
IH4
R
PL5
Parameter
Operating Voltage
Operating Current
RC Oscillator
Input Low Voltage (Z1, Z2)
Input High Voltage (Z1, Z2)
Input Low Voltage (CLK, DATA)
Input High Voltage (CLK, DATA)
Pull-high Resistor (CLK, DATA)
Sink Current (CLK, DATA)
Input Low Voltage (RB, Ro, LB)
Input High Voltage (RB, Ro, LB)
Pull-low Resistor (RB, Ro, LB)
Input Low Voltage (X1,X2,Y1,Y2)
Input high Voltage (X1, X2, Y1, Y2)
Dynamic Photo-resistor
(X1, X2, Y1, Y2, Z1, Z2)
Test Conditions
V
DD
¾
5V
5V
5V
5V
5V
5V
5V
5V
5V
5V
5V
5V
5V
5V
V
IL
=0V
¾
¾
¾
V
IL
=0V
V
OH
=0.4V
¾
¾
Conditions
¾
R
OSC
=130kW
R
OSC
=130kW
¾
¾
¾
¾
Min.
4.75
¾
1.6
0
2.2
0
2.0
2
4
0
1.8
3.0
0
2.2
Typ.
5.0
¾
2
¾
¾
¾
¾
5
¾
¾
¾
60
¾
¾
Max.
5.25
15
2.4
1.5
5
0.8
5.0
10
¾
1.0
5
125
1.5
5
Ta=25°C
Unit
V
mA
MHz
V
V
V
V
kW
mA
V
V
kW
V
V
See Dynamic resistor charac-
teristics
Dynamic Resistor Characteristics
·
R-V curve
Photo_R: R-V
R
V
Rev. 1.40
2
September 23, 2005
HT82M39A
Functional Description
PS/2 Mouse
·
PS/2 status byte
The x/y data report is 9-bit 2¢s complement
The z data report is 8-bit 2¢s complement
X movement towards the right is positive, moving to-
wards the left is negative
Y upward movement is positive, moving down is nega-
tive
Z rolling towards the user is positive, else negative
Button status: 1=pressed, 0=released
·
Mouse mode changes between Standard and 3D
Byte 1
bit
7: Reserved
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 specs.)
2: 1=Left Button Pressed
1: 1=Middle Button Pressed
0: 1=Right Button Pressed
Byte 2
Bit 0~7 current resolution setting
(Bit 0=LSB)
Byte 3
Bit 0~7 current sampling rate (Bit 0=LSB)
·
Standard PS/2 data format
PS/2 mode
Sending the commands in the following sequence will
set the mouse to 3D PS/2 mode.
Command
F3h
C8h
F3h
64h
0
L
X0
Y0
¨
Response From Mouse
FAh
FAh
FAh
FAh
FAh
FAh
FAh, 03h
Variable rps, 0, 8, 1, bidirectional, synchronous
Bit No.
1st word
2nd word
3rd word
7
6
5
4
3
1
X3
Y3
2
M
X2
Y2
1
R
X1
Y1
F3h
50h
F2h
¨
YV XV YS XS
X7
Y7
X6
Y6
X5
Y5
X4
Y4
Any time the PC sends a reset
²FFh²
command 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.
·
Data format for 3D PS/2
Variable rps, 0, 8, 1, bidirectional, synchronous
Bit No.
1st word
2nd word
3rd word
4th word
7
YV
X7
Y7
Z7
6
XV
X6
Y6
Z6
5
YS
X5
Y5
Z5
4
XS
X4
Y4
Z4
3
1
X3
Y3
Z3
2
Ro
X2
Y2
Z2
1
R
X1
Y1
Z1
0
L
X0
Y0
Z0
Rev. 1.40
3
September 23, 2005
HT82M39A
Timing Diagrams
X, Y Axis Photo-Coupler Crossed Width
X 1 (Y 1 ) (Z 1 )
X 2 (Y 2 ) (Z 2 )
t
r
t
p
t
f
N o te : F o r X , Y - a x is t
r
, t
p
, t
f
> 3 0
m
s
F o r Z - a x is t
r
, t
p
, t
f
> 1 m s
X/Y/Z Axis Counting
X 1
X 2
+ 1
Z 1
Z 2
+ 1
+ 1
-1
-1
+ 1
+ 1
+ 1
-1
-1
-1
-1
Rev. 1.40
4
September 23, 2005
HT82M39A
PS/2 Mouse
·
Data output
(1 )
C L K
(3 )
1 s t
C L K
(3 )
2 n d
C L K
(3 )
(3 )
1 0 th
C L K
(4 )
1 1 th
C L K
T 6
T 3
(2 )
D A T A
T 1
S ta r t B it
T 2
T 4
B it 0
P a r ity B it
T 5
(5 )
(7 )
S to p B it
(6 )
T im in g P a r a m e te r
M in ./M a x .
5 /2 5
m
s e c
5 /T 4 -5
m
s e c
3 0 /5 0
m
s e c
3 0 /5 0
m
s e c
> 0
m
s e c
< 5 0
m
s e c
T 1
T 2
T 3
T 4
T 5
T 6
D A T A tr a n s itio n to th e fa llin g e d g e o f C L K
R is in g e d g e o f C L K to D A T A tr a n s itio n
In a c tiv e C L K D u r a tio n
A c tiv e C L K D u r a tio n
M in im u m tim e to in h ib it M O U S E a fte r c lo c k 1 1
M a x im u m tim e to in h ib it M O U S E a fte r c lo c k 1 1 to e n s u r e
M O U S E d o e s n o t s ta r t a n o th e r tr a n s m is s io n
·
Data input
(1 )
C L K
(2 )
I/O
In h ib it
(4 ) 1 s t
C L K
2 n d
C L K
9 th
C L K
1 0 th
C L K
1 1 th
C L K
(8 )
(6 )
P a r ity B it
(5 )
S to p B it
(7 )
T 7
T 9
D A T A
S ta r t B it
(3 )
T 8
B it 0
(5 )
T im in g P a r a m e te r
T 7
T 8
T 9
C L K D u r a tio n , lo w
C L K D u r a tio n , h ig h
T im e fr o m lo w to h ig h C L K tr a n s itio n to tim e w h e n
M O U S E s a m p le s D A T A lin e
M in ./M a x .
3 0 /5 0
m
s e c
3 0 /5 0
m
s e c
5 /2 5
m
s e c
Rev. 1.40
5
September 23, 2005