SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
Character length is specified using the UART_LCTR[0] WLS0 and UART_LCTR[1] WLS1 bits (see Table 6-459).
The number of stop-bits is specified using the UART_LCTR[2] STB bit (see Table 6-459).
The parity bit is programmed using the UART_LCTR[5] SP, UART_LCTR[4] EPS, and UART_LCTR[3] PEN bits (see Table 6-458).
SP Bit | EPS Bit | PEN Bit | Parity Option |
---|---|---|---|
x | x | 0 | Parity disabled: No PARITY bit is transmitted or checked. |
0 | 0 | 1 | Odd parity selected: Odd number of logic 1s. |
0 | 1 | 1 | Even parity selected: Even number of logic 1s. |
1 | 0 | 1 | Stick parity selected with PARITY bit transmitted and checked as set. |
1 | 1 | 1 | Stick parity selected with PARITY bit transmitted and checked as cleared. |
STB Bit | WLS Bit | Word Length Selected with WLS Bits | Number of STOP Bits Generated | Baud Clock (BCLK) Cycles |
---|---|---|---|---|
0 | x | Any word length | 1 | 16 |
1 | 0h | 5 bits | 1.5 | 24 |
1 | 1h | 6 bits | 2 | 32 |
1 | 2h | 7 bits | 2 | 32 |
1 | 3h | 8 bits | 2 | 32 |