Quote Originally Posted by hell_pk View Post
I have already posted the code.Analog source is simply a pot for 1-5V range.
Post #1 shows a lot of things but it is difficult to tell where the code is or the things you hace tried. Post your current code in tags like Mr.E suggest.

You have ANSEL set two different ways in post #1. Is that the way you have it in your code?

Did you read and try post #2? Some of the registers PBP handles for you when using ADCIN.