I am dealing with some time sensitive code where I need to respond to a status message from a 1 wire serial bus.
What can account for a 1500 microsecond delay between receiving data on the UART and transmitting a response to the same UART?
-Thom
UART: 1500 microsecond delay between receiving and transmitting. Why?
Re: UART: 1500 microsecond delay between receiving and transmitting. Why?
So your getting 1.5ms delay. How much faster were you expecting ?
Re: UART: 1500 microsecond delay between receiving and transmitting. Why?
I need to be able to respond to a status request within 200 microsecconds.
-Thom
-Thom
-
- Posts: 9043
- Joined: Thu Nov 26, 2015 4:08 am
Re: UART: 1500 microsecond delay between receiving and transmitting. Why?
The UART normally tries to collect as many bytes as possible to hand over to the software in one single interrupt; as such it has a timeout time in which it waits to see if there's any more data coming in before firing off an interrupt. You may want to modify rx_timeout_tresh to change this.
Who is online
Users browsing this forum: No registered users and 129 guests