
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
I
Z550 UART
I
7
Oki Semiconductor
Figure 3. Line Control Register
Line Control Register Description
LCR Bit(s)
Description
LCR(0) and
LCR(1)
Word length select bits. The number of bits in each serial character is programmed as shown below.
LCR(2)
Stop Bit Select. LCR(2) specifies the number of stop bits in each transmitted character. If LCR(2) is a logic “0”,
one stop bit is generated. If LCR(2) is a logic “1” when a 5 bit word length is selected, 1.5 stop bits are gener-
ated. If LCR(2) is a logic “1” when either a 6, 7, or 8 bit word length is selected, two stop bits are generated.
The receiver checks for two stop bits if programmed to do so.
LCR(3)
Parity Enable. When LCR(3) is high, a parity bit between the last data word bit and stop bit is generated and
checked.
LCR(4)
Even Parity Select. When parity is enabled [LCR(3) = 1], LCR(4) = 0 selects odd parity, and LCR(4) = 1 selects
even parity.
LCR(5)
Stick Parity. When parity is enabled [LCR(3) = 1], CLR(5) = 1 causes the transmission and reception of a parity
bit to be in the oppose state from that indicated by LCR(4). This allows parity to be forced to a known state
and the receiver to check the parity bit in a known state.
LCR(6)
Break Control. When LCR(6) is set to a logic “1”, the serial output (SOUT) is forced to the spacing (logic “0”)
state. The break is disabled by setting LCR(6) to a logic “0”. The Break Control bit acts only on SOUT and has
no effect on the transmitter logic. Break Control enables the CPU to alert a terminal in a computer communi-
cations system. If the following sequence is used, no invalid characters will be transmitted because of the
break.
Load all “0”s (pad character) in response to THRE.
Set the break in response to the next THRE.
Wait for the transmitter to be idle (TEMT = 1), then clear the break when normal transmission is restored.
LCR(7)
Divisor Latch Access Bit (DLAB). LCR(7) must be set high (logic “1”) to access the Divisor Latches DLL and
DLM of the Baud Rate Generator during read or write operations. LCR(7) must be set low (logic “0”) to access
the Receiver Buffer, the Transmitter Holding, or the interrupt Enable Registers.
LCR
7
LCR
6
LCR
5
LCR
4
LCR
3
LCR
2
LCR
1
LCR
0
Word Length Select
Stop Bit Select
Parity Enable
Even Parity Select
Stick Parity
Break Control
Divisor Latch Access Bit
LCR(1)
LCR(0)
Word Length
0
0
1
1
0
1
0
1
5 data bits
6 data bits
7 data bits
8 data bits