CHAPTER 3 REGISTERS
User’s Manual S19262EJ3V0UM
21
3.2.5 Line control register
This register (LCR: 5000_0010H (UART0), 5001_0010H (UART1), 5002_0010H (UART2)) specifies the
transmission/reception data format and enables access to the divisor latch.
15 14 13 12 11 10 9 8
Reserved
7 6 5 4 3 2 1 0
DLAB
Break Control
Stick Parity
EPS
PEN
STB
WLS[1:0]
(1/2)
Name R/W
Bit
After
Reset
Function
Reserved
R
15:8
0
Reserved. When these bits are read, 0 is returned for each bit.
DLAB *
R/W
7
0
Setting this bit to 1 enables specifying the divisor latch (DLM/DLL registers).
When this bit is set to 0 after specifying the divisor latch, access to the divisor
latch is prohibited and generation of the 16x clock according to the specified
value is started by the baud rate generator.
Caution The 16x clock stops after a master reset. The baud rate
generator starts generating the 16x clock when it detects the
change of this bit setting (from 1 to 0). After generation
starts, the 16x clock will not stop unless a master reset is
input.
Break Control
R/W
6
0
Controls break state generation and transmission.
The serial output (UARTx_SOUT) is forcibly set to 0 while this bit is set to 1,
and such output is canceled when this bit is set to 0. This bit directly controls
the SOUT output level but does not affect the internal circuits.
Caution If this bit is set to 1 during transmission, only framing errors
might be detectable on the reception side. To detect breaks
for sure, this bit must be set when transmission has
completed (the transmit buffer empty).
Stick Parity *
R/W
5
0
Selects the type of parity bit used to verify transmitted/received data.
The setting of this bit is valid only when a parity bit is used (bit 3 = 1).
An even, odd, or fixed value (high or low) is set by using bit 4.
0: Parity check using an even or odd parity bit
1: Parity check using a stick parity bit
EPS *
R/W
4
0
Selects the odd or even parity when bit 3 is set to 1 and bit 5 is set to 0.
Selects the level of the stick parity when bit 3 and bit 5 are set to 1.
0: Odd parity / Stick High (fixed to 1)
1: Even parity / Stick Low (fixed to 0)
PEN *
R/W
3
0
Specifies whether to enable the parity check.
0: No parity bit.
1: Adds a parity bit on the transmission side.
The parity bit is checked on the reception side.