Mark Rages wrote: > N1=N*(K-1)+N0*K Huh again? This looks more like a ring generator with exponential decay. C'mon folks. The correct algorithm really isn't that hard: FILT <-- FILT + FF(NEW - FILT) This can be evolved into something like the form above, but you'd have to change K-1 to 1-K to make it right. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist