Interfaces of the “mouse” type manipulators.

An input device of the mouse type transmits the information about its movements and pressing-releasing of buttons into the system. An ordinary construction has a free-wheeling massive rubberized ball, which transmits its rotation to two coordinate disks with photo-electric sensors – two open optocouplers (light-emitting diode – photodiode), into the optical channel of which a revolving disk with cuts enters. According to the interface with a computer there are three main types of mice: Bus Mouse, Serial Mouse and PS/2-Mouse. Nowadays mice with USB interface are available.
Bus Mouse is a version being used in the first mice. It contains sensors and buttons only; their signals are treated by a specialized board of the adapter. Multiport cards (СОМ-, LPT - and GAME-ports) on which the adapter of Bus Mouse is installed, are met rarely. The cable has 9 wires, the connector is of special type (see Fig. 1 and Table 1), although At first glance it resembles PS/2-Mouse connector.

Table 1. Bus Mouse connector

Contact
Signals
Contact
Signals
1
Vcc
6
Lb – left button
2
Xa – sensor X
7
Mb – middle button
3
Xb – sensor X
8
Rb – right button
4
Xa – sensor Y
9
GND
5
Xb – sensor Y
-
-

Fig. 1. Connector of Bus Mouse

Serial Mouse is a mouse with the serial interface connected via 25 or 9-pin connector of СОМ-port (Table. 2). It has the built-in microcontroller, which processes signals from coordinate sensors and buttons. Every event is coded by the binary message via RS-232C interface, but the power is supplied from the interface. A mouse with a serial interface – Serial Mouse – can be connected to any port in good condition. DB-9S-DB-25P or DR25S-DB-9P adapter connector can be used for concordance of the port and mouse connectors. An interrupt is required for the mouse, IRQ4 – for COM1 port, IRQ3 – for COM2 port. Hard binding of IRQ number to a port number is conditioned by properties of drivers. Every event – a movement of the mouse or pressing-releasing of a button is encoded by a binary massage via RS-232C interface. The asynchronous transmission is used; bipolar power supply is provided from the control lines of the interface (Table. 2).

Table 2. Connectors of Serial Mouse

Signal
Contact
-
-
DB-9
DB-25
Data
2
3
GND
5
7
+V (power supply)
4.7
4.20
-V (power supply)
3
9

Two versions of Serial Mouse – MS-Mouse and РС-Mouse (Mouse Systems Mouse) – require proper drivers; many mice have MS/PC switch. A mouse with a “strange” driver either does not answer or “jumps” mysteriously. These varieties use different formats of massages with identical speed 1200 bits per second, one stop-bit and the absence of parity checking. Microsoft-Mouse uses 7 data bits, and PC-Mouse – 8 bit. A mouse transmits a package at every change of the state – movement, pressing or releasing of a button. The package being transmitted by MS-Mouse consists of three bytes (Table 3). РС-Mouse transmits 5 bytes (Table 4). Here LB – Left Button, MB – Middle Button and RВ – Right Button mean the state of the left, middle and right buttons, Х17: 0] and Y[7: 0] are bits relative to the mouse movements from the moment of the previous massage via coordinates X and Y. Movement along the coordinate X to the right corresponds to positive values, but along the coordinate Y downward for MS-Mouse and upwards for РС-Mouse. Hence it is clear the chaotic cursor movements along the screen, if a driver does not correspond to the mouse type.

Table 3. Packet format of MS-Mouse.

Bits
D6
D5
D4
D3
D2
D1
D0
1st bit
1
LB
RB
Y7
Y6
Y7
Y6
2nd bit
0
X5
X4
X3
X2
X1
X0
3rd bit
0
Y5
Y4
Y3
Y2
Y1
Y0

Table 4. Packet format of РС-Mouse (Mouse Systems Mouse).

Bits
D7
D6
D5
D4
D3
D2
D1
D0
1-st bit
1
0
0
0
0
LB
MB
RB
2nd bit
X7
X6
X5
X4
X3
X2
X1
X0
3rd bit
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
4th bit
Coincides with the 2nd bit
5th bit
Coincides with the 3rd bit

PS/2-Mouse is a mouse, which appeared with computers PS/2. Its interface and 6-pin DIN mini-jack are analogical to the keyboard (Fig. 2). Adapter and connector of PS/2-Mouse are mounted on modern brand-namе system boards. The comptroller of such a mouse can be integrated with the comptroller of a keyboard or to occupy additional addresses in the input/output space. IRQI2 interrupt is used for PS/2-Mouse.

Fig. 2. Connector

Sometimes there are misunderstandings with interfaces of Serial Mouse and PS/2-Mouse. Although both of them are serial interface, but they have fundamental differences in levels of signals, method of synchronization, frequency and format of massages:
· The interface of PS/2 uses an unidirectional signal with TTL (transistor-transistor logic) levels, Power supply for the mouse is unidirectional with +5 V voltage relative to GND bus. Interface of RS-232C applied in Serial Mouse uses a bipolar signal (see Table 2) with trip levels +3 V and -3 V, and requires bipolar power supply.
· Synchronous interface of PS/2-Mouse uses two separate signal lines, one line – for data transmission, the other one – for signals of synchronization. Serial Mouse uses the asynchronous method of data transmission via one line. It is clear that these is no compatibility between these interfaces. Nevertheless, adapter connectors (passive) are produced and available for sale, which enable to choose the connection method of the mouse. They are designed only for universal (combo) mice, in which the built-in voltage comptroller is able to recognize what interface it was connected to, and to set a corresponding type of its output interface. Universal mice are not especially widespread; therefore, you can often hear about unsuccessful attempts to use such adapter connectors to ordinary Serial Mouse or PS/2-Mouse. Mice for Macintosh computers make an additional hash, which have a connector is akin to PS/2. However, these connectors are different, and the interface is fundamentally different. The trackball (ball) manipulator is a reverse mouse, the ball of which is rotated by fingers. Sometimes it is built in a keyboard.

By authority of М. Gook. Interfaces of PCs: reference book. SPb., Piter Kom,1999. www.neva.ru /mgook