Professional Documents
Culture Documents
DEPARTMENT OF ELECTRICAL ENGINEERING
ESE Undergraduate Laboratory
EE206: Electrical Circuits and Systems II Laboratory
DigitaltoAnalog (DAC) Converter
Overview
• Goals
• Inlab assignment
Goals:
To design and build a simple Digital‐to‐Analog (DAC) converter using OpAmp (LM741) and
resistors. You will apply Thévenin's theorem to analyze the R‐2R ladder network.
Figure 1. Screen capture from the scope showing input (Ch1, Yellow) to ADC, output (Ch2, Green)
from DAC and digital outputs D0, D1, D2 from 74148 encoder. (high res)
ESE206 : Digital to Analog Converters : U of Pennsylvania, SEAS Page 1 of 4
IIn‐lab assignnment:
A
A. Equipmen nt:
1
1. Digital muultimeter (H
HP34401A)
2
2. Triple outtput programmable pow wer supply (HP E3631
1A)
3
3. Protoboar rd
4
4. Blue box wwith cables and connecctors
5
5. Resistors
6
6. Potentiommeter (for ad
djusting thee gain)
7
7. MSO7034 4B Oscillosco
ope
8
8. Digital Pr obes
9
9. OpAmp 74 41
B
B. Procedure
e
D
DAC:
1
1. Build the R‐2R ladder DAC as sh
hown in Figu
ure 2. To im
mplement thee voltages
V
Vout = (Dx) x (Vref) ; w
where Dx co
orresponds tto bit valuess and Vref =
= 5V
U
Use jumper wires to thee 5V (Vref) or ground b
busses as scchematically
y shown in F
Figure 1.
Figure 2. R2
2R Ladder N
Network
E
ESE206 : Dig ital to Analogg Converterss : U of Pennssylvania, SEA
AS Paage 2 of 4
D2 D1 D0 Vout VDAC
0 0 0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1 ~5V ~7V
Table 1. Measured voltage for R‐2R ladder circuit.
3. Next, use the circuit built last week (from last week’s lab
http://www.seas.upenn.edu/~ese206/labs/adc206/adc206.html) and connect D0, D1, D2 to the
circuit shown below.
Figure 4: The DAC circuit with 7404 interface
ESE206 : Digital to Analog Converters : U of Pennsylvania, SEAS Page 3 of 4
3. (contd)
The TTL inverter, 7404 converts the voltage from ~3.8v to 5v. This will ensure that the voltages
measured in Table 1 will be similar to the calculation of voltages from the prelab.
4. Agilent’s 7034B scope has the capability to acquire and display 16 channel digital signals along
with signals acquired from its 4 analog inputs. (Refer to pages 359 ‐ 368
http://cp.literature.agilent.com/litweb/pdf/54695‐97025.pdf ).
The logic probes connect to the back of the scope and are numbered 0‐16. Use the probe numbers
#0, #1 and #2 to connect to pins 4, 8, 12 of 7404 respectively. Use the Digital function of the
MSO7034B oscilloscope to display digital signals as shown in Figure 5.
Figure 5. Use of “Digital” inputs using logic probes.
5. Connect the signals to the oscilloscope as shown below:
Channel 1 (Yellow) : Input Signal
Channel 2(Green) : Output Signal (re‐constructed Sine Wave)
D0 (Blue) : Digital signal ‐ bit D0
D1 (Blue) : Digital signal ‐ bit D1
D2 (Blue) : Digital signal ‐ bit D2
Does the scope screen look similar to Figure 1? Verify with the TA.
ESE206 : Digital to Analog Converters : U of Pennsylvania, SEAS Page 4 of 4