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.

TMS570LC4357: 串口SCI4发送数据的时候,第一个字节有问题

Part Number: TMS570LC4357


 你好:

    我在使用4357芯片的SCI4口时,遇到了一个问题:

    1.当我用任意一个串口上位机去接收来自芯片SCI4口发送的数据时,第一个字节总是收不到,例如4357发送0,1,2...50,那么上位机只能收到1,2....50,第一个0就收不到,不论是16进制还是ASCII。

    2.我没有使用中断去进行收发,只是使用了polling,其中发送的函数也是demo代码里面的,我尝试了几个api,结果都是这样所以问题出在哪呢?

                                                     

U32 UART_txByte (sciBASE_t *sci, I8 c)
{
  while (!(sci->FLR & 0x800));
    sci->TD = c;
  return 0;
}

    3. 我的SCI配置是115200,1 stop bit,无奇偶,无flow,8bits数据长,上位机同理