Menu

Moving to GCBasic compiler

Help
2009-03-19
2013-05-30
  • Nobody/Anonymous

    Hi,

    I'm an older gent that has become comfortable with the easy to use PicAxe system.  Problem is, their interpreter is too slow for this  project, and I'm not interested in learning another language. Need to move up to a Basic compiler, and it looks like GCBasic can do it.

    What is needed to program a 10F2-- with the GCBasic compiler?
    Have a PICkit 2 starter kit that apparently needs some adapters for the 10F2--.

    Need an easy to understand and implement way to write and download GCBasic programs into the demo board for code testing, and then a 10F.  Been spoiled by PicAxe and addled by age.  All comments and suggestions appreciated.

     
    • kent_twt4

      kent_twt4 - 2009-03-19

      Welcome, GCBasic should speed things up considerably over the interpreter style of chips.  That's what landed me here also, as the OOPIC wouldn't do Dallas 1-wire without a bus master chip.

      The requirements for programming the 10f chips is no different then the 12f/16f/18f chips.  To get you on your way, scroll over the summary link at the top of the page and click on the website.  There you can download GCBasic to your computer from there.  Be sure to add the latest update zip with chip files from the latest build tab/link.  Then proceed to the getting started tab to understand how to setup Crimson Editor, or an IDE, to start editing and compiling your programs.  With the Pickit 2 auto import + write device feature, you have one step compile and device downloads capability from the editor.

      It is easy to add a 10f adapter to the Pickit 2 proto area.  An  8 pin DIP socket is one way to go, for a smt-pcb-adapter free development, as they make DIP packages for the 10f's.  Use some point to point wiring for V+, GND, ICSP, and all is ready to go.

      The data sheets for the 10f's are great, they read like a short story compared to the advanced 18f's.  Be forewarned,  the baseline PIC's are missing two assembly instructions, sublw and addlw.  Some GCBasic commands, functions may not work properly because of this.  The workaround may employ assembler tactics like 'incf my_variable' or 'decf my_variable'.

      Plenty of code examples in the website online help.  The '?' GCBasic.chm file in the GCBasic folder is a little more up to date (e.g. Interrupts) then the online help file.

       

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.