Hi!
I am using the Biquad filters in the TLV320AIC3206 to shape the audio signal and I am getting weird oscillations from the filter when there is overflow in the filter calculations. My initial version did not scale the signal before processing the audio. With some scaling, the performance improved but I am not sure if I am still overflowing the biquads.
Can you tell me how to adjust the filter scaling to prevent this from happening? I am currently setting the HA filter to { 0x1CA7D7,0,0,0,0 } to scale the signal by 13 dB to allow some headroom in the Biquad calculations.
The rest of my coefficients are:
FILTER_PARAMS_BQ, // EQ 81 Hz Fc -6,0 dB 50 Hz BW
0x7F95F6,
0x80D668,
0x7EC0E3,
0x7F2998,
0x81A926,
FILTER_PARAMS_BQ, // EQ 526 Hz Fc -6,0 dB 300 Hz BW
0x7D97B6,
0x851E39,
0x78C146,
0x7AE1C7,
0x89A703,
FILTER_PARAMS_BQ, // Treble Shelf 10000 Hz Fc 11,0 dB
0x7FFFFF,
0xC52F04,
0x299ACD,
0x10834D,
0xE8877A,
What is the accuracy of the calculations through the filter chain? Scaling the signal by 13 dB reduces the signal from 24 bit to 22 bit. (The last bits being just noise anyway so this does not matter really) but I am curious how much scaling that should be applied to completely eliminate the overflow in the calculations.
Best regards,
Stefan Burstrom