Transcript
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) · 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-
co
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.
1
Z 2 2
V D D 3
N C 4
V S S 5
O S C I 6
1 6
Y 2
1 5
Y 1
1 4
X 2
1 3
X 1
1 2
T E S T
1 1
L B
-d
Z 1
z.
Pin Assignment
m
· Supports rolling buttons in PS/2 mouse mode
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 Name
1, 2
Z1, Z2
3
VDD
4
NC
5
VSS
7 8
I
Description
²Z² axis input supports two kinds of scroller input; optomechanical and mechanical.
¾ Positive power supply ¾ No connection
¾ Negative power supply, ground
OSCI
I
2MHz RC oscillator for system frequency with external pull-high resistor and built-in C
CLK
I/O
²CLK I/O²: PS/2 mouse CLK line. NMOS open drain output with 5kW pull-high resistor.
DATA
I/O
²DATA I/O²: PS/2 mouse DATA line. NMOS open drain output with 5kW pull-high resistor.
w.
6
I/O
yc
Pin No.
RB, RO, LB
I
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
ww 9~11
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.
Rev. 1.20
1
August 20, 2002
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
m
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
co
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=120kW
¾
¾
15
mA
fOSC
RC Oscillator
5V
ROSC=120kW
1.6
2
2.2
V
VIL1
Input Low Voltage (Z1, Z2)
VIH1
Input High Voltage (Z1, Z2)
VIL2
Input Low Voltage (CLK, DATA)
VIH2
Input High Voltage (CLK, DATA)
RPH2
Pull-high Resistor (CLK, DATA)
Isink
Sink Current (CLK, DATA)
VIL3
¾
0
¾
1.5
V
5V
¾
2.2
¾
5
V
5V
¾
0
¾
0.8
V
5V
¾
2.0
¾
5.0
V
z. 5V
VIL=0V
2
5
10
kW
5V
VOH=0.4V
4
¾
¾
mA
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
¾
yc
-d
5V
VIL=0V
See Dynamic resistor characteristics
Dynamic resistor characteristics
w.
· R-V curve
Photo_R: R-V
ww
R
Rev. 1.20
V
2
August 20, 2002
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
m
Y upward movement is positive, moving down is negative Z rolling towards the user is positive, else negative Button status: 1=pressed, 0=released
PS/2 mode Sending the commands in the following sequence will set the mouse to 3D PS/2 mode.
5
4
3
2
1
0
1
M
R
L
X2
X1
X0
1st word
YV XV YS XS
2nd word
X7
X6
X5
X4
X3
3rd word
Y7
Y6
Y5
Y4
Y3
· Data format for 3D PS/2
FAh FAh
64h
FAh
F3h
FAh
50h
FAh
F2h
FAh, 03h
Y2
Y1
Y0
¨
7
6
5
4
3
1st word
YV
XV
YS
XS
1
2nd word
X7
X6
X5
X4
X3
3rd word
Y7
Y6
Y5
Y4
4th word
Z7
Z6
Z5
Z4
FAh
F3h
¨
Variable rps, 0, 8, 1, bidirectional, synchronous
Any time the PC sends a reset ²FFh² command to the mouse, it will reset the mouse to Standard PS/2 mode.
2
1
After power-on reset is initiated, the mouse is set to Standard PS/2 mode.
0
R
L
X2
X1
X0
Y3
Y2
Y1
Y0
Z3
Z2
Z1
Z0
yc
Ro
ww
w.
Bit No.
F3h
-d
6
Response From Mouse
z.
Variable rps, 0, 8, 1, bidirectional, synchronous 7
Command C8h
· Standard PS/2 data format
Bit No.
co
· Mouse mode changes between Standard and 3D
Rev. 1.20
3
August 20, 2002
HT82M39A Timing Diagrams X, Y axis photo-coupler crossed width X 1 (Y 1 ) (Z 1 ) X 2 (Y 2 ) (Z 2 ) tp
tf
m
tr
X/Y/Z axis counting X 1 X 2 + 1
+ 1
-1
+ 1
-1
Z 1 Z 2 + 1
-1
-1
-1
ww
w.
yc
-d
+ 1
-1
z.
+ 1
co
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
Rev. 1.20
4
August 20, 2002
HT82M39A PS/2 mouse · Data output
(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
m
(1 )
S to p B it
co
(6 ) M in ./M a x .
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 (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
T 8 T 9
D A T A
S ta r t B it
B it 0
(3 )
(5 )
1 0 th C L K
1 1 th C L K
(8 )
(6 )
P a r ity B it (5 )
yc
T im in g P a r a m e te r
9 th C L K
-d
(1 )
z.
T im in g P a r a m e te r
T 1
S to p B it
(7 )
M in ./M a x .
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
ww
w.
T 7
Rev. 1.20
5
August 20, 2002
HT82M39A Application Circuits HT82M39A Z axis optomechanical (this application circuit is for reference only) V
D D
0 .1 m F IR
m
1 2 0 k W IR
2 3 4 5 7 8
D A T A
Y 2
Z 2
Y 1
V D D
X 2
N C
X 1
V S S 6
C L K
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 1 0 9
IR
S 1 S 2 S 3
z.
1
co
R
R
H T 8 2 M 3 9 A
HT82M39A Z axis mechanical (this application circuit is for reference only)
-d
V
D D
0 .1 m F
1 2 0 k W
Z - a x is M e c h n ic a l E e n c o d e r
Z 1
Y 2
Z 2
Y 1
V D D
X 2
N C
X 1
yc
1 2 3 4 5
V S S
6
C L K
1 5 1 4 1 3 1 2
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
R depends on IR characteristics, R=1K for reference only
ww
Note:
w.
D A T A
8
7
1 6
T E S T
O S C I
IR
Rev. 1.20
6
August 20, 2002
HT82M39A Package Information 16-pin DIP (300mil) outline dimensions A 1 6 9 8 1
m
B
C D
a G
E
I
z.
F
co
H
Dimensions in mil
Symbol
Min.
A
745 240 125
D
125
Max.
¾
775
¾
260
¾
135
¾
145
-d
B C
Nom.
E
¾
20
50
¾
70
¾
100
¾
16
F G H I
¾
315
¾
375
0°
¾
15°
ww
w.
yc
a
295
335
Rev. 1.20
7
August 20, 2002
-d
z.
co
m
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
yc
Holtek Semiconductor Inc. (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)
w.
Holtek Semiconductor (Shanghai) Inc. 7th Floor, Building 2, No.889, Yi Shan Rd., Shanghai, China Tel: 021-6485-5560 Fax: 021-6485-0313 http://www.holtek.com.cn
Holtek Semiconductor (Hong Kong) Ltd. Block A, 3/F, Tin On Industrial Building, 777-779 Cheung Sha Wan Rd., Kowloon, Hong Kong Tel: 852-2-745-8288 Fax: 852-2-742-8657
ww
Holmate Semiconductor, Inc. 46712 Fremont Blvd., Fremont, CA 94538 Tel: 510-252-9880 Fax: 510-252-9885 http://www.holmate.com
Copyright Ó 2002 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.20
8
August 20, 2002