Contents
Index
Loading table of contents...
Table of Contents
Getting Started
ARMbasic Standalone Compiler
Install Software
Install Firmware on LPC
Writing your first program
Programming the IO
More complex programs
BASICtools Features
Trouble Shooting
ARMmite and ARMexpress
Install Software
Connect USB
Writing your first program
Programming the IO
More complex programs
BASICtools Features
Trouble Shooting
Wireless ARMmite
Install Software
Wire up USB
Wire up Zigbee
Wire up Bluetooth
Wire up Bluetooth Module
Custom Serial
BASICtools Features
Win98 Setup
ARMweb
Install Software
Connect Ethernet
Writing your first program
USB connection for BASICtools
Unlocking ARMbasic Firmware Installers
Standalone Compiler
Unlocking ARMbasic FIrmware Installers
Install Firmware on LPC
The Compiler
About
Main Features
Requirements
Installing
Running
ARMbasic and other BASICs
Differences from PBASIC
PreProcessor
Frequently Asked Questions
Revision History
Notices
The Language
PreProcessor
#define
#else
#ifdef
#if
#include
#undef
#warning
Simple Statements
Assignment
CALL
Comments
END
EXIT
GOSUB
GOTO
DEBUGIN
PRINT
READ
RETURN
STOP
Compound Statements
DO...LOOP
FOR...NEXT
IF...THEN
SELECT CASE
WHILE...LOOP
Other Statements
CLEAR
CONST
DATA
DIM
label:
MAIN
ON
RESTORE
RUN
STOP
Debugging
> (execute immediately)
. (print now)
@ (dump memory)
CLEAR
DEC
HEX
LIST
RUN
Functions
FUNCTION
SUB
ENDFUNCTION
ENDSUB
Operators List
& (String concatenation)
* (Multiplication)
+ (Addition)
+ (String concatenation)
- (Negation)
- (Subtraction)
/ (Division)
< (Less than)
<= (Less than or equal)
<> (Inequality)
= (Equality)
> (Greater than)
>= (Greater than or equal)
AND (Conjunction)
NOT (Bit-wise complement)
OR (Disjunction: Inclusive Or)
<< (Shift-left)
>> (Shift-right)
REV
XOR (Exclusive Or)
Operator Precedence
Data Types
Constants
Variables
Arrays
Strings
ARM Hardware Access
AddressOf operation
Converting Data Types
[ASC]
CHR
HEX
STR
VAL
Alphabetical Keyword List
* peripheral
ABS
AD
AND
AS
[ASC]
BAUD
BAUD0
BAUD1
BYREF
BYTEBUS
BYVAL
CALL
CASE
CHR
CLEAR
CONST
COS
COUNT
DATA
DAY
DEBUGIN
DEC
DIM
DIR
DO...LOOP
DOWNTO
ELSE
ELSEIF
END
ENDFUNCTION
ENDIF
ENDSELECT
ENDSUB
EXIT
FOR
FREAD
FREQOUT
FUNCTION
GOSUB
GOTO
HEX
HIGH
HOUR
HWPWM
IF...THEN
IN
INPUT
INTEGER
INTERRUPT
IO
I2CIN
I2COUT
LEFT
LEN
LIST
LOOP
LOW
MAIN
MINUTE
MOD
MONTH
NEXT
NOT
ON
OR
OUT
OUTPUT
OWIN
OWOUT
PRINT
PULSIN
PULSOUT
PWM
RCTIME
READ
RESTORE
RETURN
REV
RIGHT
RND
RUN
RXD
RXD0
RXD1
SECOND
SELECT CASE
SERIN
SEROUT
SHIFTIN
SHIFTOUT
SIN
SLEEP
SPIBI
SPIIN
SPIOUT
STEP
STOP
STR
STRCOMP
STRING
SUB
THEN
TIMER
TO
TXD
TXD0
TXD1
UNTIL
VAL
WAIT
WEEKDAY
WHILE
WRITE
XOR
YEAR
Additional Reserved Words
Runtime Library
Basic Time Functions
TIMER
WAIT
Mathematical Functions
ABS
MOD
RND
String Functions
String Comparisons
[ASC]
CHR
HEX
LEFT
LEN
RIGHT
STR
STRCOMP
VAL
Additional String Functions
Misc Functions
* (ARM periph access)
DEBUGIN
INTERRUPT
Logic Scope
Hardware Library
Date and Time Functions
DAY
HOUR
MINUTE
MONTH
SECOND
SLEEP
WEEKDAY
YEAR
Function List
FREAD
FREQOUT
HWPWM
I2C
ON
OneWire
PULSE
Serial - BitBanged
Serial - Hardware
SHIFTIN, SHIFTOUT
SPI
WRITE
Logic Scope
Timed Samples
User Sampling
StandAlone Scope
Hardware Specs
Interrupts
Mathematical Functions
RND
SIN, COS
Pin Controls
AD
BYTEBUS
DIR
HIGH
IN
INPUT
IO
LOW
OUT
OUTPUT
Miscellaneous
Logic Scope
PreProcessor
Aborts
Hardware Specs