打印
[AVR单片机]

这段什么意思呀

[复制链接]
1461|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

主题

925

帖子

1

粉丝