View Single Post
Old May 26th, 2015   #2
Nigel Worsley
Junior Member
Join Date: Jun 2006
Location: London
Posts: 13

Looks like a very good reason not to use a timeout to detect end of packet! However if this is unavoidable then the specification can still be met:

Set the timeout to 1.05mS
When a timout is generated but the packet is incomplete then restart the timeout.
Two timeouts without anything being received in between is an inter slot timeout and can be processed accordingly.

My personal preferrence would be to handle all of the data in interrupts though.
Nigel Worsley is offline   Reply With Quote