28128 Parallax Inc, 28128 Datasheet - Page 57

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
The Output
If the pot is adjusted somewhere in the middle of its range, the output displayed in the
Debug Terminal should look similar to Figure 3-4. As you adjust the pot, the zeros and
ones should change rapidly. Each time you stop adjusting the pot, the output should
settle, and a new pattern of eight zeros and ones should display.
If your Debug Terminal responds this way, it’s likely your circuit and program are
working right. If it doesn’t do this, check the wiring on your circuit. Also make sure code
is entered correctly. Sometimes just one wrong letter will cause the program not to work
properly. The Debug Terminal could also be hidden from view. It can be accessed from
the menus by selecting Run/Debug/New Terminal in the BASIC Stamp Editor.
About the Code
The first few lines of text in this program are comments that begin with apostrophes, and
they don't have any function in the program aside from explaining it to someone reading
the code, and identifying the BASIC Stamp model and PBASIC version.
' -----[ Title ]----------------------------------------------
' Basic Analog and Digital - PL3_1R0.bs2
' Program Listing 3.1 Revision 0.
' {$STAMP BS2}
' {$PBASIC 2.5}
Figure 3-4
Debug Terminal
Output for Program
Listing 3.1.

Related parts for 28128