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
Bit
0
1
2
3
4
5
6
7
0-7
0-7
Symbol
BL
BR
BM
1
Xs
Ys
X
OV
Y
OV
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.
2
3
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
Bit
0
1
2
3
4
5
6
7
0-7
0-7
0-7
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 Z0-
Z7 limit value is ±7. Bit 0 = LSB.
Symbol
BL
BR
BM
1
Xs
Ys
X
OV
Y
OV
X0 ~ X7
2
3
4
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission
.
10
V1.1, Dec. 2006
PixArt Imaging Inc.
E-mail:
fae_service@pixart.com.tw