PIXART PAW3401

PAW3401
PAW3401 PS/2 OPTICAL MOUSE SENSOR
General Description
The PAW3401 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
‰
‰
‰
‰
‰
‰
Wide operating supply range
4.5V ~ 5.5V
Interface
PS/2
Optical Lens
1:1
System Clock
24 MHz
Speed
High speed motion detection up to 28
inches/sec
Acceleration
High resolution up to 1000 CPI
Resolution
Power saving mode during times of no
movement
Frame Rate
Support three buttons (R, M, L) and three
Operating
axes (X, Y, Z)
Current
Z axis support mechanical input
Internal ± 10% accurate oscillator, external Package
crystal-less
28 inches/sec
20g
400/800/1000 CPI
3000 frames/sec
12 mA @Mouse moving (Normal)
5 mA @Mouse not moving (Sleep)
Shrunk DIP12
Ordering Information
Part Number
CPI
PAW3401DK
800
PAW3401DK-TD
400
PAW3401DK-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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
1. Pin Configuration
1.1 Pin Description
Pin # Name
Type
Definition
1
BL
IN
Button left key input, normal pull-high (50k), 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, normal pull-high (50k), press connect to low
10
BM
IN
Button middle key input, normal pull-high (50k), press connect to low
11
Z2
IN
Z axis, support mechanical scroller input
12
Z1
IN
Z axis, support mechanical scroller input
1.2 Pin Assignment
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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
2. Block Diagram and Operation
Figure 3. Block diagram
The PAW3401 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
PAW3401 includes PS/2 interface so that no mouse controller is needed to interface through PS/2. The
PAW3401 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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
2. Specifications
2.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
2.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
R
Resolution
A
Acceleration
FCLK
Clock Frequency
FR
Frame Rate
S
Speed
2.3
0
5.0
24
MHz
3000
frames/s
28
Notes
Peak to peak within 0 - 100 MHz
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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
2.3 AC Operating Condition
Electrical characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 5.0 V, FCLK =
24 MHz
Symbol Parameters
Tmca
Tmci
Tmdc
Tsca
Tsci
Tsdc
Tscd
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
Min. Typ. Max. Unit
-
40
40
14
40
40
12
28
-
us
us
us
us Refer to Figure 6,7
us
us
us
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]
Notes
5
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
2.4 DC Electrical Characteristics
Electrical characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 5.0 V, FCLK =
24 MHz
Symbol Parameter
Type: PWR
Supply Current
IDD
Mouse Moving (normal)
Supply Current
IDD
Mouse not Moving (sleep1)
Type: BL, BM, BR, B4, B5
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, B4, B5, Z1, Z2
VIH
Input High Voltage
2.0
-
-
V
VIL
Input Low Voltage
-
-
0.8
V
Type: CLOCK, DATA
RPH
Internal Pull-up Resistance
-
5
-
Kohm
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]
6
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
3. Z and 2D Assembly
Package Lid
Lens
Z
OBJECT SURFACE
Figure 4. Distance from Lens Reference Plane to Surface
+X
+Y
ESD LENS RING
CLIP
PLASTIC SPRING
BASE PLATE
LED
SURFACE IS 0 REF.
PCB
SENSOR
BASE PLATE ALIGNMENT POST
Unit: mm
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]
7
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
4. PS/2 Command Set Description
There are 16 valid commands that transmit between the system and The PAW3401. All other commands will
cause an FE (Resend) response from the PAW3401. A second invalid command will cause an FC (error)
response from the PAW3401.
4.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
4.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
4.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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
4.4 Set Resolution (E8, XX)
Second Byte XX
00
01
02
03
Resolution (counts/mm)
1
2
4
8
4.5 Set Scaling 2:1 (E7)
Input
0
1
2
3
4
5
N (>=6)
Output
0
1
1
3
6
9
2.0 * N
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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
5. Data Format
The PAW3401 supports three different PS/2-compatible packet formats, depending upon the following
operational modes:
•
•
Standard 2D mode (2D3B)
Standard 3D mode (3D3B)
5.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
2
Bit
0
1
2
3
4
5
6
7
0-7
3
0-7
Symbol
BL
BR
BM
1
Xs
Ys
XOV
YOV
X0 ~ X7
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
negative value indicates motion to the left. Bit 0=LSB.
Y0 ~ Y7 Y data (D0 - D7), A positive value indicates device motion upward; a
negative value indicates motion downward. Bit 0=LSB.
5.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
2
Bit
0
1
2
3
4
5
6
7
0-7
3
0-7
4
0-7
Symbol
BL
BR
BM
1
Xs
Ys
XOV
YOV
X0 ~ X7
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
negative value indicates motion to the left. Bit 0 = LSB.
Y0 ~ Y7 Y data (D0 - D7). A positive value indicates device motion upward; A
negative value indicates motion downward. Bit 0 = LSB.
Z0 ~ Z7 Z-wheel motion data (D0 - D7). A positive value indicates device
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]
10
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
6. 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
6.1 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]
11
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
7. PS/2 Data Transmission
7.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 PAW3401 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 PAW3401 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 PAW3401 output after the PAW3401 has started a transmission. If this occurs prior to
the rising edge of the tenth clock (parity bit), the PAW3401 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 PAW3401 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
11th
CLK
CLK
………
Tsdc
Tsci
Tscd
DATA
Tpi
………
Start bit
………
…
Parity bit
Bit0 - Bit7
Stop bit
Figure 6. Mouse send data out to host
7.2 Mouse Receive Data from Host
System first check to see if the PAW3401 is transmitting data. If the PAW3401 is transmitting, the system can
override the output forcing CLK to an inactive level prior to the tenth clock. If the PAW3401 transmission is
beyond the tenth clock, the system receives the data. If the PAW3401 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 PAW3401 clocks in 11 bits. Following the tenth clock, the PAW3401
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 PAW3401 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 PAW3401 that requires a response, the system must wait
for the PAW3401 to response before sending its next output.
Tmca
CLK
1 st
CLK
Inhibit
2 nd
CLK
10 th
CLK
9 th
CLK
11 th
CLK
……
Tmci
Tmdc
DATA
Tmlc
………
Start bit
Bit0 - Bit7
…
…
Parity bit
Stop
bit
Line
control bit
Figure 7. 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]
12
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
6. Referencing Application Circuit
*Y1 ?Mhz
U1
VDD_5V
R1
D1
*R3
*1
BL
1
LED
*R2
+
*C4
2
3
1uF/?
4
VDD_5V
5
6
C1
NC
BL
Z1
LED
Z2
OSC_RES
BM
VSS
BR
VDD5V
VREF
DATA
CLOCK
C3
+
0.1uF
NC
PAW3401
1uF
*14
ENSW1
12
VDD_5V
Z1
11
Z2
10
BM
9
BR
COM
C2
C5
+
0.1uF 10uF
8
R4
0
7
R5
0
C6
C7
27pF
27pF
JP1
1
2
3
4
Note:
1. *R2 is left for 12 pin package
2. *C4 , *R3 and *Y1 is left for 14 pin package with USB interface
Figure 8. Application Circuit for PAW3401
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.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
7. Recommended Value for R1
z
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
Note: Tolerance for each bin will be ± 15%
-
25.4
R1 value (ohm), VDD = 5.0V (refer to Figure 8)
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]
14
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
8. 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 9. 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]
15
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
9. Package Information
9.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 10. 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]
16
V1.1, Dec. 2006
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
9.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 11. Recommended PCB Mechanical Cutouts and Spacing
10. Update History
Version
V1.0
V1.1
Update
Creation, Preliminary 1st version
Modify Referencing Application Circuit
Date
09/14/2006
12/29/2006
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]
17
V1.1, Dec. 2006