UART 3 Stop bits is undefined
Posted: Sun Mar 19, 2023 6:27 pm
In https://www.espressif.com/sites/default ... ual_en.pdf
UART_STOP_BIT_NUM This register is used to set the length of the stop bit; 1: 1 bit, 2: 1.5 bits. (R/W)
Defines stop bits for the URAT to be 1,1.5, and 2
this also aligns with the arduino drivers
typedef enum {
UART_STOP_BITS_1 = 0x1, /*!< stop bit: 1bit*/
UART_STOP_BITS_1_5 = 0x2, /*!< stop bit: 1.5bits*/
UART_STOP_BITS_2 = 0x3, /*!< stop bit: 2bits*/
UART_STOP_BITS_MAX = 0x4,
} uart_stop_bits_t;
However, 3 stop bits should be supported
13.3.5 UART Data Frame
Figure 13-3 shows the basic data frame structure. A data frame starts with a START condition and ends with a
STOP condition. The START condition requires 1 bit and the STOP condition can be realized using 1/1.5/2/3-bit
widths (as set by UART_STOP_BIT_NUM, UART_DL1_EN, and UAR_DL0_EN). The START is low level, while the
STOP is high level.
What are the register settings for 3 uart stop bits?
Thank you!
UART_STOP_BIT_NUM This register is used to set the length of the stop bit; 1: 1 bit, 2: 1.5 bits. (R/W)
Defines stop bits for the URAT to be 1,1.5, and 2
this also aligns with the arduino drivers
typedef enum {
UART_STOP_BITS_1 = 0x1, /*!< stop bit: 1bit*/
UART_STOP_BITS_1_5 = 0x2, /*!< stop bit: 1.5bits*/
UART_STOP_BITS_2 = 0x3, /*!< stop bit: 2bits*/
UART_STOP_BITS_MAX = 0x4,
} uart_stop_bits_t;
However, 3 stop bits should be supported
13.3.5 UART Data Frame
Figure 13-3 shows the basic data frame structure. A data frame starts with a START condition and ends with a
STOP condition. The START condition requires 1 bit and the STOP condition can be realized using 1/1.5/2/3-bit
widths (as set by UART_STOP_BIT_NUM, UART_DL1_EN, and UAR_DL0_EN). The START is low level, while the
STOP is high level.
What are the register settings for 3 uart stop bits?
Thank you!