UART2 reception issue using 2 stop bits
Posted: Mon Mar 13, 2017 2:45 pm
Hi all,
I'm facing some issues with UART2 while trying to communicate using a 2 stop bit length configuration.
I've mapped UART2 signals to IO16 (Rx) and IO17 (Tx) and I'm using no flowcontrol.
While checking my UART2 communication shortcutting Rx and Tx signals, I've noticed that my ESP32 does not receive what it sends. This happens only when I use a 2 stop bit configuration, at any baudrate and parity. Everything is fine when using 1 or 1.5 stop bits. Using an oscilloscope I've checked that outgoing bytes are using a two stop bit configuration, so my shortcutted UART2 is also receiving the same bytes. However I'm not received what I'm sending. For example, sending a 0x01 always result in a 0x80 reception, a 0x43 is turned into a 0xA1, as if there was a reception sampling issue.
ESP-IDF's UART driver is prepared for a 2 stop bit configuration, however, the ESP32 technical manual (page 170) does not show this configuration in the UART_CONFIG0_REG register (UART_STOP_BIT_NUM bits).
Is there any known bug related to what I'm suffering?
Thanks and regards.
I'm facing some issues with UART2 while trying to communicate using a 2 stop bit length configuration.
I've mapped UART2 signals to IO16 (Rx) and IO17 (Tx) and I'm using no flowcontrol.
While checking my UART2 communication shortcutting Rx and Tx signals, I've noticed that my ESP32 does not receive what it sends. This happens only when I use a 2 stop bit configuration, at any baudrate and parity. Everything is fine when using 1 or 1.5 stop bits. Using an oscilloscope I've checked that outgoing bytes are using a two stop bit configuration, so my shortcutted UART2 is also receiving the same bytes. However I'm not received what I'm sending. For example, sending a 0x01 always result in a 0x80 reception, a 0x43 is turned into a 0xA1, as if there was a reception sampling issue.
ESP-IDF's UART driver is prepared for a 2 stop bit configuration, however, the ESP32 technical manual (page 170) does not show this configuration in the UART_CONFIG0_REG register (UART_STOP_BIT_NUM bits).
Is there any known bug related to what I'm suffering?
Thanks and regards.