Page 46 - Making PIC Microcontroller Instruments and Controllers
P. 46
THE SOFTWARE, THE COMPILERS,
AND THE EDITOR
MicroEngircering Labs, Inc. provides h'ro BASIC compile,'s that make wdting the code
for the PIC family ofmicrocontrollers offered by Microchip Technology tremendously
easy. In this book, we will discuss the more powedul of the two: the PICBASIC PRO
Compiler A listing of the conmands provided by each compiler is provided in the fol
lowing to let you compale tt€ tw., compilers and select the one best suited to both your
budget and yout needs.
The Basic Compiler Instruction Set
The following is the smaller compiler of the two:
ASM,.ENDASM Insert assembly language code section.
BRANCH computed COTO (equivalent to ON..GOTO).
BUTTON De bounce and auto-repeat input on specified pin.
CALL Call assembly language subroutine.
EEPROM Defirc initial contents of on-chip EEPROM.
END Stop execution and enter low power mode,
FOR..NEXT Repeatedly execute statement(s).
GOSUB Call BASIC subroutine at specified label.
GOTO Continue execution at specified label.
35