EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab #3.1 Digital Filters Chao Jia.

Slides:



Advertisements
Similar presentations
FIR Filter. C-Implementation (FIR filter) #include #include #include "coeff_ccs_16int.h" int in_buffer[300]; int out_buffer[300]; #define TRUE 1 /*Function.
Advertisements

AMI 4622 Digital Signal Processing
EE 445S Real-Time Digital Signal Processing Lab Fall 2011 Lab #3.1 Digital Filters Debarati Kundu (With the help of Mr. Eric Wilbur, TI)
Chapter 8: The Discrete Fourier Transform
MM3FC Mathematical Modeling 3 LECTURE 3
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Lecture 19: Discrete-Time Transfer Functions
DSP for Engineering Aplications DSP for Engineering Aplications ECI Semester /2010 Department of Engineering and Design London South Bank University.
1 The Mathematics of Signal Processing - an Innovative Approach Peter Driessen Faculty of Engineering University of Victoria.
MM3FC Mathematical Modeling 3 LECTURE 2 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
EECS 20 Chapter 9 Part 21 Convolution, Impulse Response, Filters Last time we Revisited the impulse function and impulse response Defined the impulse (Dirac.
Signals and Systems Discrete Time Fourier Series.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Analysis of Discrete Linear Time Invariant Systems
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Discrete-Time and System (A Review)
16 Oct'09Comp30291 Section 31 University of Manchester School of Computer Science Comp30291: Digital Media Processing Section 3 : Discrete-time.
Chapter 6 Digital Filter Structures
2006 Fall Signals and Systems Lecture 4 Representation of signals Convolution Examples.
Fourier Analysis of Discrete-Time Systems
DSP C5000 Chapter 16 Adaptive Filter Implementation Copyright © 2003 Texas Instruments. All rights reserved.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Z TRANSFORM AND DFT Z Transform
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
LIST OF EXPERIMENTS USING TMS320C5X Study of various addressing modes of DSP using simple programming examples Sampling of input signal and display Implementation.
Department of Electrical and Computer Engineering Brian M. McCarthy Department of Electrical & Computer Engineering Villanova University ECE8231 Digital.
Digital filters Honza Černocký, ÚPGM. Aliases Numerical filters Discrete systems Discrete-time systems etc. 2.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 FOURIER TRANSFORMATION.
Which one? You have a vector, a[ ], of random integers, which can modern CPUs do faster and why? //find max of vector of random ints max=0; for (inda=0;
Digital Signal Processing
Digital Signal Processing
Correlation and Spectral Analysis
Linear filtering based on the DFT
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 DISCRETE SIGNALS AND SYSTEMS.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Frequency Response Response of a Sinusoid DT MA Filter Filter Design DT WMA Filter.
Signals and Systems Lecture #6 EE3010_Lecture6Al-Dhaifallah_Term3321.
3/18/20161 Linear Time Invariant Systems Definitions A linear system may be defined as one which obeys the Principle of Superposition, which may be stated.
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Lecture 09b Finite Impulse Response (FIR) Filters
Generalized Linear Phase Quote of the Day The mathematical sciences particularly exhibit order, symmetry, and limitation; and these are the greatest forms.
Analysis of Linear Time Invariant (LTI) Systems
1 Computing the output response of LTI Systems. By breaking or decomposing and representing the input signal to the LTI system into terms of a linear combination.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
EE345S Real-Time Digital Signal Processing Lab Fall 2006 Lecture 17 Fast Fourier Transform Prof. Brian L. Evans Dept. of Electrical and Computer Engineering.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
DSP First, 2/e Lecture 11 FIR Filtering Intro. May 2016 © , JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released.
EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab 3 IIR Filters Chao Jia Debarati Kundu Andrew Mark.
1 Chapter 8 The Discrete Fourier Transform (cont.)
Signal Processing First
Chapter 16 Adaptive Filter Implementation
Digital Signal Processing
EE 445S Real-Time Digital Signal Processing Lab Fall 2013
Lecture 11 FIR Filtering Intro
Lect2 Time Domain Analysis
Discrete-time Systems
Implementation of Convolution using C++
Linear Time Invariant Systems
Lecture 12 Linearity & Time-Invariance Convolution
FFT-based filtering and the
EE Audio Signals and Systems
Implementing real-time convolution
Lecture 4: Discrete-Time Systems
Lab 3 Part III Instructions
Lecture 22 IIR Filters: Feedback and H(z)
Signals and Systems Lecture 18: FIR Filters.
EE 345S Real-Time Digital Signal Processing Lab Spring 2009
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Presentation transcript:

EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab #3.1 Digital Filters Chao Jia

2 Outline Discrete-Time Convolution FIR Filter Design Convolution Using Circular Buffer FIR Filter Implementation

3 Discrete-Time Convolution Represented by the following equation Filter implementations will use the second version (hold h[n] in place and flip-and-slide x[n] about h[n]) Z-transform of convolution for z є ROC(X) ∩ ROC(H)

4 DT Convolution Sinusoidal Response

5 FIR Filters Design & Implementation An FIR filter does discrete-time convolution

6 FIR Filters Design & Implementation Design  Use the Filter Design & Analysis Tool (fdatool) to obtain the filter co-efficients  Specifications given in the task list Write convolution function to implement FIR filter given coefficients from fdatool

Linear buffer How to get output If we want to calculate the output y[n] Now x[n+1] is entered and we want y[n+1] Store the newest sample at the beginning, shift all the elements in the array to right and discard the oldest one 7 h[0]h[1]h[2]……h[N-3]h[N-2]h[N-1] x[n]x[n-1]x[n-2]……x[n-N+3]x[n-N+2]x[n-N+1] h[0]h[1]h[2]……h[N-3]h[N-2]h[N-1] x[n+1]x[n]x[n-1]……x[n-N+4]x[n-N+3]x[n-N+2]

Circular buffer If we want to calculate the output y[n] Now x[n+1] is entered and we want y[n+1] Only need an index to point where the newest sample is Modify the index modulo L (L is the length of the sample buffer) when new sample is entered. 8 x[n-N+1]x[n]x[n-1]……x[n-N+4]x[n-N+3]x[n-N+2] oldestnewestNewest +1 x[n+1]x[n]x[n-1]……x[n-N+4]x[n-N+3]x[n-N+2] newestNewest +1 Newest +2 oldest

Circular buffer In this way, samples are written into the array in a circular fashion For the length of circular buffer L: Always choose it to be larger than N. Make sure that L is a power of 2 (for hardware circular buffering) (C6748 DSP requires the size of the circular buffer to be a power of 2) 9

10 Convolution Using Circular Buffer main() { int x_index = 0; float y, xcirc[N]; --- /* */ /* circularly increment newest (No %)*/ ++newest; if(newest == N) newest = 0; /* */ /* Put new sample in delay line. */ xcirc[newest] = newsample; /* */ /* Do convolution sum */ Go on to the next column   y = 0; x_index = newest for (k = 0; k < No_of_coeff; k++) { y += h[k]*xcirc[x_index]; /* */ /* circularly decrement x_index */ --x_index; if(x_index == -1) x_index = N-1; /* */ }... }

11 Task List 1. Run winDSK and applications “Graphic Equalizer” and “Notch Filter” 2. Design FIR filters with fdatool in Matlab 3. Implement convolution with linear buffer 4. Implement convolution with circular buffer 5. Compare the theoretical and experimental magnitude response