19 discrete-time sampling - vavlab - volumetric … discrete-time sampling in the previous lectures...

13
19 Discrete-Time Sampling In the previous lectures we discussed sampling of continuous-time signals. In this lecture we address the parallel topic of discrete-time sampling, which has a number of important applications. The basic concept of discrete-time sam- pling is similar to that of continuous-time sampling. Specifically, we multiply a discrete-time sequence by a periodic impulse train, thus retaining every Nth sample and setting the remaining ones to zero (where N denotes the period of the sampling impulse train). The consequences in the frequency domain and the constraints on the bandwidth of the original sequence such that it can be recovered from its samples parallel those for continuous time. Under the constraints of the sampling theorem, exact interpolation can again be imple- mented with an ideal lowpass filter. Closely associated with, but not identical to, the concept of discrete-time sampling is that of decimation or downsampling. After sampling a sequence with an impulse train, we have obtained a new sequence that is nonzero only at multiples of the sampling period N. Consequently, in many practical situa- tions there is no reason to explicitly retain these zero values since they can always be reinserted. Thus, somewhat distinct from the notion of sampling is the concept of decimation, whereby a new sequence is generated from the original sequence by selecting every Nth sample. This in effect results in a time compression. Although not typically implemented this way, it can be thought of as a two-step process, the first step consisting of periodic sampling and the second step corresponding to discarding the zero values between the samples. Decimation is also commonly referred to as downsampling since if the original sequence resulted from time sampling a continuous-time signal, the new sequence resulting from decimation would be exactly what would have been obtained had a lower sampling rate been used originally. If, for ex- ample, a continuous-time signal is sampled at or near the Nyquist rate and is then processed by a discrete-time system that provides some further band- limiting, downsampling or decimation is often used. The reverse of downsampling is "upsampling," whereby we attempt to reconstruct the original sequence. The process is again best thought of in two stages, the first corresponding to converting the decimated sequence to a 19-1

Upload: vuanh

Post on 22-Apr-2018

228 views

Category:

Documents


2 download

TRANSCRIPT

19Discrete-TimeSampling

In the previous lectures we discussed sampling of continuous-time signals. Inthis lecture we address the parallel topic of discrete-time sampling, which hasa number of important applications. The basic concept of discrete-time sam-pling is similar to that of continuous-time sampling. Specifically, we multiplya discrete-time sequence by a periodic impulse train, thus retaining every Nthsample and setting the remaining ones to zero (where N denotes the period ofthe sampling impulse train). The consequences in the frequency domain andthe constraints on the bandwidth of the original sequence such that it canbe recovered from its samples parallel those for continuous time. Under theconstraints of the sampling theorem, exact interpolation can again be imple-mented with an ideal lowpass filter.

Closely associated with, but not identical to, the concept of discrete-timesampling is that of decimation or downsampling. After sampling a sequencewith an impulse train, we have obtained a new sequence that is nonzero onlyat multiples of the sampling period N. Consequently, in many practical situa-tions there is no reason to explicitly retain these zero values since they canalways be reinserted. Thus, somewhat distinct from the notion of sampling isthe concept of decimation, whereby a new sequence is generated from theoriginal sequence by selecting every Nth sample. This in effect results in atime compression. Although not typically implemented this way, it can bethought of as a two-step process, the first step consisting of periodic samplingand the second step corresponding to discarding the zero values between thesamples. Decimation is also commonly referred to as downsampling since ifthe original sequence resulted from time sampling a continuous-time signal,the new sequence resulting from decimation would be exactly what wouldhave been obtained had a lower sampling rate been used originally. If, for ex-ample, a continuous-time signal is sampled at or near the Nyquist rate and isthen processed by a discrete-time system that provides some further band-limiting, downsampling or decimation is often used.

The reverse of downsampling is "upsampling," whereby we attempt toreconstruct the original sequence. The process is again best thought of in twostages, the first corresponding to converting the decimated sequence to a

19-1

Signals and Systems19-2

sampled sequence by reinserting the (N- 1) zero values between the samplepoints. The second stage is interpolation with a lowpass filter to construct theoriginal sequence.

The processes of downsampling and upsampling have a number of prac-tical implications. One, as indicated above, is sampling rate conversion afteradditional processing. Another very important one is converting a sequencefrom one sampling rate to another perhaps to generate compatibility betweenotherwise incompatible systems. For example, it is often important to convertbetween different digital audio systems that use different sampling rates.

In this lecture we also briefly discuss the concept of sampling in the fre-quency domain. Frequency-domain sampling typically arises when we wouldlike to measure or explicitly evaluate numerically the Fourier transform. Al-though in general the Fourier transform for both continuous time and discretetime is a function of a continuous-frequency variable, the measurement orcalculation must be made only at a set of sample frequencies. Because of theduality between the time and frequency domains for continuous time, the is-sues, analysis, and concepts related to frequency-domain sampling for con-tinuous-time signals are exactly dual to those of time-domain sampling. Thus,for example, the Fourier transform can exactly be recovered from equallyspaced samples in the frequency domain provided that the time-domain signalis timelimited (the dual of bandlimited). Basically, the same result applies indiscrete time, i.e., the Fourier transform of a timelimited sequence can be ex-actly represented by and recovered from equally spaced samples providedthat the sample spacing in frequency is sufficiently small in relation to thetime duration of the signal in the time domain.

Suggested ReadingSection 8.6, Sampling of Discrete-Time Signals, pages 543-548

Section 8.7, Discrete-Time Decimation and Interpolation, pages 548-553

Section 8.5, Sampling in the Frequency Domain, pages 540-543

Discrete-Time Sampling19-3

Ix[ n]

n

II I 11r

N. . Inr 0.1.0X01.(1]

TRANSPARENCY19.1Discrete-timesampling with aperiodic impulse train.

MARKERBOARD19.1 (a)

~: ~

* dcladcekn nre% -sa.*Xpi% 0ke

k' -A

Signals and Systems19-4

TRANSPARENCY19.2Illustration of spectraassociated withdiscrete-timesampling. Thesampling rate issufficiently high toavoid aliasing.

X(M)

'K-21r QM 0 u

2m 21r Q2

P(2)

27r

R, (27r - S2,) 27n Q

XP (M)

1 , ~ 1

(A

MARKERBOARD19.1 (b)

-VN3

-L'

Discrete-Time Sampling19-5

TRANSPARENCY19.3

27T Q Illustration of spectraassociated withdiscrete-time samplingwhen the samplingrate is too low to avoidaliasing.

X(12)

-m 0 E2 21T 2

21r

s, (21r - Q,) 27r Q

H(S2)XP(O) amplitude N

1Q , Q 7

1s-Q

TRANSPARENCY19.4Illustration of therecovery of theoriginal discrete-timespectrum from thespectrum of thesampled signal usingan ideal lowpass filter.

-21r

Signals and Systems

19-6

p[n]

TRANSPARENCY19.5Overall system fordiscrete-time samplingand reconstruction.

TRANSPARENCY19.6Discrete-timesampling andreconstruction withthe reconstructioninterpreted in the timedomain as a process ofinterpolation.

x [n] xr[n]

'ii-2

1r QM M 27r Q

X (2)

1/N

-27 -QM M s 27r R

H(l2)

N

77F-2r 2 -2ir2 2

I

Discrete-Time Sampling

19-7

x[n]

0 n

xd [n]

Xd &E) = X

TRANSPARENCY19.7Relationship betweensampling anddecimation.

eSagma tina*

e cre Tke 4

t w EAC k-ftoA

SL I

N L4

v0*

)rpLwtJ

MARKERBOARD19.1 (c)

Signals and Systems

19-8

TRANSPARENCY19.8Illustration of theeffect of decimation inthe frequency domain.

TRANSPARENCY19.9Example of a contextin which discrete-time decimation ordownsampling mightbe used.

C/D x[n] Discrete time

x (t -- - conversion lowpass filter y [n]H (S2)

Xe(W)

X(S2) H(S2)

-21 - -S2r 2C 27r S2

27r -sic S2i

-M WM

27T &Z

Discrete-Time Sampling19-9

xd [n]xP [ni Ideal towpass

0- f ilter x[nIH(g2)

TRANSPARENCY19.10Steps involved inupsampling, i.e.,recovering a signalafter it has beendecimated.

~ti1. I~rl e 0 n

.LiJx11Tin.T!..1 '.T.TT.L

TRANSPARENCY19.11Time-domainillustration ofupsampling.

Conversion ofdecimated sequence

to sampledsequence

Signals and Systems19-10

TRANSPARENCY19.12Frequency-domainillustration ofupsampling.

Xd (R)

A

-2T 2r 12

xp M

X((4

A

-21r 2r a

X(92)

IT 27 2

0044\

Discrete-Time Sampling19-11

x (t)

t

x(t)

WO Q n.2I 2

w(t)

w0

- tO

w(t)

TRANSPARENCY19.13Frequency-domainsampling.

TRANSPARENCY19.14Signal recovery afterfrequency-domainsampling.

x(t) x(t)

x(t) x(t)

Signals and Systems

19-12

x[n]

TRANSPARENCY19.15Recovery of adiscrete-time signalafter frequency-domain sampling.

T T

x[n]

_0 ?TTTN =2

n

x[n] wfnI

n

TI ?jw[n}

a

MIT OpenCourseWare http://ocw.mit.edu

Resource: Signals and Systems Professor Alan V. Oppenheim

The following may not correspond to a particular course on MIT OpenCourseWare, but has been provided by the author as an individual learning resource.

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.