> I've come up with a routine that is somewhat crude -- it keeps track of the > last 3 calculated values (sort of a FIFO), and if a new value varies by > exactly +/-1 from the last displayed value, then it does not immediately > update the display -- it waits until that new value is the result for 3 > consecutive cycles. If it goes back to the last displayed value within the > next 2 cycles, then no change will be seen. If the change is more than 1 at > any time, it updates the display immediately. But I'm guessing there's a > better way -- is there? Median filter? Take, say, 5 samples, put them in increasing order from least to greatest, then take sample 3. Mike H. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist