EasyManua.ls Logo

GigaDevice Semiconductor GD32F3x0 - Table 18-3. USART Interrupt Requests

Default Icon
665 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GD32F3x0 User Manual
463
DMA must be disabled before entering deep-sleep mode. Before entering deep-sleep mode,
software must check that the USART is not performing a transfer, by checking the BSY flag
in the USART_STAT register. The REA bit must be checked to ensure the USART is actually
enabled.
When the wakeup event is detected, the WUF flag is set by hardware and a wakeup interrupt
is generated if the WUIE bit is set, independently of whether the MCU is in stop or active
mode.
18.3.16. USART interrupts
The USART interrupt events and flags are listed in Table 18-3. USART interrupt requests.
Table 18-3. USART interrupt requests
Interrupt event
Event flag
Enable Control bit
Transmit data register empty
TBE
TBEIE
CTS flag
CTSF
CTSIE
Transmission complete
TC
TCIE
Received data ready to be
read
RBNE
RBNEIE
Overrun error detected
ORERR
Receive FIFO full
RFFINT
RFFIE
Idle line detected
IDLEF
IDLEIE
Parity error flag
PERR
PERRIE
Break detected flag in LIN
mode
LBDF
LBDIE
Reception errors (noise flag,
overrun error, framing error) in
DMA reception
NERR or ORERR or FERR
ERRIE
Character match
AMF
AMIE
Receiver timeout error
RTF
RTIE
End of block
EBF
EBIE
Wakeup from deep-sleep
mode
WUF
WUIE
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.

Table of Contents

Related product manuals