Quote Originally Posted by Tobias View Post
I guess I need to rephrase the problem. The TPS values are incorrect when the 10F222 is attached to the output of the TPS. The TPS values really don't change much at all when attached, look at the TPS values when not attached. It varies appr 1.8 volts without the PIC attached to calculate the analogue level.
You've got GPIO.0 set as a digital pin, and an output, and set logic low, so it's dragging down the TPS line.
Try configuring the pin correctly for what you are trying to do...
And since the ADC on the 10F222 is an 8bit result, there's no need for throttle to be a word.
BUT...since you're also DEFINE'ing ADC_xxxxx, this might be overriding everything you've just set up wrong.