28128 Parallax Inc, 28128 Datasheet - Page 140

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
Also modify the first line of the program for future reference, and save the modified
program as P7_1R0.bs2. Then, run the program and check the output.
The Output
Take a look at Figure 7-6; not bad!
Try setting
CLK
DataOutput
DAC:
RETURN
Display:
RETURN
n = 166
PWM 8, n, 40
DEBUG HOME, CR, "DVM Reading:
DEBUG ".", DEC2 v2, " Volts"
n
DAC
to a few different values.
subroutine from Program Listing 4.1 as follows:
Display
PIN
PIN
subroutine so that it only displays the voltage, as shown below.
1
2
", DEC1 v
Figure 7-6
Debug Output for
Program Listing 7.1

Related parts for 28128