113D_1_113D_1_EE113D_exp_2

113D_1_113D_1_EE113D_exp_2 - UCLA Electrical Engineering...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: UCLA Electrical Engineering Professor Jain EE 113D TA Rick Huang Experiment 2 Digital Filtering (FIR) Purpose To design a FIR lter in MATLAB and to implement and test it on the TMS320C542-based DSKplus board. Introduction A lter is the one of the most common algorithms in digital signal processing systems. In the rst part of this experiment, you will design a FIR lter using MATLAB. To implement this lter on a xed-point DSP requires quantizing these lter coe cients. Because quantization modi es coe cient values, you will verify that the lter response is still satisfactory. You will export these quantized coe cients to assembly and, in second part of the experiment, complete a program that will implement the di erence equation associated with them. In the second part of the experiment, you will be implementing this lter on the 'C54x by programming the chip to perform the di erence equation computation. The inputs will be sampled data values from the 'AC01 and the output will be sent out in the usual manner via the D/A on the 'AC01. The main purpose is to acquire a data signal via the input port of the DSKplus, lter it, and then pass it out via the output port. In the lter processing section, a general purpose FIR code should be designed so that it can easily be modi ed if the number of lter taps or the tap weights need to be changed. Thus, depending on the tap weights ( lter coe cients) an arbitrary low-pass, high-pass, band-pass, etc. lter can be implemented using this same code. Your program should have a similar structure to the programs you have been working with in the previous experiments: 1. a main program which de nes all the labels, memory locations and makes all the initialization function calls; 2. an initialization le (AC01 init, e.g.) which is similar to the initialization le you have see before, which sets all the AC01 registers, as per your requirements for sampling frequency, input gain, etc.; 3. and an interrupt vector table, as seen before. It is useful to have the program le read in a fourth le, a lter coe cient le, which stores the lter coe cients for a particular lter structure. This is good, modular programming practice, since you now can have di erent coe cient les for di erent lter structures....
View Full Document

This note was uploaded on 11/06/2010 for the course EE 113 taught by Professor Walker during the Spring '08 term at UCLA.

Page1 / 4

113D_1_113D_1_EE113D_exp_2 - UCLA Electrical Engineering...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online