我修改了28377的sci例程,请大神看一下程序是否有问题,sci发送没有问题,但接收时每次只能接收一位,其他位不是错的,就是乱码。
附件是我改的程序,在线等。
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.
我修改了28377的sci例程,请大神看一下程序是否有问题,sci发送没有问题,但接收时每次只能接收一位,其他位不是错的,就是乱码。
附件是我改的程序,在线等。
对不起回复晚了,我的程序里对读字符的函数定义的循环如下:
do {
ReceivedChar = ScicRegs.SCIRXBUF.all;
// Echo character back
scia_xmit(ReceivedChar);
GpioDataRegs.GPBSET.bit.GPIO56=1;
i++;
}while(ScicRegs.SCIFFRX.bit.RXFFST != 0);/**/ LoopCount++; }
我觉的这里的判断应该是正确的,同样的例子在28335里用过。关于字和字符的问题还希望能帮我指下是哪个量的问题,谢谢!