Docsity

Digital Signal Processing materials, Lecture notes of Digital Signal Processing

Partial preview of the text

Download Digital Signal Processing materials and more Lecture notes Digital Signal Processing in PDF only on Docsity!

2002-10-

Dan Ellis

1

ELEN E4810: Digital Signal Processing

Topic 6:

Filters - Introduction

Simple Filters

Ideal Filters

Linear Phase and FIR filter types

2002-10-

Dan Ellis

2

1. Simple Filters^ 

Filter

= system for altering signal in

some ‘useful’ way  LSI systems:

^

are characterized by H(z) (or h[n]) ^

have different gains (& phase shifts) atdifferent frequencies ^

can be designed systematically for specificfiltering tasks

2002-10-

Dan Ellis

4

Simple FIR Lowpass^ 

h

[L

n

] = {

2

(2 pt moving avg.) H

L

z( ) =

(^1 )

z

−^1

(^

) =

z

z

×

1 ZP

zero at^ z

= -

H

L

e

j^ ω (^

) =

e

−^

j^ ω

2

cos

(^

n

-^

1

2

3

4

1 / 2

h

[L n ]

ω π

|H

(L

je ω)

|

1 /

2

sample delay

j e ω/

+e

-j^ ω

/

2002-10-

Dan Ellis

5

 Filters are oftencharacterized by theircutoff frequency

ω

:c

 Cutoff frequency is most often definedas the

half-power

point i.e.

 H e^ If then

j^ ω

c

(^

)^

2

(^1 )

max

H e

j^ ω

(^

)^

2

H

1 2

H

max

Simple FIR Lowpass

ω

ω

c

|H

(e

j^ ω

)|

H e

j^ ω

(^

cos

(^

)

c^

2 cos

−^1

1 2

π^2

2002-10-

Dan Ellis

7

 We often plot magnitudes in dB:  A gain of 0 corresponds to -

dB

0

1

0.8 0.6 0.4 0.2^0 1/√

(^12)

ω /π

)|ωj |H(e

0

1

(^0) -3-5 -10 -15 -

ω /π

)| / dBωj |H(e

deciBels

2002-10-

Dan Ellis

8

Simple FIR Highpass^ 

h

H

[n

] = {

2

/^2

 3dB point

ω

c^

π/

2

(again)

H

H

z( ) =

1 2

z

−^1

(^

) =

z

z^

zero at^ z^1 ZP

= 1

H

H

e

j^ ω (^

) =

je

−^

j^ ω

2

sin

(^

)

ω π

|H

H (e

j^ ω

)|

n

-^

2

3

4

1 / 2

h H [n

]

(^1) - /^2

ω

c

2002-10-

Dan Ellis

10

-^

0

1

(^10) -

z-plane

freq

ω^ /

π

)|ω (^) j |H(e

)|ω (^) j |H(e

freq

ω^ /

π

0

1

(^1) 0.5 0

-2 10

-1 10

(^010)

010 -1 10 -2 10

α^

α→

1

α→

1

Simple IIR Lowpass^ IIR

feedback, zeros and poles,

conditional stability,

h

[n

]^

less useful

H

LP

z( ) =

K

z

−^1

z −^1

scale to make gain = 1 at

ω

= 0

→

K

= (1 -

α

)/

pole-zerodiagram

frequencyresponse

FR on log-log axes

2002-10-

Dan Ellis

11

Simple IIR Lowpass^ 

Cutoff freq.

ω

c^

from

H

LP

z( ) =

K

z

−^1

z

−^1 H

LP

e

j^ ω

c

(^

)^

2

max

max = 1 using

K

=(1-

α

)/

(^

(^2) )

4

e

−^

j^ ω

c

(^

)^

e

j^ ω

c

(^

)

e

−^

j^ ω

c

(^

)^

e

j^ ω

c

(^

)

cos

c^

2

sin

c

cos

c

Design Equation

2002-10-

Dan Ellis

13

Highpass and Lowpass^ 

Consider lowpass filter:  Then:  However,(unless

H

(e

j^ ω

)^

is pure real - not for IIR)

H

LP

e

j^ ω (^

) =

ω ≈

large

ω

H

LP

e

j^ ω (^

) =

large

  • Highpass
H

LP

z( )

H

LP

z( )

  • c/w

(-1)

nh

[n

]

just another z poly

2002-10-

Dan Ellis

14

Simple IIR Bandpass

H

BP

z( ) =

z

−^2

(^

z) −^1

z −^2

K

z

−^1

(^

)^

z

−^1

(^

)

r^

cos

z

−^1

r

2 z

−^2

whereCenter freq3dB bandwidth

r^

α

cos

θ =

β

α

(^

α

B

cos

−^1

2

 ^ 

c^

cos

−^1

Design

2002-10-

Dan Ellis

16

Simple IIR Bandstop^ 

Design eqns:

ω^ /^

π ω^ /^

π

)|^ jw^ |H(e^ )| / dB^ jw |H(e

-^

0

1

(^1) 0.5 (^0) -0.5-1^0

1

(^1) 0.5 0 -2 10

-1 10

(^010)

(^0) -10 -20 -30 -

z-plane

H

BS

z( ) =

z −^1

z

−^2

(^

z) −^1

z −^2

zeros at

ω

c

same poles as

H

BP

B

cos

−^1

2

 ^ 

cos

B

cos

2

B

c^

cos

−^1

cos

c

2002-10-

Dan Ellis

17

Cascading Filters^ 

Repeating

a filter (cascade connection)

makes its characteristics more abrupt:  Repeated roots in z-plane:

H

(e

j^ ω

)

H

(e

j^ ω

)^

H

(e

j^ ω

)^

H

(e

j^ ω

)

ω

|H

(e

j^ ω

)|^

ω

|H

(e

j^ ω

(^3) )|

1 ZP

2002-10-

Dan Ellis

19

10

-^

10

-^

10 0

(^0) -10 -20 -30 -40 -50 -

2nd order

-6dB/oct -12dB/oct4th order

ω/

π

)|ω je ( H |

Cascading Filters^ 

Cascading filters improves rolloff slope:  But: 3dB cutoff frequency will change(gain at

ω

c^

N

dB)

ω

c

2002-10-

Dan Ellis

20

2. Ideal filters^ 

Typical filter requirements:

^

gain = 1 for wanted parts (pass band) ^

gain = 0 for unwanted parts (stop band)

 “Ideal” characteristicswould be like:

^

no phase distortion etc.

 What is this filter?

^

can calculate IR

h

[n

]^

as IDFT of ideal

response...

ω

|H

(e

j^ ω

)|^

“brickwallLP filter”