ECE 6580 Lecture 7. Matlab VDSP EZ-Kit Board FirCoefs.mFirCoefs.cFirCoefs.hMain.cProject FilesFir.cFir.h FIR in C.

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

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.
DFT properties Note: it is important to ensure that the DFTs are the same length If x1(n) and x2(n) have different lengths, the shorter sequence must be.
Mini-SumoBot Construction and Programming
Chapter 14 Finite Impulse Response (FIR) Filters.
Chung-Ta King National Tsing Hua University
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
Advanced Audio Setup Troubleshooting your audio Users’ Reference.
Boot Issues Processor comparison TigerSHARC multi-processor system Blackfin single-core.
Software and Hardware Circular Buffer Operations First presented in ENCM There are 3 earlier lectures that are useful for midterm review. M. R.
Embedded vs. PC Application Programming. Overview  The software design cycle  Designing differences  Code differences  Test differences.
CIS 101: Computer Programming and Problem Solving Lecture 8 Usman Roshan Department of Computer Science NJIT.
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Professor: Dr Kepuska Presented by Kyle Farnum. Audio Manipulation through utilizing three types of filters: Low-pass filters Band- pass filters High-
Systems: Definition Filter
Transferring Data from XL-30 PC to Dell PC Using Link Maven.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
Lecture 9: Structure for Discrete-Time System XILIANG LUO 2014/11 1.
0 - 1 © 2010 Texas Instruments Inc Practical Audio Experiments using the TMS320C5505 USB Stick “FIR Filters” Texas Instruments University Programme Teaching.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
For Loops 2 ENGR 1181 MATLAB 9. For Loops and Looped Programming in Real Life As first introduced last lecture, looping within programs has long been.
Processor Architecture Needed to handle FFT algoarithm M. Smith.
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.
Intro to Arduino Programming. Draw your circuits before you build them From Arduino 330 Ohm From Arduino 330 Ohm From Arduino 330 Ohm.
Matlab Workshop 1/10/07 Lesson 1: Matlab as a graphing calculator.
ADAM2 Single Remocon MCU IDE User’s Manual S/W Integrated Development Environment - Assembler - Simulator - Code Wizard V1.0 Technical Sales Team, ETA.
Numerical Computation Lecture 2: Introduction to Matlab Programming United International College.
DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.
Acoustic Noise Cancellation
Understanding the TigerSHARC ALU pipeline Determining the speed of one stage of IIR filter – Part 2 Understanding the pipeline.
Lab. 2 Overview Move the tasks you developed in Lab. 1 into the more controllable TTCOS operating system Manual control of RC car.
Overview Task State Diagram Task Priority Idle Hook AND Co-Routines
Engineering Analysis – Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
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;
ECE 3551 MICROCOMPUTER SYSTEMS 1 Introduction to Visual DSP++
ECE Lecture 1 1 L15 –I/O Part II Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Automatic Equalization for Live Venue Sound Systems Damien Dooley, Final Year ECE Progress To Date, Monday 21 st January 2008.
Audio Manipulation And Buffers using DSP-BF533 EZ-KIT Lite Dr. Veton Z. Këpuska By Husain Alotaibi Ahmed Alalyak ECE 3551 Microcomputer System I Spring.
Audio Filtering By: Rudrapratap Jadhav ECE 3551 Microcomputer System.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example.
Outline Announcements: –HW I key online this afternoon –HW II due Friday –Sign up to discuss projects Debugging Testging for correctness.
ECE 3551 – Microcomputer Systems 1 Fall 2010 Siobhan Ireland.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
“Lab. 5” – Updating Lab. 3 to use DMA Test we understand DMA by using some simple memory to memory DMA Make life more interesting, since hardware is involved,
ECE 3551 Microcomputer Systems 1 Final Project Morse Code Reader Instructor: Dr. Veton Kepuska Term: Fall 2006 By: Erik Lindman & Rong Li.
Lecture 09b Finite Impulse Response (FIR) Filters
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Microcomputer systems 1 ECE 3551 Dipesh Patel.  Activating Filters using the pushbuttons.  Combination of LEDs turned on with each pushbutton pressed.
[LAB 2] Cloud9 IDE  Cloud9 IDE introduction  Example and Exercise.
DSP First, 2/e Lecture 11 FIR Filtering Intro. May 2016 © , JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released.
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.
Downloading Arduino FOR WINDOWS.
Signal Processing First
Lecture 11 FIR Filtering Intro
BASIC HTML CODING BY cHRIS JACKSON.
Lab 2 Part 1 Step 1: Install DMDX.
BBC Microbit.
Tim Sumner, Imperial College, Rm: 1009, x47552
Lab 3 Part III Instructions
ECE 3567 Microcontroller Lab
Lab 3 Part II Instructions
The Fast Curvelet Transform
Getting serious about “going fast” on the TigerSHARC
Using Script Files and Managing Data
Loops.
Lab. 2 Overview Move the tasks you developed in Lab. 1 into the more controllable TTCOS operating system.
ECE 3567 Microcontrollers Lab
ECE 3567 Microcontrollers Lab
Presentation transcript:

ECE 6580 Lecture 7

Matlab VDSP EZ-Kit Board FirCoefs.mFirCoefs.cFirCoefs.hMain.cProject FilesFir.cFir.h FIR in C

FirCoef.c float FirCoef[N] = { a 1, a 2,. a N, };

FirCoef.h Extern float FirCoef[ ];

fir.c //================================== // This function calculates an finite impulse response filter // It accepts as inputs: // x: input of type float // states: a pointer to float of the filter states, // the size of the states array should be // order, where order is the filter order // coefs: a pointer to float of the filter coefficients. // The size of this array should be order + 1. // order: The order of the filter. // Writtten by D.R.Judd 1/21/2003 //==================================== float fir( float x,// input to be filtered float *states, // states for filter delay line float *coefs,// coefs for filter a0,a1,…aN U32 order)// order of filter {. }

fir.h //================================== // This function calculates an finite impulse response filter // It accepts as inputs: // x: input of type float // states: a pointer to float of the filter states, // the size of the states array should be // order, where order is the filter order // coefs: a pointer to float of the filter coefficients. // The size of this array should be order + 1. // order: The order of the filter. // Writtten by D.R.Judd 1/21/2003 //==================================== float fir( float x,// input to be filtered float *states, // states for filter delay line float *coefs,// coefs for filter a0,a1,…aN U32 order);// order of filter

Measure Frequency Response PC1 PC2 Line Out (Green) EZ-Kit Board MIC In (Pink) PinkNoiseCorrelated.wav SIA Smaart USB

Debug Techniques Break Points Single Step Watch Windows Plots LEDs Test Files SIA Smaart

Break Points Double Click to the left of the line. Warning, if you halt on a break point that is not in the ISR, then you must clear the break point before continuing.

Single Step Step over Step into Step out of It is always a good idea to single step through new code. It usually saves time in the long run. Never single step when you are not in the ISR unless you disable interrupts.

Watch Windows View/Debug Windows/Locals View/Debug Windows/Expressions

Plots View/Debug Windows/Plot/New View/Debug Windows/Plot/Restore Warning, the more plots that you have and the larger they are, the slower your response time.

LEDs It is good to blink an LED when you are in the main loop, to make sure that it does not stay in the ISR all the time. It is good to blink an LED when you are in the ISR, to make sure interrupts are happening. Warning, blink slowly.

Test Files A good example of a test file for Lab 2 would be a different FilterCoefs.c file with all zeros for the coefficients except one. Test files are algorithm dependent.

SIA Smaart Very good for measuring frequency responses real time. (RTA) Good for measuring Transfer Functions.

Remember to use Class coding standards