-->
Page 1 of 9

UART interrupt with Arduino platform for ESP8266

PostPosted: Sun May 28, 2017 12:01 pm
by andre_teprom
Hi there,



I need to design a product based on the ESP8266 module,
However the Arduino compiler has native interrupt support for only TIMER and I/O .

Does someone has some tricky tip to add this feature to the Arduino IDE ?



Thanks in advance,
Andre.

Re: UART interrupt with Arduino platform for ESP8266

PostPosted: Wed Jan 17, 2018 3:23 pm
by andre_teprom
I just came accross this code, baddly doccumented, or rather, not documented:

https://github.com/muratdemirtas/ESP826 ... r/main.ino

Has someone used this one, or another functional code able to handle serial interrupts in Arduino with the ESP8266 core ?

Re: UART interrupt with Arduino platform for ESP8266

PostPosted: Wed Jan 17, 2018 11:12 pm
by tele_player
Do you understand what that code does?

Re: UART interrupt with Arduino platform for ESP8266

PostPosted: Thu Jan 18, 2018 6:15 am
by btidey
The Arduino libraries already use the uart interrupts to send and receive data via FIFO buffers.

These are in uart.c in ..... Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266

The low level support is then used in HardwareSerial.c to give the normal access functions.

You could use your own to replace these if there is some pressing reason to do so.

There is also pretty good documentation on the UART hardware, registers, interrupts etc in 8E-ESP8266__Interface_UART__EN_v0.2.pdf A google search will find where to get it.