If I may put my 2 cents in here, I use A/D converters all the time. However, I don't "set up" anything except tell the device to turn all A/D ports to digital on boot. On 12F675 I use ANSEL = 0. On 16C72A, 16F72 and 16F818, I use ADCON1 = 7. Then, I simply use the ADCIN command and it works every time for a 0-255 reading. ADCIN 0, X will read ANA0 and put value into BYTE variable X. And if Anyone here knows why I shouldn't do it this way, please let me know. Thank you. - Peter
Bookmarks