Hello!

Has anyone been successful on getting data from the ADC on a 12F1822? While I can get 8-bit conversions, I cannot get 10-bit results. I have puzzled through the related registers from reading the data sheet. Briefly, I find that setting ADCON1.7 stops the ADC from working. Clearing ADCON1.7 lets it work in 8-bit mode.

Reading the errata sheet they show problems with the ADC, and a possible workaround, but I'm not convinced that is my problem since the problem also occurs on a 12F1840.

I can post example code, but initially I just wanted to know if someone on the forum is able to get 10-bit data from a 12F1822, or a 12F1840.

Thanks!