>> Reading the datasheet on the 16F872 about using the A/D converter. It's a *bit* confusing. Anyone have a snippet of sample code that shows how to setup a single A/D and extract a value from it. I'm especially confused about setting up bits 0-3 of ADCON1, and where/how to use a vref. << My HAL project uses the A/D on a 16F876, which is identical to the 16F872. See http://www.embedinc.com/pic/hal.htm. The entire HAL project can be downloaded and re-built on your system. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics