Question
Writing to UART_DR register clears the RXNE bit?
Posted on November 09, 2011 at 16:38
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 theUSART_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 #must-be-a-hardware-problem