HT82M23A/HT82M23B/HT82M23C 3/5-Key USB+PS/2 Optical Mouse Controller Features · Operating voltage: 4.4V~5.25V · HALT function and wake-up feature reduce power consumption · Compatible with Microsoft Windows 2000 and · Plug and Play functions 5-button Wheel Mouse · Microsoft 3D Intelli mouse and IBM PS/2 mouse · Minimal external components compatible · 6MHz crystal oscillator for system clock · Supports 3/5 buttons and Z-axis input · Interface compliant with ADNS-2051, ADNS-2610 · Z-axis can support two kinds of scroller input and ADNS-2620 (optomechanical and mechanical) · Pass WHQL, USB-IF and EMC testing · 3 key or 5 key mode can be selected by package · HT82M23A is pin compatible with HT82M22A · Complete Universal Serial Bus specs V2.0 · HT82M23B/HT82M23C is pin compatible with compatibility HT82M21A · Serial Bus Interface Engine (SIE) · HT82M23A: 20-pin DIP/SOP package · USB transceiver HT82M23B/HT82M23C: 18-pin DIP/SOP package · Single chip solution especially for USB mouse function General Description ponents to implement 3D or Windows 2000 5 key USB plus PS/2 mouse. All its features combined and make up this versatile Holtek 8-bit MCU with an on-chip USB interface logic. The USB is specified by the Universal Serial Bus Specification V2.0. HT82M23A/HT82M23B/HT82M23C is a Plug and Play Windows 2000 and 5-button 3D USB+PS/2 Mouse controller. The HT82M23A/HT82M23B/HT82M23C can support the USB Standard Request as well as HID Class Request version 1.1. It is compatible with Microsoft Intelli 3D or Windows 2000 5 key PS/2 mouse. The Z-axis can support two kinds of scroller input, namely; mechanical and optomechanical. It requires minimal external com- The USB vendor ID for HT82M23A/HT82M23B/ HT82M23C is defined as 04D9H, the USB product ID is different by different package Selection Table Part No. Interface Mode USB Product ID Package HT82M23A USB and PS/2 Windows 2000 048EH 20DIP/SOP HT82M23B USB and PS/2 3D 0499H 18DIP/SOP HT82M23C USB only 3D 0499H 18DIP/SOP Rev. 1.10 1 January 22, 2007 HT82M23A/HT82M23B/HT82M23C Block Diagram U S B T r a n s c e iv e r R e g is te r S e t U S B R e c e iv e r U S B D + U S B D - U S B T r a n s m itte r U S B In te rfa c (S a C o L o V o lta g e R e g u la to r V 3 3 O O S C 1 O S C 2 S e r ia l e E n g in e IE ) n d n tro l g ic C lo c k G e n e ra to r M a in S ta te m a c h in e R C R E S E T S u s p e n s io n C o n tro l H o lte k 8 - b it M ic r o c o n tr o lle r F IF O s ´ 2 V D D V S S Pin Assignment V S S 1 2 0 O S C 1 V 3 3 O 2 1 9 O S C 2 V S S 1 1 8 O S C 1 U S B D + /C L K 3 1 8 V D D V 3 3 O 2 1 7 O S C 2 U S B D - /D A T A 4 1 7 L E D U S B D + /C L K 3 1 6 V D D R E S E T 5 1 6 M U S B D - /D A T A 4 1 5 L E D S E L 1 6 1 5 R R E S E T 5 1 4 M S D IO 7 1 4 L S E L 1 6 1 3 R S C L K 8 1 3 Z 2 S D IO 7 1 2 L S E L 0 9 1 2 Z 1 S C L K 8 1 1 Z 2 R B 0 1 0 1 1 R B 1 S E L 0 9 1 0 Z 1 H T 8 2 M 2 3 B /H T 8 2 M 2 3 C 1 8 D IP -A /S O P -A H T 8 2 M 2 3 A 2 0 D IP -A /S O P -A Rev. 1.10 2 January 22, 2007 HT82M23A/HT82M23B/HT82M23C Pin Description Pin Name I/O Description VSS ¾ Negative power supply, ground V33O O 3.3V voltage output USBD+/CLK I/O USB data plus or PS2 Clock, F/W auto-detect USBD+ for USB, CLK for PS2 USBD-/DATA I/O USB data minus or PS2 Data, F/W auto-detect USB- for USB, DATA for PS2 RESET I Chip reset input, low active SEL1 SEL0 I Configuration selections SEL1=0: Z-axis is divided by 2 (default) SEL1=1: Z-axis is divided by 4 For ADNS 2051: SEL0=0: 800DPI (default) SEL0=1: 400DPI For ADNS 2610/2620: SEL0=0, 400DPI (default) SEL0=1, 800DPI-by firmware SDIO I/O Serial data for Agilent sensor IC SDIO SCLK I Serial data for Agilent sensor IC SCLK RB0, RB1 L, R, M I Click button detection. Input ports with 30kW pull-high resistor. Input ports with pull-high resistor. These pads can function as Left, Right, Middle, B4 and B5 button input lines. I Z-axis input supports two kinds of scroller input; optomechanical and mechanical. Z1, Z2 LED I/O Drives LED output VDD ¾ 5V positive power supply OSC2 O 6MHz OSC output OSC1 I 6MHz OSC input Absolute Maximum Ratings Supply Voltage ..............................VSS-0.3V to VSS+6V Storage Temperature ............................-50°C to 125°C MCU Input Voltage.....................VSS-0.3V to VDD+0.3V Operating Temperature...........................-25°C to 70°C USB Input Voltage ....................VSS-0.3V to V33O+0.3V 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.10 3 January 22, 2007 HT82M23A/HT82M23B/HT82M23C D.C. Characteristics Symbol VDD Ta=25°C Test Conditions Parameter VDD Conditions ¾ ¾ Operating Voltage No load, fSYS=6MHz Min. Typ. Max. Unit 4.4 ¾ 5.25 V USB mode ¾ 10 ¾ mA PS/2 mode ¾ 3 ¾ mA ¾ ¾ 250 mA Operating Current (Crystal OSC) 5V ISUS USB Suspend Mode 5V VIL1 Input Low Voltage (Z1, Z2, L, M, R) 5V ¾ 0 ¾ 1.0 V VIH1 Input High Voltage (Z1, Z2, L, M, R) 5V ¾ 3.5 ¾ 5 V VIL2 Input Low Voltage (RESET) 5V ¾ 0 ¾ 1.5 V VIH2 Input High Voltage (RESET) 5V ¾ 3.5 ¾ 5 V VPOR Built-in Power on Reset VDD Detection Voltage 5V ¾ ¾ 3.7 ¾ V IOL Sink Current (LED) 5V ¾ 50 ¾ mA IDD No load, system HALT VOL=0.8V A.C. Characteristics Symbol fSYS Ta=25°C Test Conditions Parameter VDD Conditions 5V ¾ System Clock (Crystal OSC) Min. Typ. Max. Unit 0 6000 ¾ kHz Note: tSYS=1/fSYS Timing Diagram Z-axis Photo-Coupler Crossed Width Z 1 Z 2 tr N o te : F o r Z - a x is tP tf tr, tP , tf > 1 m s Z-axis Counting Z 1 Z 2 + 1 Rev. 1.10 + 1 -1 4 -1 January 22, 2007 HT82M23A/HT82M23B/HT82M23C Functional Description PS/2 Mouse Command · PS/2 status byte ¨ FAh Bit 7: Reserved C8h FAh Bit 6: 0=Stream Mode, 1=Remote Mode F3h FAh Bit 5: 0=Disabled, 1=Enabled 64h FAh Bit 4: 0=Scaling 1:1, 1=Scaling 2:1 F3h FAh Bit 3: 1=Wrap Mode, 0=Stream or Remote (different from IBM specs.) 50h FAh F2h FAh, 03h Byte 1 Bit 2: 1=Left Button Pressed · For HT82M23A, mouse mode changes between Bit 1: 1=Middle Button Pressed Standard and Windows 2000 PS/2 mode. Sending the commands in the following sequence will set the mouse to Windows 2000 PS/2 mode. Bit 0: 1=Right Button Pressed ¨ Byte 2 Command Bit 0~7 current resolution setting (Bit 0=LSB) ¨ Response From Mouse F3h Response From Mouse F3h FAh Byte 3 C8h FAh Bit 0~7 current sampling rate (Bit 0=LSB) F3h FAh C8h FAh FAh · Standard PS/2 data format (HT82M23A/HT82M23B) Bit No. 1st word 7 6 5 4 3 2 1 0 F3h YV XV YS XS 1 M R L 50h FAh F2h FAh, 04h 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 (HT82M23A/HT82M23B) Bit No. 7 6 5 4 1st word YV XV YS XS 1 M 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 Note: 3 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 · USB mouse data format for 3D mod (HT82M23A/HT82M23B/HT82M23C) Bit No. The X/Y data report is 9-bit 2¢s complement The Z data report is 8-bit 2¢s complement · Data format for 5-button Wheel Mouse (HT82M23A) 7 6 5 4 3 2 1 0 1st word 0 0 0 0 0 M 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 Bit No. 7 6 5 4 3 2 1 0 1st word 0 0 YS XS 1 M R L 2nd word X7 X6 X5 X4 X3 X2 X1 X0 Bit No. 3rd word Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 1st word 0 0 0 R L Z0 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 4th word Note: 0 0 RB1 RB0 Z3 Z2 Z1 · Data format for Windows 2000 mode (HT82M23A) X- movement towards the right is positive, moving towards the left is negative Y- upward movement is positive, moving down is negative Note: Z- rolling towards the user is positive, else negative 6 5 4 3 2 RB1 RB1 M 1 0 X- movement towards the right is positive, moving towards the left is negative Y- upward movement is negative, moving down is positive Button status: 1=pressed, 0=released Z- rolling towards the user is negative, else positive · For HT82M23A/HT82M23B, mouse mode changes Button status: 1=pressed, 0=released between Standard and 3D PS/2 mode. Sending the commands in the following sequence will set the mouse to 3D PS/2 mode. Rev. 1.00 7 5 January 12, 2006 HT82M23A/HT82M23B/HT82M23C Application Circuits HT82M23A Application Circuit is for Reference Only V V D D 2 1 0 m F U S B - 3 3 W 1 5 k W 3 5 k W S W 1 0 .0 1 m F 4 V S S V 3 3 O U S B D + /C L K U S B D - /D A T A 2 4 5 S W 2 R E S E S D S C S E R B 6 7 S D IO S C L K 8 1 0 S W 3 9 O S C O S C V D L E D 1 7 1 6 3 2 4 1 3 Z 2 5 1 2 Z 1 O S C _ IN O S C _ O U T X B X A Y B Y A 1 1 R B 1 7 R E F A R E F B X Y _ L E D P D S D IO S C L K G N D G N D 2 .2 m F 8 0 W 6 1 5 1 6 S D IO S C L K 1 1 2 1 0 A D N S 2 0 5 1 1 0 0 k W 1 0 k W M B R B 0 0 .1 m F L B 6 M H z R B 1 1 .5 k W V V D D 2 0 .0 1 m F : 8 : 4 : Z : Z : U : U 0 0 D P 0 0 D P /2 (d e /4 + P C S B o I ( d e fa u lt) I fa u lt) o m b o n ly 4 3 3 W 3 5 k W V S S V 3 3 O U S B D + /C L K U S B D - /D A T A 2 4 5 S W 2 6 7 S D IO S C L K 8 1 0 S W 3 9 R E S E S D S C S E R B O S C O S C V D L E D V D D 2 4 M H z 1 6 L Z 2 Z 1 R B 1 1 0 .1 m F 1 5 R 1 k W 5 X Y _ L E D 1 7 D 1 0 0 k W 7 B 1 8 2 1 4 6 1 3 1 2 3 O S C _ IN S D IO O S C _ O U T S C L K G N D R E F A S D IO 4 S C L K 8 2 .2 m F 1 1 A D N S 2 6 1 0 1 0 0 k W H T 8 2 M 2 3 A 5 .1 k W 1 0 0 W 1 9 2 M S E T L 1 IO L K L 0 0 A 2 0 1 0 .1 m F C 1 k W S W 1 e n s e e n s e e n s e D D 1 0 m F 3 1 5 k W o p c lo o p c lo o p c lo 3 0 p F 3 0 k W V S S 1 M W 1 = 1 = 2 = 2 = 3 = 3 = 1 U S B U S B + 3 0 p F 3 3 p F 3 3 p F N o te : S W S W S W S W S W S W 0 .1 m F R B 3 3 W 3 3 W 1 0 k W R B 0 0 .1 m F 3 3 W 3 3 p F N o te : 0 .1 m F R B L B 1 .5 k W 3 3 p F M B 6 M H z R B 1 3 3 W Note: 9 1 4 L V D D R _ B IN 1 1 0 .1 m F 1 5 R 1 4 1 8 .4 3 2 M H z H T 8 2 M 2 3 A 5 .1 k W 1 5 k W 1 8 D 0 .1 m F 1 3 B 1 9 2 M S E T L 1 IO L K L 0 0 A 2 0 1 0 .1 m F C 1 k W V S S 3 3 0 k W U S B + D D 1 3 0 p F 1 M W S W S W S W S W S W S W 1 = 1 = 2 = 2 = 3 = 3 = o p c lo o p c lo o p c lo e n s e e n s e e n s e : 8 : 4 : Z : Z : U : U 0 0 D P 0 0 D P /2 (d e /4 + P C S B o I ( d e fa u lt) I fa u lt) o m b o n ly 3 0 p F Layout 0.1mF capacitor, 33W resistor and 0.01mF capacitor as close to VDD pin as possible. Rev. 1.00 6 January 12, 2006 HT82M23A/HT82M23B/HT82M23C HT82M23B/HT82M23C Application Circuit is for Reference Only V 2 1 0 m F U S B 4 3 3 W 1 5 k W 3 5 k W S W 1 0 .0 1 m F V S V 3 U S U S 2 4 5 S W 2 R E S E S D S C S E 6 7 S D IO S C L K 8 9 S 3 O B D + /C L K B D - /D A T A O S C O S C V D L E 1 5 k W 1 6 D 1 4 9 2 4 1 1 Z 2 5 1 0 Z 1 O S C _ IN O S C _ O U T X B X A Y B Y A 3 1 2 L H T 8 2 M 2 3 B /C V D D R _ B IN 1 1 0 .1 m F 1 3 R 1 4 1 8 .4 3 2 M H z 1 5 D 0 .1 m F 1 3 B 1 7 2 M S E T L 1 IO L K L 0 A 1 8 1 0 .1 m F C 1 k W V S S 3 3 0 k W U S B + D D 1 V D D R E F A R E F B X Y _ L E D P D S D IO S C L K G N D G N D 7 2 .2 m F 8 0 W 6 1 5 1 6 S D IO S C L K 1 1 2 1 0 A D N S 2 0 5 1 1 0 0 k W 1 0 k W M B 0 .1 m F 3 3 W N o te : S W S W S W S W 0 .1 m F R B L B 6 M H z 1 = 1 = 2 = 2 = o p c lo o p c lo e n s e e n s e : 8 : 4 : Z : Z 0 0 D P I ( d e fa u lt) 0 0 D P I /2 ( d e fa u lt) /4 3 3 W 1 .5 k W V 2 4 3 3 W S W 1 S W 2 3 V S S V 3 3 O U S B D + /C L K U S B D - /D A T A 2 4 5 R E S E T S E L 1 6 7 S D IO S C L K O S O S V L 8 9 S D IO S C L K S E L 0 C 1 C 2 D D E D M R L Z 2 Z 1 0 .1 m F C 1 k W 5 k W 0 .0 1 m F 3 0 k W 3 1 5 k W D D 1 0 m F U S B V S S 3 0 p F 1 V D D U S B + 1 M W 3 0 p F 3 3 p F 3 3 p F A 1 8 1 0 0 W 1 0 0 k W 7 B V D D 1 7 1 k W 5 X Y _ L E D 1 6 1 5 2 4 M H z 1 4 1 0 .1 m F 1 3 2 1 2 6 1 1 1 0 O S C _ IN S D IO O S C _ O U T S C L K 3 S C L K 8 R E F A G N D S D IO 4 2 .2 m F H T 8 2 M 2 3 B /C A D N S 2 6 1 0 1 0 0 k W 1 0 k W M B 0 .1 m F N o te : 0 .1 m F R B 3 3 W L B 6 M H z S W S W S W S W 1 = 1 = 2 = 2 = o p c lo o p c lo e n s e e n s e : 4 : 8 : Z : Z 0 0 D P I ( d e fa u lt) 0 0 D P I- b y fir m w a r e /2 ( d e fa u lt) /4 3 3 W 1 .5 k W 3 3 p F Note: 3 3 p F 3 0 p F 1 M W 3 0 p F Layout 0.1mF capacitor, 33W resistor and 0.01mF capacitor as close to VDD pin as possible. Rev. 1.10 7 January 22, 2007 HT82M23A/HT82M23B/HT82M23C Package Information 18-pin DIP (300mil) Outline Dimensions A B 1 8 1 0 1 9 H C D E a G I F Symbol A Rev. 1.10 Dimensions in mil Min. Nom. Max. 895 ¾ 915 B 240 ¾ 260 C 125 ¾ 135 D 125 ¾ 145 E 16 ¾ 20 70 F 50 ¾ G ¾ 100 ¾ H 295 ¾ 315 I 335 ¾ 375 a 0° ¾ 15° 8 January 22, 2007 HT82M23A/HT82M23B/HT82M23C 18-pin SOP (300mil) Outline Dimensions 1 0 1 8 B A 9 1 C C ' G H D E Symbol Rev. 1.10 a F Dimensions in mil Min. Nom. Max. A 394 ¾ 419 B 290 ¾ 300 C 14 ¾ 20 C¢ 447 ¾ 460 D 92 ¾ 104 E ¾ 50 ¾ F 4 ¾ ¾ G 32 ¾ 38 H 4 ¾ 12 a 0° ¾ 10° 9 January 22, 2007 HT82M23A/HT82M23B/HT82M23C 20-pin DIP (300mil) Outline Dimensions A B 2 0 1 1 1 1 0 H C D E Symbol Rev. 1.10 F a G I Dimensions in mil Min. Nom. Max. A 1020 ¾ 1045 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° 10 January 22, 2007 HT82M23A/HT82M23B/HT82M23C 20-pin SOP (300mil) Outline Dimensions 1 1 2 0 A B 1 1 0 C C ' G H D E Symbol Rev. 1.10 a F Dimensions in mil Min. Nom. Max. A 394 ¾ 419 B 290 ¾ 300 C 14 ¾ 20 C¢ 490 ¾ 510 D 92 ¾ 104 E ¾ 50 ¾ F 4 ¾ ¾ G 32 ¾ 38 H 4 ¾ 12 a 0° ¾ 10° 11 January 22, 2007 HT82M23A/HT82M23B/HT82M23C Product Tape and Reel Specifications Reel Dimensions D T 2 A C B T 1 SOP 18W Symbol Description A Reel Outer Diameter B Reel Inner Diameter Dimensions in mm 330±1.0 62±1.5 13.0+0.5 -0.2 C Spindle Hole Diameter D Key Slit Width 2.0±0.5 T1 Space Between Flange 24.8+0.3 -0.2 T2 Reel Thickness 30.2±0.2 SOP 20W Symbol Description Dimensions in mm A Reel Outer Diameter 330±1.0 B Reel Inner Diameter 62±1.5 C Spindle Hole Diameter 13.0+0.5 -0.2 D Key Slit Width 2.0±0.5 T1 Space Between Flange 24.8+0.3 -0.2 T2 Reel Thickness 30.2±0.2 Rev. 1.10 12 January 22, 2007 HT82M23A/HT82M23B/HT82M23C Carrier Tape Dimensions P 0 D P 1 t E F W C D 1 B 0 P K 0 A 0 SOP 18W Symbol Description Dimensions in mm W Carrier Tape Width 24.0+0.3 -0.1 P Cavity Pitch 16.0±0.1 E Perforation Position 1.75±0.1 F Cavity to Perforation (Width Direction) 11.5±0.1 D Perforation Diameter 1.5±0.1 D1 Cavity Hole Diameter 1.5+0.25 P0 Perforation Pitch 4.0±0.1 P1 Cavity to Perforation (Length Direction) 2.0±0.1 A0 Cavity Length 10.9±0.1 B0 Cavity Width 12.0±0.1 K0 Cavity Depth 2.8±0.1 t Carrier Tape Thickness 0.3±0.05 C Cover Tape Width 21.3 SOP 20W Symbol Description Dimensions in mm W Carrier Tape Width 24.0+0.3 -0.1 P Cavity Pitch 12.0±0.1 E Perforation Position 1.75±0.1 F Cavity to Perforation (Width Direction) 11.5±0.1 D Perforation Diameter 1.5+0.1 D1 Cavity Hole Diameter 1.5+0.25 P0 Perforation Pitch 4.0±0.1 P1 Cavity to Perforation (Length Direction) 2.0±0.1 A0 Cavity Length 10.8±0.1 B0 Cavity Width 13.3±0.1 K0 Cavity Depth 3.2±0.1 t Carrier Tape Thickness 0.3±0.05 C Cover Tape Width Rev. 1.10 21.3 13 January 22, 2007 HT82M23A/HT82M23B/HT82M23C 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 Tel: 1-510-252-9880 Fax: 1-510-252-9885 http://www.holtek.com Copyright Ó 2007 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.10 14 January 25, 2007