Converting Compiled Matlab codes to DSP

5 ビュー (過去 30 日間)
Seyedfoad Taghizadeh
Seyedfoad Taghizadeh 2014 年 1 月 6 日
コメント済み: Walter Roberson 2014 年 1 月 6 日
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
Seyedfoad Taghizadeh
Seyedfoad Taghizadeh 2014 年 1 月 6 日
The DSP is eZdsp F28335.

サインインしてコメントする。

採用された回答

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
Seyedfoad Taghizadeh 2014 年 1 月 6 日
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 Center および File ExchangeC Code Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by