Data Sheet

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
(optomechanical and mechanical)
· Supports rolling buttons in PS/2 mouse mode
· 2MHz RC oscillator for system frequency with an ex-
ternal pull-high resistor
· X/Y axis photo input with built-in Holtek¢s special dy-
· 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 controller. 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
1 6
Y 2
Z 2
2
1 5
Y 1
V D D
3
1 4
X 2
N C
4
1 3
X 1
V S S
5
1 2
T E S T
O S C I
6
1 1
L B
C L K
7
1 0
R 0
D A T A
8
9
R B
H T 8 2 M 3 9 A
1 6 D IP -A
Pin Description
Pin No.
Pin Name
I/O
Description
I
²Z² axis input supports two kinds of scroller input; optomechanical and mechanical.
1, 2
Z1, Z2
3
VDD
¾ Positive power supply
4
NC
¾ No connection
5
VSS
¾ Negative power supply, ground
6
OSCI
I
2MHz RC oscillator for system frequency with external pull-high resistor and
built-in C
7
CLK
I/O
²CLK I/O²: PS/2 mouse CLK line. NMOS open drain output with 5kW pull-high resistor.
8
DATA
I/O
²DATA I/O²: PS/2 mouse DATA line. NMOS open drain output with 5kW pull-high
resistor.
9~11
RB, RO, LB
I
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.
12
TEST
I
For IC manufacture testing, user should leave it floating.
13~16
X1, X2, Y1, Y2
I
X/Y axis photo input with built-in Holtek¢s special dynamic photo input resistor
Rev. 1.40
1
September 23, 2005
HT82M39A
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.
Electrical Characteristics
Symbol
Ta=25°C
Test Conditions
Parameter
VDD
Conditions
¾
Min.
Typ.
Max.
Unit
4.75
5.0
5.25
V
VDD
Operating Voltage
¾
IOP
Operating Current
5V
ROSC=130kW
¾
¾
15
mA
fOSC
RC Oscillator
5V
ROSC=130kW
1.6
2
2.4
MHz
VIL1
Input Low Voltage (Z1, Z2)
5V
¾
0
¾
1.5
V
VIH1
Input High Voltage (Z1, Z2)
5V
¾
2.2
¾
5
V
VIL2
Input Low Voltage (CLK, DATA)
5V
¾
0
¾
0.8
V
VIH2
Input High Voltage (CLK, DATA)
5V
¾
2.0
¾
5.0
V
RPH2
Pull-high Resistor (CLK, DATA)
5V
VIL=0V
2
5
10
kW
Isink
Sink Current (CLK, DATA)
5V
VOH=0.4V
4
¾
¾
mA
VIL3
Input Low Voltage (RB, Ro, LB)
5V
¾
0
¾
1.0
V
VIH3
Input High Voltage (RB, Ro, LB)
5V
¾
1.8
¾
5
V
RPL3
Pull-low Resistor (RB, Ro, LB)
5V
3.0
60
125
kW
VIL4
Input Low Voltage (X1,X2,Y1,Y2)
5V
¾
0
¾
1.5
V
VIH4
Input high Voltage (X1, X2, Y1, Y2)
5V
¾
2.2
¾
5
V
RPL5
Dynamic Photo-resistor
(X1, X2, Y1, Y2, Z1, Z2)
5V
¾
VIL=0V
See Dynamic resistor characteristics
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
The x/y data report is 9-bit 2¢s complement
· PS/2 status byte
The z data report is 8-bit 2¢s complement
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)
X movement towards the right is positive, moving towards the left is negative
Y upward movement is positive, moving down is negative
Z rolling towards the user is positive, else negative
Button status: 1=pressed, 0=released
· Mouse mode changes between Standard and 3D
PS/2 mode
Sending the commands in the following sequence will
set the mouse to 3D PS/2 mode.
· Standard PS/2 data format
Variable rps, 0, 8, 1, bidirectional, synchronous
Bit No.
7
6
5
4
3
2
1
0
1
M
R
L
1st word
YV XV YS XS
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, 0, 8, 1, bidirectional, synchronous
Bit No.
7
6
5
4
1st word
YV
XV
YS
2nd word
X7
X6
X5
3rd word
Y7
Y6
4th word
Z7
Z6
Rev. 1.40
3
2
1
XS
1
Ro
R
L
X4
X3
X2
X1
X0
Y5
Y4
Y3
Y2
Y1
Y0
Z5
Z4
Z3
Z2
Z1
Z0
Command
Response From Mouse
F3h
FAh
C8h
FAh
F3h
FAh
64h
FAh
F3h
FAh
50h
FAh
F2h
FAh, 03h
¨
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.
0
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 )
tp
tr
tf
N o te : F o r X , Y - a x is tr, tp , tf > 3 0 m s
F o r Z - a x is tr, tp , tf > 1 m s
X/Y/Z Axis Counting
X 1
X 2
+ 1
+ 1
+ 1
+ 1
-1
-1
-1
-1
Z 1
Z 2
+ 1
Rev. 1.40
+ 1
-1
-1
4
September 23, 2005
HT82M39A
PS/2 Mouse
· Data output
(1 )
(3 )
(3 )
1 s t
C L K
C L K
T 3
(3 )
(3 )
1 0 th
C L K
(4 )
T 6
1 1 th
C L K
(5 )
T 5
T 4
(7 )
T 2
T 1
(2 )
2 n d
C L K
D A T A
S ta r t B it
B it 0
P a r ity B it
S to p B it
(6 )
T im in g P a r a m e te r
M in ./M a x .
T 1
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
5 /2 5 m s e c
T 2
R is in g e d g e o f C L K to D A T A tr a n s itio n
5 /T 4 -5 m s e c
T 3
In a c tiv e C L K D u r a tio n
3 0 /5 0 m s e c
T 4
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
3 0 /5 0 m s e c
> 0 m s e c
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
< 5 0 m s e c
T 5
T 6
· Data input
(1 )
(2 )
I/O
In h ib it
C L K
(4 ) 1 s t
C L K
2 n d
C L K
T 7
1 0 th
C L K
9 th
C L K
(8 )
T 8
T 9
D A T A
S ta r t B it
(3 )
1 1 th
C L K
(6 )
B it 0
P a r ity B it
(5 )
(5 )
S to p B it
(7 )
T im in g P a r a m e te r
M in ./M a x .
T 7
C L K D u r a tio n , lo w
3 0 /5 0 m s e c
T 8
C L K D u r a tio n , h ig h
3 0 /5 0 m s e c
T 9
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
5 /2 5 m s e c
Rev. 1.40
5
September 23, 2005
HT82M39A
Application Circuits
HT82M39A Z Axis Optomechanical (This Application Circuit is for Reference Only)
V
0 .1 m F
IR
D D
1 0 0 m F
1 3 0 k W
IR
R
1
2
3
4
5
7
4 7 0 p F
C L K
D A T A
Y 2
Z 2
Y 1
V D D
X 2
N C
X 1
V S S
6
8
Z 1
1 5
1 4
1 3
1 2
T E S T
O S C I
L B
C L K
R o
D A T A
R B
1 1
S 1
1 0
S 2
9
S 3
IR
R
H T 8 2 M 3 9 A
6 8 W
6 8 W
1 6
4 7 0 p F
HT82M39A Z Axis Mechanical (This Application Circuit is for Reference Only)
V
0 .1 m F
D D
1 0 0 m F
1 3 0 k W
IR
Z - a x is M e c h n ic a l
E e n c o d e r
1
2
3
4
5
7
8
6 8 W
C L K
D A T A
Note:
6 8 W
Y 2
Z 2
Y 1
V D D
X 2
N C
X 1
V S S
6
4 7 0 p F
Z 1
1 6
1 5
1 4
1 3
1 2
T E S T
O S C I
L B
C L K
R o
D A T A
R B
1 1
S 1
1 0
S 2
9
S 3
IR
R
H T 8 2 M 3 9 A
4 7 0 p F
R depends on IR characteristics, R=1K for reference only
Rev. 1.40
6
September 23, 2005
HT82M39A
Package Information
16-pin DIP (300mil) Outline Dimensions
A
B
1 6
9
8
1
H
C
D
a
G
E
I
F
Symbol
A
Rev. 1.40
Dimensions in mil
Min.
Nom.
Max.
745
¾
775
B
240
¾
260
C
125
¾
135
D
125
¾
145
E
16
¾
20
F
50
¾
70
G
¾
100
¾
H
295
¾
315
I
335
¾
375
a
0°
¾
15°
7
September 23, 2005
HT82M39A
Holtek Semiconductor Inc. (Headquarters)
No.3, Creation Rd. II, Science Park, Hsinchu, Taiwan
Tel: 886-3-563-1999
Fax: 886-3-563-1189
http://www.holtek.com.tw
Holtek Semiconductor Inc. (Taipei Sales Office)
4F-2, No. 3-2, YuanQu St., Nankang Software Park, Taipei 115, Taiwan
Tel: 886-2-2655-7070
Fax: 886-2-2655-7373
Fax: 886-2-2655-7383 (International sales hotline)
Holtek Semiconductor (China) Inc. (Dongguan Sales Office)
Building No. 10, Xinzhu Court, (No. 1 Headquarters), 4 Cuizhu Road, Songshan Lake, Dongguan, China 523808
Tel: 86-769-2626-1300
Fax: 86-769-2626-1311
Holtek Semiconductor (USA), Inc. (North America Sales Office)
46729 Fremont Blvd., Fremont, CA 94538, USA
Tel: 1-510-252-9880
Fax: 1-510-252-9885
http://www.holtek.com
Copyright Ó 2005 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek assumes no responsibility 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 present a risk to human life
due to malfunction or otherwise. Holtek¢s products are not authorized for use as critical components in life support devices
or systems. 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.
Rev. 1.40
8
September 23, 2005