Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
From Wikipedia, the free encyclopedia Jump to: navigation, search "PS/2 Keyboard" redirects here. For the physical keyboards normally supplied with IBM PS/2 computers (among other hardware), see Model M keyboard.
PS/2 connector
The color-coded PS/2 connection ports (purple for keyboards and green for mice) Type Keyboard and computer mouse data connector Production history Designer Designed Superseded IBM 1987 DIN connector and DE-9 connector
Superseded by Universal Serial Bus General specifications Pins Connector 6 Mini-DIN Data Data signal Serial data at 10 to 16 kHz with 1 stop bit, 1 start bit, 1 parity bit (odd)
Pin out
Female connector from the front Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 +DATA Not connected GND Vcc +CLK Not connected Data Not connected* Ground +5 V DC at 275 mA Clock Not connected**
* On some computers mouse data for splitter cable. ** On some computers mouse clock for splitter cable.
The PS/2 connector is a 6-pin Mini-DIN connector used for connecting some keyboards and mice to a PC compatible computer system. Its name comes from the IBM Personal System/2 series of personal computers, with which it was introduced in 1987. The PS/2 mouse connector generally replaced the older DE-9 RS-232 "serial mouse" connector, while the PS/2 keyboard connector replaced the larger 5-pin/180 DIN connector used in the IBM PC/AT design. The PS/2 designs on keyboard and mouse interfaces are electrically similar and employ the same communication protocol. However, a given system's keyboard and mouse port may not be interchangeable since the two devices use a different set of commands.
Contents
[hide]
1 Port availability
5 See also
Purple Keyboard Green Mouse Wiring inside keyboard cable varies widely. Here are some more common color codes, but the reader is cautioned that the only reliable method of determining color assignment is to confirm by measuring continuity to the connector. Description Common Alternate Alternate Alternate Alternate Alternate +CLK Green Blue White Yellow White Blue Data White Yellow Green Red Green Yellow GND Yellow Black Orange Gray Black White Vcc Red Red Blue Brown Red Orange
[edit] Hotplugging
PS/2 ports are designed to connect the digital I/O lines of the microcontroller in the external device directly to the digital lines of the microcontroller on the motherboard. They are not designed to be hot swappable. Hot swapping PS/2 devices usually does not cause damage due to the fact that more modern microcontrollers tend to have more robust I/O lines built into them which are harder to damage than those of older controllers; however, hot swapping can still potentially cause damage on older machines, or machines with less robust port implementations. If they are hot swapped, the devices must be similar enough that the driver running on the host system recognizes, and can be used with the new device. Otherwise, the new device will not function properly. While this is seldom an issue with standard keyboard devices, the host system rarely recognizes the new device attached to the PS/2 mouse port. In practice most keyboards can be hot swapped but this should be avoided.
[edit] Durability
PS/2 connectors are not designed to be plugged in and out very often, which can easily lead to bent or broken pins. PS/2 connectors only insert in one direction and must be rotated correctly before attempting connection. Most but not all connectors include an arrow or flat section which is usually aligned to the right or top of the jack before being plugged in. The exact direction may vary on older or non-ATX computers and care should be taken to avoid damage or bent pins when connecting devices. This issue is slightly alleviated in modern times with the advent of the PS/2 to USB adapter. Users can just leave the PS/2 plugged into the USB at all times and not risk damaging the pins this way.
cheap. However, a rare side effect of this design is that a malfunctioning device can cause the controller to become confused, resulting in "both" devices acting erratically. The resulting problems can be difficult to troubleshoot (e.g. a bad mouse can cause problems that appear to be the fault of the keyboard). A way to isolate the problem is to use a USB keyboard or mouse to determine which of the devices is at fault. A USB to PS/2 adapter can also be used to connect either of the devices to a USB port but the result can be undetermined because PS/2 and USB ports can use different voltages. Quality USB to PS/2 adapters have an integrated circuit that compensates the PS/2 USB port voltage differences. Due to this difference it is recommend to avoid cheap adapters or try using a USB Keyboard or Mouse when troubleshooting PS/2 related errors.