Professional Documents
Culture Documents
Debugging
Loading of the executable code. Running in real-time or step by step. Breakpoints. Profiling. Saving memory contents in a file. Waveform representation of memory contents.
Text files with strict syntax checking, especially for assembly language *.asm.
Act as a makefile for CCS. Defines all the source files and the linker command file needed to build an executable file.
Assembly Conventions
tabs or spaces
label:
colon optional
mnemonic
operand,operand
;comment
instruction or directive
Any printable ASCII text is allowed. Use .asm extension for file Instructions and directives cannot be in first column Comments O.K. in any column after semicolon
.text .text LD @x,A #X,DP start: LD ADD @y,A LD @x,A STL A,@z ADD @y,A BSTL start A,*(z) B start .data .int .int
constants
x=2 y=7
x y
2 7 z,1
variables
z
.bss
PAGE 1: SCRATCH: origin = 0060h, length = 0020h /* Scratch Pad Data RAM */ INRAM: origin = 2000h, length = 1fffh /* Internal Data RAM } SECTIONS { .text .data .bss } > PRAM PAGE 0 > INRAM PAGE 1 > SCRATCH PAGE 1 */
Sections are placed into specific memory spaces via the linker. file1.asm
.text .data .bss
Program
(Internal/External) VECS PRAM
Data
file2.asm
.text .data .bss
DSP Core
(Internal/External)
SCRATCH INRAM
.cmd -o .out
Text Editor
.asm
.obj
ASM500
-L .lst
LNK500
-m .map
Debug
HEX500
Project Options
Project Build
Data Types
10 0Ah, 0xA 1010b, 1010B Decimal (default) Hexadecimal Binary
Visual Linker 1 of 2
Visual Linker 2 of 2
DSK5416
TMS320VC5416
Up to 160 Mhz. (CLKMD register) Reset value set by JP4 on board : Default settings : 32Mhz (x2) Running value set by startup GEL file: 160 Mhz (x10)
128 Kwords of on chip RAM 16 Kwords of on chip ROM 1 Timer 3 McBSP 6 DMA Channel 16 bit EMIF interface 8/16 bit Host Port Interface
Depends on DROM and OVLY values (PMST register) (as set by C5416_dsk.gel and MP/MC pin (JP4)) :
DROM=1, OVLY=1 and MP/MC=0
1MEMTYPE
DS, MEMTYPE PS, DM PG[4..0] are bits field of DM CNTL register. PG[4..0]
Copyright 2003 Texas Instruments. All rights reserved.
1MEMTYPE
DS, MEMTYPE PS, DM PG[4..0] are bits field of DM CNTL register. PG[4..0]
Copyright 2003 Texas Instruments. All rights reserved.
Data MEMTYPE DS=1, MEMTYPE PS=0, MP/MC=0, memory DROM=1, OVLY=1. Program memory
Provided for user application Read and driven through USER REG (IO@0000h) USER REG[3..0]: drive leds USER REG[7..4]: read switches value. Create a project (LedSwitch) that will read switch position (ON/OFF) and that will set the corresponding Leds depending on the switch value.
Tutorial :
Tutorial : LedSwitch 1 of 6
Tutorial : LedSwitch 2 of 6
Tutorial : LedSwitch 3 of 6
Save (File>Save) the new configuration file under the project directory
Tutorial : LedSwitch 4 of 6
Add to the project two of the files generated at the previous step: the configuration file (*.cdb) and the linker command file (*.cmd).
Tutorial : LedSwitch 5 of 6
Create the main source file : LedSwitch.c which should include the header file generated at the configuration step and add it to the project.
You are now able to get this satissatisfactory message after build
Copyright 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 6 of 6
Use McBSP 2 for data I/F to the DSP Control I/F is done through CPLD registers:
CODEC L (IO@0002h) and CODEC H (IO@0003h) to send command word to the codec. CODEC CLK (IO@0007h) to set the sampling frequency. MISC[7] and MISC[0] (IO@0006h) for status.
DAC outputs are send to both outputs : line and Speaker through an audio power amplifier for this one.
DSK5416 AudioTutorial
Write a program that takes input samples from the ADC and writes back them to the DAC. Create a new project, then add this configuration file audioIO.cdb (which configures McBSP2), the function main( ) could be this one :
DSK 5510
TMS320VC5510
6 DMA Channel 32 bit EMIF interface 16 bit Enhanced Host Port Interface
Provided for user application Read and driven through USER REG (DATA@300000h1) USER REG[3..0]: drive leds USER REG[7..4]: read switches value. Create a project (LedSwitch) that will read switch positions (ON/OFF) and that will set the corresponding LEDs depending on the switch values.
Tutorial :
1Because
Tutorial : LedSwitch 1 of 6
Tutorial : LedSwitch 2 of 6
Tutorial : LedSwitch 3 of 6
Tutorial : LedSwitch 4 of 6
Add to the project two of the files generated at the previous step: the configuration file (*.cdb) and the linker command file (*.cmd).
Tutorial : LedSwitch 5 of 6
Create the main source file : LedSwitch.c which needs to include the header file generated at the configuration step and add it to the project.
You are now able to obtain this satissatisfactory message after build
Copyright 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 6 of 6
Stereo codec with selectable line and microphone inputs and both line and headphones outputs. x250 or x272 oversampling (7 ADC-DAC converter:
16 bits, 48 kHz (default settings) (possible predefined sampling frequency are 44.1, 32, 24 ,16, 8 kHz).
Use McBSP 2 for data interface. Use McBSP 1 in SPI mode to control interface.
DAC outputs are send to both outputs : line and Speaker through an internal audio power amplifier for this one.
Write a program that takes input sample from ADC and write back them to the DAC. Create a new project, then add this configuration file audioIO.cdb (which configure McBSP 1 and 2), the shape of main could be this one :
Further Activities
Application 1 for the TMS320C5510 DSK:
The first in a series of applications to show practical applications of Digital Signal Processing (DSP) with the TMS320C5510 DSK. Template for an audio project. Sets up the audio codec, the 4 user switches to control the program and the 4 LEDs to act as a bargraph display. This project template can be used as the starting point for new projects.