GD32A50x User Manual
494
19.4.3.
Control register 2 (USART_CTL2)
Address offset: 0x08
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
WUIE
WUM[1:0]
SCRTNUM[2:0]
Reserved
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DEP
DEM
DDRE
OVRD
OSB
CTSIE
CTSEN
RTSEN
DENT
DENR
SCEN
NKEN
HDEN
IRLP
IREN
ERRIE
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:23
Reserved
Must be kept at reset value.
22
WUIE
Wakeup from Deep-sleep mode interrupt enable.
0: Wakeup from Deep-sleep mode interrupt is disabled.
1: Wakeup from Deep-sleep mode interrupt is enabled.
21:20
WUM[1:0]
Wakeup mode from Deep-sleep mode.
These bits are used to specify the event which activates the WUF (Wakeup from
Deep-sleep mode flag) in the USART_STAT register.
00: WUF active on address or data match, which is defined by ADDR_DATA[7:0]
bits and ADDM bit.
01: Reserved.
10: WUF active on Start bit.
11: WUF active on RBNE.
This bit field cannot be written when the USART is enabled (UEN=1).
19:17
SCRTNUM[2:0]
Smartcard auto-retry number.
In smartcard mode, these bits specify the number of retries in transmission and
reception.
In transmission mode, a transmission error (FERR bit set) will occur after this
number of automatic retransmission retries.
In reception mode, reception error (RBNE and PERR bits set) will occur after this
number or erroneous reception trials.
When these bits are configured as 0x0, there will be no automatic retransmission
in transmit mode.
This bit field is only can be cleared to 0 when the USART is enabled (UEN=1), to
stop retransmission.
16
Reserved
Must be kept at reset value.
15
DEP
Driver enable polarity mode.
0: DE signal is active high.