![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 446](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794446.webp)
GD32E23x User Manual
446
WUM bit fields.
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.
16.3.16.
USART interrupts
The USART interrupt events and flags are listed in
Table 16-3. USART interrupt requests
Table 16-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