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
Bit
0
1
2
3
Symbol Description
BL
BR
BM
1
1 = Left button pressed
1 = Right button pressed
Always = 0, reserved for middle button
Always = 1, reserved for future use
1
4
Xs
X data sign, 1 = negative
5
Ys
Y data sign, 1 = negative
6
7
XOV
YOV
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.
Y data (D0 - D7), A positive value indicates device motion upward; a
negative value indicates motion downward. Bit 0 = LSB.
2
3
0-7
0-7
X0 ~ X7
Y0 ~ Y7
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
Bit
0
1
2
3
Symbol Description
BL
BR
BM
1
1= Left button pressed
1 = Right button pressed
1= Middle button pressed
Always = 1, reserved for future use
1
4
Xs
X data sign, 1 = negative
5
Ys
Y data sign, 1 = negative
6
7
XOV
YOV
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.
Y data (D0 - D7). A positive value indicates device motion upward; A
negative value indicates motion downward. Bit 0 = LSB.
Z-wheel motion data (D0 - D7). A positive value indicates device
2
3
0-7
0-7
X0 ~ X7
Y0 ~ Y7
4
0-7
Z0 ~ Z7 motion downward; a negative value indicates motion upward. The Z0-
Z7 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.
9
E-mail: fae_service@pixart.com.tw
V1.3, Mar. 2008