Penguin

Differences between current version and previous revision of mouse(4).

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Monday, December 8, 2003 11:25:41 am by JohnMcPherson
Older page: version 2 Last edited on Monday, December 8, 2003 11:24:39 am by JohnMcPherson Revert
@@ -11,14 +11,14 @@
 The pinout of the usual 9 pin plug as used for serial mice is: 
  
  
  
-|pin|name|used for|  
-|2|RX|Data|  
-|3|TX|-12 V, Imax = 10 mA|  
-|4|DTR|+12 V, Imax = 10 mA|  
-|7|RTS|+12 V, Imax = 10 mA|  
-|5|GND|Ground|  
+|pin|name|used for  
+|2|RX|Data  
+|3|TX|-12 V, Imax = 10 mA  
+|4|DTR|+12 V, Imax = 10 mA  
+|7|RTS|+12 V, Imax = 10 mA  
+|5|GND|Ground 
  
  
 This is the specification, in fact 9 V suffices with most mice. 
  
@@ -27,13 +27,13 @@
 The relative mouse movement is sent as ''dx'' (positive means right) and ''dy'' (positive means down). Various mice can operate at different speeds. To select speeds, cycle through the speeds 9600, 4800, 2400 and 1200 bit/s, each time writing the two characters from the table below and waiting 0.1 seconds. The following table shows available speeds and the strings that select them: 
  
  
  
-|bit/s|string|  
-|9600|*q|  
-|4800|*p|  
-|2400|*o|  
-|1200|*n|  
+|bit/s|string  
+|9600|*q  
+|4800|*p  
+|2400|*o  
+|1200|*n 
  
  
 The first byte of a data packet can be used to synchronisation purposes. 
  
@@ -41,12 +41,12 @@
 The __Microsoft__ protocol uses 1 start bit, 7 data bits, no parity and one stop bit at the speed of 1200 bits/sec. Data is sent to RxD in 3-byte packets. The ''dx'' and ''dy'' movements are sent as two's-complement, ''lb'' (''rb'') are set when the left (right) button is pressed: 
  
  
  
-|byte|d6|d5|d4|d3|d2|d1|d0|  
-|1|1|lb|rb|dy7|dy6|dx7|dx6|  
-|2||dx5|dx4|dx3|dx2|dx1|dx0|  
-|3||dy5|dy4|dy3|dy2|dy1|dy0|  
+|byte|d6|d5|d4|d3|d2|d1|d0  
+|1|1|lb|rb|dy7|dy6|dx7|dx6  
+|2||dx5|dx4|dx3|dx2|dx1|dx0  
+|3||dy5|dy4|dy3|dy2|dy1|dy0 
  
  
 !"3-button Microsoft protocol" 
 Original Microsoft mice only have two buttons. However, there are some three button mice which also use the Microsoft protocol. Pressing or releasing the middle button is reported by sending a packet with zero movement and no buttons pressed. (Thus, unlike for the other two buttons, the status of the middle button is not reported in each packet.) 
@@ -58,14 +58,14 @@
 The __Mousesystems__ protocol uses 1 start bit, 8 data bits, no parity and two stop bits at the speed of 1200 bits/sec. Data is sent to RxD in 5-byte packets. ''dx'' is sent as the sum of the two two's-complement values, ''dy'' is send as negated sum of the two two's-complement values. ''lb'' (''mb'', ''rb'') are cleared when the left (middle, right) button is pressed: 
  
  
  
-|byte|d7|d6|d5|d4|d3|d2|d1|d0|  
-|1|1|||||lb|mb|rb|  
-|2||dxa6|dxa5|dxa4|dxa3|dxa2|dxa1|dxa0|  
-|3||dya6|dya5|dya4|dya3|dya2|dya1|dya0|  
-|4||dxb6|dxb5|dxb4|dxb3|dxb2|dxb1|dxb0|  
-|5||dyb6|dyb5|dyb4|dyb3|dyb2|dyb1|dyb0|  
+|byte|d7|d6|d5|d4|d3|d2|d1|d0  
+|1|1|||||lb|mb|rb  
+|2||dxa6|dxa5|dxa4|dxa3|dxa2|dxa1|dxa0  
+|3||dya6|dya5|dya4|dya3|dya2|dya1|dya0  
+|4||dxb6|dxb5|dxb4|dxb3|dxb2|dxb1|dxb0  
+|5||dyb6|dyb5|dyb4|dyb3|dyb2|dyb1|dyb0 
  
  
 Bytes 4 and 5 describe the change that occurred since bytes 2 and 3 were transmitted. 
  
@@ -76,12 +76,12 @@
 The __MM__ protocol uses 1 start bit, 8 data bits, odd parity and one stop bit at the speed of 1200 bits/sec. Data is sent to RxD in 3-byte packets. ''dx'' and ''dy'' are sent as single signed values, the sign bit indicating a negative value. ''lb'' (''mb'', ''rb'') are set when the left (middle, right) button is pressed: 
  
  
  
-|byte|d7|d6|d5|d4|d3|d2|d1|d0|  
-|1|1|||dxs|dys|lb|mb|rb|  
-|2||dx6|dx5|dx4|dx3|dx2|dx1|dx0|  
-|3||dy6|dy5|dy4|dy3|dy2|dy1|dy0|  
+|byte|d7|d6|d5|d4|d3|d2|d1|d0  
+|1|1|||dxs|dys|lb|mb|rb  
+|2||dx6|dx5|dx4|dx3|dx2|dx1|dx0  
+|3||dy6|dy5|dy4|dy3|dy2|dy1|dy0 
  
  
 !!FILES 
  
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.