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
Bit
0
1
2
3
4
5
6
7
0-7
0-7
Symbol
BL
BR
BM
1
Xs
Ys
X
OV
Y
OV
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.
1
2
3
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
4
5
6
7
0-7
0-7
0-7
Symbol
BL
BR
BM
1
Xs
Ys
X
OV
Y
OV
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 Z0-
Z7 limit value is ±7. Bit 0=LSB.
1
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
.
9
V1.0, Feb. 2008
PixArt Imaging Inc.
E-mail:
fae_service@pixart.com.tw