Mod 4
Mod 4
• The sampling is performed by taking samples of continuous time signal at definite intervals of time.
• Usually, the time interval between two successive samples will be same and such type of sampling is called periodic or
uniform sampling.
• The time interval between successive samples is called sampling time (or sampling period or sampling interval), and it is
denoted by Ts. The unit of sampling period is second (s). (The lower units are milli-second (ms) and micro-second ms)).
• The inverse of sampling period is called sampling frequency (or sampling rate), and it is denoted by Fs. The unit of
sampling frequency is Hertz (Hz). (The higher units are kHz and MHz).
• A sequence 𝑓[𝑛] (or 𝑓[𝑘]) can be obtained from a continuous-time signal 𝑓(𝑡) through sampling. Here, the value of 𝑓[𝑛]
for some integer 𝑛 is equal to 𝑓(𝑛𝑇 ), the value of 𝑓(𝑡) at time 𝑡=𝑛𝑇 .
• So, we sample at regular intervals of width 𝑻𝒔 seconds or, equivalently, with a sampling rate of 𝑓 =1/𝑇 Hz.
loss of signal information
• Loss of information about the signal 𝑓(𝑡) can be made insignificant if we sample at a very high rate (i.e., select very
small 𝑇 ).
The question now is whether or not, for a finite sampling rate, 𝑓 , can we perfectly reconstruct 𝑓(𝑡) from its samples, 𝑓[𝑛].
If the answer is yes, then we need to answer the following questions:
(1) What is a sufficient sampling rate that allows for perfect signal reconstruction?
(2) Are there restrictions on the nature of the continuous-time signal 𝑓(𝑡) being sampled?
(3) Can we derive a formula to reconstruct 𝑓(𝑡) from its samples 𝑓[𝑛]?
(4) Can we realize a physical (or simulated) system that accepts 𝑓[𝑛] and generates 𝑓(𝑡)?
i.e., a sample is taken every 𝑇 =1/𝑓 seconds. Then, 𝑓(𝑡) can be perfectly reconstructed from its samples 𝑓[𝑛] if and only
if 𝑓 >2𝐵.
The sampling rate must exceed twice the bandwidth of the signal (2𝐵 is referred to as Nyquist sampling rate).
Furthermore, 𝑓(𝑡) can be uniquely reconstructed by the following interpolation formula:
Another source of distortion is the approximate nature of the reconstruction filter (a low-pass filter) that is used
to reconstruct (interpolate) the signal.
Sampling, in theory, consists of simply modulating (multiplying) the signal 𝑓(𝑡) by another signal, 𝛿 (𝑡), which
consists of a train of unit-impulses separated (in time) by 𝑇 seconds.
Employing the sampling property of the delta function [namely, 𝑓(𝑡)𝛿(𝑡−𝑎)=𝑓(𝑎)𝛿(𝑡−𝑎)], the above expression
can be expressed as
The following figure depicts the sampling process for an arbitrary, band limited signal.
Impulse train sampling
In order to get a better picture of the sampling process by considering the signals in the frequency domain.
Let us apply the Fourier transform to the sampled signal
Also note that 𝛿 (𝑡) is a periodic signal (of fundamental frequency 𝜔 =2𝜋/𝑇 =2𝜋𝑓 ) having the following exponential
Fourier series representation
By employing the Fourier Pair 𝒆𝒋𝒏𝝎𝟎𝒕 ↔2πδ(ω−n𝝎𝟎 ) and the superposition property, then the Fourier
transform of 𝛿 (𝑡) would be
For convenience, express the above result in terms of the Hz frequency, 𝑓, as (recall that 𝑓 =𝜔 /2𝜋)
From the above equation, it can be stated that, in the frequency domain, the sampled signal is essentially a
superposition of shifted (by integer multiples of the sampling frequency, 𝑓 ) versions of the spectrum of the signal
𝑓(𝑡). Also, the amplitude of the spectrum 𝐺(𝑓) is scaled by the sampling rate, 𝑓 .
The following figure depicts, graphically, the magnitude spectra |𝐹(𝑓)| and |𝐺(𝑓)| as a function of frequency, 𝑓.
• Note how the magnitude spectrum |𝐹(𝑓)| is duplicated every 𝑓𝑠 (Hz) in the spectrum for |𝐺(𝑓)|.
• These duplicates are known as the image spectra.
• It shows that if the sampling frequency 𝑓 is twice the bandwidth (i.e., 𝑓 =2𝐵) of the bandlimited signal 𝑓(𝑡),
then there will be no overlap between |𝐹(𝑓)| and its images, therefore an ideal (brick-wall) low-pass filter
with a cutoff frequency 𝑓 =𝑓 /2=𝐵 (and dc gain 𝑇 ) can be used to perfectly reconstruct 𝑓(𝑡)
• Increasing the sampling rate beyond 2𝐵 (𝑓 >2𝐵) allows for further separation between |𝐹(𝑓)| and its adjacent
image spectra, and may allow for a practical filter (say a 4th or higher order Butterworth filter) to properly
New Section 1 Page 3
• Increasing the sampling rate beyond 2𝐵 (𝑓 >2𝐵) allows for further separation between |𝐹(𝑓)| and its adjacent
image spectra, and may allow for a practical filter (say a 4th or higher order Butterworth filter) to properly
reconstruct the signal 𝑓(𝑡).
• On the other hand if we under sample, 𝑓 <2𝐵, then there will be overlap with the image spectra and the
reconstructed signal will always have distortion (aliasing).
• The 𝑓 =2𝐵 threshold value on the sampling frequency is known as the Nyquist sampling rate.
Aliasing is an effect of the sampling that causes different signals to become indistinguishable.
Due to aliasing, the signal reconstructed from samples may become different than the original
continuous signal. This can drastically deteriorate the performance if proper care is not taken.
Signal Reconstruction
In control system, hold operation becomes the most popular way of reconstruction due to its simplicity and low cost.
• Higher the order of the derivatives to be estimated is, larger will be the number of delayed pulses required.
• Since time delay degrades the stability of a closed loop control system, using higher order derivatives of f(t) for more accurate
reconstruction often causes serious stability problem.
• Moreover a high order extrapolation requires complex circuitry and results in high cost.
• For the above reasons, use of only the first term in the power series to approximate 𝑓(𝑡) during the time interval 𝑘𝑇 ≤ 𝑡 < (𝑘 + 1)𝑇 is very
popular and the device for this type of extrapolation is known as zero-order extrapolator or zero order hold.
Figure illustrates the operation of a ZOH
The accuracy of zero order hold (ZOH) depends on the sampling frequency. When 𝑇 → 0, the output of ZOH approaches the
continuous time signal.
Zero order hold is again a linear device which satisfies the principle of superposition.
Therefore,
𝑥 (𝑡) = 𝑥(0); 𝑓𝑜𝑟 0 ≤ 𝑡 ≤ 𝑇
1 𝑓𝑜𝑟0 ≤ 𝑡 ≤ 𝑇
ℎ(𝑡) =
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝑥 𝑡 ℎ(𝑡)
ℎ(𝑡)
∴𝑥 (𝑡) = 𝑥 𝑘𝑇 {𝑢 𝑡 − 𝑘𝑇 − 𝑢 𝑡 − 𝑘 + 1 𝑇 }
⇒ 𝑒 𝑒 ( ) 1−𝑒
𝑥 (𝑠) = 𝑥(𝑘𝑇) ⎯⎯⎯⎯⎯− ⎯⎯⎯⎯⎯⎯⎯⎯ = ⎯⎯⎯⎯⎯⎯⎯⎯ 𝑥(𝑘𝑇)𝑒
𝑠 𝑠 𝑠
1−e
x (s) = ⎯⎯⎯⎯⎯⎯⎯⎯ X ∗ (s)
s
x (s) 1−e
⎯⎯⎯⎯⎯ = ⎯⎯⎯⎯⎯⎯⎯⎯
X ∗ (s) s
When the 1st two terms of the power series are used to extrapolate f(t), over the time interval 𝑘𝑇 ≤ 𝑡 < (𝑘 + 1)𝑇 , the device is called
a first order hold (FOH). Thus
Impulse response of FOH is obtained by applying a unit impulse at 𝑡 = 0, the corresponding output is obtained by
setting 𝑘 = 0, 1, 2, . . . . .
Similarly, when 𝑇 ≤ 𝑡 < 2𝑇, first two terms produce nonzero values and the resultant is (1 − 𝑡/𝑇). In case of 𝑡 ≥ 2𝑇, all three terms
produce nonzero values and the resultant is 0.