Filter design

Introduction

In this reader we will provide some general background material of filter design techniques. In some applications the impulse response or unit step response may be specified, however, in most applications either the magnitude and/or the phase response has to be specified for the design of a digital filter. Since the phase response of a designed filter can be corrected by cascading it with an all-pass section, in most cases the problem of interest is the development of a realizable approximation to a given magnitude response specification. For this reason we restrict our attention in this reader to the approximation of the magnitude response only.

Screencast video [⯈]



Module overview

This module will cover the following topics:

  1. Overview filter design - This module starts off by describing the most basic filter structures.
  2. FIR filter design - In this section a design procedure is outlined for finite impulse response filters.
  3. IIR filter design - Finally, the design procedure is extended to the topic of infinite impulse response filters.



Summary

Overview filter design

Four ideal frequency selective filters

  • Low-pass filter
  • High-pass filter
  • Band-pass filter
  • Band-stop filter

Methods to obtain High Pass filter via Low Pass Filter

  • Spectral inversion
  • Spectral reversal

From LPF and HPF to Band Stop

Subtract Low Pass Filter from All Pass filter

From LPF and HPF to Band Pass

Cascade Low Pass Filter and High Pass Filter

Filter design process

  1. Filter specifications,
  2. Selection type (FIR or IIR) and filter order,
  3. Find set of filter coefficients,
  4. Implement filter in hard- or soft-ware,
  5. Check result and eventually repeat previous 3 steps.

Comparison FIR and IIR filters

  • FIR has only zeros. IIR filter can have both poles and zeros.
  • Exact linear phase only with an FIR filter. All Pass only with IIR.
  • FIR always stable. IIR unstable when poles outside the unit circle.
  • FIR filter has mainly transversal structure, or tapped delay line. IIR has recursive parts and in most cases build as cascaded or parallel set of first and second order sections.
  • Complexity of FIR filter directly related to the filter length. To make highly selective filters cost usually less complexity when using IIR filters.
  • Initial state influences behavior FIR maximal up to the filter length. Because of recursion of IIR filter this can take an infinite long time.
  • Influence of quantization is limited for FIR filters, while poles can move outside the unit circle, which leads to instability. Moreover IIR filter quantization can lead to limit cycles and overflow oscillations.
  • Design methods available for all kind of FIR frequency responses, while for IIR frequency response mainly available for LPF, HPF, Band Pass and Band Stop filters.
  • FIR available design aids mainly iterative methods. IIR methods mainly consist of transformation of available analog filters to digital domain.

Design procedures for Linear-phase FIR filters

  • Design based on FTD and windowing
  • Equiripple linear phase filter design
  • Design based on Frequency sampling filter

IIR filter design methods

  • The impulse invariance approach
  • Mapping differential- into difference-equation
  • The bilinear transform