28129 Parallax Inc, 28129 Datasheet - Page 85

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 Code
If the D/A converter works as we expect, each time the value of
the D/A output should increment by 0.2 volts. Try starting with n=0 by modifying the
value of
Then run the program again with n=1.
Then change n to 2 and run the program a third time.
Continue for each value up to
Figure 4-4 shows a sample measurement of a resistive ladder D/A conversion with the
value of
Chapter #3, we were interested in programming our DVM for accurate calculations to the
nearest hundredth of a volt. In this experiment, anything within 10% of the expected
value is fine. So your end output when
volts. If the errors are larger than that, double check to make sure that a 1k
didn’t get swapped with a 2k somewhere in the resistive ladder.
n = 0
n = 1
n = 2
n
n
in the
set to 15. Remember that the 10% resistors lead to some error in the output. In
DAC
subroutine.
n=15.
n=15
might be as low as 2.7 volts or as high as 3.3
n
is incremented by 1,
'
'
'
resistor

Related parts for 28129