Quote Originally Posted by Dave View Post
Vellamike, For starters this is not the input to a PIC but the input from some external A/D converter isn't it? Looking at the code, I can see that you are manipulating the starting of the conversion and receiving the result. Unless you are going to also include the circuit and, components you are using, there is no way of helping you....
The input is directly into the PIC which has it's own ADC module. What makes you think that I am getting the input from an external ADC?

I will post the circuit diagram in a bit as I don't have it available to me at the moment.