+ All Categories
Home > Documents > Digital Signal Processing

Digital Signal Processing

Date post: 18-Jan-2016
Category:
Upload: afya
View: 49 times
Download: 0 times
Share this document with a friend
Description:
Digital Signal Processing. Prof. Nizamettin AYDIN naydin @ yildiz .edu.tr http:// www . yildiz .edu.tr/~naydin. Digital Signal Processing. Lecture 13 Digital Filtering of Analog Signals. READING ASSIGNMENTS. This Lecture: Chapter 6, Sections 6-6, 6-7 & 6-8 Other Reading: - PowerPoint PPT Presentation
Popular Tags:
35
1 Prof. Nizamettin AYDIN naydin @ yildiz .edu.tr http://www.yildiz.edu.tr/~naydin Digital Signal Processing
Transcript
Page 1: Digital  Signal Processing

1

Prof. Nizamettin AYDIN

[email protected]

http://www.yildiz.edu.tr/~naydin

Digital Signal Processing

Page 2: Digital  Signal Processing

2

Lecture 13

Digital FilteringDigital Filtering

of Analog Signalsof Analog Signals

Digital Signal Processing

Page 3: Digital  Signal Processing

4

READING ASSIGNMENTS

• This Lecture:– Chapter 6, Sections 6-6, 6-7 & 6-8

• Other Reading:– Recitation: Chapter 6

• FREQUENCY RESPONSE EXAMPLES

– Next Lecture: Chapter 7

Page 4: Digital  Signal Processing

5

LECTURE OBJECTIVES

• Two Domains: Time & Frequency

• Track the spectrum of x[n] thru an FIR Filter: Sinusoid-IN gives Sinusoid-OUT

• UNIFICATION: How does Frequency Response affect x(t) to produce y(t) ?

D-to-AA-to-Dx(t) y(t)y[n]x[n] )( jeH

FIR

Page 5: Digital  Signal Processing

6

TIME & FREQUENCY

FIR DIFFERENCE EQUATION is the TIME-DOMAIN

M

k

M

kk knxkhknxbny

00

][][][][

M

k

kjj ekheH0

ˆˆ ][)(

ˆ3ˆ2ˆˆ ]3[]2[]1[]0[)( jjjj ehehehheH

Page 6: Digital  Signal Processing

7

Ex: DELAY by 2 SYSTEM

y[n]x[n] )( jeH

y[n]x[n] ][nh

]2[][for )( and ][ Find ˆ nxnyeHnh j

]2[][ nnh

}1,0,0{kb

Page 7: Digital  Signal Processing

8

DELAY by 2 SYSTEM

k = 2 ONLY

y[n]x[n] ]2[ n

]2[][for )( and ][ Find ˆ nxnyeHnh j

M

k

kjj ekeH0

ˆˆ ]2[)(

)( jeHy[n]x[n] 2je

Page 8: Digital  Signal Processing

9

GENERAL DELAY PROPERTY

ONLY ONE non-ZERO TERM for k at k = nd

dnjM

k

kjd

j eenkeH ˆ

0

ˆˆ ][)(

][][for )( and ][ Find ˆd

j nnxnyeHnh

][][ dnnnh

Page 9: Digital  Signal Processing

10

FREQ DOMAIN --> TIME ??

• START with

kj bnheH or find and ][)(

)ˆcos(7)( ˆ2ˆ jj eeH

y[n]x[n] ][nh ?][ nh

y[n]x[n])( jeH

Page 10: Digital  Signal Processing

11

FREQ DOMAIN --> TIME

EULER’s Formula)ˆcos(7)( ˆ2ˆ jj eeH )5.05.0(7 ˆˆˆ2 jjj eee

)5.35.3( ˆ3ˆ jj ee

]3[5.3]1[5.3][ nnnh

}5.3,0,5.3,0{kb

Page 11: Digital  Signal Processing

12

PREVIOUS LECTURE REVIEW• SINUSOIDAL INPUT SIGNAL

– OUTPUT has SAME FREQUENCY– DIFFERENT Amplitude and Phase

• FREQUENCY RESPONSE of FIR– MAGNITUDE vs. Frequency– PHASE vs. Freq– PLOTTING

)(ˆˆ ˆ

)()( jeHjjj eeHeH

MAG

PHASE

Page 12: Digital  Signal Processing

13

FREQ. RESPONSE PLOTS

• DENSE GRID (ww) from - to +–ww = -pi:(pi/100):pi;

•HH = freqz(bb,1,ww)– VECTOR bb contains Filter Coefficients– DSP-First: HH = freekz(bb,1,ww)

M

k

kjk

j ebeH0

ˆˆ )(

Page 13: Digital  Signal Processing

14

PLOT of FREQ RESPONSE

ˆˆ )ˆcos22()( jj eeH RESPONSE at /3

}1,2,1{}{ kb

(radians)

Page 14: Digital  Signal Processing

15

EXAMPLE 6.2

y[n]x[n])( jeH

ˆˆ )ˆcos22()( jj eeH

njj

j

eenx

eHny)3/(4/

ˆ

2][ and

known is )( when][ Find

Page 15: Digital  Signal Processing

16

njj eenxny )3/(4/2][ when][ Find

EXAMPLE 6.2 (answer)

3/ˆat )( evaluate -Step One ˆ jeH

ˆˆ )ˆcos22()( jj eeH

3/ˆ@3)( 3/ˆ jj eeH

njjj eeeny )3/(4/3/ 23][ njj ee )3/(12/6

Page 16: Digital  Signal Processing

17

EXAMPLE: COSINE INPUT

)cos(2][ and

known is )( when][ Find

43

ˆ

nnx

eHny j

ˆˆ )ˆcos22()( jj eeH

y[n]x[n])( jeH

Page 17: Digital  Signal Processing

18

EX: COSINE INPUT (ans-1)

)cos(2][ when][ Find 43 nnxny

][][][

)cos(2

21

)4/3/()4/3/(43

nxnxnx

een njnj

][][][)(][

)(][

21

)4/3/(3/2

)4/3/(3/1

nynynyeeHny

eeHnynjj

njj

Page 18: Digital  Signal Processing

19

EX: COSINE INPUT (ans-2)

)cos(2][ when][ Find 43 nnxny

)4/3/()3/()4/3/(3/2

)4/3/()3/()4/3/(3/1

3)(][

3)(][

njjnjj

njjnjj

eeeeHny

eeeeHny

)cos(6][

33][

123

)12/3/()12/3/(

nny

eeny njnj

ˆˆ )ˆcos22()( jj eeH

Page 19: Digital  Signal Processing

20

SINUSOID thru FIR

• IF

• Multiply the Magnitudes

• Add the Phases

))(ˆcos()(][

)ˆcos(][

11 ˆ1

ˆ

1

jj eHneHAny

nAnx

)()( ˆˆ* jj eHeH

Page 20: Digital  Signal Processing

21

LTI Demo with Sinusoids

FILTER

x[n]y[n]

Page 21: Digital  Signal Processing

22

DIGITAL “FILTERING”

– SPECTRUM of x(t) (SUM of SINUSOIDS)– SPECTRUM of x[n]

• Is ALIASING a PROBLEM ?

– SPECTRUM y[n] (FIR Gain or Nulls)– Then, OUTPUT y(t) = SUM of SINUSOIDS

D-to-AA-to-Dx(t) y(t)y[n]x[n] )( jeH

Page 22: Digital  Signal Processing

23

FREQUENCY SCALING

• TIME SAMPLING:– IF NO ALIASING:– FREQUENCY SCALING

D-to-AA-to-Dx(t) y(t)y[n]x[n] )( jeH

ˆ ˆ

sfsT ˆ

snTt

Page 23: Digital  Signal Processing

24

11-pt AVERAGER Example

D-to-AA-to-Dx(t) y(t)y[n]x[n] )( jeH

ˆ ˆ

250 Hz

25 Hz ?))250(2cos())25(2cos()( 2

1 tttx

ˆ5

21

211

ˆ

)ˆsin(11

)ˆsin()( jj eeH

10

0111 ][][

k

knxny

Page 24: Digital  Signal Processing

25

D-A FREQUENCY SCALING

• RECONSTRUCT up to 0.5fs

– FREQUENCY SCALING

D-to-AA-to-Dx(t) y(t)y[n]x[n] )( jeH

ˆ ˆ

• TIME SAMPLING:

sf ˆ

ss ftnnTt

Page 25: Digital  Signal Processing

26

TRACK the FREQUENCIES

D-to-AA-to-Dx(t) y(t)y[n]x[n] )( jeH

ˆ ˆ

Fs = 1000 Hz

• 0.5

• .05

• 0.5

• .05

• 250 Hz

• 25 Hz

NO new freqs

• 250 Hz

• 25 Hz )(

)(

05.0

5.0

j

j

eH

eH

Page 26: Digital  Signal Processing

27

11-pt AVERAGER

NULLS or ZEROS

5.0ˆ 05.0ˆ

Page 27: Digital  Signal Processing

28

EVALUATE Freq. Response

ˆ5

21

211

ˆ

)ˆsin(11

)ˆsin()( jj eeH

)5.0(5

21

211

ˆ

))5.0(sin(11

))5.0(sin()(

jj eeH

5.0ˆAt

5.2

)25.0sin(11

)75.2sin( je

5.00909.0 je

Page 28: Digital  Signal Processing

29

EVALUATE Freq. Response

fs = 1000

MAG SCALE

PHASE CHANGE

)( 1000/)25(2jeH

)( 1000/)250(2jeH

Page 29: Digital  Signal Processing

30

EFFECTIVE RESPONSE

DIGITAL FILTER

LOW-PASS FILTER

)( jeH

Page 30: Digital  Signal Processing

31

FILTER TYPES

• LOW-PASS FILTER (LPF)– BLURRING

– ATTENUATES HIGH FREQUENCIES

• HIGH-PASS FILTER (HPF)– SHARPENING for IMAGES

– BOOSTS THE HIGHS

– REMOVES DC

• BAND-PASS FILTER

(BPF)

Page 31: Digital  Signal Processing

32

B & W IMAGE

Page 32: Digital  Signal Processing

33

B&W IMAGE with COSINE

FILTERED: 11-pt AVG

Page 33: Digital  Signal Processing

34

FILTERED B&W IMAGE

LPF:BLUR

Page 34: Digital  Signal Processing

35

ROW of B&W IMAGE

BLACK = 255

WHITE = 0

Page 35: Digital  Signal Processing

36

FILTERED ROW of IMAGE

ADJUSTED DELAY by 5 samples


Recommended