ΣSigmaStudio Ask AI Русский Log in

single or double precision filter

SigmaDSP & SigmaStudio fjlasjdfkj322038402 Jul 7, 2016 00:00 7 replies Original on forum ↗
Subscribe
fjlasjdfkj322038402 Question
Jul 7, 2016 00:00

Hi,

The single precision filter has a ploblem.

Examples are as follows. Here, f = 30Hz, Q = 1.41, Boost = 1dB

1. The level12 readback data is -48dB.

I add a DC filter(DCB2), and the level3 read back is -65dB smaller than before. But the problem is still very serious.

Why?

2. Problems have improved use the double precision filter. But there is still no complete solution.

So, I don't dare to use the single precision filter now.

Thanks,

Anthony

a6966953f917b9c52810d1e28f51dd15.png
a6966953f917b9c52810d1e28f51dd15.png
a6966953f917b9c52810d1e28f51dd15.png-305x240.png
a6966953f917b9c52810d1e28f51dd15.png-305x240.png
13dee60d3ce4b838470dc01afa38b9b9.png
13dee60d3ce4b838470dc01afa38b9b9.png
13dee60d3ce4b838470dc01afa38b9b9.png-620x333.png
13dee60d3ce4b838470dc01afa38b9b9.png-620x333.png
434d23e9b540131d1fd4d463caab7926.png
434d23e9b540131d1fd4d463caab7926.png
434d23e9b540131d1fd4d463caab7926.png-620x333.png
434d23e9b540131d1fd4d463caab7926.png-620x333.png
fjlasjdfkj322038402 Reply
Jul 7, 2016 00:00

Sorry.

Whether it is 1701 or 1452 have a similar problem.

Thanks,

Anthony

Z0mb13 Reply
Jul 7, 2016 00:00

Hi,

It could be a bit related to this problem too:

ADAU1452 T-Connection, Readback, Level Detector

Best regards,

Simon

ADIApproved Reply
Jul 7, 2016 00:00

Hi Anthony,

I've replicated the issue and will be talking to our software team about it. I'll update you with our findings.

Thanks,

Tyler

ADIApproved Reply
Jul 8, 2016 00:00

Hi Anthony,

It looks like the issue is related to quantization error introduced for low-frequency signals. This is an inherent issue with using a single-precision filter, and one of the reasons why the double-precision is also available. A good rule of thumb is that for filters near or below 0.5% of Fs, you should use a double-precision filter.

Regards,

Tyler

fjlasjdfkj322038402 Reply
Jul 11, 2016 00:00

Hi Tyler,

I'm using the double-precision filter now. I just want to know more about the reasons for the problem.

Thanks,

Anthony

ADIApproved Reply
Jul 12, 2016 00:00

HI Anthony:

The reason is the quantization of intermediate calculations due to the 5.23 fixed point format used inside the DSP. Using double precision doubles your fractional precision to 46 bits.

Hope this helps.

Miguel

fjlasjdfkj322038402 Reply
Jul 14, 2016 00:00

Hi,

Thanks Tyler and Miguel.

Thanks,

Anthony