A20 User Manual (Revision 1.2) Copyright © 2013 Allwinner Technology Co., Ltd. All Rights Reserved. Page 617 / 812
Register Name: UART_LCR
Default Value: 0x0000_0000
EPS
Even Parity Select
It is writeable only when UART is not busy (USR[0] is zero)
and always writable readable. This is used to select between
even and odd parity, when parity is enabled (PEN set to one).
0: Odd Parity
1: Even Parity
PEN
Parity Enable
It is writeable only when UART is not busy (USR[0] is zero)
and always readable. This bit is used to enable and disable
parity generation and detection in transmitted and received
serial character respectively.
0: parity disabled
1: parity enabled
STOP
Number of stop bits
It is writeable only when UART is not busy (USR[0] is zero)
and always readable. This is used to select the number of stop
bits per character that the peripheral transmits and receives. If
set to zero, one stop bit is transmitted in the serial data. If set
to one and the data bits are set to 5 (LCR[1:0] set to zero) one
and a half stop bits is transmitted. Otherwise, two stop bits are
transmitted. Note that regardless of the number of stop bits
selected, the receiver checks only the first stop bit.
0: 1 stop bit
1: 1.5 stop bits when DLS (LCR[1:0]) is zero, else 2 stop bit
DLS
Data Length Select
It is writeable only when UART is not busy (USR[0] is zero)
and always readable. This is used to select the number of data
bits per character that the peripheral transmits and receives.
The number of bit that may be selected areas follows:
00: 5 bits
01: 6 bits
10: 7 bits
11: 8 bits