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....
Bookmarks