Menu

PIC 12F683 and Wait command

2007-03-26
2013-05-30
  • Stefano Delfiore

    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

     
    • Hugh Considine

      Hugh Considine - 2007-03-26

      Try http://gcbasic.sourceforge.net/newfiles/update.zip - the bug should be fixed. Thanks for reporting it.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.