GD32A50x User Manual
499
19.4.7.
Command register (USART_CMD)
Address offset: 0x18
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit)
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
TXFCMD RXFCMD MMCMD SBKCMD Reserved
w
w
w
w
Bits
Fields
Descriptions
31:5
Reserved
Must be kept at reset value.
4
TXFCMD
Transmit data flush request
Writing 1 to this bit sets the TBE flag, to discard the transmit data.
3
RXFCMD
Receive data flush command.
Writing 1 to this bit clears the RBNE flag to discard the received data without
reading it.
2
MMCMD
Mute mode command
Writing 1 to this bit makes the USART into mute mode and sets the RWU flag.
1
SBKCMD
Send break command.
Writing 1 to this bit sets the SBKF flag and makes the USART send a BREAK
frame, as soon as the transmit machine is idle.
0
Reserved
Must be kept at reset value.
19.4.8.
Status register (USART_STAT)
Address offset: 0x1C
Reset value: 0x0000 00C0
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
REA
TEA
WUF
RWU
SBF
AMF
BSY
r
r
r
r
r
r
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
EBF
RTF
CTS
CTSF
LBDF
TBE
TC
RBNE
IDLEF
ORERR
NERR
FERR
PERR
r
r
r
r
r
r
r
r
r
r
r
r
r
Bits
Fields
Descriptions