Re: Any recommendations for a good overview of pic and basic stamps

From: Dave Platt (dplatt_at_radagast.org)
Date: 08/23/04


Date: Mon, 23 Aug 2004 19:36:19 -0000

In article <412A4471.3040001@alltel.net>,
Bill Velek <billvelek--NO-SPAM--@alltel.net> wrote:

>My impression is that these are simply chips that can be programmed
>(perhaps something like an EPROM?), but it is done with very simple
>basic-language programs that are fairly short with relatively few
>instructions, and that the programming is done on a computer and then
>loaded onto the chip via a cable linking the chip and a PC. Then the
>chip can be installed on a small circuit board of some sort (e.g., a
>thermostat), after which it is then able to run the basic-program
>completely independent of the PC.

That's basically what you get with a BASIC Stamp or the equivalent.

The underlying microcontroller - a PIC - is a small, inexpensive
processor which is programmable in its own assembly language / machine
code. PICs have somewhat of a RISC (reduced-instruction-set)
architecture, with relatively few different instruction types. Their
design is somewhat quirky, and programming them in assembler requires
some study of their quirks. Older models use OTP (one-time-
programmable) memory, or UV-eraseable EPROM, for code storage. Newer
variants use flash memory.

Newer PICs have enough memory and flexibility to be programmed in C or
FORTH - somewhat more friendly than assembler, although you still need
to understand the processor.

The BASIC Stamp and similar products use a PIC which has been
pre-programmed (permanently) to serve as an interpreter for a simple
variant of the BASIC language. The BASIC is compiled into binary form
(byte codes), and downloaded into the PIC's internal EEPROM or into an
external serial EEPROM. The PIC can then run the interpretive basic,
with no connection to the PC which did the programming. The programs
you can write are clearer and easier to understand than assembly or C
or FORTH (at least, that's the theory), but are rather limited in size
and complexity due to the overhead of the interpreter and the limited
size of the EEPROMs.

Can't suggest a specific site, I'm afraid, except to suggest that you
start at the manufacturers' sites. You can probably download a manual
for the BASIC Stamp or a compatible product.

-- 
Dave Platt <dplatt@radagast.org>                                   AE6EO
Hosting the Jade Warrior home page: http://www.radagast.org/jade-warrior
  I do _not_ wish to receive unsolicited commercial email, and I will
     boycott any company which has the gall to send me such ads!


Relevant Pages

  • Re: Trivia Question
    ... This is what I meant by "ignorance". ... people's *existing* HLL knowledge to learn assembly language programming? ... Which I had such an assembler when starting with Delphi. ... After working with the needed instructions some times, repleatly, they tend to stick around in your memory. ...
    (alt.lang.asm)
  • Re: Evolution
    ... >> it different from HLL programming? ... inline assembler and larger parts by linking to an assembler ... the macro is from a macro library which you have written a long ... or two instructions if you ...
    (alt.lang.asm)
  • Re: HLA History
    ... >> sequence of processor instructions to solve a given problem. ... I have written my trivial assembler ... >> programming. ... pupils to learn to write with 10 fingers. ...
    (alt.lang.asm)
  • Re: Multi-Statements Lines
    ... Instructions are not isolated things, ... mov eax 0 ... assembler instructions as having one function. ... bash at learning Windows assembler programming. ...
    (alt.lang.asm)
  • Re: Debug.exe for win32
    ... by prepending 0x68h before your instructions. ... this with her DOS source code, being her assembler only supported ... However, if your talking about Windows programming, the story ...
    (alt.lang.asm)

Quantcast