28129 Parallax Inc, 28129 Datasheet - Page 44

TEXT BASIC ANALOG & DIGITAL

28129

Manufacturer Part Number
28129
Description
TEXT BASIC ANALOG & DIGITAL
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28129

Style
Book
Title
Basic Analog and Digital
Contents
Basic Analog and Digital Text
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
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 28129