Receiving data 1-byte at a time is always the best way to do it with USARTs and interrupts.
No Timeouts, no WAIT(), and no long strings.
For a simple Ring buffer, check out Joe S.'s Serial Backpack program, modified for DT_INTS.
http://www.picbasic.co.uk/forum/show...8336#post28336
<br>




Bookmarks