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.

TL16C752B-EP: 如何及时判断发送数据完成。

Part Number: TL16C752B-EP


如题,在使用TL16C752B-EP时,怎样及时的判断发送数据的完成。

目前采用了发送中断的方式,主程序中查询方式判断发送完成,这样不能及时判断发送完成。

最好能在中断中,判断发送完成(不是循环查询LSR寄存器),

发送中断的中断原因可能有两个,

一个是空余缓冲器大于设定的TX FIFO触发值;

另一个是发送缓冲器空了。

在中断中,如何区分这两个中断。以便于在中断中及时判断发送数据完成了。