AT32F425
Series Reference Manual
2022.03.30
Page 155
Ver 2.01
Figure 12-2 Tx/Rx swap
TX
TX
RX
RX
MCU
MCU
USART_TX
USART_TX
USART_RX
USART_RX
USART
USART
TRPSWAP=0
TRPSWAP=1
Note: The SWAP (USART_CTRL2[15]) can be modified only when the USART is disabled (UEN=0)
12.10
Interrupt requests
USART interrupt generator serves as a control center of USART interrupts. It is used to monitor the
interrupt source inside the USART in real time and the generation of interrupts according to the
programmed interrupt control bits. Table 12-4 shows the USART interrupt source and interrupt enable
control bit. An interrupt will be generated over an event when the corresponding interrupt enable bit is
set.
Table 12-4 USART interrupt request
Interrupt event
Event flag
Enable bit
Transmit data register empty
TDBE
TDBEIEN
CTS flag
CTSCF
CTSCFIEN
Transmit data complete
TDC
TDCIEN
Receive data buffer full
RDBF
RDBFIEN
Receiver overflow error
ROERR
Idle flag
IDLEF
IDLEIEN
Parity error
PERR
PERRIEN
Break frame flag
BFF
BFIEN
Noise error, overflow error or framing error
NERR or ROERR or FERR
ERRIEN
(
1
)
Figure 12-3 USART interrupt map diagram
USART
interrupt
TDBE
TDBEIEN
TDC
TDCIEN
CTSCF
CTSCFIEN
IDLEF
IDLEIEN
RDBFIEN
ROERR
RDBFIEN
RDBF
PERR
PERRIEN
BFF
BFIEN
FERR
NERR
ROERR
ERRIEN
DMAREN