Sorry for taking so long to reply. Things got a little crazy around here la= st week. Andries Tip wrote: > Thanks again Dave, for being so thorough in checking my code. > The small timing error (I guess that's what it is) is more than good enou= gh > for my applications. Well, it's more like a bias in the data. > Here's another one, using the same rounding principle. > Would you care to have a look at this one too ? Sorry, no, I don't have the time right now. > By the way, doesn't the rounding make this IIR filter effectively an FIR > filter ? No, the difference between IIR and FIR is a fundamental mathematical one. A= n IIR filter is recursive, in the sense that the output depends on the histor= y of the input for all time, whereas an FIR filter depends only on a finite amount of the input history. The fact that the limited resolution of the arithmetic of any particular implementation of an IIR filter eventually truncates the impulse response does not change its fundamental properties. -- Dave Tweed --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .