Ok, I am 99% certain I found the cause of my p0340 (and other issues)
Here's some other symptoms:
1. wouldn't drop in to Overdrive, most of the time. James couldn't seem to tune it out.
This started occurring sometime in either the turbo going in, or one of the many motor swaps that has happened.
2. the P0340 cam position sensor errors I mentioned
3. hard starting when warm (not absolutely sure about this one yet)
4. tach needle randomly jumping around when driving (this is a new(er) issue)
5. Idle issues - high reving when warm
I pulled my trusty multi-meter out, set it to AC, and probed the cps sensor wires with the truck running. cps is working. So, I probe the single wire at the pcm connector (pin 85). cps signal is still there. wtf I says to myself.
I loosen off the pcm connector bolt and I pull the connector off. No bent pins. That's a bonus.
Next, I rummaged thru my thousand spray cans and came up with some spray electronic contact cleaner (Tim made this suggestion last week). I gave all the pins a good spray down.
Then out came the di-electric grease and a small probe. I put a dab of this stuff on/in the hole of pin 85 on the wiring harness side. Then, replace and tighten down connector.
Its like a new truck now. At 65 mph I'm idling down the hwy at just over 2000rpm. Tach doesn't bounce around anymore (Happy days, I was searching for a new cluster to replace it with). Im pretty sure the p0340 is fixed, but I'll have to drive for a few more days to be sure.
How do you piss your tuner off? Have him chasing stuff that is electrical issues. Then, you send him an email telling him you found the issue and to move all the idle settings hes been playing with back to factory. Sorry James!
I'm not sure about the detonation yet either, but its possible this is fixed also. More seat time required.