Great Cow BASIC

From Wikipedia, the free encyclopedia

Great Cow Basic
Developed by Hugh Considine
Initial release 2006
OS Microsoft Windows, GNU Linux
License GNU General Public License
Website [1]

Great Cow BASIC or GCBASIC is an open-source BASIC compiler for most 8-bit Microchip PIC microcontrollers. It is written using FreeBASIC, and so can be run on Windows and Linux.

[edit] Contributors

The lead developer of GCBASIC is Hugh Considine. Several other developers have joined the project, contributing additional libraries and IDEs.

[edit] Example Program

A Hello World program, written to display the message on an LCD:

'Select the chip model
#chip 16F877A, 20
 
'Settings for LCD
#define LCD_IO 4
#define LCD_RS PORTD.0
#define LCD_RW PORTD.1
#define LCD_EN PORTD.2
#define LCD_DB4 PORTD.3
#define LCD_DB5 PORTD.4
#define LCD_DB6 PORTD.5
#define LCD_DB7 PORTD.6
 
'Show the message
Print "Hello, World!"

[edit] External Links