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

BASCOM-AVR : Serial Buffer problem : NEWTOPIC

$
0
0
Hello I have make many application with RS232 and all run O.K. but with a new project have a problem Send out string of characters and run o.k. but sometime the last character stay in the buffer and don't exit. When I send a new character the last character go out from the buffer and the new don't exit Switch off and on again the board and all run O.K. until when the problem appear again after 1 minutes or many hours. ------------------------------------ 'Bascom 1.11.8.3 $regfile = "m128def.dat" $crystal = 14745600 ' $hwstack = 124 $swstack = 124 $framesize = 124 ' $baud = 9600 $baud1 = 115200 ' Config Com2 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Config Serialin1 = Buffered , Size = 254 'Config Serialout1 = Buffered , Size = 254 Open "Com2:" For Binary As #2 Enable Interrupts -------------------------------------- I don't use Serialout because the charcters exit from buffer delayed of 3-4 positions Someone had the same problem ? Thanks [b:ac1d179efc][color=red:ac1d179efc](BASCOM-AVR version : 1.11.8.3 , Latest : 2.0.7.6 )[/b:ac1d179efc][/color:ac1d179efc]

Viewing all articles
Browse latest Browse all 20599

Trending Articles



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