Reading unbuffered data from UART1
Posted: Thu May 04, 2017 4:59 am
I am trying to interface the ESP32 (using UART1) with an RS485 serial interface, this interface is half duplex. I need to be able to read data from the RX on UART1 (RX1), wait for a specific character which signifies the end of transmission from the remote interface and then within 4 milliseconds send my message (obviously on the UART1 TX line).
Is there a way to set an interrupt on each byte received on RX1? Or would I be better to continuously read RX1 waiting for the termination character?
Is there a way to set an interrupt on each byte received on RX1? Or would I be better to continuously read RX1 waiting for the termination character?