BASCOM-LT

BASCOM LT© is a Windows BASIC COMPILER for the Atmel AT89C2051 micro-controller.

BASCOM LT compiles BASIC programs into a binary and/or hexadecimal file
These files can be programmed into the chip’s unique Flash ROM.
BASCOM LT is designed for Atmel's unique 89C2051 microprocessor. Programs will also run on other 8051 family members.

Key Benefits

  • Structured BASIC with labels.
  • Structured programming with IF-THEN-ELSE-END IF, DO-LOOP, WHILE-WEND, SELECT- CASE.
  • Fast machine code instead of interpreted code.
  • Variables and labels can be as long as 32 characters.
  • Bit, Byte, Integer, Word, Long and String variables.
  • Compiled programs work with any 8051 uP such as AT89C1051, AT89C2051, 8031, 8032, 8051, 8052, 80552, 80535 and 80537 m Processors.
  • Statements are highly compatible with Microsoft’s VB/QB.
  • Special commands for LCD-displays , I2C chips and 1WIRE chips.
  • Integrated terminal emulator with download option..
  • Integrated simulator for testing.
  • Integrated flash programmer and support for SPI, PG2051, PG302. (hardware can be purchased separately)
  • Editor with statement highlighting.
  • Context sensitive help.

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, PRINTHEX, INPUTHEX, LCD, UPPERLINE, LOWERLINE,DISPLAY ON/OFF, CURSOR ON/OFF/BLINK/NOBLINK, HOME, LOCATE, SHIFTLCD LEFT/RIGHT, SHIFTCURSOR LEFT/RIGHT, CLS, DEFLCDCHAR, WAITKEY.
 
Numeric functions
AND, OR, XOR, INC, DEC, MOD, NOT, ABS, BCD.
 
I2C
I2CSTART, I2CSTOP, I2CWBYTE, I2CRBYTE, I2CSEND and I2CRECEIVE.
 
Interrupt programming
ON INT0/INT1/TIMER0/TIMER1/SERIAL, RETURN, ENABLE, DISABLE, PRIORITY SET/RESET, COUNTER, INTERRUPTS, CONFIG.
 
Bit manipulation
SET, RESET, ROTATE, BITWAIT , P1, P3.
 
Variables
DIM, BIT , BYTE , INTEGER , WORD, LONG, STRING , DEFBIT, DEFBYTE, DEFINT, DEFWORD.
 

Miscellaneous

REM, ' , SWAP, END, STOP, CONST, DELAY, WAIT, WAITMS, GOTO, GOSUB, POWERDOWN, IDLE, GETDATA, SETDATA, DECLARE, CALL, SUB, END SUB, MAKEDEC, MAKEBCD, INP,OUT, ALIAS.
 
Compiler directives
$INCLUDE, $NOINIT, $BAUD and $CRYSTAL, $OBJ, $SERIALINPUT, $SERIALOUTPUT, $ROMSTART, $RAMSIZE, $RAMSTART.
 
String
STRING, SPACE, LEFT, RIGHT, MID, VAL, LEN, STR, HEX

To make a program takes just a few steps :

  • Write the program in BASIC
  • Compile it to fast machine binary code
  • Test your program with the integrated simulator (with additional hardware you can simulate the hardware also).
  • Program the 89Cx051 with the integrated programmer.
    (hardware must be purchased separately)

The program can be written in a comfortable color coded editor.


A report can be printed after the program is compiled.



The simulator lets you test your program before writing it to the Flash ROM.

You can watch variables, step through the program one line at a time or run to a specific line, or you can alter variables.



When you are done with the simulator it is time to program the chip.

picture of programmer

Finally help is under the F1 button.


Pricing

 

The program, documentation and samples are in English. The package includes the program, help file, samples and a short guide (disk format = 3.5" , 1.44 MB).

 

Join the BASCOM listserver : http://www.mcselec.com/bascom.htm