Download presentation
Presentation is loading. Please wait.
Published byErika Robbins Modified over 9 years ago
1
1 Prof. Nizamettin AYDIN naydin@yildiz.edu.tr http://www.yildiz.edu.tr/~naydin Digital Signal Processing
2
2 Lecture 13 Digital Filtering of Analog Signals of Analog Signals Digital Signal Processing
3
3 License Info for SPFirst Slides This work released under a Creative Commons License with the following terms:Creative Commons License Attribution The licensor permits others to copy, distribute, display, and perform the work. In return, licensees must give the original authors credit. Non-Commercial The licensor permits others to copy, distribute, display, and perform the work. In return, licensees may not use the work for commercial purposes—unless they get the licensor's permission. Share Alike The licensor permits others to distribute derivative works only under a license identical to the one that governs the licensor's work. Full Text of the License This (hidden) page should be kept with the presentation
4
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
5
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-D x(t)y(t)y[n]y[n]x[n]x[n] FIR
6
6 TIME & FREQUENCY FIR DIFFERENCE EQUATION is the TIME-DOMAIN
7
7 Ex: DELAY by 2 SYSTEM y[n]y[n]x[n]x[n] y[n]y[n]x[n]x[n]
8
8 DELAY by 2 SYSTEM k = 2 ONLY y[n]y[n]x[n]x[n] y[n]y[n]x[n]x[n]
9
9 GENERAL DELAY PROPERTY ONLY ONE non-ZERO TERM for k at k = n d
10
10 FREQ DOMAIN --> TIME ?? START with y[n]y[n]x[n]x[n] y[n]y[n]x[n]x[n]
11
11 FREQ DOMAIN --> TIME EULER’s Formula
12
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 MAG PHASE
13
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)
14
14 PLOT of FREQ RESPONSE RESPONSE at /3
15
15 EXAMPLE 6.2 y[n]y[n]x[n]x[n]
16
16 EXAMPLE 6.2 (answer)
17
17 EXAMPLE: COSINE INPUT y[n]x[n]
18
18 EX: COSINE INPUT (ans-1)
19
19 EX: COSINE INPUT (ans-2)
20
20 SINUSOID thru FIR IF Multiply the Magnitudes Add the Phases
21
21 LTI Demo with Sinusoids FILTER x[n]x[n] y[n]y[n]
22
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-D x(t)y(t)y[n]y[n]x[n]x[n]
23
23 FREQUENCY SCALING TIME SAMPLING: –IF NO ALIASING: –FREQUENCY SCALING D-to-A A-to-D x(t)y(t)y[n]y[n]x[n]x[n]
24
24 11-pt AVERAGER Example D-to-AA-to-D x(t)y(t)y[n]y[n]x[n]x[n] 250 Hz 25 Hz ?
25
25 D-A FREQUENCY SCALING RECONSTRUCT up to 0.5f s –FREQUENCY SCALING D-to-A A-to-D x(t)y(t)y[n]y[n]x[n]x[n] TIME SAMPLING:
26
26 TRACK the FREQUENCIES D-to-AA-to-D x(t)y(t)y[n]y[n]x[n]x[n] Fs = 1000 Hz 0.5 .05 0.5 .05 250 Hz 25 Hz NO new freqs 250 Hz 25 Hz
27
27 11-pt AVERAGER NULLS or ZEROS
28
28 EVALUATE Freq. Response
29
29 EVALUATE Freq. Response f s = 1000 MAG SCALE PHASE CHANGE
30
30 EFFECTIVE RESPONSE DIGITAL FILTER LOW-PASS FILTER
31
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)
32
32 B & W IMAGE
33
33 B&W IMAGE with COSINE FILTERED: 11-pt AVG
34
34 FILTERED B&W IMAGE LPF: BLUR
35
35 ROW of B&W IMAGE BLACK = 255 WHITE = 0
36
36 FILTERED ROW of IMAGE ADJUSTED DELAY by 5 samples
37
37 EFFECTIVE Freq. Response Assume NO Aliasing, then –ANALOG FREQ DIGITAL FREQ –So, we can plot: –Scaled Freq. Axis ANALOG FREQUENCY DIGITAL FILTER
38
38 TIME & FREQ DOMAINS LTI: Linear & Time-Invariant –COMPLETELY CHARACTERIZED by: IMPULSE RESPONSE h[n] (time domain) FREQUENCY RESPONSE Two DOMAINS: time & frequency –Go back and forth QUICKLY x[n]y[n]
39
39 SINUSOID thru FIR ADD PHASESMULTIPLY MAGS
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.