Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20577

BASCOM-AVR : data loss using inkey #2 with software UART : REPLY

$
0
0
Thank you MWS for the educative answer: sorry for the prosa, I am not a software engineer, but you are fully right that it is obvious to use the expression <print var ;> to avoid sending a <LF> To show you what I mean with " immediately after" - here are the relevant lines of code: [code:1:332f62ac0f] Printbin #1 , Tx_buf(1) , X 'output x command bytes X = 1 Do B = Inkey(#2) If B > 0 Then Rx_buf(x) = B Incr X If B = 13 Then 'if CR is send Incr X End If End If Loop Until B = 62 ' ESC [/code:1:332f62ac0f] Thanks for the good hint, Madf, but unfortunately the device I have will reply sending ASCII in multiple lines using <CR> inbetween, which will stop the input routine after the first line (tried that already :D ).

Viewing all articles
Browse latest Browse all 20577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>