UART baudrate sensitivity
Posted: Wed Nov 22, 2017 3:45 pm
I am trying to connect my ESP32 to with another microcontroller unit over UART. The other controller is 8bit STM chip which has internal crystal that's not very accurate (+/- 5% tolerance) causing the baudrate to vary with same range (+/- 5%). It also has an option to have an external crystal which would be much more accurate. To decrease the BoM, it'd be ideal to use and internal crystal.
I tried to find about acceptable baudrate deviation for ESP32 at which it still would be able to receive data reliably, but could not find any information. When I searched about baudrate tolerances in UART in general, I found answers ranging from 1% ro 5%, which was not very conclusive.
My question is, if I have a baudrate of 4800 at ESP32 and due to tolerance of the crystal at the other microcontroller, it sends data at baudrate of say, 5000, would it still be treated ok at ESP32 or I should expect some bytes affected by the mismatch? In short, when ESP32 is receiving data, what is the sensitivity for the baudrate if I am using UART peripherals?
Thank you.
I tried to find about acceptable baudrate deviation for ESP32 at which it still would be able to receive data reliably, but could not find any information. When I searched about baudrate tolerances in UART in general, I found answers ranging from 1% ro 5%, which was not very conclusive.
My question is, if I have a baudrate of 4800 at ESP32 and due to tolerance of the crystal at the other microcontroller, it sends data at baudrate of say, 5000, would it still be treated ok at ESP32 or I should expect some bytes affected by the mismatch? In short, when ESP32 is receiving data, what is the sensitivity for the baudrate if I am using UART peripherals?
Thank you.