Try adding this to the start of your code.

Code:
ADCON1=7 
CMCON=7