I have a question about the SimpleLink MCU SDK driver UART.
As a circuit configuration, I can read back the transmitted data myself.
My Goal
Implement the logic to check the consistency between the UART signal sent by UART and the receive interrupt. If the send data matches the receive data, send the next UART immediately.
Software implementation
1. After executing UART_write (), a reception completion interrupt is generated depending on the transmission data.
2. Execute UART_read () within the interrupt to check the consistency between the transmitted data and the received data.
3. Set the minimum time (10us) timer. *
4. In the “3” timer interrupt context, execute UART_write (). *
* Follow the UART_write () warning and move from the interrupt context of UART reception before executing UART_write ().
Problem
UART transmission may not be executed with “4”. (I think it occurs when the timer setting time is short...)
Possible solutions
If UART_writeCancel () is executed before executing UART_write () of "4", events that do not transmit UART will not occur.
Is this treatment correct?
Thank you.