Converting Compiled Matlab codes to DSP

4 次查看(过去 30 天)
Hi,
I have designed a control system with Matlab coding and then compiled them to C language. Because I want to implement the system on a DSP. The system has three inputs and four outputs. When the codes are applied on DSP the input signals are monitored by DSP and the new output signals will be generated.
I am going to convert the C codes to a DSP. Now I have three questions:
- How I can convert the C codes manually on DSP.
- How I can tell to the DSP that which input goes for which pin on the DSP board. and also for outputs as well.
- In the software, for test, I considered three fixed values for input signals. When this system is applied on DSP, the input signals are not fixed and they are changed continuously and subsequently variable outputs will be generated by the system. Please let me know how I can make the input signals in coding when I want to convert it to DSP.
Highly appreciated if you give me your valuable answers.
  2 个评论
Walter Roberson
Walter Roberson 2014-1-6
Which DSP?
Generally speaking, most DSP manufacturers offer C compilers able to target their chips. For example for some of the TI DSPs there is http://www.ti.com/tool/tmdsdsk6713

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2014-1-6
Software Features
eZdsp™ F28335 Code Composer Studio DSK Tools. (Includes ‘C’ compiler, Assembler, Linker, Debugger)
Texas Instruments’ F28335 header files and example software
Thus the kit came with a C compiler. The compiler is probably MS Windows based.
How I can tell to the DSP that which input goes for which pin on the DSP board.
There are the ADCINA* and ADCINB* series of pins; that board has the B series connected to J5 and the A series connected to J9. See http://c2000.spectrumdigital.com/ezf28335/docs/ezdspf28335c_techref.pdf . I do not know nearly enough about Simulink to tell you how to associate particular inputs with particular physical pins.
  2 个评论
Seyedfoad Taghizadeh
Thanks a lot for the reply, According to your answer I guess the input signals should be connected to analog inputs P5 and P9. But I still do not know how I can relate them in the coding and also how I can indicate them as variable inputs before compiling,
By the way, thanks a lot for taking your time,
Regards Foad
Walter Roberson
Walter Roberson 2014-1-6
J5 and J9 are jumper blocks, each of which has a number of individual pins. The pins are known to the DSP as ADCINA0 through ADCINA9 and ADCINB0 through ADCINB9 .

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 C Code Generation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by