28128 Parallax Inc, 28128 Datasheet - Page 35
28128
Manufacturer Part Number
28128
Description
KIT BASIC ANALOG/DIGI PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28129.pdf
(176 pages)
Specifications of 28128
Accessory Type
ADC, DAC
Product
Microcontroller Accessories
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 35 of 176
- Download datasheet (3Mb)
Next, three variables are defined. Variables can be used to store values while the
program is running. The letters
the variable a can store a single binary digit, likewise with the variable
defined to be a variable that stores a "nibble" of binary information.
This segment of code uses commands introduced in the last chapter. First, two I/O pins
are declared inputs and two more pins are declared outputs. Then the Debug Terminal is
opened and cleared.
We want the BASIC Stamp keep checking the inputs over and over again. We also want
the BASIC Stamp to automatically update the LEDs and the Debug Terminal with the
latest information on the pushbuttons. The way to accomplish this is to keep repeating the
program inside a
send the program back to this point we’ll use the
Next, we need to check the state of the pushbuttons by checking the input at pins P0 and
P1. The first of these two commands sets the bit variable a equal to the state measured at
pin P0. The second command sets the bit variable b equal to the state measured at pin P1.
a
b
d
INPUT 0
INPUT 1
OUTPUT 4
OUTPUT 5
DEBUG CLS
DO
Memory and Food: A bit of memory can store one binary digit, either a 0 or a 1.
A nibble of memory stores 4-bits.
A byte (pronounced bite) stores 8-bits.
A word stores 16 bits.
Since a bit, a nibble, and a byte, all sound like references to eating food, perhaps a better
name for 16-bits might have been "dinner".
a = IN0
b = IN1
VAR
VAR
VAR
DO…LOOP
Bit
Bit
Nib
loop. To define the start point of the loop we use
a
and
b
are defined as variables that store 1-bit each. So,
LOOP
command.
b
. The letter
DO
and to
d
is
Related parts for 28128
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: