GD32F20x User Manual
505
transmit shift register. An interrupt occurs if the TBEIE bit in USART_CTL0 is set.
This bit is cleared when the software writes transmit data to the USART_DATA
register.
0: Transmit data buffer is not empty
1: Transmit data buffer is empty
6
TC
Transmission complete
This bit is set after power on. If the TBE bit has been set, this bit is set when the
transmission of current data is complete. An interrupt occurs if the TCIE bit in
USART_CTL0 is set.
Software can clear this bit by writing 0 to it.
0: Transmission of current data is not complete
1: Transmission of current data is complete
5
RBNE
Read data buffer not empty
This bit is set when the read data buffer is filled with a data frame, which has been
received through the receive shift register. An interrupt occurs if the RBNEIE bit in
USART_CTL0 is set.
Software can clear this bit by writing 0 to it or by reading the USART_DATA register.
0: Read data buffer is empty
1: Read data buffer is not empty
4
IDLEF
IDLE frame detected flag
This bit is set when the RX pin has been detected in idle state for a frame time. An
interrupt occurs if the IDLEIE bit in USART_CTL0 is set.
Software can clear this bit by reading the USART_STAT0 and USART_DATA
registers one by one.
0: The USART module does not detect an IDLE frame
1: The USART module has detected an IDLE frame
3
ORERR
Overrun error
This bit is set if the RBNE is not cleared and a new data frame is received through
the receive shift register. An interrupt occurs if the ERRIE bit in USART_CTL2 is
set.
Software can clear this bit by reading the USART_STAT0 and USART_DATA
registers one by one.
0: The USART does not detect a overrun error
1: The USART has detected a overrun error
2
NERR
Noise error flag
This bit is set if the USART detects noise on the RX pin when receiving a frame.
An interrupt occurs if the ERRIE bit in USART_CTL2 is set.
Software can clear this bit by reading the USART_STAT0 and USART_DATA
registers one by one.
0: The USART does not detect a noise error
1: The USART has detected a noise error
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...