Presentation is loading. Please wait.

Presentation is loading. Please wait.

Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency.

Similar presentations


Presentation on theme: "Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency."— Presentation transcript:

1 Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency Domain The Sampling Theorem - the Nyquist Rate In the Time Domain: Interpolation Undersampling and Aliasing Review/Examples of Sampling/Aliasing DT Processing of CT Signals

2 SAMPLING  We live in a continuous-time world: most of the signals we encounter are CT signals, e.g. x(t).  How do we convert them into DT signals x[n]?  Sampling, taking snap shots of x(t) every T seconds  T sampling period  x [n] ≡x (nT), n =..., -1, 0, 1, 2,... regularly spaced samples  Applications and Examples  Digital Processing of Signals  Strobe  Images in Newspapers  Sampling Oscilloscope  …  How do we perform sampling? Book Chapter#: Section# Computer Engineering Department, Signal and Systems 2

3 Why/When Would a Set of Samples Be Adequate?  Observation: Lots of signals have the same samples  By sampling we throw out lots of information (all values of x(t) between sampling points are lost).  Key Question for Sampling:  Under what conditions can we reconstruct the original CT signal x(t) from its samples? Book Chapter#: Section# Computer Engineering Department, Signal and Systems 3

4 Impulse Sampling: Multiplying x(t) by the sampling function     Book Chapter#: Section# Computer Engineering Department, Signal and Systems 4

5 Analysis of Sampling in the Frequency Domain  Multiplication Property: Book Chapter#: Section# Computer Engineering Department, Signal and Systems 5 Sampling Frequency Important to note:

6 Illustration of sampling in the frequency-domain for a band-limited signal (X(jω)=0 for |ω| > ω M )  drawn assuming:  Book Chapter#: Section# Computer Engineering Department, Signal and Systems 6 No overlap between shifted spectra

7 Reconstruction of x(t) from sampled signals  If there is no overlap between shifted spectra, a LPF can reproduce x(t) from x p (t) Book Chapter#: Section# Computer Engineering Department, Signal and Systems 7

8 Reconstruction of x(t) from sampled signals  Suppose x(t) is band-limited, so that :  Then x(t) is uniquely determined by its samples {x(nT)} if :  where ω s = 2π/T Book Chapter#: Section# Computer Engineering Department, Signal and Systems 8 X(jω)=0 for |ω| > ω M ω s > 2ω M = The Nyquist rate

9 Observations on Sampling  In practice, we obviously don’t sample with impulses or implement ideal low-pass filters.  One practical example: The Zero-Order Hold Book Chapter#: Section# Computer Engineering Department, Signal and Systems 9

10 Observations (Continued)  Sampling is fundamentally a time varying operation, since we multiply x(t) with a time-varying function p(t). However, is the identity system (which is TI) for band-limited x(t) satisfying the sampling theorem (ω s > 2ω M ).  What if ω s ≤ 2ω M ? Something different: more later. Book Chapter#: Section# Computer Engineering Department, Signal and Systems 10

11 Time-Domain Interpretation of Reconstruction of Sampled Signals: Band-Limited Interpolation  The low-pass filter interpolates the samples assuming x(t) contains no energy at frequencies ≥ ω c Book Chapter#: Section# Computer Engineering Department, Signal and Systems 11

12 Book Chapter#: Section# Computer Engineering Department, Signal and Systems 12 Original CT signal After Sampling After passing the LPF

13 Interpolation Methods  Band-limited Interpolation  Zero-Order Hold  First-Order Hold : Linear interpolation Book Chapter#: Section# Computer Engineering Department, Signal and Systems 13

14 Undersampling and Aliasing  When ω s ≤ 2ω M => Undersampling Book Chapter#: Section# Computer Engineering Department, Signal and Systems 14

15 Undersampling and Aliasing (continued)  Higher frequencies of x(t) are “folded back” and take on the “aliases” of lower frequencies  Note that at the sample times, x r (nT) = x (nT) Book Chapter#: Section# Computer Engineering Department, Signal and Systems 15 X r (jω) ≠ X(jω) Distortion because of aliasing

16 A Simple Example X(t) = cos(ω o t + Φ) Picture would be Modified… Demo: Sampling and reconstruction of cosω o t

17 Sampling Review Demo: Effect of aliasing on music.

18 Strobe Demo Δ > 0, strobed image moves forward, but at a slower pace Δ = 0, strobed image still Δ < 0, strobed image moves backward. Applications of the strobe effect (aliasing can be useful sometimes):— E.g., Sampling oscilloscope

19 DT Processing of Band-LimitedCT Signals Why do this? —Inexpensive, versatile, and higher noise margin. How do we analyze this system? —We will need to do it in the frequency domain in both CT and DT —In order to avoid confusion about notations, specify ω—CT frequency variable Ω—DT frequency variable (Ω = ωΤ) Step 1:Find the relation between x c (t) and x d [n], or X c (jω) and X d (e jΩ )

20 Time-Domain Interpretation of C/D Conversion Note: Not full analog/digital (A/D) conversion – not quantizing the x[n] values

21 Frequency-Domain Interpretation of C/D Conversion

22 Illustration of C/D Conversion in the Frequency-Domain

23 D/C Conversion y d [n] →y c (t) Reverse of the process of C/D conversion Again, Ω = ωΤ

24 Now the whole picture  Overall system is time-varying if sampling theorem is not satisfied  It is LTI if the sampling theorem is satisfied, i.e. for bandlimited inputs x c (t), with  When the input x c (t) is band-limited (X(jω) = 0 at |ω| > ω M )and the sampling theorem is satisfied (ω S > 2ω M ), then

25 Frequency-Domain Illustration of DT Processing of CT Signals

26 Assuming No Aliasing In practice, first specify the desired H c (jω), then design H d (e jΩ ).

27 Example:Digital Differentiator Applications: Edge Enhancement Courtesy of Jason Oppenheim. Used with permission. Courtesy of Jason Oppenheim. Used with permission.

28 Construction of Digital Differentiator Bandlimited Differentiator Desired: Set Assume (Nyquist rate met) Choice for H d (e jΩ ):

29 Band-Limited Digital Differentiator (continued)

30 Changing the Sampling Rate 30

31 Downsampling n -3 -2 –1 0 1 2 a b cd e f n -1 0 1 b df Downsample by a factor of 2 Downsample by a factor of N: Keep one sample, throw away (N-1) samples Advantage? 31 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

32 Downsampling -3T -2T –T 0 T 2T 3T A continuous-time signal Suppose we now sample at two rates: C/D T (1) C/D MT (2) Q: Relationship between the DTFT’s of these two signals? 32 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

33 Downsampling C/D T (1) C/D MT (2) Change of variable: 33 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

34 Downsampling Change of variable: 34 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

35 Downsampling Change of variable: 35

36 Downsampling If M=2, 36

37 Downsampling (example) 37

38 Downsampling (example) What could go wrong here? 38

39 Downsampling with aliasing (illustration) 39 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

40 Downsampling (preventing aliasing) 40 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

41 Downsampling with aliasing (illustration) 41 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

42 Upsampling Application? It is the process of increasing the sampling rate by an integer factor. C/D T (1) C/D T/L (2) 42 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

43 Upsampling n -3 -2 –1 0 1 2 a b cd e f b df 43 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

44 Upsampling 44

45 Upsampling Question: How can we obtain from ? Proposed Solution: L Low-pass filter with gain L and cut-off frequency 45 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

46 Upsampling n -3 -2 –1 0 1 2 a b cd e f b df n df 46 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

47 Upsampling Q: Relationship between the DTFT’s of these three signals? Shifting property: 47

48 Upsampling On the other hand: (Eq.2) (Eq.1) (Eq.1) and (Eq.2) 48 Hossein Sameti, Dept. of Computer Eng., Sharif University of Technology

49 Upsampling In order to get from we thus need an ideal low-pass filter. L 49

50 Upsampling L 50


Download ppt "Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency."

Similar presentations


Ads by Google