
CH32V003
Reference Manual
V1.3
140
12.10.4 USART Control register 1 (USART_CTLR1)
Offset address: 0x0C
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
UE
M WAK
E
PCE PS PEIE TXEI
E
TCIE RXNE
IE
IDLEI
E
TE
RE RWU SBK
Bit
Name
Access
Description
Reset value
[31:14] Reserved
RO Reserved
0
13
UE
RW
USART enable bit. When this bit is set, both the
USART divider and the output stop working after
the current byte transfer is completed.
0
12
M
RW
Word long bit.
1: 9 data bits; 0: 8 data bits.
0
11
WAKE
RW
Wake-up bit. This bit determines the method of
waking up the USART.
1: Address marker; 0: Bus idle.
0
10
PCE
RW
The parity bit is enabled. For the receiver, it is the
parity check of the data; for the sender, it is the
insertion of the parity bit. Once this bit is set, the
parity bit enable will take effect only after the
current byte transmission is completed.
0
9
PS
RW
Parity selection. 0 means even parity, 1 means odd
parity. When this bit is set, the parity bit enable
will take effect only after the current byte
transmission is completed.
0
8
PEIE
RW
Parity check interrupt enable bit. This bit indicates
that parity check error interrupts are allowed.
0
7
TXEIE
RW
TXE interrupt enable. This bit indicates that a
TXE interrupt is allowed to be generated.
0
6
TCIE
RW
Transmit completion interrupt enable. This bit
indicates that the transmit completion interrupt is
allowed to be generated.
0
5
RXNEIE
RW
RXNE interrupt enable.
This bit indicates that a
RXNE interrupt is allowed to be generated.
0
4
IDLEIE
RW
IDLE interrupt enable. This bit allows IDLE
interrupt to be generated.
0
3
TE
RW
Transmitter enable. Setting this bit will enable the
transmitter.
0
2
RE
RW
Receiver enable. Setting this bit enables the
receiver, which starts detecting the start bit on the
RX pin.
0
1
RWU
RW
Receiver wakeup. This bit determines whether to
place the USART in silent mode.
1: The receiver is in silent mode.
0: The receiver is in normal operation mode.
Note 1: Before setting the RWU bit, the USART
needs to receive a data byte first, otherwise it
cannot be woken up by bus idle in silent mode.
Note 2: When configured as address mark wake-
up, the RWU bit cannot be modified by software
when RXNE is set.
0
0
SBK
RW
Send break bit.
Set this bit to send break character. It is reset by
hardware on the stop bit of the break frame.
0