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

BASCOM-AVR : serial interupt and buffer : NEWTOPIC

$
0
0
Hi, I want to use the buffer for com1 but also the interrupt if there is a character received. The thing is that i get an error if i use both. Delete the 'Config Serialin0 = Buffered , Size = 20' and it compiles fine. And if i not use the Irq for the serialport it compiles also good. ISR already defined[INT_COM1] , in file ........ It seems that both togeter will not work. Maybe there is a solution for this. ?? $regfile = "m128def.dat" ' specify the used micro $crystal = 8000000 ' used crystal frequency $hwstack = 40 ' default use 32 for the hardware stack $swstack = 40 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Config Com1 = 19200 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Config Serialin0 = Buffered , Size = 20 'dim a variable Dim Nm As Bit Open "com1:" For Binary As #1 Enable Interrupts On Urxc Int_com1 Enable Urxc Do If Nm = 1 Then Print #1 , "Irq" Nm = 0 End If Loop '------- Int_com: Nm = 1 Return [b:baf95f9599][color=red:baf95f9599](BASCOM-AVR version : 2.0.7.6 )[/b:baf95f9599][/color:baf95f9599]

Viewing all articles
Browse latest Browse all 20767

Trending Articles



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