GD32F10x User Manual
430
Figure 16-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
16.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 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 16-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 16-2. Stop bits configuration
STB[1:0]
stop bit length (bit)
usage description
00
1
default value
01
0.5
Smartcard mode for receiving
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...