Page 137 - Robots Androids and Animatrons : 12 Incredible Projects You Can Build
P. 137
to write and compile PICBASIC code in a Windows environment.
Each statement is color-coded, making it much easier to spot errors
and read through your code. The freebie version allows you to write
programs up to 150 lines and open up three source files at once for
easy copy and paste.
The most important feature of the CodeDesigner IDE interface is
that it allows you to first write the program, then compile the pro-
gram into a hex file, and finally (in theory) program the micro-
controller while in the same window. This reduces program
development time. Typically, I write while in DOS or an MS-DOS
prompt window. I write the program text file using the DOS Edit
program. When finished, I then exit Edit and manually compile
the program. If there is a problem (more times than not), I then
restart Edit and debug the code. When the program is completely
debugged, I load the program into the PIC microcontroller using the
EPIC software and programming board. At this point the micro-
controller/circuit is tested. If it functions properly, I’m finished; if
not, I begin rewriting the program.
In using CodeDesigner, the ease with which you can write and de-
bug PICBASIC programs and load them into the microcontroller
increases productivity. My experience is that I can code and debug
116 my programs while in Windows, but to program a microcontroller,
I still must drop down into DOS.
While the freebie version (CodeDesigner Lite) is functional, if you
like it, you can then upgrade to the full-featured CodeDesigner.
CodeDesigner is available in a hobbyist version for $45.00 and a
standard version for $75.00.
The hobbyist version of CodeDesigner only works with the PICBA-
SIC compiler. The standard version will work with both the
PICBASIC and PICBASIC Pro compilers. Some of the advanced
features of CodeDesigner include
AutoCodeCompletion: CodeDesigner makes writing code
much easier with smart pop-up list boxes that can
automatically fill in statements and parameters for you.
Multiple document support.
Line error highlighting: CodeDesigner will read error data and
highlight error lines when you compile your PICBASIC project.
QuickSyntaxHelp: The QuickSyntaxHelp feature displays
statement syntax when you type in a valid PICBASIC statement.
Statement description: Statement descriptions are displayed in
the status bar when you type in a valid PICBASIC statement.
Team LRN
Chapter six