It is always a good idea to check that the PIC settings are correct by implementing a blinking LED before you do anything else. Also, in your code I don't see any WHILE....WEND loop to check if the ADCON0.1 has changed it's status. I haven't checked the datasheet for your PIC, so you might want to double check if the ADCON0.1 is the correct bit.
Bookmarks