28129 Parallax Inc, 28129 Datasheet - Page 127

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
During the time this program records the frequency, the Debug Terminal display is
similar to the previous revision of the program. When the program is done recording, it
displays ten frequency samples. The Debug Terminal data shown in Figure 6-10 was
generated by adjusting the pot back and forth to some random frequencies (tones).
About the Code
Program Listing 6.2 Revision 2 introduces the concept of data storage using an array.
We used the command:
to reserve 10 words of space in the BASIC Stamp's RAM. There's a word labeled f(0),
another word labeled f(1), and so on through f(9). Each of these words is stored adjacent
to each other in the BASIC Stamp's RAM.
f
VAR
Word(10)
Figure 6-10
Debug Output for
Program Listing 6.2,
Revision 1.

Related parts for 28129