Digital Signal Processing Represents Signals by A Sequence of Numbers Like Sampling or Analog-To-Digital Conversions. They
Digital Signal Processing Represents Signals by A Sequence of Numbers Like Sampling or Analog-To-Digital Conversions. They
Introduction to DSP
Digital Signal Processing represents signals by a sequence of numbers like sampling or analog-to-digital conversions. They
perform processing on these numbers with a digital processor.
• A signal is a function of independent variables, with time being perhaps the most prevalent single variable. The
signal itself carries some kind of information available for observation.
• By the term processing, we mean operating in some fashion on a signal to extract useful information.
• Also, the word digital means that the processing is done with a digital computer or particular purpose digital
hardware.
DSPs reconstruct the analog signal from processed numbers through reconstruction or digital-to-analog conversion.
• Time Shifting – It means there is a movement done in the function concerning the x-axis.
• Time Scaling - The function of the signal g(t) is multiplied/scaled by the given time (signal stretching).
• Time Reversal - The negative variable inside the parenthesis denotes the time-reversal.
• Multiple Transformations - Amplitude scaling, time scaling, and time-shifting can be applied simultaneously.
𝑡 − 𝑡0
𝑔(𝑡) → 𝐴𝑔 ( )
𝑎
amplitude 𝑡
scaling 𝐴 𝑡→ 𝑡 𝑡→𝑡−𝑡0 𝑡 − 𝑡0 𝑡 − 𝑡0
𝑎
𝑔(𝑡) → 𝐴𝑔(𝑡) → 𝐴𝑔 ( ) → 𝐴𝑔 ( ) ≠ 𝐴𝑔 ( )
𝑎 𝑎 𝑎
A function whose even part is zero is odd, and a function whose odd part is zero is even.
• Product of Even and Odd Functions - shows the multiplication of an even function and an odd function which
results in an odd function.
• Product of Two Odd Signals – shows the multiplication of two odd functions, which results in an even function.
Signal Sampling
Any type of manipulation done in the signal is called signal processing. A typical reason for signal processing is to eliminate
or reduce an undesirable signal. These are the common types of processing in signal sampling: filtering, noise cancellation,
encryption, and echo suppression.
The analog filter processes analog input to obtain the band-limited signal. Afterward, the signal is sent to the analog-to-
digital conversion (ADC) unit.
• The ADC unit samples the analog signal, quantizes the sampled signal, and encodes the quantized signal level to
the digital signal.
Anti-aliasing Filtering
To satisfy the sampling theorem condition, we apply an The method can also be extended to other filter types,
anti-aliasing filter to limit the input analog signal. All the such as the Chebyshev filter. The Butterworth magnitude
frequency components are less than the folding frequency response with an order of n is given by
frequency (half of the sampling rate or Nyquist 1
|𝐻(𝑓)| =
frequency). √1 + (𝑓/𝑓𝑐 )2𝑛
Example: Given the DSP system where a sampling rate of 8000 Hz is used and anti-aliasing filter if a second-order
Butterworth lowpass filter with a cutoff frequency of 3.4 kHz. Determine the following:
• Percentage of aliasing level at the cutoff frequency.
• Percentage of aliasing level at the frequency of 1000 Hz.
Solution: 𝑓𝑠 = 8000, 𝑓𝑐 = 3400, and 𝑛 = 2.
If 𝑓𝑎 = 𝑓𝑐 = 3400 𝐻𝑧: If 𝑓𝑎 = 1000𝐻𝑧:
2𝑛 2𝑛
√1 + (𝑓𝑎 ) √1 + (𝑓𝑎 )
𝑓𝑐 𝑓𝑐
𝐴𝑙𝑖𝑎𝑠𝑖𝑛𝑔 𝑙𝑒𝑣𝑒𝑙 % = 𝐴𝑙𝑖𝑎𝑠𝑖𝑛𝑔 𝑙𝑒𝑣𝑒𝑙 % =
2𝑛 2𝑛
√1 + (𝑓𝑠 − 𝑓𝑎 ) √1 + (𝑓𝑠 − 𝑓𝑎 )
𝑓𝑐 𝑓𝑐
2(2) 2(2)
√1 + (3400) √1 + (1000)
3400 3400
= =
2(2) 2(2)
√1 + (8000 − 3400) √1 + (8000 − 1000)
3400 3400
1.4142 1.03007
= =
2.0858 4.3551
𝑨𝒍𝒊𝒂𝒔𝒊𝒏𝒈 𝒍𝒆𝒗𝒆𝒍 % = 𝟔𝟕. 𝟖% 𝑨𝒍𝒊𝒂𝒔𝒊𝒏𝒈 𝒍𝒆𝒗𝒆𝒍 % = 𝟐𝟑. 𝟎𝟓%
Example: Given the DSP system where a sampling rate of 40,000 Hz is used, the anti-aliasing filter is the Butterworth
lowpass filter with a cutoff frequency 8 kHz, and the percentage of aliasing level at the cutoff frequency is required to
be less than 1%, determine the order of the anti-aliasing lowpass filter.
Solution: Using fs=40, 000, fc=8000, and fa=8000 Hz.
1.4142
2(1) 𝑛 = 2: 𝐴𝐿% == = 8.82%
√1 + (8000) √1 + (4)4
8000
𝑛 = 1: 𝐴𝐿% = 1.4142
𝑛 = 3: 𝐴𝐿% == = 2.21%
40000 − 8000 2(1) √1 + (4)6
√1 + ( ) 1.4142
8000 𝑛 = 4: 𝐴𝐿% == = 0.55% < 1%
1.4142 √1 + (4)8
𝐴𝐿% = = 34.30% ∴ 𝒏 = 𝟒 has satisfied the 1% aliasing noise level.
√1 + (4)2
The magnitude and phase responses are given by In terms of Hz, we have
sin(𝜔𝑇/2) sin(𝑥) sin(𝜋𝑓𝑇)
|𝐻ℎ (𝜔)| = 𝑇 | | = 𝑇| | |𝐻ℎ (𝑓)| = 𝑇 | | ∠𝐻ℎ (𝑓) = −𝜋𝑓𝑇
𝜔𝑇/2 𝑥 𝜋𝑓𝑇
∠𝐻ℎ (𝜔) = −𝜔𝑇/2 where 𝑥 = 𝜔𝑇/2.
Distortion
sin(𝜋𝑓𝑇)
The magnitude frequency response of the sampled and hold signal becomes |𝑌𝐻 (𝑓)| = 𝑇 | | |𝑌𝑆 (𝑓)|
𝜋𝑓𝑇
• The magnitude frequency response acts like lowpass filtering and shapes the sampled signal spectrum of 𝑌𝑠 (𝑓).
This shaping effect distorts the sampled signal spectrum 𝑌𝑠 (𝑓) in the desired frequency band.
• On the other hand, the spectral images are reduced due to the lowpass effect of 𝑠𝑖𝑛(𝑥)/𝑥. This sample-and-
hold effect can help us design the anti-image filter.
• Since the magnitude frequency response of the sampled signal using an ideal sampler is 𝑇|𝑌𝑠 (𝑓)|, therefore,
the spectral distortion at the recovery stage can be derived as:
𝑇|𝑌𝑠 (𝑓)| − |𝑌𝐻 (𝑓)| |𝑌𝐻 (𝑓)| sin(𝜋𝑓𝑇)
𝐷𝑖𝑠𝑡𝑜𝑟𝑡𝑖𝑜𝑛% = =1− 𝐷𝑖𝑠𝑡𝑜𝑟𝑡𝑖𝑜𝑛% = 1 − | |
𝑇|𝑌𝑠 (𝑓)| 𝑇|𝑌𝑠 (𝑓)| 𝜋𝑓𝑇
sin(𝜋𝑓𝑇)
The percentage of distortion in the desired frequency band is given by 𝐷𝑖𝑠𝑡𝑜𝑟𝑡𝑖𝑜𝑛% = (1 − | |) × 100%
𝜋𝑓𝑇
Example: Given a DSP system with a sampling rate of 8000 Hz and a hold circuit used after DAC.
• Determine the percentage of distortion at the frequency of 3400 Hz.
• Determine the percentage of distortion at the frequency of 1000 Hz.
Solution:
Since 𝑓𝑇 = 3400 × 1/8000 = 0.425 Since 𝑓𝑇 = 1000 × 1/8000 = 0.125
sin(𝜋𝑓𝑇) sin(𝜋𝑓𝑇)
𝐷% = (1 − | |) × 100% 𝐷% = (1 − | |) × 100%
𝜋𝑓𝑇 𝜋𝑓𝑇
sin(0.425𝜋) sin(0.125𝜋)
𝐷% = (1 − | |) × 100% 𝐷% = (1 − | |) × 100%
0.425𝜋 0.125𝜋
𝐷% = 27.17% 𝐷% = 2.55%
References:
Abood, S. (2020). Digital signal processing: A primer with MATLAB®. CRC Press.
Deergha Rao, K. & Swamy, M. (2018). Digital signal processing: Theory and practice. Springer.
Gazi, O. (2018). Understanding digital signal processing. Springer
Kim, K. (2021). Conceptual digital signal processing with MATLAB. Springer.
Tan, T. & Jiang, J. (2019). Digital signal processing: Fundamentals and applications (3rd ed.). Elsevier.