Hi,
Compiling on Basic Micro Studio Version 2.0.0.5 on my win vista pc, I write the short code below to display voltage on p0 in volts onto computer screen. But I get error on using debugin command (see screenshot below code). I test exact same code using friend's win xp pc running the older Legacy Atom IDE 2.2.1 and code pass through error-free and program run perfectly fine. Anybody know what cause the errors in the studio version and how to fix this problem?
BasicATOM Pro 28M is module used.
Thanks!
Code:
AD_in var word; need 16 bit variable
key var byte;
main
adin p0, AD_in ;ADC output stored into AD_in
debug[real AD_in*5.0/1023,"V", 13] ;conversion to volts calculation
debugin[key]
goto main
end
