16
Lecture 4 Sampling Overview of Sampling Theory

Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Lecture 4 Sampling

Overview of Sampling Theory

Page 2: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Sampling Continuous Signals

Sample Period is T, Frequency is 1/T x[n] = xa(n) = x(t)|t=nT

Samples of x(t) from an infinite discrete sequence

Page 3: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Continuous-time Sampling Delta function (t)

Zero everywhere except t=0 Integral of (t) over any interval including

t=0 is 1 (Not a function – but the limit of

functions) Sifting

)()()( 00 tfdttttf

Page 4: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Continuous-time Sampling Defining the sequence by multiple sifts:

Equivalently:

Note: xa(t) is not defined at t=nT and is zero for other t

n

a nTttxtx )()()(

n

a nTtnTxtx )()()(

Page 5: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Reconstruction Given a train of samples – how to

rebuild a continuous-time signal? In general, Convolve some impluse

function with the samples:

Imp(t) can be any function with unit integral…

n

nTtimpnTxtx )()()(

Page 6: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Example

Linear interpolation:

Integral (0,2) of imp(t) = 1Imp(t) = 0 at t=0,2Reconstucted function is piecewise-

linear interpolation of sample values

else

tttimp

0

2011)(

Page 7: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

DAC Output Stair-step output

DAC needs filtering to reduce excess high frequency information

else

ttimp

0

101)(

Page 8: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Sinc(x) – ‘Perfect Reconstruction’

Is there an impulse function which needs no filtering?

Why? – Remember that Sin(t)/t is Fourier Transform of a unit impulse

TtTt

timp

)sin(

)(

Page 9: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Perfect Reconstruction II Note – Sinc(t) is non-zero for all t

Implies that all samples (including negative time) are needed

Note that x(t) is defined for all t since Sinc(0)=1

n

TnTtTnTt

nxtx)(

)(sin

][)(

Page 10: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Operations on sequences Addition: Scaling: Modulation:

Windowing is a type of modulation Time-Shift: Up-sampling: Down-sampling:

][][][ nwnxny

][][ nxAny ][][][ nwnxny

][][ 1 nxny

xd[n]x[nM ]

else,0

,2,,0],/[][

LLnLnxnxu

Page 11: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Up-sampling

0 10 20 30 40 50-1

-0.5

0

0.5

1Input Sequence

Time index n

Am

plitu

de

0 10 20 30 40 50-1

-0.5

0

0.5

1Output sequence up-sampled by 3

Time index nA

mpl

itude

]3/[][ nxnxu

][nxu][nx

Page 12: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Down-sampling (Decimation)

0 10 20 30 40 50-1

-0.5

0

0.5

1Input Sequence

Time index n

Am

plitu

de

0 10 20 30 40 50-1

-0.5

0

0.5

1Output sequence down-sampled by 3

Am

plitu

de

Time index n

]3[][ nxnxd

][nxd][nx

Page 13: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Resampling (Integer Case) Suppose we have x[n] sampled at

T1 but want xR[n] sampled at T2=L T1

n

nTtimpulsenTxtx )()()( 11

n

n

kTtnR

TnLkimpulsenLTx

nTkTimpulsenTx

nTtimpulsenTxkx

))(()(

)()(

)()(][

22

121

11

2

n

R nkimpulsenxkx ][][][

Page 14: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Sampling Theorem Perfect Reconstruction of a

continuous-time signal with Bandlimit f requires samples no longer than 1/2f Bandlimit is not Bandwidth – but limit

of maximum frequency Any signal beyond f aliases the

samples

Page 15: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Aliasing (Sinusoids)

Page 16: Lecture 4 Sampling Overview of Sampling Theory. Sampling Continuous Signals Sample Period is T, Frequency is 1/T x[n] = x a (n) = x(t)| t=nT Samples of

Alaising For Sinusoid signals (natural

bandlimit): For Cos(n), =2k+0

Samples for all k are the same! Unambiguous if 0<< Thus One-half cycle per sample

So if sampling at T, frequencies of f=+1/2T will map to frequency