GD32F10x User Manual
446
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 at reset value.
8:0
DATA[8:0]
Transmit or read data value
Software can write these bits to update the transmit data or read these bits to get
the receive data.
If the parity check function is enabled, when transmit 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).
Содержание 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 ...