Introduction TMS320C6713

18
Introduction to Introduction to TMS320C6713 TMS320C6713 DSP DSP Starter Kit Starter Kit ( ( DSK) DSK)

Transcript of Introduction TMS320C6713

Page 1: Introduction TMS320C6713

Introduction to Introduction to TMS320C6713TMS320C6713 DSP Starter KitDSP Starter Kit

((DSK)DSK)

Page 2: Introduction TMS320C6713

IntroductionIntroductionThe TI's TMS320C6713 DSK is

designed and optimized to perform digital signal processing operations.

For short this DSP will be referred to as 'C6713.

The family of this DSP is referred to as 'C6x or 'C6000.

'C6713 is a high performance 32-bit floating-point DSP.

VLIW architecture. low-cost standalone development

platform that enables users to evaluate and develop applications for the TI C67xx DSP family.

Page 3: Introduction TMS320C6713

PurposePurposeStart getting familiar with TI's

TMS320C6713 by learning the following.

◦An overview of the functional blocks of the board.

◦Code Composer Studio (CCS).◦Writing, compiling and running a simple

code.

Page 4: Introduction TMS320C6713

Diagram of TMS320C6713 Diagram of TMS320C6713 DSKDSK

Page 5: Introduction TMS320C6713

Board diagramBoard diagram

Page 6: Introduction TMS320C6713

Functional OverviewFunctional Overview Interfaces to on-board peripherals through a 32-

bit wide EMIF (External Memory Inter Face).

The SDRAM, Flash and CPLD are all connected to the bus.

EMIF signals are also connected daughter card expansion connectors which are used for third party add-in boards.

The DSP interfaces to analog audio signals through an on-board AIC23 codec and four 3.5 mm audio jacks (microphone input, line input, line output, and headphone output).

Page 7: Introduction TMS320C6713

Contd…Contd…

A programmable logic device called a CPLD is used to implement glue logic that ties the board components together

The DSK includes 4 LEDs and a 4 position DIP switch as a simple way to provide the user with interactive feedback

Code Composer communicates with the DSK through an embedded JTAG emulator with a USB host interface

Page 8: Introduction TMS320C6713

Programming the Programming the TMS320C6713TMS320C6713

Simplified Code Composer Studio IDE Development Flow

Page 9: Introduction TMS320C6713

Code Composer Studio Code Composer Studio (CCS)(CCS)CCS provides an IDE to incorporate the software

tools.

CCS includes tools for code generation, such as a C compiler, an assembler, and a linker.

It has graphical capabilities and supports real-time debugging

The C compiler compiles a C source program with extension .c to produce an assembly source file with extension .asm.

The assembler assembles an.asm source file to produce a machine language object file with extension.obj.

Page 10: Introduction TMS320C6713

Contd…Contd…

The linker combines object files and object libraries as input to produce an executable file with extension .out.

This executable file can be loaded and run directly on the C6713 processor.

Page 11: Introduction TMS320C6713

11

Code Composer Studio - Code Composer Studio - ExampleExampleCCS is TI’s proprietary IDE that

provides a transition between a high-level DSP program and an on-board machine language program.

It is used to: ◦Generate programs for the C6713 DSP

using C language,◦Load them into the DSK,◦Run them,◦Monitor program execution.

Page 12: Introduction TMS320C6713

12

Code Composer Studio - Code Composer Studio - ExampleExampleMake sure DSK is connected to PC

via USB and to power outlet before opening CCS.

Open CCS by double clicking on the CCS icon

To connect to the DSK, go to: “Debug → Connect”.

To start a new project, go to: “Project → New…”Choose

Appropriate DSP Family

Page 13: Introduction TMS320C6713

13

Code Composer Studio - Code Composer Studio - ExampleExample

Add C source file to “dsplab.c”:Add a linker command (.cmd)

◦linker command file - sets up the memory map for the CCS linker to make sure the code and data are loaded to the desired locations.

Add the run-time support library functions file rts6700.lib to the project

Page 14: Introduction TMS320C6713

14

Code Composer Studio - Code Composer Studio - ExampleExample

Now,◦Compile code: “Project → Compile File”,◦Build project: “Project → Build”,◦Load program to DSK: “File → Load

Program” and choose “.out” file in “Debug” folder,

◦Run the program on DSP: “Debug → Run”.

Page 15: Introduction TMS320C6713

Debugging featuresDebugging features

Setting breakpoints and watching variables; viewing memory, registers, and mixed C and assembly code;

Graphing results; and monitoring execution time.

One can step through a program in different ways (step into, over, or out).

Page 16: Introduction TMS320C6713

Useful sub Useful sub folders/directoriesfolders/directoriesmyprojects: a folder supplied for your projects. bin: contains many utilities.docs: contains documentation and manuals.c6000\cgtools: contains code generation tools.c6000\RTDX: contains support files for real-time

data transfer.c6000\bios: contains support files for DSP/BIOS.examples: contains examples included with

CCS.tutorial: contains additional examples supplied

with CCS.

Page 17: Introduction TMS320C6713

AssignmentsAssignments WRITE C PROGRAM AND SIMULATE USING THE KIT

TMS320C6713

1. LINEAR CONVOLUTION OF ANY TWO GIVEN SEQUENCESEx:

Input Signal Samples – {10,11,12,13,14,15,0,0,0,0,0,0};

Impulse Response Co-efficients - {10,11,12,13,14,15,0,0,0,0,0,0};

2. CIRCULAR CONVOLUTION OF ANY TWO GIVEN SEQUENCES

Ex:

Input Signal Samples – {10,11,12,13,14,15,0,0,0,0,0,0};

Impulse Response Co-efficients - {10,11,12,13,14,15,0,0,0,0,0,0};

3. TO OBTAIN DFT FOR A GIVEN SEQUENCEEx:

N = 4 and

x[4]={1,2,3,4};

4. TO FIND THE DIFFERENCE EQUATION OF THE GIVEN SYSTEM

Ex:

Let, M=N=5

b[5] = {1, -0.7478, 0,0,0.2722};

a[5] = {0.1311, 0.2622, 0.1311,0,0}; and x[7] = {1,0,0}

Page 18: Introduction TMS320C6713

Thank You….