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.

TMS320F28335串口与modbus协议栈通信

( void )xMBPortSerialGetByte( ( CHAR * ) & ucByte );

usRcvBufferPos = 0;
ucRTUBuf[usRcvBufferPos++] = ucByte;

其中

xMBPortSerialGetByte( CHAR * pucByte )
{
*pucByte = ScicRegs.SCIRXBUF.all;
return TRUE;
}

但是串口接收的数据一直没办法赋值到数组ucRcvBuf数组里面,这是为什么?

SCIRXBUF是8位还是16位?在28335里 unsigned int是16位?