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.