Here's the setup: PIC16F872's ADC pin, PORTA pin 0, connected to a 1 Meg Oh= m pot. Four LEDs provide output.=20 Here's the requirement: use the pot to select one of 16 values, 0 to 15 wit= h the output being the 4 leds...a 4 digit binary number. All i do is shift = the 8 most significant bits (from the ADRESH, left aligned so 8 most sig ar= e in adresh with the two least sig in ADRESL) right four times so i keep th= e four most significant digits which i directly output to the LEDs.=20 Here's the problem: when the pot is directly between two numbers, and left = untouched, the pic will flicker between the two values because the pot i su= ppose doesn't give a steady output. This isn't allowed. I've tried adding a= "debounce" where i wait to see if a value is held for 10 or 20 times befor= e switching the display, but all it seems to do is slow the flicker down. A= ny experience or suggestions? Thanks everyone... you have no idea how much = this community has helped me. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads