新手入门
- 积分
- 15
- 金钱
- 15
- 注册时间
- 2018-11-8
- 在线时间
- 3 小时
|
1金钱
现附上相关标志位信息,试过,好像不可以直接往STAT写0来清除TC位,提供的另外两种方法可以清除但是会影响后面的发送。
Transmission Complete Flag
TC is cleared when there is a transmission in progress or when a preamble or break character is loaded.
TC is set when the transmit buffer is empty and no data, preamble, or break character is being
transmitted. When TC is set, the transmit data output signal becomes idle (logic 1). TC is cleared by
writing to LPUART_DATA to transmit new data, queuing a preamble by clearing and then setting
LPUART_CTRL[TE], queuing a break character by writing 1 to LPUART_CTRL[SBK].
0b - Transmitter active (sending data, a preamble, or a break).
1b - Transmitter idle (transmission activity complete).
Transmitter Enable
Enables the LPUART transmitter. TE can also be used to queue an idle preamble by clearing and then
setting TE. When TE is cleared, this register bit will read as 1 until the transmitter has completed the
current character and the TXD pin is tristated.
A single idle character can also be queued by writing to the transmit FIFO with DATA[FRETSC] set and
DATA[R9T9] set.
0b - Transmitter disabled.
1b - Transmitter enabled.
Send Break
Enables the LPUART transmitter. TE can also be used to queue an idle preamble by clearing and then
setting TE. When TE is cleared, this register bit will read as 1 until the transmitter has completed the
current character and the TXD pin is tristated.
A single idle character can also be queued by writing to the transmit FIFO with DATA[FRETSC] set and
DATA[R9T9] set.
0b - Transmitter disabled.
1b - Transmitter enabled.
|
最佳答案
查看完整内容[请看2#楼]
我自己回答了 谢谢 感觉RT1052这点做的太不合理了 发送完成标志位 竟然不光在发送完成时置 1 还会发送寄存器空的时候置 1 那请问还要发送数据寄存器空标志位 干嘛??!!
|