#chip 12F683, 8
OSCCON = b'01110001' '8MHz internal clock
DIR GPIO b'00111011' 'GPIO.0,GPIO.1,GPIO.3,GPIO.4,GPIO.5 as inputs, GPIO.2 as output
WAIT 50 ms
end
Compiling C:\Programmi\GCBASIC\lavori_gcbasic\12F683-02.txt ...
Program compiled successfully!
Assembling program ...
Assembly failed due to the following errors:
compiled.asm:47:Error [113] Symbol not previously defined (SysWaitTempMS).
compiled.asm:71:Error [113] Symbol not previously defined (SysWaitTempMS).
> Terminated with exit code 0.
In the file compiled.asm is not set the memory location for the variable SysWaitTempMS.
If I change the delay from "WAIT 50 ms" into "WAIT 50 us" the compilation is OK.
I get the same error if I use the other delay units like 10us, 10ms, s, m and h.
Stefano
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found a problem using this code:
#chip 12F683, 8
OSCCON = b'01110001' '8MHz internal clock
DIR GPIO b'00111011' 'GPIO.0,GPIO.1,GPIO.3,GPIO.4,GPIO.5 as inputs, GPIO.2 as output
WAIT 50 ms
end
When I compile it, I get the following message:
---------- Capture Output ----------
> "C:\Programmi\GCBASIC_eng\COMPILE.BAT" C:\Programmi\GCBASIC\lavori_gcbasic\12F683-02.txt
Great Cow BASIC (0.9 10/2/2007)
Compiling C:\Programmi\GCBASIC\lavori_gcbasic\12F683-02.txt ...
Program compiled successfully!
Assembling program ...
Assembly failed due to the following errors:
compiled.asm:47:Error [113] Symbol not previously defined (SysWaitTempMS).
compiled.asm:71:Error [113] Symbol not previously defined (SysWaitTempMS).
> Terminated with exit code 0.
In the file compiled.asm is not set the memory location for the variable SysWaitTempMS.
If I change the delay from "WAIT 50 ms" into "WAIT 50 us" the compilation is OK.
I get the same error if I use the other delay units like 10us, 10ms, s, m and h.
Stefano
Try http://gcbasic.sourceforge.net/newfiles/update.zip - the bug should be fixed. Thanks for reporting it.