www.geehy.com Page 262
Field
Name
R/W
Description
oversampling rate.
This bit field can be set only when USART is not enabled.
26
RXTOIEN
R/W
Receiver Timeout Interrupt Enable
0: Disable
1: Generate an interrupt when RXTOFLG is set
Set or cleared by software.
27
Reserved
28
DBLCFG1
R/W
Data Bits Length Configure
This bit and DBLCFG0 bit jointly decide the length of data bit.
DBLCFG[1:0]=00: 1 start bit, 8 data bits, n stop bits
DBLCFG[1:0]=01: 1 start bit, 9 data bits, n stop bits
DBLCFG[1:0]=10: 1 start bit, 7 data bits, n stop bits
Set 1 or clear 0 by software.
This bit cannot be modified during transmission of data.
This bit applies only to APM32F030xC.
31:29
Reserved
Control register 2 (USART_CTRL2)
Offset address: 0x04
Reset value: 0x0000
Field
Name
R/W
Description
3:0
Reserved
4
ADDRLEN
R/W
Slave Address Length Configure
0: 4-bit address
1: 7-bit address
This bit field can be
set only when USART is not enabled.
7:5
Reserved
8
LBCPOEN
R/W
Last Bit Clock Pulse Output Enable
0: Not output from CK
1: Output from CK
This bit is valid only in synchronous mode.
This bit can be
set only when USART is not enabled.
9
CPHA
R/W
Clock Phase Configure
This bit indicates on the edge of which clock sampling is conducted
0: The first
1: The second
This bit is valid only in synchronous mode.
This bit can be
set only when USART is not enabled.
10
CPOL
R/W
Clock Polarity Configure
The state of CK pin when USART is in idle state
0: Low level
1: High level
This bit is valid only in synchronous mode.
This bit can be
set only when USART is not enabled.
11
CLKEN
R/W
Clock Enable (CK pin)
0: Disable
1: Enable
This bit can be
set only when USART is not enabled.
13:12
STOPCFG
R/W STOP Bit Configure