Menu

PIC 10/12/16

Help
2007-02-18
2013-05-30
  • Russ Hensel

    Russ Hensel - 2007-02-18

    Great Cow BASIC is an open-source BASIC compiler for Microchip PIC 10/12/16 series microcontrollers.

    And /18 as in the most recent ( and perhaps before most recent \chipdata directory )?

    Could you comment on the state of support for them?

    Russ

     
    • Hugh Considine

      Hugh Considine - 2007-02-19

      18F support is pretty near complete. GCBASIC has been altered to use some of the 18F assembly mnemonics (movff, cpfsgt, etc) where possible. Most of the routines have been tested and found to work, at least on an 18F4550.

      Only the #config directive needs to be altered to adapt a program for 18F chips, and this is explained in the latest version of the help file at http://gcbasic.sourceforge.net/newfiles/gcbasic.chm

       
    • Nobody/Anonymous

      I will use GCBasic to program the PIC 18F2455 and get some problems with the config directive. So I am very interested in the explainattion. I only can not open the link to the new helpfile.

      Hans

       
      • Hugh Considine

        Hugh Considine - 2007-04-29

        This is because GCBASIC uses the newer style CONFIG directive on 18F chips, while gputils only supports the old _CONFIG directive.

        There are two ways to solve this problem. One is to download and install MPLAB, and then alter the C:\Program Files\GCBASIC\assemble.bat file so that is as follows:

        @ECHO OFF
        C:\Program Files\Microchip\MPASM Suite\mpasmwin /c- /o- /q+ /l+ /x- /w1 compiled.asm

        The other option is to use the built-in assembler of GCBASIC. This has not been tested fully, but it does work fairly well. To use this, you'll need to download http://gcbasic.sourceforge.net/newfiles/update.zip . Once you've extracted it to C:\Program Files\GCBASIC, open the compile.bat file in Notepad and replace

        GCBASIC /NC %1 /O:compiled.asm /A:makeasm.bat /P:download.bat

        with

        GCBASIC /NC %1 /O:compiled.asm /A:GCASM /P:download.bat

        If a program doesn't work after being assembled with the built in assembler, please don't hesitate to let me know - I don't fully trust it myself yet. MPLAB may be a better option if you have a fast internet connection and can handle the large download.

        This bug has arisen because I normally use MPLAB or the built-in assembler. The next version of GCBASIC will use the built-in assembler instead of gputils.

         
        • Nobody/Anonymous

          I can't find the GCASM program you mentioned.
          It is not in the update.zip.

           
    • Hugh Considine

      Hugh Considine - 2007-05-04

      GCASM isn't an external program, it's integrated into GCBASIC.EXE.

       

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.