
I wrote a simple clock program and found that code generated for Would be useful for quickly prototyping ideas, probably moreso for theįeatures available in the Pro version such as INKEY (keypad), PRINT (LCD), SOUND command (see Description section above). This at least is true of the Lite version.Ī short program was written to read a button attached to RA0 via the BUTTONĬommand, and to produce sound on a piezeo-electric element on RB0 using the PIC BASIC doesn't require code from libraries, generating all the code Name such as myButton and myLED via the SYMBOL command for use in SET, CLEAR, Instead of using pin specifications such as A.0 and B.7 one can assign a Pitch = pitch - 10 : if pitch = 0 then pitch = 200
' Sound and button tests using my simple PIC development board. Labels must appear in column 1, spaces must appear around a colon in Other aspects of code format are also prescribed, such as that
Note that lines starting with a quote areĬomments. Which briefly produces a higher and higher pitched sound and flashes a LEDĮach time a button is pressed.
Operators: math (eg +,*), bitwise (eg >, &), relational (eg >=),Ī PIC BASIC program is required to have a certain structure, with declarationĬommands (DEVICE, DEFINE, DIM etc) before all others. I/O: eg DEFINE PORTA, OUTA, SET, CLEAR, BUTTON, SOUND. Flow control: eg GOTO, GOSUB.RETURN, FOR.NEXT, IF.THEN. Declaration/Initialisation: eg DEVICE, DIM, SYMBOL, DATA. The Help menu contains a useful command syntax summary item. Standard toolbar and menus make it easy to start using. The IDE is a simple Windows application with 3 panes: source, assembly LET's offering is an IDE and compiler for a simple dialect of BASIC tailoredįor microcontrollers, in particular, the 12C508 12C509, 16C5x (x=4.7), 16C71, PIC BASIC version 4.6 is on the SA PIC User Group's CD. The latterĪdds more PIC documentation and BASIC commands for LCD, keypad, I2C bus, The Lite version is free, and the Pro version is £25 on CD. Subsequently, information was found on the web re: commercial compilersĭerived from LET's original product, by Crownhill Associates.Įmail: newer versions by Crownhill Associates: Version 4.6 of the LET BASIC compiler is the target of this review. PIC BASIC compiler version 4.6 and integrated development environment (IDE),