UART char timestamping

EGSJLS
Posts: 1
Joined: Tue Jan 16, 2024 3:05 pm

UART char timestamping

Postby EGSJLS » Tue Jan 16, 2024 3:23 pm

Hello,

I would like to know if it's possible to configure and setup two UART driver in such a way that every RX incoming char is timestamped with the current time (cpu cycles or us). Baudrate is 115200.

So theoretically for each UART a RX buffer with size 1 which triggers the ISR and writes the char from the RX buffer into another buffer with the timestamp for later use.

Just setting the driver buffer size to 1 doesn't work. I would like some advice at how to approach this with ESP-IDF .

Thanks!

Who is online

Users browsing this forum: No registered users and 106 guests