The Nth Order Filter
This filter has shown up unceremoniously in recent SigmaStudio betas, and it's immensely useful.
Previously, to make a sharp filter we had to cascade a number of first and second-order sections, Their frequency and Q had to be figured with a filter-design program. Now, SigmaStudio does the work for you. Below are two 4 KHz "brick wall" Chebyshev telephone filters, done the old way and the new way:
The Order number N (number of poles in the filter) must be even. If you change N with the green button, it chooses even numbers. You can go ahead and type an odd number in the box, but the resulting response is incorrect. Thus I'm comparing a 12-pole Nth-Order filter to an 11-pole assembled filter. Here the Nth-Order filter uses three more instructions (60 instead of 57), but works much better as shown below:
filter implementation
nth order
chebyshev
Brilliant as always--ADI ought to keep you on retainer!
I have a schematic I've been working on for a month that I am getting close to sharing, but you seem to manage these three per week!
Oh how I'll miss making my 10th order filters. Nice find, looks like we'll have to download the betas and take a look. We use high order filters all the time in our designs.
Yep, it's really handy. The real advantage of the Nth-Order Filter over designs we've assembled ourselves shows with filters between N = 10 and N = 20 (the max). Many filter design programs stop at N = 10 because they assume the implementation will be analog, and it's tough to build an active filter with more than five op-amp stages. Also, high-order filters often run into SigmaStudio's Q limit of 16 for the General Second-Order filters. The Nth-Order Filter has no such limitation.
Jon, I'm looking forward to seeing the project you're planning to share -- yours are always fascinating.
Best regards,
Bob
Hi, I'm using a ADU1452 and I can't find the nth order filter while I could find it for the ADU1442... Is it normal ?
Hello,
I'm afraid that yes, this is normal. The ADAU1452 is the newest SigmaDSP, thus this new algorithm has not yet been ported there. Presently you'll need to cascade first and second-order filters to get your desired response.
Best regards,
Bob
Ok then...
How can make à 48db filter at 35hz using several 1st and second order filters ?... Can you help me ?
Start with an analog filter design program. ADI has one at:
FILTER WIZARD | Analog Devices
I assumed you wanted a highpass filter:
Input your cutoff frequency (35 Hz), your stopband loss (48 dB), and your stopband frequency (typically one octave from your cutoff frequency). The Filter Response slider allows you a trade-off between simplicity and phase response. Audiophiles may wish to slide this over to the right (Bessel filter), but I can't hear the difference :
Change the drop-down View menu to Stages. This gives you the specs for each of the General Second-Order filter stages in your DSP project:
Build your SigmaDSP filter. First, grow a General Second-Order Double-Precision filter to four sections. Sharp-cutoff filters like this should always be double-precision. Growing it rather than using separate sections allows the Sigma 300 (ADAU145x) compiler to optimize the filter, using fewer instructions.
Then, type in the Frequency and Q for each section. Butterworth response filters will have the same frequency for all sections, only different Qs. Other filter responses will vary. Just copy the numbers from the Filter Wizard to your individual sections. Simulate the results with SigmaStudio's Stimulus-Probe tool.
If you wanted a Low-pass filter, the procedure is the same:
Best regards,
Bob
Thanks a lot for your help...
Please log in to reply.













