Converting Compiled Matlab codes to DSP
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Seyedfoad Taghizadeh
il 6 Gen 2014
Commentato: Walter Roberson
il 6 Gen 2014
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
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
Risposta accettata
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
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 .
Più risposte (0)
Vedere anche
Categorie
Scopri di più su C Code Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!