28128 Parallax Inc, 28128 Datasheet - Page 102

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
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 28128