HT82M30A/B/C/D 3/5-Key 3D PS/2 Optical Mouse Controller Feature · Operating voltage: 4.0V~5.5V · Serial interface with H2051, H2610, H2620 · Microsoft Intelli 3D PS/2 and IBM PS/2 mouse · Auto detect as to which photo sensor is used compatible · 2MHz RC oscillator for system frequency with · Microsoft Windows 2000 and 5-button Wheel mouse external pull-high resistor (140kW) compatible · For H2610 or H2620, 800 DPI mode is by firmware · Z-axis can support two kinds of scroller input · 16-pin DIP package divided by 2 or 4 (package option) · Supports 400 or 800 DPI for H2051, H2610, H2620 (package option) General Description The HT82M30A/B/C/D are designed as 2D, 3D 3/5-key PS/2 optical mouse controller. These have serial interface to access the Agilent sensor H2051, H2610, H2620 or the same compatible series sensor. Refer to the datasheets for detailed register descriptions of the Agilent sensors. Selection Table Part No. DPI Z-axis Option HT82M30A 400 Divided by 2 HT82M30B 800 Divided by 2 HT82M30C 400 Divided by 4 HT82M30D 800 Divided by 4 Pin Assignment R O R B 1 1 6 L B 2 1 5 R B 0 Z 2 /A 3 1 4 P S 2 D Z 1 /B 4 1 3 P S 2 C K R B 1 5 1 2 N C O S C 1 S D IO 6 1 1 S C L K 7 1 0 V D D V S S 8 9 R E S H T 8 2 M 3 0 A /B /C /D 1 6 D IP -A Rev. 1.40 1 September 23, 2005 HT82M30A/B/C/D Pin Description Pin Name I/O Description RB, RO, LB I Right Button: Normal pull-high resistor (30kW) Rolling Button: Normal pull-high resistor (30kW) Left Button: Normal pull-high resistor (30kW) Z2/A, Z1/B I ²Z² axis input supports three kinds of scroller input Normal pull-high resistor (30kW) RB1, RB0 I Input ports with 30kW pull-high resistor SDIO I/O Serial data for Agilent sensor IC SDIO SCLK O VSS ¾ Negative power supply, ground RES VDD OSCI I Serial data for Agilent sensor IC SCLK Chip reset input, Low active ¾ 5V positive power supply I 2MHz RC oscillator for system frequency with external pull-high resistor (140kW) NC ¾ No connection PS2CK I/O PS/2 mouse CLK line PS2D I/O PS/2 mouse data line Absolute Maximum Ratings Supply Voltage ...........................VSS-0.3V to VSS+6.0V Storage Temperature ............................-50°C to 125°C Input Voltage ..............................VSS-0.3V to VSS+6.0V Operating Temperature...........................-40°C to 85°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. Rev. 1.40 2 September 23, 2005 HT82M30A/B/C/D D.C. Characteristics Symbol Ta=25°C Parameter Test Conditions VDD Conditions Min. Typ. Max. Unit VDD Operating Voltage ¾ fSYS=2MHz 4.0 5.0 5.5 V IDD Operating Current 5V No load, fSYS=2MHz ¾ 2.5 4 mA VIL1 Input Low Voltage for RB, LB, RO, Z1, ¾ Z2, RB1, RB0, SDIO, PS2CK and PS2D ¾ 0 ¾ 0.3VDD V VIH1 Input High Voltage for RB, LB, RO, Z1, ¾ Z2, RB1, RB0, SDIO, PS2CK and PS2D ¾ 0.7VDD ¾ VDD V VIL2 Input Low Voltage for RES ¾ ¾ 0 ¾ 0.4VDD V VIH2 Input High Voltage for RES ¾ ¾ 0.9VDD ¾ VDD V IOL I/O Port Sink Current 5V VOL=0.1VDD 10 20 ¾ mA IOH I/O Port Source Current 5V VOL=0.9VDD -2 -4 ¾ mA RPH Pull-high Resistance for RB, LB, RO, Z1, 5V Z2, RB1, RB0, SDIO, PS2CK and PS2D ¾ 10 30 50 kW A.C. Characteristics Symbol Ta=25°C Parameter Test Conditions VDD Conditions Min. Typ. Max. Unit tWDTOSC Watchdog Oscillator Period 5V ¾ 32 65 130 ms tWDT1 Watchdog Time-out Period 5V Without WDT prescaler 8 17 33 ms tRES External Reset Low Pulse Width ¾ ¾ 1 ¾ ¾ ms Rev. 1.40 3 September 23, 2005 HT82M30A/B/C/D Functional Description PS/2 Mouse X- movement towards the right is positive, moving towards the left is negative · PS/2 status byte Y- upward movement is positive, moving down is negative 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) 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. Command · Standard PS/2 data format Variable rps, 0, 8, 1, bidirectional, synchronous Bit No. 7 6 5 4 3 1 2 1 0 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 6 5 4 C8h FAh F3h FAh 64h FAh F3h FAh 50h FAh F2h FAh, 03h PS/2 mode. Sending the commands in the following sequence will set the mouse to Win2K PS/2 mode. Command Response From Mouse F3h FAh MB RO LB C8h FAh 3 1 FAh · Mouse mode changes between Standard and Win2K Variable rps, 0, 8, 1, bidirectional, synchronous 7 F3h MB RO LB · Data format for 3D PS/2 Bit No. Response From Mouse 2 1 0 1st word YV XV YS XS 2nd word X7 X6 X5 X4 X3 X2 X1 X0 F3h FAh 3rd word Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 C8h FAh 4th word Z7 Z6 Z5 Z4 Z3 Z2 Z1 Z0 F3h FAh The x/y data report is 9-bit 2¢s complement 50h FAh The z data report is 8-bit 2¢s complement F2h FAh, 04h · Data format for 5-button Wheel Mouse Bit No. 7 6 5 4 1 2 1 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 1st word 0 0 2nd word X7 X6 X5 X4 X3 X2 X1 X0 3rd word Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 4th word 0 0 RB1 RB0 Z3 Z2 Z1 Z0 Rev. 1.40 YS XS 3 ¨ MB RO LB 4 September 23, 2005 HT82M30A/B/C/D Timing Diagrams Z-Axis Photo-coupler Cross Width Z 1 Z 2 tp tr N o te : F o r Z - a x is tf tr, tp , tf > 1 m s Z-Axis Counting Z 1 Z 2 + 1 + 1 -1 -1 PS/2 Mouse · Data output (1 ) (3 ) (3 ) 1 s t C L K C L K T 3 D A T A (3 ) (3 ) 1 0 th C L K (4 ) 1 1 th C L K T 6 (5 ) T 5 T 4 (7 ) T 2 T 1 (2 ) 2 n d C L K 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 th a t th 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 ) Rev. 1.40 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 5 September 23, 2005 HT82M30A/B/C/D Application Circuits 2D PS/2 Optical Mouse Controller (H2051) V D D 0 .1 m F 1 0 0 m F 4 7 0 p F 6 8 W 1 T A L K D D N D N D N 5 4 .7 k W 1 5 k W 4 7 0 p F 2 2 L 5 1 3 S W 4 4 2 k W * 5 6 7 8 U 1 R B L B Z 2 Z 1 R B S D S C V S 6 8 W /A /B 1 IO L K S P S 1 6 R R O B 0 2 D C K N C C 1 D D E S P S 2 O S V R M U 2 X A X B Y A Y B O S O S G N G N 2 S W 3 1 5 3 5 1 4 1 3 4 1 8 .4 3 2 M H z 1 2 1 1 1 1 1 4 0 k W 4 7 k W 1 0 9 9 D IO D E 0 .1 m F 0 .1 m F 4 .7 k W 4 .7 k W 1 0 1 2 0 .1 m F 7 S W 2 R R E F A V D D R _ B IN 4 1 3 3 1 4 J 1 D A C V G G C O 4 .7 k W C _ IN C _ O U T D D 2 .2 m F 8 R E F B X Y _ L E D 0 W 6 L E D 1 5 P D S D IO S C L K 1 6 1 H D N S 2 0 5 1 S D IO S C L K * O n ly fo r P ix A r t S e n s o r 3D PS/2 Optical Mouse Controller (H2051) V C 4 7 0 p F B 6 8 W 1 5 k W 4 7 0 p F 2 R 5 L S W 2 1 2 3 S W 4 2 k W * 4 5 6 7 8 U 1 R B L B Z 2 Z 1 R B S D S C V S 6 8 W /A /B 1 IO L K S R P S P S 2 O S V R R O B 0 2 D C K N C C 1 D D E S 1 6 1 5 M 2 S W 3 3 1 4 5 1 3 1 2 1 1 9 1 0 4 1 8 .4 3 2 M H z 9 1 1 1 4 0 k W 4 7 k W D IO D E 0 .1 m F 0 .1 m F 1 0 1 2 U 2 X A X B Y A Y B O S O S G N G N 0 .1 m F R E F A V D D R _ B IN 4 7 3 1 3 T A L K D D N D N D N 5 A 1 0 .1 m F 1 0 0 m F E n c o d e r 1 4 J 1 D A C V G G C O D D C _ IN C _ O U T D D 8 R E F B X Y _ L E D P D S D IO S C L K 2 .2 m F 0 W 6 1 5 L E D 1 6 1 H D N S 2 0 5 1 S D IO S C L K * O n ly fo r P ix A r t S e n s o r Rev. 1.40 6 September 23, 2005 HT82M30A/B/C/D Win2K PS/2 Optical Mouse Controller (H2051) V 4 .7 k W 4 7 0 p F B 6 8 W 4 .7 k W 1 5 k W 4 7 0 p F 2 3 B 5 S W 4 4 S W 6 5 6 7 8 6 8 W R P S P S 2 /A /B 1 IO L K S O S V R 1 6 M 1 5 B 4 1 4 1 3 1 2 1 1 1 0 R O B 0 2 D C K N C C 1 D D E S 9 3 5 1 8 .4 3 2 M H z 4 9 1 1 1 4 0 k W 4 7 k W 0 .1 m F U 2 X A X B Y A Y B O S O S G N G N 2 S W 3 S W 4 1 0 1 2 0 .1 m F 0 .1 m F 7 2 k W * 2 L 5 U 1 R B L B Z 2 Z 1 R B S D S C V S 1 1 3 S W 2 R R E F A V D D R _ B IN 4 1 4 3 D IO D E T A L K D D N D N D N 5 E n c o d e r A 1 0 .1 m F 1 0 0 m F C J 1 D A C V G G C O D D C _ IN C _ O U T D D 2 .2 m F 8 R E F B X Y _ L E D 0 W 6 L E D 1 5 P D S D IO S C L K 1 6 1 H D N S 2 0 5 1 S D IO S C L K * O n ly fo r P ix A r t S e n s o r 2D PS/2 Optical Mouse Controller (H2610) V D D 0 .1 m F 1 0 0 m F 4 7 0 p F U 2 4 7 0 p F 2 6 3 4 R 5 L S W 2 2 1 3 S W 4 2 k W * 4 7 6 5 8 U 1 R B L B Z 2 Z 1 R B S D S C V S 6 8 W /A /B 1 IO L K S R P S P S 2 O S V R R O B 0 2 D C K N C C 1 D D E S 1 6 1 5 M G N D S W 3 3 1 3 4 1 2 1 1 9 1 0 S C L K 2 O S C _ O U T R E F A L E D 2 N 3 9 0 6 1 O S C _ IN A D N S 2 6 1 0 1 4 0 k W 4 7 k W 1 k W 5 X Y _ L E D S D IO 1 4 1 0 0 k W V D D T A L K D D N D N D N 5 6 8 W 1 1 0 0 W 4 .7 k W 7 J 1 D A C V G G C O 4 .7 k W 2 4 M H z 8 2 .2 m F D IO D E 0 .1 m F 0 .1 m F S D IO S C L K * O n ly fo r P ix A r t S e n s o r Rev. 1.40 7 September 23, 2005 HT82M30A/B/C/D 3D PS/2 Optical Mouse Controller (H2610) V C A 4 7 0 p F B 6 8 W 4 .7 k W U 2 4 7 0 p F 2 K 3 D 4 D R 5 D S W 2 U 1 R B L B Z 2 Z 1 R B S D S C V S 1 2 L 3 S W 4 5 4 2 k W * 5 6 7 8 6 6 8 W R O B 0 2 D C K N C C 1 D D E S R /A /B 1 IO L K S 1 6 P S P S 2 O S V R 1 5 M 1 0 0 W 4 .7 k W G N D S W 3 3 1 3 4 1 2 S C L K O S C _ IN R E F A 1 4 0 k W 4 7 k W 9 0 .1 m F 0 .1 m F 4 .7 k W 4 .7 k W 2 N 3 9 0 6 2 4 M H z 2 8 A D N S 2 6 1 0 D IO D E L E D 1 O S C _ O U T 1 1 1 0 1 k W 5 X Y _ L E D S D IO 1 4 1 0 0 k W V D D 1 A 0 .1 m F 1 0 0 m F E n c o d e r 7 J 1 D A T C L V D G N G N C O N D D 2 .2 m F S D IO S C L K * O n ly fo r P ix A r t S e n s o r Win2K PS/2 Optical Mouse Controller (H2610) V 1 0 0 m F C A 4 7 0 p F 6 8 W B 0 .1 m F U 2 4 7 0 p F 2 K 3 D 4 D R 5 5 2 k W * L S W 2 1 2 3 S W 4 4 5 B 5 6 S W 6 7 8 U 1 R B L B Z 2 Z 1 R B S D S C V S 6 6 8 W /A /B 1 IO L K S R P S P S 2 O S V R R O B 0 2 D C K N C C 1 D D E S 1 6 M 9 1 5 B 4 1 4 1 3 1 2 1 1 1 0 1 0 0 W G N D S W 3 S W 5 3 1 4 0 k W 4 7 k W D IO D E 0 .1 m F 1 k W 5 X Y _ L E D S D IO 4 1 0 0 k W V D D 1 A D E n c o d e r 7 J 1 D A T C L V D G N G N C O N D D S C L K 2 4 M H z 2 O S C _ O U T A D N S 2 6 1 0 2 N 3 9 0 6 1 O S C _ IN R E F A L E D 8 2 .2 m F 0 .1 m F S D IO S C L K * O n ly fo r P ix A r t S e n s o r Rev. 1.40 8 September 23, 2005 HT82M30A/B/C/D 2D PS/2 Optical Mouse Controller (H2620) V D D 0 .1 m F 1 0 0 m F 4 7 0 p F T A L K D D N D N D N 5 U 2 4 7 0 p F 2 6 3 4 S W 2 R U 1 R B L B Z 2 Z 1 R B S D S C V S 1 L 2 5 3 S W 4 2 k W * 4 5 6 7 8 6 8 W /A /B 1 IO L K S 1 6 P S R R O B 0 2 D C K N C C 1 D D E S P S 2 O S V R M G N D S W 3 1 5 3 1 3 4 S C L K 1 2 1 1 1 0 L E D 2 N 3 9 0 6 1 O S C _ IN 2 O S C _ O U T 2 4 M H z 8 R E F A A D N S 2 6 2 0 1 4 0 k W 4 7 k W 9 1 k W 5 X Y _ L E D S D IO 1 4 1 0 0 k W V D D 6 8 W 1 1 0 0 W 4 .7 k W 7 J 1 D A C V G G C O 4 .7 k W 2 .2 m F D IO D E 0 .1 m F 0 .1 m F 4 .7 k W 4 .7 k W S D IO S C L K * O n ly fo r P ix A r t S e n s o r 3D PS/2 Optical Mouse Controller (H2620) V C A 1 4 7 0 p F B 6 8 W U 2 4 7 0 p F 2 3 4 R 5 L S W 2 1 2 3 S W 4 2 k W * 4 5 6 7 8 U 1 R B L B Z 2 Z 1 R B S D S C V S 6 6 8 W /A /B 1 IO L K S P S P S 2 O S V R R R O B 0 2 D C K N C C 1 D D E S 1 6 1 5 M G N D S W 3 3 1 3 4 1 2 1 1 9 1 4 0 k W 4 7 k W D IO D E 0 .1 m F 1 0 0 k W 1 k W 5 X Y _ L E D S D IO 1 4 1 0 1 0 0 W V D D T A L K D D N D N D N 5 0 .1 m F 1 0 0 m F E n c o d e r 7 J 1 D A C V G G C O D D S C L K 2 O S C _ O U T A D N S 2 6 2 0 2 N 3 9 0 6 1 O S C _ IN R E F A L E D 2 4 M H z 8 2 .2 m F 0 .1 m F S D IO S C L K * O n ly fo r P ix A r t S e n s o r Rev. 1.40 9 September 23, 2005 HT82M30A/B/C/D Win2K PS/2 Optical Mouse Controller (H2620) V E n c o d e r 4 7 0 p F 6 8 W B 4 .7 k W U 2 4 7 0 p F 3 4 S W 2 D R 3 S W 4 5 2 k W * 1 2 L 5 D U 1 R B L B Z 2 Z 1 R B S D S C V S 4 5 B 5 6 S W 6 7 8 6 6 8 W R O B 0 2 D C K N C C 1 D D E S R /A /B 1 IO L K S 1 6 P S P S 2 O S V R M 1 5 B 4 1 4 1 3 1 2 1 1 1 0 9 G N D S W 3 S W 5 3 1 4 0 k W 4 7 k W S C L K L E D 2 N 3 9 0 6 O S C _ IN 1 2 4 M H z 2 O S C _ O U T 8 R E F A A D N S 2 6 2 0 D IO D E 0 .1 m F 1 k W 5 X Y _ L E D S D IO 4 1 0 0 k W V D D 2 K D 1 0 0 W 4 .7 k W 7 A 1 A 0 .1 m F 1 0 0 m F C J 1 D A T C L V D G N G N C O N D D 2 .2 m F 0 .1 m F S D IO S C L K * O n ly fo r P ix A r t S e n s o r HT82M30A/B/C/D Z-Axis Optomechanical (This Application Circuit is for Reference Only) V D D 1 0 0 m F IR 0 .1 m F 4 .7 k W Z 1 R 6 8 W A 2 K 3 D 4 D D U 2 4 7 0 p F R 5 5 B 5 * * 2 k W ** Note: L S W 2 2 1 3 S W 4 5 4 6 S W 6 8 7 U 1 R B L B Z 2 Z 1 R B S D S C V S 6 6 8 W /A /B 1 IO L K S R P S P S 2 O S V R R O B 0 2 D C K N C C 1 D D E S 1 6 M 9 1 5 B 4 1 4 1 3 1 2 1 1 1 0 G N D S W 3 S W 5 3 1 4 0 k W 4 7 k W D IO D E 0 .1 m F 1 k W 5 X Y _ L E D S D IO 4 1 0 0 k W V D D Z 2 1 1 0 0 W 4 7 0 p F 7 J 1 D A T C L V D G N G N C O N 4 .7 k W S C L K 2 4 M H z 2 O S C _ O U T A D N S 2 6 2 0 2 N 3 9 0 6 1 O S C _ IN R E F A L E D 8 2 .2 m F 0 .1 m F S D IO S C L K * For resistor value selection, refer to high or low input level of Z1 and Z2 in the D.C. Characteristics table. The recommended value is 6kW. ** Only for PixArt Sensor Rev. 1.40 10 September 23, 2005 HT82M30A/B/C/D Package Information 16-pin DIP (300mil) Outline Dimensions A B 1 6 9 8 1 H C D a G E I F Symbol Rev. 1.40 Dimensions in mil Min. Nom. Max. A 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° 11 September 23, 2005 HT82M30A/B/C/D 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 12 September 23, 2005