[AVR单片机] 这段什么意思呀

[复制链接]
2082|2
 楼主| wswh2o 发表于 2008-7-15 16:06 | 显示全部楼层 |阅读模式
The UART0 THRE interrupt (U0IIR[3:1] = 001) is a third level interrupt and is activated
when the UART0 THR FIFO is empty provided certain initialization conditions have been
met. These initialization conditions are intended to give the UART0 THR FIFO a chance to
fill up with data to eliminate many THRE interrupts from occurring at system start-up. The
initialization conditions implement a one character delay minus the stop bit whenever
THRE=1 and there have not been at least two characters in the U0THR at one time since
the last THRE = 1 event. This delay is provided to give the CPU time to write data to
U0THR without a THRE interrupt to decode and service. A THRE interrupt is set
immediately if the UART0 THR FIFO has held two or more characters at one time and
currently, the U0THR is empty. The THRE interrupt is reset when a U0THR write occurs or
a read of the U0IIR occurs and the THRE is the highest interrupt (U0IIR[3:1] = 001).
 楼主| wswh2o 发表于 2008-7-15 16:06 | 显示全部楼层

1

activated
when the UART0 THR FIFO is empty provided certain initialization conditions have been
met

除了thr空外,还需要别的条件?
 楼主| wswh2o 发表于 2008-7-15 17:14 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

101

主题

924

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部