Re: My 12lf1822 ADC won't read zero (lowest reading is 008)

Originally Posted by
scalerobotics
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.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks