Lab 09 Dac
Lab 09 Dac
Lab 09 Dac
Discussion: In this laboratory experiment section, we will investigate a four-bit Digital-toAnalog Converter (DAC) circuit and, in the process, further consider op-amps.
Digital-to-Analog Converter (DAC): A DAC is a device that takes a digital word (ones and
zeros) and converts it into an analog voltage, say within the range from 0 to 10V. Special
integrated circuit (IC) chips are designed to do this, but we will look at the basic building blocks
to understand how the ICs work. An example of an 8-bit digital word is 10001101 and this word
may represent some analog value that we wish to transmit out of the computer. The decimal
equivalent of that digital word is found by treating each one or zero as the weighting factor for
two taken to various powers. For example 10001101 is evaluated by as follows:
1( 27 ) + 0 ( 26 ) + 0 ( 25 ) + 0 ( 24 ) + 1( 23 ) + 1( 22 ) + 0 ( 21 ) + 1( 20 ) = 141
Now we may wish to have that word control some electric actuator, so we need to convert it to
the analog world (to an actual voltage). The circuit we will be considering is given in Figure 1.
Note that it consists of an R2R ladder network (that we know something about), an op-amp, and
a series of jumper wires that we can locate in either in the ground bus or in the virtual ground
bus. A jumper in the ground bus is considered a '0' while a jumper in the virtual ground bus is
considered a '1'. Thus, the status of the four switches will represent a four-bit digital word,
D3 D2 D1 D0
pt. A
pt. B
1%
2R
1%
pt. C
1%
2R
1%
pt. D
1%
2R
1%
2R
1%
2R
1%
-10V
D3
D2
D1
D0
R 1%
Ground
"0"
"1"
+15V
Virtual Ground
6
3
-15V
2. Measure the output voltage using the Keithley DMM (adjust the measurement range for the
greatest accuracy). If necessary, tweak the variable resistance so that the output is as close to
10.0000V as possible.
-15V
10k
1%
+15V
2
20k
1%
6
3
10V
-15V
have the instructor verify your set-up and data. Have the corresponding theoretical output
voltage values calculated for comparison purposes.
INSTRUCTOR VERIFICATION: __________________
Table 1. Four-Bit DAC Data
D3
D2
D1
D0
Decimal
Equivalent
10
11
12
13
14
15
Vout
Theoretical
Vout
Measured
Percent
Error
7. What is the resolution for your DAC? That is, how much does the DAC output change for
a change in one Least Significant Bit (LSB)? __________________
8. For one of the DAC positions, confirm that the inverting terminal of the current-to-voltage
amplifier is at virtual ground (make sure to set your DMM for the finest resolution as this
number should not be precisely zero): _____________
9. Given your output data, come up with an expression for Vout in terms of the decimal
equivalent of the binary word and the resolution value identified in part 7.
10. De-energize the proto-board. DO NOT DISASSEMBLE your circuit. We will use it in the
final exercise of this lab!
dv c
dt
where the current ic is a displacement current because it represents the change of displaced
charge on the capacitor plates rather than internal charge flow through the dielectric. As the
above equation indicates, in the steady state with a constant voltage across the capacitor, no
current will flow indicating that the capacitor ultimately appears as an open circuit to DC. The
energy (in joules) stored in the electric field of the capacitor is given by
1
Wc = Cvc2
2
Capacitors are used to filter, couple, tune, block DC, pass AC, bypass, shift phase, isolate, store
energy, and suppress noise. They are typically categorized according to the type of dielectric
material. Thus, we have ceramic capacitors, film capacitors, and electrolytic capacitors.
Ceramic disk capacitors have plates coated with metal and are typically used in bypassing and
coupling applications. They are normally available as a small capacitor in the range of 5pF to
50nF. Larger capacitances are achieved by rolling sheets of metal foil and flexible dielectric into
a tubular shape. The film capacitors are normally available in the range of 1nF to 5 F and are
usually used in high-frequency circuits. Electrolytic capacitors provide even more capacitance
per volume because the dielectric is an extremely thin oxide layer formed on aluminum or
tantalum foil. However, the oxide can be destroyed by excessive voltage or the wrong polarity
of voltage (thus care must be taken when inserting them into the circuit). Electrolytic capacitors
are available in the range of 1 F to 1F, and they are commonly used in power supply filtering
applications.
We wish to explore the transient or charging characteristics of capacitors. For instance,
consider the circuit illustrated in Figure 3. With zero charge initially on the capacitor, when the
switch is closed, displacement current flows and the capacitor charges up. Clearly following this
t=0
Vs
vc
vc = Vs 1 e
where is termed the circuit time constant, and in this simple case, is given by the product RC.
The following exercises will allow us to explore this relationship and use it to perform a timing
application.
1. With the proto-board de-energized, build the circuit illustrated in Figure 3. Use a 1000uF
aluminum electrolytic capacitor for C (note that the +-side should be on the top) and the
series combination of a 10k-ohm 1% resistor and the resistance substituter box for R. The
proto-board +5V supply will serve as the input voltage. With the Keithley DMM, measure
the open-circuit voltage of the +5V supply. The proto-board power switch will be used to
implement the step turn-on of the supply voltage.
Open-Circuit +5V Supply Voltage: __________
2. Use the Keithley DMM to monitor the capacitor voltage. In order to achieve a time constant
of 20 seconds, calculate the required setting of the resistance substituter box.
Rsub = ____________
3. Program the above value in the resistance substituter box and have the instructor verify
your circuit. Given the equation above, calculate the capacitor voltage we would expect at
one time constant and then at two time constants:
VC _1 = ___________
VC _ 2 = ___________
9. De-energize the proto-board. Note that the capacitor voltage discharges to 0V. Remove the
jumper connecting the +5V supply to the RC components. Reset the DAC to provide a turnon delay of approximately 20sec. Record the DAC input word here:
DAC Input Word for 20sec delay: ____________
10. Energize the proto-board. Connect the +5V supply to the RC network and measure the
achieved delay.
Delay Time: ___________
11. De-energize the proto-board. Note that the capacitor voltage decays to 0V. Remove the
jumper connecting the +5V supply to the RC components. Reset the DAC to provide a turnon delay of approximately 10sec. Record the DAC input word here:
DAC Input Word for 10sec delay: ____________
12. Energize the proto-board. Connect the +5V supply to the RC network and measure the
achieved delay.
Delay Time: ___________
13. De-energize the proto-board and disassemble your circuit. Make sure to return the precision
resistors, LED, op-amps, and comparator to the appropriate bin drawers. Return the protoboards, DMM, proto-wire boxes, and resistance substituter box to the appropriate lab
cabinet.
+15V
DAC
Output
741
+5V
+15V
8
-15V
130 5%
jumper
Green
LM311
vc
5V
6
4
-15V
Output