|
|
Want to
use Great Cow BASIC, but unsure where to start? Follow this guide,
and you'll be using Great Cow BASIC in no time. Those who are new
to programming should follow all three steps.
Installing and Using Great Cow
BASIC:
- First, you'll need to install GCBASIC. If you have MPLAB or
gputils already, then download
this installer. Otherwise, download an installer which has both
Great Cow BASIC and gputils included
here.
- Once you've downloaded Great Cow BASIC, just run the installer.
It's best if you allow everything to install to the default
location - don't change any settings unless absolutely necessary.
You might be asked to choose between gputils and MPASM for use with
GCBASIC - choose whichever you have installed on your
computer.
- Great Cow BASIC is now usable. You can drag the file that you
want compiled on to "gcbasic.exe", which is found in the folder
where GCBASIC is installed. A file called "compiled.hex" will be
produced - download this to your PIC*, and you're ready
to go! If you don't like compiling things this way, you can install
an IDE. See below for more.
*See "Installing a Programmer" for more on
this
Installing a Programmer
(optional but recommended)
Want to actually do something with the files you compile? You'll
need to have a programmer and some corresponding programming
software to download the output of the compiler to your PIC. There
are many different programmers - this guide covers the installation
of IC-Prog and WinPIC, two pieces of software which both support many free programmer designs and PICs.
Installing
IC-Prog:
IC-Prog supports most free programmer designs that can be
obtained from the internet. A list of supported programmers is
available on the IC-Prog website.
- Download IC-Prog from http://www.ic-prog.com/
- Open the zip file, and extract "icprog.exe" to C:\Program
Files\GCBASIC
- Go to the GCBASIC folder, and run IC-Prog. On the configuration
screen that appears, set up the programmer you are using and the
port it is attached to. If you are using Windows NT/2000/XP then
choose "Windows API" for the interface, otherwise leave "Direct
I/O" selected. Click OK.
- Choose the model of PIC that you will be using, and close
IC-Prog.
- Open the "download.bat" file in Notepad. At the very bottom, add
this command: "icprog -lcompiled.hex" (do not copy the quotes)
- Everything should be set up. Drag-and-drop a file onto
compile.bat - your program will be compiled and loaded into IC-Prog ready to download to the PIC.
Installing WinPic:
WinPic is another program which supports several different free
programmer designs. Unfortunately it requires MPLAB to be installed,
but it can download programs to many chips not supported by IC-Prog.
- Download WinPic from http://freenet-homepage.de/dl4yhf/winpicpr.html
- If you haven't done so already, download and install MPLAB. Follow the links from http://www.microchip.com/
- Run the installer for WinPic, then run WinPic.
- Click on the "Options" tab. In the "MPLAB DEV-file
directory" box, enter the directory that MPLAB stores its .dev files
in. This is typically "C:\Program Files\Microchip\MPLAB IDE\Device".
- Click on the "Interface" tab, and select the programmer that you're using in the "Interface Type" box. Close WinPic.
- Open the "download.bat" file, which should be in the same
directory as gcbasic.exe Add this line to the bottom of the file:
"C:\Program Files\WinPic\Winpic.exe" compiled.hex
- Save and close download.bat. Now, WinPic should
automatically open up after compilation, ready to download the compiled
code to your PIC.
If you have instructions for another programmer, we'd love
to post them here! Please send them to w_cholmondeley@users.sourceforge.net.
To add another programmer you basically need to install it and then
add the command to call it in "makeasm.bat".
Installing an IDE
(optional)
Dragging and dropping isn't for everyone - you may like to have a
program where you can edit your program, and then compile it with a
single click. If so you might like to install an IDE and set it up
to work with Great Cow BASIC. This guide covers the installation of
Crimson Editor, BasicIDE and GCBIDE.
Installing Crimson Editor
- Download Crimson Editor from http://www.crimsoneditor.com/,
and install it.
- Add support for GCBASIC highlighting by downloading
this file, and extracting it to "C:\Program Files\Crimson
Editor" (Thanks to Internet Lam for the extension.gcb file.)
- Open Crimson Editor
- Click "Tools > Configure User Tools"
- First, set up Crimson Editor so that
it can compile GCBASIC programs. Enter the settings as shown in
this screenshot, then click "OK":
- Next, set up Crimson Editor to use the GCBASIC syntax
highlighting:
- Click "OK". Crimson Editor is now set up to work with Great Cow
BASIC.
- Open a Great Cow BASIC demo file. Click "Document > Syntax
Type > GCBASIC" to colour-code it
- Press F9 to compile your program. If you've set up a programmer
to work with GCBASIC, then your program will be sent straight
across to your PIC!
Installing BasicIDE:
BasicIDE is an IDE for GCBASIC written by Papadopol Luciano.
Please refer to http://www.swli9528ps.altervista.org/serv01.htm.
The site is in Italian, but is well illustrated. Note that the
installation directory of GCBASIC is "C:\Program Files\GCBASIC" for
English versions of Windows, not "C:\Programmi\GCBASIC". BasicIDE is
available in Italian and English.
Installing GCBIDE:
GCBIDE is an IDE written by Emile Tredoux for GCBASIC. Installing it is simple:
- Download GCBIDE from here: http://gcbide.googlepages.com/.
- Extract the contents of the archive to C:\Program Files\GCBASIC, and run GCBIDE.exe
- Click "Settings", and select the GCBASIC.EXE file.
- GCBIDE should now be set up, and ready to edit programs
Note that GCBIDE requires a recent version of GCBASIC to be installed for the chip pinout related features to work.
The 0.9.3.0 release does not contain the required chip pinout data - a
version of update.zip dated 7/10/2007 or later, or the updated chip data files must be installed.
Existing GCBASIC users may observe that GCBIDE uses the built-in
assembler of GCBASIC, which may be slightly buggy. Please report any
bugs concerning GCBASIC, the assembler, or the chip data files to the
forum, or via email to w_cholmondeley@remove_this.users.sourceforge.net.
If you have
instructions for another IDE, we'd love to post them here! Please
send them to w_cholmondeley@remove_this.users.sourceforge.net. Please remove the remove_this section of the address before trying to send, this is present to fool spammers.
More
Help
|