ESP32 UART principle
Posted: Tue Apr 04, 2023 7:16 am
Hi,
In a project we are working on 9bit UART communication is need. For transmitting the data we calculate the parity bit and this works. For the incoming data luckily the most significant bit is always 0, so we basically need only 8 bits. We have figured out that the receiving still works even if we disable the parity with UART_PARITY_DISABLE. Is there any logical explanation for this? Since the transmitter (other device) sends 9N1, but the ESP is configured for 8N1, why the bytes are still correctly received?
Danijel
In a project we are working on 9bit UART communication is need. For transmitting the data we calculate the parity bit and this works. For the incoming data luckily the most significant bit is always 0, so we basically need only 8 bits. We have figured out that the receiving still works even if we disable the parity with UART_PARITY_DISABLE. Is there any logical explanation for this? Since the transmitter (other device) sends 9N1, but the ESP is configured for 8N1, why the bytes are still correctly received?
Danijel