http://www.piclist.com/techref/microchip/16f877adsamp.htm Check your page memory settings when setting it up... -dal ----- Original Message ----- From: Pic Dude 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. -- 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