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. Thanks. -- 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