This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

调试McASP时RBUF和XBUF读写数据的问题



我配置SRCTL0为接收,SRCTL6为发送:

mcasp0Regs->SRCTL0 = 0x02;

mcasp0Regs->SRCTL6 = 0x01;

由于在RBUF0中数据始终为0,于是就直接往RBUF0和XBUF6中写数据,有两个问题:

1、程序中我直接往RBUF0里写数据,无法写入;

2、往XBUF6中写数据时,相应的RBUF6中的数据也改变了。还有就是我对接收RFMT寄存器中的右移循环设置为右移8位,但是为什么我在往XBUF6中写数据时,memory中看到的数据也右移了呢?