1596 views|0 replies

6570

Posts

0

Resources
The OP
 

How to use the DSP library of TMS320C55X [Copy link]

1. Copy the DSPLIB target library file 55xdsp.lib or 55xdspx.lib to the 5500 runtime support library - ×××\ti\c5500\cgtools\lib folder, so that 55xdsp.lib can be found during compilation and linking. It should be noted that the memory configuration modes of 55xdsp.lib and 55xdspx.lib are different. The former is small page mode, and the latter is large page mode. 2. Copy all .h files in the include folder under the DSPLIB directory to the include folder of the 5500 runtime support library. 3. Add library files to the project file: 1) If you choose the 55xdsp.lib library: In the project, select build option->complier->Advanced->Memory Mode as Small; and add the two library files rts55.lib and 55xdsp.lib to the project file, or select rts55.lib;55xdsp.lib in build option->linker->Libraryies->Include Libraries; 2) If you choose the 55xdspx.lib library: In the project, select build option->complier->Advanced->Memory Mode as large; and add the two library files rts55x.lib and 55xdspx.lib to the project file, or select rts55x.lib;55xdspx.lib in build option->linker->Libraryies->Include Libraries; 4. In the project you want to calland < tms320.h>. 5. By consulting the description and examples of the functions to be called (the examples are in ×××\\ti\c5500\ \dsplib\EXAMPLES), write the program. 6. Some command descriptions have questions about memory allocation in cmd, which will affect the operation speed when calling commands. You need to modify them according to the examples before using them. 7. After the compilation and linking are successful, it is sometimes recommended to use the memory viewing mode when viewing a specific variable. DSPLIB function: FIR ushort oflag = fir (DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh) Parameter definition: x: points to the nx real numbers of the input h: points to the nh FIR filter coefficients of the input r: points to the nx real number results of the output, you can use the input parameter x (r = x) dbuffer: points to the delay buffer, the length is nh+2 nx: the number of input and output parameters nh: the number of FIR filter parameters oflag: overflow flag, 1 means that the intermediate result or the final result of the filter has a 32-bit overflow, and 0 means no overflow. 1. Copy the DSPLIB target library file 55xdsp.lib or 55xdspx.lib to the 5500 runtime support library - ×××\ti\c5500\cgtools\lib folder, so that you can find 55xdsp.lib when compiling and linking. It should be noted that the memory configuration modes of 55xdsp.lib and 55xdspx.lib are different. The former is small page mode, and the latter is large page mode. 2. Copy all .h files in the include folder under the DSPLIB directory to the include folder of the 5500 runtime support library. 3. Add library files to the project file: 1) If the 55xdsp.lib library is selected: In the project, select build option->complier->Advanced->Memory Mode as Small; and add the two library files rts55.lib and 55xdsp.lib to the project file, or select rts55.lib;55xdsp.lib in build option->linker->Libraryies->Include Libraries;

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list