From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a61f76f598b94808 X-Google-Attributes: gid1164f8,public From: Fred Kleinsorge Subject: Re: Ode to the DEC Round Mouse Date: 1998/10/12 Message-ID: <3622306E.6B4F7244@star.enet.dec_nospam.com>#1/1 X-Deja-AN: 400385008 Content-Transfer-Encoding: 7bit References: <3611B65F.41C6@dasher.wustl.edu> Content-Type: text/plain; charset=us-ascii Organization: OpenVMS Engineering Mime-Version: 1.0 Newsgroups: comp.sys.dec Michael Moroney wrote: > > For anyone imclined to try "hacking" the mouse, the pinout is: > > 1 GND > 2 TX DATA > 3 RX DATA > 4 -12V > 5 +5V > other pins NC > > It's 4800 bps, 1 start bit, 1 stop bit, odd parity. > It has 2 modes, polled and non-polled. It accepts 1 byte commands to > switch modes, poll it or reset it. I believe "T" resets it, > "D", "P", "R", "S", "s" do something but I don't know what. 1 GND 2 TXD 3 RXD 4 -12v 5 +5v 6 Not Used 7 Device Present (shorted to pin 1) Shell - protective ground Power: +5v +/- 5% at < 150 mA -8v to -13v at < 20 mA Signals: RS-232 voltage-level-compatable 4800 baud, 1 stop bit. odd parity. parity ignored on incomming data (it also ignores bit 7). 7-pin mico-DIN (male). Pin out (+ == connector key): + 5 6 7 3 4 +1 2+ Commands: R Select incremental stream mode D Select prompt mode P Request mouse position (also enters prompt mode) T Self tes, & identify Z xx Reserved (test functions) Data format: 7 6 5 4 3 2 1 0 ------------------------------------- 1 0 0 sx sy L M R Byte 1 0 x6 x5 x4 x3 x2 x1 x0 Byte 2 0 y6 y5 y4 y3 y2 y1 y0 Byte 3 Bit 7, byte 1 - Phasing. Bit 7 always clear for byte 2 & 3 Byte DATA bits 5 & 6 always 0 sx, sy sign bits. 1= positive, 0 = negative L, M, R - button bits, 1 = depressed X6-X0 - X displacement Y6-Y0 - Y displacement Self test, and power up: 7 6 5 4 3 2 1 0 ------------------------------------- 1 0 1 0 r3 r2 r1 r0 Byte 1 0 m2 m1 m0 0 0 1 0 Byte 2 0 e6 e5 e4 e3 e2 e1 e0 Byte 3 0 0 0 0 0 L M R Byte 4 Byte 1, bit 7 always set. Byte 1 bit 6 always clear, bit 5 always set -- MOUSE connected. R3-R0 - revision M2-M0 - Maufacturer location code E6-E0 - Error code L, M, R - If byte 3 is "=" (0x3d) - button error, mask determines which button), if byte 3 is > 0x20 other error, if byte 3 < 0x20 no error, LMR are current button state.