Quote Originally Posted by scalerobotics View Post
Hi Hank,

I had a ton of trouble with the A/D with these chips. Turns out the Erata points at a big problem. http://ww1.microchip.com/downloads/e...Doc/80502C.pdf

You can't use the a/d as you normally would. I had to write a few lines of code to grab the a/d data (not using ADCIN), that included a pause to wait long enough for the a/d to complete. That is because the chip does not give valid data for the done bit.
HHHHA,, missed that Errata... however they also suggest what I said, using the Frc clock. Have you tried it?

I never use ADCIN so adding the SLEEP thing would be easy thing to do.