BASIC Stamp
[Image:BASIC-Stamp-2 eng.svg|right|thumb|200px|Diagram of a BASIC Stamp 2]
The BASIC Stamp is a microcontroller with a small, specialized BASIC interpreter built into ROM. It is made by Parallax, Inc. and has been popular with electronics hobbyists since the early 1990s.
Technical specifications
Although the BASIC Stamp 2 has the form of a 24 pin DIP chip, it is in fact a small printed circuit board that contains the essential elements of a microprocessor system:- A Microcontroller containing the CPU, a built in ROM containing the BASIC interpreter, and various peripherals
- 2kB of i²C EEPROM memory.
- A clock, in the form of a ceramic resonator
- Voltage regulator
- External input/output
Programming
The BASIC Stamp is programmed in a variant of the BASIC language, called PBASIC. PBASIC incorporates common microcontroller functions, including PWM, serial communications, I²C and 1-Wire communications, communications with common LCD driver circuits, hobby servo pulse trains, pseudo-sine wave frequencies, and the ability to time an RC circuit which may be used to detect an analog value.Once a program has been written in the 'Stamp Editor', an integrated development environment in Windows, the syntax can be checked, tokenized and sent to the chip through a serial/USB Mini-B cable, where it will run.
Versions
[Image:Basic Stamp 2.jpg|right|thumb|200px|The BASIC Stamp 2]There are currently four variants of the interpreter:
- BASIC Stamp 1
- BASIC Stamp 2, with six sub-variants:
- # BS2e
- # BS2sx
- # BS2p24
- # BS2p40
- # BS2pe
- # BS2px
- Javelin Stamp
- Propeller\Spin Stamp
The third variant is the Javelin Stamp. This module uses a subset of Sun Microsystems' Java programming language instead of Parallax's PBASIC. It does not include any networking facilities.
The fourth variant is the Spin Stamp. The module is based on the Parallax Propeller and therefore uses the SPIN programming language instead of PBASIC.
A number of companies now make "clones" of the BASIC Stamp with additional features, such as faster execution, analog-to-digital converters and hardware-based PWM which can run in the background.
The Parallax Propeller is gradually accumulating software libraries which give it functionality similar to the BASIC Stamp; however, there is no uniform list of which PBASIC facilities now have Spin equivalents.