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

A Question encountered in IIR filter design

SigmaDSP & SigmaStudio Jingchang Sep 23, 2013 00:00 1 replies Original on forum ↗
Subscribe
Jingchang Question
Sep 23, 2013 00:00

Experiment:We design an IIR filter in Matlab,then the filter is transplanted to Sigmastudio,However the Magnitude Responses obtained by Matlab and Sigmastudio are different。Why?

The Detailed operations are as following.

Step 1:Define the characteristics of IIR filter in Matlab as 4 order, 1024 sampling rate, 300Hz frequency-pass and 400Hz frequency-stop.

Figure 1

Step 2:The magnitude response obtained in Matlab as Figure 2.

Figure 2

Though observing the figure 2,we find that the obtained magnitude response is consistent with the characteristics defined in Step 1.

Step 3: Export the coefficients from the Matlab。

图3

Step 4: Design the program in Sigmastudio,as figure 4.

Figure 4

Step 5:Import the coefficients (obtained in Step 3) into the IIR filter of Sigmastudio.

Figure 5

Step 6. The magnitude response obtained by SigmaStudio is as Figure 6 shown.

Figure 6

The coefficients used by Sigmastudio and Matlab are the same,however the obtained magnitude response figures are different. Why? Could you explain it detail.

filter

sigmastudio

design

iir

344e1972dc49a3bfee7ab90a2924d8b8.bmp
344e1972dc49a3bfee7ab90a2924d8b8.bmp
7b71250da386b1470128b1a222d6bb03.bmp
7b71250da386b1470128b1a222d6bb03.bmp
4bfadd38d43ea1e0820e5d02a9700322.bmp
4bfadd38d43ea1e0820e5d02a9700322.bmp
d01fa96f092ad364af4fd0232bd53dc9.bmp
d01fa96f092ad364af4fd0232bd53dc9.bmp
c8c3aa8a4b95f37048304e50d0c65ac6.bmp
c8c3aa8a4b95f37048304e50d0c65ac6.bmp
da3927f01267ea248a96d441e38539f4.bmp
da3927f01267ea248a96d441e38539f4.bmp
ADIApproved Reply
Sep 23, 2013 00:00

Hello,

Your sample rate in Matlab appears to be 1024 Hz.

The default sample rate in SIgmaStudio is 48 kHz. You'll have to change the sample rate in SigmaStudio using these steps: https://ez.analog.com/docs/DOC-1431

Also note that most SigmaDSPs can only run at 48 kHz, 96 kHz, or 192 kHz sample rates.