eKM8021 Preliminary USB & PS/2 Mouse Controller SPECIFICATION 1. General Description The EKM8021 is an Mouse Controller designed to control both USB & PS/2 Mouse device. This Mouse Controller can auto detect USB or PS/2 mode, and supports X,Y,Z three axes , and three buttons under both USB and PS2 mode. 2. Features Universal Serial Bus Specification, version 1.1 USB HID Specification, version 1.1 Auto-detecting PS/2 port or USB port. Compatible with Microsoft 3D PS/2 mouse. Support 3D (X,Y,Z) 3 Key (L,R,M) input. Support Z/2 mechanical, Z/2 Photo, and Z/4 Photo(eKM8021B) Z-axis input type. Support Agilent HDNS-2000 Optical Mouse Sensor. Applications 3D, 3 Buttons USB and PS/2 Combo Mouse. This specification may change without further notice. 1 eKM8021 Preliminary USB & PS/2 Mouse Controller 3. Applications USB & PS/2 3D 3Key Mouse USB & PS/2 3D 3Key Optical Mouse 4. Pin Configuration Z1 1 18 X1 Z2 2 17 X2 L Key 3 16 Y1 R Key 4 15 Y2 M Key 5 14 IR_C VSS 6 13 D+/CLK VSS 7 12 D-/Data V3.3 8 11 VDD OSCI 9 10 OSCO eKM8021A (18-Pin) Z1 1 18 X1 Z2 2 17 X2 L Key 3 16 Y1 R Key 4 15 Y2 M Key 5 14 IR_C Z_SEL 6 13 D+/CLK VSS 7 12 D-/Data V3.3 8 11 VDD OSCI 9 10 OSCO eKM8021B (18-Pin) This specification may change without further notice. 2 eKM8021 Preliminary USB & PS/2 Mouse Controller 5. Pin Description Symbol I/O Pin Function OSCI I 9 6MHz ceramic resonator input. OSCO I/O 10 Return path for 6-MHz ceramic resonator. V3.3V O 8 3.3V DC voltage output from internal regulator. This pin has to be tied to a 4.7F capacitor. X1 I 18 X axis Input 1 X2 I 17 X axis Input 2 Y1 I 16 Y axis Input 1 Y2 I 15 Y axis Input 2 Z1 I 1 Z axis Input 1 Z2 I 2 Z axis Input 2 R I 4 Right Key Input M I 5 Middle Key Input L I 3 Left Key Input IR_C I/O 14 IR Control Pin. D+ / CLK I/O 13 USB D+ or PS/2 CLK I/O D- / DATA I/O 12 USB D- or PS/2 Data I/O VDD - 11 5 V Power Input VSS - 6,7 GND. Z_SEL I 6 EKM8021A Type both two pin should tired to GND Z/2 : Floating Z/4: Ground eKM8021B This specification may change without further notice. This function only support by 3 eKM8021 Preliminary USB & PS/2 Mouse Controller 6. Function Description X1 X2 Y1 Y2 X-COUNTER X Y USB PROTOCOL CONTROLLER Y-COUNTER DATA PROCESS Z1 Z2 Z PS/2 PROTOCOL CONTROLLER Z-COUNTER BTM REGISTER MULTIPLEXER IR_C IR_C DATA I/O D+/CLK D-/DATA LMR MODE SELECTOR L M DETECT CIRCUIT R Fig-1 : Function block 6.1 PS/2 Mouse Function Description PS/2 Mouse Commands Description Hex Code Command EKM8021 echo code FF Reset FA,AA,00 FE Resend XX,(XX,XX) F6 Set Default FA F5 Disable FA F4 Enable FA F3,XX Set Sampling Rate FA,FA F2 Read Device Type FA,00 F0 Set Remote Mode FA EE Set Wrap Mode FA EC Reset Wrap Mode FA EB Read Data FA,XX,XX,XX EA Set Stream Mode FA E9 Status Request FA,XX,XX,XX E8 Set Resolution FA,FA E7 Set Autospeed FA E6 Reset Autospeed FA This specification may change without further notice. 4 eKM8021 Preliminary USB & PS/2 Mouse Controller Microsoft PS/2 scrolling mouse (A) Entering procedure: Except in WRAP mode, while eKM8021 received the following consecutive command. i. F3 C8 ---- set sampling rate 200/sec ii. F3 64 ---- set sampling rate 100/sec iii. F3 50 ---- set sampling rate 80/sec (B) Operating: a. All of the commands in legacy mode still be valid. b. The ID code of read device type command (F2) will changed from "00" to be "03". c. Data report will be four bytes format: Byte 1 2 3 4 Bit 0 1 2 3 4 5 6 7 0-7 0-7 0-7 Description Left button status; 1 = pressed Right buton status; 1 = pressed Middle button status; 1 = pressed Reserve X data sign; 1 = negative Y data sign; 1 = negative X data overflow; 1 = overflow Y data overflow; 1 = overflow X data (D0-D7) Y data (D0-D7) Z data (D0-D7) (C) Exiting Microsoft scrolling mode: There are two ways to exit: a. Power off. b. Reset command (FF). Z-axis Input Function : The Z0-Z7 limit value is 7 Z-axis counter accumulates the Z1, Z2 phase changed by movement. This mode includes noise immunity. Z/2 : 2 dot per count. The wheel should stay at Z1=0, Z2=0 or Z1=1, Z2=1 Phase Z/4 : 4 dots per count. the wheel should stay at Z1=0, Z2=0 phase. This specification may change without further notice. 5 eKM8021 Preliminary USB & PS/2 Mouse Controller 6.2 USB Mouse Function Description Each Descriptor in USB Mode. Descriptor Type Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 Device Descriptor Configuration Descriptor 12 01 10 01 00 00 00 08 67 12 02 00 01 00 01 02 00 01 09 02 22 00 01 01 00 A0 04 00 00 01 03 01 02 21 10 01 00 01 22 48 07 05 81 03 04 00 0A 05 01 09 02 A1 01 05 09 19 01 29 04 15 00 25 01 95 04 75 01 81 02 95 01 75 04 81 03 05 01 09 01 A1 00 09 30 09 31 15 81 25 7F 75 08 95 02 81 06 C0 09 38 95 01 81 06 09 3C 15 00 25 01 75 01 95 01 B1 22 95 07 B1 01 C0 32 09 Interface Descriptor 00 09 HID Descriptor 00 Endpoint HID Report Descriptor USB Mouse Report Data Type Byte0 Byte1 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 0 0 0 0 0 M R L Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Bit2 Bit1 Bit0 Bit2 Bit1 Bit0 X-AXIS Byte2 Bit7 Bit6 Bit5 Bit4 Bit3 Y-AXIS Byte3 Bit7 Bit6 Bit5 Bit4 Bit3 Z-AXIS This specification may change without further notice. 6 eKM8021 Preliminary USB & PS/2 Mouse Controller 7. ABSOLUTE MAXIMUM RATINGS Symbol Temperature under bias Storage temperature Input voltage Output voltage min 0 -65 -0.5 -0.5 Max 70 150 6.0 6.0 unit C C V V 8. DC ELECTRICAL CHARACTERISTICS Symbol Condition Parameter Min Type Max Unit 3.0 3.3 3.6 V - 2.3 V 3.3V Regulator VRag Output voltage of 3.3v Regulator VDD = 4.2V ~ 5.2V VResetL Low Power Reset detecting low Voltage VResetH Low Power Reset detecting high Voltage 2.4 - V - - 1 A MCU operating Input Leakage Current for input pins VIN=VDD,VSS VIHX Clock Input High Voltage OSCI 2.5 - - V VILX Clock Input Low Voltage OSCI - - 1.0 V 1.1 - V 2.4 - - V - - 0.4 V - 25 - A - 330 - A 2.8 - 3.6 V - - 0.3 V 0.2 - - V IIL GPIO Pins VHL High/Low level transfer point Input VOH Output High Voltage IDrive = 5.0mA VOL Output Low Voltage IPH IPL ISink = 5.0mA The input pin with Input current with pull-high resister internal pull-high resistor is connected to VSS The input pin with Input current with pull-low resister internal pull-low resistor is connected to V3.3. USB Interface VOH Static Output High VOL Static Output Low VDI Differential Input Sensitivity VCM Differential Input Command Mode Range 0.8 - 2.5 V VSE Single Ended Receiver Threshold 0.8 - 2.0 V CIN Transceiver Capacitance - - 20 pF 3.0 - 3.6 V -20% 1.5 VRG RPH Output Voltage of Internal Regulator Internal Pull-high Resistor (USB Spec 5%) This specification may change without further notice. USB operation Mode USB operation Mode +20% k 7 eKM8021 Preliminary USB & PS/2 Mouse Controller 9. AC ELECTRICAL CHARACTERISTICS Parameter Sym. Min. Typ. Max. Unit Time from DATA transition to falling edge of CLK T1 5 25 S Time from rising edge of CLK to DATA transition T2 5 T4 - 5 S Duration of CLK inactive T3 30 40 50 S Duration of CLK active T4 30 40 50 S Time to auxiliary device inhibit after clock 11 to ensure T5 50 S the auxiliary device does not start another transmission Time from inactive to active CLK transition, used to time T6 5 25 S when auxiliary device samples DATA System clock FCLK 1.843 MHz Twdt 500Us Watchdog (Ta=0to25, VDD=5V, VSS=0V) ~ 16Ms This specification may change without further notice. 8 eKM8021 Preliminary USB & PS/2 Mouse Controller 10. PS/2 TIMING DIAGRAMS Fig 1. PS/2output data timings Fig 2. PS/2 input data timings This specification may change without further notice. 9 eKM8021 Preliminary USB & PS/2 Mouse Controller 11. APPLICATION CIRCUIT V3.3 VDD 1 6 + 10uF 0.1uF 5 2 X-AXIS 4 VDD D+/CLK D-/DATA VSS VDD X1 D+/CLK X2 D-/DATA CON 1 6 5 2 VSS 4.7uF Y1 VSS Y-AXIS 4 Y2 + V3.3 1K LED L V3.3 1 Z2 2 M 1 Z1 R 2 Z-AXIS OSCO OSCI 50K eKM8021A 20P 6M 20P eKM8021A_Mechanical_Z/2 Application This specification may change without further notice. 10 eKM8021 Preliminary USB & PS/2 Mouse Controller V3.3 VDD + 10uF 0.1uF 1 6 5 2 4 X-AXIS 1 6 VDD D+/CLK D-/DATA VSS VDD X1 D+/CLK X2 5 2 D-/DATA CON 4 VSS 4.7uF Y-AXIS Y1 VSS Y2 + V3.3 1K LED L 2K V3.3 M Z1 R 1 6 Z2 Z-AXIS 50K OSCO OSCI 5 2 eKM8021A_Z/2 4 20P 6M 20P eKM8021A_Photo_Z/2 Application This specification may change without further notice. 11 eKM8021 Preliminary USB & PS/2 Mouse Controller V3.3 VDD 1 6 0.1uF + 10uF 5 2 X-AXIS 4 VDD D+/CLK D-/DATA VSS VDD X1 D+/CLK X2 D-/DATA CON 1 6 5 2 VSS 4.7uF Y1 Y-AXIS 4 + Y2 V3.3 1K LED L M V3.3 Z2 1 2 R Z1 Z_SEL 1 2 Z-AXIS OSCO OSCI eKM8021B 20P 6M 20P eKM8021B_Mechanical_Z/2 Application This specification may change without further notice. 12 eKM8021 Preliminary USB & PS/2 Mouse Controller V3.3 VDD 0.1uF 6 1 5 + 10uF 2 4 X-AXIS 6 VDD D+/CLK D-/DATA VSS VDD X1 D+/CLK X2 1 5 2 D-/DATA CON 4 VSS 4.7uF Y-AXIS Y1 + Y2 V3.3 1K LED L 2K M V3.3 R Z1 6 Z_SEL Z2 OSCI OSCO 1 Z-AXIS 5 2 eKM8021B_Z/2 4 20P 6M 20P eKM8021B_Photo_Z/2 Application This specification may change without further notice. 13 eKM8021 Preliminary USB & PS/2 Mouse Controller V3.3 VDD 0.1uF 6 + 10uF 1 5 2 4 X-AXIS 6 VDD D+/CLK D-/DATA VSS VDD X1 D+/CLK X2 1 5 2 D-/DATA CON 4 VSS 4.7uF Y-AXIS Y1 + Y2 V3.3 1K LED L 2K M V3.3 R Z1 6 Z_SEL Z2 OSCI OSCO 1 Z-AXIS 5 2 eKM8021B_Z/4 4 20P 6M 20P eKM8021B_Photo_Z/4 Application This specification may change without further notice. 14 eKM8021 Preliminary USB & PS/2 Mouse Controller (c) 2002 ELAN Microelectronics Corporation All Rights Reserved Printed in Taiwan, ROC, 09/2002 The contents of this specification are subject to change without notice. ELAN Microelectronics assumes no responsibility for errors that may appear in this specification. ELAN Microelectronics makes no commitment to update, or to keep current, the information contained in this specification. The products described herein are not intended for use in life support appliances, devices, or systems. Use of ELAN Microelectronics products in such applications are not supported and is prohibited. NO PART OF THIS SPECIFICATION MAY BE REPRODUCED OR TRANSMITTED IN ANY FORM OR BY ANY MEANS WITHOUT THE EXPRESS WRITTEN PERMISSION OF ELAN MICROELECTRONICS. ELAN MICROELECTRONICS CORPORATION Headquarters: Hong Kong Office: No. 12, Innovation Road 1, Science-based Industrial Park, Hsinchu, Taiwan, R.O.C. Tel: +886 3 5639977 Fax: +886 3 5639966 http://www.emc.com.tw Rm. 1005B, 10/F Empire Centre 68 Mody Road, Tsimshatsui Kowloon , HONG KONG Tel: +852 2838-8715 Fax: +852 2838-0497 This specification may change without further notice. 15