Lab 3 Part III Instructions

Slides:



Advertisements
Similar presentations
Chapter 14 Finite Impulse Response (FIR) Filters.
Advertisements

Quickfilter Pro Software Demonstration for QF4A512 The following slides will illustrate how you can design and verify a filter design in minutes! BEGIN.
Improvement of Audio Capture in Handheld Devices through Digital Filtering Problem Microphones in handheld devices are of low quality to reduce cost. This.
Quickfilter Pro Software Demonstration for QF1D512 The following slides will illustrate how you can design and verify a filter design in minutes! BEGIN.
So far We have introduced the Z transform
EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab #3.1 Digital Filters Chao Jia.
IIR Filters and Equalizers R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Professor: Dr Kepuska Presented by Kyle Farnum. Audio Manipulation through utilizing three types of filters: Low-pass filters Band- pass filters High-
Mark Allie comp.dsp Signal to Noise and Numeric Range issues for Direct Form I & II IIR Filters on Modern Analog Devices and TI Digital Signal Processors.
0 - 1 © 2010 Texas Instruments Inc Practical Audio Experiments using the TMS320C5505 USB Stick “FIR Filters” Texas Instruments University Programme Teaching.
First Screen : First window form will always remain open, for the user to select menu options. 1.
High Speed Data Converter University
Creating a Web Site to Gather Data and Conduct Research.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
Simulink ® Interface Course 13 Active-HDL Interfaces.
Remember…  Please do not…  Change the background.  Change the icons.  Change the font. Use Times New Roman (size 12 font).  Use color. We cannot print.
Copyright © 2001, S. K. Mitra Tunable IIR Digital Filters We have described earlier two 1st-order and two 2nd-order IIR digital transfer functions with.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 – 30 Lab 3: Layout.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
ECE 448: Lab 6 DSP and FPGA Embedded Resources (Digital Downconverter)
DSP C5000 Chapter 16 Adaptive Filter Implementation Copyright © 2003 Texas Instruments. All rights reserved.
Development of a microprocessor project with LPC2388 development board.
ECE 448: Lab 5 DSP and FPGA Embedded Resources (Signal Filtering and Display)
Chapter 7 Finite Impulse Response(FIR) Filter Design
How do I export the Address Book to Excel? The first step is to go to "Address Book Report" under Admin Only menu Choose the fields you want. note that.
Introduction to MATLAB for Engineers Third Edition William J. Palm III Chapter 10 Simulink PowerPoint to accompany Copyright © The McGraw-Hill Companies,
Lab 2 Parallel processing using NIOS II processors
0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Spectrum.
ECE 448: Lab 7 Design and Testing of an FIR Filter.
EE422 Signals and Systems Laboratory Infinite Impulse Response (IIR) filters Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
FOCOMM_CAMAC Setup and Usage Guide Andrew Wong, Larry Ruckman.
ECE 3551 – Microcomputer Systems 1 Fall 2010 Siobhan Ireland.
Week 4: Experiment 24 Using Nodal or Mesh Analysis to Solve AC Circuits with an addition of Equivalent Impedance.
Lecture 09b Finite Impulse Response (FIR) Filters
EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab 3 IIR Filters Chao Jia Debarati Kundu Andrew Mark.
Electronic Devices Ninth Edition Floyd Chapter 15.
VAB™ for INFINITY Tutorial
LOW-COMPLEXITY ARBITRARY SAMPLE-RATE CONVERTER
Lab 1: Using NIOS II processor for code execution on FPGA
The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.
UNIT - 5 IIR FILTER DESIGN.
Chapter 16 Adaptive Filter Implementation
WORKSHOP 7 PID TUNING.
Dr Andrew French P5/6 Winchester College
Infinite Impulse Response (IIR) Filters
WORKSHOP 3 GSE IMPORT.
ECET 350 Competitive Success/snaptutorial.com
ECET 350 Education for Service/tutorialrank.com
Lecture 14 Digital Filtering of Analog Signals
Lab 1 Instructions By Yeong Choo and Sam Kanawati
Infinite Impulse Response Filters
Lab 6 Part I Instructions
Lab 7 Instructions By Yeong Choo and Sam Kanawati
OptiSystem-MATLAB data interchange model and features
Everything You Ever Wanted to Know About Filters*
Lab 5 Part II Instructions
Lab 6 Part II Instructions
Lab 4 Instructions By Yeong Choo and Sam Kanawati
Lab 3 Part II Instructions
Scheduling Agreements
By Yeong Choo and Sam Kanawati
Lab 2 Part II Instructions
Week 4: Experiment 24 Using Nodal or Mesh Analysis to Solve AC Circuits with an addition of Equivalent Impedance.
Lab 2 Part I Instructions
Chapter 7 Finite Impulse Response(FIR) Filter Design
Voice Manipulator Department of Electrical & Computer Engineering
Fixed-point Analysis of Digital Filters
EE 345S Real-Time Digital Signal Processing Lab Spring 2009
Presentation transcript:

Lab 3 Part III Instructions By Yeong Choo and Sam Kanawati The University of Texas at Austin, February 26, 2018

WinDSK Demonstration Connect your DSP board with the PC through the USB-UART. Run winDSK8 on the PC, and then follow the instruction on page 38 & 60-61 in the real-time DSP book to run the “Notch Filter” applications. Tune the parameter “r” and see how it affects the attenuation around the center frequency.

IIR Filter Design in Matlab Run fdatool in Matlab to design a bandpass IIR filter: Design method: Butterworth Order: 6 Sampling frequency: 48000Hz Passband: 5000Hz to 15000Hz Go to menu “Edit””Convert to Single Section”, then export the numerator and denominator coefficients into the workspace. Export the coefficients into the workspace with variable name “Num”. Set “..\appendix_e\MatlabExports” as the current folder of Matlab. You have the option of using addpath( ) in MATLAB to add appropriate path to directory of “..\MatlabExports” In the command window run >> IIR_dump2c('coeff’, 'B’ , filt1.tf.num ,'A’, filt1.tf.den , length(filt1.tf.den)) Please supply filter coefficients in lab report. Measure the magnitude response (dB) for the FIR filter that you just designed. You need to compute and tabulate the magnitude response for 1 kHz, 2 kHz … 24 kHz. You will need to measure the Vin from signal generator and Vout on the oscilloscope. Save these values in an Excel file. You will need to compare them with the experimental values later. Please tabulate and graph theoretical magnitude response.

DSK implementation using DF-I Create a new project as before. After adding the files in “..\common_code_LCDK” folder except “vectors_EDMA.asm”, add “IIRmono_ISR.c” and “StartUp.c” in “code\chapter_04\ccs\IIRrevA”. Finally add the target configuration files as usual. Read and understand the code in “IIRmono_ISR.c” based on the explanation on page 82-83 in the real-time DSP book. Once you have understood the code, you need to modify it based on following requirements: (1) Define N as 6 (2) Change the numerator (B) and denominator (A) coefficients based on what you get from MATLAB. The initialization of x and y need to be changed accordingly as N has been changed. (3) Delete the code between ‘x[0] = CodecDataIn.Channel[LEFT];’ and ‘CodecDataOut.Channel[LEFT] = y[0];’, then insert ‘iir_df_one();’. (4) Create the new function ‘iir_df_one()’ in “IIRmono_ISR.c” file to implement IIR filtering using direct form I. In this new function you need to compute the output value y[0] and also update all the state variables in x and y.

Experimental Magnitude Response Measurement - DF I implementation Run the program with your own IIR function. Measure the experimental magnitude response and compare it with the theoretical one. Please tabulate and graph experimental magnitude response along with the theoretical magnitude response. Compare the number of clock cycles cost by ‘iir_df_one()’ with different optimization levels. Please provide four screenshots accompanying the measurement of clock cycles.

DSK implementation using SOS Implement the IIR filter using SOS and measure the experimental magnitude response. To get the coefficients please go back to fdatool and choose “Edit””Convert to Second-Order Sections”. Export the variables. The SOS matrix should have 6 columns and 3 rows. Each row corresponds to set of coefficients for the respective biquad. The first 3 columns are the feedforward (numerator) coefficients and the last 3 columns are the feedback (denominator) coefficients. Here are some hints: 1. The code for variable declaration should look like: #define N 2 // IIR filter order #define M 3 // number of biquad float B[M][N+1] = {{},{},{}}; // numerator coefficients float A[M][N+1] = {{},{},{}}; // denominator coefficients float G[M+1] = {}; // scale factors float x[M][N+1] = {{},{},{}}; // input value (buffered) float y[M][N+1] = {{},{},{}}; // output values (buffered) 2. The in function “Codec_ISR()” should look like: x[0][0] = CodecDataIn.Channel[LEFT]; // current input value for (i=0;i<M;i++){ biquad(i); // implement the i_th biquad } CodecDataOut.Channel[LEFT] = y[M-1][0]; // setup the LEFT value WriteCodecData(CodecDataOut.UINT); // send output data to port Note that in function ‘biquad(i)’ you need to compute the output using x[i][] and y[i][]; update the state variables; and then assign x[i+1][0]=y[i][0].

Experimental Magnitude Response Measurement - SOS implementation Run the program; connect the board with the signal generator and the oscilloscope. Tune the frequency in the signal generator from 1 kHz to 24 kHz and record the experimental magnitude response. Please tabulate and graph experimental magnitude response and compare this with previous two graphs

Lab Assignment Please answer the following questions in lab report: Number of taps before you run out of time for FIR filtering. Why use circular buffers? What happens if you do not multiply the scale factor in an IIR filter implementation using a cascade of second-order sections (SOS)? Advantages and disadvantages of FIR vs. IIR filters. Notes on Lab Report Submission: Please include all labs measurement, code changes and screenshots from Week 1 and Week 2. Please graph theoretical and measured magnitude response (FIR sample & frame-based and IIR) for direct comparison. Please supply ISR code change including generated filter coefficients. Please provide all required screenshots showing the number of clock cycles of code profiling. Please answer the above questions.