Faculty of Engineering: Laboratory Report Cover Sheet
Faculty of Engineering: Laboratory Report Cover Sheet
Faculty of Engineering
Laboratory Report Cover Sheet
Students must complete all details except the faculty use part.
Please submit all reports to your subject supervisor or the office of the concerned faculty.
Experiment Number: 10 Due Date: 5 January 2025 Semester: Fall 24-25 Subject Code: EEE 3120
Subject Name: Digital Logic and Circuit Section: S Course Instructor: Md. Ashiquzzaman
Faculty comments
Title: Design of a Digital to Analog and Analog to Digital
Converters.
Introduction:
This lab describes the design of a Digital to Analog Converter (DAC). Two
types of design are shown in this lab, binary weighted DAC and R/2R ladder
DAC design. Finally student will compare both the design to conclude which
design is efficient and why.
Digital-to-Analog Converters
DACs and their inverse, ADCs, are part of an enabling technology that has
contributed greatly to the 'digital revolution'. To illustrate this, consider a
typical long-distance telephone call. The callers voice is converted into an
analog electrical signal by a microphone. The analog signal is then converted
to a digital stream by an ADC. That digital stream is then divided into
packets where it will be mixed with other
digital data, not necessarily audio. The digital packets are then sent to the
destination, but each packet may take a completely different route and may
not even arrive at the destination in the correct time order. The digital voice
data is then extracted from the packets and assembled into a digital data
stream. A DAC converts it into an analog electrical signal which drives an
audio amplifier which in turn drives a loudspeaker which finally produces
sound. Of course, this is a simplified and stylized description, but it does
illustrate one vital role of ADCs and DACs.
There are several DAC architectures; the suitability of a DAC for a particular
application is determined by six main parameters: physical size, power
consumption, resolution, speed, accuracy, cost. Due to the complexity and
the need for precisely matched components, all but the most specialist DACs
are implemented as integrated circuits (ICs). Digital-to-analog conversion
can degrade a signal, so a DAC should be specified that that has insignificant
errors in terms of the application.
DACs are commonly used in music players to convert digital data streams
into analogue audio signals. They are also used in televisions and mobile
phones to convert digital video data into analog video signals which connect
to the screen drivers to display monochrome or color images. These two
applications use DACs at opposite ends of the speed/resolution trade-off.
The audio DAC is a low-speed high resolution type while the video DAC is a
high- speed low to medium resolution type. Discrete DACs would typically
be extremely high- speed lowresolution power hungry types, as used in
military radar systems. Very high-speed test equipment, especially sampling
oscilloscopes, may also use discrete DACS.
A digital-to-analog converter, or DAC for short, converts a digitally coded
number to a voltage proportional to the number. For example, if a number N
is supplied to a DAC, the output voltage will be proportional to N: Vout = N
× B The constant of proportionality, B, is normally determined from the ratio
of the reference voltage, Vref, and the maximum value that N can have,
Nmax, B = Vref / Nmax so that Vout = Vref N / Nmax .
A common way to make a DAC is with an Op Amp circuit. Recall the circuit
for the summing amplifier.
Unfortunately, there are several practical problems with this circuit. First,
most digital logic gates do not accurately produce 0 and +5 volts at their
outputs. Therefore, the resulting analog voltages will be close, but not really
accurate. In addition, the different input resistors will load the digital circuit
outputs differently, which will almost certainly result in different voltages
being applied to the summer inputs.
Only two resistance values are used anywhere in the entire circuit. This
means that only two values of precision resistance are needed, in a resistance
ratio of 2:1. This requirement is easy to meet, and not especially expensive.
The input resistance seen by each digital input is the same as for every other
input. The actual impedance seen by each digital source gate is 3R. With a
CMOS gate resistance of 200 ohms, we can use the very standard values of
10k and 20k for our resistors.
1. The circuit is indefinitely extensible for binary numbers. Thus, if we
use binary inputs instead of BCD, we can simply double the length of the
ladder network for an 8-bit number (0 to 255) or double it again for a 16-
bit number (0 to 65535). We only need to add two resistors for each
additional binary input.
Apparatus:
Serial Equipment Image Quentity Remarks
no name
( JK FLIP FLOP
)
Precautions
1. Ensure all resistor values are precise and correctly placed.
2. Use a stable power supply to avoid fluctuations in output.
3. Verify proper connections to avoid short circuits or incorrect outputs.
4. Handle ICs carefully to prevent electrostatic damage.
5. Use a multimeter to confirm voltage levels at different nodes.
6. Avoid loose connections by securing wires properly.
7. Keep noise interference minimal by using proper grounding techniques .
Experimental Procedure
1. Circuit Setup:
2. Connect resistors in binary-weighted configuration to the input bits.The
weighted sum of currents from each resistor is fed into the inverting input
of the Op-Amp.
3. The Op-Amp is configured as a summing amplifier.
4. The output of the Op-Amp provides the analog voltage equivalent to the
digital input.
5. Connect a multimeter or oscilloscope to measure the output.
Testing:
Simulations
D3 D2 D1 D0 V0
0 0 0 1 -6.13
0 0 1 0 -11.40
0 1 0 0 -12.10
1 0 0 0 -12.76
Discussion
The binary weighted resistor DAC operates by summing currents
corresponding to different binary weightings. The operational amplifier
ensures proper scaling and provides a stable analog output. Precision in
resistor values is crucial, as deviations can lead to errors in output voltage.
This type of DAC is limited in resolution due to resistor tolerances and the
practical difficulty of achieving high-precision resistance values. The
primary advantage is its simplicity, while the main drawback is scalability
for higher-bit resolutions due to resistor value constraints.
Conclusion
The binary weighted resistor DAC successfully converts digital signals into
analog voltages. While simple and effective for low-bit resolutions, it faces
challenges in precision and scalability. Future improvements can involve
using an R-2R ladder network for better accuracy and ease of
implementation.
Reference
[1] Floyd, T. L. Digital Fundamentals. Available edition. Prentice Hall International,
Chapter 4:"Boolean Algebra and Logic Simplification."
[2] DLC Lab Manual, Department of Electrical and Electronic Engineering, Faculty of
Engineering, American International University-Bangladesh (AIUB).
[3] https://www.allaboutcircuits.com/textbook/digital/chpt-11/asynchronous-counters/
[4] https://www.geeksforgeeks.org/differences-between-synchronous-and-
asynchronous-counter/