Converting Compiled Matlab codes to DSP

조회 수: 4 (최근 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 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