Uploaded by stacklance

Sampling and Reconstruction

advertisement
Chapter Two
Sampling and Reconstruction
Lecture #5
Rediet Million
AAiT, School Of Electrical and Computer Engineering
rediet.million@aait.edu.et
March,2018
(Rediet Million)
DSP-Lecture #5
March,2018
1 / 22
Introduction
Under reasonable constraints,a continuous -time(analog) signals can
be quite accurately represented by samples taken at discrete point in
time.
Basic digital processing of continuous-time signals perform in three
stages:
(Rediet Million)
DSP-Lecture #5
March,2018
2 / 22
2.1 Periodic sampling
Typically,discrete-time signals,x(n), are formed by periodically
sampling of a continuous-time signals, xc (t), according to the relation
x(n) = xc (nTs ) ,−∞ < n < ∞
2π
1
or Ωs =
Ts
Ts
is the sampling frequency in sample/sec (Hz) or in rad/sec.
where Ts is the sampling period(interval) and fs =
It is convenient to represent an ideal sampling process mathematically
in two steps:
I First, the CT signal, xc (t) , is multiplied by a periodic sequence
of infinite impulse train, s(t), to form the sampled signal xs (t).
xs (t) = xc (t)s(t)
(Rediet Million)
DSP-Lecture #5
March,2018
3 / 22
Periodic sampling
Mathematically,
s(t) =
∞
X
δ(t − nTs )
n=−∞
∞
X
xs (t) = xc (t)s(t) = xc (t)
δ(t − nTs )
n=−∞
xs (t) =
∞
X
xc (nTs )δ(t − nTs )
n=−∞
I Then the sampled signal, xs (t), is converted into a discrete-time
signal by mapping the impulse that are spaced in time by Ts into a
sequence x(n).
x(n) = xs (nTs ) = xc (nTs )
(Rediet Million)
DSP-Lecture #5
March,2018
4 / 22
Periodic sampling
(Rediet Million)
DSP-Lecture #5
March,2018
5 / 22
Periodic sampling
Example
(Rediet Million)
DSP-Lecture #5
March,2018
6 / 22
Periodic sampling
Frequency domain representation of sampling
The effect of continuous to discrete time conversion maybe analyzed
by considering the Fourier transform of xs (t).
Since xs (t) is the product of xc (t) & s(t) ,the Fourier transform of
xs (t) is the convolution of the Fourier transforms of Xc (jΩ) & S(jΩ).
1
Xc (jΩ) ∗ S(jΩ)
2π
I s(t) is a periodic function of time and it is possible to compute its
Fourier series representation
∞
P
s(t) =
δ(t − nTs )
xs (t) = xc (t)s(t) ⇒ Xs (jΩ) =
n=−∞
S(jΩ) = 2π
∞
P
Ck δ(Ω − kΩs )
k=−∞
Where Ck is Fourier series coefficient and Ωs =
(Rediet Million)
DSP-Lecture #5
2π
Ts
March,2018
7 / 22
Periodic sampling
Frequency domain representation of sampling
Ck is determined from exponential Fourier series
1 TRs /2
1
Ck =
δ(t)e −jkΩs t dt =
Ts −Ts /2
Ts
Thus,
∞
2π X
S(jΩ) =
δ(Ω − kΩs )
Ts
k=−∞
⇒ The Fourier transform of a periodic infinite impulse train,s(t), is a
periodic infinite impulse train ,S(jΩ) ,in frequency domain.
(Rediet Million)
DSP-Lecture #5
March,2018
8 / 22
Periodic sampling
Frequency domain representation of sampling
1
Xc (jΩ) ∗ S(jΩ) , it follows that
2π
∞
1
2π P
Xs (jΩ) =
Xc (jΩ) ∗
δ(Ω − kΩs )
2π
Ts k=−∞
I Since Xs (jΩ) =
Xs (jΩ) =
∞
1 X
Xc (jΩ − jkΩs )
Ts
k=−∞
I Finally the discrete Fourier transform of x(n) can be obtained as follows:
∞
∞
P
P
x(n)e −jnw =
Xc (nTs )e −jnw and
- We know that x(e jw ) =
n=−∞
n=−∞
∞
∞
P
1 P
Xs (jΩ) =
Xc (jΩ − jkΩs ) =
Xc (nTs )e −jnΩTs
Ts k=−∞
n=−∞
-Combining the two equations:
∞
1 P
jw
2πk
x(e jw ) = Xs (jΩ)|Ω=w /Ts =
Xc (
−
)
Ts k=−∞
Ts
Ts
(Rediet Million)
DSP-Lecture #5
March,2018
9 / 22
Periodic sampling
Frequency domain representation of sampling
Example: Suppose that Xc (jΩ) is strictly band-limited so that Xc (jΩ) = 0
for |(Ω)| > ΩN as shown in figure bellow.
I If xc (t) is sampled with a sampling frequency Ωs > 2ΩN , the Fourier
transform of xs (t) is formed by periodically replicating Xc (jΩ) as
illustrated bellow.
(Rediet Million)
DSP-Lecture #5
March,2018
10 / 22
Periodic sampling
Frequency domain representation of sampling
I However ,if Ωs < 2ΩN ,the shifted spectra Xc (jΩ − jkΩs ) overlap, and
when these spectra are summed to form Xs (jΩ) ,the result is as shown
bellow.
I This overlapping of spectral components is called aliasing.When aliasing
occurs,the frequency of xc (t) is corrupted, and Xc (jΩ) cannot recovered
from Xs (jΩ).
I Aliasing can be avoided by using Nyquist sampling theorem.
(Rediet Million)
DSP-Lecture #5
March,2018
11 / 22
Periodic sampling
Nyquist sampling theorem
I If xc (t) is strictly band-limited,
Xc (jΩ) = 0
for |Ω| > ΩN
then xc (t) may be uniquely recovered from its sample xc (nTs ) if
Ωs ≥ 2ΩN =
2π
Ts
I The frequency ΩN = Ωs /2 is called the Nyquist frequency, and the
minimum sampling frequency, Ωs = 2ΩN , is called the Nyquist rate.
I Thus ,in order to avoid aliasing, the operating frequency of the signal
Ωs Ωs
should be in Nyquist interval [− ,
].
2 2
I This is done by analog low-pass pre-filter known as an anti-aliasing
pre-filter. The cutoff frequency of this pre-filter,Ωc , is taken to be the
Ωs
Nyquist frequency, .
2
(Rediet Million)
DSP-Lecture #5
March,2018
12 / 22
Periodic sampling
Aliased frequency components
I The unique frequency components that appear within the Nyquist
interval maybe obtained by reducing the original frequency f modulo fs , i.e
fa = f mod (fs )
-This modulo-fs operation is obtained by adding or subtracting from f
enough multiples of fs until it lies within the Nyquist interval [−fs /2, fs /2].
I Thus, the sinusoid that is extracted by the analog reconstructor will be
fs
xa (t) = e j2πfa t
fa = f if |f | ≤
2
(Rediet Million)
DSP-Lecture #5
March,2018
13 / 22
Periodic sampling
Aliased frequency components
Example:
Let x(t) = 4 + 3cos(πt) + 2cos(2πt) + cos(3πt).
Determine the minimum sampling rate that will not cause any aliasing
effects, If x(t) is sampled at half the Nyquist rate determine xa (t) that
would be aliased with x(t).
-The frequencies in x(t) are
1
f1 = 0Hz
f2 = Hz
f3 = 1Hz
f4 = 1.5Hz
2
Thus,fmax = f4 = 1.5Hz and the minimum sampling rate is
fs = 2fmax = 3Hz
fs
0
- If x(t) is sampled at half of this rate i.e fs = = 1.5Hz ,then aliasing
2
will occur.
0
0
f f
The Nyquist interval of this case is [− s , s ] i.e [−0.75, 0.75].
2 2
(Rediet Million)
DSP-Lecture #5
March,2018
14 / 22
Aliased frequency components
-The aliased frequencies will be only due to f3 & f4 since they are outside
the Nyquist interval.
- The aliased components will have frequencies
0
f3a = f3 mod(fs ) = 1mod(1.5) = 1 − 1.5 = −0.5Hz
0
f4a = f4 mod(fs ) = 1.5mod(1.5) = 1.5 − 1.5 = 0Hz
- Thus,x(t) will be aliased with
xa (t) = 4cos(2πf1 t) + 3cos(2πf2 t) + 2cos(2πf3a t) + cos(2πf4a t)
= 4 + 3cos(πt) + 2cos(−πt) + cos(0)
= 5 + 5cos(πt)
-The signal x(t)& xa (t) are shown below.They agree only at their sampled
values i.e x(nT ) = xa (nT )
(Rediet Million)
DSP-Lecture #5
March,2018
15 / 22
Sampling and reconstruction
I The above example shows that the sample values x(nT ) don’t uniquely
determine the continuous-time signal they can form.
I Hence, an ideal reconstructor is supposed to extract from a sampled
signal,all the frequency components that lie within the Nyquist interval,
Ωs Ωs
], & removes all frequencies outside the interval.
[− ,
2 2
I This shows that an ideal reconstructor,Hr (jΩ), acts as an ideal low-pass
Ωs
filter with cutoff frequency equal to the Nyquist frequency
.
2
(Rediet Million)
DSP-Lecture #5
March,2018
16 / 22
Sampling and reconstruction
Example: Sampling and reconstruction of sinusoidal signal
Suppose we sample the CT signal xc (t) = cos(4000πt) with sampling
1
sec.
period Ts =
6000
-We can obtain x(n) = xc (nTs ) = cos(4000πTs n) = cos(ω0 n)
2π
,where ω0 = 4000πTs =
3
- The highest frequency of xc (t) is Ω0 = 4000π and the sampling
2π
frequency is Ωs =
= 12000π
Ts
Ωs = 12000π ≥ 2Ω0 = 8000π ⇒ there is no aliasing.
- The Fourier transform of xc (t) is
Xc (jΩ) = πδ(Ω − 4000π) + πδ(Ω + 4000π)
(Rediet Million)
DSP-Lecture #5
March,2018
17 / 22
Sampling and reconstruction
and the sampled signal for sampling frequency of Ωs = 12000π is
∞
1 P
Xc (jΩ − jkΩs )
Xs (jΩ) =
Ts k=−∞
∞
π P
=
δ(Ω − 4000π − kΩs ) + δ(Ω + 4000π + kΩs )
Ts k=−∞
(Rediet Million)
DSP-Lecture #5
March,2018
18 / 22
Sampling and reconstruction
I the above figure(a) shows Xc (jΩ) is a pair of impulse at Ω = ±4000π
and the shifted copies of is FT centered on ±Ωs , ±2Ωs , etc
jω
) as a function of the normalized frequency
Ts
ω = ΩTs gives in figure(b).
I Plotting x(e jω ) = xs (
I The above figure also shows the frequency response of the ideal
reconstructor filter Hr (jΩ) for Ωs = 12000π
⇒ the signal that would be reconstructed would have frequency
Ω0 = 4000π which is the frequency of the original signal.
(Rediet Million)
DSP-Lecture #5
March,2018
19 / 22
Sampling and reconstruction
Example: Aliasing in the reconstruction of under-sampled sinusoidal
signal
Suppose the signal is again xc (t) = cos(4000πt).However now the
1
0
sampling period is increased to Ts =
sec
1500
- This sampling period fails to satisfy the Nyquist criterion ,since
0
Ωs = 3000π 2Ω0 = 8000π ⇒ there is will be aliasing.
0
- the sampled signal for sampling frequency of Ωs = 3000π is
∞
π P
0
0
Xs (jΩ) =
δ(Ω − 4000π − kΩs ) + δ(Ω + 4000π + kΩs )
Ts k=−∞
(Rediet Million)
DSP-Lecture #5
March,2018
20 / 22
Sampling and reconstruction
I This time the impulse is located at Ω = −1000π is from
0
δ(Ω + 4000π − kΩs ) and the impulse at Ω = 1000π is from
0
δ(Ω + 4000π + kΩs ).
I It is clear that the signal would be reconstructed using sampling rate
1
0
Ts =
sec would have frequency Ω0 = 1000π and not 4000π.
1500
(Rediet Million)
DSP-Lecture #5
March,2018
21 / 22
Periodic sampling
(#1 ) Class exercises & Assignment
πn
) was obtained by sampling a CT signal
4
xc (t) = cos(Ω0 t) at a sampling rate of 1000 sample/sec. Determine the
two possible values of Ω0 that could have resulted in sequence x(n).
1) The sequence x(n) = cos(
πn
2 Consider the discrete-time sequence x(n) = sin( ) .Find the two
8
different continuous-time signals that would produce this sequence when
sampled at a frequency of fs = 20Hz.
3) For the following continuous signals xc (t) and the corresponding
sampling frequency fs
a.xc (t) = 10sin(2πt) + 10sin(8πt) + 5sin(12πt) ,fs = 5Hz
b.xc (t) = sin(6πt)[1 + 2cos(4πt)] ,fs = 4Hz
i.Determine xa (t) aliased with xc (t) and show that the two signals have
the same sample values i.e xc (nTs ) = xa (nTs ).
ii. Find the condition for Ts to correctly sample xc (t) and avoid aliasing.
(Rediet Million)
DSP-Lecture #5
March,2018
22 / 22
Download