Allen Systems Main Banner
    Home

Software Collage

  BASIC-52
BASIC Interpreter for the 8051


Specifications
-  8051 Compatible
-  Full-featured BASIC
-  Floating-point Operations
-  Build-in Control Constructs
 
    Overview
BASIC-52 is a full-featured BASIC interpreter for Allen Systems' MICRO LAB-51 single board computer. It is burned into the 8K byte Flash Memory of the 89S8252 chip used on the board. BASIC-52 offers floating-point operations and most standard BASIC contructs. It also has non-standard commands and features which facilitate its use in process control applications.

BASIC-52 is a versatile and expandable interpreter by design. The user has access to system interrupts, and there are provisions for calling user supplied assembly language routines. User BASIC programs can be saved to disk on the host PC computer. It is also possible to save multiple BASIC programs to battery-backed RAM on the MICRO LAB-51 board.

A variety of dedicated functions are assigned to I/O lines on the 89S8252 chip by the interpreter. The P1.2 line of Port 1 is a pulse width modulation output which is controlled by the PWM command. P1.7 is a serial printer output line. The interpreter can recognize an external interrupt at External Interrupt 1 on -INT1 (P3.3).

The MICRO LAB-51 single board computer is a great hardware platform for BASIC-52. It has a prototyping area with access to the board's data bus, address bus, control lines, and chip selects. As a result, custom user circuitry can easily be added to the board. BASIC-52 allows the user to quickly test out any circuitry installed on the board.
 
       
    BASIC-52 Commands
 
   
ABS DATA INT ONERR PRINT# SGN UI0
AND DBY IP ONEX1 PRINT SIN UI1
ASC DIM LD@ ONTIME (F)PROG SPC UO0
ATN DO-UNTIL LEN OR PUSH SQR UO1
BAUD DO-WHILE LET PCON PWM ST@ USING
CALL END LIST PRG RAM STOP XBY
CBY EXP LIST# PH0. RCAP2 STRING XFER
CLEAR FREE LOG PH0.@ REM TAB XTAL
CLEARI GET MTOP PH1. RESTORE TAN +,-,*,/,**
CLEARS GOSUB NEW PH1.# RETI TCON =,<,>,>
CLOCK0 GOTO NEXT PH1.@ RETURN TIME >,<,>=,<=
CLOCK1 IDLE NOT PI RND TIMER0  
CONT IE NULL POP ROM TIMER1  
COS IF-THEN-ELSE ON-GOSUB PORT1 RROM TIMER2  
CR INPUT ON-GOTO PRINT RUN TMOD  
 
       
       
    Home | Products | Services | Contact Us

 
    Copyright 2008 Allen Systems
Last Updated on 1/5/2008
 
Folder Bottom
White Space