GD32VF103 User Manual
328
16.
Universal
synchronous/asynchronous
receiver
/transmitter (USART)
16.1.
Overview
The Universal Synchronous/Asynchronous Receiver/Transmitter (USART) provides a flexible
serial data exchange interface. Data frames can be transferred in full duplex or half duplex
mode, synchronously or asynchronously through this interface. A programmable baud rate
generator divides the peripheral clock (PCLK1 or PCLK2) to produce a dedicated baud rate
lock for the USART transmitter and receiver.
Besides the standard asynchronous receiver and transmitter mode, the USART implements
several other types of serial data exchange modes, such as IrDA (infrared data association)
SIR mode, smartcard mode, LIN (local interconnection network) mode, half-duplex mode and
synchronous mode. It also supports multiprocessor communication mode, and hardware flow
control protocol (CTS/RTS). The data frame can be transferred from LSB or MSB bit.
The USART supports DMA function for high-speed data communication, except UART4.
16.2.
Characteristics
NRZ standard format
Asynchronous, full duplex communication
Half duplex single wire communication
Programmable baud-rate generator
–
Divided from the peripheral clocks, PCLK2 for USART0, PCLK1 for USART1/2 and
UART3/4.
–
Oversampling by 16
–
Maximum speed up to 6.75 MBits/s (PCLK2 108M and oversampling by 16)
Fully programmable serial interface characteristics:
–
Even, odd or no-parity bit generation/detection
–
A data word length can be 8 or 9 bits
–
0.5, 1, 1.5 or 2 stop bit generation
Transmitter and Receiver can be enabled separately
Hardware flow control protocol (CTS/RTS)
DMA request for data buffer access
LIN Break generation and detection
IrDA Support
Synchronous mode and transmitter clock output for synchronous transmission
ISO 7816-3 compliant smartcard interface
–
Character mode (T=0)