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

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

$
0
0
[quote:9b8abd1e99="jwolf"]I learned that >Print #1< always will send a sequence >CR LF< at the end.[/quote:9b8abd1e99] Then it might help you to learn, that a semicolon at the end [code:1:9b8abd1e99]Print Var;[/code:1:9b8abd1e99] prevents this behaviour. Also, are you aware, that the output of print and printbin differs ? [code:1:9b8abd1e99]Dim A As Byte A = 123 Print A; ' 3 bytes with the ASCII equivalents of 1, 2, 3 are sent Printbin A ' one byte with value 123 is sent[/code:1:9b8abd1e99] [quote:9b8abd1e99]What puzzles me is that I have no idea what could cause the delay after the > printbin #1 < command, because the receiving loop follows imediately, there is no code inbetween...[/quote:9b8abd1e99] Prosaically circumscribing real code isn't helpful at all, so show actual code, if you want a clear response.

Viewing all articles
Browse latest Browse all 20588

Trending Articles



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