Pin numbers reflect the color of the wire for that pin             

01    Variant-code lead                       Output
02    N/C

03    N/C
04    Diagnostics lead K (pin 3) *            Output
05    Combustion signal, cyls 3 & 4       Output/Input
06     Feed to crankshaft sensor              Output         Battery voltage
07    Check Engine light                      Output
08    Throttle position signal  **            Input          0 V full throttle, 10 to 12 V idle
09    N/C
10    APC solenoid, pin 1                     Output
11    Knock sensor signal                     Input
12    N/C
13    Ground (black)
14    Temp sensor (in inlet pipe)             Input          0 - 5 V, temperature dependent
15    Ground for crankshaft sensor (black)
16    N/C
17    Ground for temp sensor (black)
18    Trigger signal for cyl 4                Output         1/2 millisecond negative-going pulses
19    Trigger signal for cyl 2                Output         1/2 millisecond negative-going pulses
20    N/C
21    +12, switched                   
22    +12, direct (unswitched)
23    Crankshaft position signal             Input           Note 1
24    Diagnostics lead L (pin 3) *           Output
25    Combustion signal, cyls 1 & 2      Output/Input 
26    Pre-ignition enrichment                Output
27    N/C
28    N/C
29    RPM signal                             Output
30    Book says NC, but it's knock sensor shield
31    Throttle position signal  **           Input
32    Brake signal  (turbo only)             Input           +12 when brake is applied
33    APC solenoid, pin 3                    Output
34    Speed sensor (non-turbo only)    Input
35    +12, direct (unswitched)
36    Load signal (Tq)                       Input   10 to 30 microsec pulse from fuel ECU, pin 25
37    Trigger signal for cyl 3               Output          1/2 millisecond negative-going pulses
38    Trigger signal for cyl 1                Output         1/2 millisecond negative-going pulses

*     I'm not sure what difference is between K & L diagnostic
**    Pin 8 is the signal from the throttle angle transmitter (position potentiometer) on the     throttle body
      Book says it should be 0 V @ full throttle, 10 - 12 V at idle
      I don't know what 31 is; book says 1 V @ idle, approx. 11 V @ full throttle

Note 1: 5 V dc with key in run position, engine not running.  40 millisecond negative-going pulses from 5 volts when running