RXD last character received
Posted: Mon Sep 30, 2013 12:34 pm
Bruce,
Is there a memory location for BASIC to sample holding each Uart's last-character-received (so, also, to be able clear it) WITHOUT fetching characters from the RX buffer?
I'd like to be able to ignore messages coming in until a terminating character is received.
Of course, I can fetch them into a local buffer as received, but that's just more overhead code I'd like to avoid.
something like:
If (UART1Lastchr = LF) then
gosub fetch_the_Uart1_buffer
UART1Lastchr = -1
endif
...
go onward
...
Thanks,
Lloyd
Is there a memory location for BASIC to sample holding each Uart's last-character-received (so, also, to be able clear it) WITHOUT fetching characters from the RX buffer?
I'd like to be able to ignore messages coming in until a terminating character is received.
Of course, I can fetch them into a local buffer as received, but that's just more overhead code I'd like to avoid.
something like:
If (UART1Lastchr = LF) then
gosub fetch_the_Uart1_buffer
UART1Lastchr = -1
endif
...
go onward
...
Thanks,
Lloyd