please dont rip this site

Mouse IO


Communications Protocols

from J.E. Davis posted by Peter Tiang

  1. PC Mouse Systems
    Serial UART: 1200 baud, data=8,start=1,parity=none
    Mouse Protocol of Transmission
            bit:    7  6  5  4  3  2  1  0
    byte 1  (sync)  1  0  0  0  0  L  M  R      (0=depressed button)
    byte 2  (dX)    x7 x6 x5 x4 x3 x2 x1 x0     (bit 7 -> 0=pos,1=neg)
    byte 3  (dY)    y7 y6 y5 y4 y3 y2 y1 y0
    byte 4  (dX')   x7 x6 x5 x4 x3 x2 x1 x0
    byte 5  (dY')   y7 y6 y5 y4 y3 y2 y1 y0
    Notes:  - all bytes are two's complement binary
            - dX, dY  = relative moves after last transmission
            - dX',dY' = relative moves since dX, dY were transmitted
    
    
  2. Microsoft Mouse
    Serial UART: 1200 baud, data=7,stop=1,parity=none
    Mouse Protocol of Transmission (normal mode)
            bit:    7  6  5  4  3  2  1  0
    byte 1  (sync)  0  1  L  R  y7 y6 x7 x6    (1=depressed button)
    byte 2  (dX)    0  0 x5 x4 x3 x2 x1 x0     (MSB-> 0=pos,1=neg)
    byte 3  (dY)    0  0 y5 y4 y3 y2 y1 y0
    Notes:  - all moves bytes are two's complement binary
              (you must collect all bits together)
    

Wheel Motion Sensors

Mechanical mice use a Quadrature Encoder position sensor attached to a shaft that rubs against the ball.

Jinxs' 16F84 4 button directional controller pluges in place of an MS Mouse

See also:


file: /Techref/io/mouses.htm, 2KB, , updated: 2010/12/21 07:28, local time: 2012/2/7 00:11,
TOP NEW HELP FIND: 
38.107.179.230:LOG IN

 ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/io/mouses.htm"> Mouses</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 
THE T-SHIRT IS HERE!
The PICList shop now offers mugs, steins and...
T-Shirts!!!
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .