digital filter design_2nd

17
DIGITAL FILTER DESIGN 1

Upload: ila

Post on 21-Dec-2015

219 views

Category:

Documents


0 download

DESCRIPTION

Design of digital filter FIR and IIRbrief discussion on filters

TRANSCRIPT

Page 1: Digital Filter Design_2nd

1

DIGITAL FILTER DESIGN

Page 2: Digital Filter Design_2nd

2

Spectral Transformations ofIIR Digital Filters

• Objective - Transform a given lowpass digital transfer function GL(z) to another digital transfer function GD(ẑ) that could be a lowpass, highpass, bandpass or bandstop filter.

• z-1 has been used to denote the unit delay in the prototype lowpass filter GL(z) and ẑ-1 to denote the unit delay in the transformed filter GD(ẑ) to avoid confusion.

Page 3: Digital Filter Design_2nd

3

Spectral Transformations ofIIR Digital Filters

• Unit circles in z- and ẑ-planes defined by

• Transformation from z-domain to ẑ-domain given by

• Then

ˆjˆ, z = ejz e

( )ˆz F z

ˆ ˆD LG z G F z

Page 4: Digital Filter Design_2nd

4

Spectral Transformations ofIIR Digital Filters

• From , thus , hence

• Therefore 1/F(ẑ) must be a stable allpass function

( )ˆz F z ˆz F z

1, if 1

ˆ 1, if 1

1, if 1

z

F z z

z

*

1

ˆ11, 1

ˆ ˆ

Ll

ll l

z

F z z

Page 5: Digital Filter Design_2nd

5

Lowpass-to-LowpassSpectral Transformation

• To transform a lowpass filter GL(z) with a cutoff frequency ωc to another lowpass filter GD(ẑ) with a cutoff frequency , the transformation is

• On the unit circle we have

Which yields

ˆc

1 ˆ1 1

ˆ ˆz

zF z z

ˆ

ˆ1

jj

j

ee

e

1ˆtan 2 tan 2

1

Page 6: Digital Filter Design_2nd

6

Lowpass-to-LowpassSpectral Transformation

• Solving we get

• Example - Consider the lowpass digital filter

which has a passband from dc to 0.25π with a 0.5 dB ripple.

• Redesign the above filter to move the passband edge to 0.35π.

ˆsin 2

ˆsin 2c c

c c

31

1 1 2

0.0662 1

1 0.2593 1 0.6763 0.3917L

zG z

z z z

Page 7: Digital Filter Design_2nd

7

Lowpass-to-LowpassSpectral Transformation

• Here

• Hence, the desired lowpass transfer function is

sin 0.050.1934

sin 0.3

11

1

ˆ 0.1934

ˆ1 0.1934

ˆ zD L zz

G z G z

Page 8: Digital Filter Design_2nd

8

Lowpass-to-LowpassSpectral Transformation

• The lowpass-to-lowpass transformation

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

1 ˆ1 1

ˆ ˆz

zF z z

Page 9: Digital Filter Design_2nd

9

Lowpass-to-HighpassSpectral Transformation

• Desired transformation

• The transformation parameter α is given by

where ωc is the cutoff frequency of the lowpass filter and is the cutoff frequency of the desired highpass filter.

11

1

ˆ

ˆ1

zz

z

ˆcos 2

ˆcos 2c c

c c

ˆc

Page 10: Digital Filter Design_2nd

10

Lowpass-to-HighpassSpectral Transformation

• Example - Transform the lowpass filter

with a passband edge at 0.25π to a highpass filter with a passband edge at 0.55π.

• Here, • The desired transformation is

31

1 1 2

0.0662 1

1 0.2593 1 0.6763 0.3917L

zG z

z z z

cos 0.4 cos 0.15 0.3468

11

1

ˆ 0.3468ˆ1 0.3468

zz

z

Page 11: Digital Filter Design_2nd

11

Lowpass-to-HighpassSpectral Transformation

• The desired highpass filter is

11

1

ˆ 0.3468

ˆ1 0.3468

ˆ zD L zz

G z G z

Page 12: Digital Filter Design_2nd

12

Lowpass-to-HighpassSpectral Transformation

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

• And transform a bandpass filter with a center frequency at ω0 to a bandstop filter with a center frequency at

ˆc

0ˆ .

Page 13: Digital Filter Design_2nd

13

Lowpass-to-BandpassSpectral Transformation

• Desired transformation

2 1

1

2 1

2 1ˆ ˆ

1 11 2

ˆ ˆ 11 1

z zz

z z

Page 14: Digital Filter Design_2nd

14

Lowpass-to-BandpassSpectral Transformation

• The parameters α and β are given by

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

2 1

2 1

ˆ ˆcos 2

ˆ ˆcos 2c c

c c

2 1ˆ ˆcot 2 tan 2c c c

1ˆc 2ˆc

Page 15: Digital Filter Design_2nd

15

Lowpass-to-BandpassSpectral 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.

2 1ˆ ˆc c c

11 1

1

ˆˆ

ˆ1

zz z

z

0ˆcos 0̂

Page 16: Digital Filter Design_2nd

16

Lowpass-to-BandstopSpectral Transformation

• Desired transformation

2 1

1

2 1

2 1ˆ ˆ

1 11 2

ˆ ˆ 11 1

z zz

z z

Page 17: Digital Filter Design_2nd

17

Lowpass-to-BandstopSpectral Transformation

• The parameters α and β are given by

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

2 1

2 1

ˆ ˆcos 2

ˆ ˆcos 2c c

c c

2 1ˆ ˆtan 2 tan 2c c c

1ˆc 2ˆc