This module uses a subset of Sun Microsystems' Java programming language instead of Parallax's PBASIC. While the BS1 and BS2 use a PIC, the remaining BASIC Stamp 2 variants use a Parallax SX processor. The BS2 sub-variants feature more memory, higher execution speed, additional specialized PBASIC commands, extra I/O pins, etc., in comparison to the original BS2 model.
(1995) BASIC Stamp 2 (BS2), with six sub-variants:.There are currently four variants of the interpreter: Once a program has been written in the 'Stamp Editor', an integrated development environment (IDE) in Windows, the syntax can be checked, tokenized and sent to the chip through a serial/ USB Mini-B cable, where it will run.
PBASIC incorporates common microcontroller functions, including PWM, serial communications, I☬ 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. The BASIC Stamp is programmed in a variant of the BASIC language, called PBASIC. If the power is reconnected the stamp immediately starts executing the program in slot 0 (of 8, numbered 0.7). A serial connection to a personal computer allows the programmer to download software to the BASIC Stamp, which is stored in the onboard non-volatile memory device: it remains programmed until it is erased or reprogrammed, even when the power of the stamp is removed.
The end result is that a hobbyist can connect a 9 V battery to a BASIC Stamp and have a complete system. A clock, in the form of a ceramic resonator.A Microcontroller containing the CPU, a built in ROM containing the BASIC interpreter, and various peripherals.Although the BASIC Stamp 2 has the form of a 24 pin DIP chip, it is in fact a small printed circuit board (PCB) that contains the essential elements of a microprocessor system: