Transcript Chapter 2
Sampling Theorems
Periodic Sampling
• Most signals are continuous in time. Example: voice, music, images • ADC and DAC is needed to convert from continuous-time signals to discrete-time signals form and vice-versa.
Periodic Sampling
• Periodic Sampling of an analog signal is shown below:
Periodic Sampling
• The sampling process Anti aliasing filter S/H ADC Digital Processor Reconstruction Filter DAC
Periodic Sampling
• Anti-aliasing filter – To prevent aliasing effect – A low-pass analog filter with cut-off frequency less than half of sampling frequency – Pre-filtering to ensure all frequency components outside band-limited signal sufficiently attenuated
Periodic Sampling
• Sample-and-hold circuit (S/H) – Samples the input continuous –time signal at periodic intervals – Holds the analog sampled value constant at its output for sufficient time to allow accurate conversion by ADC
Periodic Sampling
• Reconstruction Filter – Smooth the staircase-like waveform of DAC output – An analog low-pass filter with cut-off frequency equal half of sampling frequency – Convert x[n] into sequence of impulses and then interpolates to form a continuous-time signal
x r
(
t
)
n
x
[
n
]
h r
(
t
nT
)
X r
(
j
)
H r
(
j
)
X
(
e j
T
)
Periodic Sampling
• A simplified representation of sampling process
x a
(
t
) Ideal Sampler
x
[
n
] Digital processors Ideal Interpolator
Periodic Sampling
•
x
[n] is generated by periodically sampling
x
a (t)
x
[
n
]
x a
(
t
)
t
nT
x a
(
nT
)
x a
(t)
x
[n] • Where F
T
F
T
1
T
is the sampling frequency
Periodic Sampling
x a
(t) = A cos (2π
F
t + φ)
x a
(t) = A cos (Ωt + φ) Ideal Sampler
x
[n]=A cos (2π
f
n + φ)
x
[n]=A cos (ωn + φ) • where
f
=
F
is the relative or normalized frequency of discrete time signal F
T
ω = ΩT is the relative or normalized angular frequency for discrete-time system
Periodic Sampling
• If the continuous-time signal is
x a
(
t
)= A cos ( Ωt +
Φ
) where Ω = 2πF (Angular Frequency) • After sampling, the analog signal will become discrete signal in the form of
x
[n] =
x a
[
n
T] = A cos ( Ω
n
T +
Φ
) Since, t =
n
T =
n
F T Then,
x
[n] =
x a
[nT] = A cos (2 π
Fn
T +
Φ
) = A cos (2 π
nF
/F T = A cos (2 π
fn
= A cos ( ωn +
Φ
) + +
Φ Φ
) ) Where n is a
time index
.
Periodic Sampling
•
Example 1
: The input continuous signal which have frequency of 2kHz enter the DTS system and being sampled at every 0.1ms. Calculate the digital and normalized frequency of the signal in Hz and rad.
Solution :
1. Calculate the Sampling Rate : F T = 1 / T = 1 / (0.1ms) = 10 kHz.
2. Now, calculate the digital frequency.
f
=
F
/ F T = 2 kHz / 10 kHz = 0.2
3. The digital frequency in radian, ω = 2π
f
= 2 π (0.2) = 0.4π rad.
4. The normalized digital frequency in radian, ω = ΩT = 2π
F
T = 2 π(2kHz)(0.1ms) = 0.4.
Nyquist Sampling & Aliasing
• Given a sequence of number representing a sinusoidal signal, the original waveform of the signal (continuous-time signal) cannot be determined • Ambiguity caused by spectral replicating effect of sampling
Nyquist Sampling & Aliasing
• Spectral of a bandlimited signal replicate itself at
fs
period of replication after sampling • Aliasing of replicated signal results in loss of information of the original signal
Nyquist Sampling & Aliasing
• Sampling Theorem | Let
x a
(
t
) be a band-limiting signal with X
a
(
j
Ω) = 0 for Ω| > Ω
m
. Then
x a
(
t
) is uniquely determined by its samples
x a
(
n
T), ∞ <
n
< ∞, if Ω
T
≥ 2 Ω
m
(Nyquist Condition/criteria) where Ω
T
= 2 π T
Nyquist Sampling & Aliasing
Example 2
: If the analog signal is in the form of :
x a
[t] = 3cos(1000 πt-0.1π)- 2cos(1500πt+0.6π) + 5cos(2500 πt+0.2π) Determine the signal bandwidth and how fast to sample the signal without losing data ?
Nyquist Sampling & Aliasing
Solution :
1. There are 3 frequencies components in the signal which is Ω 1 = 1000 π, Ω 2 = 1500 π, Ω 3 = 2500 π 2. The Input frequencies are :
F
1 = Ω 1 / 2 π = 500 Hz, F 2 = Ω 2 / 2 π = 750 Hz, F 3 Hz
3. Thus the Bandwidth Input signal is :
= Ω 3 / 2 π =1250 Ω
m
= 1250 Hz or 1.25 kHz 4. Thus the signal should be sampled at frequency more than twice the Bandwidth Input Frequency,
Ω
T > 2
Ω
m
Thus the signal should be sampled at
2.5 kHz
in order to not lose the data. In other words, we need more than 2500 samples per seconds in order to not lose the data
Nyquist Sampling & Aliasing
Example 3
: The analog signal that enters the DTS is in the form of :
x a
[t] = 3cos(50 πt) + 10sin(300πt) - cos(100πt) a. Determine the input signal bandwidth.
b. Determine the Nyquist rate for the signal.
c. Determine the minimum sampling rate required to avoid aliasing.
d. Determine the digital (discrete) frequency after being sampled at sampling rate determined from c.
e. Determine the discrete signal obtained after DTS.
Nyquist Sampling & Aliasing
Solutions : a. The frequencies existing in the signals are :
F
1 = Ω 1 / 2 π = 50π / 2π = 25 Hz.
F
2 = Ω 2 / 2 π = 300π / 2π = 150 Hz.
F
3 = Ω 3 / 2 π = 100π / 2π = 50 Hz.
Ω
m
= Maximum input frequency =
150 Hz
.
b. The Nyquist rate is defined as : 2
Ω
m
=
Ω
T
= 2(150 Hz) =
300 Hz
.
c. The minimum sampling rate required to avoid aliasing is
Ω
T
≥ 2
Ω
m
=
300 Hz
.
d.
f
1 =
F
1 / F T = 25 Hz / 300 Hz =
1/12
f
2 =
F
2 / F T = 150 Hz / 300 Hz =
1/2
f
3 =
F
3 / F T = 50 Hz / 300 Hz =
1/6
e. The discrete signal after DTS is :
x
[
n
] =
x a
[
n
T s ] = 3cos[2 π
n
(1/12)] + 10sin[2 π
n
(1/2)]- cos[2 π
n
(1/6)]