![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 331](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630331.webp)
www.geehy.com Page 330
USART mode
USART1
USART2
USART3
UART4
UART5
Hardware flow control
√
√
√
—
—
Multi-buffer
communication (DMA)
√
√
√
√
—
Multi-processor
communication
√
√
√
√
√
Synchronous
√
√
√
—
—
Smart card
√
√
√
—
—
Half duplex (single-line
mode)
√
√
√
√
√
IrDA
√
√
√
√
√
LIN
√
√
√
√
√
Note: "√" means this function is supported, while "—" means that this function is not supported.
Register address mapping
Table 92 USART Register Address Mapping
Register name
Description
Offset address
USART_STS
State register
0x00
USART_DATA
Data register
0x04
USART_BR
Baud rate register
0x08
USART_CTRL1
Control register 1
0x0C
USART_CTRL2
Control register 2
0x10
USART_CTRL3
Control register 3
0x14
USART_GTPSC
Protection time and prescaler register
0x18
Register functional description
State register (USART_STS)
Offset address: 0x00
Reset value: 0x00C0
Field
Name
R/W
Description
0
PEFLG
R
Parity Error Occur Flag
0: No error
1: Parity error occurs
In the receiving mode, when a parity error occurs, set to 1 by
hardware;
This bit can be cleared by software; after setting of RXBNEFLG,
first read USART_STS register, and then read USART_DATA
register to complete clearing.