Forums

RTDX with HWI

Started by jaleitao2003 July 18, 2003
Hi,

I am building a program which captures data from the PCM3003 audio
card, by means of HWIs, and sends it to a PC, via JTAG, when 512
samples are available. I am using the TMSC6711 DSP.

Do the HWI interfere with the RTDX? When I try to use interrupt-
driven RTDX, the program freezes. If I disable the HWI, RTDX works
fine. I tried RTDX polling but I do not get the timings right, since
I have to transmit 512 samples.

Below is an attempt to send the data using RTDX, all at once (1
vector). I also thoughy of sending samples 1-by-1, generating a
RTDX_write() for each one, but I guess the performance will be not
so good... RTDX_enableOutput(&ochan);

for (i=0; i<512; i++)
{
//message[] is a size 512 buffer

RTDX_write(&ochan, message, sizeof(message));

while ( RTDX_writing != NULL )
{
#if RTDX_POLLING_IMPLEMENTATION
RTDX_Poll();
#endif
}
}

Can anyone give me a help on this?

Thank you!

Regards,

Andre



Andre,
 
Interrupts do affect RTDX.  Your code looks similar to the "RTDX Target Code for Section 1, Lesson 2" of the tutorial.  I suggest the following:
 
1. Check out the TI tutorials.
2. Read the RTDX chapter in the Help file.
3. Search the 'ti' directory [and subdirectories] for all '.c' files containing "RTDX_write".
 
mikedunn


jaleitao2003 <j...@clix.pt> wrote:
Hi,

I am building a program which captures data from the PCM3003 audio
card, by means of HWIs, and sends it to a PC, via JTAG, when 512
samples are available. I am using the TMSC6711 DSP.

Do the HWI interfere with the RTDX? When I try to use interrupt-
driven RTDX, the program freezes. If I disable the HWI, RTDX works
fine. I tried RTDX polling but I do not get the timings right, since
I have to transmit 512 samples.

Below is an attempt to send the data using RTDX, all at once (1
vector). I also thoughy of sending samples 1-by-1, generating a
RTDX_write() for each one, but I guess the performance will be not
so good...RTDX_enableOutput(&ochan);

for (i=0; i<512; i++)
{
//message[] is a size 512 buffer

RTDX_write(&ochan, message, sizeof(message));

while ( RTDX_writing != NULL )
{
#if RTDX_POLLING_IMPLEMENTATION
RTDX_Poll();
#endif
}
}

Can anyone give me a help on this?

Thank you!

Regards,

Andre
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to c...@yahoogroups.com

To Post: Send an email to c...@yahoogroups.com

To Leave: Send an email to c...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com



Hi,

I am using the c6711 with PCM3003 audio daughter card, cc2.2.
I am having some problems with RTDX (XDS510PP): if I enable HWI to
get the samples from the daughtercard then I must use the polling
implementation on RTDX, which is far much poorer that the interrupt
implementation. The data rate is too low and I can't get real-time
analysis in good conditions. Moreover, I can't use input from RTDX.
All these problems vanish if I disable the HWI for the
daughtercard...

Can anyone help on this? If anyone has a simple program I would
appreciate it very much. I am stuck on this problem from some time
now...

Regards,

Andre Leitao