Converting Compiled Matlab codes to DSP

3 visualizzazioni (ultimi 30 giorni)
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 Commenti
Walter Roberson
Walter Roberson il 6 Gen 2014
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 il 6 Gen 2014
The DSP is eZdsp F28335.

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 6 Gen 2014
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 Commenti
Seyedfoad Taghizadeh
Seyedfoad Taghizadeh il 6 Gen 2014
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 il 6 Gen 2014
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 .

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by