AnsweredAssumed Answered

UART read timeout

Question asked by roymessinger on Dec 23, 2016
Latest reply on Dec 24, 2016 by Mark Butcher

In searching for answer for this subject, I've found this link, and this is exactly what I'm looking for (reply of lpcware) but nevertheless, I still don't understand what are my options?

I'm sending chars through UART to an application. Whether it will get there, that is what I want to check. For example, if the comm. cable was disconnected right in the middle of the transport, obviously, I don't want the app or K64 (working with K64) to wait forever...

Any ideas on how to implement it?

I've read about PIT and LPTMR timers but I need them to work in parallel, and not as a delay, but rather after every char I receive, start the timer again and wait for the next char. If did not receive the 'closing char' and timeout finished - error.

But I'm pretty new with ARM, and I prefer not working with RTOS, or any other OS for this matter, so how do I make it work in parallel?

Any ready-made functions on the SDK2.0 for this matter?