J
Jam
Guest
Hi all,
I am making a variable IIR filter:
in the form of (1/z-"coeff") . For 51 kHz (fs=10e6) the coeff would be
0.96875
Which can be made as 1-1/2^5. Which is 1*Sa - shr(Sa,5)
Because of the shift I get an attenuation of 2^5. Therefor I compensate Sa
first by multiplying (SHL) by 2^5
To make smaller steps I can use 1-(1/2^5+1/2^6)
But now the multiplying part.... I cannot use the same trick
here....multiplying by 2^5+2^6 is not ok. I have to multiply by 1/2^5 +
1/2^6 =21,3
Anyone knows how to solve this problem ?
I am making a variable IIR filter:
in the form of (1/z-"coeff") . For 51 kHz (fs=10e6) the coeff would be
0.96875
Which can be made as 1-1/2^5. Which is 1*Sa - shr(Sa,5)
Because of the shift I get an attenuation of 2^5. Therefor I compensate Sa
first by multiplying (SHL) by 2^5
To make smaller steps I can use 1-(1/2^5+1/2^6)
But now the multiplying part.... I cannot use the same trick
here....multiplying by 2^5+2^6 is not ok. I have to multiply by 1/2^5 +
1/2^6 =21,3
Anyone knows how to solve this problem ?