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.

IFG2的UCA0TXIFG是在置1时允许向UCA0TXBUF写入数据还是置0时允许向UCA0TXBUF写入数据。?



while(!(IFG2&UCA0TXIFG);

UCA0TXBUF=Tx_Data_Num;

我觉得这段程序是在UCA0TXIFG置0时可以向UCA0TXBUF写入要发送的数据,但是书上写UCA0TXIFG置0时,表示发送部件正在发送,不允许向UCA0TXBUF写入数据。

请问这是为什么?