Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 4 Software Development Tools.

Similar presentations


Presentation on theme: "Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 4 Software Development Tools."— Presentation transcript:

1 Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 4 Software Development Tools

2 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 2 Copyright © 2003 Texas Instruments. All rights reserved. Software Development Tools Code Composer Studio (CCS). Code Composer Studio (CCS). Development Starter Kit (DSK). Development Starter Kit (DSK). CCS DSK 5416 DSK 5416 DSK 5510 DSK 5510

3 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 3 Copyright © 2003 Texas Instruments. All rights reserved. Code Composer Studio

4 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 4 Copyright © 2003 Texas Instruments. All rights reserved. Code Composer Studio Debugging Debugging 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 contents. Waveform representation of memory contents.

5 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 5 Copyright © 2003 Texas Instruments. All rights reserved. To Build an Executable File Source files (C,C++ and/or assembly) (*.c,*.asm) Source files (C,C++ and/or assembly) (*.c,*.asm) Text files with strict syntax checking, especially for assembly language *.asm. Text files with strict syntax checking, 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 command file needed to build an executable file. Defines all the source files and the linker command file needed to build an executable file.

6 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 file Use.asm extension for file Instructions and directives cannot be in first column Instructions and directives cannot be in first column Comments O.K. in any column after semicolon Comments O.K. in any column after semicolon tabs or spaces colon optional Assembly Conventions

7 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 STLA,@z Bstart.text x = 2 y = 7 z.text LD#X,DP LD@x,A ADD@y,A STLA,*(z) Bstart.data x.int 2 y.int 7.bss z,1 start: code constants variables Processing goal : z=x+y

8 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 8 Copyright © 2003 Texas Instruments. All rights reserved. Instructions Used and On-line Help LD Smem,dst LD Smem,dst ADDSmem,dst ADDSmem,dst STLsrc,Smem STLsrc,Smem LD Smem,dst LD Smem,dst ADDSmem,dst ADDSmem,dst STLsrc,Smem STLsrc,Smem

9 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 9 Copyright © 2003 Texas Instruments. All rights reserved. Linker 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 }

10 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 10 Copyright © 2003 Texas Instruments. All rights reserved. Memory 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 specific memory spaces via the linker.

11 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 11 Copyright © 2003 Texas Instruments. All rights reserved. Building the Executable File Text Editor ASM500LNK500Debug. asm. obj -o. out.lst -L.cmd.map -m HEX500 Equivalent Process

12 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 12 Copyright © 2003 Texas Instruments. All rights reserved. How to Create a Project under CCS

13 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 13 Copyright © 2003 Texas Instruments. All rights reserved. Building the Project Sum.asm Sum.cmd Sum.asm Sum.cmd

14 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 14 Copyright © 2003 Texas Instruments. All rights reserved. Project Options

15 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 15 Copyright © 2003 Texas Instruments. All rights reserved. Project Build

16 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 16 Copyright © 2003 Texas Instruments. All rights reserved. Running the Program - Step by step - real time - Breakpoints - Step by step - real time - Breakpoints

17 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 17 Copyright © 2003 Texas Instruments. All rights reserved. Memory and Register Display

18 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 18 Copyright © 2003 Texas Instruments. All rights reserved. Assembler Directives and Data Types Basic Directives.byte8-bit constant word-aligned.long32-bit constant.set/.equequate a value with a symbol*.global.ref and.def combined Data Types 10Decimal (default) 0Ah, 0xAHexadecimal 1010b, 1010BBinary.sectcreate initialized named section for code or data.usectcreate uninitialized named section for data.int (.word) 16-bit constant.ref/.defused for symbol references.asgassign an assembly constant*. Will display in debugger * takes no memory space

19 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 19 Copyright © 2003 Texas Instruments. All rights reserved. Visual Linker 1 of 2

20 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 20 Copyright © 2003 Texas Instruments. All rights reserved. Visual Linker 2 of 2

21 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 21 Copyright © 2003 Texas Instruments. All rights reserved. Dynamic Graph Display 1 of 3 - Probe Point Insertion

22 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 22 Copyright © 2003 Texas Instruments. All rights reserved. Dynamic Graph Display 2 of 3 - -Display configuration - -Start adresse : z - -Acq buffer size : 1 - -Display size : 40 - -Data type : 16 bits unsigned

23 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 23 Copyright © 2003 Texas Instruments. All rights reserved. Dynamic Graph Display 3 of 3

24 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 24 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416

25 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 25 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Block Diagram DSK5416

26 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 26 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Hardware Resources DSK5416 TMS320VC5416 TMS320VC5416 TMS320VC5416 Internal APLL and 16Mhz Xtal Internal APLL and 16Mhz XtalAPLL 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 :JP4 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 RAM 128 Kwords of on chip RAM 16 Kwords of on chip ROM 16 Kwords of on chip ROM 1 Timer 1 Timer 3 McBSP 3 McBSP McBSP 2 may be used for audio codec McBSP 2 may be used for audio codec 6 DMA Channel 6 DMA Channel 16 bit EMIF interface 16 bit EMIF interface 8/16 bit Host Port Interface 8/16 bit Host Port Interface

27 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 27 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Internal Memory Resources DSK5416 Internal Memory Details Internal Memory Details Depends on DROM and OVLY values (PMST register) (as set by C5416_dsk.gel and MP/MC pin (JP4)) : 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 DROM=1, OVLY=1 and MP/MC=0 4x8Kwords DARAM (0080h-7FFFh) Data. 4x8Kwords DARAM (0080h-7FFFh) Data. Also map in (xx0000h-xx7FFFh) Program with OVLY=1 Also map in (xx0000h-xx7FFFh) Program with OVLY=1 4x8Kwords DARAM (018000h-01FFFFh) Program. 4x8Kwords DARAM (018000h-01FFFFh) Program. Also map in (8000h-FFFFh) Data with DROM=1 Also map in (8000h-FFFFh) Data with DROM=1 4x8Kwords SARAM (028000h-02FFFFh) Program. 4x8Kwords SARAM (028000h-02FFFFh) Program. 4x8Kwords SARAM (038000h-03FFFFh) Program. 4x8Kwords SARAM (038000h-03FFFFh) Program.

28 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 28 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 External Memory Resources DSK5416 External Memory External Memory Configured by DM CNTL register located at IO@0005h. Configured by DM CNTL register located at IO@0005h.DM CNTLDM CNTL 64Kwords SRAM 64Kwords SRAM 2x32Kwords (SR PAGE0 and SR PAGE1): 2x32Kwords (SR PAGE0 and SR PAGE1): Data: (MEMTYPE DS 1 =1) All pages, specified by DM PG[4..0] 1, are seen in the (8000h-FFFFh) address space if DROM=0. Data: (MEMTYPE DS 1 =1) All pages, specified by DM PG[4..0] 1, are seen in the (8000h-FFFFh) address space if DROM=0. Program: (MEMTYPE PS 1 =1), mapped on : Program: (MEMTYPE PS 1 =1), mapped on : SR PAGE0: 000000h-007FFFh if OVLY=0, SR PAGE0: 000000h-007FFFh if OVLY=0, SR PAGE1: 008000h-00BFFFh always, 00C000h-00FF80h if MP/MC=1. SR PAGE1: 008000h-00BFFFh always, 00C000h-00FF80h if MP/MC=1. 1 MEMTYPE DS, MEMTYPE PS, DM PG[4..0] are bits field of DM CNTL register. DM CNTLDM CNTL

29 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 29 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Flash Memory Resources DSK5416 256Kwords Flash memory 256Kwords Flash memory 8x32Kwords (F_PAGE0 through F_PAGE7): 8x32Kwords (F_PAGE0 through F_PAGE7): Data: (MEMTYPE DS 1 =0) All pages, specified by DM PG[4..0] 1, are seen in the (8000h-FFFFh) address space if DROM=0. Data: (MEMTYPE DS 1 =0) All pages, specified by DM PG[4..0] 1, are seen in the (8000h-FFFFh) address space if DROM=0. Program: (MEMTYPE PS 1 =0), mapped on : Program: (MEMTYPE PS 1 =0), mapped on : F PAGE0: 000000h-007FFFh if OVLY=0, F PAGE0: 000000h-007FFFh if OVLY=0, F PAGE1: 008000h-00BFFFh always, 00C000h- 00FF80h if MP/MC=1, F PAGE1: 008000h-00BFFFh always, 00C000h- 00FF80h if MP/MC=1, F PAGE[2/4/6]: 0[1/2/3]0000h-0 [1/2/3]7FFFh if OVLY=0, F PAGE[2/4/6]: 0[1/2/3]0000h-0 [1/2/3]7FFFh if OVLY=0, F PAGE[3/5/7]: 0[1/2/3]8000h-0 [1/2/3]FFFFh if MP/MC=1. F PAGE[3/5/7]: 0[1/2/3]8000h-0 [1/2/3]FFFFh if MP/MC=1. 1 MEMTYPE DS, MEMTYPE PS, DM PG[4..0] are bits field of DM CNTL register. DM CNTLDM CNTL

30 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 30 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Default Memory Map DSK5416 Status bit values: Status bit values: MEMTYPE DS=1, MEMTYPE PS=0, MP/MC=0, DROM=1, OVLY=1. MEMTYPE DS=1, MEMTYPE PS=0, MP/MC=0, DROM=1, OVLY=1. Program memory Data memory

31 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 31 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Default Memory Map DSK5416 Check memory from CCS Check memory from CCS

32 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 32 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Hardware Resources DSK5416 Four switches and LEDs Four switches and LEDs Provided for user application Provided for user application Read and driven through USER REG (IO@0000h) Read and driven through USER REG (IO@0000h)USER REGUSER REG USER REG[3..0]: drive leds USER REG[3..0]: drive leds USER REG[7..4]: read switches value. USER REG[7..4]: read switches value. Tutorial : Tutorial : Create a project (LedSwitch) that will read switch position (ON/OFF) and that will set the corresponding Leds depending on the switch value. Create a project (LedSwitch) that will read switch position (ON/OFF) and that will set the corresponding Leds depending on the switch value.

33 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 33 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 1 of 6 Create a new project called LedSwitch Create a new project called LedSwitch Modify call option in « Project>Options » and select « far » Modify call option in « Project>Options » and select « far »

34 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 34 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 2 of 6 Set a new configuration file (*.cdb) Set a new configuration file (*.cdb)

35 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 35 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 3 of 6 Save (File>Save) the new configuration file under the project directory Save (File>Save) the new configuration file under the project directory

36 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 36 Copyright © 2003 Texas Instruments. All rights reserved. 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). Add to the project two of the files generated at the previous step: the configuration file (*.cdb) and the linker command file (*.cmd).

37 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 37 Copyright © 2003 Texas Instruments. All rights reserved. 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. 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 satis- factory message after build …

38 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 38 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 6 of 6

39 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 39 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Audio Resources DSK5416 Audio CODEC (PCM3002) : Audio CODEC (PCM3002) :PCM3002 stereo codec stereo codec x64 oversampling ADC-DAC converter: x64 oversampling ADC-DAC converter: 16 bits, 48 kHz (default settings) (possible sampling frequency are 24, 12, 8, 6 kHz). 16 bits, 48 kHz (default settings) (possible sampling frequency are 24, 12, 8, 6 kHz). Use McBSP 2 for data I/F to the DSP Use 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: CODEC L (IO@0002h) and CODEC H (IO@0003h) to send command word to the codec. CODEC L (IO@0002h) and CODEC H (IO@0003h) to send command word to the codec. CODEC LCODEC H CODEC LCODEC H CODEC CLK (IO@0007h) to set the sampling frequency. CODEC CLK (IO@0007h) to set the sampling frequency. CODEC CLK CODEC CLK MISC[7] and MISC[0] (IO@0006h) for status. MISC[7] and MISC[0] (IO@0006h) for status. MISC[7]MISC[0] MISC[7]MISC[0]

40 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 40 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 Hardware Resources DSK5416 Analog Interface Input Analog Interface Input Analog Interface Output Analog Interface Output DAC outputs are send to both outputs : line and Speaker through an audio power amplifier for this one. DAC outputs are send to both outputs : line and Speaker through an audio power amplifier for this one.

41 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 41 Copyright © 2003 Texas Instruments. All rights reserved. DSK5416DSK5416 AudioTutorial DSK5416 Write a program that takes input samples from the ADC and writes back them to the DAC. 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 : Create a new project, then add this configuration file audioIO.cdb (which configures McBSP2), the function main( ) could be this one :audioIO.cdb

42 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 42 Copyright © 2003 Texas Instruments. All rights reserved. DSK 5510 DSK 5510

43 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 43 Copyright © 2003 Texas Instruments. All rights reserved. DSK 5510DSK 5510 Block Diagram DSK 5510

44 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 44 Copyright © 2003 Texas Instruments. All rights reserved. DSK 5510DSK 5510 Hardware Resources DSK 5510 TMS320VC5510 TMS320VC5510 TMS320VC5510 Internal DPLL and 24Mhz Xtal Internal DPLL and 24Mhz XtalDPLL From 6 Mhz to 200 Mhz. (CLKMD register IO@1C00h) From 6 Mhz to 200 Mhz. (CLKMD register IO@1C00h) Run at 200 Mhz after default boot. Run at 200 Mhz after default boot. 160 Kwords of on chip RAM 160 Kwords of on chip RAM 16 Kwords of on chip ROM 16 Kwords of on chip ROM 2 Timers 2 Timers 3 McBSP 3 McBSP McBSP 1 & 2 may be used for audio codec McBSP 1 & 2 may be used for audio codec 6 DMA Channel 6 DMA Channel 32 bit EMIF interface 32 bit EMIF interface 16 bit Enhanced Host Port Interface 16 bit Enhanced Host Port Interface

45 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 45 Copyright © 2003 Texas Instruments. All rights reserved. DSK 5510DSK 5510 Memory Resources DSK 5510

46 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 46 Copyright © 2003 Texas Instruments. All rights reserved. DSK 5510DSK 5510 Default Memory Map DSK 5510 Check memory from CCS Check memory from CCS

47 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 47 Copyright © 2003 Texas Instruments. All rights reserved. DSK 5510DSK 5510 Hardware Resources DSK 5510 Four switches and LEDs Four switches and LEDs Provided for user application Provided for user application Read and driven through USER REG (DATA@300000h 1 ) Read and driven through USER REG (DATA@300000h 1 )USER REGUSER REG USER REG[3..0]: drive leds USER REG[3..0]: drive leds USER REG[7..4]: read switches value. USER REG[7..4]: read switches value. Tutorial : Tutorial : Create a project (LedSwitch) that will read switch positions (ON/OFF) and that will set the corresponding LEDs depending on the switch values. Create a project (LedSwitch) that will read switch positions (ON/OFF) and that will set the corresponding LEDs depending on the switch values. 1 Because of unified memory space, it can be decoded in data or prog memory space.

48 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 48 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 1 of 6 Create a new project called LedSwitch Create a new project called LedSwitch Modify memory model in « Project>Options » and select « large memory model » Modify memory model in « Project>Options » and select « large memory model »

49 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 49 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 2 of 6 Set a new configuration file (*.cdb) Set a new configuration file (*.cdb)

50 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 50 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 3 of 6 Save (File>Save) the new configuration file in the project directory Save (File>Save) the new configuration file in the project directory

51 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 51 Copyright © 2003 Texas Instruments. All rights reserved. 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). Add to the project two of the files generated at the previous step: the configuration file (*.cdb) and the linker command file (*.cmd).

52 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 52 Copyright © 2003 Texas Instruments. All rights reserved. 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. 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 satis- factory message after build …

53 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 53 Copyright © 2003 Texas Instruments. All rights reserved. Tutorial : LedSwitch 6 of 6

54 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 54 Copyright © 2003 Texas Instruments. All rights reserved. DSK5510DSK5510 Hardware Audio Resources DSK5510 Audio CODEC (TLV320AIC23) : Audio CODEC (TLV320AIC23) :TLV320AIC23 Stereo codec with selectable line and microphone inputs and both line and headphones outputs. Stereo codec with selectable line and microphone inputs and both line and headphones outputs. x250 or x272 oversampling ADC-DAC converter: x250 or x272 oversampling ADC-DAC converter: 16 bits, 48 kHz (default settings) (possible predefined sampling frequency are 44.1, 32, 24,16, 8 kHz). 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 2 for data interface. Use McBSP 1 in SPI mode to control interface. Use McBSP 1 in SPI mode to control interface.

55 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 55 Copyright © 2003 Texas Instruments. All rights reserved. DSK5510DSK5510 Hardware Resources DSK5510 Analog Interface Input Analog Interface Input Analog Interface Output Analog Interface Output DAC outputs are send to both outputs : line and Speaker through an internal audio power amplifier for this one. DAC outputs are send to both outputs : line and Speaker through an internal audio power amplifier for this one.

56 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 56 Copyright © 2003 Texas Instruments. All rights reserved. DSK5510DSK5510 Audio Tutorial DSK5510 Write a program that takes input sample from ADC and write back them to the DAC. 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 : 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 :audioIO.cdb

57 Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 57 Copyright © 2003 Texas Instruments. All rights reserved. Further Activities Application 1 for the TMS320C5510 DSK: 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. 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. 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.


Download ppt "Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 4 Software Development Tools."

Similar presentations


Ads by Google