RM0008 Universal synchronous asynchronous receiver transmitter (USART)
639/690
Bit 7 TXE: Transmit Data Register Empty
This bit is set by hardware when the content of the TDR register has been transferred into the shift
register. An interrupt is generated if the TXEIE bit =1 in the USART_CR1 register. It is cleared by a
write to the USART_DR register.
0: Data is not transferred to the shift register
1: Data is transferred to the shift register)
Note: This bit is used during single buffer transmission.
Bit 6 TC: Transmission Complete.
This bit is set by hardware when transmission of a frame containing Data is complete. An interrupt
is generated if TCIE=1 in the USART_CR1 register. It is cleared by a software sequence (an read
to the USART_SR register followed by a write to the USART_DR register). The TC bit can also be
cleared by writing a '0' to it. This clearing sequence is recommended only for multibuffer
communication.
0: Transmission is not complete
1: Transmission is complete
Bit 5 RXNE: Read Data Register Not Empty.
This bit is set by hardware when the content of the RDR shift register has been transferred to the
USART_DR register. An interrupt is generated if RXNEIE=1 in the USART_CR1 register. It is
cleared by a read to the USART_DR register. The RXNE flag can also be cleared by writing a zero
to it. This clearing sequence is recommended only for multibuffer communication.
0: Data is not received
1: Received data is ready to be read.
Bit 4 IDLE: IDLE line detected.
This bit is set by hardware when an Idle Line is detected. An interrupt is generated if the IDLEIE=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).
0: No Idle Line is detected
1: Idle Line is detected
Note: The IDLE bit will not be set again until the RXNE bit has been set itself (i.e. a new idle line
occurs).
Bit 3 ORE: OverRun Error.
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).
0: No Overrun error
1: Overrun error is detected
Note: When this bit is set, the RDR register content will not be lost but the shift register will be
overwritten. An interrupt is generated on ORE flag in case of Multi Buffer communication if the
EIE bit is set.