18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

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

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

Chapter 5<br />

BASIC-52 Keywords by Function<br />

<strong>The</strong> following is a quick reference to BASIC-52’s keywords, grouped by function. After this<br />

is a more detailed list, arranged alphabetically, with the syntax and a brief description of<br />

what each keyword does. Some of the keywords, like RUN, LIST, and PRINT, are ones<br />

that you’ll use constantly. A few, like NULL or UI0, have specialized uses that you may<br />

never need. Again, for a more complete reference, see the BASIC-52 programming manual.<br />

Running and Listing Programs<br />

CONT<br />

LIST<br />

NEW<br />

RAM<br />

REM<br />

ROM<br />

RROM<br />

RUN<br />

STOP<br />

XFER<br />

Storing Programs in NV Memory<br />

FPROG<br />

FPROG1-FPROG6<br />

PGM<br />

PROG<br />

PROG1-PROG6<br />

Program Control Structures<br />

(loops and subroutines)<br />

DO UNTIL<br />

DO WHILE<br />

END<br />

FOR TO [STEP] NEXT]<br />

GOSUB<br />

GOTO<br />

IF THEN [ELSE]<br />

ON GOSUB<br />

ON GOTO<br />

RETURN<br />

Printing and Displaying Information on<br />

the Host Computer<br />

PH0.<br />

PH1.<br />

PRINT, P., ?<br />

Additional PRINT Formatting<br />

CR<br />

SPC<br />

TAB<br />

USING, U.<br />

Input/Output<br />

CBY<br />

DBY<br />

GET<br />

INPUT<br />

LIST#<br />

NULL<br />

PORT1<br />

PH0.#<br />

PH1.#<br />

PRINT#, P#, ?#<br />

XBY<br />

System Control Values<br />

BAUD<br />

FREE<br />

LEN<br />

MTOP<br />

STRING<br />

72 <strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong>

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

Saved successfully!

Ooh no, something went wrong!