
AT32F413
Series Reference Manual
2022.06.27
Page 145
Rev 2.00
Figure 12-2 IrDA DATA(3/16)
– normal mode
Normal frame
1
Start
bit
0
1
0
1
1
0
0
Stop
bit
TX pin
RX pin
3/16
4.
Hardware flow control mode:
RTS and CTS flow control can be enabled by setting RTSEN=1 and CTSEN=1, respectively. This is
to control serial data flow between two devices.
5.
Silent mode:
Silent mode can be entered by setting RM=1. It is possible to wake up from silent mode by setting
WUM=1 (ID match) and WUM=0 (idle bus), respectively. The ID[3: 0] is configurable. When ID match
is selected, if the MSB of data bit is set to 1, it indicates that the current data is ID, and the four LSB
represent ID value.
6.
Synchronous mode:
By setting the CLKEN bit to 1, synchronous mode and clock pin output are enabled. Select CK pin
high or low in idle state by setting the CLKPOL bit (1 or 0). Whether to sample data on the second
or the first edge of the clock depends on the CLKPHA bit (1 or 0). The LBCP bit (1 or 0) is used to
select whether to output clock on the last data bit. And the ISDIV[4: 0] is used to select the required
clock output frequency.
12.4 USART frame format and configuration
USART data frame consists of start bit, data bit and stop bit, with the last data bit being as a parity bit.
USART idle frame size is equal to that of the data frame under current configuration, but all bits are 1.
USART break frame size is the current data frame size plus its stop bit. All bits before the stop bit are 0.
The DBN bit is used to program 8-bit (DBN=0) or 9-bit (DBN=1) data bits.