cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a simpler way to compute the gain factor in the SCALE stage of the MDF?

_andreas
Senior

To me, it looks like each gain step shifts by "half" a bit, so we could compute the gain as

floor((DSfilt - DScic)*2);

e.g. with RSFLT as target and Sinc5/Dec5 + 14bit ADC1:

floor((22 - 25.6)*2) = -7;

1 ACCEPTED SOLUTION

Accepted Solutions
_andreas
Senior

0693W00000UnQetQAF.pngYes, this should work.

View solution in original post

3 REPLIES 3
_andreas
Senior

0693W00000UFWwCQAX.png

20*log10(2)  = 6.0206 dB

If we shift by one bit, this would be the resulting gain in dB

_andreas
Senior

0693W00000UnQetQAF.pngYes, this should work.