ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and...

18
class notes, M. Rodwell, copyrighted 2013 ECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara [email protected] 805-893-3244, 805-893-3262 fax

Transcript of ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and...

Page 1: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

ECE 2C, notes set 12: Sampling and Analog-Digital Conversion

Mark Rodwell

University of California, Santa Barbara

[email protected] 805-893-3244, 805-893-3262 fax

Page 2: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Goals of this note set

coversion digital-analog

and

signals time-sampled totime-continuous from conversion

withinvolved

ipsrelationshfrequency and Temporal

Page 3: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Sampling: Turning Signals into Numbers

? drive hardour on store must we s#many How

). 20kHz-20Hz~ :ears (good

20kHz-DC as hearing of rangeour eapproximat usLet

long. seconds) 40 minutes, (16 seconds 1000 is music The

:computerour on file music a store want toWe

Page 4: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Remember the Fourier Sine/Cosine Series:

)( tscoefficien lcosinsoida 012 need also We

)( tscoefficien sinsoidal 012)Hz(20kHz/10 need We

20kHz ..., , Hz012 Hz,011 Hz,0at wavescosine :signalOur

20kHz ..., , Hz012 Hz,011 Hz,0at wavessine :signalOur

long. seconds 10 is rmOur wavefo

7

73-

33

33

3

n

n

b

a

T

n

T

n

T

dttT

ntVT

b

dttT

ntVT

a

dttVT

a

tT

btT

btT

b

tT

atT

atT

aatV

0

0

0

0

321

3210

2sin2)(

1

2cos2)(

1

)(1

...2

3sin22

2sin22

1sin2...

...2

3cos22

2cos22

1cos2)(

file. musicour describe tonts)(coefficie numbers 014 need We 7

Page 5: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Nyquist's Sampling Theorem: 1st viewpoint

signal thedescribe to

nts)(measureme numbers 2 need Then we

. and DCbetween limited is bandwidth its If

.duration timeof signal a have weIf

TfN

f

T

highsample

high

signal thedescribe to

unit timeper samples 2 need Then we

. and DCbetween limited is bandwidth whose

signal a have weIf

-So-

highsample

high

ff

f

.componentsFourier countingby proven theoremsNyquist'

s.25every samples 40KHz;at samplemust wesignal, kHz 20-DC aFor

Page 6: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Sampling in the time domain.

)( signal time-continuous analog some start with We tVC

)( signal producing gate, hold-sample ait with sample then We , tV RS

gate hold-sample idealizedan is This

Page 7: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

This is a Real Sample-Hold Gate

sequencedesign IC level-senior :about thislearn To

Daneshgar Saeid

Page 8: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Real vs Ideal Sampling (1)

pulses square :Sampling Real

easier)math the(makes impulses :Sampling Ideal

? theserelate wedo How

Page 9: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Real vs Ideal Sampling (2)

.duration of pulse square a is response impulse whose

),(filter a have weSuppose

th

)2/(

)2/sin(1)(

)exp(1

)exp(1

)exp()()(

:FunctionTransfer

)/(rect1

)( :response Impulse

2/2/

2/

2/

2/

2/

jj eej

jH

tjj

dttjdttjthjH

tth

Page 10: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Real vs Ideal Sampling (3)

:Filter

)2/(

)2/sin()( :FunctionTransfer

)/(rect1

)( :response Impulse

jH

tth

http://en.wikipedia.org/wiki/File:Si_sinc.svg

)2/(

)2/sin( reponsefrequency hasFilter

pulses. square into impulses convertsFilter

Page 11: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Real vs Ideal Sampling (4)

)()()( :signal sampled filter the then We

/)()()( :impulses of sequenceagainst signalmultiply first We

,,

0,

jHjVjV

Vtvtvtv

SRS

impCS

Page 12: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Spectrum of the impulse train (1)

...... )(

:So

)(1

)(1

where

/2 where )(

:seriesFourier a as thiscan write we, period with periodic is )( Because

)( ...)2()()()(

00000

000

0

2

0000

2

00

0

)0(02/

2/0

2/

2/

0

0000

tjtjtjtjtjnn

nimp

jntjntjn

impn

tjn

n

n

nimp

imp

K

Kimp

eVeVVeVeVeVtv

VeV

etVetvc

ectv

tv

KtVtVtVtVtv

Page 13: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Spectrum of the impulse train (2)

...,3 ,2 , ,, ,2 ,3, ...at s with tonespectrum a is This

......

...)2()()()(

000000

2

0000

2

0

000

0000

DC

eVeVVeVeV

tVtVtVtv

tjtjtjtj

imp

Page 14: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Spectrum of the Sampled Signal (1)

trainimpulse theof spectrum and

input theof spectrum theofn convolutio the

thereforeis signal sampled theof ansformFourier tr The

)'()'()'(2

1

2

)( and )( ofn convolutio

2

)(*)()(

/)()()(

0

00

,

0,

jdjjVjVV

V

jVjV

V

jVjVjV

Vtvtvtv

impc

impcimpc

S

impCS

Page 15: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Spectrum of the Sampled Signal (2)

0

,2

)( and )( ofn convolutio)(

V

jVjVjV

impc

S

overlap not to are spectra theif 2/ than less bandwidth havemust )( signal The 0H tVC

criterion samplingNyquist theagain, is, This

overlap. not to are spectra theif 2or 2 0 highsamplehighsample ff

Page 16: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Spectral Overlap (Aliasing) if sampling is too slow

criterion samplingNyquist theagain, is, This

overlap. not to are spectra theif 2 haveMust highsample ff

overlap Spectral

Page 17: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013

Analog-Digital Conversion

precisiongreater :bits More

sample.each oftion representabinary bit -Nan generates This

coversion. digital-analogby followed then is Sampling

Page 18: ECE 2C, notes set 12: Sampling and Analog-Digital ConversionECE 2C, notes set 12: Sampling and Analog-Digital Conversion Mark Rodwell University of California, Santa Barbara rodwell@ece.ucsb.edu

class notes, M. Rodwell, copyrighted 2013