On Tue, 2005-06-14 at 01:03 -0500, PicDude wrote: > Hey folks, > It also has some averaging and a > software IIR filter, which after some experimentation, has significantly > reduced the occassions when it toggles, but has not eliminated it. If you already have the code in place for IIR filter, and it has improved things, then I would try increasing the number of taps in your filter so that more samples are taken into account. Personally IIR filters give me nightmares so I stick to FIR ones where I can make a reasonable prediction of their behaviour with nothing more that a pencil and a sheet of squared paper ;-) Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist