University of Glasgow · FACULTY OF ELECTRICAL ENGINEERING

ENG5027 Chap.13 Second-Order and Fixed-Point IIR Filters

- one subject, every graph, every model, every mark
7 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 13 of 13 · ENG5027

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.

In this chapter

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

Q [6 marks]. Design a biquad notch that removes 50 Hz from data sampled at 500 Hz, with pole radius r = 0.95. Give the angle, the numerator and denominator coefficients, the DC gain and the 2¹⁴-scaled integer for the middle denominator coefficient. Our mark allocation for this exercise is not a university or published scheme.
For the notch, the zeros sit on the unit circle at ±0.1 cycles per sample and the poles sit just inside at the same angle; the nearer r is to one, the narrower For the notch, the zeros sit on the unit circle at ±0.1 cycles per sample and the poles sit just inside at the same angle; the nearer r is to one, the narrower the notch.ReIm|z| = 1nullpolezeros on the circle, poles at r = 0.9
For the notch, the zeros sit on the unit circle at ±0.1 cycles per sample and the poles sit just inside at the same angle; the nearer r is to one, the narrower the notch.
  • 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.
The notch has b = [1, −1.6180, 1] and a = [1, −1.5371, 0.9025], a DC gain of about 1.045, and the scaled integer for a1 is −25184.
Sia tip — Check the largest coefficient magnitude before choosing the scale; coefficients just below 2 fit a 16-bit word at 2¹⁴ but not at 2¹⁵.
Glossary

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.
FAQ

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.

Study strategy

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.

A+Everything unlocked
Unlocks this Bible + all 26 of your subjects at University of Glasgow, plus 1,000+ more Bibles across the AskSia library.
Sia - your ENG5027 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works