PAW3402 / PAW3412 PAW3402 /PAW3412 PS/2 OPTICAL MOUSE SOC General Description PAW3402 / PAW3412 is a CMOS process optical mouse SOC with PS/2 interface that serves as a nonmechanical motion estimation engine for implementing a computer mouse. Features Key Specification Single 5.0 volt power supply Compatible with Microsoft Intelli 3D PS/2 and IBM PS/2 mouse Power Supply Wide operating supply range 4.5V ~ 5.5V Precise optical motion estimation technology Interface PS/2 Complete 2-D motion sensor No mechanical parts Accurate motion estimation over a wide range of surfaces High speed motion detection up to 28 inches/sec Optical Lens 1:1 High resolution up to 1000 CPI Power saving mode during times of no movement Support three buttons (R, M, L) and three axes (X, Y, Z) Z axis support two kinds of input— Speed 28 inches/sec Acceleration 20g Resolution 500 / 800 / 1000 Frame Rate 3000 frames/sec Operating Current 12 mA @Mouse moving (Normal) 5 mA @Mouse not moving (Sleep) Package Shrunk DIP12 opto-mechanical and mechanical ¾ PAW3402 support mechanical input ¾ PAW3412 support opto-mechanical input Internal ± 10% accurate oscillator, external resonator-less Ordering Information Part Number CPI Sensor Rotate Wheel Type Device Type PAW3402DK PAW3402DK-LH PAW3402DK-TJ PAW3412DK-TE 800 800 1000 500 0˚ -90˚ 0˚ 0˚ Mechanical Mechanical Mechanical Opto-Mechanical 2D3B/3D3B 2D3B/3D3B 2D3B/3D3B 2D3B/3D3B All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 1 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 1. Pin Configuration 1.1 Pin Description Pin # Name Type Definition 1 BL IN Button left key input, internal pull-up 50K ohm, press connect to low 2 LED OUT LED control 3 OSC_RES IN Connect to resistor input 4 VSS GND Chip ground 5 VDD5V PWR Chip power VDD, 5.0V 6 VREF BYPASS Analog voltage reference 7 CLOCK I/O PS/2 mouse clock line 8 DATA I/O PS/2 mouse data line 9 BR IN Button right key input, internal pull-up 50K ohm, press connect to low 10 BM IN Button middle key input, internal pull-up 50K ohm, press connect to low 11 Z2 IN Z axis, support mechanical encoder input (internal pull-down 50K ohm) or optical encoder input (needs external pull-down resistor) 12 Z1 IN Z axis, support mechanical encoder input (internal pull-down 50K ohm) or optical encoder input (needs external pull-down resistor) 1.2 Pin Assignment For Sensor Rotate 0˚ Figure 1. Top View Pinout Figure 2. Top View of Mouse All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 2 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 1.3 Pin Assignment For Sensor Rotate -90˚ Figure 3. Top View Pinout Figure 4. Top View of Mouse 2. Block Diagram and Operation BUTTON BM BR PS/2 INTERFACE CLOCK DATA CMOS IMAGE SENSOR DIGITAL SIGNAL PROCESSOR PS/2 MOUSE CONTROLLER VDD 5V POWER AND POWER CONTROL BL POWER ON RESET VOLTAGE REGULATOR Z1 Z2 Z-AXIS COUNTER WHEEL LED DRIVE DEBOUNCE LED INTERNAL OSCILLATOR VSS VREF VOLTAGE REFERENCE OSC_RES Figure 5. Block diagram PAW3402 / PAW3412 is a CMOS process optical mouse SOC with PS/2 interface that serves as a nonmechanical motion estimation engine for implementing a computer mouse. It is based on new optical navigation technology, which measures changes in position by optically acquiring sequential surface images (frames) and mathematically determining the direction and magnitude of movement. The sensor is in a 12-pin optical package and comes with the resolution of 500 / 800 / 1000 counts per inch (cpi) and the rate of motion up to 28 inches per second. It is also featured resonator-less (Internal ± 10% accurate oscillator) to save customer’s BOM cost. PAW3402 / PAW3412 include PS/2 interface so that no mouse controller is needed to interface through PS/2. PAW3402 / PAW3412 can receive command and echo status or data format which are compatible with IBM PS/2 mouse and Microsoft 3D PS/2 mouse. * The word “PS/2 Mouse”, instead of “ PAW3402 / PAW3412”, is used in the document. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 3 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 3. Specifications 3.1 Absolute Maximum Ratings Exposure to absolute maximum rating may affect device reliability. Symbol Parameter Min. Max. Unit Notes TSTG Storage Temperature -40 85 °C TA Operating Temperature -15 55 °C 260 °C For 10 seconds, 1.6mm below seating plane. 2 kV All pins, human body model MIL 883 Method 3015 Lead Solder Temp ESD VDC DC Supply Voltage -0.5 5.5 V VIN DC Input Voltage -0.5 5.5 V All I/O pin Typ. Max. Unit 40 °C 5.5 V 100 mV 3.2 Recommend Operating Condition Symbol Parameter Min. TA Operating Temperature 0 VDD Power Supply Voltage 4.5 VN Supply Noise Z Distance from Lens Reference Plane to Surface 2.3 2.4 2.5 mm R Resolution 500 800 1000 CPI FR Frame Rate S Speed 5.0 3000 0 Notes Peak to peak within 0 - 80 MHz frames/s 28 25 inches/sec @500CPI 16 inches/sec @800CPI inches/sec 13 inches/sec @1000CPI *Base on data rate : 100 report/sec All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 4 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 3.3 AC Operating Condition Electrical characteristics over recommended operating conditions. Typical values at 25 °C, VDD =5.0 V Symbol Parameters Tmca Tmci Tmdc Tsca Tsci Tsdc Tscd Min. Typ. Max. Unit Mouse CLK Active Time Mouse CLK Inactive Time Time that Mouse Sample DATA from CLK Rising Edge System CLK Active Time System CLK Inactive Time Time from DATA Transition to Falling Edge of CLK Time from Rising Edge of CLK to DATA Transition - 40 40 14 40 40 12 28 - us us us us us us us Notes Refer to Figure 9,10 3.4 DC Electrical Characteristics Electrical characteristics over recommended operating conditions. Typical values at 25 °C, VDD =5.0 V Symbol Parameter Type: PWR Supply Current IDD Mouse moving (normal) Supply Current IDD Mouse not moving (sleep) Type: BL, BM, BR RPH Internal Pull-up Resistance Min. Typ. Max. Unit Notes - 12 - mA - 5 - mA - 50 - Kohm - 50 - Only mechanical Z input built-in internal Kohm pull-down resistance, optical Z input needs external pull-down resistance Type: Z1, Z2 RPD Internal Pull-down Resistance Type: BL, BM, BR, Z1, Z2 VIH Input High Voltage 2.0 - - V VIL Input Low Voltage - - 0.8 V 5 - Kohm Type: CLOCK, DATA RPH Internal Pull-up Resistance - VOL Output Low Voltage - - 0.6 V IOL= 1mA IOH Output Pull-up Current - 1 - mA VOH=2.0V - - 300 mV I OL = 25mA Type: LED VOL Output voltage LOW All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 5 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 4. Z and 2D/3D Assembly Package Lid Lens Z OBJECT SURFACE Figure 6. Distance from Lens Reference Plane to Surface ESD LENS RING BASE PLATE Figure 7. 2D Aassembly All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 6 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC Figure 8. 3D Assembly for Mounting Instructions All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 7 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 5. PS/2 Command Set Description There are 16 valid commands that transmit between the system and the PS/2 Mouse. All other commands will cause an FE (Resend) response from the PS/2 Mouse. A second invalid command will cause an FC (error) response from the PS/2 Mouse. 5.1 PS/2 Command Set Hex Code FF FE F6 F5 F4 F3, XX F2 F0 EE EC EB EA E9 E8, XX E7 E6 Command Reset Resend Set Default Disable Enable Set Sampling Rate Read Device Type Set Remote Mode Set Wrap Mode Reset Wrap Mode Read Data Set Stream Mode Status Request Set Resolution Set Scaling 2:1 Reset Scaling Response FA, AA, 00 XX, (XX, XX) FA FA FA FA, FA FA, 00 FA FA FA FA, XX, XX, XX FA FA, XX, XX, XX FA, FA FA FA 5.2 Set Sampling Rate (F3, XX) Second Byte Hex Value (XX) 0A 14 28 3C 50 64 C8 Sampling Rate 10/sec 20/sec 40/sec 60/sec 80/sec 100/sec 200/sec 5.3 Status Request (E9) Byte 1 2 3 Bit 0 1 2 3 4 5 6 7 0-7 0-7 Symbol BR BM BL 0 Scaling Enabled Remote mode 0 Resolution Sampling rate Description 1 = Right button pressed. 1 = Middle button pressed. 1 = Left button pressed. Always = 0, reserved for future use. 0 = Scaling 1:1; 1 = Scaling 2:1. 0 = Disabled; 1 = Enabled. 0 = Stream mode; 1 = Remote mode. Always=0, reserved for future use. Current resolution setting. Bit 0=LSB. Current sampling rate. Bit 0=LSB. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 8 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 6. Data Format The PS/2 Mouse support two different PS/2-compatible packet formats, depending upon the following operational modes: • • Standard 2D mode (2D3B) Standard 3D mode (3D3B) 6.1 Standard 2D Mode Format A standard 2D PS/2-compatible mouse motion report consists of a 3-byte packet defined as below. Byte 1 Bit 0 1 2 3 4 5 6 7 2 0-7 3 0-7 Symbol BL BR BM 1 Xs Ys XOV YOV Description 1 = Left button pressed 1 = Right button pressed Always = 0, reserved for middle button Always = 1, reserved for future use X data sign, 1 = negative Y data sign, 1 = negative X data overflow, 1 = overflow Y data overflow, 1 = overflow X data (D0 - D7). A positive value indicates motion to the right; a X0~X7 negative value indicates motion to the left. Bit 0=LSB. Y data (D0 - D7), A positive value indicates device motion upward; a Y0~Y7 negative value indicates motion downward. Bit 0=LSB. 6.2 Standard 3D Mode Format A standard 3D PS/2-compatible mouse motion report consists of a 4-byte packet defined as below. Byte 1 Bit 0 1 2 3 4 5 6 7 2 0-7 3 0-7 4 0-7 Symbol BL BR BM 1 Xs Ys XOV YOV Description 1= Left button pressed 1 = Right button pressed 1= Middle button pressed Always = 1, reserved for future use X data sign, 1 = negative Y data sign, 1 = negative X data overflow, 1 = overflow Y data overflow, 1 = overflow X data (D0 - D7). A positive value indicates motion to the right; A X0~X7 negative value indicates motion to the left. Bit 0=LSB. Y data (D0 - D7). A positive value indicates device motion upward; A Y0~Y7 negative value indicates motion downward. Bit 0=LSB. Z-wheel motion data (D0 - D7). A positive value indicates device Z0~Z7 motion downward; a negative value indicates motion upward. The Z0Z7 limit value is ±7. Bit 0=LSB. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 9 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 7. Mouse Mode Selection The Set Sampling Rate command is used to set the device operating modes. Whenever the mouse received command 'FF', it will reset to standard mode (2D3B) mode. After power-on reset is initiated, the mouse is set to standard PS/2 mode. The Device ID is available through the PS/2 Read Device Type (0xF2) command. For a device in standard 2D mode, the device will report an ID of 0x00. For a device in standard 3D mode, the device will report an ID of 0x03. Mode Standard 2D mode (2D3B) Standard 3D mode (3D3B) Device ID 0x00 0x03 ● Standard 3D Mouse (3D3B) Command Sequence After Reset, the device will be in standard 2D mode. By sending the Set Sampling Rate command series as follows, the device is set to standard 3D mode. Command F3 C8 F3 64 F3 50 F2 Response FA FA FA FA FA FA FA, 03 Notice that the Set Sampling Rate commands are valid, and the device report rate will be the value of the last command; that is, 0x50 after this series of commands. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 10 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 8. PS/2 Data Transmission 8.1 Mouse Send Data Out to Host When the mouse is ready to transmit data, it must first check for mouse “inhibit” or system “request to send” status on clock and data lines. If CLK is low (inhibit status), data shall be continuously updated in the mouse and no transmissions shall be started. If CLK is high and DATA is low (request-to-send), data is updated. Data is received from the system and no transmission are started by the PS/2 Mouse until CLK and DATA both high. If CLK and DATA are both high, the transmission is ready. DATA is valid prior to the falling edge of CLK and beyond the rising edge of CLK. During transmission, The PS/2 Mouse check for line contention by checking for an inactive level on CLK at intervals not to exceed 100 microseconds. Contention occurs when the system lowers CLK to inhibit the PS/2 Mouse output after PS/2 Mouse has started a transmission. If this occurs prior to the rising edge of the tenth clock (parity bit), The PS/2 Mouse internally store the data package in its buffer and return DATA and CLK to an active level. If the contention does not occur by the tenth clock, the transmission is complete. Following a transmission, the system can inhibit the PS/2 Mouse by holding CLK low until it can service the input or until the system receives a request to send a response if necessary. Tsca 1st CLK 2nd CLK 10 th CLK 11th CLK CLK ……… Tsdc Tsci Tscd DATA Tpi ……… Start bit ……… … Bit0 - Bit7 Parity bit Stop bit Figure 9. Mouse send data out to host 8.2 Mouse Receive Data from Host System first check to see if the PS/2 Mouse is transmitting data. If the PS/2 Mouse is transmitting, the system can override the output forcing CLK to an inactive level prior to the tenth clock. If the PS/2 Mouse transmission is beyond the tenth clock, the system receives the data. If the PS/2 Mouse is not transmitting or if the system chooses to override the output, the system force CLK to an inactive level for a period of not less than 100 microseconds while preparing for output. When the system is ready to output “0” start bit, it allows CLK to go to active level. If “request-to-send” is detected, the PS/2 Mouse clocks in 11 bits. Following the tenth clock, the PS/2 Mouse checks for an active level on the DATA line, and if found, force DATA low (line control bit), and clock once more. If occurs framing error, the PS/2 Mouse continue to clock until DATA is high, then clock the line control bit and request a resend. For each system command or data transmission to the PS/2 Mouse that requires a response, the system must wait for the PS/2 Mouse to response before sending its next output. Tmca CLK 1 st CLK Inhibit 2 nd CLK 9 th CLK 10 th CLK 11 th CLK …… Tmdc DATA Tmci Tmlc ……… Start bit Bit0 - Bit7 … … Parity bit Stop bit Line control bit Figure 10. Mouse Receive Data from Host All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 11 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 9. Referencing Application Circuit 9.1 PAW3402 with Mechanical Encoder Input *Y1 OPEN U1 *R3 OPEN VDD_5V *1 BL R1 D1 1 LED 2 + *C4 OPEN 3 4 VDD_5V R6 VDD_5V_10R 5 10 ohm 6 C1 VDD_5V_10R NC NC BL Z1 LED Z2 BM OSC_RES VSS BR VDD5V DATA VREF CLOCK *14 ENSW1 12 11 Z2 10 BM 9 BR + COM C5 SHORT 7 R5 SHORT PAW3402 JP1 0.1uF 10uF R4 10uF C2 + 8 C3 0.1uF VDD_5V Z1 C6 C7 27pF 27pF 1 VCC 2 GND 3 DATA 4 CLK Note: 1. *C4 , *R3 and *Y1 is left for PAW3502 with USB interface 2. PS/2 connector JP1 is suggested to has the pin sequence like this: VCC, GND, DATA, CLK. 3. R4, R5, C6, C7 are for EMC immunity Warning: If PCBA has dual layout for PAW3402 and PAW3502, please DO NOT mount PAW3402 in PAW3502's pin pads *1 and *14 Figure 11. Application Circuit for PAW3402 (Mechanical Encoder Input) 9.2 PAW3412 with Optical Encoder Input VDD_5V_10R VDD_5V R1 *1 BL1 D1 1 LED + *C4 2 OPEN 3 4 VDD_5V R6 VDD_5V_10R 10 ohm 5 6 C1 NC BL Z1 LED Z2 OSC_RES BM VSS BR VDD5V VREF DATA CLOCK C3 + 0.1uF 2 NC PAW3412 10uF 12 Z1 11 Z2 U2 D2 IR *14 PT 10 BM1 9 BR1 R7 * R8 * 8 R4 SHORT 7 R5 SHORT C6 C7 VDD_5V 1 OPEN 3 U1 *R3 *Y1 OPEN VCC JP1 1 GND 2 DATA 3 CLK 4 R9 * C5 C2 + 27pF 27pF 0.1uF 10uF Note: 1. *C4 , *R3 and *Y1 is left for PAW3502 with USB interface 2. PS/2 connector JP1 is suggested to has the pin sequence like this: VCC, GND, DATA, CLK. 3. R4, R5, C6, C7 are for EMC immunity 4. For resistor value selection, refer to high or low input level of Z1 and Z2 in the D.C. Electrical Characteristics table. The recommended value for R7 is 470ohm. The recommended value for R8/R9 is 5.1Kohm. Warning: If PCBA has dual layout for PAW3412 and PAW3502, please DO NOT mount PAW3412 in PAW3502's pin pads *1 and *14 Figure 12. Application Circuit for PAW3412 (Optical Encoder Input) All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 12 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 10. Recommended Value for R1 Radiometric intensity of LED Bin limits (mW/Sr at 20mA) LED Bin Grade Min. Typ. Max. N 14.7 - 17.7 P 17.7 - 21.2 Q 21.2 Note: Tolerance for each bin will be ± 15% 25.4 R1 value (ohm), VDD=5.0V LED Bin Grade Min. Typ. Max. N 43 56 - P 43 56 - Q 43 56 - 11. Z-axis Waveform Figure 13. Z-axis Waveform All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 13 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 12. Package Information 12.1 Package Outline Drawing 12 11 10 9 8 7 1 2 3 4 5 6 11.68 0.460 10.16 0.400 3.20 0.126 1.02 0.040 1.42 0.056 5.08 0.200 0.254 0.010 0.457 0.018 1.778 0.070 Max. 12 6.223 0.245 4.826 0.190 1 2 14.22 +/- 0.2 0.560 +/-0.0079 5.461 0.215 4.064 0.160 3 4 5 6 5.080 0.200 NOTES: 4.55 0.179 12 11 10 9 8 1. All dimensions in MM/INCH. 2. Dimensions tolerance: +/- 0.10mm 3. Maxmumflash: +0.2mm 7 5.56 0.2189 0.80 0.031 Figure 14. Package Outline Drawing All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 14 V1.0, Feb. 2008 PixArt Imaging Inc. PAW3402 / PAW3412 PS/2 Optical Mouse SOC 12.2 Recommended PCB Mechanical Cutouts and Spacing 16.942 0.667 4.064 0.160 1.778 0.070 1 2 3 4 5 9.068 0.357 12.877 0.507 6 7.544 0.297 10.221 0.402 6.985 0.275 8.89 0.35 1.194 0.047 0.711 0.028 12 11 10 9 8 7 27.94 1.100 0.711 0.028 3.251 0.128 All Dimension : mm/inch Back Side Figure 15. Recommended PCB Mechanical Cutouts and Spacing 13. Update History Version V0.1 Update Creation, Preliminary 1st version Date 02/01/2008 Note: The Part No. of the Mouse Product with Prefix "PAN" shall NOT be made, sold, offered to sell, imported or used in or into USA, Canada, Japan and EU. For "PAN", PixArt has only gained territory-limited patent license from Avago. Avago reserve right to take legal action against our customers who fails to comply the above term. PLEASE NOTE THAT PixArt will NOT defend, indemnify, or provide any assistance to our customers who fail to comply the term. IF YOU DO NOT AGREE THE TERM, PIXART WILL NOT DELIVER "PAN" PRODUCTS TO YOU. All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. PixArt Imaging Inc. E-mail: [email protected] 15 V1.0, Feb. 2008