PAN3401 PAN3401 PS/2 OPTICAL MOUSE SINGLE CHIP General Description The PAN3401 is a CMOS process optical mouse sensor single chip 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 Power Supply and IBM® PS/2 mouse Precise optical motion estimation technology Complete 2-D motion sensor No mechanical parts Accurate motion estimation over a wide range of surfaces Interface PS/2 Optical Lens 1:1 Speed 28 inches/sec Acceleration High speed motion detection up to 28 inches/sec Resolution High resolution up to 1000 CPI Wide operating supply range 4.4V ~ 5.5V Frame Rate Power saving mode during times of no movement Operating Support three buttons (R, M, L) and three Current axes (X, Y, Z) Package Z axis support mechanical input 20g 400/800/1000 CPI 3000 frames/sec 12 mA @Mouse moving (Normal) 5 mA @Mouse not moving (Sleep) Shrunk DIP12 Internal ± 10% accurate oscillator, external crystal-less Ordering Information Part Number CPI PAN3401DK 800 PAN3401DK-TD 400 PAN3401DK-TJ 1000 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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 scroller input, internal pull-down 50K ohm 12 Z1 IN Z axis, support mechanical scroller input, internal pull-down 50K ohm 1.2 Pin Assignment 1 12 2 11 3 10 4 9 5 8 6 7 +Y LB RB 1 12 6 7 +X 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 2. Block Diagram and Operation BM BR PS/2 INTERFACE CLOCK DATA CMOS IMAGE SENSOR DIGITAL SIGNAL PROCESSOR PS/2 MOUSE CONTROLLER VDD 5V POWER AND POWER CONTROL BL BUTTON POWER ON RESET VOLTAGE REGULATOR Z1 Z2 Z-AXIS COUNTER WHEEL LED DRIVE DEBOUNCE LED INTERNAL OSCILLATOR VSS VOLTAGE REFERENCE VREF OSC_RES Figure 3. Block Diagram The PAN3401 is a CMOS process optical mouse sensor single chip 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 400/800/1000 counts per inch (CPI) and the rate of motion up to 28 inches per second. It is also featured crystal-less (Internal ± 10% accurate oscillator) to save customer’s BOM cost. The PAN3401 includes PS/2 interface so that no mouse controller is needed to interface through PS/2. The PAN3401 can receive command and echo status or data format which are compatible with IBM® PS/2 mouse and Microsoft® 3D PS/2 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] 3 V1.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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 2.4 2.5 mm 800 1000 CPI 20 g 3.2 Recommend Operating Condition Symbol Parameter Min. TA Operating Temperature 0 VDD Power Supply Voltage 4.4 VN Supply Noise Z Distance from Lens Reference Plane to Surface R Resolution A Acceleration FR Frame Rate S Speed 2.3 5.0 3000 0 Notes Peak to peak within 0 - 80 MHz frames/s 28 28 inches/sec @400CPI 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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 - Notes us us us us Refer to Figure 7,8 us us us 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 - 12 - mA - 5 - mA - 50 - Kohm - 50 - Kohm Notes 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= 10mA IOH Output Pull-up Current - 700 - uA VOH = 2.0V - - 360 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 4. Z and 2D/3D Assembly Package Lid Lens Z OBJECT SURFACE Figure 4. Distance from Lens Reference Plane to Surface ESD LENS RING BASE PLATE Figure 5. 2D Assembly 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip Figure 6. 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 5. PS/2 Command Set Description There are 16 valid commands that transmit between the system and The PAN3401. All other commands will cause an FE (Resend) response from the PAN3401. A second invalid command will cause an FC (error) response from the PAN3401. 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 6. Data Format The PAN3401 supports 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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 PAN3401 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 PAN3401 checks 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 PAN3401 output after the PAN3401 has started a transmission. If this occurs prior to the rising edge of the tenth clock (parity bit), the PAN3401 internally stores 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 PAN3401 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 2 nd CLK 10 th CLK 11 th CLK CLK ……… Tsdc Tsci Tscd DATA Tpi ……… Start bit ……… … Bit0 - Bit7 Parity bit Stop bit Figure 7. Mouse Send Data Out to Host 8.2 Mouse Receive Data from Host System first check to see if the PAN3401 is transmitting data. If the PAN3401 is transmitting, the system can override the output forcing CLK to an inactive level prior to the tenth clock. If the PAN3401 transmission is beyond the tenth clock, the system receives the data. If the PAN3401 is not transmitting or if the system chooses to override the output, the system forces 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 PAN3401 clocks in 11 bits. Following the tenth clock, the PAN3401 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 PAN3401 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 PAN3401 that requires a response, the system must wait for the PAN3401 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 …… Tmci Tmdc DATA Tmlc ……… Start bit Bit0 - Bit7 … … Parity bit Stop bit Line control bit Figure 8. 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 9. Referencing Application Circuit *Y1 OPEN U1 *R3 OPEN VDD_5V *1 BL R1 R6 LED *R2 OPEN *C4 OPEN 2 + VDD_5V D1 1 3 Z1 LED Z2 VREF DATA CLOCK C3 + 0.1uF BM BR VDD5V 6 C1 NC BL VSS 5 10 ohm NC OSC_RES 4 VDD_5V_10R VDD_5V_10R PAN3401 1uF *14 ENSW1 12 VDD_5V Z1 11 Z2 10 BM 9 BR COM C5 C2 + 0.1uF 8 R4 SHORT 7 R5 SHORT C6 C7 27pF 27pF 10uF JP1 1 VCC 2 GND 3 DATA 4 CLK Note: 1. *R2 is left for PAN3401 RC oscillator 2. *C4 , *R3 and *Y1 is left for PAN3502 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 PAN3401 and PAN3502, please DON'T mount PAN3401 in PAN3502's pin pads *1 and *14 Figure 9. Application Circuit for PAN3401 10. Recommended Value for R1 z 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 - 25.4 Note: Tolerance for each bin will be ± 15% z R1 value (ohm), VDD = 5.0V (refer to Figure 9) LED Bin Grade Min. Typ. Max. N 43 56 - P 43 56 - Q 43 56 - 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 11. Z-axis Waveform Z2 Z1 State 2 0 +1 1 3 +1 +1 2 0 +1 +1 Z2 Z1 State 1 0 -1 2 3 -1 -1 1 -1 0 -1 Z-axis input STATE Z2 Z1 0 0 0 1 0 1 2 1 0 3 1 1 Figure 10. 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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 11. 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.3, Mar. 2008 PixArt Imaging Inc. PAN3401 PS/2 Optical Mouse Single Chip 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 12. Recommended PCB Mechanical Cutouts and Spacing 13. Update History Version V1.0 V1.1 Update Creation, Preliminary 1st version Modify Referencing Application Circuit Date 09/14/2006 12/29/2006 V1.2 Modify Reference Application Circuit 1. Modify the reference application circuit 2. Modify the power supply range 07/26/2007 V1.3 03/24/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.3, Mar. 2008