0% found this document useful (0 votes)
32 views

Sesión 16 - DSP - Getting Started

This document provides information about getting started with Code Composer Studio (CCS) for signal processing applications on Texas Instruments C6000 processors. It describes the folder structure for CCS projects, the different types of files used, how to create a new project, add source files, modify linker command files, build an executable, load and run programs, and view memory and graphical outputs. It also provides examples of generating waveforms, performing math operations like the dot product of two vectors, and modifying existing code to add new functionality.

Uploaded by

Viviana Diaz
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Sesión 16 - DSP - Getting Started

This document provides information about getting started with Code Composer Studio (CCS) for signal processing applications on Texas Instruments C6000 processors. It describes the folder structure for CCS projects, the different types of files used, how to create a new project, add source files, modify linker command files, build an executable, load and run programs, and view memory and graphical outputs. It also provides examples of generating waveforms, performing math operations like the dot product of two vectors, and modifying existing code to add new functionality.

Uploaded by

Viviana Diaz
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

SIGNAL PROCESSING II

Getting started with Code


Composer
Sebastin Roldn Vasco
Parque i Simulacin,
Modelamiento y Prototipos
[email protected]

Generated code supplied


by TI

There is useful information in the folder C:\CCStudio_v3.1


Docs: documentation and manuals.
MyProjects: all the new projects are saved in this folder
by default.
C6000\cgtools: code generation tools.
Examples: examples using CCS.

Examples\dsk6713: support files for multiple applications.

Types of files
File.pjt: Project name file.
File.c: C source program.
File.asm: assembly source program.
File.sa: linear assembly source program. Is the input to produce file.asm.
File.h: header support file.
File.lib: library file, such as the run-time support library file.
File.cmd: linker command file that maps sections of memory.
File.obj: object file created by the assembler.
File.out: executable file created by the linker.

Creating a Project in CCS


Project New
Type the Project name and the selected location
of the files.
Select carefully the target (67XX)
The project extension is .pjt

Source files
There are different kinds of source files:
.asm Assembler
.c Main program
.h Header files and libraries

File New Source File


Type the following code (observe the space
before every point!!!)

Source files
There are different kinds of source files:
.asm Assembler
.c Main program
.h Header files and libraries

File Save as (the name that you prefer)

Source files
File New Source File
Create the main file (.c)

Source files
Locate the command file Hello.cmd
(c:\CCStudio_v3.1\tutorial\dsk6713\hello1)
Do the following modifications related with the SDRAM
This put the data from datosseno.asm in the address
0x80000000 of SDRAM

Adding files
Project Add Files to Project
Open the files done before:
datosseno.asm
main.c
Ejemplo1.cmd

Furthermore, add the library which supports the


real-time execution on the board
(c:\CCStudio_v3.1\c6000\cgtools\lib\rts6700.lib)

Adding files
The Project File window must have this
appearance:

Creating the executable


file

Project Build options


Refresh the target version in the compiler option

To change the name of the executable file, select


the Linker option and Basic, in this case,
Ejemplo1.out

Creating the executable


file

Project Rebuild All (No errors must be shown)

Debug Connect
Verify the status of connection at the left bottom
corner of the screen.

Creating the executable


file

Debug Reset CPU


File Load Program
Open Ejemplo1.out (Located at the Debug folder
of the Project)
Disassembly window appears
Debug Run

Memory status
View Memory

Compare these
data with the file
datosseno.asm

Graphical display
View Graph Time/Frequency

Pointers

Functions

Getting started with DSP


Activity
Modify the program in order to:
Generate a sawtooth waveform.
Display the power of the signal.
Invert the signal (from the main.c).

Math operations with DSP


We
will create a program that generate the
dot product between two defined arrays.
Assume the following arrays:

Create a new Project.


Create a header file with the vectors:

Math operations with DSP


Create the C code which computes the
operation

Math operations with DSP


Create the following linker file:

The code can be copied from the website


http://www.cs.huji.ac.il/course/2004/rtdsp/Labs/Lab6/C6xdsk.c
md

Math operations with DSP


Locate the file vectors.asm in
C:\CCStudio_v3.1\tutorial\dsk6713\hello1
Save it in the Project folder.
Add only the following files to the Project:

The source file


Vector assembler file defining address C_int00
Linker file C6xdsk.cmd
Run-time support library
(c:\CCStudio_v3.1\c6000\cgtools\lib\rts6700.lib)

Math operations with DSP


Nothe that the source file is declaring two
header files:
stdio.h (necessary to call printf function)
dotp5.h (contains the vectors x_array and
y_array)

To add them:
Project Scan All File Dependencies

Math operations with DSP


The file visualization window must have
this appearance:

Load and run the program.

Getting started with DSP


Activity
Modify the sine wave generator program in
order to:
Add an offset.
Multiply the sine wave by a vector.

You might also like