|
Write your PICmicro MCU programs
in BASIC!
The low-cost PicBasic Compiler (PBC) makes it easy to write
programs for the fast Microchip PICmicro MCU. PBC converts these programs into hex or
binary files that can be programmed directly into a PICmicro microcontroller. The
easy-to-use BASIC language makes PICmicro MCU programming available to everyone with its
English-like instruction set. No more scary assembly language!
|
Code: Picbasic Price: $99
|
Buy
online >>
|
 |
The PicBasic Compiler instruction set is compatible with the
Parallax BASIC Stamp I. BS1 programs can be compiled into PICmicro MCU code and programmed
( see programmer )directly into a PICmicro
MCU, eliminating the need for a BASIC Stamp module. These programs execute much faster and
may be longer than their Stamp equivalents. They may also be protected so no one can copy
your code. Other benefits include substantial cost savings over a BASIC Stamp.
All of the PicBasic Compiler library routines act on the
8-bit PORTB of the PICmicro MCU. PicBasic programs may use up to 2K of code space.
The PicBasic Compiler has many features beyond the BS1. Peek
and Poke instructions let you use additional microcontroller features not available on the
BASIC Stamp I. These include access to PORTA, B, C, D and E (if the particular device has
them), A/D converters, hardware serial ports and other on-chip features in BASIC,
foregoing the need to use assembly language.
But if you really want to use assembly language instructions,
they may be mixed with BASIC instructions through the use of the PicBasic Compiler's
in-line assembler and Call instruction. Our PICmicro MCU macro assembler is included and
automatically invoked by the PicBasic Compiler.
The I2C commands let the PICmicro MCU talk to external I2C
devices, such as serial EEPROMs, using only a 2-wire interface. Two PORTA pins have been
dedicated to the task (the particular pins assigned may be easily changed if desired) so
there is no need to tie up any of the special purpose PORTB pins.
PBC has more user variables. The BS1 only provides variables
from B0 - B13 and W0 - W6. The PicBasic Compiler allows variables from B0 - B79 and W0 -
W39 when used with PICmicro MCUs having 96 RAM registers in bank 0 like the PIC16C622 and
16C74.
The PicBasic Compiler is a DOS command line application (it
also works in Windows) and runs on PC compatibles. It can create programs for the
PIC12C67x, PIC14Cxxx, PIC16C55x, 6xx, 7xx, 84, 92x and PIC16F8xx microcontrollers and
works with most PICmicro MCU programmers, including our
Programmer. A printed manual
and sample programs are included to get you started.
The PicBasic Compiler can now be used inside Microchip's
MPLAB IDE. This allows programs to be edited and simulated within Windows.
Current PicBasic Compiler owners can upgrade to the latest
version at any time.
If you want maximum compatibility with the BASIC Stamp I, or
you would like to save a little money, or you just don't need all the extra features in PicBasic Pro, please take a look at the standard
PicBasic Compiler.
Resumen de instrucciones del compilador:
| |
ASM |
Insert assembly language
code section. |
| |
BRANCH
|
Computed GOTO (equivalent
to ON..GOTO). |
| |
BUTTON |
Debounce and auto-repeat
input on specified pin. |
| |
CALL |
Call assembly language
subroutine. |
| |
EEPROM
|
Define initial contents
of on-chip EEPROM. |
| |
FOR ... NEXT
|
Repeatedly execute
statement(s). |
| |
GOSUB
|
Call BASIC subroutine at
specified label. |
| |
GOTO |
Continue execution at
specified label. |
| |
HIGH |
Make pin output high. |
| |
IF THEN |
GOTO if specified
condition is true. |
| |
INPUT
|
Make pin an input. |
| |
LET |
Assign result of an
expression to a variable. |
| |
LOOKDOWN
|
Busca un valor en una tabla. |
| |
LOOKUP
|
Search table for value. |
| |
LOW |
Make pin output low. |
| |
NAP |
Power down processor for
short period of time. |
| |
OUTPUT
|
Make pin an output. |
| |
PAUSE
|
Delay (1mSec resolution). |
| |
PEEK
|
Read byte from register. |
| |
POKE
|
Write byte to register. |
| |
POT |
Read potentiometer on
specified pin. |
| |
PULSIN
|
Measure pulse width
(10us resolution). |
| |
PULSOUT
|
Generate pulse (10us
resolution). |
| |
PWM |
Output pulse width
modulated pulse train to pin. |
| |
RANDOM
|
Generate pseudo-random
number. |
| |
READ |
Read byte from on-chip
EEPROM. |
| |
REVERSE
|
Make output pin an input
or an input pin an output. |
| |
SERIN
|
Asynchronous serial
input (8N1). |
| |
SEROUT
|
Asynchronous serial
output (8N1). |
| |
SLEEP
|
Power down processor for
a periond of time (1 Sec resolution). |
| |
SOUND
|
Generate tone or white-noise
on specified pin. |
| |
TOGGLE |
Make pin output and
toggle state. |
| |
WRITE
|
Write byte to on-chip
EEPROM. |
 |
International Orders
|
Registered
mail low cost shipping, delivery delay: 14 to 28 days.
| |
PicBasic |
$99 |
|
|
Registered mail |
$30 |
| |
Total: |
$129 |
|
 |
Shipping
inside the US |
Shipping
by UPS
| |
PicBasic |
$99 |
|
|
Shipping
by UPS |
$15 |
| |
Total: |
$114 |
|