Trash the pot and use two push buttons, "up" and "down"... No ADC and no flickering between values. Jan-Erik. PS. Make sure your lines are limited to a reasonable/readable/editable length. If your mail tool can't make that for you, use your ENTER key ! DS. rrc124+@PITT.EDU wrote: > Here's the setup: PIC16F872's ADC pin, PORTA pin 0, connected to a 1 Meg Ohm pot. > Four LEDs provide output. > > Here's the requirement: use the pot to select one of 16 values, 0 to 15 with the > output being the 4 leds...a 4 digit binary number. -- 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