DSPRelated.com
Forums

McBSP SPI mode on 5416 DSK

Started by bartzuid March 27, 2003
I am using the mcbsp0 to control a spi device. I have used
the following functions:

void InitSPI(void)
{ mhMcbsp = MCBSP_open(MCBSP_PORT0, MCBSP_OPEN_RESET);
MCBSP_config(mhMcbsp, &Config);
} void sendSPI(void)
{ MCBSP_start(mhMcbsp, MCBSP_RCV_START | MCBSP_XMIT_START, 0 );
while (!MCBSP_xrdy(mhMcbsp));
MCBSP_write32(mhMcbsp,xmt);
} I am using the chip support library. The mcbsp is
configured as a spi master using the fsg and internal
clocks. The program keeps hanging on the xrdy and rrdy
checks. Any ideas why?