digital filters (iir).ppt

28
1 AGC DSP Professor A G Constantinides IIR Digital Filter IIR Digital Filter Design Design Standard approach (1) Convert the digital filter specifications into an analogue prototype lowpass filter specifications (2) Determine the analogue lowpass filter transfer function (3) Transform by replacing the complex variable to the digital transfer function ) ( s H a ) ( z G ) ( s H a

Upload: sujatanu

Post on 13-Apr-2015

80 views

Category:

Documents


0 download

DESCRIPTION

Digital filters (IIR)

TRANSCRIPT

Page 1: Digital filters (IIR).ppt

1

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital Filter DesignIIR Digital Filter Design

Standard approach (1) Convert the digital filter

specifications into an analogue prototype lowpass filter specifications

(2) Determine the analogue lowpass filter transfer function

(3) Transform by replacing the complex variable to the digital transfer function

)(sHa

)(zG

)(sHa

Page 2: Digital filters (IIR).ppt

2

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital Filter DesignIIR Digital Filter Design This approach has been widely used

for the following reasons:(1) Analogue approximation techniques are highly advanced(2) They usually yield closed-form solutions(3) Extensive tables are available for analogue filter design(4) Very often applications require digital simulation of analogue systems

Page 3: Digital filters (IIR).ppt

3

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital Filter DesignIIR Digital Filter Design

Let an analogue transfer function be

where the subscript “a” indicates the analogue domain

A digital transfer function derived from this is denoted as

)()(

)(sDsP

sHa

aa

)()(

)(zDzP

zG

Page 4: Digital filters (IIR).ppt

4

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital Filter DesignIIR Digital Filter Design Basic idea behind the conversion of

into is to apply a mapping from the s-domain to the z-domain so that essential properties of the analogue frequency response are preserved

Thus mapping function should be such that Imaginary ( ) axis in the s-plane be

mapped onto the unit circle of the z-plane

A stable analogue transfer function be mapped into a stable digital transfer function

)(sHa)(zG

j

Page 5: Digital filters (IIR).ppt

5

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital Filter: The bilinear IIR Digital Filter: The bilinear transformationtransformation

To obtain G(z) replace s by f(z) in H(s)

Start with requirements on G(z) G(z) Available H(s)

Stable Stable

Real and Rational in z

Real and Rational in s

Order n Order n

L.P. (lowpass) cutoff L.P. cutoff Tcc

Page 6: Digital filters (IIR).ppt

6

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital FilterIIR Digital Filter Hence is real and rational in

z of order one i.e.

For LP to LP transformation we require

Thus

)(zf

dczbaz

zf)(

1 0 zs 00)1( baf1 zjs 0)1( dcjf

11

.)(

zz

ca

zf

Page 7: Digital filters (IIR).ppt

7

AGC

DSP

AGC

DSP

Professor A G Constantinides

IIR Digital FilterIIR Digital Filter The quantity is fixed from

ie on

Or

and

ca

ccT

2tan.)( 1:

Tj

ca

zfzC c

2tan.

Tj

ca

j cc

1

1

1

1.

2tan

z

zT

sc

c

Page 8: Digital filters (IIR).ppt

8

AGC

DSP

AGC

DSP

Professor A G Constantinides

Bilinear TransformationBilinear Transformation Transformation is unaffected by scaling.

Consider inverse transformation with scale factor equal to unity

For

and so

ssz

11

oo js

22

222

)1()1(

)1()1(

oo

oo

oo

oo zjj

z

10 zo10 zo10 zo

Page 9: Digital filters (IIR).ppt

9

AGC

DSP

AGC

DSP

Professor A G Constantinides

Bilinear TransformationBilinear Transformation

Mapping of s-plane into the z-plane

Page 10: Digital filters (IIR).ppt

10

AGC

DSP

AGC

DSP

Professor A G Constantinides

Bilinear TransformationBilinear Transformation For with unity scalar we

have

or

)2/tan(11

j

eej j

j

jez

)2/tan(

Page 11: Digital filters (IIR).ppt

11

AGC

DSP

AGC

DSP

Professor A G Constantinides

Bilinear TransformationBilinear Transformation Mapping is highly nonlinear Complete negative imaginary axis in

the s-plane from to is mapped into the lower half of the unit circle in the z-plane from to

Complete positive imaginary axis in the s-plane from to is mapped into the upper half of the unit circle in the z-plane from to

0

0

1z 1z

1z 1z

Page 12: Digital filters (IIR).ppt

12

AGC

DSP

AGC

DSP

Professor A G Constantinides

Bilinear TransformationBilinear Transformation Nonlinear mapping introduces a

distortion in the frequency axis called frequency warping

Effect of warping shown below

Page 13: Digital filters (IIR).ppt

13

AGC

DSP

AGC

DSP

Professor A G Constantinides

Spectral TransformationsSpectral Transformations To transform a given lowpass

transfer function to another transfer function that may be a lowpass, highpass, bandpass or bandstop filter (solutions given by Constantinides)

has been used to denote the unit delay in the prototype lowpass filter and to denote the unit delay in the transformed filter to avoid confusion

)(zGL

)ˆ(zGD

1ˆz

1z)(zGL

)ˆ(zGD

Page 14: Digital filters (IIR).ppt

14

AGC

DSP

AGC

DSP

Professor A G Constantinides

Spectral TransformationsSpectral Transformations

Unit circles in z- and -planes defined by

, Transformation from z-domain to

-domain given by

Then

z

z

jez ˆ jez

)ˆ(zFz

)}ˆ({)ˆ( zFGzG LD

Page 15: Digital filters (IIR).ppt

15

AGC

DSP

AGC

DSP

Professor A G Constantinides

Spectral TransformationsSpectral Transformations

From , thus , hence

Therefore must be a stable allpass function

)ˆ(zFz )ˆ(zFz

1if,1

1if,1

1if,1

)ˆ(

z

z

z

zF

)ˆ(/1 zF

1,ˆ

ˆ1)ˆ(

1

1

*

L

zz

zF

Page 16: Digital filters (IIR).ppt

16

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Lowpass Lowpass-to-Lowpass Spectral TransformationSpectral Transformation To transform a lowpass filter with a

cutoff frequency to another lowpass filter with a cutoff frequency , the transformation is

On the unit circle we have

which yields

)(zGL

)ˆ(zGDc

c

zz

zFz

ˆˆ1

)ˆ(11

ˆ

ˆ

1 j

jj

eee

)2/ˆtan(11)2/tan(

Page 17: Digital filters (IIR).ppt

17

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Lowpass Lowpass-to-Lowpass Spectral TransformationSpectral Transformation Solving we get

Example - Consider the lowpass digital filter

which has a passband from dc to with a 0.5 dB ripple

Redesign the above filter to move the passband edge to

2/)ˆ(sin

2/)ˆ(sin

cc

cc

)3917.06763.01)(2593.01(

)1(0662.0)( 211

31

zzz

zzGL

25.0

35.0

Page 18: Digital filters (IIR).ppt

18

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Lowpass Lowpass-to-Lowpass Spectral TransformationSpectral Transformation

Here

Hence, the desired lowpass transfer function is

1934.0)3.0sin()05.0sin(

1

11

ˆ1934.011934.0ˆ)()ˆ(

zz

zLD zGzG

0 0.2 0.4 0.6 0.8 1-40

-30

-20

-10

0

/

Gai

n, d

B GL(z) G

D(z)

Page 19: Digital filters (IIR).ppt

19

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Lowpass Lowpass-to-Lowpass Spectral TransformationSpectral Transformation

The lowpass-to-lowpass transformation

can also be used as highpass-to-highpass, bandpass-to-bandpass and bandstop-to-bandstop transformations

zz

zFz

ˆˆ1

)ˆ(11

Page 20: Digital filters (IIR).ppt

20

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Highpass Lowpass-to-Highpass Spectral TransformationSpectral Transformation

Desired transformation

The transformation parameter is given by

where is the cutoff frequency of the lowpass filter and is the cutoff frequency of the desired highpass filter

1

11

ˆ1ˆ

z

zz

2/)ˆ(cos

2/)ˆ(cos

cc

cc

cc

Page 21: Digital filters (IIR).ppt

21

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Highpass Lowpass-to-Highpass Spectral TransformationSpectral Transformation Example - Transform the lowpass

filter

with a passband edge at to a highpass filter with a passband edge at

Here The desired transformation is

)3917.06763.01)(2593.01(

)1(0662.0)( 211

31

zzz

zzGL

25.055.0

3468.0)15.0cos(/)4.0cos(

1

11

ˆ3468.01

3468.0ˆ

z

zz

Page 22: Digital filters (IIR).ppt

22

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Highpass Lowpass-to-Highpass Spectral TransformationSpectral Transformation

The desired highpass filter is

1

11

ˆ3468.013468.0ˆ)()ˆ(

zz

zD zGzG

0 0.2 0.4 0.6 0.8

80

60

40

20

0

Normalized frequency

Gai

n, d

B

Page 23: Digital filters (IIR).ppt

23

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Highpass Lowpass-to-Highpass Spectral TransformationSpectral Transformation

The lowpass-to-highpass transformation can also be used to transform a highpass filter with a cutoff at to a lowpass filter with a cutoff at

and transform a bandpass filter with a center frequency at to a bandstop filter with a center frequency at

cc

oo

Page 24: Digital filters (IIR).ppt

24

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Bandpass Lowpass-to-Bandpass Spectral TransformationSpectral Transformation Desired transformation

1ˆ1

11

11

ˆ1

12

12

1

zz

zzz

Page 25: Digital filters (IIR).ppt

25

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Bandpass Lowpass-to-Bandpass Spectral TransformationSpectral Transformation

The parameters and are given by

where is the cutoff frequency of the lowpass filter, and and are the desired upper and lower cutoff frequencies of the bandpass filter

)2/tan(2/)ˆˆ(cot 12 ccc

2/)ˆˆ(cos

2/)ˆˆ(cos

12

12

cc

cc

c1ˆc 2ˆc

Page 26: Digital filters (IIR).ppt

26

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Bandpass Lowpass-to-Bandpass Spectral TransformationSpectral Transformation

Special Case - The transformation can be simplified if

Then the transformation reduces to

where with denoting the desired center frequency of the bandpass filter

12 ˆˆ ccc

o ˆcos o

1

111

ˆ1

ˆˆ

z

zzz

Page 27: Digital filters (IIR).ppt

27

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Bandstop Lowpass-to-Bandstop Spectral TransformationSpectral Transformation

Desired transformation

1ˆ12

ˆ11

11

ˆ12

ˆ

12

12

1

zz

zzz

Page 28: Digital filters (IIR).ppt

28

AGC

DSP

AGC

DSP

Professor A G Constantinides

Lowpass-to-Bandstop Lowpass-to-Bandstop Spectral TransformationSpectral Transformation

The parameters and are given by

where is the cutoff frequency of the lowpass filter, and and are the desired upper and lower cutoff frequencies of the bandstop filter

c

1ˆc 2ˆc

2/)ˆˆ(cos

2/)ˆˆ(cos

12

12

cc

cc

)2/tan(2/)ˆˆ(tan 12 ccc