Professional Documents
Culture Documents
Faculty of Engineering
Winter 2017
Topic 1: Introduction and Background
Sampling
Quantization
Coding
Sampling of Analog Signals
Consider a continuous-time (CT) signal
where x(n) is the resulting DT signal, and T > 0 is sampling period (sampling interval).
Fs := 1/T is called sampling rate or sampling frequency
Continuous-Time vs. Discrete-Time Sinusoids
Some facts from lecture 2:
Continuous-time sinusoids
For any discrete-time sinusoid with frequency outside the fundamental range, there exists an identical
sinusoid with frequency from within the fundamental range
Sampling of Analog Signals
Let xa (t) be a continuous-time sinusoidal signal of the form:
where
F
f=
Fs
Discrete-time sinusoids with frequencies f separated by an integer number are identical
!
If F1 and F2 are such that
F1 /Fs F2 /Fs = k,
where k is an integer number, then continuous-time sinusoidal signals with frequencies F1
and F2 after sampling at a rate Fs will result in identical discrete-time sinusoids!
This effect (where different continuous-time sinusoidal signals become indistinguishable after
sampling) is called aliasing
Sampling of Analog Signals
Example:
Consider two CT sinusoids:
1 7
x1 (t) = cos 2 t, x2 (t) = cos 2 t.
8 8
Example of aliasing:
Two CT sinusoids with frequencies F0 = 1/8 Hz and F1 = 7/8 Hz
sampled at Fs = 1 Hz.
where
F
f=
Fs
Discrete-time sinusoids are distinct only within the fundamental range of frequencies
1 1
<f < .
2 2
!
or, equivalently,
Fs Fs
<F < .
2 2
Sampling of Analog Signals
Summary:
CT sinusoids
Fs Fs
xa (t) = A cos (2Fk t + ) , Fk = F0 + kFs , F0 , k = 0, 1, 2, . . .
2 2
sampled at a rate Fs all result in the same DT sinusoid
F0 + kFs
x(n) := xa (nT ) = A cos 2 n+
Fs
where f0 = F0 /Fs .
CT frequencies Fk = F0 + kFs , k = 1, 2, . . . are indistinguishable from F0 after sampling with
rate Fs . Thus, they are aliases of F0 .
The one-to-one correspondence between sinusoidal signals before and after sampling exists if
and only if
Fs Fs
<F < ,
2 2
where F is frequency of the continuous-time sinusoidal signal and Fs is sampling rate.
Sampling of Analog Signals
Example 1.4.2 (Proakis & Manolakis, 2007): Consider the analog signal
xa (t) = 3 cos(100t).
Problem (a): Determine the minimum sampling rate required to avoid aliasing.
Solution. The frequency of the continuous-time signal xa (t) is F = 50 Hz. To avoid aliasing, the
sampling rate must be at least twice higher than F . Therefore, the minimum Fs = 100 Hz.
Problem (b): Suppose the signal is sampled at Fs = 200 Hz. What is the DT signal obtained
after sampling?
Solution: n
x(n) = 3 cos 100 = 3 cos n .
200 2
Sampling of Analog Signals
Example 1.4.2 (Proakis & Manolakis, 2007): Consider the analog signal
xa (t) = 3 cos(100t).
Problem (c): Suppose the signal is sampled at Fs = 75 Hz. What is the DT signal obtained after
sampling?
Solution:
n 4 2 2
x(n) = 3 cos 100 = 3 cos n = 3 cos n = 3 cos n .
75 3 3 3
Problem (d): What is the frequency 0 < F < Fs /2 of a CT sinusoid that yields samples identical
to those obtained in part (c)?
Solution: Continuous-time sinusoidal signal x(t) = 3 cos(2F t) after sampling with Fs = 75 Hz
must satisfy
n 2F 2 2F 2
x(n) = 3 cos 2F = 3 cos n = 3 cos n ) = ) F = 25 Hz.
75 75 3 75 3
Sampling of Analog Signals
In particular, we need to ensure that the signal does not have significant
frequency content above certain frequency Fmax (i.e., sinusoids with fre-
quencies F > Fmax are negligibly small in amplitude/power)
CT signal:
N
X
xa (t) := Ai cos (2Fi t + i )
i=1
max Fi Fmax ()
i=1,...,N
Fs > 2Fmax
Suppose the CT signal is sampled at a rate Fs > 2B. Then xa (t) can be exactly recovered
from its sample values x(n) := xa (nT ), T = 1/Fs .
Fn := 2Fmax = 2B is called Nyquist rate.
The above reconstruction formula involves computing infinite series for each t; it is mainly
of theoretical interest. Practical reconstruction formulas exist (see, for example, Chapter 6,
Proakis & Manolakis, 2007)
Sampling of Analog Signals
Sampling
Quantization
Coding
Quantization
Quantization is the process of conversion of a discrete-time continuous
amplitude signal into a digital (discrete-time discrete amplitude) signal.
xq = Q [x(n)]
Quantization
Sampling
Quantizer resolution:
xmax xmin
= ,
L 1
where L is the number of quantization levels, and xmax , xmin are the maximum
and the minimum values of x(n).
Quantization
The error introduced by quantization is called quantization error or quan-
tization noise:
eq (n) = xq (n) x(n).
eq (n) .
2 2
Sampling Quantization
Sampling
Quantization
Coding
Coding
Coding is the process of assigning of a unique binary number to each quantization level
With a word of length b > 0 on can create 2b binary numbers. Thus, the number b of bits
required for coder must satisfy
b log2 L,
where L is the number of quantization levels.
Coding
D/A Converter accepts a binary word and produce an output proportional to the value
of the binary word
The z-Transform and its Application to the Analysis of LTI Systems: The z-Transform,
Properties of the z-Transform, Rational z-Transforms, Inversion of the z-Transform, Analysis of
LTI Systems in the z-Domain, The One-sided z-Transform
The Discrete Fourier Transform: Frequency-Domain Sampling: The Discrete Fourier Trans-
form (DFT), Properties of the DFT