27297 Parallax Inc, 27297 Datasheet - Page 21
27297
Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet
1.27297.pdf
(230 pages)
Specifications of 27297
Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 21 of 230
- Download datasheet (3Mb)
Programming Essentials
CONTENTS OF A WORKING PROGRAM
In Sections 1 - 4 of the
introduced to the BASIC Stamp, its architecture, and the concepts of variables and
constants. In this section, we’ll introduce the various elements of a program: linear
code, branching, loops, and subroutines.
The examples in this discussion use
program structure. Italics are used to indicate the sections of pseudo-code that
require replacement with valid programming statements in order to allow the
example to compile and run correctly. You need not enter any of the examples here
as all of these concepts will be used in the experiments that follow.
People often think of computers and microcontrollers as “smart” devices and yet,
they will do nothing without a specific set of instructions. This set of instructions is
called a program, and it is our job to write it. Programs for the BASIC Stamp are
written in a language called PBASIC, a Parallax-specific version of the BASIC
(Beginner’s All-purpose Symbolic Instruction Code) programming language. BASIC is
very popular because of its simplicity and English-like syntax. Since its creation at
Dartmouth College in the mid 1960’s it has become one of the dominant
programming languages available for platforms as small as the BASIC Stamp
microcontroller, and as large as mainframe computer systems.
A working program can be as simple as a list of statements. Like this:
This is a very simple, yet valid program structure. What you’ll find, however, is that
most programs do not run in a straight, linear fashion like the listing above. Program
flow is often redirected with branching, looping, and subroutines, with short linear
sections in between. The requirements for program flow are determined by the goal
of the program and the conditions under which the program is running.
statement 1
statement 2
statement 3
END
BASIC Stamp Syntax and Reference Manual
pseudo-code
to demonstrate and describe
you were
Related parts for 27297
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: