Ps2

PS/2 is the connector used since IBM Personal System/2 to connect mouses and keyboards to popular computers. it has largely replaced usage of older DE-9 (aka serial port) for those devices, and is mostly replaced with USB on modern devices. However, due to it's simplicity compered to USB, it's still popular in hobbyist OS and hardware development, as a USB HID driver is much more complex than a PS/2 driver.

Attach:PS2.svg

PinDescription (single)Description double
1datadata (keyboard)
2not connecteddata (mouse)
3groundground
4+5v+5v
5clockclock (keyboard)
6not connectedclock (mouse)

note maximum recommended amount of current over vcc is 100mA, but it's also possible to go over 275mA.

in PS/2, like serial mouse and unlike USB, devices sends information to system using interrupts, which means device sends a signal for change made to cpu, however in USB, system pulls changes done by device every once in a while.

more info