SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
When autobauding is not used, frame format attributes must be defined in the UARTi.UART_LCR register.
Character length is specified using the UARTi.UART_LCR[1:0] CHAR_LENGTH bit field.
The number of stop-bits is specified using the UARTi.UART_LCR[2] NB_STOP bit.
The parity bit is programmed using the UARTi.UART_LCR[5:3] PARITY_EN, PARITY_TYPE_1, and PARITY_TYPE_2 bit fields (see Table 24-112).
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 |