Module 2 Note
Module 2 Note
ICE 517
MODULE 2
DIGITAL PROCESSING OF ANALOG
SIGNALS
Lecturer(s): Dr. A.A Adewale, Engr. Akua Collins
Learning Outcomes
Define the following terms:
Sampling, Sampling theorem, Quantization, Quantization noise,
Aliasing, Coding, Folding frequency,
Draw the block diagram of the basic parts of an Analog-to-Digital
(A/D) Converter
Solve problems involving folding frequency, conversion of analog
signals into digital signals, aliasing, resolution, quantization,
sampling rate and sampling frequency.
Analog-to-Digital & Digital-to-Analog
Conversion
To process analog signals digitally, it must first be converted into
digital signals.
The process of converting analog signals into digital signals is called
analog-to-digital conversion (this is carried out by the analog-to-
digital converter)
The process of converting analog signals into digital signals follows
the following order:
Sampling: This is the process of obtaining ‘samples’ of a
continuous-time (analog signal) at discrete-time instants.
A continuous time signal 𝑥𝑎 𝑡 , can be converted to discrete time
signal 𝑥(𝑛) by sampling. Hence 𝑥𝑎 𝑡 and 𝑥(𝑛) are related as
𝑥𝑎 𝑡 = 𝑥𝑎 𝑛𝑇 = 𝑥(𝑛)
Where T is the “sampling interval”, n= 0, 1,2,3…….
Sampling Analog Signals
𝑛
𝑡 = 𝑛𝑇 =
𝐹𝑠
t → 𝐶𝑜𝑛𝑡𝑖𝑛𝑢𝑜𝑢𝑠 − 𝑡𝑖𝑚𝑒
𝑇 → 𝑆𝑎𝑚𝑝𝑙𝑒 𝑖𝑛𝑡𝑒𝑟𝑣𝑎𝑙
𝑛 → 𝑆𝑎𝑚𝑝𝑙𝑒 𝑛𝑢𝑚𝑏𝑒𝑟
𝟏
Sampling rate 𝑭𝒔 =
𝒔𝒂𝒎𝒑𝒍𝒊𝒏𝒈 𝒊𝒏𝒕𝒆𝒓𝒗𝒂𝒍 𝑻
𝟏
𝑭𝒔 is also called sampling frequency. Since 𝒕 = 𝒏𝑻 and 𝑭𝒔 = , it
𝑻
𝒏
implies that 𝒕 = 𝒏𝑻 =
𝑭𝒔
𝑥𝑎 𝑡 = 𝐴𝑐𝑜𝑠(2𝜋𝐹𝑡 + 𝜃)
2𝜋𝑛𝐹
𝑥𝑎 𝑛𝑇 ≡ 𝑥 𝑛 = 𝐴𝑐𝑜𝑠 2𝜋𝐹𝑛𝑇 + 𝜃 = 𝐴𝑐𝑜𝑠( + 𝜃)
𝐹𝑠
𝜔 = Ω𝑇 ……………………….. (2)
• Where
Ω → Frequency of continuous-time signal
𝜔 → Frequency of discrete-time signal
NOTE: The frequency (𝑓) is sometimes called the “relative or
normalized frequency”.
• Thus the frequency (𝐹) of the continuous-time signal can be
determined if the sampling frequency (𝐹𝑠 ) and the normalized or
relative frequency (𝑓) are known.
NOTE:
The sampling of a continuous-time signal;
At a rate of:
1
𝐹𝑠 = ;
𝑇
𝑥 𝑛 = 𝐴𝑐𝑜𝑠 𝜔𝑛 + 𝜃 = 𝐴𝑐𝑜𝑠(2𝜋𝑓𝑛 + 𝜃)
𝑥𝑎 𝑡 = 𝐴𝑖 cos 2𝜋𝐹𝑖 𝑡 + 𝜃𝑖
𝑖=1
𝑁 → 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 𝑐𝑜𝑚𝑝𝑜𝑛𝑒𝑛𝑡𝑠
To avoid the problem of aliasing, a sampling rate must be at least double of the
maximum or highest frequency
∴ 𝐹𝑠 ≥ 2𝐹𝑚𝑎𝑥
𝐹𝑠 = 𝑆𝑎𝑚𝑝𝑙𝑖𝑛𝑔 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦
𝐹𝑚𝑎𝑥 = 𝐻𝑖𝑔ℎ𝑒𝑠𝑡 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 𝑐𝑜𝑚𝑝𝑜𝑛𝑒𝑛𝑡 𝑖𝑛 𝑡ℎ𝑒 𝑎𝑛𝑎𝑙𝑜𝑔 𝑠𝑖𝑔𝑛𝑎𝑙
𝑒𝑞 𝑛 = 𝑥𝑞 𝑛 − 𝑥 𝑛
Example of a quantization process
Quantization and Encoding of
𝑥 𝑛 = 10(0.9)𝑛 into four digits
Parameters
1 1
𝐹𝑠 = = = 1𝐻𝑧
𝑇 1
Number of samples 𝑛 = 10
To quantize, we either discard (truncate) or round up (rounding)
e.g Truncate:
Real value = 7.29
Quantized value = 7
Round up:
Real value = 5.9049
Quantized value = 6
• Rounding and truncation were used to quantize the discrete-time
signals in the illustration in the previous slide.
• NOTE:
1) The values allowed in the digital signal are called
“quantization levels”.
2) The difference between (∆) two quantization levels is
called “quantization step” or ‘resolution”.
∆ ∆
But 𝑒𝑞 (𝑛) has the range (− ≤ 𝑒𝑞 (𝑛) ≤ )
2 2
This means that the quantization error [𝑒𝑞 (𝑛)] cannot be
greater than half the quantization step (∆).
𝑋𝑚𝑎𝑥 −𝑋𝑚𝑖𝑛
∴ Quantization step (∆) =
𝐿−1
𝑋𝑚𝑎𝑥 − 𝑋𝑚𝑖𝑛 (Maximum & minimum values of
𝑥 𝑛 𝐿 → 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 Quantization levels
For example:
𝑋𝑚𝑎𝑥 = 1; 𝑋𝑚𝑖𝑛 = 0; 𝐿 = 11
1−0 1
∴ ∆= = = 0.1
11 − 1 10
NOTE: 𝑋𝑚𝑎𝑥 − 𝑋𝑚𝑖𝑛 is called the “dynamic range”
Coding