Experiment 08-A2d
Experiment 08-A2d
8
Analog-to-Digital Converter
Objectives
To convert analog signals to digital signals using an IC D/A converter.
Required Materials
(1) Power supply 0 to 5.12 volts
(8) LEDs
Introduction
Eight-bit ADCs in IC form require only eight clock pulses using a register that performs a function
called successive approximation.
Figure 8-1 shows the schematic diagram of the ADC0804 analog-to-digital converter IC. It uses an
internal successive-approximation register (SAR).The circuit is capable of converting an analog voltage into a proportional 8-bit digital output. The voltage range to be converted is determined by
applying the maximum desired voltage to VDC at pin 20. The analog input is applied across VIN(+)
and
VIN(). Since there are 256 (28) different binary digital numbers produced at the eight output leads,
the percent the analog voltage changes is .39 percent (1/255 = .0039 = .39%) before one binary bit
changes.This is called resolution.
The IC contains an internal clock. Its pulses are fed into the IC when an external resistor and capacitor are connected to the CLK R and CLK IN inputs. The conversion begins every time a Low is
applied to WR.At the end of the conversion process, output INTR goes Low.Also, the eight outputs
that represent the analog input voltage will be present at the active-High output lines DB0 to DB7.
Connecting output line INTR to input WR will cause the IC to continually update itself by repeating the conversion process. The conversion process repeats so quickly that the LEDs strobe and
appear to be permanently on. The fast operation also enables the LEDs to immediately change the
digital display when the applied analog input voltage is varied.
Procedure Information
The output voltage range of the ADC in this experiment is 0 to 5.12 volts.A variable analog voltage
is applied to the input by a 10K potentiometer. LEDs at the output leads show the converted binary number.
35
36
Experiment 8
Analog-to-Digital Converter
10 k
1
150 pF
2
CS
VDC
RD
CLK R
WR
DB0
3
4
10 k
Analog
Input
Voltage
5
6
V
7
8
9
10
CLK IN
DB1
INTR
DB2
20
+
19
DB3
10 F Tantalum
LSB
18
330
17
330
16
330
ADC0804
VIN (+)
5.120 VDC
15
330
14
VIN ()
DB4
AGND
DB5
VREF/2
DB6
DGND
DB7 11
13
330
330
12
330
330
Figure 8-1
MSB
Step 1
Assemble the circuit shown in Figure 8-1.
Step 2
Turn on the power supply.
Step 3
With one end of a jumper wire connected to ground, momentarily touch the other end to input
WR.
Step 4
Apply the analog voltage listed on the top line of the input section of Table 8-1.
Input
Measured
Analog
Voltage
0V
0.4V
1.0V
1.6V
2.3V
3.5V
4.6V
5.12V
DB7
2.56V
DB1
0.04V
DB0
0.02V
Resolution
Total
Experiment 8
Analog-to-Digital Converter
Step 5
Fill in the output section to show the logic states of each digital output lead. Place a 1 in the column
if the corresponding LED turns on, and a 0 to indicate an LED that does not light.
Step 6
Add all of the resolution values of each column that has a 1. Place the sum in the column labeled Resolution Total. Does the number equal the applied analog input voltage?
Step 7
Repeat steps 5 and 6 for each of the remaining input analog voltages in Table 8-1.
PROCEDURE QUESTION 1
How should the sum of resolution values and the analog voltages compare with each other?
Experiment Questions
1. How many clock pulses are required by the ADC0804 IC to complete one analog-to-digital conversion?
2. The resolution of the ADC0804 IC is _______ percent.
3. At the end of each analog-to-digital conversion, the INTR lead goes _______ (Low, High).
4. An analog voltage of 1 volt applied to the circuit in Figure 8-1 will produce a digital output of
______.
37