I have a 1997 5.7L 1500 van I am trying to fix. I had originally pulled 4 codes out of this truck and 3 of them were O2 codes the last one was a P0340 Camshaft Position Sensor Problem. Replaced the O2 sensors and the CMP sensor, and I still had a p0340 code in the computer. When I looked at the data on my scan tool I found that the PCM was retarding the timing -45 degrees. I checked the installation of the sensor and the teeth on the distributor gear. All were fine so I got a new sensor just in case and then I checked voltage at the three wires to the CMP connector. All checked out fine and I was getting a signal. Still it was retarding timing. So I moved the distributor while the car was running and it didn't budge. Please help me out here...I don't know where to go with this. Does anyone have the wire color, pin number and connector number of the Camshaft Position Sensor at the PCM? Or any other ideas here?!!