UART本身可以 while (!(UCA1IFG&UCTXIFG)); 判断发送移出了缓冲区。但485芯片还没有真正发送完成,如果这个时候切换发送和接收 会出现发送不全的问题,高人们怎么解决啊?
另外 while ((UCA1STAT & UCBUSY) == 1); 是干什么用的?
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.