DSPRelated.com
Forums

PC to DSP communication

Started by josam April 23, 2013
Hi All,

I am quite new to DSP programming. I am using DSK6416 and need to pass a
text file of integers from my pc to the dsp board in order to do some
processing with this data.

The result must than be returned from the dsp board to the PC in order to
output the result. 

If any one of you could help me how to just write 1 number do a
multiplication on the DSP and return the answer to the pc that would be
great.

Any ideas please?


On 4/23/2013 8:21 PM, josam wrote:
> Hi All, > > I am quite new to DSP programming. I am using DSK6416 and need to pass a > text file of integers from my pc to the dsp board in order to do some > processing with this data. > > The result must than be returned from the dsp board to the PC in order to > output the result. > > If any one of you could help me how to just write 1 number do a > multiplication on the DSP and return the answer to the pc that would be > great. > > Any ideas please?
This is udone by JTAG debugger b
On 4/23/2013 8:21 PM, josam wrote:
> Hi All, > > I am quite new to DSP programming. I am using DSK6416 and need to pass a > text file of integers from my pc to the dsp board in order to do some > processing with this data. > > The result must than be returned from the dsp board to the PC in order to > output the result.
This is trivially done via JTAG debugger native to CCS. Just write code in plain C using <stdio> functions. It does all low level work for you. Vladimir Vassilevsky DSP and Mixed Signal Designs www.abvolt.com
On Tuesday, April 23, 2013 9:21:43 PM UTC-4, josam wrote:
> Hi All, > > > > I am quite new to DSP programming. I am using DSK6416 and need to pass a > > text file of integers from my pc to the dsp board in order to do some > > processing with this data. > > > > The result must than be returned from the dsp board to the PC in order to > > output the result. > > > > If any one of you could help me how to just write 1 number do a > > multiplication on the DSP and return the answer to the pc that would be > > great. > > > > Any ideas please?
A couple ways: 1. Use fopen/fread/fwrite (can be slow) 2. Load your data into memory from a PC file, write result from mem to PC file using debugger command 3. Put your input data in a .C file, compile, write result from mem to PC file using debugger command I would do number 1. John
>On Tuesday, April 23, 2013 9:21:43 PM UTC-4, josam wrote: >> Hi All, >> >> >> >> I am quite new to DSP programming. I am using DSK6416 and need to pass
a
>> >> text file of integers from my pc to the dsp board in order to do some >> >> processing with this data. >> >> >> >> The result must than be returned from the dsp board to the PC in order
to
>> >> output the result. >> >> >> >> If any one of you could help me how to just write 1 number do a >> >> multiplication on the DSP and return the answer to the pc that would be >> >> great. >> >> >> >> Any ideas please? > >A couple ways: > >1. Use fopen/fread/fwrite (can be slow) >2. Load your data into memory from a PC file, write result from mem to PC
file using debugger command
>3. Put your input data in a .C file, compile, write result from mem to PC
file using debugger command
> >I would do number 1. > >John >
John and all, I have a C source file which reads data from a text file into an array. Would I be able to use the same code or do I need something else? I am still stuck in this situations, because I read about RTDX protocol which seems to be quite complicated, and I am not sure that I have to go in much detail. Please can you a bit more specific... Thanks, Josef