Docsity

Continuous-time and Discrete-time Sampling and Reconstruction, Study notes of Digital Communication Systems

Toggle sidebar
bg1
ECE 5660
Spring 2006
Utah State
University
Continuous-time Sampling
Discrete-time Sampling
1 Continuous-time Sampling
Let x(t) be a continuous-time signal that is to be sampled at a rate fs= 1/T samples/second to produce
the discrete-time sequence xn=x(t)|t=nT =x(nT ) = x(n/fs). The sampling process may be modeled by
modulating the signal to be sampled, i.e. x(t) in this case, with a train of Dirac impulses followed by an
operation that integrates the impulses to extract the areas. This illustrated in Figure 1.
x(t)Impulse train
to sequence xn
p(t) =
∞
X
n=−∞
δ(t−nT )
xp(t)
Figure 1: Model of the process of sampling a continuous-time signal to produce a discrete-time sequence.
Define the impulse train by
p(t) =
∞
X
n=−∞
δ(t−nT ).
The modulated signal is
xp(t) = x(t)
∞
X
n=−∞
δ(t−nT ) =
∞
X
n=−∞
x(t)δ(t−nT ) =
∞
X
n=−∞
x(nT )δ(t−nT ).
Note that the desired sample values x(nT) weight the delta functions and may therefore be extracted by
integration. Integrating over the interval [iT −T
2, iT +T
2) produces the ith sample as follows,
ZiT +T
2
iT −T
2
xp(t)dt =ZiT +T
2
iT −T
2
∞
X
n=−∞
x(nT )δ(t−nT )dt
=
∞
X
n=−∞
x(nT )ZiT +T
2
iT −T
2
δ(t−nT )dt
| {z }
δi−n=8
>
<
>
:
1i=n
0i6=n
=
∞
X
n=−∞
x(nT )δi−n
=x(iT ) = xi.
The two signal processing operations involved in sampling a continuous-time signal, i.e. those illustrated
in Figure 1, can be analyzed in the frequency domain. Let the continuous-time Fourier transforms (CTFT)
of x(t) and xp(t) be X(ω) and Xp(ω), respectively, and let the discrete-time Fourier transform of xnbe
X(ejΩ). Suppose x(t) has the Fourier transform shown in Figure 2.
ω
X(ω)
−6π
T−4π
T−2π
T02π
T
4π
T
6π
T
1
Figure 2: Fourier transform X(ω) of x(t).
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Continuous-time and Discrete-time Sampling and Reconstruction and more Study notes Digital Communication Systems in PDF only on Docsity!

Spring 2006 University Discrete-time Sampling

1 Continuous-time Sampling

Let x(t) be a continuous-time signal that is to be sampled at a rate fs = 1/T samples/second to produce the discrete-time sequence xn = x(t)|t=nT = x(nT ) = x(n/fs). The sampling process may be modeled by modulating the signal to be sampled, i.e. x(t) in this case, with a train of Dirac impulses followed by an operation that integrates the impulses to extract the areas. This illustrated in Figure 1.

x(t) Impulse train to sequence

xn

p(t) =

∑^ ∞

n=−∞

δ(t − nT )

xp(t)

Figure 1: Model of the process of sampling a continuous-time signal to produce a discrete-time sequence.

Define the impulse train by

p(t) =

∑^ ∞

n=−∞

δ(t − nT ).

The modulated signal is

xp(t) = x(t)

∑^ ∞

n=−∞

δ(t − nT ) =

∑^ ∞

n=−∞

x(t)δ(t − nT ) =

∑^ ∞

n=−∞

x(nT )δ(t − nT ).

Note that the desired sample values x(nT ) weight the delta functions and may therefore be extracted by integration. Integrating over the interval [iT − T 2 , iT + T 2 ) produces the ith^ sample as follows,

∫ (^) iT + T 2

iT − T 2

xp(t)dt =

∫ (^) iT + T 2

iT − T 2

∑^ ∞

n=−∞

x(nT )δ(t − nT )dt

∑^ ∞

n=−∞

x(nT )

∫ (^) iT + T 2

iT − T 2

δ(t − nT )dt ︸ ︷︷ ︸

δi−n=

8

< :

1 i = n 0 i 6 = n

∑^ ∞

n=−∞

x(nT )δi−n

= x(iT ) = xi.

The two signal processing operations involved in sampling a continuous-time signal, i.e. those illustrated in Figure 1, can be analyzed in the frequency domain. Let the continuous-time Fourier transforms (CTFT) of x(t) and xp(t) be X(ω) and Xp(ω), respectively, and let the discrete-time Fourier transform of xn be X(ejΩ). Suppose x(t) has the Fourier transform shown in Figure 2.

ω

X(ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

Figure 2: Fourier transform X(ω) of x(t).

Spring 2006 University Discrete-time Sampling

The CTFT of p(t) is

p(t) ←→ P (ω) = ωs

∑^ ∞

k=−∞

δ(ω − kωs), ωs =

2 π T

This is illustrated in Figure 3 for frequencies from − (^6) Tπ to (^6) Tπ. However, keep in mind that P (ω) is periodic with period (^2) Tπ and therefore extends from −∞ to ∞.

ω

P (ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

2 π T

2 π T

2 π T

2 π T

2 π T

2 π T

2 π T

2 π T δ(ω^ −^

2 π T ) 2 π T δ(ω) 2 π T δ(ω^ +^

2 π T )

Figure 3: Fourier transform P (ω) of p(t).

The modulation property of the Fourier transform leads to

Xp(ω) =

2 π

X(ω) ∗ P (ω) =

T

∑^ ∞

k=−∞

X(ω − kωs). (1)

Graphically, this says that X(ω) is simply reproduced at integer multiples of the sample frequency ωs = (^2) Tπ. The amplitude of each replica is scaled by (^) T^1. The CTFT of xp(t) is illustrated in Figure 4.

ω

Xp(ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

1 T

1 T

1 T

1 T

1 T

1 T

1 T

1 T X(ω^ −^

2 π T ) 1 T X(ω) 1 T X(ω^ +^

2 π T )

Figure 4: The Fourier transform Xp(ω) of xp(t) consists of scaled replicas of X(ω) appearing at multiples of the sample rate ωs = (^2) Tπ.

The relationship between CTFT of xp(t) and the DTFT of xn can be derived as follows. First note that the DTFT of xn is

X(ejΩ) =

∑^ ∞

n=−∞

xne−jΩn. (2)

Spring 2006 University Discrete-time Sampling

ω

X(ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

ωm

ω

P (ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

2 π T

2 π T

2 π T

2 π T

2 π T

2 π T

2 π T

ω

Xp(ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

1 T

1 T

1 T

1 T

1 T

1 T

1 T

X(ejΩ)

− 6 π − 4 π 2 π 0 2 π 4 π 6 π

1 T

1 T

1 T

1 T

1 T

1 T

1 T

Ωm = ωmT

Figure 6: Fourier transforms of all signals involved in the continuous-time sampling process shown in Figure 1.

Spring 2006 University Discrete-time Sampling

2 Continuous-time Reconstruction

Reconstructing x(t) from samples xn performs the operations illustrated in Figure 7

xn Sequence to impulse train LPF^ x(t)

xp(t)

Figure 7: Model of the process of reconstructing a continuous-time signal from a discrete-time sequence.

First a weighted impulse train is created,

xp(t) =

∑^ ∞

n=−∞

xnδ(t − nT ).

In the frequency domain this corresponds to

Xp(ω) = X(ejωT^ ), (5)

which is the reverse of (4). Graphically, this says that the frequencies in X(ejΩ) are divided by T , i.e. ω = Ω T. The conversion from X(ejΩ) to Xp(ω) is illustrated in Figure 8.

X(ejΩ)

− 6 π − 4 π 2 π 0 2 π 4 π 6 π

ω

Xp(ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

Figure 8: The DTFT of xn and CTFT of xp(t) which are related by Xp(ω) = X(ejωT^ ) through a scaling of the frequency axis, i.e. ω = Ω T.

A low pass filter with impulse response h(t) is used to remove the unwanted frequency components in xp(t). Suppose, an ideal low pass filter is used. Figure 9 shows the low pass filter frequency response H(ω). The cutoff frequency is half the sample rate, ω 2 s = π T. In the time domain, the action of the filter h(t) may be viewed as interpolating between the values of xp(t) at the sample times t = nT.

ω

H(ω)

− (^6) Tπ − (^4) Tπ − (^2) Tπ 0 2 Tπ^4 Tπ^6 Tπ

− (^) Tπ T^ π

Figure 9: Frequency response of the low pass filter that removes the unwanted components of Xp(ω).

Filtering xp(t) by h(t) leads to x(t) with the Fourier transform given by,

X(ω) =

Xp(ω) |ω| < ω 2 s = π T 0 |ω| > ω 2 s = π T.

Substituting from (5) leads to

X(ω) =

X(ejωT^ ) |ω| < ω 2 s = π T 0 |ω| > ω 2 s = π T.

Spring 2006 University Discrete-time Sampling

3 Discrete-time Sampling: Down Sampling

Let xn be a discrete-time sequence that is to be down sampled by a factor of N to produce the sequence yn = xnN. The down sampling process is modeled by modulation with a train of Kronecker impulses followed by an operation that removes the zeros introduced by modulation. This is illustrated in Figure 11.

xn Remove^ N^ −^1 zeros

yn

pn =

∑^ ∞

k=−∞

δn−kN

wn

Figure 11: Model of the process of down sampling a discrete-time sequence.

Define the impulse train by

pn =

∑^ ∞

k=−∞

δn−kN.

This is a sequence of zeros except for every N th^ sample which is one. The modulated signal is

wn = xn

∑^ ∞

k=−∞

δn−kN =

∑^ ∞

k=−∞

xnδn−kN =

∑^ ∞

k=−∞

xkN δn−kN.

Note that the desired down sampled sequence xkN weights the non-zero samples of wn. The down sampled sequence is produced by removing the N − 1 zeros in every N samples that are generated by modulation with pn.

yk = wkN.

The two signal processing operations involved in down sampling can be analyzed in the frequency domain. Let the DTFTs of xn, wn, yn be X(ejΩ), W (ejΩ), Y (ejΩ), respectively. The DTFT of pn is

pn ←→ Ωs

∑^ ∞

m=−∞

δ(Ω − mΩs), Ωs

N∑ − 1

k=

∑^ ∞

`=−∞

δ(Ω − kΩs − 2 π`), Ωs = 2 π N

The DTFTs of xn and pn are illustrated in Figure 12. Note that in the plot of P (ejΩ), N = 3 was used.

X(ejΩ)

− 3 π − 2 π −π^0 π^2 π 3 π

P (ejΩ) N = 3

− 3 π − 2 π −π^0 π^2 π 3 π

2 π N

2 π N

2 π N

2 π N

2 π N

2 π N

2 π N

2 π N

2 π N

Figure 12: The DTFTs of xn and pn.

The modulation property of the DTFT involves circular convolution,

W (ejΩ) =

2 π

X(ejΩ) ~ P (ejΩ).

Spring 2006 University Discrete-time Sampling

Applying this property leads to,

W (ejΩ) =

N

N∑ − 1

k=

X(ej(Ω−kΩs)). (6)

Graphically, this says that X(ejΩ) is simply reproduced at integer multiples of the sample frequency Ωs = (^2) Nπ. The amplitude of each replica is scaled by (^) N^1. These operations are illustrated in Figure 13 for the case N = 3.

W (ejΩ) N = 3

− 3 π − 2 π −π 0 π^2 π 3 π

1 N

1 N

1 N

1 N

1 N

1 N

1 N

1 N

1 N

Figure 13: The DTFT of wn contains N replicas of the DTFT of xn which occur at integer multiples of the the sample frequency Ωs = (^2) Nπ.

The relationship between the DTFT of wn and yn can be derived as follows,

Y (ejΩ) =

k

yke−jΩk

k

wkN e−jΩk

n=kN

wne−jΩn/N^ (change of variables in summation)

∑^ ∞

n=−∞

wne−jΩn/N^ (because wn has N − 1 zeros between each nonzero sample)

= W (ejΩ/N^ ). (7)

Finally, substituting from (6) leads to

Y (ejΩ) =

N

N∑ − 1

k=

X

ej(Ω−k^2 π)/N^

Graphically, (7) says that Y (ejΩ) can be thought of as a frequency scaled version of W (ejΩ). Equation (8) says that Y (ejΩ) can be generated by reproducing X(ejΩ) at integer multiples of the sample frequency Ωs, scaling the amplitude by (^) N^1 , and then multiplying all frequencies N , i.e. Ω ← ΩN. The DTFT of yn is illustrated in Figure 14 along with the other signals involved in the down sampling process. Notice that the highest frequency Ω 0 in xn is mapped to Ω 1 = Ω 0 N in yn through the down sampling process. In drawing Figure 14, the sample frequency Ωs was implicitly assumed to satisfy Ωs = (^) Nπ > 2Ω 0. If this were not the case, the replicas of X(ejΩ) in W (ejΩ) would overlap and aliasing would result.

Spring 2006 University Discrete-time Sampling

4 Discrete-time Reconstruction: Up Sampling

Up sampling to obtain yn from xn reverses the operations in down sampling as illustrated in Figure 15.

xn Insert^ N^ −^1 zeros LPF^

yn

wn

Figure 15: Model of the up sampling process.

First, wn is obtained by inserting N − 1 zeros in between each sample of xk.

wn =

xn/N n is a multiple of N , 0 otherwise.

In the frequency domain this corresponds to

W (ejΩ) = X(ejΩN^ ). (9)

Graphically, this says that the frequencies in X(ejΩ) are divided by N , i.e. Ω → (^) NΩ. This creates N replicas of X(ejΩ). The desired replica is obtained by low pass filtering. The transition band edges are Ωpass = Ω Nm and Ωstop = (^) Nπ − Ω Nm. The DTFT of the filter output yn is

Y (ejΩ) =

W (ejΩ) |Ω| < Ω 2 s = (^) Nπ 0 |Ω| > Ω 2 s = (^) Nπ.

Substituting from (9) leads to

Y (ejΩ) =

X(ejΩN^ ) |Ω| < Ω 2 s = (^) Nπ 0 |Ω| > Ω 2 s = (^) Nπ.

The signals and systems involved in the up sampling process are illustrated in Figure 16 for the case N = 3. Notice that the highest frequency Ω 0 in xn gets mapped to Ω 1 = Ω N^0 in the up sampled signal yn.

Spring 2006 University Discrete-time Sampling

X(ejΩ)

− 3 π − 2 π −π^0 π^2 π 3 π

W (ejΩ) N = 3

− 3 π − 2 π −π 0 π^2 π 3 π

H(ejΩ)

− 3 π − 2 π −π^0 π^2 π 3 π

− (^) Nπ N^ π

Y (ejΩ)

− 3 π − 2 π −π^0 π^2 π 3 π

Ω 1 = Ω N^0

Figure 16: The DTFTs of the signals involved in up sampling.