DSPRelated.com
Forums

DSK 6711 and spectrum trougth LPT ?/ RS232 ?/ Audio out ?

Started by fran...@yahoo.it March 27, 2010
My project for dsk6711 is to build a system that do fft of a signal and visualize graph of modulo and phase.
The core of application is done, so i have fft modulo and phase of the samples. Now the visualization: i have some ideas:

- RS232: but how i connect it to DSK6711? There is not a port like in the DSK5402. I know there are 2 McBsp 0 and 1. The codec use only one, McBsp0 and the control port, how i connect tx and rx cables of 232 connector? Maybe a Max232 for converting TTL values but, where I connect Max 232. I know there is an addon card but I am in an University, the DSK is not mine...

-Audio out: yeah, I could send the spectrum using DAC in codec, how if would be a sine, simply with mcbsp0_write( sample ) or something like it, in the same Interroupt Service Routine in which i read sample and compute fft? fft is when the array of 1024/2048/4096 samples is complete, if not i put sample with sample=mcbsp_read() in the array, and i have thouht that during this part i can write out my data. I've tryed this way but dsp don't run. Maybe I have made mistake, but the code without write work well, maybe I can't read and write from codec in the same ISR? But i have seen in many examples that is possible, codec is full-duplex!

-LPT : the problem is that code composer use the lpt. My dreams is to eliminate code composer, dsk can run program stored in flash? I have seen i have to use RTDX or HSRTDX, could you say me a complete example eviroment ( host prgram and target code to run for it) to learn how to use this? THere is not and index in the dsk examples i feel vwry imbarassd!

I wish somebody help me replyng me. Bye!

_____________________________________
Franz-

> -LPT : the problem is that code composer use the lpt. My dreams is
> to eliminate code composer, dsk can run program
> stored in flash? I have seen i have to use RTDX or HSRTDX, could
> you say me a complete example eviroment ( host prgram
> and target code to run for it) to learn how to use this?

Did you see my previous e-mail? I sent you a link of software that can talk to the DSK 6711 directly without CCS.

-Jeff

> My project for dsk6711 is to build a system that do fft of a signal and visualize graph of modulo and phase.
> The core of application is done, so i have fft modulo and phase of the samples. Now the visualization: i have some
> ideas:
>
> - RS232: but how i connect it to DSK6711? There is not a port like in the DSK5402. I know there are 2 McBsp 0 and 1.
> The codec use only one, McBsp0 and the control port, how i connect tx and rx cables of 232 connector? Maybe a Max232
> for converting TTL values but, where I connect Max 232. I know there is an addon card but I am in an University, the
> DSK is not mine...
>
> -Audio out: yeah, I could send the spectrum using DAC in codec, how if would be a sine, simply with mcbsp0_write(
> sample ) or something like it, in the same Interroupt Service Routine in which i read sample and compute fft? fft is
> when the array of 1024/2048/4096 samples is complete, if not i put sample with sample=mcbsp_read() in the array, and i
> have thouht that during this part i can write out my data. I've tryed this way but dsp don't run. Maybe I have made
> mistake, but the code without write work well, maybe I can't read and write from codec in the same ISR? But i have
> seen in many examples that is possible, codec is full-duplex!
>
> -LPT : the problem is that code composer use the lpt. My dreams is to eliminate code composer, dsk can run program
> stored in flash? I have seen i have to use RTDX or HSRTDX, could you say me a complete example eviroment ( host prgram
> and target code to run for it) to learn how to use this? THere is not and index in the dsk examples i feel vwry
> imbarassd!
>
> I wish somebody help me replyng me. Bye!

_____________________________________
Franz-

> Hi jeff! I have reply you in the other thread where you have
> very gently sent me the link, but yahoo group did not
> send my reply yet, It seems that every mail must be validated
> by someone, and i thind that one or two of my reply did
> not validated but I don't know why, I haven't say nothing of
> bad, or incorrect. Misterys of the life...I wish this
> message arrives in time!!! So, i have written that I don't
> understand how to implement that program beacuse, for what
> i have understand, that program wants to load another .out in
> the target.I have seen in the ftp archive that there is
> a source code of the host program but sincerely i have not
> read a line yet. I have visited the company site of that
> program, and i have understand that it's an host software
> about specturm/ in time analisys of the audio signal [ that
> is essentially what i have to do but creating my own code ].
> But is a black box , thats works but closed, for the
> target app. Could you give me some
> information about that software and how can i implement it?
> I tell you my objectives: I'd like to caputre audio
> signal, do fft and vview a Bode grapfh, on the pc host. The
> part involving fft is done only the visualization is
> bringing me crazy.
> Excuse me if I don't understand immediatly what you have
> maybe yet say to me :(
> Have a good day!

I haven't looked at the DirectDSP - DSK C6711 Reference Guide in a long time, so I took a look today and I agree there
should be a section in there "how to use with your DSP application". Here are some brief notes:

1) c6x11hi.out - this is the DirectDSP "talker" program. You need that one. The talker is the "DSP side" of the
board driver (other side being WinNT/WinXP driver). On C6x devices, the HPI cannot see all internal memory and/or
mem-mapped register locations, so the talker is used to give the host complete visibility.

2) tmsc6x11.out - this is a sample application DSP program. Example only.

3) You can change the Dscope32MFC.cpp file (and other .cpp files if needed) as needed, using Microsoft Visual Studio.
You can download and run your .out file (instead of tmsc6x11.out), you can change the user-interface, you can access
DSP memory as needed, etc. Look for an API "DSLoadFileProcessor" to see where application DSP code is being
downdloaded.

4) When you create your DSP application, you want modify your CCS project .cmd file to reserve a section in DSP memory
for the talker; i.e. you don't want your code, when it is downloaded, to step on the talker (which is already residing
in DSP mem, having been loaded when the driver was first opened by WinXP). On Monday, I will upload example .cmd
files to the ftp://ftp.signalogic.com/software/DirectDSP_DSK/ page, one for the talker and one for an example
application. Then you can see:

-what mem the talker uses (a small amount)

-how to reserve-out talker mem when CCS builds
your application

-Jeff
> --- Dom 28/3/10, Jeff Brower ha scritto:
>
>> Da: Jeff Brower
>> Oggetto: Re: [c6x] DSK 6711 and spectrum trougth LPT ?/ RS232 ?/ Audio out ?
>> A: f...@yahoo.it
>> Cc: c...
>> Data: Domenica 28 marzo 2010, 06:43
>> Franz-
>>
>> > -LPT : the problem is that code composer use the lpt.
>> My dreams is
>> > to eliminate code composer, dsk can run program
>> > stored in flash? I have seen i have to use RTDX or
>> HSRTDX, could
>> > you say me a complete example eviroment ( host prgram
>> > and target code to run for it) to learn how to use
>> this?
>>
>> Did you see my previous e-mail? I sent you a link of
>> software that can talk to the DSK 6711 directly without
>> CCS.
>>
>> -Jeff
>>
>> > My project for dsk6711 is to build a system that do
>> fft of a signal and visualize graph of modulo and phase.
>> > The core of application is done, so i have fft modulo
>> and phase of the samples. Now the visualization: i have
>> some
>> > ideas:
>> >
>> > - RS232: but how i connect it to DSK6711? There is not
>> a port like in the DSK5402. I know there are 2 McBsp 0 and
>> 1.
>> > The codec use only one, McBsp0 and the control port,
>> how i connect tx and rx cables of 232 connector? Maybe a
>> Max232
>> > for converting TTL values but, where I connect Max
>> 232. I know there is an addon card but I am in an
>> University, the
>> > DSK is not mine...
>> >
>> > -Audio out: yeah, I could send the spectrum using DAC
>> in codec, how if would be a sine, simply with mcbsp0_write(
>> > sample ) or something like it, in the same Interroupt
>> Service Routine in which i read sample and compute fft? fft
>> is
>> > when the array of 1024/2048/4096 samples is complete,
>> if not i put sample with sample=mcbsp_read() in the array,
>> and i
>> > have thouht that during this part i can write out my
>> data. I've tryed this way but dsp don't run. Maybe I have
>> made
>> > mistake, but the code without write work well, maybe I
>> can't read and write from codec in the same ISR? But i have
>> > seen in many examples that is possible, codec is
>> full-duplex!
>> >
>> > -LPT : the problem is that code composer use the lpt.
>> My dreams is to eliminate code composer, dsk can run
>> program
>> > stored in flash? I have seen i have to use RTDX or
>> HSRTDX, could you say me a complete example eviroment ( host
>> prgram
>> > and target code to run for it) to learn how to use
>> this? THere is not and index in the dsk examples i feel
>> vwry
>> > imbarassd!
>> >
>> > I wish somebody help me replyng me. Bye!

_____________________________________
Hi jeff! I have reply you in the other thread where you have very gently sent me the link, but yahoo group did not send my reply yet, It seems that every mail must be validated by someone, and i thind that one or two of my reply did not validated but I don't know why, I haven't say nothing of bad, or incorrect. Misterys of the life...I wish this message arrives in time!!! So, i have written that I don't understand how to implement that program beacuse, for what i have understand, that program wants to load another .out in the target.I have seen in the ftp archive that there is a source code of the host program but sincerely i have not read a line yet. I have visited the company site of that program, and i have understand that it's an host software about specturm/ in time analisys of the audio signal [ that is essentially what i have to do but creating my own code ]. But is a black box , thats works but closed, for the target app. Could you give me some
information about that software and how can i implement it? I tell you my objectives: I'd like to caputre audio signal, do fft and vview a Bode grapfh, on the pc host. The part involving fft is done only the visualization is bringing me crazy.
Excuse me if I don't understand immediatly what you have maybe yet say to me :(
Have a good day!
Franz

--- Dom 28/3/10, Jeff Brower ha scritto:

> Da: Jeff Brower
> Oggetto: Re: [c6x] DSK 6711 and spectrum trougth LPT ?/ RS232 ?/ Audio out ?
> A: f...@yahoo.it
> Cc: c...
> Data: Domenica 28 marzo 2010, 06:43
> Franz-
>
> > -LPT : the problem is that code composer use the lpt.
> My dreams is
> > to eliminate code composer, dsk can run program
> > stored in flash? I have seen i have to use RTDX or
> HSRTDX, could
> > you say me a complete example eviroment ( host prgram
> > and target code to run for it) to learn how to use
> this?
>
> Did you see my previous e-mail? I sent you a link of
> software that can talk to the DSK 6711 directly without
> CCS.
>
> -Jeff
>
> > My project for dsk6711 is to build a system that do
> fft of a signal and visualize graph of modulo and phase.
> > The core of application is done, so i have fft modulo
> and phase of the samples. Now the visualization: i have
> some
> > ideas:
> >
> > - RS232: but how i connect it to DSK6711? There is not
> a port like in the DSK5402. I know there are 2 McBsp 0 and
> 1.
> > The codec use only one, McBsp0 and the control port,
> how i connect tx and rx cables of 232 connector? Maybe a
> Max232
> > for converting TTL values but, where I connect Max
> 232. I know there is an addon card but I am in an
> University, the
> > DSK is not mine...
> >
> > -Audio out: yeah, I could send the spectrum using DAC
> in codec, how if would be a sine, simply with mcbsp0_write(
> > sample ) or something like it, in the same Interroupt
> Service Routine in which i read sample and compute fft? fft
> is
> > when the array of 1024/2048/4096 samples is complete,
> if not i put sample with sample=mcbsp_read() in the array,
> and i
> > have thouht that during this part i can write out my
> data. I've tryed this way but dsp don't run. Maybe I have
> made
> > mistake, but the code without write work well, maybe I
> can't read and write from codec in the same ISR? But i have
> > seen in many examples that is possible, codec is
> full-duplex!
> >
> > -LPT : the problem is that code composer use the lpt.
> My dreams is to eliminate code composer, dsk can run
> program
> > stored in flash? I have seen i have to use RTDX or
> HSRTDX, could you say me a complete example eviroment ( host
> prgram
> > and target code to run for it) to learn how to use
> this? THere is not and index in the dsk examples i feel
> vwry
> > imbarassd!
> >
> > I wish somebody help me replyng me. Bye!
>
>


_____________________________________