Step 2: log in
Use your netID and password to log into the PC at your laboratory station.
When you log in, verify that the
U:
and
V:
networked drives are mapped to the computer. The
U:
drive is your personal work directory, and
V:
is a read-only course drive.
Although you may want to work exclusively in one partner's network account, you should be sure that both partners have copies of the lab assignment code.
The development environment
The evaluation board is controlled by the PC through the JTAG interface in CCS. This development environment allows the user to download, run, and debug code assembled on the PC. Work through the steps below to familiarize yourself with the debugging environment and real-time system using the provided FIR filter code (Steps 3, 4 and 5), then verify the filter's frequency response with the subsequent MATLAB exercises (Steps 6 and 7).
Step 3: assemble filter code
Setup code composer
By default, a shortcut to CCS is available by going toStart>All Programs>Texas Instruments>Code Composer Studio v5
. When CCS starts for the first time, Workspace Launcher will start because it will need to set up your workspace.
Create or make sure you have the following directory:
U:\workspace\ECE420
. In Workspace Launcher, hit
Browse...
, navigate to this folder, and make sure to check "Use this as the default and do not ask again".
File>Switch Workspace...
Import project
In CCS, go toProject>Import Existing CCS Eclipse Project
:
- Browse to
V:\ece420\55x\ccs5\filter
- Check "Copy projects into workspace"
Build project
Once the project is copied into your workspace, we can proceed to build it:- In Project Explorer, make sure that "filter" is highlighted.
- Select
Project>Build Project
.
In a successful build, there will be zero errors and maybe a few warnings and remarks. The output file will be placed in a Debug folder within the project's directory. In this example, the executable binary code will be located at
.\Debug\filter.out
.
Step 4: verify filter execution
- Select
View>Target Configurations
- In the panel that comes up, expand
Projects>filter
- Right-click on
dsk5510.ccxml
and select "Launch Selected Configuration"
Connect to the dsp
Once CCS connects to the DSP, the debugger view will launch. Select
Run>Connect Target
Load and run program
Now, load your assembled filter file onto the DSP:- Select
Run>Load>Load Program
. - Select "Browse project" and choose the binary file
filter.out
. - Execute the code by selecting
Run>Resume
.
The program you are running accepts input from input channel 1 and sends output waveforms to output channels 1 and 2 (the filtered signal and raw input, respectively).
Note that the "raw input" on output channel 2 may differ from the actual input on input channel 1. Why?
Because of distortions introduced in converting the analog input to a digital signal and then back to an analog signal.
What differences do you expect to see between the signals at input channel 1 and at output channel 2?
Hint: The A/D and D/A converters on the six-channel surround board operate at a sample rate of 48 kHz and have an anti-aliasing filter and an anti-imaging filter , respectively, that in the ideal case would eliminate frequency content above 24 kHz.