BASCOM
LT©
AT89x051 BASIC Compiler
BASCOM LT© is a Windows
BASIC COMPILER for the AT89C2051 µP.
BASCOM
LITE - User Guide BASCOM-LT
Ver.1.21, - Rel.. 8 March
1999.
BASCOM
LITE - LANGUAGE REFERENCE BASCOM-LT
Ver.1.26, - Rel.. 8 March
1999.
BASCOM LT© Compiles
BASIC programs into a binary and/or hexadecimal file
These files can be programmed into the chip's unique FlashROM.
BASCOM LT© is designed
for Atmels unique 89C4051 microprocessor but programs
run on other 8051 family members
as well.
BASCOM LT©
Key Benefits
- Structured BASIC with labels.
- Structured programming with:
- IF-THEN-ELSE-END IF, DO-LOOP, WHILE-WEND.
- Fast machine code instead of interpreted code.
- Variables and labels can be as long as 32 characters.
- Bit, Byte and Integer Variables.
- Compiled programs work with:
- AT89C1051, AT89C2051, AT89C4051,
8031, 8032, 8051, 8052, 80552,
80535, 80537, and 89S8252 µP Processors.
- Statements are 99% compatible with Microsoft's Qbasic.
- Special commands for LCD-Displays
en I2C IC's.
- Integrated terminal emulator
- Integrated simulator for testing.
- Integrated flash programmer . (hardware can be purchased
separately, ex. MPS 051
T-EMU52)
- Editor with statement highlighting.
- Context sensitive help.
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:
ex. MPS 051)
- Program the 89Cx051 with the integrated
programmer.
(hardware must be purchased
separately: ex. MPS
051)
BASCOM LT©
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, EXIT FOR, ON .. GOTO/GOSUB.
- 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.
- Numeric functions
- AND, OR, XOR, INC, DEC, MOD, NOT, 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, BYTE ( 0 tot 255 ) , INTEGER ( -32767 to 32767) and
BIT ( 0 or 1 ), WORD(0-65535), 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.
- XRAM support (for µP
which can address external memory such as 8032)
- INP, OUT, $RAMSIZE, $RAMSTART, STRING, SPACE, LEFT, RIGHT,
MID, VAL, LEN, STR, HEX
Page up-dated at January 24,
2014
Home
Software Utility
CPU TablesThe Demo Programs
Es. BAS.
K51