28128 Parallax Inc, 28128 Datasheet - Page 44

no-image

28128

Manufacturer Part Number
28128
Description
KIT BASIC ANALOG/DIGI PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

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
Clock
signal from
left
pushbutton
to P1
Data signal
from
pushbutton
to P0
About the Code
Like Program Listing 2.1, we use a comment to include some information about the
program at the beginning. Remember, as soon as an apostrophe appears in a line of
PBASIC code, everything to the right of the apostrophe is ignored by the BASIC Stamp.
Next the two nibble variables are defined, and I/O pins P0 and P1 are set to function as
inputs. One of those nibble variables,
The main portion of the code is in a
FOR Counter
In the example code snippet below,
the
EndValue
right
FOR n = 1 TO 4
NEXT
DEBUG “Done!”
=
argument of the
DEBUG DEC n, CR
StartValue TO EndValue
Read Input
FOR…NEXT
Figure 2-8: Timing Diagram.
FOR…NEXT
n
1
n
is the
, is used by the
command.
Read Input
Counter
loop, which has the following syntax:
,
0
1
FOR…NEXT
is the
Read Input
StartValue
loop.
1
argument and
Read Input
1
4
is

Related parts for 28128