hi, While receiving data from the codec AD535, the receiver ready bit of Mcbsp0_SPCR register never seem to be set. Although the following code was working okay, but now apparently, the receiver is never ready,as a consequence "temp" is always zero.Any suggestions as why the the ready bit is low, even if external signal has been applied to codec's A/D. code by Ralph Chassiang ====================================================================== int mcbsp0_read() { int temp; if (polling) { temp = *(unsigned volatile int *)McBSP0_SPCR & 0x2; while ( temp == 0) temp = *(unsigned volatile int *)McBSP0_SPCR & 0x2; } temp = *(unsigned volatile int *)McBSP0_DRR; return temp; } ====================================================================== |
Mcbsp problem
Started by ●July 23, 2003