SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
When autobauding is not used, frame format attributes must be defined in the UART_LCR register.
Character length is specified using the UART_LCR[1-0] CHAR_LENGTH bit field.
The number of stop-bits is specified using the UART_LCR[2] NB_STOP bit.
The parity bit is programmed using the UART_LCR[5-3] PARITY_EN, UART_LCR[5-3] PARITY_TYPE_1, and UART_LCR[5-3] PARITY_TYPE_2 bit fields (see Table 12-471).
PARITY_EN | PARITY_TYPE_1 | PARITY_TYPE_2 | Parity |
---|---|---|---|
0 | N/A | N/A | No parity |
1 | 0 | 0 | Odd parity |
1 | 1 | 0 | Even parity |
1 | 0 | 1 | Forced 1 |
1 | 1 | 1 | Forced 0 |