Computer Connections

Keyboard Pinout

5 Pin DIN socket

Pin 1   Keyboard Clock (+5V signal level)
Pin 2   Keyboard Data (+5V signal level)
Pin 3   Keyboard Reset (Not used by keyboard)
Pin 4   Ground (0V)
Pin 5   +5V

5 Pin Din Plug (180 deg.)
-------------------------

solder view (or socket view)

	    2
	    +
	 4+   +5
	  +   +
	  1   3


6 Pin mini DIN socket

Pin 1  Keyboard Data (+5V signal level)
Pin 2  Keyboard Reset (Not used)
Pin 3  Ground (0V)
Pin 4  +5V
Pin 5  Keyboard Clock (+5V signal level)
Pin 6  N/C
shell  Shield

6 Pin Mini-Din Plug
-------------------

solder view (or socket view)

	   1 2
	   + +
	 3+   +4
	  +   +
	  5   6



USB Pinout

Type A Plug (for USB controllers and hubs)
------------------------------------------

Solder/crimp view (or socket view)

________________
|  x  x  x  x  |
|  1  2  3  4  |
|              |
----------------

Pin 1	+5V	Red
Pin 2	-Data	White
Pin 3	+Data	Green
Pin 4	GND	Black


Type B Plug (for peripheral devices)
------------------------------------

Solder/crimp view (or socket view)

 ________
/  2  1  \
|  x  x  |
|  x  x  |
|  3  4  |
----------

Pin 1	+5V	Red
Pin 2	-Data	White
Pin 3	+Data	Green
Pin 4	GND	Black


Mini-B Plug (for miniature peripheral devices)
----------------------------------------------

Solder/crimp view (or socket view)

___________________
|  x  x  x  x  x  |
|  1  2  3  4  5  |
 |               |
  ---------------

Pin 1	+5V	Red
Pin 2	-Data	White
Pin 3	+Data	Green
Pin 4	key	(not connected)
Pin 5	GND	Black


Data rates for USB are:
USB 1.1 Specification   12 Mb/s
USB 2.0 Specification  480 Mb/s

USB 2.0 provides backward compatibility with USB 1.1


USB mouse/keyboard to 5-Pin DIN or 6-Pin Mini-DIN adaptor

USB	Function	5 Pin DIN	6 Pin ps/2
Pin 1	+5V		Pin 5		Pin 4
Pin 2	-Data		Pin 2		Pin 1
Pin 3	+Data/clock	Pin 1		Pin 5
Pin 4	Ground		Pin 4		Pin 3
shield			shield		shield


Serial ATA hard disk

Signal Connector
----------------

Hard disk 'L' connector view (or back of cable receptacle)


<    x  x  x  x  x  x  x  ||
key  1  2  3  4  5  6  7  ||
==========================||

        Motherboard           Hard Disk
Pin 1	Ground                Ground
Pin 2	+Tx Data              +Rx Data
Pin 3	-Tx Data              -Rx Data
Pin 4	Ground                Ground
Pin 5	-Rx Data              -Tx Data
Pin 6	+Rx Data              +Tx Data
Pin 7	Ground                Ground


Hard Disk Power Connector
-------------------------

Hard disk 'L' connector view (or back of cable receptacle)


||  x  x  x  x  x  x  x  x  x  x  x  x  x  x  x    >
||  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15  key
||==================================================


Pin 1	3.3V
Pin 2	3.3V
Pin 3	3.3V
Pin 4	Ground
Pin 5	Ground
Pin 6	Ground
Pin 7	5V
Pin 8	5V
Pin 9	5V
Pin 10	Ground
Pin 11	Reserved
Pin 12	Ground
Pin 13	12V
Pin 14	12V
Pin 15	12V


VGA Analog Video Pinout

15 way D-type in a 9-way shell

Pin 1   Red (0 - 0.7V)
Pin 2   Green (0 - 0.7V)
Pin 3   Blue (0 - 0.7V)
Pin 4   N/C
Pin 5   Digital Ground
Pin 6   Red Return (Analog Ground)
Pin 7   Green Return (Analog Ground)
Pin 8   Blue Return (Analog Ground)
Pin 9   N/C
Pin 10  Digital Ground
Pin 11  N/C
Pin 12  N/C
Pin 13  Horizontal Sync (TTL)
Pin 14  Vertical Sync (TTL)
Pin 15  N/C


SCART Video Connections

21 way SCART plug

Pin 1   Audio Right (out)
Pin 2   Audio Right (in)
Pin 3   Audio Left (out)
Pin 4   Audio Return (Analog Ground)
Pin 5   Blue Return (Analog Ground)
Pin 6   Audio Left (in)
Pin 7   Blue
Pin 8   Status / 16:9 Widescreen
Pin 9   Green Return (Analog Ground)
Pin 10  N/C
Pin 11  Green
Pin 12  N/C
Pin 13  Red Return (Analog Ground)
Pin 14  Fast Blanking Return
Pin 15  Red / Chrominance
Pin 16  Fast Blanking RGB
Pin 17  Composite Video (out) Return
Pin 18  Composite Video (in) Return
Pin 19  Composite Video (out)
Pin 20  Composite Video / Luminance (in)
Pin 21  Common Return


S-Video Pinout

4 Pin Mini-Din plug

Solder/crimp view (or socket view)

    4 +  + 3
   2 +    + 1
       __


Pin 1   Luminance Return (Ground)
Pin 2   Chrominance Return (Ground)
Pin 3   Luminance (Brightness)
Pin 4   Chrominance (Colour)



Games Port Pinout

15 Pin D-type socket

Pin 1   +5V
Pin 2   Paddle 1 button, joystick A button
Pin 3   Paddle 1 position, joystick A x-coordinate
Pin 4   Ground
Pin 5   Ground
Pin 6   Paddle 2 position, joystick A y-coordinate
Pin 7   Paddle 2 button
Pin 8   Ground
Pin 9   Ground
Pin 10  Paddle 3 button, joystick B button
Pin 11  Paddle 3 position, joystick B x-coordinate
Pin 12  Ground
Pin 13  Paddle 4 position, joystick B y-coordinate
Pin 14  Paddle 4 button
Pin 15  +5V

All TTL signals, active high


Parallel Port Pinout & Printer Connection

25 way D-type socket                36 way Centronics Plug

Pin 1   In/Out  /Strobe             Pin 1
Pin 2   In/Out  D0                  Pin 2
Pin 3   In/Out  D1                  Pin 3
Pin 4   In/Out  D2                  Pin 4
Pin 5   In/Out  D3                  Pin 5
Pin 6   In/Out  D4                  Pin 6
Pin 7   In/Out  D5                  Pin 7
Pin 8   In/Out  D6                  Pin 8
Pin 9   In/Out  D7                  Pin 9
Pin 10  In      /Ack                Pin 10
Pin 11  In      Busy                Pin 11
Pin 12  In      Paper end           Pin 12
Pin 13  In      Select              Pin 13
Pin 14  Out     /Auto feed XT       Pin 14
Pin 15  In      /Error              Pin 32
Pin 16  Out     /Init               Pin 31
Pin 17  Out     /Select in          Pin 36

Pins 18 to 25 of the 25 way socket are Ground
Pins 19 to 30 of the 36 way plug are ground

In a cable designed for fast bidrectional use (for example to a scanner), the
grounding arrangements are defined to the IEEE-1284 standard. Each signal has
its own return path and connections are made with twisted pairs with
an overall screen.

All signals are TTL, '/' = active low, all others active high


Interlink / Laplink Bidirectional Parallel Cable

Pin 2  -- Pin 15
Pin 3  -- Pin 13
Pin 4  -- Pin 12
Pin 5  -- Pin 10
Pin 6  -- Pin 11
Pin 15 -- Pin 2
Pin 13 -- Pin 3
Pin 12 -- Pin 4
Pin 10 -- Pin 5
Pin 11 -- Pin 6
Pin 25 -- Pin 25 (Ground)


Serial Leads Wiring

____________FROM_______________      _____________________TO______________________

  PC          PC       Apple            PC         PC       Printer   Modem   Apple

25-pin	    9-pin      8-pin          25-pin     9-pin      25-pin   25-pin   8-pin
skt         skt        plug           skt        skt        plug     plug     plug

Pin 2	    Pin 3      Pin 3          Pin 3      Pin 2      Pin 3    Pin 2    Pin 5
Pin 3	    Pin 2      Pin 5          Pin 2      Pin 3      Pin 2    Pin 3    Pin 3
Pin 4	    Pin 7      Pin 1          Pin 5+6+8  Pin 1+6+8  Pin 6    Pin 20   N/C
Pin 5+6+8   Pin 1+6+8  N/C            Pin 4      Pin 7      Pin 20   Pin 8    Pin 1
Pin 7	    Pin 5      Pin 4  GROUND  Pin 7      Pin 5      Pin 7    Pin 7    Pin 4


8 Pin Mini-Din Plug
-------------------

solder view (or socket view)

	   1   2
	   +   +

	3+  +4   +5

	   + + +
	   6 7 8


Null Modem Cable

9-pin			9-pin
skt			skt

Pin 1+6			Pin 4
Pin 2			Pin 3
Pin 3			Pin 2
Pin 4			Pin 1+6
Pin 5	GROUND		Pin 5
Pin 7			Pin 8
Pin 8			Pin 7


Dumb Terminal to PC

Terminal	PC		PC

25-pin		9-pin		25-pin
skt		skt		skt

Pin 7	GROUND	Pin 5		Pin 7
Pin 2		Pin 2		Pin 3
Pin 3		Pin 3		Pin 2
Pin 20		Pin 1+6+8	Pin 5+6+8
Pin 5+6+8	Pin 4		Pin 20


RJ45 (Twisted pair networking)

Pin	Wall socket	Function -	Function -
	wire colour	MDI devices	MDIX devices

Pin 1	White/Orange	TX+		RX+
Pin 2	Orange		TX-		RX-

Pin 3	White/Green	RX+		TX+
Pin 6	Green		RX-		TX-

Pin 4	Blue		BD3+		BD4+
Pin 5	White/Blue	BD3-		BD4-

Pin 7	White/Brown	BD4+		BD3+
Pin 8	Brown		BD4-		BD3-

Pins 1,2,3,6 are used in 10BaseT (10Mb/s) and 100BaseT (100Mb/s) networking.
All pins are used in 1000BaseT (1000Mb/s) networking.

TX = Transmit	RX = Receive	BD = Bidirectional

Workstation network cards are MDI devices. Hubs are MDIX (crossover) devices.
To connect PCs and hubs together use straight-through wiring.
To connect e.g. two hubs or two PCs together use cross-over wiring (many hubs have a port which can be switched between MDI and MDIX).

RJ45 Patch Lead Wiring

Viewing RJ45 plug with copper connectors uppermost

   ---------------------
   |  1 2 3 4 5 6 7 8  |
   |  | | | | | | | |  |  1. White/Orange
   |                   |  2. Orange
   |                   |  3. White/Green
   |                   |  4. Blue
   |                   |  5. White/Blue
   |                   |  6. Green
   |                   |  7. White/Brown
   |                   |  8. Brown
   |                   |
   -----|         |-----
        |         |
        |         |
        |         |
         ~ ~ ~ ~ ~
1