DSPRelated.com
Forums

more mcbsp questions

Started by bsd_mike December 2, 2004


I am using the TI sample code for the MCBSP described in their
T1 interface book.

I am getting receive interrupts for every frame, but no
transmit interrupts.

I am using MCBSP0 and DMA channels 0 and 1.
Anybody have any good guesses of what I should check?

Thanks a lot.
-Mike




bsd_mike wrote:

>
>
> I am using the TI sample code for the MCBSP described in their
> T1 interface book.
>
> I am getting receive interrupts for every frame, but no
> transmit interrupts.
>
> I am using MCBSP0 and DMA channels 0 and 1.
> Anybody have any good guesses of what I should check?
>
> Thanks a lot.
>

Make sure TX has been taken out of reset, and make sure the DMA is setup
for the right TX event. TX and RX reset can be individually controlled.
Also check the interrupt mask to make sure you have the correct one
selected, as well as the 'alternate functions' if that interrupt is dual
purpose (I don't have the doc right in front of me, but some of the
interrupts can be used for DMA or for McBSP events but not both and
there is a select bit that controls this).

Oh, and you need to stuff something into the TX data register to get it
to transmit, the interrupt is actually a transmit finished interrupt and
will never go off if you haven't sent anything.

Brian --
-----------------
Brian C. Lane (W7BCL) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design