DSP Classppt
DSP Classppt
UNIT- II: Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT): Discrete Fourier Transform and its Properties, Divide and
Conquer Approach, Decimation in Time and Decimation in Frequency FFT Algorithms.
DSP
DSP
EEN 15251
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
AFTER MID SEM
Digital Signal Processing
| EE-MNNIT
| EE-MNNIT
UNIT- III: Digital Filter Structure: Describing Equation of digital filter, Structures for FIR Systems: Direct Form Structure, Cascade Form
Structure, Structure for IIR Systems: Direct Form Structures, Cascade Form Structure, Parallel Form Structure and Lattice Structure.
UNIT- IV: Design of Digital Filters: Causality and its Implications, Difference between analog filters and digital filters, FIR filter design
using windows, Design of IIR filters from analog filters using: Approximation of Derivatives, Impulse Invariance and Bilinear
Course Coordinator : Dr Kapil Chauhan Transformation, Frequency transformations
Assistant Professor, Department of Electrical Engineering
Motilal Nehru National Institute of Technology Allahabad, Prayagraj.
1 2
What is Signal ?
What is Signal ?
• The signals are functions of one or more independent variables, containing information
about the behavior or nature of some phenomenon.
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
| EE-MNNIT
| EE-MNNIT
3 4
16-09-2025
DSP
• can take any only of amplitude
4. Discrete time-discrete amplitude (Digital Signal) • Sampling Rate & Sampling Frequency
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
• defined at each point of time;
• Continuous : can take any value between −∞ 𝑡𝑜 + ∞ • can take only specific value of
amplitude
• Discrete : Takes specific values as per sampling frequency or quantized rules
5 6
DSP
| 5TH SEM
| 5TH SEM
• Increasing sampling frequency can improve resolution but increases computational cost and memory
9/16/2025
9/16/2025
Sampler Quantizer Coder • Maximum Sampling Frequency (Practical Constraint)
| EE-MNNIT
| EE-MNNIT
• a. Hardware constraints
• ADC speed
What will happen if a signal is sampled at a sampling frequency more than a hardware can support ?
7 8
16-09-2025
• How to decide “Sampling Frequency” ? • Aliasing : Alias means faking someone else identity.
Minimum Sampling Frequency
1. Draw 50 Hz Sinusoidal Signal
Sampling as per Shannon
2. Draw Sampled Signal at 400 Hz Re-construction
Nyquist Theorem
3. Draw Sampled Signal at 100 Hz
DSP
DSP
SHANNON–NYQUIST THEOREM
| 5TH SEM
| 5TH SEM
"To perfectly reconstruct a continuous-time (analog) signal from its samples, it must be sampled at a rate at
9/16/2025
9/16/2025
least twice its highest frequency component.“
| EE-MNNIT
| EE-MNNIT
𝑓 ≥ 2𝑓 Alias of original signal
Sampling as per below
Re-construction
fs/2
fs = 2fm is called as Nyquist Rate.
What will happen if a signal is sampled at a sampling frequency less than 2fm ?
9 10
DSP
• A signal has multiple alias.
| 5TH SEM
| 5TH SEM
9/16/2025
frequency. Calculate alias frequency for following cases-
| EE-MNNIT
| EE-MNNIT
11 12
16-09-2025
• Filtering: Removing unwanted parts of the signal, such as noise, or extracting useful parts of the signal. Filters can be low-
pass, high-pass, band-pass, or band-stop, depending on the frequencies they allow through or block.
• Transformation: Converting a signal from one form to another, such as from the time domain to the frequency domain
using Fourier Transform. This helps in analyzing the frequency components of the signal.
DSP
DSP
Signal Communication Processor
Receiver
| 5TH SEM
| 5TH SEM
• Modulation and Demodulation: Changing the signal to transmit it over a medium and then converting it back to its Generator Medium
9/16/2025
9/16/2025
original form. This is used in communication systems.
| EE-MNNIT
| EE-MNNIT
Compression: Reducing the amount of data required to represent a signal, making it easier to store or transmit.
Techniques like JPEG for images or MP3 for audio are examples of compression.
• Detection and Estimation: Extracting information from signals, such as detecting the presence of a signal or estimating
parameters like amplitude, phase, or frequency.
• Signal Generation: Creating signals with desired properties, such as waveforms for testing or simulation purposes.
• Interpolation and Decimation: Changing the sampling rate of a signal. Interpolation increases the sampling rate,
while decimation decreases it. 1. Classroom-wide 2. City wide announcement 3. Country-wide announcement
13
10m few kms Thousands kms 14
Why normal human voice can’t reach far ? Analog Signal Processing: Radio Broadcasting
• Air Resistance ; can’t bend at wall corner, can’t travel in vacuum
DSP
| 5TH SEM
• kHz ranges
9/16/2025
9/16/2025
• Can travel through vacuum
| EE-MNNIT
| EE-MNNIT
15 16
16-09-2025
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
Modulator Modulator
17 18
• Tuning Circuit
• By adjusting the capacitor (using a tuning knob), the resonant frequency fo changes, allowing the
circuit to tune into different radio stations.
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
19 20
16-09-2025
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
DSP
introduced, it is challenging to remove without affecting the desired signal.
2. No Authentication
| 5TH SEM
| 5TH SEM
•
• Signal Degradation: Over long distances, analog signals can degrade due to attenuation,
9/16/2025
9/16/2025
• The owl doesn’t check whether Harry actually receives the letter.
distortion, and other factors. This degradation can result in a loss of quality, making it
• Similarly, analog processors do not verify the integrity or authenticity of the data.
difficult to maintain a clear and accurate signal. For example, in AM and FM radio, signal
| EE-MNNIT
| EE-MNNIT
• Any attacker can modify or block the signal, and the system won’t know.
quality decreases with distance from the transmitter.
• 3. No Redundancy or Retransmission
• Once letters are destroyed, there’s no error detection or automatic retransmission. • Lack of Error Detection and Correction :Analog systems lack the sophisticated error
• Analog processors typically lack error correction or recovery mechanisms. detection and correction mechanisms found in digital systems. This means that any errors
introduced during transmission, such as noise or signal degradation, cannot be easily
• While encryption techniques exist for advanced analog communication, they are not as detected and corrected, leading to potential loss of information or reduced quality.
robust or widely implemented as in digital systems.
25 26
9/16/2025
2 Fourier
𝑋 𝜔 = 𝑥 𝑡 𝑒 𝑑𝑡 𝑋 𝜔 = 𝑥 𝑡 𝑒 𝑑𝑡
(Joseph Fourier – 1807, French)
| EE-MNNIT
3 Z
(Eliahu I. Jury – 1950, American ) 𝑋 𝑧 = 𝑥𝑛𝑧 𝑋 𝑧 = 𝑥𝑛𝑧
(Inspired from Hurewicz work)
DSP
•
x(t)∗h(t)⟶X(s)⋅H(s)
| 5TH SEM
| 5TH SEM
hum and identify any harmonic distortion in the audio.
9/16/2025
9/16/2025
2. Differential equations Algebraic equation in s-domain
Task 3: Design a real-time digital PID controller for the robotic arm. The microcontroller
| EE-MNNIT
| EE-MNNIT
•
samples the angle every 1 ms. Make sure the system remains stable.
6 + + 𝑦 𝑡 = 6𝑠 𝑌 𝑠 + 10𝑠𝑌 𝑠 + 𝑌 𝑠
How to proceed using Laplace, Fourier or Z-transform ?
29 30
• Stability Analysis
• Finding responses (impulse response, ramp response,…)
• Laplace-Transform (if continuous system)
• Z-Transform (if discrete system)
DSP
| 5TH SEM
9/16/2025
• Removing noise from the signal
| EE-MNNIT
| EE-MNNIT
Solvability*
31 32
16-09-2025
Fourier Series : An arbitrary function defined in a finite interval can always be represented
as sums of sinusoids.
DSP
DSP
If a signal f(t) is periodic with period T, its Fourier series is:
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
33 34
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
Square Wave
Fourier
Series 8 Level Fourier Decomposition,
Analysis 35 36
16-09-2025
Plot Magnitude vs Frequency and Phase vs Frequency Mag = sqrt(a^2 + b^2) ; Phase = atan2(b,a)
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
37 38
TUTORIAL –I
DSP Why on earth do we bother breaking any signal into sums of sinusoids?
• Calculate its Fourier Components
| 5TH SEM
| 5TH SEM
9/16/2025
• Draw approximate cumulative sum signal for N = 5, 10 and 20.
| EE-MNNIT
| EE-MNNIT
39 40
16-09-2025
DIRICHLET CONDITION
Why on earth do we bother breaking any signal into sums of sinusoids? • Can you calculate Fourier Series of any signal ?
Because sinusoids are fundamental building blocks
DSP
Just like any English word (say DIGITAL) can be built from letters A–Z, any signal can be built by combining
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
sinusoids.
| EE-MNNIT
They are simple, predictable, and mathematically well-behaved.
| EE-MNNIT
41 42
DSP
| 5TH SEM
| 5TH SEM
FOURIER
9/16/2025
9/16/2025
TRANSFORM
| EE-MNNIT
| EE-MNNIT
• Why a finite length time domain signal has infinite length in Fourier domain Discrete Fourier Transform (DFT)
representation ? • What does it do ?
• How does it work ?
Magnitude vs Frequency plot
DSP
DSP
of different modes
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
DFT
| EE-MNNIT
| EE-MNNIT
Sampled Signal
45 46
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
• Compute the DFT of the four-point sequence: • Compute the DFT of the four-point sequence:
𝑥 𝑛 = (0 1 2 3) 𝑥 𝑛 = (0 1 2 3)
1 1 1 1
1 −𝑗 −1 𝑗
DSP
DSP
𝑊=
1 −1 1 −1
| 5TH SEM
| 5TH SEM
1 𝑗 −1 −𝑗
9/16/2025
9/16/2025
𝑋 = [6 -2+2j -2 -2-2j]
| EE-MNNIT
| EE-MNNIT
|X| and /_X
49 50
TUTORIAL –II
Fast Fourier Transform (FFT) using MATLAB
Plot following signal - 𝒙 𝒕 = 𝑨𝒄𝒐𝒔 𝟐𝝅𝒇𝒕 using MATLAB ( A = 1 and f = 50 Hz)
DSP
| 5TH SEM
Analyze change in sampling frequency (1000 Hz, 3200 Hz, 6400 Hz) on number of
9/16/2025
9/16/2025
samples or signal resolution
| EE-MNNIT
| EE-MNNIT
51 52
16-09-2025
• Fast Fourier Transform (FFT) using MATLAB • Fast Fourier Transform (FFT) using MATLAB
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
53 54
• Fast Fourier Transform (FFT) using MATLAB • Fourier Spectrum with different window length (integer length as 1, 2, and so on)
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
Window Length = 2
Window Length = 1
55 56
16-09-2025
TI ME- FR E QU E NC Y T R ADE O F F
/ H E ISE NBERG U N CERTAINT Y IN D FT
• Statement
𝟏
𝒕𝒘𝒍 𝒇𝒓 ≥
𝟒𝝅
where, t_wl = effective time window length (time resolution) [it is not sampling rate]
TIME-FR EQUEN CY TRADE-OFF
DSP
DSP
f_r = frequency resolution (smallest frequency separation that can be distinguished in the spectrum)
| 5TH SEM
| 5TH SEM
• Short window → good time resolution, poor frequency resolution.
9/16/2025
9/16/2025
• Long window → good frequency resolution, poor time resolution.
| EE-MNNIT
3 cycle window length is shorter than 4 cycles
57 58
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
59 60
16-09-2025
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
61 62
DSP
• Circular Frequency Shift
| 5TH SEM
| 5TH SEM
• Complex Conjugate
9/16/2025
9/16/2025
• Circular Convolution
• Circular Correlation
| EE-MNNIT
| EE-MNNIT
• Parseval’s Theorem
• Step
• Decimation in Time
• Ramp
• Decimation in Frequency
• Sinusoidal
DSP
DSP
| 5TH SEM
| 5TH SEM
As discussed on black-board !
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
65 66
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
67 68
16-09-2025
DSP
DSP
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
| EE-MNNIT
| EE-MNNIT
69 70
DSP
Systems as Frequency-Selective Filters.
| 5TH SEM
| 5TH SEM
9/16/2025
9/16/2025
• UNIT- II: Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT): Discrete Fourier
Transform and its Properties, Divide and Conquer Approach, Decimation in Time and Decimation in
| EE-MNNIT
| EE-MNNIT
As discussed on black-board !
71 72
16-09-2025
Thanks
9/16/2025
| EE-MNNIT
73