Documente Academic
Documente Profesional
Documente Cultură
School of Engineering
DECLARATION
I certify that the attached work is entirely my own. I also certify that it has not
been submitted for assessment in any other unit or course.
Date:
Name:
Signature:
i
Seminar Report
on
by
Ashutosh M Bhatt
Master of Technology
in
Embedded Systems
Approved _________________________
Adviser
January - 2014
School of Engineering
R K University
ii
Acknowledgement
K University to give me this opportunity and resources to present this seminar topic.
Next, I am thankful to Prof. D. S. Pipalia (Asst. Professor, EC Eng Dept., SOE, RKU)
I am really very thankful to my external guide Mr Pankaj Kumar Gupta (Sci / Eng -
SE) for giving me the suggestions regarding this seminar topic. He has also given
guidance regarding what to include as the content and also suggested some of the
iii
Table of Content
Page
Acknowledgement ................................................................................................... iii
Abstract .................................................................................................................... vi
Chapter
1. Introduction ......................................................................................... 1
Conclusion ................................................................................................................ 21
References ................................................................................................................ 22
iv
List of Figures
v
Abstract
We know that the real word deals in analog domain with analog signals. All the signals
like audio, video, speech etc all those are of analog type. But the processing of these
signals is done with digital techniques only because it becomes easier. So we need
converters on either sides of such digital signal processing system that will convert the
signals in to analog to digital and then again back from digital to analog. So in this
report I have tried to explain different types of Digital to Analog Converters, popularly
known as DAC (or DtoA) in some detailed manner. It first describes different types of
architectures or technologies that are used to convert given digital value into
DAC chip. Also it throws some light on which parameter are most important while
selecting any DAC for one particular application. Finally I have classified DACs on the
vi
1
Chapter - 1
Introduction
The real word deals with analog signals only and the processing of signals is easier,
convenient, and reliable in digital domain only. So it is required to convert these analog
signals in to digital and after processing again convert them form digital to analog. So
there are two devices Analog to Digital converters (ADC) and Digital to Analog
converters (DAC) used for this purpose. The following figure gives more idea regarding
this.
As shown in figure 1 the analog signal is converted into digital equivalent and fed to
digital processor for processing. It can be any of the digital processing device such as
micro-controller, micro-processor, digital signal processor or FPGA. After it processes
the signal the digital signal is converted back into analog using DAC.
Now a days both devices are fabricated on semiconductor chip so they are available as
single chip or IC. Depending upon various kinds of applications there are various
architectures of ADC as well as DAC. Also there are different parameters that one should
understand while working with these devices. Here I have discussed about the Digital to
Analog Converters.
This introduction chapter explains the basics of DAC that how it actually converts digital
input (byte or word or code) in to analog equivalent. Then it briefs major DAC
architectures that are described in chapter 2. It also briefs DAC parameters and categories
DAC based on application at last.
As we moved on in time these functions were integrated on the same die, additional
digital circuitry, specifically latches to store the digital input, were added. Then a second
rank of latches was often added.
2
The purpose of the second rank was to allow the microprocessor or microcontroller to
write to many DACs in a system and the updated them all at the same time. The input
rank of latches could also be a shift register, which would allow a serial interface. On the
back end, since the output of the DAC is often a current, an op amp is often added to
perform the current-to-voltage (I/V) conversion. On the front end a voltage reference is
often added.
• Reference voltage
• Midscale error / bipolar zero error
• Differential non linearity (DNL)
• Integral non linearity (INL) / relative accuracy
• Full scale output range
• Logic ‘1’ input
• Logic ‘0’ input
• Input leakage current
• Settling time
• Analog power supply (+Ve / -Ve)
• Analog output impedance
• Gain error / full scale error
• SNR
• THD (third harmonic distortion)
While selecting DAC for any particular application, it is not required to see all above
parameters. Few most important parameters like resolution, required analog output
voltage, biasing voltage, errors, temperature drift etc need to be considered only. I have
discussed these in more details in chapter 3.
For example to generate high frequency analog signal from digital bit stream the DAC
used is RF / IF type high speed DAC. Multiplying DAC and digital pots are used in
variable gain amplifiers (VGA). In controlling or industrial application like close loop
control system, precision type DACs are used. In chapter 4 some more details are given
on all these given DACs.
5
Chapter – 2
DAC Architectures
There are many different techniques by which the digital input can be converted in to
analog equivalent. Based on these there are different DAC architectures. All the
architectures have their merits and demerits. Also the architecture is especially for kind of
application(s). So here I have tried to cover major categories of DAC architectures.
all the resistors are equal, but may be made deliberately nonlinear if a nonlinear DAC is
required. The output is a voltage, but it has the disadvantage of having relatively large
output impedance. This output impedance is also code dependant (the impedance changes
with changes to the digital input). In many cases it will be beneficial to follow the output
of the DAC with an op amp to buffer this output impedance and present low impedance
Since only two switches operate during a transition it is a low glitch architecture (the
concept of glitch will be examined in a following section). Also, the switching glitch is
not code-dependent, making it ideal for low distortion applications. Because the glitch is
constant regardless of the code transition, the frequency content of the glitch is at the
DAC update rate and its harmonics—not at the harmonics of the DAC output signal
frequency. The major drawback of the Kelvin DAC is the large number of resistors and
switches required for high resolution. There are 2N resistors required, so a 10 bit DAC
would require 1024 switches and resistors, and as a result it was not commonly used as a
simple DAC architecture until the recent advent of very small IC feature sizes made it
very practical for low and medium resolution (typically up to 10 bits) DACs.
As we mentioned in the section on sampling theory, the output of a DAC for an all 1s
code is 1 LSB below the reference, so a Kelvin divider DAC intended for use as a
general-purpose DAC has a resistor between the reference terminal and the first switch as
shown in Figure.
The major difference is that the lower arm of the potentiometer (terminal B) is not
connected to ground, but is instead left floating. The absolute values of the resistors in a
Kelvin DAC typically are not critical. They are limited by the available material. They
must, of course, be the same as each other. In a digital potentiometer the end-to-end
resistance is specified. The accuracy of the end to end resistance is on the order of a
mechanical potentiometer. Digital potentiometers are typically available in end-to-end
resistance values from 10 kΩ to 1 MΩ. Lower values of end-to-end resistance are
difficult since the on resistance of the CMOS switches is on the order of the resistor
segment, so the linearity of the pot suffers at the low end.
The advantages to digital potentiometers are many. Even the lowest resolution digital
potentiometers have better setability than their mechanical counterparts. Also, they are
immune to mechanical vibration and oxidation of the wiper contact. Obviously,
adjustments can be made without human intervention. In most digital potentiometers the
voltage on the input pins cannot exceed the supplies (typically 3 V or 5 V) due to the
CMOS switches used in their construction, but certain models are designed for ±15 V
operation.
If active current sources are used as shown in Figure 7, the output may have more
compliance (the allowable voltage on the output pin which still guarantees performance),
and a resistive load is typically used to develop an output voltage. The load resistor must
be chosen so that at maximum output current the output terminal remains within its rated
compliance voltage
Once a current in a thermometer DAC is switched into the circuit by increasing the
digital code, any further increases do not switch it out again. The structure is thus
inherently monotonic, irrespective of inaccuracies in the currents. Again, like the Kelvin
divider, only the advent of high density IC processes has made this architecture practical
for general purpose medium resolution DACs, although a slightly more complex
version—shown in the next diagram—is quite widely used in high speed applications.
Unlike the Kelvin divider, this type of current-mode DAC does not have a unique name,
although both types may be referred to as fully decoded DACs or thermometer DACs.
It is usually the simplest textbook example of a DAC. However, this DAC is not
inherently monotonic and is actually quite hard to manufacture successfully at high
resolutions due to the large spread in component (resistor) values. In addition, the output
impedance of the voltage mode binary DAC changes with the input code.
An N-bit DAC of this type consists of N weighted current sources (which may simply be
resistors and a voltage reference) in the ratio 1:2:4:8:....:2N–1. The LSB switches the 2N–1
9
current, the MSB the 1 current, etc. The theory is simple but the practical problems of
manufacturing an IC of an economical size with current or resistor ratios of even 128:1
for an 8-bit DAC are enormous, especially as they must have matched temperature
coefficients. This architecture is virtually never used on its own in integrated circuit
DACs, although, again, 3-bit or 4-bit versions have been used as components in more
complex structures.
DACs utilizing bipolar transistors as switches, such as the DAC-08 above, cannot
accommodate bipolar signals on the reference. Therefore they can only implement 2-
10
quadrant MDACs. In addition, the reference voltage cannot go all the way to 0 V. The
maximum allowable range is typically from 10% to 100% of the allowable reference
voltage range. One of the main applications of the MDAC is as a variable gain amplifier,
where the gain is controlled by the digital word applied to the MDAC.
Figure 10 - MDAC
The frequency response of the MDAC is limited by the parasitic capacitance across the
switches in the off condition. As the frequency goes up the impedance of the capacitors
goes down, effectively bypassing the switch. This reduces the off isolation at higher
frequencies. Typically the frequency response of an MDAC will be on the order of
1 MHz.
So far we have considered mostly basic DAC architectures. When we are required to
design a DAC with a specific performance, it may well be that no single architecture is
ideal. In such cases, two or more DACs may be combined in a single higher resolution
11
DAC to give the required performance. These DACs may be of the same type or of
different types and need not each have the same resolution. For example, the segmented
string DAC is a segmented DAC where 2 Kelvin DACs are cascaded.
Typically, one DAC handles the MSBs, another handles the LSBs, and their outputs are
added in some way. The process is known as “segmentation,” and these more complex
structures are called “segmented DACs.” There are many different types of segmented
DACs and some, but by no means all, will be illustrated in the next few diagrams. It is
sometimes not obvious from looking at the data sheet that a particular DAC is segmented.
Very high speed DACs for video, communications and other HF reconstruction
applications are often built with arrays of fully decoded current sources. The two or three
LSBs may use binary-weighted current sources. It is extremely important that such DACs
have low distortion at high frequency, and there are several important issues to be
considered in their design.
Chapter - 3
DAC Parameters
3.1 Different parameters of DAC:
The parameters decide the performance of DAC. One can compare the different types of
DACs based on these parameters. There may be more such parameters depending upon
different architectures but here I am discussing some of general parameters that are
common in all types of DACs
Resolution - If a DAC has n bits, then its output analog signal span can be divided (or
"resolved") into 2n states, each corresponding to its own digital input code. The higher
the number of bits, the better is the resolution of a DAC.
Reference voltage - This indicates the minimum and maximum voltages that may be used
as the DAC's external reference voltage.
Analog o/p range - This is the difference between the maximum and minimum analog
output values that the DAC is specified to provide.
Logic ‘1’ input - This is the minimum voltage that the digital inputs of the DAC are
guaranteed to recognize as Logic "1".
Logic ‘0’ input - This is the maximum voltage that the digital inputs of the DAC are
guaranteed to recognize as Logic "0".
Analog power supply - This is the voltage range that can be used for the analog supply of
the DAC.
Input leakage current - This is maximum leakage current exhibited by a digital input at
logic "0".
Settling time - This is the time required by the outputs of a DAC to reach and remain
within a specified error band about its final value. This is measured from the digital input
transition.
Analog o/p impedance - This is the dynamic load presented by a DAC at its analog
output.
SNR - This is the ratio of the amplitude of the analog output of the DAC when the output
is set to full-scale to the amplitude of the output when it is set to zero.
THD - This is the ratio of the rms sum of the first few (2nd to 6th) harmonic components
of the DAC output to the DAC output's fundamental value
13
Mid scale error - This is the deviation of the actual analog output of the DAC from
the ideal output of 0V when the 2's complement input code representing half-scale
(all zeros) is loaded into the input register.
Gain error - This indicates how closely the analog output of a DAC matches its ideal
value at full scale and may be expressed in mV or as a % of the FSR. For many
DAC's, the ideal maximum output voltage is Vref-1 LSB.
DNL - This is the difference between the actual or measured output change and the
ideal output change for a digital input change of 1 LSB, i.e., for a transition between
two adjacent codes. Measured as % of FSR
INL - This is the maximum deviation of the output from the straight line between the
zero and full-scale points, excluding the effects of zero and full-scale errors.
e.g. For 8 bit DAC with output voltage span of -5 to +5 has 256 steps of 40 mv (10 /
256 = 0.039 = 40 mv)
Resolution gives no indication of accuracy, because other sources of error must be
taken into account.
Means no data is lost because the output always changes in accord with the digital
input.
Disadvantages –
More power consumption
Half duplex or simplex transmission
Comparatively lower speed
4. SPI (Serial Peripheral interface)
Advantages –
Much higher speed
Do not requires pull ups
Full duplex transmission possible
Disadvantages –
Requires more pins (4) than IIC
Cannot be configured in network
output current is dumped into a resistor instead of into an op amp directly since the
fast edges may exceed the slew rate of the amplifier and cause distortion. Some of the
major differences are listed here for both types of configurations.
Chapter - 4
DAC classification
In chapter 2 we have seen different types of DAC architectures. Means DACs were
classified based on the technique that how they convert digital input into analog output.
These different types of architectures are due to different kinds of requirements and
applications. Like some application requires very high speed conversion, for that we have
one type of architecture and some application requires higher resolution that is given by
another kind of architecture. So in this chapter I have classified the DACs based on the
applications in which they are used.
Intelligently integrated digital to analog converts with voltage and current drivers.
Industrial converters provide a range of user programmable output ranges from standard
4-20mA for current loop communication to ±10V for actuator control.
Housed in compact packages, these products simplify industrial system design by
offering high levels of control functionality with advanced on-chip diagnostics to
maximize system up time.
19
They offer industry leading temperature drift specification. Thus industrial converters
eliminate the need for multiple costly calibration routines typically required by traditional
discrete architectures.
video standards. 8- to 14-bit DAC options offer designers flexibility and performance,
meeting the most demanding product requirements.
Conclusion
For different kind of application many different kind of DACs with different architectures
are available
For selecting DAC for one particular application one has to see DAC’s resolution, digital
input interface, output type, max output voltage, settling time etc various parameters as
per the requirements
22
References
1) “Digital to analog converters”, wikipedia.org, para. 1,2,3, Aug. 1,2013 (last updated).
[Online]. Available: http://en.wikipedia.org/wiki/Digital-to-analog_converter.
[Accessed: Aug. 5, 2013].
2) “D/A converters”, analog.com, [online]. Available: http://www.analog.com
/en/digital-to-analog-converters/products /index.html [Accessed: Aug. 5, 2013].
3) “Digital-to-Analog Converters are a "Bit" Analog”, maximintegrated.com, para. 1 –
10, 12 – 15, Apr 16, 2002. [Online]. Available: http://www.maximintegrated.
com/app-notes/index.mvp/id/1055 [Accessed: Aug. 5, 2013].
4) “Basic liner Design”, Chapter-6: Converters, Section 6.1: Digital-To-Analog
Converters Architectures