PBASIC
PBASIC is a microcontroller based version of BASIC created by Parallax, Inc.. The language was created to bring ease of use to the microcontroller and embedded processor world. PBASIC is used for writing code for the BASIC Stamp microcontrollers. After the code is written it is tokenized and loaded into an EEPROM on the microcontroller. These tokens are fetched by the microcontroller and used to generate instructions for the processor.
Syntax
When starting a PBASIC file, you define which version of the Basic Stamp, and what version of PBASIC you are using with tags. Variables and constants are usually declared first thing in a program. The DO LOOP, FOR NEXT loop, IF and ENDIF, and some standard BASIC commands are part of the language. However, many commands native to PBASIC like PULSOUT, HIGH, LOW, DEBUG, and FREQOUT are used for special purposes which can't be done in regular BASIC. (Like having the Basic Stamp ring a piezo-speaker)
External links
- Parallax, Inc. – Corporate website
- "Comparing PBASIC 2.5 control structures to the old PBASIC" – By Tracy Allen, EME Systems, 2003