Serial mouse communication specifications

Communication specifications

Baud rate1200 bps
Start bit1
Data bit7
Parity bitNone
Stop bit1

Data format

1st byte1LEFTRIGHTY7Y6X7X6
2nd byte0X5X4X3X2X1X0
3rd byte0Y5Y4Y3Y2Y1Y0
LEFT, RIGHTButton state
0:OFF / 1:ON
X[7:0]Amount of movement in the X direction (-128 to +127)
Right direction is positive
Y[7:0]Amount of movement in Y direction (-128 to +127)
Downward direction is positive