PicDude wrote: > Got a problem here with a PIC application where the lowest (rightmost) digit > of a numerical value is "toggling" back and forth between 2 (consecutive) > values rapidly -- example it will jump back and forth between 283 and 284 > rapidly (like 3-4 times a second, which is the update rate on the display). Neil, Here's a 2-sample hysteresis filter: current_sample = filtered_data(); if ( (current_sample == last_sample) || (abs(current_sample - displayed_sample) > THRESHOLD)) displayed_sample = current_sample; last_sample = current_sample; This cuts the flicker rate in half. To reduce it more, you can increase the number of required consecutive samples from 2 to N and save the last N-1 samples in an array. Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist