LINE CONTROL REGISTER
This register is located at I/O address [base+3]. It is used for specifying the format of the asynchronous serial data to be processed by the UART, and to set the Divisor Latch Access Bit (DLAB) allowing access to the baud rate divisor latches.
BIT |
|
| DESCRIPTION |
|
| ||
|
|
|
|
|
|
| |
7 | DLAB |
|
|
|
|
| |
| DLAB must be set to logic 1 to access the baud rate divisor latches. DLAB must be set to logic | ||||||
| 0 to access the receiver buffer, transmitting holding register and interrupt enable register. | ||||||
6 | BKCN |
|
|
|
|
| |
| When set (logic 1), the serial output (SOUT) is forced to the spacing state (logic 0). | ||||||
5 | STKP |
| STKP | EPS | PEN | PARITY | |
| Forces parity to logic 1 or logic 0 if |
| |||||
| parity is enabled. |
| x | x | 0 | None | |
|
|
|
| 0 | 0 | 1 | Odd |
4 | EPS |
| |||||
| 0 | 1 | 1 | Even | |||
| Selects even or odd parity if parity is |
| |||||
|
| 1 | 0 | 1 | Logic 1 | ||
| enabled. |
|
| ||||
|
|
| 1 | 1 | 1 | Logic 0 | |
|
|
|
| ||||
3 | PEN |
| |||||
|
|
|
|
| |||
| Enables parity on transmission and |
|
|
|
|
| |
| verification on reception. |
|
|
|
|
| |
2 | STB | STB | WLS1 | WLS0 | WORD LEN STOP BITS | ||
| Sets the number of stop bits | ||||||
| transmitted. |
| 0 | 0 | 0 | 5 bits | 1 |
|
|
| 0 | 0 | 1 | 6 bits | 1 |
|
|
| 0 | 1 | 0 | 7 bits | 1 |
|
|
| 0 | 1 | 1 | 8 bits | 1 |
|
|
| 1 | 0 | 0 | 5 bits | 1.5 |
|
|
| 1 | 0 | 1 | 6 bits | 2 |
|
|
| 1 | 1 | 0 | 7 bits | 2 |
|
|
| 1 | 1 | 1 | 8 bits | 2 |
1 | WLS1 |
|
|
|
|
| |
0 | WLS0 | Determines the number |
|
|
|
|
|
of bits per transmitted |
|
|
|
|
| ||
|
|
|
|
|
|
| |
|
| word. |
|
|
|
|
|
|
|
|
|
| |||
|
| Figure 18 |
|
Quatech | 17 |