UART character delay?

Posts: 4
Joined: Thu Aug 31, 2017 3:28 am

UART character delay?

Postby sebastian.heyn » Mon Sep 04, 2017 6:28 pm


my application runs on an external µCOM which uses 1.843200MHZ as system clock. I have to go that route for two reasons:
1) UART Baud rate accuracy
2) Power consumption.

Now I have treid receiving the UART at 19200 in several ways (Interrupt and direct loop) however the application looses some characters sometimes. At 16mhz, no characters are lost no matter how I do that.

One question: is there a uart command to set a character delay on transmit?

Thanks in advance

User avatar
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India

Re: UART character delay?

Postby pratik » Tue Sep 05, 2017 8:21 pm

No, the AT command set does not allow that setting.
The best you can do is lower the baud rate to 9600 maybe. If your uC is running at <8MHz and has no UART FIFO, then you are bound to miss packets!
This is because the ESP8266 UART has DMA + FIFO, and it transfers bytes out with almost zero loading time. That can overrun most small 8-bit micros.
Pratik Panda

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):

Who is online

Users browsing this forum: Bing [Bot] and 1 guest