Lab Session
Lab Session
&
DSP Applications with the TMS320C6713 DSK
Outline of Laboratory
Introduction to Code Composer Studio Installation and setup of CCS Laboratory
Familiar with DSK6713 starter kit Creating a project and developing a simple Program Building options. Run and Debug a Program. Data Visualization
Overview
Overview
DSK Details
Overview
It is intelligent IDE to offer DSP application development for multi processor, multi-user, multi-site projects.
It provides complier, assembler and linker in order to generate output file for any input algorithm file. It also helps us to download and run algorithm on DSK.
The development flow of most DSP-based applications consists of four basic phases: application design,code creation, debug, and analysis/tuning.
Overview
225 MHz TMS320C6713 floating point DSP Advance VLIW architecture with 8 different functional Units (6 ALUs & 2 Multiplers) Eight 32 bit instructions can be process simultaneously at every 4.44ns; In one second 8 x 2.25 x108 1800 millian instructions can be process per second; It is useful in computationally intensive algorithm (MIPS) 16 bit TLV320AIC23 Analog Interface Circuit stereo codec (ADC and DAC) Sigma delta technique with 12 Mhz clock 8-96 kHz sample rates can be selected Ideal for audio applications Memory 16 MB dynamic RAM 512 kB nonvolatile FLASH memory General purpose I/O 1.26 V for DSP core and 3.3 V for memory and peripherals 32 bit Address Bus so 4 GB address 4 LEDs 4 DIP switches USB interface to PC
Is my DSK working?
Power up DSK and watch LEDs Power On Self Test (POST) program stored in FLASH memory automatically executes POST takes 10-15 seconds to complete All DSK subsystems are automatically tested During POST, a 1kHz sinusoid is output from the AIC23 codec for 1 second Listen with headphones or watch on oscilloscope If POST is successful, all four LEDs blink 3 times and then remain on
Launch Code Composer Studio C6713 DSK CCS will load and wait for your input
Overview
Select a .PJT file and press Open. Chassaing example projects should be in c:\CCStudio_v3.1\myprojects\ Other example projects for the C6713 can be found in c:\CCStudio_v3.1\examples\dsk6713
Compiling/Building a Project
Build Options
Fixing the search path Add
C:\CCStudio_v3.1\C6000\dsk671 3\include
to the search
path
Project -> Build Options -> [Compiler tab] -> [Preprocessor category]
Build Options
Build Options
Build Options
Complier setting
Basic Category Target Version mv6710 Advance Category Memory Models to Far Preprocessor Category Predefine symbol CHIP_6713 Include search path
Linker Settings
Give Library Search path and directory name Give path to generate map and executable files
Breakpoints Probe points Watch variables Plotting arrays of data Animation General Extension Language (GEL)
Breakpoints
Watch Variables
Watch Variables
In the Watch Locals tab, the debugger automatically displays the Name, Value, and Type of the variables that are local to the currently executing function. In the Watch tab, the debugger displays the Name, Value, and Type of the local and global variables and expressions that you specify. Can add/delete tabs.
FIR Filter
Directory Structure
1. myprojects: a folder supplied only for your projects. 2. bin: contains many utilities. 3. docs: contains documentation and manuals. 4. c6000\cgtools: contains code generation tools. 5. c6000\RTDX: contains support files for real-time data transfer. 6. c6000\bios: contains support files for DSP/BIOS. 7. examples: contains examples included with CCS. 8. tutorial: contains additional examples supplied with CCS.
SUPPORT FILES
1. C6713dskinit.c: contains functions to initialize the DSK, the codec, the serial ports, and for I/O. It is not included with CCS. 2. C6713dskinit.h: header file with function prototypes. Features such as those used to select the mic input in lieu of line input and gain 3. C6713dsk.cmd: sample linker command file. This generic file can be changed when using external memory in lieu of internal memory. 4. Vectors_intr.asm: a modified version of a vector file included with CCS to handle interrupts. Twelve interrupts, INT4 through INT15, are available, and INT11 is selected within this vector file. They are used for interrupt-driven programs. 5. Vectors_poll.asm: vector file for programs using polling. 6. rts6700.lib,dsk6713bsl.lib,csl6713.lib: run-time, board, and chip support library files, respectively. These files are included with CCS and are located in C6000\cgtools\lib, C6000\dsk6713\lib, and c6000\bios\lib, respectively.
SUPPORT FILES
1. DSP Bios : enable us to develop sophisticated application more quickly better than traditional approach 2. CSL File- It provides c program function to configure and control on chip peripherals
manages standard protocol for program peripherals Basic resource management
3. BSL : Provides control on board devices and allowing developer to get algorithm functioning in a real system rts6700.lib,dsk6713bsl.lib,csl6713.lib: run-time, board, and chip support library files, respectively. These files are included with CCS and are located in C6000\cgtools\lib, C6000\dsk6713\lib, and c6000\bios\lib, respectively.
Creating Project
1. Press the up-arrow key to increase the gain value from 10 to 15, as displayed in the Slider window. Verify that the volume of the sine wave generated has increased. 2. Press the up-arrow key again to continue increasing the slider, incrementing by 5 up to 30. The amplitude of the sine wave should be about 2.5 V pp with a gain value set at 30. 3. Change the sampling frequency from 8 to 16 kHz by setting fs in the C source program to DSK6713_AIC23_FREQ_16KHZ. Rebuild. The