Escolar Documentos
Profissional Documentos
Cultura Documentos
Processing
First
Lecture9
DtoAConversion
READING ASSIGNMENTS
ThisLecture:
Chapter4:Sections44,45
OtherReading:
Recitation:Section43(StrobeDemo)
NextLecture:Chapter5(beginning)
LECTURE OBJECTIVES
DIGITALtoANALOGCONVERSIONis
Reconstructionfromsamples
SAMPLINGTHEOREMapplies
SmoothInterpolation
MathematicalModelofDtoA
SUMofSHIFTEDPULSES
LinearInterpolationexample
SAMPLING SUMMARY
SAMPLINGPROCESS
Convertx(t)tonumbers x[n]
nisaninteger;x[n]isasequenceofvalues
Thinkofnasthestorageaddressinmemory
UNIFORMSAMPLINGatt=nTs
IDEAL:x[n]=x(nTs)
x(t)
C-to-D
x[n] = x(nTs)
DIGITAL FREQ
SUMMARY
2 f
2
Ts
fs
2 f
Ts
2
fs
Copyright Monash University 2009
ALIASING
FOLDED ALIAS
SPECTRUMisPERIODICwithperiod=2
PRINCIPAL(MINIMUM)ALIASIN[
SAMPLINGGUI(con2dis)demo
a pair of
spectrum
lines @
o
cos[0n]
a pair of
spectrum
lines in
[- , ]
Normalized
spectrum
7
SAMPLING SUMMARY
NYQUIST RATE
Nyquist Rate Sampling
fs >TWICE theHIGHESTFrequencyinx(t)
SamplingabovetheNyquist rate
BANDLIMITEDSIGNALS
DEF:x(t)hasaHIGHESTFREQUENCY
COMPONENTinitsSPECTRUM
NONBANDLIMITEDEXAMPLE
SQUAREWAVEisNOT BANDLIMITED
SIGNAL TYPES
x(t)
A-to-D
x[n]
COMPUTER
y[n]
D-to-A
y(t)
AtoD
Convertx(t)tonumbers storedinmemory
DtoA
Converty[n] backtoacontinuoustimesignal,
y(t)
y[n] iscalledadiscretetimesignal
Copyright Monash University 2009
10
FREQUENCY DOMAINS
x(t)
A-to-D
x[n]
y[n]
f
2
2
fs
-0.5 f 0.5 or - or
Copyright Monash University 2009
D-to-A
y(t)
f
fs
2
-fs/2 f fs/2
11
D-to-A Reconstruction
x(t)
A-to-D
x[n]
COMPUTER
y[n]
D-to-A
y(t)
Createcontinuousy(t)fromy[n]
IDEAL
Ifyouhaveformulafory[n]
Replaceniny[n]withfst
y[n]=Acos(0.2n+)withfs=8000Hz
y(t)=Acos(2(800)t+)
Copyright Monash University 2009
12
D-to-A is AMBIGUOUS !
ALIASING
Giveny[n],whichy(t)dowepick???
INFINITENUMBERofy(t)
PASSINGTHRUTHESAMPLES,y[n]
DtoARECONSTRUCTIONMUSTCHOOSEONE
OUTPUT
RECONSTRUCT
THESMOOTHEST ONE
THELOWEST FREQ,ify[n]=sinusoid
13
fs
1
2
f s 80Hz 2.5
1
2
1
2
1
2
1
2
1
2
1.5
0.5
0.5
1.5
2.5
14
Reconstruction (D-to-A)
CONVERTSTREAMofNUMBERStox(t)
CONNECTTHEDOTS
INTERPOLATION
INTUITIVE,
conveys the idea
y[k]
y(t)
kTs
Copyright Monash University 2009
(k+1)Ts
t
15
STAIR-STEP
APPROXIMATION
y[k]
y(t)
(k-1)Ts
Copyright Monash University 2009
kTs
(k+1)Ts
t
16
17
OVER-SAMPLING CASE
EASIER TO RECONSTRUCT
18
SQUARE PULSE:
19
y[n] p(t nT )
s
SUMofSHIFTEDPULSESp(tnTs)
WEIGHTEDbyy[n]
CENTEREDatt=nTs
SPACED byTs
RESTORESREALTIME
Copyright Monash University 2009
20
p(t)
21
22
OPTIMAL PULSE ?
CALLED
BANDLIMITED
INTERPOLATION
t
p(t )
sin Ts
t
Ts
for t
Sinc
function
23
Ideal reconstruction
y (t ) y[n]
sin
( t nTs )
Ts
( t nTs )
Ts
y (t ) cn n (t )
Exact reconstruction
Copyright Monash University 2009
24