Upload
ariana-cook
View
216
Download
2
Tags:
Embed Size (px)
Citation preview
Copyright © 2003 Texas Instruments. All rights reserved.
DSP C5000DSP C5000
Chapter 4Chapter 4
Software Development ToolsSoftware Development Tools
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 2 Copyright © 2003 Texas Instruments. All rights reserved.
Software Development Tools Software Development Tools
Code Composer Studio (CCS).Code Composer Studio (CCS).
Development Starter Kit (DSK).Development Starter Kit (DSK).
CCSCCS
DSK 5416DSK 5416
DSK 5510DSK 5510
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 3 Copyright © 2003 Texas Instruments. All rights reserved.
Code Composer StudioCode Composer Studio
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 4 Copyright © 2003 Texas Instruments. All rights reserved.
Code Composer StudioCode Composer Studio
DebuggingDebugging Loading of the executable code.Loading of the executable code. Running in real-time or step by step.Running in real-time or step by step. Breakpoints.Breakpoints. Profiling.Profiling. Saving memory contents in a file.Saving memory contents in a file. Waveform representation of memory Waveform representation of memory
contents.contents.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 5 Copyright © 2003 Texas Instruments. All rights reserved.
To Build an Executable FileTo Build an Executable File
Source files (C,C++ and/or assembly) Source files (C,C++ and/or assembly) (*.c,*.asm)(*.c,*.asm) Text files with strict syntax checking, Text files with strict syntax checking,
especially for assembly language *.asm.especially for assembly language *.asm. Linker command file (*.cmd)Linker command file (*.cmd) Project file (*.pjt) :Project file (*.pjt) :
Act as a makefile for CCS.Act as a makefile for CCS. Defines all the source files and the linker Defines all the source files and the linker
command file needed to build an command file needed to build an executable file.executable file.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 6 Copyright © 2003 Texas Instruments. All rights reserved.
label: mnemonic operand,operand ;comment
instruction or directive
Any printable ASCII text is allowed.Any printable ASCII text is allowed.
Use .asm extension for fileUse .asm extension for file
Instructions and directives Instructions and directives cannotcannot be in first column be in first column
Comments O.K. in any column after semicolonComments O.K. in any column after semicolon
tabs or spacestabs or spaces
colon optional
Assembly ConventionsAssembly Conventions
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 7 Copyright © 2003 Texas Instruments. All rights reserved.
How Do We Build a Project ?How Do We Build a Project ?
get x
add y
store z
loop
LD @x,A
ADD @y,A
STL A,@z
B start
.text
x = 2
y = 7
z
.text
LD #X,DP
LD @x,A
ADD @y,A
STL A,*(z)
B start
.datax .int 2y .int 7
.bss z,1
start:code
constants
variables
Processing goal : z=x+y
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 8 Copyright © 2003 Texas Instruments. All rights reserved.
Instructions Used and On-line HelpInstructions Used and On-line Help
LD LD Smem,dstSmem,dst ADDADD Smem,dst Smem,dst STLSTL src,Smemsrc,Smem
LD LD Smem,dstSmem,dst ADDADD Smem,dst Smem,dst STLSTL src,Smemsrc,Smem
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 9 Copyright © 2003 Texas Instruments. All rights reserved.
Linker Command FileLinker Command File
MEMORY
{
PAGE 0: VECS: origin = 0080h, length = 0080h /* Internal Program RAM */
PRAM: origin = 100h, length = 1f00h /* Internal Program RAM */
PAGE 1: SCRATCH: origin = 0060h, length = 0020h /* Scratch Pad Data RAM */
INRAM: origin = 2000h, length = 1fffh /* Internal Data RAM */
}
SECTIONS
{
.text > PRAM PAGE 0
.data > INRAM PAGE 1
.bss > SCRATCH PAGE 1
}
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 10 Copyright © 2003 Texas Instruments. All rights reserved.
Memory Space and Software SectionsMemory Space and Software Sections
DSP
Core
Program(Internal/External)
Data(Internal/External)
VECS
PRAM
SCRATCH
INRAM
.text
.bss
.data
file1.asm
.text
.data
.bss
file2.asm
Sections are placed into specificmemory spaces via the linker.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 11 Copyright © 2003 Texas Instruments. All rights reserved.
Building the Executable FileBuilding the Executable File
TextEditor
ASM500 LNK500 Debug.asm .obj
-o.out
.lst
-L
.cmd
.map
-m
HEX500HEX500
Equivalent Process
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 12 Copyright © 2003 Texas Instruments. All rights reserved.
How to Create a Project under CCSHow to Create a Project under CCS
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 13 Copyright © 2003 Texas Instruments. All rights reserved.
Building the ProjectBuilding the Project
Sum.asmSum.cmd
Sum.asmSum.cmd
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 14 Copyright © 2003 Texas Instruments. All rights reserved.
Project OptionsProject Options
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 15 Copyright © 2003 Texas Instruments. All rights reserved.
Project BuildProject Build
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 16 Copyright © 2003 Texas Instruments. All rights reserved.
Running the ProgramRunning the Program
- Step by step- real time- Breakpoints
- Step by step- real time- Breakpoints
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 17 Copyright © 2003 Texas Instruments. All rights reserved.
Memory and Register DisplayMemory and Register Display
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 18 Copyright © 2003 Texas Instruments. All rights reserved.
Assembler Directives and Data TypesAssembler Directives and Data TypesBasic DirectivesBasic Directives
.byte 8-bit constantword-aligned
.long 32-bit constant
.set/.equ equate a value with a symbol*
.global .ref and .def combined
Data TypesData Types
10 Decimal (default)0Ah, 0xA Hexadecimal1010b, 1010B Binary
.sect create initialized namedsection for code or data
.usect create uninitializednamed section for data
.int (.word) 16-bit constant
.ref/.def used for symbolreferences
.asg assign an assembly constant*. Will displayin debugger
* takes no memory space
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 19 Copyright © 2003 Texas Instruments. All rights reserved.
Visual Linker 1 of 2Visual Linker 1 of 2
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 20 Copyright © 2003 Texas Instruments. All rights reserved.
Visual Linker 2 of 2Visual Linker 2 of 2
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 21 Copyright © 2003 Texas Instruments. All rights reserved.
Dynamic Graph Display 1 of 3Dynamic Graph Display 1 of 3
- Probe Point Insertion
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 22 Copyright © 2003 Texas Instruments. All rights reserved.
Dynamic Graph Display 2 of 3Dynamic Graph Display 2 of 3
-Display configuration-Start adresse : z-Acq buffer size : 1-Display size : 40-Data type : 16 bits unsigned
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 23 Copyright © 2003 Texas Instruments. All rights reserved.
Dynamic Graph Display 3 of 3Dynamic Graph Display 3 of 3
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 24 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 25 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Block Diagram Block Diagram
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 26 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Hardware Resources Hardware Resources TMS320VC5416TMS320VC5416
Internal Internal APLLAPLL and 16Mhz Xtal and 16Mhz Xtal Up to 160 Mhz. (CLKMD register) Up to 160 Mhz. (CLKMD register) Reset value set by JP4 on board :Reset value set by JP4 on board :
Default settings : 32Mhz (x2)Default settings : 32Mhz (x2) Running value set by startup GEL file:Running value set by startup GEL file:
160 Mhz (x10) 160 Mhz (x10) 128 Kwords of on chip RAM128 Kwords of on chip RAM 16 Kwords of on chip ROM16 Kwords of on chip ROM 1 Timer1 Timer 3 McBSP3 McBSP
McBSP 2 may be used for audio codecMcBSP 2 may be used for audio codec 6 DMA Channel6 DMA Channel 16 bit EMIF interface16 bit EMIF interface 8/16 bit Host Port Interface8/16 bit Host Port Interface
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 27 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Internal Memory Resources Internal Memory Resources
Internal Memory DetailsInternal Memory Details Depends on Depends on DROMDROM and and OVLYOVLY values ( values (PMSTPMST register) register)
(as set by C5416_dsk.gel and (as set by C5416_dsk.gel and MP/MCMP/MC pin pin (JP4)(JP4)) :) : DROM=DROM=1, 1, OVLYOVLY=1 and =1 and MP/MCMP/MC=0=0
4x8Kwords DARAM (0080h-7FFFh) Data.4x8Kwords DARAM (0080h-7FFFh) Data. Also map in (xx0000h-xx7FFFh) Program with Also map in (xx0000h-xx7FFFh) Program with OVLYOVLY=1=1
4x8Kwords DARAM (018000h-01FFFFh) Program.4x8Kwords DARAM (018000h-01FFFFh) Program. Also map in (8000h-FFFFh) Data with Also map in (8000h-FFFFh) Data with DROMDROM=1=1
4x8Kwords SARAM (028000h-02FFFFh) Program.4x8Kwords SARAM (028000h-02FFFFh) Program. 4x8Kwords SARAM (038000h-03FFFFh) Program.4x8Kwords SARAM (038000h-03FFFFh) Program.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 28 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 External Memory Resources External Memory Resources
External MemoryExternal Memory Configured by Configured by DMDM CNTLCNTL register located register located
at [email protected] IO@0005h. 64Kwords SRAM64Kwords SRAM
2x32Kwords (SR2x32Kwords (SR PAGE0 and SRPAGE0 and SR PAGE1):PAGE1): Data: (Data: (MEMTYPEMEMTYPE DSDS11=1) All pages, specified by =1) All pages, specified by
DMDM PGPG[4..0][4..0]11, are seen in the (8000h-FFFFh) , are seen in the (8000h-FFFFh) address space if address space if DROMDROM=0.=0.
Program: (Program: (MEMTYPEMEMTYPE PSPS11=1), mapped on :=1), mapped on : SRSR PAGE0: 000000h-007FFFh if PAGE0: 000000h-007FFFh if OVLYOVLY=0,=0, SRSR PAGE1: 008000h-00BFFFh always, PAGE1: 008000h-00BFFFh always,
00C000h-00FF80h if 00C000h-00FF80h if MP/MCMP/MC=1.=1.
11MEMTYPEMEMTYPE DS, MEMTYPEDS, MEMTYPE PS, DMPS, DM PGPG[4..0] are bits field of [4..0] are bits field of DM CNTL register. register.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 29 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Flash Memory Resources Flash Memory Resources
256Kwords Flash memory256Kwords Flash memory 8x32Kwords (F_PAGE0 through F_PAGE7):8x32Kwords (F_PAGE0 through F_PAGE7):
Data: (Data: (MEMTYPEMEMTYPE DSDS11=0) All pages, specified by =0) All pages, specified by DMDM PGPG[4..0][4..0]11, are seen in the (8000h-FFFFh) , are seen in the (8000h-FFFFh) address space if address space if DROMDROM=0.=0.
Program: (Program: (MEMTYPEMEMTYPE PSPS11=0), mapped on :=0), mapped on : FF PAGE0: 000000h-007FFFh if PAGE0: 000000h-007FFFh if OVLYOVLY=0,=0, FF PAGE1: 008000h-00BFFFh always, 00C000h-PAGE1: 008000h-00BFFFh always, 00C000h-
00FF80h if 00FF80h if MP/MCMP/MC=1,=1, FF PAGE[PAGE[2/4/62/4/6]: 0[]: 0[1/2/31/2/3]0000h-0 []0000h-0 [1/2/31/2/3]7FFFh if ]7FFFh if
OVLYOVLY=0,=0, FF PAGE[PAGE[3/5/73/5/7]: 0[]: 0[1/2/31/2/3]8000h-0 []8000h-0 [1/2/31/2/3]FFFFh if ]FFFFh if
MP/MCMP/MC=1.=1.
11MEMTYPEMEMTYPE DS, MEMTYPEDS, MEMTYPE PS, DMPS, DM PGPG[4..0] are bits field of [4..0] are bits field of DM CNTL register. register.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 30 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Default Memory Map Default Memory Map
Status bit values:Status bit values: MEMTYPEMEMTYPE DS=1, MEMTYPEDS=1, MEMTYPE PS=PS=0, 0,
MP/MC=MP/MC=0, 0, DROMDROM=1, =1, OVLYOVLY=1.=1.
Program memoryProgram memory
Data memoryData memory
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 31 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Default Memory Map Default Memory Map Check memory from CCSCheck memory from CCS
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 32 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Hardware Resources Hardware Resources
Four switches and LEDs Four switches and LEDs Provided for user applicationProvided for user application Read and driven through Read and driven through USERUSER REGREG
(IO@0000h)(IO@0000h) USERUSER REGREG[3..0]: drive leds[3..0]: drive leds USERUSER REGREG[7..4]: read switches value.[7..4]: read switches value.
Tutorial : Tutorial : Create a project (LedSwitch) that will read Create a project (LedSwitch) that will read
switch position (ON/OFF) and that will set switch position (ON/OFF) and that will set the corresponding Leds depending on the the corresponding Leds depending on the switch value.switch value.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 33 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 1 of 6Tutorial : LedSwitch 1 of 6 Create a new project called LedSwitchCreate a new project called LedSwitch
Modify call option in « Project>Options » and Modify call option in « Project>Options » and select « far »select « far »
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 34 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 2 of 6Tutorial : LedSwitch 2 of 6 Set a new configuration file (*.cdb)Set a new configuration file (*.cdb)
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 35 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 3 of 6Tutorial : LedSwitch 3 of 6 Save (File>Save) the new configuration file Save (File>Save) the new configuration file
under the project directoryunder the project directory
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 36 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 4 of 6Tutorial : LedSwitch 4 of 6 Add to the project two of the files generated at the Add to the project two of the files generated at the
previous step: the configuration file (*.cdb) and the previous step: the configuration file (*.cdb) and the linker command file (*.cmd).linker command file (*.cmd).
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 37 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 5 of 6Tutorial : LedSwitch 5 of 6 Create the main source file : LedSwitch.c which should Create the main source file : LedSwitch.c which should
include the header file generated at the configuration include the header file generated at the configuration step and add it to the project.step and add it to the project.
You are now able to get this satis-You are now able to get this satis-
factory message after build …factory message after build …
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 38 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 6 of 6Tutorial : LedSwitch 6 of 6
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 39 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Audio Resources Audio Resources Audio CODEC (Audio CODEC (PCM3002PCM3002) :) :
stereo codecstereo codec x64 oversampling x64 oversampling ADC-DAC converter: ADC-DAC converter:
16 bits, 48 kHz (default settings) (possible sampling 16 bits, 48 kHz (default settings) (possible sampling frequency are 24 , 12, 8, 6 kHz).frequency are 24 , 12, 8, 6 kHz).
Use McBSP 2 for data I/F to the DSPUse McBSP 2 for data I/F to the DSP Control I/F is done through CPLD registers:Control I/F is done through CPLD registers:
CODECCODEC LL (IO@0002h) and (IO@0002h) and CODECCODEC HH (IO@0003h) to send command word to the codec.(IO@0003h) to send command word to the codec.
CODECCODEC CLKCLK (IO@0007h) to set the sampling (IO@0007h) to set the sampling frequency.frequency.
MISCMISC[7][7] and and MISCMISC[0][0] (IO@0006h) for status. (IO@0006h) for status.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 40 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 Hardware Resources Hardware Resources
Analog Interface InputAnalog Interface Input
Analog Interface OutputAnalog Interface Output DAC outputs are send to both outputs : line DAC outputs are send to both outputs : line
and Speaker through an audio power amplifier and Speaker through an audio power amplifier for this one. for this one.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 41 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5416DSK5416 AudioTutorial AudioTutorial Write a program that takes input samples from the ADC and writes Write a program that takes input samples from the ADC and writes
back them to the DAC. back them to the DAC. Create a new project, then add this configuration file audioIO.cdb Create a new project, then add this configuration file audioIO.cdb
(which configures McBSP2), the function main( ) could be this one :(which configures McBSP2), the function main( ) could be this one :
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 42 Copyright © 2003 Texas Instruments. All rights reserved.
DSK 5510DSK 5510
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 43 Copyright © 2003 Texas Instruments. All rights reserved.
DSK 5510DSK 5510 Block Diagram Block Diagram
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 44 Copyright © 2003 Texas Instruments. All rights reserved.
DSK 5510DSK 5510 Hardware Resources Hardware Resources TMS320VC5510TMS320VC5510
Internal Internal DPLLDPLL and 24Mhz Xtal and 24Mhz Xtal From 6 Mhz to 200 Mhz. (CLKMD register From 6 Mhz to 200 Mhz. (CLKMD register
IO@1C00h)IO@1C00h) Run at 200 Mhz after default boot.Run at 200 Mhz after default boot.
160 Kwords of on chip RAM160 Kwords of on chip RAM 16 Kwords of on chip ROM16 Kwords of on chip ROM 2 Timers2 Timers 3 McBSP3 McBSP
McBSP 1 & 2 may be used for audio codecMcBSP 1 & 2 may be used for audio codec
6 DMA Channel6 DMA Channel 32 bit EMIF interface32 bit EMIF interface 16 bit Enhanced Host Port Interface16 bit Enhanced Host Port Interface
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 45 Copyright © 2003 Texas Instruments. All rights reserved.
DSK 5510DSK 5510 Memory Resources Memory Resources
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 46 Copyright © 2003 Texas Instruments. All rights reserved.
DSK 5510 Default Memory MapDSK 5510 Default Memory Map
Check memory from CCSCheck memory from CCS
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 47 Copyright © 2003 Texas Instruments. All rights reserved.
DSK 5510 Hardware ResourcesDSK 5510 Hardware Resources
Four switches and LEDs Four switches and LEDs Provided for user applicationProvided for user application Read and driven through Read and driven through USERUSER REGREG
(DATA@300000h(DATA@300000h11)) USERUSER REGREG[3..0]: drive leds[3..0]: drive leds USERUSER REGREG[7..4]: read switches value.[7..4]: read switches value.
Tutorial : Tutorial : Create a project (LedSwitch) that will read Create a project (LedSwitch) that will read
switch positions (ON/OFF) and that will set switch positions (ON/OFF) and that will set the corresponding LEDs depending on the the corresponding LEDs depending on the switch values.switch values.
11Because of unified memory space, it can be decoded in data or prog memory space.Because of unified memory space, it can be decoded in data or prog memory space.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 48 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 1 of 6Tutorial : LedSwitch 1 of 6 Create a new project called LedSwitchCreate a new project called LedSwitch
Modify memory model in « Project>Options » Modify memory model in « Project>Options » and select « large memory model »and select « large memory model »
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 49 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 2 of 6Tutorial : LedSwitch 2 of 6 Set a new configuration file (*.cdb)Set a new configuration file (*.cdb)
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 50 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 3 of 6Tutorial : LedSwitch 3 of 6 Save (File>Save) the new configuration file Save (File>Save) the new configuration file
in the project directoryin the project directory
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 51 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 4 of 6Tutorial : LedSwitch 4 of 6 Add to the project two of the files generated at the Add to the project two of the files generated at the
previous step: the configuration file (*.cdb) and the previous step: the configuration file (*.cdb) and the linker command file (*.cmd).linker command file (*.cmd).
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 52 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 5 of 6Tutorial : LedSwitch 5 of 6 Create the main source file : LedSwitch.c which needs Create the main source file : LedSwitch.c which needs
to include the header file generated at the configuration to include the header file generated at the configuration step and add it to the project.step and add it to the project.
You are now able to obtain this satis-You are now able to obtain this satis-
factory message after build …factory message after build …
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 53 Copyright © 2003 Texas Instruments. All rights reserved.
Tutorial : LedSwitch 6 of 6Tutorial : LedSwitch 6 of 6
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 54 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5510 Hardware Audio ResourcesDSK5510 Hardware Audio Resources
Audio CODEC (TLV320AIC23) :Audio CODEC (TLV320AIC23) : Stereo codec with selectable line and Stereo codec with selectable line and
microphone inputs and both line and microphone inputs and both line and headphones outputs.headphones outputs.
x250 or x272 oversampling x250 or x272 oversampling ADC-DAC ADC-DAC converter:converter: 16 bits, 48 kHz (default settings) (possible predefined 16 bits, 48 kHz (default settings) (possible predefined
sampling frequency are 44.1, 32, 24 ,16, 8 kHz).sampling frequency are 44.1, 32, 24 ,16, 8 kHz).
Use McBSP 2 for data interface.Use McBSP 2 for data interface. Use McBSP 1 in SPI mode to control interface. Use McBSP 1 in SPI mode to control interface.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 55 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5510 Hardware ResourcesDSK5510 Hardware Resources
Analog Interface InputAnalog Interface Input
Analog Interface OutputAnalog Interface Output DAC outputs are send to both outputs : line DAC outputs are send to both outputs : line
and Speaker through an internal audio power and Speaker through an internal audio power amplifier for this one. amplifier for this one.
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 56 Copyright © 2003 Texas Instruments. All rights reserved.
DSK5510 Audio TutorialDSK5510 Audio Tutorial Write a program that takes input sample from ADC and write back Write a program that takes input sample from ADC and write back
them to the DAC. them to the DAC. Create a new project, then add this configuration file audioIO.cdb 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 :(which configure McBSP 1 and 2), the shape of main could be this one :
Copyright © 2003 Texas Instruments. All rights reserved.
ESIEE, Slide 57 Copyright © 2003 Texas Instruments. All rights reserved.
Further ActivitiesFurther Activities
Application 1 for the TMS320C5510 Application 1 for the TMS320C5510 DSK:DSK: The first in a series of applications to show The first in a series of applications to show
practical applications of Digital Signal practical applications of Digital Signal Processing (DSP) with the TMS320C5510 Processing (DSP) with the TMS320C5510 DSK. DSK.
Template for an audio project. Sets up the Template for an audio project. Sets up the audio codec, the 4 user switches to control audio codec, the 4 user switches to control the program and the 4 LEDs to act as a the program and the 4 LEDs to act as a bargraph display. This project template bargraph display. This project template can be used as the starting point for new can be used as the starting point for new projects. projects.