Académique Documents
Professionnel Documents
Culture Documents
TMS 320C6713 DSK and Graph plotting in Code Composer Studio V6.0
Objectives:
Purpose of this lab is to familiarize students with input and output ports of DSP kit and to
explore the CCS V6.0 properties.
Equipment/Tool:
The hardware experiments in the DSP lab are carried out on the Texas Instruments
TMS320C6713 DSP Starter Kit (DSK), based on the TMS320C6713 floating point DSP running
at 225 MHz. The basic clock cycle instruction time is 1/(225 MHz)= 4.44 nanoseconds. During
each clock cycle, up to eight instructions can be carried out in parallel, achieving up to 8×225 =
1800 million instructions per second (MIPS). The C6713 processor has 256KB of internal
memory, and can potentially address 4GB of external memory.
The DSK also has four user-programmable DIP switches and four LEDs that can be used to
control and monitor programs running on the DSP.
You should press "File", "New", and "CCS Project" to create a new project under CCS V6.0 as
shown in Figure 3.3.
Click "finish", on right side project explorer will show your newly created project as shown
Figure 3.5.
To create a target configuration file for the project, right click on the name of your project on the
project tree. Select "New→Target Configuration File" as in Figure 3.6.
On the configuration window, enter the name of your configuration file with an extension
“xxx.ccxml” as in Figure 3.7. Click on the "Finish" button.
To create the source file, right click on the name of your project on the project tree. Select "New-
>Source File" as in Figure 3.9.
To test these steps, you can start writing the source code given in Figure 3.9. To run this code,
select "Project→Build Project" as in Figure 3.12.
Figure 3.12: Building the Active Project.
If there are no errors in your code, you should see "Build complete sign" in the "Console"
window as in Figure 3.13. Any errors or warnings will be listed in the companion "Problems"
window.
After building the project, select "Run→Debug " or press F11 as in Figure 3.14
Now, you should see the "Debug" window in the CCS V6.0 workspace as in Figure 3.15.
Figure 3.15 Debug Window in CCS V6.0 Workspace.
Press the green play button on the "Debug" window and select "Run" to start running your
project as in Figure 3.16.
Figure 3.16 Running the Project.
Right click on the row that you want to place a break point. Select "Toggle Breakpoint" as in
Figure 3.17.
Select the variable you want to observe. Right click on it. Select "Add Watch Expression" as in
Figure 3.18. You can observe the variable in the watch window as shown in Figure 3.19.
3.7 Plots
b. Create a new C source code file. Your code should calculate and save the first 10
elements of the Fibonacci series in an array.
c. Build and Run your project. Observe the graph of the Fibonacci array by using the
graph property of CCS V6.0.
Solution:
1. A new target configuration file.
3. Build and Run your project. Observe the graph of the Fibonacci array by using the graph
property of CCS V6.0.
Build project:
Graph:
Values: