Hello,

I had the same problem a while back. The adcin command does not work with the
pic18fxx31s. You have to read them manually. See this thread it may help.

http://www.picbasic.co.uk/forum/show...ght=PIC18F2331