
AT32F413
Series Reference Manual
2022.06.27
Page 152
Rev 2.00
Figure 12-6 Data sampling for noise detection
RX pin
one bit time
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Sample bits
Oversampling
16
12.9 Interrupt requests
USART interrupt generator is the 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-3 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-7 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
12.10 I/O pin control
The following five interfaces are used for USART communication.
RX: Serial data input.
TX: Serial data output. In single-wire half-duplex and Smartcard mode, the TX pin is used as an I/O for
data transmission and reception.
CK: Transmitter clock output. The output CLK phase, polarity and frequency can be programmable.
CTS: Transmitter input. Send enable signal in hardware flow control mode.
RTS: Receiver output. Send request signal in hardware flow control mode.