SlideShare una empresa de Scribd logo
1 de 66
DSPing with Digital Filters
An simulation through MATLAB
advanced tools
This work is licensed under a Creative Commons Attribution 2.5 India License.
By
nmx prime
@ssh daemon
catch~me<at>nelsonanand@gmail.com
Signals
• Exists as
– Physical quantity such as force, velocity, vibration
– Electrical such as electric & magnetic fields
– Optical quantity, the Photon
– Energy, the Quantum
• These are continuous i.e., analog in nature
Analog Processing
• Analog is continuously changing w.r.t time
• Before 19th century, we don’t have digital
world, where analog way is only available
signal processing tool
• Analog processing includes filtering,
impedance matching, transistor based
designs, etc.,
Digital signal processing
• When signal is processed as integers &
floating numbers, it’s DSP.
• Requires converting physical quantity to
numerical values, accompanied through ADC
• Even, we require less complication; so, we
digitized the Discrete domain, where all
dimensions are discrete
DSP Tasks,(usual)
• Filtering – Removing unwanted frequencies from
a signal.
• Spectrum Analysis – Determining the features
constellated in frequencies of a signal.
• Synthesis – Generating complex signals such as
speech.
• System Identification – Identifying the properties
of a system by numerical analysis.
• Compression – Reducing the memory or
bandwidth it takes to store a signal, such as audio
or video.
Convolution
• Linear
• Circular
Transforms
• DFT
• DCT
• DST
• Wavelets & others
Convolution
• Mathematical way of combining two signals to
form a third signal.
• Resolving of a continuous function.
• Otherwise called ,
helps to analyze any complex signal as one
sample per instant.
• Indeed it’s sampling &actually filtering.
• This results in Impulse Response of LTI systems
Tells why shd use impulse
response & why every sys
has to be LTI
Convolution (cntd.,)
• Types –based on the graphical orientation,
–Linear
Resolute a continuous line into segments
–Circular
Resolute a circle into wheel of equal
separation
Linear Convolution
• Allows sequences of unequal lenghts to be
convolved.
• Let 2 sequences of length M and N (M≠N).
The resulting convolved signal will be of
length M+N-1.
Linear Convolution
• Allows sequences of unequal lenghts to be
convolved.
• Let 2 sequences of length M and N (M≠N).
The resulting convolved signal will be of
length M+N-1.
Convolution do filtering
Img courtesy: White MS, Delmar EE series
Fourier approach
• Split & work efficiently..
– Split complex signal into easier sinusoids…
• In the jargon of signal processing,
the input and output signals are viewed as
a superposition (sum) of simpler waveforms.
• This is the basis of nearly all signal processing
techniques.
• Jean Baptiste Joseph Fourier (1768-1830),
• 4 types
–Aperiodic-Continuous Fourier Transform
–Periodic-Continuous Fourier Series
–Aperiodic-Discrete Discrete Time Fourier
Transform.
• Periodic-Discrete Discrete Fourier
Transform(DFT)
• acc to review of Joseph Louis Lagrange & Simon
de Laplace, Fourier analysis fits to Infinite length
sequence
• But DSPs process only finite length sequence
• Way is “imagined infinitive”
– Seeing finite as periodic repetitions & considering
single periodic component, the actual signal .
• Indeed entire DSP is agreement & understanding
ha ha ha!! !! !!
• Extracting feature from the signal
Spectral Analysis
of Signals
• Describing a system & it’s
performance
Frequency
Response of
Systems
• Convolution in T.D. is Multiplication
of their Fourier Spectrum
Convolution
Spectral Analysis
13 Hz peak due to 3-blade propeller running @4.3 rpm
Analysis of submarine movements (SONAR)
Img courtesy of Steven W Smith, California Technical Pubs
Frequency Response of System
Img courtesy of Steven W Smith, California Technical Pubs
Impulse Response (vs)
Frequency response
Img courtesy of Steven W Smith, California Technical Pubs
Time Domain (vs)
Frequency Domain
• TD  Natural domain of every timely
described signals
• FD Analysis & Synthesis Domain
• TD compresses FD expands
• When the time domain is compressed until it
becomes an impulse, the frequency domain is
expanded until it becomes a constant value.
The MAG &PHASE(polar form)
Img courtesy of Steven W Smith,California Technical Pubs
The MAG &PHASE(rectangular form)
Img courtesy of Steven W Smith,California Technical Pubs
Polar
Mag & phase
Graphs of polar co-ordinate
Suitable for representation
Rectangular
Real & Imaginary
Cosine & sine components
Suitable for software computations
sinc & pulse
Img courtesy of Steven W Smith, California Technical Pubs
Convolution from DFT
• This is called circular convolution
– Multiplication of DFTs of the sequences
• The convolving sequences should be of equal
length.
• If not equal, should be made equal using
zero padding[inserting zeros]
(agreement of trigonometry)
DFT
 Sampled Fourier Tranform.
 Spectrum viewer, relates
the contribution of each
frequency to the
information
So ,what’s ω,Ω,F and f
F-CTS Frequency (cycles / second)
f-DTS Frequency (cycles / sample)
t=nT, T is sampling period (seconds/sample)
1/F=n/Fs , Fs is sampling frequency
1/n=F/Fs
f=F/Fs
Cycles/second
Samples/second
Cycles
Samples
Ω=2πF
ω=2πf
Measured in
redians
convolution transforms
Img courtesy of Robert Oshana,Newnes Publications,
Filtering
• separation of signals that have been combined
• restoration of signals that have been distorted
• every linear filter has an impulse response, a
step response and a frequency response.
Filtering (cntd.,)
Img courtesy of Steven W Smith, California Technical Pubs
Filtering (cntd.,)
• impulse response- specifies the filter
performance in time domain
• step response- describes the waveshape
preserving quality of filter
– Important when information is coded in the waveshape of the signal(modulations)
• frequency response-
– Linear scale-passband ripple &role-off(described well on linear)
– Logarithmic scale-stopband attenuation(described well on log)
Time domain parameters
• These can be analyzed through step response
• Rise & Fall time
• Overshoot
• Linear phase
Rise & Fall Time
Should be as fast as possible
Img courtesy of Steven W Smith, California Technical Pubs
Overshoot
Img courtesy of Steven W Smith, California Technical Pubs
distortion of the information contained in the time domain.
Linear Phase
The Symmetry, needed to make the rising edges look the same as the falling edges
Img courtesy of Steven W Smith, California Technical Pubs
Frequency domain parameters
Img courtesy of Proakis.G John, Prentice-Hall internationals
Passband
Role-off
Frequency domain parameters (cntd.,)
• All filters introduce a delay in response,
• Measured as group delay & phase delay
– Rate of change of phase to the frequency
Digital Filtering
• Filtering through lump of numerical values
those are actually real physical quantities
• They are called ARMA filters
– Auto Regressive Moving Average Filter
• Indeed, it’s basically averaging
To design a filter, we
need
• Filter specifications, the
need
• Filter response, how we
attain the need
• It’s efficiency in terms of
Real-Time
implementation
• This is why algorithms
are still developed
The DSP System
IIR
FIR
LMS
Convolution do filtering (duplicated)
Img courtesy: White MS, Delmar EE series
FIR
Analysis
• Mag res
• Phase res
Design
• FIR/IIR/LMS
& others
Implement
• structure
• platform
Transfer function
Real-time constraints
DSP
SYSTEM
Analysis
• Mag res
• Phase res
Design
• FIR/IIR/LMS
& others
Implement
• structure
• platform
Transfer function
Real-time constraints
DSP
SYSTEM
Response
• Butterworth
• Bessel
• Chebyshev
• Inverse chebyshev
• Cauer
All-pole filters(no zeros)
Custom responses
• Comb
• Notch
• All pass (sometime “all stop”)
• Interpolator
• Decimator
Multirate Signal Processing
Butterworth
Response
No ripple in
passband &
stopband
Long transition
region , i.e., skirt
length
Predictable phase
& group delay
Src & Img courtesy: White MS, Delmar EE series
Chebyshev
response
ripple in passband
& no ripples in
stopband
Shorter skirt
length i.e., steep
cut-off
Approximately
predictable phase
& group delay
Low pass filter
Src & Img courtesy: White MS, Delmar EE series
Inverse
chebyshev
Ripple in stopband
& no ripple in
passband
Shorter skirt
length i.e., steep
cut-off
Unpredictable
phase & group
delay Band pass filter
Src & Img courtesy: White MS, Delmar EE series
Cauer response
Ripple in pass & stp band
Highly distorted phase
response
Very narrow skirt, i.e.,
steeper response than
other
Only predicted data table
to design filters
Band stop filter
Src & Img courtesy: White MS, Delmar EE series
Analysis
• Mag res
• Phase res
Design
• FIR/IIR/LMS
& others
Implement
• structure
• platform
Transfer function
Real-time constraints
DSP
SYSTEM
Digital Filters
• IIR Infinite Impulse response
– Produces infinite output points when excited by
an impulse signal(very short signal of area=1)
• FIR Finite Impulse response
– Produces finite output points of length(size) N
when excited by an impulse signal
IIR Filters
• They are sampled versions of analog filters
• General DSP equation of IIR filter is
Filter co-efficients
Previous inputs
Previous outputs
Filtered
output
IIR Filters
• The transfer function model of IIR filters is
Zeros
poles
Transfer function
Poles & Zeros
• Pole location
– defines the frequencies to pass
• Zero location
– defines the frequencies to be stopped
Poles & Zeros(Contd.,)
0 rad
π rad
IIR filter design
• They have poles & zeros as like analog filters tf
• So, they have parental s-plane poles & zeros
• Hence, analog parameters in s-plane can be
transformed into Digital parameters in z-plane
Session in matlab
FIR Filters
• No poles no parental s-plane
• General DSP equation of FIR filter is
Filter co-efficients
Previous inputs
Filtered
output
Constraint on FIR filter
• In DSP jargon, the impulse response is not fully
immersed in input signal
• This causes a transient in TD
• That’s why brick wall filter with transiently spread
impulse response is yet possible not in real-time
0
Img courtesy of Steve Winder , Newnes Pubs
The solution is
• Shift negative time to zero time
• Approximate the filter kernel
Img courtesy of Steven W Smith, California Technical Pubs
Ensues
• Ripples
• -(N/2)th sample shifted as 0th sample
• 0th sample shifted to (N/2)-1th sample
• Or it could be
• -1th sample shifted as (N/2)th sample
0-N/2
(N/2)-1
Signal component
0 N-1
Usually ignored
FIR Types
Zero Phase
Linear Phase
Minimum phase
Maximum phase
FIR Types
– Consider M is filter order(taps)-no. of co-eff
• Symmetric h(n)=h(M-1-n) &
– M is Odd
– M is Even
• AntiSymmetric h(n)=-h(M-1-n) &
– M is Odd
– M is Even
FIR Types
Img courtesy of Dan Ellis, ELEN 4810
FIR Design methods
• Frequency Sampling Method
• Windowing Technique
• Remez Algorithm (aka., equiripple)
– Based on Alternation theorem
– Implemented by Parks-McClellan Iteration
Program
Session in matlab
Various windows on ground
Img courtesy of Dan Ellis, ELEN 4810
A PULL STOP IN A BOOK IS NOT AN
END OF UR INTUITION
Free Advise
Feedbacks are heartily welcomed,
Mail to
nelsonanand@gmail.com

Más contenido relacionado

La actualidad más candente

Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR) Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Chandrashekhar Padole
 
Signal Filtering
Signal FilteringSignal Filtering
Signal Filtering
Imane Haf
 
Angle modulation
Angle modulationAngle modulation
Angle modulation
Umang Gupta
 

La actualidad más candente (20)

Sampling Theorem
Sampling TheoremSampling Theorem
Sampling Theorem
 
Overview of sampling
Overview of samplingOverview of sampling
Overview of sampling
 
Fast fourier transform
Fast fourier transformFast fourier transform
Fast fourier transform
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filters
 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier Transform
 
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR) Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
 
Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
Sampling
SamplingSampling
Sampling
 
Signal Filtering
Signal FilteringSignal Filtering
Signal Filtering
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
 
DSP PPT
DSP PPTDSP PPT
DSP PPT
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFT
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 
4.Sampling and Hilbert Transform
4.Sampling and Hilbert Transform4.Sampling and Hilbert Transform
4.Sampling and Hilbert Transform
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
 
Angle modulation
Angle modulationAngle modulation
Angle modulation
 
Digital Filters Part 1
Digital Filters Part 1Digital Filters Part 1
Digital Filters Part 1
 
Basics of digital filters
Basics of digital filtersBasics of digital filters
Basics of digital filters
 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
 

Destacado

Fir and iir filter_design
Fir and iir filter_designFir and iir filter_design
Fir and iir filter_design
shrinivasgnaik
 

Destacado (20)

digital filters
digital filtersdigital filters
digital filters
 
Filters
FiltersFilters
Filters
 
Digital Signal Processors - DSP's
Digital Signal Processors - DSP'sDigital Signal Processors - DSP's
Digital Signal Processors - DSP's
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSING
 
Introduction to Digital Signal Processing
Introduction to Digital Signal ProcessingIntroduction to Digital Signal Processing
Introduction to Digital Signal Processing
 
Dsp ppt
Dsp pptDsp ppt
Dsp ppt
 
3F3 – Digital Signal Processing (DSP) - Part1
3F3 – Digital Signal Processing (DSP) - Part13F3 – Digital Signal Processing (DSP) - Part1
3F3 – Digital Signal Processing (DSP) - Part1
 
Fir and iir filter_design
Fir and iir filter_designFir and iir filter_design
Fir and iir filter_design
 
Low pass filters
Low pass filtersLow pass filters
Low pass filters
 
presentation on digital signal processing
presentation on digital signal processingpresentation on digital signal processing
presentation on digital signal processing
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filters
 
Design of Optimal Linear Phase FIR High Pass Filter using Improved Particle S...
Design of Optimal Linear Phase FIR High Pass Filter using Improved Particle S...Design of Optimal Linear Phase FIR High Pass Filter using Improved Particle S...
Design of Optimal Linear Phase FIR High Pass Filter using Improved Particle S...
 
microprocessor based digital filter
microprocessor based digital filtermicroprocessor based digital filter
microprocessor based digital filter
 
Chapter14
Chapter14Chapter14
Chapter14
 
3 (3)
3 (3)3 (3)
3 (3)
 
2014.06.19 Time Series Analysis Workshop ..Signal Processing Methods
2014.06.19 Time Series Analysis Workshop ..Signal Processing Methods2014.06.19 Time Series Analysis Workshop ..Signal Processing Methods
2014.06.19 Time Series Analysis Workshop ..Signal Processing Methods
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
 
Time-Frequency Attenuation of Swell Noise on Seismic Data from Offshore Centr...
Time-Frequency Attenuation of Swell Noise on Seismic Data from Offshore Centr...Time-Frequency Attenuation of Swell Noise on Seismic Data from Offshore Centr...
Time-Frequency Attenuation of Swell Noise on Seismic Data from Offshore Centr...
 
Ee3054 exercises
Ee3054 exercisesEe3054 exercises
Ee3054 exercises
 
Oscilloscope
OscilloscopeOscilloscope
Oscilloscope
 

Similar a Digital Signal Processing-Digital Filters

Digital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 yearsDigital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 years
Francois Charlot
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
asodariyabhavesh
 
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.pptLectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
ArnabChakraborty499766
 
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.pptLectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
ShamsAli42
 

Similar a Digital Signal Processing-Digital Filters (20)

unit 11.ppt
unit 11.pptunit 11.ppt
unit 11.ppt
 
PCM-Part 1.pptx
PCM-Part 1.pptxPCM-Part 1.pptx
PCM-Part 1.pptx
 
Sampling
SamplingSampling
Sampling
 
Lecture_1 (1).pptx
Lecture_1 (1).pptxLecture_1 (1).pptx
Lecture_1 (1).pptx
 
S&amp;s lec1
S&amp;s lec1S&amp;s lec1
S&amp;s lec1
 
Digital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 yearsDigital Signal Processor evolution over the last 30 years
Digital Signal Processor evolution over the last 30 years
 
Introduction to DSP
Introduction to DSPIntroduction to DSP
Introduction to DSP
 
Pcm
PcmPcm
Pcm
 
Presentation1 comb filter
Presentation1 comb filterPresentation1 comb filter
Presentation1 comb filter
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
 
DSP intro 1.pptx
DSP intro 1.pptxDSP intro 1.pptx
DSP intro 1.pptx
 
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.pptLectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
 
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.pptLectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt
 
unit 5 ADC.pptx
unit 5 ADC.pptxunit 5 ADC.pptx
unit 5 ADC.pptx
 
Introduction to dsp
Introduction to dspIntroduction to dsp
Introduction to dsp
 
communication concepts on sampling process
communication concepts on sampling processcommunication concepts on sampling process
communication concepts on sampling process
 
frogcelsat
frogcelsatfrogcelsat
frogcelsat
 
Behavioral modeling of Clock/Data Recovery
Behavioral modeling of Clock/Data RecoveryBehavioral modeling of Clock/Data Recovery
Behavioral modeling of Clock/Data Recovery
 
Radar 2009 a 3 review of signals systems and dsp
Radar 2009 a  3 review of signals systems and dspRadar 2009 a  3 review of signals systems and dsp
Radar 2009 a 3 review of signals systems and dsp
 
Radar 2009 a 3 review of signals, systems, and dsp
Radar 2009 a  3 review of signals, systems, and dspRadar 2009 a  3 review of signals, systems, and dsp
Radar 2009 a 3 review of signals, systems, and dsp
 

Último

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Último (20)

Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 

Digital Signal Processing-Digital Filters

  • 1. DSPing with Digital Filters An simulation through MATLAB advanced tools This work is licensed under a Creative Commons Attribution 2.5 India License. By nmx prime @ssh daemon catch~me<at>nelsonanand@gmail.com
  • 2. Signals • Exists as – Physical quantity such as force, velocity, vibration – Electrical such as electric & magnetic fields – Optical quantity, the Photon – Energy, the Quantum • These are continuous i.e., analog in nature
  • 3. Analog Processing • Analog is continuously changing w.r.t time • Before 19th century, we don’t have digital world, where analog way is only available signal processing tool • Analog processing includes filtering, impedance matching, transistor based designs, etc.,
  • 4. Digital signal processing • When signal is processed as integers & floating numbers, it’s DSP. • Requires converting physical quantity to numerical values, accompanied through ADC • Even, we require less complication; so, we digitized the Discrete domain, where all dimensions are discrete
  • 5. DSP Tasks,(usual) • Filtering – Removing unwanted frequencies from a signal. • Spectrum Analysis – Determining the features constellated in frequencies of a signal. • Synthesis – Generating complex signals such as speech. • System Identification – Identifying the properties of a system by numerical analysis. • Compression – Reducing the memory or bandwidth it takes to store a signal, such as audio or video.
  • 6. Convolution • Linear • Circular Transforms • DFT • DCT • DST • Wavelets & others
  • 7. Convolution • Mathematical way of combining two signals to form a third signal. • Resolving of a continuous function. • Otherwise called , helps to analyze any complex signal as one sample per instant. • Indeed it’s sampling &actually filtering. • This results in Impulse Response of LTI systems Tells why shd use impulse response & why every sys has to be LTI
  • 8. Convolution (cntd.,) • Types –based on the graphical orientation, –Linear Resolute a continuous line into segments –Circular Resolute a circle into wheel of equal separation
  • 9. Linear Convolution • Allows sequences of unequal lenghts to be convolved. • Let 2 sequences of length M and N (M≠N). The resulting convolved signal will be of length M+N-1.
  • 10. Linear Convolution • Allows sequences of unequal lenghts to be convolved. • Let 2 sequences of length M and N (M≠N). The resulting convolved signal will be of length M+N-1.
  • 11. Convolution do filtering Img courtesy: White MS, Delmar EE series
  • 12. Fourier approach • Split & work efficiently.. – Split complex signal into easier sinusoids… • In the jargon of signal processing, the input and output signals are viewed as a superposition (sum) of simpler waveforms. • This is the basis of nearly all signal processing techniques.
  • 13. • Jean Baptiste Joseph Fourier (1768-1830), • 4 types –Aperiodic-Continuous Fourier Transform –Periodic-Continuous Fourier Series –Aperiodic-Discrete Discrete Time Fourier Transform. • Periodic-Discrete Discrete Fourier Transform(DFT)
  • 14. • acc to review of Joseph Louis Lagrange & Simon de Laplace, Fourier analysis fits to Infinite length sequence • But DSPs process only finite length sequence • Way is “imagined infinitive” – Seeing finite as periodic repetitions & considering single periodic component, the actual signal . • Indeed entire DSP is agreement & understanding ha ha ha!! !! !!
  • 15. • Extracting feature from the signal Spectral Analysis of Signals • Describing a system & it’s performance Frequency Response of Systems • Convolution in T.D. is Multiplication of their Fourier Spectrum Convolution
  • 16. Spectral Analysis 13 Hz peak due to 3-blade propeller running @4.3 rpm Analysis of submarine movements (SONAR) Img courtesy of Steven W Smith, California Technical Pubs
  • 17. Frequency Response of System Img courtesy of Steven W Smith, California Technical Pubs
  • 18. Impulse Response (vs) Frequency response Img courtesy of Steven W Smith, California Technical Pubs
  • 19. Time Domain (vs) Frequency Domain • TD  Natural domain of every timely described signals • FD Analysis & Synthesis Domain • TD compresses FD expands • When the time domain is compressed until it becomes an impulse, the frequency domain is expanded until it becomes a constant value.
  • 20. The MAG &PHASE(polar form) Img courtesy of Steven W Smith,California Technical Pubs
  • 21. The MAG &PHASE(rectangular form) Img courtesy of Steven W Smith,California Technical Pubs
  • 22. Polar Mag & phase Graphs of polar co-ordinate Suitable for representation Rectangular Real & Imaginary Cosine & sine components Suitable for software computations
  • 23. sinc & pulse Img courtesy of Steven W Smith, California Technical Pubs
  • 24. Convolution from DFT • This is called circular convolution – Multiplication of DFTs of the sequences • The convolving sequences should be of equal length. • If not equal, should be made equal using zero padding[inserting zeros] (agreement of trigonometry)
  • 25. DFT  Sampled Fourier Tranform.  Spectrum viewer, relates the contribution of each frequency to the information
  • 26. So ,what’s ω,Ω,F and f F-CTS Frequency (cycles / second) f-DTS Frequency (cycles / sample) t=nT, T is sampling period (seconds/sample) 1/F=n/Fs , Fs is sampling frequency 1/n=F/Fs f=F/Fs Cycles/second Samples/second Cycles Samples Ω=2πF ω=2πf Measured in redians
  • 27. convolution transforms Img courtesy of Robert Oshana,Newnes Publications,
  • 28. Filtering • separation of signals that have been combined • restoration of signals that have been distorted • every linear filter has an impulse response, a step response and a frequency response.
  • 29. Filtering (cntd.,) Img courtesy of Steven W Smith, California Technical Pubs
  • 30. Filtering (cntd.,) • impulse response- specifies the filter performance in time domain • step response- describes the waveshape preserving quality of filter – Important when information is coded in the waveshape of the signal(modulations) • frequency response- – Linear scale-passband ripple &role-off(described well on linear) – Logarithmic scale-stopband attenuation(described well on log)
  • 31. Time domain parameters • These can be analyzed through step response • Rise & Fall time • Overshoot • Linear phase
  • 32. Rise & Fall Time Should be as fast as possible Img courtesy of Steven W Smith, California Technical Pubs
  • 33. Overshoot Img courtesy of Steven W Smith, California Technical Pubs distortion of the information contained in the time domain.
  • 34. Linear Phase The Symmetry, needed to make the rising edges look the same as the falling edges Img courtesy of Steven W Smith, California Technical Pubs
  • 35. Frequency domain parameters Img courtesy of Proakis.G John, Prentice-Hall internationals Passband Role-off
  • 36. Frequency domain parameters (cntd.,) • All filters introduce a delay in response, • Measured as group delay & phase delay – Rate of change of phase to the frequency
  • 37. Digital Filtering • Filtering through lump of numerical values those are actually real physical quantities • They are called ARMA filters – Auto Regressive Moving Average Filter • Indeed, it’s basically averaging
  • 38. To design a filter, we need • Filter specifications, the need • Filter response, how we attain the need • It’s efficiency in terms of Real-Time implementation • This is why algorithms are still developed The DSP System IIR FIR LMS
  • 39. Convolution do filtering (duplicated) Img courtesy: White MS, Delmar EE series FIR
  • 40. Analysis • Mag res • Phase res Design • FIR/IIR/LMS & others Implement • structure • platform Transfer function Real-time constraints DSP SYSTEM
  • 41. Analysis • Mag res • Phase res Design • FIR/IIR/LMS & others Implement • structure • platform Transfer function Real-time constraints DSP SYSTEM
  • 42. Response • Butterworth • Bessel • Chebyshev • Inverse chebyshev • Cauer All-pole filters(no zeros)
  • 43. Custom responses • Comb • Notch • All pass (sometime “all stop”) • Interpolator • Decimator Multirate Signal Processing
  • 44. Butterworth Response No ripple in passband & stopband Long transition region , i.e., skirt length Predictable phase & group delay Src & Img courtesy: White MS, Delmar EE series
  • 45. Chebyshev response ripple in passband & no ripples in stopband Shorter skirt length i.e., steep cut-off Approximately predictable phase & group delay Low pass filter Src & Img courtesy: White MS, Delmar EE series
  • 46. Inverse chebyshev Ripple in stopband & no ripple in passband Shorter skirt length i.e., steep cut-off Unpredictable phase & group delay Band pass filter Src & Img courtesy: White MS, Delmar EE series
  • 47. Cauer response Ripple in pass & stp band Highly distorted phase response Very narrow skirt, i.e., steeper response than other Only predicted data table to design filters Band stop filter Src & Img courtesy: White MS, Delmar EE series
  • 48. Analysis • Mag res • Phase res Design • FIR/IIR/LMS & others Implement • structure • platform Transfer function Real-time constraints DSP SYSTEM
  • 49. Digital Filters • IIR Infinite Impulse response – Produces infinite output points when excited by an impulse signal(very short signal of area=1) • FIR Finite Impulse response – Produces finite output points of length(size) N when excited by an impulse signal
  • 50. IIR Filters • They are sampled versions of analog filters • General DSP equation of IIR filter is Filter co-efficients Previous inputs Previous outputs Filtered output
  • 51. IIR Filters • The transfer function model of IIR filters is Zeros poles Transfer function
  • 52. Poles & Zeros • Pole location – defines the frequencies to pass • Zero location – defines the frequencies to be stopped
  • 54. IIR filter design • They have poles & zeros as like analog filters tf • So, they have parental s-plane poles & zeros • Hence, analog parameters in s-plane can be transformed into Digital parameters in z-plane
  • 56. FIR Filters • No poles no parental s-plane • General DSP equation of FIR filter is Filter co-efficients Previous inputs Filtered output
  • 57. Constraint on FIR filter • In DSP jargon, the impulse response is not fully immersed in input signal • This causes a transient in TD • That’s why brick wall filter with transiently spread impulse response is yet possible not in real-time 0 Img courtesy of Steve Winder , Newnes Pubs
  • 58. The solution is • Shift negative time to zero time • Approximate the filter kernel Img courtesy of Steven W Smith, California Technical Pubs
  • 59. Ensues • Ripples • -(N/2)th sample shifted as 0th sample • 0th sample shifted to (N/2)-1th sample • Or it could be • -1th sample shifted as (N/2)th sample 0-N/2 (N/2)-1 Signal component 0 N-1 Usually ignored
  • 60. FIR Types Zero Phase Linear Phase Minimum phase Maximum phase
  • 61. FIR Types – Consider M is filter order(taps)-no. of co-eff • Symmetric h(n)=h(M-1-n) & – M is Odd – M is Even • AntiSymmetric h(n)=-h(M-1-n) & – M is Odd – M is Even
  • 62. FIR Types Img courtesy of Dan Ellis, ELEN 4810
  • 63. FIR Design methods • Frequency Sampling Method • Windowing Technique • Remez Algorithm (aka., equiripple) – Based on Alternation theorem – Implemented by Parks-McClellan Iteration Program
  • 65. Various windows on ground Img courtesy of Dan Ellis, ELEN 4810
  • 66. A PULL STOP IN A BOOK IS NOT AN END OF UR INTUITION Free Advise Feedbacks are heartily welcomed, Mail to nelsonanand@gmail.com