You are on page 1of 6

# M518 Mixed Signal Processors Filter Design Using Pole-Zero Placement Method

page 1 of 6

## Poles and Zeros in z-plane

z-plane Response of discrete-time system (i.e. digital filter) at a particular frequency 0 is determined by the distance between its poles and zeros to a point on the unit circle corresponding to that frequency 0. The distance from a pole to a point on the unit circle is inversely proportional to the gain of the magnitude response at that frequency. Therefore a pole placed close to the unit circle has a small distance to point corresponding to frequency 0 and therefore the magnitude response of the filter at 0 will be high (peak). The distance from a zero to appoint on the unit circle is directly proportional to the gain of the magnitude response at that frequency. Therefore a zero placed close to the unit circle has a small distance to point corresponding to frequency 0 and therefore the magnitude response of the filter at 0 will be will be low (null or notch). For a stable operation of the system poles should not be placed on the unit circle since the length of the corresponding vector will be zero, which corresponds to a gain of infinity. This causes the filter to be unstable. Notice that we have done exactly that in the previous lecture in order to produce filter resonator for an impulse type input filter oscillates/resonates at one particular frequency 0. Zeros however can be placed on the unit circle and cause the gain to be zero at the frequency where the zero is placed. Poles and zeros placed on the origin have no effect on the magnitude response of the filter but contribute to the phase response of the system.

M518 Mixed Signal Processors Filter Design Using Pole-Zero Placement Method

page 2 of 6

Poles and zeros that are not real (i.e. they are not on the real axis) must appear as complex conjugate pair. This is important in order to ensure that the system is real and therefore realizable. Two examples will demonstrate this theory. EXAMPLE: Design a two-pole band-pass filter with a peak at f0=100 Hz. Place poles at R=0.992 distance from the centre of the unit circle in the z-plane. Find the transfer function, frequency response and difference equation for this filter. What is the bandwidth of this filter?

Two pole band-pass filter will have a transfer function of the form:

H ( z) = = =

G (1 pz )(1 p* z 1 )
1

(1 R e

j0

G 1 R e j0 z 1 z
1

)(

G 1 + a1 z + a2 z 2
1

where p and p* represent the complex conjugate pair of filter poles. To design this filter we need to determine filter parameters G (filter gain), a1 and a2 (filter coefficients). Equations for filter coefficients can be derived from obtained filter transfer function as:

a1 = 2 R cos 0 a2 = R 2
Filter gain is derived from filter normalisation requirement, i.e. from H ( 0 ) = 1 it can be derived that:

G = (1 R ) 1 2 R cos ( 20 ) + R 2
Using filter specification given in the question and normalising filter peak frequency, i.e.

0 =

## G = 2.518 103 a1 = 1.956 a2 = 0.96

Expression for filter transfer function is therefore: H ( z ) = Expression for filter frequency response: H ( ) =

## 2.518 103 1 1.956e j + 0.96e 2 j

M518 Mixed Signal Processors Filter Design Using Pole-Zero Placement Method

page 3 of 6

Filter frequency response will have a single peak at specified pass frequency of the filter 0.

## Filter Frequency Response

Filter Magnitude Rersponse
1

0.1 H( ) 0.01

110

0.01

0.1

10

Angular Frequency
Starting from transfer function for this filter we have:

H ( z) =

Y ( z)

Y ( z ) (1 + a1 z 1 + a2 z 2 ) = GX ( z ) Y ( z ) = GX ( z ) a1 z 1Y ( z ) a2 z 2Y ( z )
Applying the inverse z-transform to the equation above we obtain a difference equation which needs to be implemented in the real-time, signal processing program.

X ( z)

G 1 + a1 z + a2 z 2
1

## y ( n ) = Gx ( n ) a1 y ( n 1) a2 y ( n 2 ) = 2.518 103 x ( n ) + 1.956 y ( n 1) 0.96 y ( n 2 )

Bandwidth of the filter can be obtained from the relation:

## = 2 (1 R ) , i.e. = 2 (1 0.992 ) = 0.016

which corresponds to f =

f s = 25.5 Hz 2

M518 Mixed Signal Processors Filter Design Using Pole-Zero Placement Method

page 4 of 6

EXAMPLE:

Design a notch filter with the following specification: Notch frequency: 50 Hz 3 dB notch width: 5 Hz Sampling frequency: 500 Hz

To reject a 50 Hz component we place a pair of complex zeros at points on the unit circle corresponding to 50 Hz, i.e. at angles:

0 =

## 2 f n 2 50 = = 0.2 = 360 fs 500

To achieve a sharp notch filter and improve amplitude response on either side of the notch frequency, a pair of complex conjugate poles can be placed at a distance/radius R from the centre of the unit circle. The width of the notch, i.e. filter bandwidth is determined by the location of the poles and given by relation:

= 2 (1 R )

Therefore, the pole magnitude can be obtained as: R = 1 Diagram below shows the filter pole-zero plot in the z-plane. Im

= 1 2

f fs = 0.937168 . 2

z0 R 0 p0 Re

p1

z1

## Transfer function of the filter will be of the form:

H ( z) =

( z e )( z e ) = ( z R e )( z R e )
j0 j0 j0 j0

( z z0 )( z z1 ) ( z p0 )( z p1 )

M518 Mixed Signal Processors Filter Design Using Pole-Zero Placement Method

page 5 of 6

Replacing with obtained poles and zeros and doing some calculations we get:

( z e )( z e ) H ( z) = ( z 0.937 e )( z 0.937 e )
j 360 j 360 j 360 j 360

## z 2 1.618 z + 1 z 2 1.5164 z + 0.8783 1 1.618 z 1 + z 2 = 1 1.5164 z 1 + 0.8783 z 2 =

This leads to a difference equation for this filter:

Y ( z)

X ( z)

## 1 1.618 z 1 + z 2 1 1.5164 z 1 + 0.8783 z 2

M518 Mixed Signal Processors Filter Design Using Pole-Zero Placement Method

page 6 of 6

Slightly more complex example. EXAMPLE: A DSP system operating at a sampling rate of 500 Hz is plagued by 50 Hz frequency interference noise from power lines and its harmonics. Design a notch filter that removes all of these harmonics but remains flat at other frequencies.

## The fundamental harmonic is:

1 =

2 f1 2 50 = = 0.2 500 fs

The other harmonics at fi=if1 correspond to i=i1. There are 10 harmonics that lie within the Nyquist interval [0,fs]; namely, fi for i=0,1,,9. Because fs=10f1 all the harmonics that lie outside the Nyquist interval (if they have not been filtered out by the aliasing prefilter) will be aliased onto harmonics inside the interval. For example the harmonic f11=11f1 gets aliased with f11-fs= f11-10f1=f1 and so on. Our digital notch filter therefore must be designed to have notches at the 10 frequencies within the Nyquist interval:

1 = i1 =

2 i 10
9

i = 0,1,...,9

## These 10 frequencies correspond to 10 roots fo the polynomial:

N ( z ) = 1 z10 = 1 e ji z
i =0

## The notch filter is then obtained by:

H ( z) =
where R= 10.

N ( 1 z )

N ( z)

1 z 10 1 z 10 = 1 10 z 10 1 R z 10

Choosing the radius of the poles of the above transfer function close to the unit circle, e.g. =0.998 will result in very sharp notches at the desired frequencies. At other frequencies the magnitude response will essentially remain flat.