Uart driver with transmit buffer & interrupt
Uart driver with transmit buffer & interrupt
Postby tve » Tue Feb 17, 2015 4:25 pm
Does anyone have some code to buffer uart output (TX) and send characters to the uart using an interrupt? The driver in the AT demo only uses interrupt for RX. Thanks!
BTW: does anyone know how deep the uart TX fifo is?
BTW: does anyone know how deep the uart TX fifo is?
Re: Uart driver with transmit buffer & interrupt
Postby costaud » Wed Feb 25, 2015 10:04 pm
tve wrote:Does anyone have some code to buffer uart output (TX) and send characters to the uart using an interrupt? The driver in the AT demo only uses interrupt for RX. Thanks!
BTW: does anyone know how deep the uart TX fifo is?
I will update a uart buffer and interrupt instruction.
The UART tx/rx FIFO depth is 128 bytes.
Re: Uart driver with transmit buffer & interrupt
Postby tve » Wed Feb 25, 2015 11:50 pm
Cool, thanks, looking forward to it! I fixed-up the uart.c that comes with the FreeRTOS SDK (https://github.com/jeelabs/esp8266-brid ... ver/uart.c if anyone cares) but stopped short of adding TX interrupt support. I'm using 115200baud and I realized that with a 128 char buffer I can simply delay for a tick (~10ms) if the HW buffer is full 'cause the buffer holds ~11ms worth of data.
Re: Uart driver with transmit buffer & interrupt
Postby costaud » Sat Apr 18, 2015 1:08 am
tve wrote:Does anyone have some code to buffer uart output (TX) and send characters to the uart using an interrupt? The driver in the AT demo only uses interrupt for RX. Thanks!
BTW: does anyone know how deep the uart TX fifo is?
Demo here:
viewtopic.php?f=7&t=48&p=173#p173
Who is online
Users browsing this forum: No registered users and 44 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.