Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124337

Forum Post: Need some help with non-spi McBsp on DM6437

$
0
0

Hi,

I'm writing a code on DM6437 using the McBsp in a non-SPI mode to communicate with AIC23 external chip.

I managed to make everything work using loopback between DXR and DRR, using a very simple code based on one of the examples, using the registers:

Uint32 data = 0x0;

while (1)
{
//poll receiver is ready
while(CSL_FEXT(mcbspRegs->SPCR,MCBSP_SPCR_RRDY)
!= CSL_MCBSP_SPCR_RRDY_YES);

//read receive register
data = mcbspRegs->DRR;

//poll transmitter ready
while(CSL_FEXT(mcbspRegs->SPCR,MCBSP_SPCR_XRDY)
!= CSL_MCBSP_SPCR_XRDY_YES);

//write to transmit register
mcbspRegs->DXR = data;
}

///////////////////////////////////////////////////

I need to add support for EDMA3, and I'm looking for an example using mcBsp with EDMA3 with no success, using psp drivers/GIO.

Where can I get a small example?

Thanks.


Viewing all articles
Browse latest Browse all 124337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>