GD32VF103 User Manual
344
16.4.
Register definition
USART0 base address: 0x4001 3800
USART1 base address: 0x4000 4400
USART2 base address: 0x4000 4800
UART3 base address: 0x4000 4C00
UART4 base address: 0x4000 5000
16.4.1.
Status register (USART_STAT)
Address offset: 0x00
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
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
CTSF
LBDF
TBE
TC
RBNE
IDLEF
ORERR
NERR
FERR
PERR
rc_w0
rc_w0
r
rc_w0
rc_w0
r
r
r
r
r
Bits
Fields
Descriptions
31:10
Reserved
Must be kept the reset value
9
CTSF
CTS change flag
If CTSEN bit in USART_CTL2 is set, this bit is set by hardware when the nCTS input
toggles. An interrupt occurs if the CTSIE bit in USART_CTL2 is set.
Software can clear this bit by writing 0 to it.
0: The status of the nCTS line does not change
1: The status of the nCTS line has changed
This bit is reserved for UART3/4.
8
LBDF
LIN break detected flag
This bit is set when LIN break is detected. An interrupt occurs if the LBDIE bit in
USART_CTL1 is set.
Software can clear this bit by writing 0 to it.
0: The USART does not detect a LIN break
1: The USART has detected a LIN break
7
TBE
Transmit data buffer empty
This bit is set after power on or when the transmit data has been transferred to the
transmit shift register. An interrupt occurs if the TBEIE bit in USART_CTL0 is set.
This bit is cleared when the software writes transmit data to the USART_DATA
register.