a Windows BASIC COMPILER for the AVR
It is designed to run on W95/W98/NT/XP
BASCOM AVR - Reference
and User Guide BASCOM-AVR
Ver.18.104.22.168 - Rel..
04 November 2008.
- DEMO [04 November 2008
Rel. 22.214.171.124] - Length 19,6 MB -
A new version 126.96.36.199
is released of BASCOM-AVR.
There is a new DEMO
as well. This demo can create files of 4 KB.
BASIC with labels.
programming with IF-THEN-ELSE-END IF, DO-LOOP, WHILE-WEND, SELECT-
machine code instead of interpreted code.
and labels can be as long as 32 characters.
Byte, Integer, Word, Long, and String variables. (Prof. Edition
programs work with all non-MEGA AVR microprocessors that have
internal memory. The Prof-Edition will support the MEGA series
are highly compatible with Microsofts VB/QB.
commands for LCD-displays , I2C
chips and 1WIRE chips.
terminal emulator with download option..
simulator for testing.(at
the moment not ready yet, will be added)
ISP programmer (aplication note AVR910.ASM). Other programmers
will be added on request.
with statement highlighting.
sensitive help. (help
not ready yet)
The following statements are supported :
Decision and structures
IF, THEN, ELSE, ELSEIF,
END IF, DO, LOOP, WHILE, WEND, UNTIL, EXIT DO, EXIT WHILE, FOR,
NEXT, TO, DOWNTO, STEP, EXIT FOR, ON .. GOTO/GOSUB, SELECT, CASE.
Input and output
PRINT, INPUT, INKEY,
PRINT, INPUTHEX, LCD, UPPERLINE, LOWERLINE,DISPLAY ON/OFF, CURSOR
ON/OFF/BLINK/NOBLINK, HOME, LOCATE, SHIFTLCD LEFT/RIGHT, SHIFTCURSOR
LEFT/RIGHT, CLS, DEFLCDCHAR, WAITKEY, INPUTBIN, PRINTBIN,
OPEN, CLOSE, DEBOUNCE, SHIFTIN, SHIFTOUT.
AND, OR, XOR, INC, DEC,
MOD, NOT, ABS, BCD.
I2CSTART, I2CSTOP, I2CWBYTE,
I2CRBYTE, I2CSEND and I2CRECEIVE.
1WWRITE, 1WREAD, 1WRESET.
SPIINIT, SPIIN, SPIOUT.
RETURN, ENABLE, DISABLE, COUNTERx, CAPTUREx, INTERRUPTS, CONFIG,
SET, RESET, ROTATE, SHIFT,
DIM, BIT , BYTE , INTEGER
, WORD, LONG, SINGLE, STRING , DEFBIT, DEFBYTE, DEFINT, DEFWORD.
(SINGLE only for the Prof. Edition)
REM, ' , SWAP, END, STOP,
CONST, DELAY, WAIT, WAITMS, GOTO, GOSUB, POWERDOWN, IDLE, DECLARE,
CALL, SUB, END SUB, MAKEDEC, MAKEBCD, INP,OUT, ALIAS, DIM , ERASE,
DATA, READ, RESTORE, INCR, DECR, PEEK, POKE, CPEEK, FUNCTION.
$INCLUDE, $BAUD and $CRYSTAL,
$SERIALINPUT, $SERIALOUTPUT, $RAMSIZE, $RAMSTART, $IRAMSTART,
$DEFAULT XRAM, $ASM-$END ASM, $LCD.
STRING, SPACE, LEFT,
RIGHT, MID, VAL, HEXVAL, LEN, STR, HEX, LTRIM, RTRIM, TRIM.
To make a program takes just a few steps
||Write the program in BASIC
||Compile it to fast machine binary code
||Test the result with the integrated simulator(with
additional hardware you can simulate the hardware too).Will be added later.
For now use AVR Studio
||Program the chip with one of the integrated programmers.
(hardware must be purchased
can be written in a comfortable MDI color coded editor.
Besides the normal editing features, the editor supports Undo,
Redo, Bookmarks and block indention.
SIMULATOR NOT READY YET!
Pictures are from BASCOM-8051.
The simulator let you test your program
before writing it to the uP.
You can watch variables, step through the program one line at
the time or run to a specific line,
or you can alter variables.
To watch a variables value you can also point the mouse cursor
A powerful feature is the hardware emulator,
to emulate the LCD display, and the ports.
The LCD emulator also emulates custom build LCD characters!
When you are done with the
simulator it is time to program the chip using one of the supported
The program, documentation and
samples are in English.
cross upgrade for BASCOM users