楼主,你可以看一下手册里面介绍的,溢出产生的原因:
This bit is set by hardware when the word currently being received in the shift register is
ready to be transferred into the RDR register while RXNE=1. An interrupt is generated if
RXNEIE=1 in the USART_CR1 register. It is cleared by a software sequence (an read to the
USART_SR register followed by a read to the USART_DR register).
版主你好。 为什么会发生溢出呢? 而且仿真时怎么确定是不是溢出呢?
不仿真的时候也这样,而且中断式接收的话跟超时应该没关系吧?
This bit is set by hardware when the word currently being received in the shift register is
ready to be transferred into the RDR register while RXNE=1. An interrupt is generated if
RXNEIE=1 in the USART_CR1 register. It is cleared by a software sequence (an read to the
USART_SR register followed by a read to the USART_DR register).
谢谢,问题已经找到是485的方向控制线有别的地方误操作
哈哈,我遇到的也是这个问题,感谢分享!