I was driving home from work a few days ago my trailblazer stalled at a stoplight. It restarted right away and I drove home. Just as I was about to pull into the driveway the TB hesitated and was down on power. Today I looked for codes and I found P0340(camshaft position circuit) and P335(crankshaft position circuit). The engine was running smooth(there was no bad mechanical noises). I am assuming it is electrical. I do not have any access to electrical schematics. Do these circuits share grounds or is there something else I should look for? I have not tried to start the TB until I get a little guidance. (02 trailblazer LTZ).