28129 Parallax Inc, 28129 Datasheet - Page 102

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
Modify the
Also modify the
The Output - A Triangle Wave
Save the program as P5_1R0.bs2, and download it to your BASIC Stamp. The Stamp-O-
Scope output should look like Figure 5-3. The red LED on the breadboard should be
gradually getting bright and then dim again at the same pace as the triangle shaped wave
varies in the Debug Terminal. The asterisk in the bottom line of the Debug Terminal
indicates the current voltage measurement. The further right the asterisk appears in the
Debug Terminal, the higher the measured voltage.
Main:
RETURN
DAC:
RETURN
Display:
RETURN
GOSUB DAC
GOSUB ADC_Data
'GOSUB Calc_Volts
GOSUB Display
DIRB = 15
OUTB = n
PAUSE 50
v3 = adcBits / 8
DEBUG REP " "\v3, "*", CR
DAC
subroutine so it looks like this:
Display
subroutine from Program Listing 4.1 so it looks like this:
'
'
'
(Comment this line!)

Related parts for 28129