Docsity

ECE-2026 Lecture Notes: A-to-D and D-to-A Conversion, Spring 2018, Study notes of Digital Signal Processing

Partial preview of the text

Download ECE-2026 Lecture Notes: A-to-D and D-to-A Conversion, Spring 2018 and more Study notes Digital Signal Processing in PDF only on Docsity!

ECE- 2026 Spring- 2018

Lecture 10

A-to-D and D-to-A Conversion

16 - Feb- 2018

2/9/2018 ECE-2026 Spring- 2018 2

General Info

 Quiz #1 Score adjustment: before 23 - Feb (Friday)  Contact individual grading professor for each problem  #1: Dr. Fekri ([email protected]. edu)  #2: Dr. Yang ([email protected])  #3: Dr. Marenco ([email protected])

 HW #5 next week, ITS # 3 due on 22 - Feb

 Lab #5 next week: sampling and aliasing

 Quiz #2 on 5-Mar (Monday)  Chapters 3-4: Appendix C, HW 04-06, Labs 03-06, ITS 3- 4

2/9/2018 ECE-2026 Spring- 2018 3

Spatial Aliasing (Lab6)

2/9/2018 ECE-2026 Spring- 2018 4

Aliasing Demo with Chirp

fs=8000 Hz

tt=0:1/8000:4; xx=cos(2pi1000tt.(1+tt)); plotspec(xx+j1e grid on, shg -9,8000) soundsc(xx,8000)*

2/9/2018 ECE-2026 Spring- 2018 7

SAMPLING x(t)

 UNIFORM SAMPLING at t = nTs

 IDEAL: x[n] = x(nTs)

x(t) (^) C-to-D x[n]

2/9/2018 ECE-2026 Spring- 2018 8

Terminology: NYQUIST RATE

 “ Nyquist Rate ” Sampling

 fs > TWICE the HIGHEST Frequency in x(t)  “Sampling above the Nyquist rate”

 BANDLIMITED SIGNALS

 DEF: HIGHEST FREQUENCY COMPONENT

in SPECTRUM of x(t) is finite  NON-BANDLIMITED EXAMPLE  TRIANGLE WAVE is NOT BANDLIMITED

2/9/2018 ECE-2026 Spring- 2018 9

SPECTRUM for Periodic x[n]

 INCLUDE ALL SPECTRUM LINES

 ALIASES

 ADD INTEGER MULTIPLES of 2 p and − 2 p

 FOLDED ALIASES

 ALIASES of NEGATIVE FREQS

 PLOT versus NORMALIZED

FREQUENCY

 i.e., DIVIDE fo by fs  p 2 p

( ) ˆ (^20) 

  f s

f

2/9/2018 ECE-2026 Spring- 2018 10

EXAMPLE: SPECTRUM

 x[n] = Acos(0.2pn+f)

 FREQS @ 0.2p and −0.2p

 ALIASES:

 {2.2p, 4.2p, 6.2p, …} & {-1.8p,-3.8p,…}  EX: x[n] = Acos(4.2pn+f)

 ALIASES of NEGATIVE FREQ:

 {1.8p,3.8p,5.8p,…} & {-2.2p, - 4.2p …}

2/9/2018 ECE-2026 Spring- 2018 13

ALIASING DERIVATION

 Other Frequencies give the same

s

s

f

f

T

p  

ˆ (^)    2 p



^ ˆ

s

s s s

s f

f f

f f

p ff p p 

2 ( ) 2 2 then :^ ˆ  

 



and we want : x [ n ]  A cos(  ˆ n  )

If x ( t ) A cos( 2 p( f  fs ) t  )



tnf s

2/9/2018 ECE-2026 Spring- 2018 14

ALIASING DERIVATION

 Other Frequencies give the same

x 1 ( t ) cos( 400 p t ) sampledat fs  1000 Hz

x 1 [ n ]cos( 400 p 1000 n )cos( 0. 4 p n )

x 2 ( t ) cos( 2400 p t ) sampledat fs  1000 Hz

x 2 [ n ]cos( 2400 p 1000 n )cos( 2. 4 p n )

x 2 [ n ]cos( 2. 4 p n )cos( 0. 4 p n  2 p n )cos( 0. 4 p n )

x 2 [ n ] x 1 [ n ] 2400 p 400 p 2 p( 1000 )



^ ˆ

2/9/2018 ECE-2026 Spring- 2018 15

FOLDING (a type of ALIASING)

 EXAMPLE: 3 different x(t); same x[n]

cos[ 2 ( 0. 9 ) 2 ] cos[ 2 ( 0. 1 ) ] cos[ 2 ( 0. 1 ) ]

cos( 2 ( 900 )) cos[ 2 ( 0. 9 ) ]

cos( 2 ( 1100 )) cos[ 2 ( 1. 1 ) ] cos[ 2 ( 0. 1 ) ]

cos( 2 ( 100 )) cos[ 2 ( 0. 1 ) ]

n n n n

t n

t n n

t n

fs

p p p p

p p

p p p

p p

 1000 2 (^0.^1 )

ˆ 2 p^100  p

 900 Hz “folds” to 100 Hz when fs=1kHz

2/9/2018 ECE-2026 Spring- 2018 16

DIGITAL FREQ AGAIN



^ ˆ  Ts 

2 p f

fs

 2 p

p

p

s

s

f

f

T FOLDED ALIAS

^ ˆ

ALIASING

2/9/2018 ECE-2026 Spring- 2018 19

FREQUENCY DOMAINS

x(t) (^) A-to-D x[n] D-to-A y(t)



f f

f ˆ ^ ˆ

y[n]

f fs

p

2

ˆ 

 2 p

fs

( f ) ˆ (^2)

  p

2/9/2018 ECE-2026 Spring- 2018 20

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

2/9/2018 ECE-2026 Spring- 2018 21

SPECTRUM (ALIASING CASE)

ˆ  2 p^ f

fs

fs  80Hz

12 X *

- 0.5 p

12 X

- 1.5 p

12 X

- 2.5 p 0.5 p 2.5 p ˆ

12 X * 12 X * 12 X

1.5 p x [ n ] A cos( 2 p( 100 )( n / 80 ) )

2/9/2018 ECE-2026 Spring- 2018 22

DEMOS from CHAPTER 4

 CD-ROM DEMOS

 SAMPLING DEMO ( con2dis GUI )

 Different Sampling Rates  Aliasing of a Sinusoid

 STROBE DEMO

 Synthetic vs. Real  Television SAMPLES at 30 fps

 Sampling & Reconstruction

2/9/2018 ECE-2026 Spring- 2018 25

Reconstruction (D-to-A)

 CONVERT STREAM of NUMBERS to x(t)

 “CONNECT THE DOTS”

 INTERPOLATION

y(t)

y[k]

kTs (k+1)Ts^ t

INTUITIVE, conveys the idea

2/9/2018 ECE-2026 Spring- 2018 26

SAMPLE & HOLD DEVICE

 CONVERT y[n] to y(t)

 y[k] should be the value of y(t) at t = kTs  Make y(t) equal to y[k] for  kTs - 0.5Ts < t < kTs +0.5Ts

y(t)

y[k]

kTs (k+1)Ts^ t

STAIR-STEP APPROXIMATION

2/9/2018 ECE-2026 Spring- 2018 27

SQUARE PULSE CASE

2/9/2018 ECE-2026 Spring- 2018 28

OVER-SAMPLING CASE

EASIER TO RECONSTRUCT

2/9/2018 ECE-2026 Spring- 2018 31

p(t)

2/9/2018 ECE-2026 Spring- 2018 32

TRIANGULAR PULSE (2X)

2/9/2018 ECE-2026 Spring- 2018 33

OPTIMAL PULSE?

CALLED
“BANDLIMITED
INTERPOLATION”

( ) 0 for , 2 ,

for

sin ( )

s s

T

t

T

t

p t t T T

p t t

s

s

  

 p  

p

Reconstruct with Ideal (2x)

2/9/2018 ECE-2026 Spring- 2018 34