Signal Processing/Analog Filters

From Wikibooks, open books for an open world
Jump to: navigation, search

Analog Filters[edit]

Historically, electric signal processing started with analog circuits. Signal analysis and filter design methods first based on these kind of circuits. Later came the avent of digital systems. The first digital filters relied on the techniques used for their analog parents. Still today, some digital filters rely on the simulation of analog filters in order to profit from some of their interesting properties.

Passive Filters[edit]

Lumped Elements Filters[edit]

Lumped elements filters base on the frequency characteristics of the following components:

  • the resistance, R
  • the capacitance, C
  • the inductance, L

Their characteristics are given by:

U = R \cdot I
U = \frac{1}{sC} \cdot I
U = sL \cdot I

Ladder filters[edit]

The following image shows a 4th order all-pole lowpass ladder filter:

Lumped elements ladder filter order 4

The overall appearance of the circuit explains the name.

In the drawing, the source and load resistance are identical. This corresponds to the situation with the best energy transfer from source to load. At DC, the inductances act as short circuits and the capacitances as open circuits. Hence the output amplitude will be half of the one of the input.

Doubly terminated ladder filters show to have excellent passband sensitivity properties [1]. In other terms, a given change in L or C element values results in a much smaller relative change in the filter transfer function. Because of this, ladder filters have been widely used as a model for analog active filters and for digital filters.

Filters with Distributed Elements[edit]

A distributed element filter is an electronic filter in which capacitances, inductances and resistances (the elements of the circuit) are not localised in discrete (lumped) elements as they are in conventional filters. At high frequencies, in the microwave region, the strips on a printed circuit board act as impedances and a careful design of them allows to implement filter functions.

Active Filters[edit]

Active filters are analog filters using amplifying devices such as operational amplifiers. They allow to realize filter functions with resistances and capacitances, freing the designer of the need to use inductances.

Canonical filters[edit]

The first attempts to realize active filters was to devise a circuit realizing the transfer function, with R and C element value combinations corresponding to the transfer function's numerator and denominator coefficients: the canonical filters. However, this kind of circuits showed to be very sensitive to element values: a small change in an R or C element value had a large effect on the transfer function.

For that reason, the design of active filters has shifted from canonical filters to other structures such as chains of second order sections or leapfrog filters.


Chain of Second Order Sections[edit]

A second order section, often referred as biquad, implements a second order transfer function. The transfer function of a filter can be split into a product of transfer functions each associated to a pair of poles and possibly a pair of zeroes.

The transfer function of a system given with an equal number of complex conjugate zeroes, z_i and z_i^*, and poles p_i and p_i^*, together with a gain k is:

H(s) = k \cdot \prod_{i=1}^{N/2}{\frac{(s-z_i)(s-z_i^*)}{(s-p_i)(s-p_i^*)}}

This is the case for Chebyshev type 2 and Elliptic filter functions.

Writing:

D_i(s) = (s-p_i)(s-p_i^*) = s^2 - 2 Re(p_i) s + abs(p_i)^2 = s^2 + a_{1i} s + a_{0i}

shows that the denominator ploynomial functions of s have real coefficients. The same can be said for the numerator. With this, the transfer function can be rewritten as:

H(s) = k \cdot \prod_{i=1}^{N/2}{\frac{s^2 + b_{1i} s + b_{0i}}{s^2 + a_{1i} s + a_{0i}}}

If the transfer function's order is odd, then a first order section has to be added to the chain. This section is associated to the real pole p_r and to the real zero z_r, if there is one. The transfer function becomes:

H(s) = k \cdot \frac{s-z_r}{s-p_r} \cdot \prod_{i=1}^{{N-1}/2}{\frac{s^2 + b_{1i} s + b_{0i}}{s^2 + a_{1i} s + a_{0i}}}

An all-pole even order transfer function is in the form:

H(s) = k \cdot \prod_{i=1}^{N/2}{\frac{1}{(s-p_i)(s-p_i^*)}} = k \cdot \prod_{i=1}^{N/2}{\frac{1}{s^2 + a_{1i} s + a_{0i}}}

This is the case for Butterworth, Chebyshev type 1 and Bessel filter functions.

An all-pole odd order transfer function is in the form:

H(s) = k \cdot \frac{1}{s-p_r} \cdot \prod_{i=1}^{{N-1}/2}{\frac{1}{s^2 + a_{1i} s + a_{0i}}}

State Variable Filters[edit]

State Variable Filters have a topology with two integrators whose outputs correspond to the state-space variables associated with the transfer funtion.

The following circuit was proposed by Kerwin, Huelsman and Newcomb [2]:

Kerwin-Huelsman-Newcomb.svg

The following circuit is know as the Tow-Thomas circuit [3]:

Tow-Thomas.svg

It is possible with both the Kerwin-Huelsman-Newcomb and the Tow-Thomas to build a weighted sum of all op-amp outputs in order to obtain a more generic transfer function.

Certain second order canonical structures directly use the transfer function's coefficients as amplifier gains.

Sallen and Key circuits[edit]

The Sallen–Key topology uses an operational amplifier to drive the output and R C elements to set the transfer function. Due to the driving capacity of operational amplifiers, Sallen–Key circuits are easily cascaded to form a higher order filters.

The following circuits shows a Sallen–Key lowpass filter circuit:

Sallen-Key Lowpass General.svg

Leapfrog Filters[edit]

Filter Structure[edit]

Leapfrog filters base on the simulation of passive ladder filters. The incentive for this choice is to inherit from the excellent passband sensitivity properties of the original circuit.

Taking the example of the following 4th order all-pole lowpass ladder filter,

Lumped elements ladder filter order 4

one can write the following equations:

\begin{cases}
sC_1 \cdot U_1 = \frac{1}{R} \cdot (U_{in} - U_1) - I_2 \\
sL_2 \cdot I_2 = U_1 - U_3 \\
sC_3 \cdot U_3 = I_2 - I_4 \\
sL_4 \cdot I_4 = U_3 - R \cdot I_4 \\
U_{out} = R \cdot I_4
\end{cases}

Rewriting these equations gives:

\begin{cases}
U_1 = \frac{1}{sRC_1} (U_{in} - U_1 - RI_2) \\
R I_2 = \frac{R}{sL_2} (U_1 - U_3) \\
U_3 = \frac{1}{sRC_3} (R I_2 - R I_4) \\
R I_4 = \frac{R}{sL_4} (U_3 - R I_4) \\
U_{out} = R I_4
\end{cases}

This new set of equations shows that the filter can be implemented with a chain of 4 integrators with:

  • state variables having the form of w_i = U_i or w_i = R I_i
  • time constants having the form of t_i = RC_i or t_i = \frac{L_i}{R}

The resulting circuit is an integrator chain where each integrator output is brought back to the preceeding integrator input. Hence the name Leapfrog.

Leapfrog filter order 4.svg

Transfer Function[edit]

The set of equations describing the filter can be rewritten using the state space representation as:

\begin{array}{ccrcccccc}
 s \cdot \begin{bmatrix}U_1\\RI_2\\U_3\\RI_4\end{bmatrix} &
 = &
 \begin{bmatrix}-\frac{1}{t_1} & -\frac{1}{t_1} & 0 & 0\\\frac{1}{t_2} & 0 & -\frac{1}{t_2} & 0\\0 & \frac{1}{t_3} & 0 & -\frac{1}{t_3}\\0 & 0 & \frac{1}{t_4} & -\frac{1}{t_4}\end{bmatrix} &
 \cdot &
 \begin{bmatrix}U_1\\RI_2\\U_3\\RI_4\end{bmatrix} &
 + &
 \begin{bmatrix}\frac{1}{t_1}\\0\\0\\0\end{bmatrix} &
 \cdot &
 U_{in} \\
 U_{out} &
 = &
 \begin{bmatrix}0 & 0 & 0 & 1\end{bmatrix} &
 \cdot &
 \begin{bmatrix}U_1\\RI_2\\U_3\\RI_4\end{bmatrix} &
 + &
 \begin{bmatrix}0\end{bmatrix} &
 \cdot &
 U_{in}
\end{array}

From this equation set, one can write the A, B, C, D matrices as:

A = \begin{bmatrix}-\frac{1}{t_1} & -\frac{1}{t_1} & 0 & 0\\\frac{1}{t_2} & 0 & -\frac{1}{t_2} & 0\\0 & \frac{1}{t_3} & 0 & -\frac{1}{t_3}\\0 & 0 & \frac{1}{t_4} & -\frac{1}{t_4}\end{bmatrix}
B = \begin{bmatrix}\frac{1}{t_1}\\0\\0\\0\end{bmatrix}
C = \begin{bmatrix}0 & 0 & 0 & 1\end{bmatrix}
D = \begin{bmatrix}0\end{bmatrix}

From this representation, signal processing tools such as Octave or Matlab allow to plot the filter's frequency response or to examine its zeroes and poles.

Switched-Capacitor Filters[edit]

Switched-capacitor filters are analog sampled devices. Charging and discharging a capacitor can show to produce an impedance close to the one of a resistance. With this, RC time constants of an analog active filter are changed into a factor proportional to the ratio of two capacitances. This kind of circuit is most interesting for integrated circuit design, where R and C element values can largely vary from one die to another, whilst the ratio of two capacitances in the same region of a silicon device remains very precise.

References[edit]

  1. Johns David A. et al (1989). "Orthonormal Ladder Filters". IEEE Transactions on Circuits and Sytems (New York, IEEE Circuits and Systems Society) 36 (3): 337-343. http://www.eecg.toronto.edu/~johns/nobots/papers/pdf/1989_johns.pdf. 
  2. Kerwin, W.J. Huelsman, L.P. Newcomb, R.W. (1967). "State-Variable Synthesis for Insensitive Integrated Circuit Transfer Functions". IEEE Journal of Solid-State Circuits 2 (3): 87-92. http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1049798. 
  3. Lee C. Thomas (1971). "The Biquad: Part I-Some practical design considerations". IEEE Transactions on Circuit Theory 18 (3): 350 - 357. http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1083277.