Menu

My 16F684 BlinkLED.txt gives a compiler error

2006-08-30
2013-05-30
  • Nobody/Anonymous

    GCBasic looks very promising, but I am having problems compiling even a simple program for the PIC I am using currently. The GCBASIC demo programs I tried compiling compiled without any errors, by the way.

    I wrote a BlinkLED.txt file containing the following (for use on a 16F684 on a PICStart1 development board):

    'Chip settings
    #chip 16F684,4
    #config  WDT_OFF

    Start:
    set PORTA.0 off
    WAIT 1 s
    set PORTA.0 on
    WAIT 1 s
    GOTO start

    When I drag and drop this onto COMPILE.BAT, I get:
    Great Cow BASIC (0.9 21/8/2006)
    Compiling COMPILED.TXT ...

    Subscript out of range in module GCBASIC  at address  0570:6BB7
    Hit any key to return to system

    If I change the 16F684 to another PIC (16F877, for example), the program seems to compile OK.  I am using gpasm version gpasm 0-.13-.3 beta.

    Please be aware I am very new with using the PIC, and have primarily been using the book "123 PIC Microcontroller Experiments for the Evil Genius" as my introduction to the Microchip PIC line, so it may be something very simple (configuration problem somewhere?).  When I saw the Great Cow BASIC compiler listed on Sourceforge, I knew I had to at least try it.

    Any help is appreciated.

     
    • Hugh Considine

      Hugh Considine - 2006-08-30

      Thanks for letting us know about this problem - it was a bug in the compiler which is now fixed.

       

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.