今天看到一个MCBSP的测试程序,
//Wait until the transmitter is ready for a sample, then write to it
while (!MCBSP_xrdy(hMcbsp));
MCBSP_write(hMcbsp,y);
//Wait until the value is received, then read it
while (!MCBSP_rrdy(hMcbsp));
x = MCBSP_read(hMcbsp);
当MCBSP_xrdy(hMcbsp)为0时,表明数据正在写入DXR中,再将y写入hMcbsp,是否会产生冲突?
当MCBSP_rrdy(hMcbsp)为0时,表明DRR中的数据已经被读取,x = MCBSP_read(hMcbsp)语句如何理解?
整个MCBSP的收发过程是如何运行的,我理解反了?
谢谢,请高手指导指导。
Shine:
请问你用的是哪款DSP?
Gordon Lee:
回复 Shine:
您好,使用的是TMS320C6416TGLZ,最近在调试MCBSP口,对这个有点疑惑,麻烦您指导一哈。谢谢咯