28129 Parallax Inc, 28129 Datasheet - Page 62
![TEXT BASIC ANALOG & DIGITAL](/photos/6/49/64954/mfg_28129_sml.jpg)
28129
Manufacturer Part Number
28129
Description
TEXT BASIC ANALOG & DIGITAL
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet
1.28129.pdf
(176 pages)
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
- Current page: 62 of 176
- Download datasheet (3Mb)
Interpreting the Output
The ADC0831 measures an analog voltage at its input. Then it sends the BASIC Stamp a
binary number describing the value it measured. For now, we’ll focus on a voltage scale
that starts with 0 volts and ends at 5 volts.
With an 8-bit binary number, you can start counting with 00000000 and count all the way
up to 11111111. Translated to decimal numbers, it's the same as counting from 0 to 255.
When applied to a 5 volt scale that starts at 0 volts, it’s the same as counting from 0 to 5
volts using 255 voltage steps.
For the 5 volt scale, when the ADC0831 measures 0 volts, you get 00000000. When it
measures 5 volts, the output is 11111111. It turns out that the Debug Terminal output
10110100 from Figure 3-4 is the same as the decimal number 180. Decimal-180 in turn
corresponds to a measured voltage of 3.53 volts.
Binary to Decimal Conversion Revisited
So how do we know that 256 combinations can come from an 8-bit binary number?
Remember, you can always tell how many numbers (combinations of 0s and 1s) can
come from a given number of bits by using this formula from Chapter #2:
This means the number of combinations equals two raised to the power of the number of
bits. For 8-bits, the number of combinations is 2
combinations is 2
Let's use the two-step method from Chapter #2 to convert the 8-bit binary number
10100101 to its decimal equivalent. Here is a repeat of the bit multipliers table to work
with:
combinations =2
Bit
Multiplier
12
Table 3-1:Bit Multipliers for an 8-bit Binary Number
= 4096, and so on.
bits
128
7
64
6
32
5
16
8
4
= 256. For 12-bits, the number of
3
8
2
4
1
2
0
1
Related parts for 28129
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: