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

BASCOM-AVR : Data command with constats : NEWTOPIC

$
0
0
Hi All, I'm trying to Setup a simple RFM73 Radio module and would like to use the data command to hold the Parameters that I'm writing to the Radio module, and my having Problems with constants and calculation: Here's a sample to show the problem (it seems as if I can't use a calculation with const in a data command):- [code:1:fb4b8c8c54]$regfile = "M8def.dat" $crystal = 7372800 $baud = 9600 $hwstack = 66 $swstack = 66 $framesize = 66 Const Test = 100 Const Test1 = 20 Print "Done" End Data 10 Data 100 Data Test Data Test1 Data Test + Test1 [/code:1:fb4b8c8c54] Here's the Errors I'm getting: Error : 42 Line : 19 Numeric parameter expected [TEST + TEST1] , in File : C:Tempnoname2.bas Error : 377 Line : 19 Unexpected non numeric characters found [TEST + TEST1] , in File : C:Tempnoname2.bas Regards Ian Dobson [b:fb4b8c8c54][color=red:fb4b8c8c54](BASCOM-AVR version : 2.07.7 , Latest : 2.0.7.6 )[/b:fb4b8c8c54][/color:fb4b8c8c54]

Viewing all articles
Browse latest Browse all 20620

Trending Articles



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