GD32VF103 User Manual
346
frame. An interrupt occurs if the ERRIE bit in USART_CTL2 is set.
Software can clear this bit by reading the USART_STAT and USART_DATA
registers one by one.
0: The USART does not detect a framing error
1: The USART has detected a framing error
0
PERR
Parity error flag
This bit is set when the parity bit of a receive frame does not match the expected
parity value. An interrupt occurs if the PERRIE bit in USART_CTL0 is set.
Software can clear this bit in the sequence: read the USART_STAT register, and
then read or write the USART_DATA register.
0: The USART does not detect a parity error
1: The USART has detected a parity error
16.4.2.
Data register (USART_DATA)
Offset: 0x04
Reset value: Undefined
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
DATA[8:0]
rw
Bits
Fields
Descriptions
31:9
Reserved
Must be kept the reset value
8:0
DATA[8:0]
Transmitted or received data value
Software can write these bits to update the transmitted data or read these bits to
get the received data.
If the parity check function is enabled, when transmitted data is written to this
register, the MSB bit (bit 7 or bit 8 depending on the WL bit in USART_CTL0) will
be replaced by the parity bit.
16.4.3.
Baud rate register (USART_BAUD)
Address offset: 0x08
Reset value: 0x0000 0000
The software must not write this register when the USART is enabled (UEN=1).
This register has to be accessed by word (32-bit)