What is the source of the analog? Do you have smoothing capacitors from the ADC pins to VSS? Sometimes that helps.
In fact I've resolved my problem. The result of the ADC was configured to be right-justified (ADCON2.7=1), I've set it to be left-justified (ADCON2.7=0), and I haven't problems anymore (the readings are perfectly stable now).
Bookmarks