SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
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 13-93).
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 |