Altera_Forum
Honored Contributor
18 years agoPeriodic artifacts on output of IIR Filter
Hi,
I'm trying to create a 2nd order IIR filter based on a Direct Form I biquad. I've implemented a LP filter at 1000 Hz with pre-calculated butterworth co-efficients. The filter works, but i can see periodic artifacts every 200 samples or so on the output. Otherwise the output signal looks fine on the scope. I've got two theories: - The co-efficients are in-correctly calculated (rounding or quantization problems) - Rounding errors within the feedback loop, when the 64-bit accumulator result is truncated to 32-bit. Would the periodic nature of the problem be consistent with either of these theories? I've played around with the rounding of the co-efficients and nothing has seemed to help. I've also tried to do some rounding by adding 1 to the result y[n] if the truncated bits were greater than 0.5. I've attached a picture of my setup in block diagram. I have used signed (2's complement) fixed integers of 16.16 format for the 16-bit audio samples and the filter co-efficients. I've calculated my co-efficients in Octave(Matlab), following this helpful tutorial: http://www.planetanalog.com/showarticle.jhtml?articleid=12802683 Thanks in advance, Evan.