Lab 3 Part II Instructions

Slides:



Advertisements
Similar presentations
Getting started with MPLAB Launch MPLAB Set Toolbar as in the next slide by clicking the leftmost icon Open a new Source file by choosing [FILE][NEW] Type.
Advertisements

The map and reduce functions in MapReduce are easy to test in isolation, which is a consequence of their functional style. For known inputs, they produce.
Interface between Velleman PCSGU250 and MATLAB
Chapter 14 Finite Impulse Response (FIR) Filters.
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
FIR TYPE-I Lowpass Filtering using TMS320C6711 Floating Point Processor DEMO Presentation Prepared by: Bashir SADEGHI Supervised by: Dr. Erhan A. INCE.
Experiment 11: An Inverting Amplifier
Op-Amps (2). Non-Inverting Amplifier Design Problem Design a non-inverting op-amp with a gain of 6. What is the approximate power supply if Vin must.
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
1 A Tool for System Simulation: SIMULINK Can be used for simulation of various systems: – Linear, nonlinear; Input signals can be arbitrarily generated:
Digital Voice Communication Link EE 413 – TEAM 2 April 21 st, 2005.
DSP Implementation of a 1961 Fender Champ Amplifier James Siegle Advisor: Dr. Thomas L. Stewart March 11, 2003.
IDE for ARM 7 board Tutorial 3 IDE of Keil4 V3.a 1.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Bandpass filter on FPGA Student Vitaly Zakharenko Supervisor Mony Orbach Semester Spring 2007 Duration single semester.
Magnitude and Phase Measurements
EE 445S Real-Time Digital Signal Processing Lab Spring 2012 Lab #3.1 Digital Filters Some contents are from the book “Real-Time Digital Signal Processing.
0 - 1 © 2010 Texas Instruments Inc Practical Audio Experiments using the TMS320C5505 USB Stick “FIR Filters” Texas Instruments University Programme Teaching.
Simulink ® Interface Course 13 Active-HDL Interfaces.
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.
ECEN/MAE 3723 – Systems I MATLAB Lecture 2. Lecture Overview What is Simulink? How to use Simulink  Getting Start with Simulink  Building a model Example.
Development of a microprocessor project with LPC2388 development board.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Sonia Hingorany & Liza Cyriac EE113D – Professor Rajeev Jain & TA Rick Huang– Winter 2008.
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.
Part 4 Processing and saving data with CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley.
Simulink  ? 1 Simulink  ( Simu lation and Link ) is an extension of Matlab Offers modeling, simulation, and analysis of dynamical systems; i.e., a system.
Open the index.html Open this PowerPoint from the S Drive IDT folder Chapman Images.ppt.
Lecture 09b Finite Impulse Response (FIR) Filters
Getting started with Simulink
Getting started with Simulink An introductory tutorial.
Diode Detector Simulation, Design and Measurement
Development Environment
Lab 1: Using NIOS II processor for code execution on FPGA
Diode Detector Simulation, Design and Measurement
- Graphical extension to MATLAB for modeling and simulation of systems
Prof. Mark Glauser Created by: David Marr
Performing statistical analyses using the Rshell processor
Dr Andrew French P5/6 Winchester College
Using a set-up file to read ASCII data into SPSS
ECEN/MAE 3723 – Systems I MATLAB Lecture 2.
PRU-ICSS Programming with CCS
Population Projections Workshop
WORKSHOP 3 GSE IMPORT.
Simulink Basics Reijo Vuohelainen
Week 9: Series RC Circuit
INTRODUCTION Spice Excel.
How to Import an Excel File
Lab 1 Instructions By Yeong Choo and Sam Kanawati
DEMO Presentation Prepared by: Bashir SADEGHI Supervised by: Dr
Lab 6 Part I Instructions
Lab 7 Instructions By Yeong Choo and Sam Kanawati
Export from SA e-publications and sabinet to endnote
Lab 5 Part II Instructions
Lab 6 Part II Instructions
GROpt.m (1) Copy the 7 files from GRopt.zip into one directory.
Lab 4 Instructions By Yeong Choo and Sam Kanawati
Lab 3 Part III Instructions
Getting Started With Simulink
* M. R. Smith 07/16/96 This presentation will probably involve audience discussion, which will create action items. Use PowerPoint.
CSC235 - Visual Studio Tutorial
Lab 2 Part II Instructions
Matlab.
Lab 2 Part I Instructions
Export from SA e-publications and sabinet to endnote
How to write good code Part 2
Simulink Examples Ex1: Simulate the following equation Blocks needed:
EE 345S Real-Time Digital Signal Processing Lab Spring 2009
ENEE222 Elements of Discrete Signal Analysis Lab 9 1.
Presentation transcript:

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

Frame Based Talk Through Create a new project as before. After adding the files in “common code” folder, add “frames.h”, “ISRs.c” and “main.c” in “code\chapter_06\ccs\Frame”. Finally add the target configuration files as usual. Run the program; connect the board with the signal generator and the oscilloscope. Check the result of talk-through. Tune the frequency in the signal generator and check the wave form in the oscilloscope. What do you observe?

FIR Filter Design Simulation in MATLAB Run “fdatool” in Matlab to design a bandpass FIR filter: Design method: Equiripple Order: 30 Sampling frequency: 48000Hz Passpand: 5000Hz to 15000Hz (Fstop1 and Fstop2 can be 4000Hz and 16000Hz) 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 >> fir_dump2c(‘coeff’,’B’,Num,length(Num)); (If you copy and paste the above command in MATLAB, the ‘’ commas might not show up properly, giving errors. Hence, type the above command in MATLAB instead of copying and pasting.) You will find “coeff.c” and “coeff.h” in the current folder. Open “coeff.h”, change “define B_SIZE 31” to “define N 30”. Open “coeff.c”, change “B_SIZE” to “N+1”. You will need these two files later. Please supply filter coefficients in lab report. Measure the magnitude response (dB) for the FIR filter that you just designed, i.e. measure with cursor and copy the values You need to measure the magnitude response for 1 KHz, 2 KHz … 24 KHz. Save these values in an Excel file. You will need to compare them with the experimental values later.

FIR Filter Design Implementation in C Create a new project as before. After adding the files in “common code” folder (instead of adding “vectors.asm”, please add “vectors_EDMA.asm”); add “frames.h”, “ISRs.c” and “main.c” in “..\code\chapter_07\ccs\FiltFrm_6748”. Add the “coeff.h” and “coeff.c” in “code\appendix_e\MatlabExports” that you just generated. Finally add the target configuration files as usual. 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. You will need to measure the Vin from signal generator and Vout on the oscilloscope. Compare this with the theoretical magnitude response. (You may want to plot a graph)

Clock Cycle Measurements -- Frame-based FIR vs. Sample-based FIR Measure the number of clock cycles cost by the “ProcessBuffer()” function; divide the number by 1024 (length of the frame). This is the number of clock cycles for generating one filter output sample using Frame-based FIR. (Note that we don’t need to consider the clock cycles for data transfer since it’s handled by the EDMA.) Measure the number of clock cycles cost by the codes between “ReadCodecData()” and “WriteCodecData()” in the “FIRmono_ISRs.c” file that you used last week for the sample-based FIR filter using circular buffering. Compare the two numbers. Please provide two screenshots, one of which was from Lab 3 Part 1

Clock Cycle Measurements -- Code Optimization For circular buffering scheme, measure the number of clock cycles cost by the codes between “ReadCodecData()” and “WriteCodecData()” in the “FIRmono_ISRs.c” while using different optimization levels from 0 to 3. To change the optimization level you can right click on the project  build properties  basic options  choose the optimization level. Please provide four screenshots accompanying the measured number of clock cycles. Now, we would like to compare the performance of the C FIR filter routine using circular buffer with one coded in assembly language. Please download the assembly language file convol1.sa from http://users.ece.utexas.edu/~bevans/courses/realtime/lectures/laboratory/c6748winDSK/lab3/index.html and add it to your project (save convol1.sa as a text file first, then after adding it, change the extension to ‘.sa’). Also, instead of the FIRmono_ISRs.c routine used till now, please replace it with the one in the webpage mentioned above. Insert breakpoints on lines 69 and 73 of FIRmono_ISRs.c to profile the assembly routine, i.e. convolve( ). Please go through the assembly code. In this case, the ‘convolve’ function accepts as input the size of the circular buffer in ‘blocks’. Circular buffer size (in bytes) is 2 Nblock+1. The data has been aligned in memory using the #pragma directive in FIRmono_ISRs.c. Try different optimization levels from 0 to 3.