
GD32F403xx User Manual
413
Table 17-3. USART interrupt requests
Interrupt event
Event flag
Control register
Enable
Control bit
Transmit data buffer empty
TBE
USART_CTL0
TBEIE
CTS toggled flag
CTSF
USART_CTL2
CTSIE
Transmission complete
TC
USART_CTL0
TCIE
Received buff not empty
RBNE
USART_CTL0
RBNEIE
Overrun error
ORERR
Idle frame
IDLEF
USART_CTL0
IDLEIE
Parity error
PERR
USART_CTL0
PERRIE
Break detected flag in LIN mode
LBDF
USART_CTL1
LBDIE
Receiver timeout
RTF
USART_CTL3
RTIE
End of block
EBF
USART_CTL3
EBIE
Reception errors (noise flag,
overrun error, framing error) in
DMA reception
NERR or ORERR or
FERR
USART_CTL2
ERRIE
All of the interrupt events are ORed together before being sent to the interrupt controller, so
the USART can only generate a single interrupt request to the controller at any given time.
Software can service multiple interrupt events in a single interrupt service routine.
Figure 17-16. USART interrupt mapping diagram
ORERR
RBNEIE
PERR
PEIE
LBDF
LBDIE
FERR
NERR
ORERR
DMA
OR
TCIE
TBEIE
CTSF
CTSIE
USART_INT
TC
TBE
RBNE
RBNEIE
IDLEF
IDLEIE
ERRIE