Keyboard DIN Connector

DIN5 pins
DIN-5
Keyboard

PinFunction
1Clock
2Data
3n/c
4GND
5VCC +5V

The picture above shows the pin orientation as seen when looking into the connector on the PC.


Keyboard/Mouse PS/2 Connectors

PS/2 pins
PS/2
Keyboard &
Mouse

PinFunction
1Data
2n/c
3GND
4VCC +5V
5CLK
6n/c

The picture above shows the pin orientation as seen when looking into the connector on the PC.
Keyboard and Mouse connectors are electrically identical. They only differ on the data protocol level.