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.

SCI接收数据



我用串行接口给SCI发十六位的数据(0x11 0x12),出现这样的接收结果Sci_VarRx[0]=0x11,Sci_VarRx[1]=0xFF,感觉是因为 SciaRegs.SCIRXBUF.all为八位的原因,请问怎么解决,谢谢!

for(;;)
{
while(SciaRegs.SCIFFRX.bit.RXFFST !=1) { }
ReceivedChar = SciaRegs.SCIRXBUF.all;
Sci_VarRx[i]= ReceivedChar;
i++;
ReceivedChar=0;
}