Difference between revisions of "PS/2 interface"

From Deskthority wiki
Jump to navigation Jump to search
m (Additional category)
(Restructured; additional category; another terrible photo)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
  
 +
[[File:PS2 combined keyboard and mouse port.jpg|thumb|250px|Combined keyboard/mouse port on a notebook computer]]
 
[[File:PS2 converter sockets.jpg|thumb|250px|Colour-coded keyboard and mouse sockets on a Belkin [[converter]]]]
 
[[File:PS2 converter sockets.jpg|thumb|250px|Colour-coded keyboard and mouse sockets on a Belkin [[converter]]]]
  
The '''PS/2 interface''' is a serial keyboard and mouse interface developed by [[IBM]] for their PS/2 line of computers. The PS/2 keyboard connector uses the same keyboard protocol as the [[AT keyboard interface]], but uses a Mini-DIN 6 connector with four pins connected. Like the [[XT keyboard interface|XT]] and AT interfaces before it, the PS/2 interface is not hot-swappable, and connecting a keyboard to a running computer can cause older operating systems to hang.
+
The '''PS/2 interface''' is a serial keyboard and mouse interface developed by [[IBM]] for their PS/2 line of computers. The physical connector is a 6-pin mini-DIN, with four of the pins connected.
  
For many years, keyboard ports have been coloured mauve, and mouse sockets, green. Besides the modern colour-coding, PS/2 mouse and keyboard connections are visually identical, and unlike the contemporary [[Apple Desktop Bus]], the two sockets are not compatible. Connecting a keyboard into the mouse port, or vice versa, will traditionally not work; an IBM PS/2 computer will hang on boot with a cryptic number displayed on the screen if the keyboard is mistakenly connected to the mouse port. Some more modern laptops however feature a single PS/2 port that can be used by either type of device.
+
Computers generally came with two PS/2 ports, one for the keyboard, and the other for the mouse. The ports were separately marked, as computers required the correct device to be inserted into each socket. Connecting a keyboard into the mouse port, or vice versa, will traditionally not work; an IBM PS/2 computer will hang on boot with a cryptic number displayed on the screen if the keyboard is mistakenly connected to the mouse port. Contrast this with with [[Apple Desktop Bus]], which was a daisy chain bus that accepted devices in any order. Modern laptops however tend to feature a single PS/2 port that can be used by either type of device.
 +
 
 +
To avoid confusion in identifying the ports, the first version of the PC System Design Guide in 1997 specified that mouse and keyboard ports would be coloured purple and green (specifically, mauve and green) for keyboard and mouse respectively.
 +
 
 +
PS/2 ports are not hot-swappable, and connecting a keyboard or mouse to a running machine can cause older operating systems to hang.
 +
 
 +
==Keyboard connection==
 +
The PS/2 keyboard connection uses the same keyboard protocol as the [[AT keyboard interface]].
  
 
For desktop keyboards, the PS/2 interface has a number of advantages over the [[Universal Serial Bus|USB]] interface:
 
For desktop keyboards, the PS/2 interface has a number of advantages over the [[Universal Serial Bus|USB]] interface:
  
 
* PS/2 keyboards send commands directly to the host computer, unlike USB keyboards which must be polled for keypress events.
 
* PS/2 keyboards send commands directly to the host computer, unlike USB keyboards which must be polled for keypress events.
* Providing that the keyboard circuitry supports it, there is no limit to the number of keys which can be registered simultaneously over PS/2. The USB protocol is limited to 6 simultaneous keypresses, while PS/2 supports true [[Rollover, blocking and ghosting|N-key rollover]].
+
* Providing that the keyboard circuitry supports it, there is no limit to the number of keys which can be registered simultaneously over PS/2. Standard use of the USB protocol is limited to 6 simultaneous keypresses excluding modifiers ("6KRO"), while PS/2 supports true [[Rollover, blocking and ghosting|N-key rollover]].
 +
 
 +
==Mouse connection==
 +
For mice, IBM introduced a new protocol very similar to the AT interface. This replaced serial mice and older mouse connections.
  
 
[[Category:Keyboard terms]]
 
[[Category:Keyboard terms]]
 
[[Category:Pointing device terms]]
 
[[Category:Pointing device terms]]
 
[[Category:Keyboard protocols and interfaces]]
 
[[Category:Keyboard protocols and interfaces]]
 +
[[Category:Mouse protocols and interfaces]]

Revision as of 02:35, 20 November 2012

This article is a stub. You can help Deskthority by expanding it.

Combined keyboard/mouse port on a notebook computer
Colour-coded keyboard and mouse sockets on a Belkin converter

The PS/2 interface is a serial keyboard and mouse interface developed by IBM for their PS/2 line of computers. The physical connector is a 6-pin mini-DIN, with four of the pins connected.

Computers generally came with two PS/2 ports, one for the keyboard, and the other for the mouse. The ports were separately marked, as computers required the correct device to be inserted into each socket. Connecting a keyboard into the mouse port, or vice versa, will traditionally not work; an IBM PS/2 computer will hang on boot with a cryptic number displayed on the screen if the keyboard is mistakenly connected to the mouse port. Contrast this with with Apple Desktop Bus, which was a daisy chain bus that accepted devices in any order. Modern laptops however tend to feature a single PS/2 port that can be used by either type of device.

To avoid confusion in identifying the ports, the first version of the PC System Design Guide in 1997 specified that mouse and keyboard ports would be coloured purple and green (specifically, mauve and green) for keyboard and mouse respectively.

PS/2 ports are not hot-swappable, and connecting a keyboard or mouse to a running machine can cause older operating systems to hang.

Keyboard connection

The PS/2 keyboard connection uses the same keyboard protocol as the AT keyboard interface.

For desktop keyboards, the PS/2 interface has a number of advantages over the USB interface:

  • PS/2 keyboards send commands directly to the host computer, unlike USB keyboards which must be polled for keypress events.
  • Providing that the keyboard circuitry supports it, there is no limit to the number of keys which can be registered simultaneously over PS/2. Standard use of the USB protocol is limited to 6 simultaneous keypresses excluding modifiers ("6KRO"), while PS/2 supports true N-key rollover.

Mouse connection

For mice, IBM introduced a new protocol very similar to the AT interface. This replaced serial mice and older mouse connections.