I am using the mcbsp to control a spi device. i have the following functions: unsigned char spi_Receive () { MCBSP_start(hMcbsp0,MCBSP_RCV_START|MCBSP_SRGR_START|MCBSP_SRGR_FRAMESYNC,MCBSP_\ SAMPLE_RATE_DELAY_DEFAULT); while (!MCBSP_rrdy(hMcbsp0)); //(****) return (MCBSP_read16 (hMcbsp0)); } void spi_Send (unsigned char data) { while(!MCBSP_xrdy(hMcbsp0)); //(****) MCBSP_write16 (hMcbsp0,data); MCBSP_start(hMcbsp0,MCBSP_XMIT_START|MCBSP_SRGR_START|MCBSP_SRGR_FRAMESYNC,MCBSP\ _SAMPLE_RATE_DELAY_DEFAULT); } 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? |
mcbsp xrdy/rrdy
Started by ●September 9, 2002