11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler2.3. Ready to start ?Once the compiler is run you will be presented with an editor. This allows BASIC codeto be written, compiled, then programmed using one of many programmers. The editorimplements syntax highlighting for ease of use. All keywords, numbers, comments etchave a different colour representing them.The editor window above, shows a simple program for flashing an LED.The program is compiled by clicking on the Compile button, or right clicking themouse and choosing Compile. The program will then be compiled and assembled, andif there are no errors in the code, the Program button will be enabled. Any errors will bedisplayed on the bottom window, along with the offending line or lines.As an example of your first piece of code, enter the following program: -Again:DEVICE 16F84DECLARE XTAL 4SYMBOL LED = PORTB.0HIGH LEDDELAYMS 500LOW LEDDELAYMS 500GOTO AgainThis will flash an LED connected to bit-0 of PORTB.8Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!