DSPRelated.com
Forums

Sending real-time data from target to PC

Started by vikrham May 13, 2005
Hi,

I am a student working on an audio project with the C5416. Just wanted
to check if anyone had any ideas with one problem i am facing.

I am trying to send real-time data from my C5416 DSP to a PC. FileIO
doesn't work because it interferes with the program. I tried using
RTDX but this too seems to slow down my program.

What I am doing: For every frame of 8words received via McBSP, an
interrupt is triggered and here i try to send the data to the PC.

Is there any other way for me to record my data to the PC without
interrupting my program?

Any help would be deeply appreciated

Regards

- Vikrham


vikrham, i had a simular situation:
you can setup a so-called softuart.
you can setup a timer interrupt and toggle an i/o pin an make rs232 in this
way.
with a level converter, you can put it in to a serial terminal on a pc.
set up a ring uffer that is emptied by the interrupt, and is filld by info
from your program.
the interrupt only needs to take one byte, and toggle the pin for hi/low
bits.
the interupt don't!!! have to wait , with one extra start/stop bit, this can
work opto 115200, depending on the amount of info you need to exchagne.
this is only a from dsp to pc connection, without any data check.
i used this for debug only.

if this is not clear and you need mor details, let me konw

regards,
derk

> -----Oorspronkelijk bericht-----
> Van: c54x@c54x... [mailto:c54x@c54x...]Namens vikrham
> Verzonden: vrijdag 13 mei 2005 18:34
> Aan: c54x@c54x...
> Onderwerp: [c54x] Sending real-time data from target to PC > Hi,
>
> I am a student working on an audio project with the C5416. Just wanted
> to check if anyone had any ideas with one problem i am facing.
>
> I am trying to send real-time data from my C5416 DSP to a PC. FileIO
> doesn't work because it interferes with the program. I tried using
> RTDX but this too seems to slow down my program.
>
> What I am doing: For every frame of 8words received via McBSP, an
> interrupt is triggered and here i try to send the data to the PC.
>
> Is there any other way for me to record my data to the PC without
> interrupting my program?
>
> Any help would be deeply appreciated
>
> Regards
>
> - Vikrham