AnsweredAssumed Answered

Writing to UART_DR register clears the RXNE bit?

Question asked by schweighart.samuel on Nov 9, 2011
Latest reply on Nov 9, 2011 by Clive One
FIXED!!!!
I was using a Union Structure, which required a read to the register..


I have STM32F207 chip...

Using UART2, I've tried to do bidirectional data sending and receiving.  However, I've noticed that when I write a byte to UART_DR, the RXNE bit is clearing.  This bit should only clear when I READ UART_DR. 

"In single buffer mode, clearing the RXNE bit is performed by a software read to the
USART_DR register. The RXNE flag can also be cleared by writing a zero to it. ..." ( RM0033 pg 610 - DOCID 15403 Rev 3)

Help! Not sure what's going on. Is this a problem with the chip?

Thanks!
Sam

Outcomes