66
DSP and Filters Prof. Nagendra Gajjar Assistant Professor Electronics & Communication Engineering Department Nirma University, Ahmedabad

DSP and Filters.ppt

Embed Size (px)

DESCRIPTION

Design of filter and filter realization techniques

Citation preview

Page 1: DSP and Filters.ppt

DSP and Filters

Prof. Nagendra GajjarAssistant Professor

Electronics & Communication Engineering Department

Nirma University, Ahmedabad

Page 2: DSP and Filters.ppt

Agenda Introduction to DSP

Applications Digital Signals and Processing Block Diagram Advantages Disadvantages

DSP Systems

Filters Classifications Analog Filters Digital Filters Design of Digital Filters

Page 3: DSP and Filters.ppt

Introduction to DSP

Applications Digital Signals and Processing Block Diagram Advantages Disadvantages

Page 4: DSP and Filters.ppt

Digital Signal Processing

Digital Signal Processing means Processing signals in digital domain, which includes Modifying signal characteristics Multiplying two signals( Modulation, correlation

etc) Filtering Averaging etc..

DSP can extract one signal from another DSP can analyze a signal to extract the

characteristics

Page 5: DSP and Filters.ppt

Digital Signal Processing

Page 6: DSP and Filters.ppt

Applications of DSP

Space -- Remote Sensing-- Space photograph enhancement

Medicine -- Diagnostic Imaging-- EEG,ECG, Patient Monitoring

Communication-- Voice and Data Compression – Signal Multiplexing -- Filtering, Telecommunication

Defense

-- RADAR , SONAR -- Secure Communication,

-- Missile Guidance

Page 7: DSP and Filters.ppt

Applications of DSP ( Contd..)

Speech Audio --Speech Recognition / Synthesis-- TTS, Digital Audio

Image Processing

--Robotic Vision

-- Animation, Image Recognition

Instrumentation / Control

-- Spectrum Analysis – Position and Rate Control -- Noise Reduction, Automotive Applications

Consumer Applications

--Digital, Cellular Mobile Phoes, Digital TVs, Digital Cameras, Voice Mail Systems, Active Suspension in the cars

Page 8: DSP and Filters.ppt
Page 9: DSP and Filters.ppt
Page 10: DSP and Filters.ppt

Signals

Page 11: DSP and Filters.ppt

DSP Systems(LTI)

Page 12: DSP and Filters.ppt

Signal Transforms

Page 13: DSP and Filters.ppt

System Transforms

Page 14: DSP and Filters.ppt

Filter Design

Page 15: DSP and Filters.ppt

Qunatization

Page 16: DSP and Filters.ppt

Advanced Topics

Page 17: DSP and Filters.ppt

Signals

Analog Signal x = f(t) Continuous function of independent variable Present at each and every instant of time

Digital Signal x[n]=f(nT) , T Sampling Interval Discrete function of time Present at discrete interval of time ( sampling

period)

Page 18: DSP and Filters.ppt

Discrete signal Continuous signal

Converter

Sampling

These are numbers indicating amplitude at that instant.

Page 19: DSP and Filters.ppt

Sample Signals

Page 20: DSP and Filters.ppt

Types of Signals

Continuous Signals and Discrete Signals Analog Signals and Digital Signals Periodic Signal and Aperiodic Signals Natural Signals and Synthetic Signals 1-D, 2-D, Multi Dimensional Signals Multi Channel Signals Deterministic and Random Signals Real Valued and Complex Valued Signals Scalar and Vector Signals

Page 21: DSP and Filters.ppt

Signals

Page 22: DSP and Filters.ppt

Basic Digital Signals

Impulse Signal Step Signal Ramp Signal Exponential Signal

Sinusoidal Signal

Page 23: DSP and Filters.ppt

Block Diagram of DSP System

Digital Processing

ADC DAC

Analog Filter Analog Filter( Antialias Filter ) ( Reconstruction

Filter )

Page 24: DSP and Filters.ppt
Page 25: DSP and Filters.ppt

Components of DSP system

Page 26: DSP and Filters.ppt

Components of DSP System

Page 27: DSP and Filters.ppt

Components of DSP System

Page 28: DSP and Filters.ppt

Another Example

Page 29: DSP and Filters.ppt

Basic DSP operations

Addition Subtraction Delay Multiplication

Page 30: DSP and Filters.ppt

Key DSP operations

ConvolutionY(n) = Σk x(k) h(n-k)

Correlation Filtering Multiplexing Demultiplexing Modulation Demodulation Transforms

Page 31: DSP and Filters.ppt

Filtering

Page 32: DSP and Filters.ppt

Filtering

Page 33: DSP and Filters.ppt

Modulation - DeModulation

Page 34: DSP and Filters.ppt

Advantages of DSP

High Performance Guaranteed Accuracy Stability Uniformity

High Reliability Time and Temp have no effect

Flexibility Software Controlled

Time sharing of Components

Page 35: DSP and Filters.ppt

Advantages of DSP ( Contd..)

No loading of Circuit Exact Linear Phase Multirate Signal Processing Easy Storage for large amount of data Very Low frequency Processing Reconfigurable Processing

Page 36: DSP and Filters.ppt

Disadvantages of DSP

Speed and Cost ADC/ DAC Frequency Range

Design Time Increased Complexity Knowledge of DSP techniques

Power Dissipation Finite word length problems

Page 37: DSP and Filters.ppt

DSP- When to use ?

Real Time Processing ( Processing completed within the sampling duration)

Pseudo Real-time Processing Off-Line Processing

Sampling Duration T

T= 1/f

Page 38: DSP and Filters.ppt

Digitization of Analog Signals

Sampling Lossless Process Done at Nyquist Rate

Quantization Lossy Process More nits improve resolution and reduce

quantization noise

Page 39: DSP and Filters.ppt

DSP Systems

“A system is defined as a process that produces an output signal in response to an input signal.”

SYSTEM

x[n] y[n]

Page 40: DSP and Filters.ppt

System Response of OPAMP

system, in which the required information is stored, either as IMPULSE Response, FREQUENCY Response, or the Coefficients of the systems equation.

VinVout

BLACK BOX

Page 41: DSP and Filters.ppt

Types of systems

.

CONTINUOUS TIME SYSTEM

DISCRETE TIME SYSTEM

••••••

•••

••••

•••

X(t) Y(t)

X(n) Y(n)

Values defined at all points

Values defined only at certain points values in between are not defined.

Systems are basically divided in two categories. CONTINUOUS TIME SYSTEMS. DISCRETE TIME SYSTEMS.

Page 42: DSP and Filters.ppt

System Characteristics

Linearity Super Position Homogeneous

Time Invariance Causality Stability

Such Systems are called as LTI- Causal Systems

Page 43: DSP and Filters.ppt

Digital System Equation

Recursive System Output of the system depends upon the

current input and its weighed previous input as well as its weighted previous outputs

Closed Loop systems Non Recursive Systems

Output of the system depends upon the current input and its weighed previous input

Open Loop systems Always Stable

Page 44: DSP and Filters.ppt

Types of Digital Systems

FIR – Finite Impulse Response Filter IIR – Infinite Impulse Response Filter

Page 45: DSP and Filters.ppt

Filters

An electrical device which retains certain frequency components and rejects certain frequency components

It amplifies/attenuates certain frequency components

Frequency

Magnitude

0

Page 46: DSP and Filters.ppt

Classification of FiltersBased on Frequency Characteristics Low Pass Filter High Pass Filter Band Pass Filter Band Reject Filter Notch Filter Multi Pass filter ( Comb Filter )

Page 47: DSP and Filters.ppt

Filter Specifications

Pass Band Frequency Stopband Frequency Passband Ripple Stopband Ripple Sampling Frequency

Page 48: DSP and Filters.ppt
Page 49: DSP and Filters.ppt

Computation of Order

N= -10 log(delp * dels) -15 + 1

14[ ( ws –wp)/2 *pi ]

In MATLAB

Fir1 :

Page 50: DSP and Filters.ppt

In MATLAB: fir2

Fir2 : FIR arbitrary filter design using the frequency sampling method

B=fir2(N,F,am,NPT,window) N- Order of the Filter F- Frequency sampling Points A- Amplitude NPT, No of Points for frequency response Window : Type of window

Page 51: DSP and Filters.ppt
Page 52: DSP and Filters.ppt

Analog Filter Design

Page 53: DSP and Filters.ppt
Page 54: DSP and Filters.ppt
Page 55: DSP and Filters.ppt
Page 56: DSP and Filters.ppt
Page 57: DSP and Filters.ppt
Page 58: DSP and Filters.ppt
Page 59: DSP and Filters.ppt
Page 60: DSP and Filters.ppt

FIR Advantages

Linear Phase Multi band is possible Simple structure Always stable and no limit cycle Easy to get high speed and pipeline design Low coefficient arithmetic and round off error

and well defined quantization noise

Page 61: DSP and Filters.ppt

FIR Disadvantages

Recursive FIR may be unstalbe because of imperfact pole/zero annihilation

High Filter length/ order requires high implementation cost

Page 62: DSP and Filters.ppt

IIR Advantages

Standard Design using analog prototpyes Highly selective filter using low order design Design using tables and pocket calculators Good tolerance scheme Closed Loop Design Algorithms can be used.

Page 63: DSP and Filters.ppt

IIR Filter Disadvantages

Non Linear Phase response Limit cycle may occur for integer

implementation Multiband design is difficult Feedback can introduce instabilities Difficult to get high Speed, pipelines design

Page 64: DSP and Filters.ppt

Summary of Important IIR Design

Butterworth: Maximally –flat passband, flat stopband, wide

transitionband : Filter order highest Chebyshev-I

Equiripple passband, flat stopband, moderate transition band

Chebyshev II Flat passband, equiripple stopband, moderate

transition band : Filter Order Medium Elliptic:

Equiripple passband, equiripple stop band narrow transition bnad : Filter order : Lowest

Page 65: DSP and Filters.ppt
Page 66: DSP and Filters.ppt

Thank [email protected]

m