> You and Harold suggested to use range rather then single value. > How wide range should I use? suppose I m looking for 951 > is 950-952 acceptable ? depends on what *you* want. for instance, for a 6-key resistor-chain input I use 1/3 of the interval as 'belonging to the adjacent value', the mid-1/3 as deadband (invalid or illegal reading). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist