GD32F403xx User Manual
400
Figure 17-1. USART module block diagram
USART Data Register
CPU/DMA
R
W
IrDA
Block
TX
SW_RX
RX
CK Controller
Transmit
Shift
Register
Receive
Shift
Register
USART Control
Registers
CK
Transimit
Controller
Hardware
Flow
Controller
nRTS
nCTS
Receiver
Controller
USART
Address
Wakeup Unit
USART Guard Time
and Prescaler Register
USART Status Register
USART Interrupt
Controller
/USARTDIV
/16
USART Baud
Rate Register
UCLK
Transmitter
clock
Receiver
clock
17.3.1.
USART frame format
The USART frame starts with a start bit and ends up with a number of stop bits. The length
of the data frame is configured by the WL bit in the USART_CTL0 register. The last data bit
can be used as parity check bit by setting the PCEN bit of in USART_CTL0 register. When
the WL bit is reset, the parity bit is the 7th bit. When the WL bit is set, the parity bit is the 8th
bit. The method of calculating the parity bit is selected by the PM bit in USART_CTL0 register.
Figure 17-2. USART character frame (8 bits data and 1 stop bit)
Idle frame
Break frame
Stop
CLOCK
Data frame
Start
bit4
bit5
bit6
bit7
bit0
bit1
bit2
bit3
Start
Start
Stop
Start
or parity
In transmission and reception, the number of stop bits can be configured by the STB[1:0]
bits in the USART_CTL1 register.
Table 17-2. Configuration of stop bits
STB[1:0]
stop bit length (bit)
usage description
00
1
default value
01
0.5
Smartcard mode for receiving
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...