1 Prof. Nizamettin AYDIN Advanced Digital Signal Processing.

Slides:



Advertisements
Similar presentations
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Advertisements

SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
CEN352, Dr. Ghulam Muhammad King Saud University
1.The Concept and Representation of Periodic Sampling of a CT Signal 2.Analysis of Sampling in the Frequency Domain 3.The Sampling Theorem — the Nyquist.
EECS 20 Chapter 10 Part 11 Sampling and Reconstruction Last time we Viewed aperiodic functions in terms of frequency components via Fourier transform Gained.
SAMPLING & ALIASING. OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the.
Sampling of Continuous-Time Signals
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Sampling Theorem, frequency resolution & Aliasing The Sampling Theorem will be the single most important constraint you'll learn in computer-aided instrumentation.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Chapter 4: Sampling of Continuous-Time Signals
8/27/2015 © 2003, JH McClellan & RW Schafer 1 Signal Processing First Lecture 8 Sampling & Aliasing.
1 Today's lecture −Concept of Aliasing −Spectrum for Discrete Time Domain −Over-Sampling and Under-Sampling −Aliasing −Folding −Ideal Reconstruction −D-to-A.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
… Representation of a CT Signal Using Impulse Functions
Introduction Chapter 1.  Topics  1.2 Classification of Signals: (1.2.1),(1.2.2), (1.2.3), (1.2.4)  1.3 The concept of frequency in continuous-time.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
DTFT And Fourier Transform
Signals and Systems Lecture 20: Chapter 4 Sampling & Aliasing.
Lecture 6: Aliasing Sections 1.6. Key Points Two continuous-time sinusoids having di ff erent frequencies f and f (Hz) may, when sampled at the same sampling.
Motivation Music as a combination of sounds at different frequencies
1 Prof. Nizamettin AYDIN Advanced Digital Signal Processing 30/09/14.
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
Digital Signal Processing
Interpolation and Pulse Shaping
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
1 Digital Signal Processing Lecture 3 – 4 By Dileep kumar
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 FOURIER TRANSFORMATION.
Digital Signal Processing
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Digital Signal Processing
Sampling of Continuous-Time Signals Quote of the Day Optimist: "The glass is half full." Pessimist: "The glass is half empty." Engineer: "That glass is.
Prof. Nizamettin AYDIN Advanced Digital Signal Processing 1.
Sampling and Aliasing.
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Continuous-time Signal Sampling
Lecture 2 BME452 Biomedical Signal Processing 2013 (copyright Ali Işın, 2013)1 BME452 Biomedical Signal Processing Lecture 2  Discrete Time Signals and.
Chapter 2. READING ASSIGNMENTS This Lecture: Chapter 2, pp Appendix A: Complex Numbers Appendix B: MATLAB or Labview Chapter 1: Introduction.
Electronic instrumentation Digitization of Analog Signal in TD
Digital Signal Processing
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Digital Signal Processing (7KS01)
Sampling and Aliasing Prof. Brian L. Evans
Periodic Signals Prof. Brian L. Evans
Lecture 3 Outline: Sampling and Reconstruction
SAMPLING & ALIASING.
7.0 Sampling 7.1 The Sampling Theorem
Lecture Signals with limited frequency range
Sampling and Reconstruction
EE Audio Signals and Systems
Lecture 14 Digital Filtering of Analog Signals
لجنة الهندسة الكهربائية
Lecture 10 Digital to Analog (D-to-A) Conversion
Lecture 9 Sampling & Aliasing
Lecture 4 Sampling & Aliasing
Interpolation and Pulse Shaping
Signal Processing First
CEN352, Dr. Ghulam Muhammad King Saud University
Digital Signal Processing
Today's lecture System Implementation Discrete Time signals generation
Lecture 13: Sampling and Aliasing
Lecture 13: Sampling and Aliasing
Sampling and Aliasing.
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

1 Prof. Nizamettin AYDIN Advanced Digital Signal Processing

2 Sampling & Aliasing

3 LECTURE OBJECTIVES SAMPLING can cause ALIASING –Sampling Theorem –Sampling Rate > 2(Highest Frequency) Spectrum for digital signals, x[n] –Normalized Frequency ALIASING

4 SYSTEMS Process Signals PROCESSING GOALS: –Change x(t) into y(t) For example, more BASS –Improve x(t), e.g., image deblurring –Extract Information from x(t) SYSTEM x(t)y(t)

5 System IMPLEMENTATION DIGITAL/MICROPROCESSOR Convert x(t) to numbers stored in memory ELECTRONICS x(t)y(t) COMPUTERD-to-AA-to-D x(t)y(t)y[n]x[n] ANALOG/ELECTRONIC: Circuits: resistors, capacitors, op-amps

6 SAMPLING x(t) SAMPLING PROCESS Convert x(t) to numbers x[n] “n” is an integer; x[n] is a sequence of values Think of “n” as the storage address in memory UNIFORM SAMPLING at t = nT s IDEAL: x[n] = x(nT s ) C-to-D x(t)x[n]

7 SAMPLING RATE, f s SAMPLING RATE (f s ) – f s =1/T s NUMBER of SAMPLES PER SECOND – T s = 125 microsec  f s = 8000 samples/sec –UNITS ARE HERTZ: 8000 Hz UNIFORM SAMPLING at t = nT s = n/f s –IDEAL: x[n] = x(nT s )=x(n/f s ) C-to-D x(t) x[n]=x(nT s )

8

9 SAMPLING THEOREM HOW OFTEN ? –DEPENDS on FREQUENCY of SINUSOID –ANSWERED by SHANNON/NYQUIST Theorem –ALSO DEPENDS on “RECONSTRUCTION”

10 Reconstruction? Which One? Given the samples, draw a sinusoid through the values

11 STORING DIGITAL SOUND x[n] is a SAMPLED SINUSOID –A list of numbers stored in memory EXAMPLE: audio CD CD rate is 44,100 samples per second –16-bit samples –Stereo uses 2 channels Number of bytes for 1 minute is –2 × (16/8) × 60 × = Mbytes

12 DISCRETE-TIME SINUSOID Change x(t) into x[n] DERIVATION DEFINE DIGITAL FREQUENCY

13 DIGITAL FREQUENCY VARIES from 0 to 2 , as f varies from 0 to the sampling frequency UNITS are radians, not rad/sec –DIGITAL FREQUENCY is NORMALIZED

14 SPECTRUM (DIGITAL) 2  –0.2 

15 SPECTRUM (DIGITAL) ??? 2  –2  ? x[n] is zero frequency???

16 The REST of the STORY Spectrum of x[n] has more than one line for each complex exponential –Called ALIASING –MANY SPECTRAL LINES SPECTRUM is PERIODIC with period = 2  –Because

17 ALIASING DERIVATION Other Frequencies give the same

18 ALIASING DERIVATION–2 Other Frequencies give the same

19 ALIASING CONCLUSIONS ADDING f s or 2f s or –f s to the FREQ of x(t) gives exactly the same x[n] –The samples, x[n] = x(n/ f s ) are EXACTLY THE SAME VALUES GIVEN x[n], WE CAN’T DISTINGUISH f o FROM (f o + f s ) or (f o + 2f s )

20 NORMALIZED FREQUENCY DIGITAL FREQUENCY

21 SPECTRUM for x[n] PLOT versus NORMALIZED FREQUENCY INCLUDE ALL SPECTRUM LINES –ALIASES ADD MULTIPLES of 2  SUBTRACT MULTIPLES of 2  –FOLDED ALIASES ALIASES of NEGATIVE FREQS

22 SPECTRUM (MORE LINES) 2  –0.2  1.8  –1.8 

23 SPECTRUM (ALIASING CASE) –0.5  –1.5  0.5  2.5  –2.5  1.5 

24 SPECTRUM (FOLDING CASE) 0.4  –0.4  1.6  –1.6 

25 ALIASING DERIVATION Other Frequencies give the same

26 ALIASING DERIVATION–2 Other Frequencies give the same

27 FOLDING DERIVATION Negative Freqs can give the same SAME DIGITAL SIGNAL

28 FOLDING (a type of ALIASING) MANY x(t) give IDENTICAL x[n] CAN’T TELL f o FROM (f s -f o ) –Or, (2f s -f o ) or, (3f s -f o ) EXAMPLE: –y(t) has 1000 Hz component –SAMPLING FREQ = 1500 Hz –WHAT is the “FOLDED” ALIAS ?

29 DIGITAL FREQ AGAIN FOLDED ALIAS ALIASING

30 FOLDING DIAGRAM

31 FOLDING DIAGRAM

32 ALIASING DERIVATION Other Frequencies give the same

33 D-to-A Conversion

34 A-to-D Convert x(t) to numbers stored in memory D-to-A Convert y[n] back to a “continuous-time” signal, y(t) y[n] is called a “discrete-time” signal SIGNAL TYPES COMPUTERD-to-AA-to-D x(t)y(t) y[n]x[n]

35 SAMPLING x(t) UNIFORM SAMPLING at t = nT s IDEAL: x[n] = x(nT s ) C-to-D x(t)x[n]

36 NYQUIST RATE “Nyquist Rate” Sampling – f s > TWICE the HIGHEST Frequency in x(t) –“Sampling above the Nyquist rate” BANDLIMITED SIGNALS –DEF: x(t) has a HIGHEST FREQUENCY COMPONENT in its SPECTRUM –NON-BANDLIMITED EXAMPLE TRIANGLE WAVE is NOT BANDLIMITED

37 SPECTRUM for x[n] INCLUDE ALL SPECTRUM LINES –ALIASES ADD INTEGER MULTIPLES of 2  and - 2  –FOLDED ALIASES ALIASES of NEGATIVE FREQS PLOT versus NORMALIZED FREQUENCY –i.e., DIVIDE f o by f s

38 EXAMPLE: SPECTRUM x[n] = Acos(0.2  n+  ) 0.2  and -0.2  ALIASES: –{2.2 , 4.2 , 6.2 , …} & {-1.8 ,-3.8 ,…} –EX: x[n] = Acos(4.2  n+  ) ALIASES of NEGATIVE FREQ: –{1.8 ,3.8 ,5.8 ,…} & {-2.2 , -4.2  …}

39 SPECTRUM (MORE LINES) 2  –0.2  1.8  –1.8 

40 SPECTRUM (ALIASING CASE) –0.5  –1.5  0.5  2.5  –2.5  1.5 

41 FOLDING (a type of ALIASING) EXAMPLE: 3 different x(t); same x[n] 900 Hz “folds” to 100 Hz when f s =1kHz

42 DIGITAL FREQ AGAIN FOLDED ALIAS ALIASING

43 SPECTRUM (FOLDING CASE) 0.4  –0.4  1.6  –1.6 

44 FREQUENCY DOMAINS D-to-AA-to-D x(t)y(t)x[n]y[n]

45 FOLDING DIAGRAM

46 D-to-A Reconstruction Create continuous y(t) from y[n] –IDEAL If you have formula for y[n] –Replace n in y[n] with f s t –y[n] = Acos(0.2  n+  ) with f s = 8000 Hz –y(t) = Acos(2  (800)t+  ) COMPUTER D-to-AA-to-D x(t)y(t)y[n]x[n]

47 D-to-A is AMBIGUOUS ! ALIASING –Given y[n], which y(t) do we pick ? ? ? –INFINITE NUMBER of y(t) PASSING THRU THE SAMPLES, y[n] –D-to-A RECONSTRUCTION MUST CHOOSE ONE OUTPUT RECONSTRUCT THE SMOOTHEST ONE –THE LOWEST FREQ, if y[n] = sinusoid

48 SPECTRUM (ALIASING CASE) –0.5  –1.5  0.5  2.5  –2.5  1.5 

49 Reconstruction (D-to-A) CONVERT STREAM of NUMBERS to x(t) “CONNECT THE DOTS” INTERPOLATION y(t)y(t) y[k]y[k] kT s (k+1)T s t INTUITIVE, conveys the idea

50 SAMPLE & HOLD DEVICE CONVERT y[n] to y(t) –y[k] should be the value of y(t) at t = kT s –Make y(t) equal to y[k] for kT s -0.5T s < t < kT s +0.5T s y(t)y(t) y[k]y[k] kT s (k+1)T s t STAIR-STEP APPROXIMATION

51 SQUARE PULSE CASE

52 OVER-SAMPLING CASE EASIER TO RECONSTRUCT

53 MATH MODEL for D-to-A SQUARE PULSE:

54 EXPAND the SUMMATION SUM of SHIFTED PULSES p(t-nT s ) –“WEIGHTED” by y[n] –CENTERED at t=nT s –SPACED by T s RESTORES “REAL TIME”

55 p(t)

56 OPTIMAL PULSE ? CALLED “BANDLIMITED INTERPOLATION”

57 FOLDING DIAGRAM

58 ALIASING & FOLDING ALIASING:  x[n] COULD HAVE COME FROM  (f o + f s )  or (f o - f s )  or (f o + 2f s )  or (f o - 2f s ), etc. FOLDING:  A type of ALIASING  x[n] COULD BE FROM:  (-f o + f s )  or (-f o - f s )  or (-f o + 2f s )  or (-f o - 2f s ), etc. x(t) = f o SAMPLED SIGNAL: x[n] = x(n/f s )

59 D-to-A Reconstruction Create continuous y(t) from y[n] –REALISTIC CONSTRAINT: SMOOTH y(t) Use the lowest possible frequency –y[n] is a list of numbers –How fast? –In MATLAB: soundsc(yy,fs) COMPUTER D-to-AA-to-D x(t)y(t)y[n]x[n]

60 FOUR FREQUENCY AXES ANALOG FREQUENCY: f,  DIGITAL FREQUENCY

61 FOLDING DERIVATION Negative Freqs can give the same SAME DIGITAL SIGNAL