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.

28335串口发送FIFO的使用

Other Parts Discussed in Thread: CONTROLSUITE

最近做28335串口发送时,使用了串口发送FIFO功能,但找不到将要发送的数据写入FIFO的寄存器;

找到的资料中是下面这种方式,程序会在while中判断发送是否完成,要是发送的数据太多肯定会在这里while卡很久,这样是不行的!!!

void scia_xmit(int a)
{
while (SciaRegs.SCIFFTX.bit.TXFFST != 0) {}
SciaRegs.SCITXBUF=a;
}

有没有其他方法,比如将10个byte的数据一次全部写入FIFO呢??

希望高手不吝赐教!!

谢谢