ENG5027 Chap.13 Second-Order and Fixed-Point IIR Filters
Second-Order and Fixed-Point IIR Filters
Second-Order and Fixed-Point IIR Filters builds practical IIR filters from second-order sections. A biquad is a ratio of two second-order polynomials whose zeros and poles come in conjugate pairs, which guarantees real coefficients. Zeros placed on the unit circle at an angle give a three-tap FIR with a null at that frequency, and at angle zero the same structure removes DC.
Poles at radius r and the same angle give a resonator whose feedback coefficients are two r times the cosine of the angle and minus r squared; r sets both the strength of the resonance and how fast its ringing decays, and the section is stable only for r below one. Putting the zeros over the poles at the same angle gives a notch that rejects one frequency and passes the rest, narrower as r approaches one.
Higher-order filters are cascades of biquads, with one first-order section added for an odd order. Two structures implement a biquad: direct form I uses four delays and a single accumulator and suits integer arithmetic, while direct form II uses two delays but two adders, so its intermediate overflows are not reversed and it suits only floating point.
The second lecture shows library design calls for Butterworth and Chebyshev filters, which expect cut-offs normalised to Nyquist and return second-order sections, and converts a 50 Hz bandstop to integers by scaling every coefficient by two to the fourteen.
What this chapter covers
- 01
Biquads from conjugate pairs
- 02
Zeros on the unit circle and DC removal
- 03
Resonant poles and the radius r
- 04
The notch filter
- 05
Cascades of second-order sections
- 06
Direct form I against direct form II
- 07
Library designs and integer coefficients
Worked example · free
Notch coefficients for mains removal
- 1The angle is ω0 = 2π × 50/500 = 0.6283 rad, with cos ω0 = 0.8090.
- 1The numerator is b = [1, −2cos ω0, 1] = [1, −1.6180, 1].
- 2The denominator is a = [1, −2r cos ω0, r²] = [1, −1.5371, 0.9025].
- 2The DC gain is 0.382/0.3654 = 1.045, and −1.5371 × 16384 rounds to −25184.
Key terms
- Biquad
- A second-order filter section with two zeros and two poles, the standard IIR building block.
- Notch filter
- A biquad with zeros on the unit circle and nearby poles that rejects one narrow frequency band.
- Direct form I
- A biquad structure with separate input and output delays feeding one accumulator.
- Second-order sections
- A cascade of biquads used to implement a higher-order IIR filter robustly.
Second-Order and Fixed-Point IIR Filters FAQ
How does the pole radius change a notch?
Moving the poles closer to the zeros on the unit circle makes the rejected band narrower and leaves the gain elsewhere closer to one. The trade-off is time: the response then rings longer before it settles.
Why is direct form I preferred for integer arithmetic?
All products are summed in one accumulator, so any temporary wrap-around in two's complement is undone before the result is stored. Direct form II stores an intermediate value after the first adder, where an overflow becomes permanent.
How are library design coefficients turned into integers?
The design is requested as second-order sections, each coefficient is multiplied by a power of two chosen so the largest value fills the integer word, and the values are rounded. The filter then runs in direct form I with a bit shift after the accumulator.
Exam move
Practise placing poles and zeros by hand. For a chosen frequency, write the zero-only, pole-only and notch transfer functions, compute their coefficients for two values of r, and sketch the magnitude, marking the notch and the passband gain. Check stability by testing r against one. Then draw both direct forms for a general biquad, count delays and adders, and explain in two sentences why only one suits integers.
Work through the 50 Hz bandstop scaling from the lecture, multiplying several coefficients by two to the fourteen and confirming the rounded integers.
The 2020 example paper on the course site opens with exactly this notch, asking for a dataflow diagram, a response sketch for low and high r and a comparison with a bandstop made from a highpass and a lowpass, so rehearse that three-part answer under time pressure and finish with the cost per sample.
Working through Second-Order and Fixed-Point IIR Filters in ENG5027? Sia is AskSia’s AI Electrical Engineering tutor — ask any ENG5027 Second-Order and Fixed-Point IIR Filters question and get a clear, step-by-step explanation grounded in how ENG5027 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.