Analog To Digital Converters (DAC) & 2. Digital To Analog Converters (ADC)
Analog To Digital Converters (DAC) & 2. Digital To Analog Converters (ADC)
1. Analog to Digital
Converters (DAC)
&
2. Digital to Analog
Converters (ADC)
7/2/16
INTRODUCTION
Real World Processes Produce Analog
Signals such as Voltage, Current, Charge,
Temperature and pressure
Actually it is difficult to store, manipulate,
compare, calculate and retrieve with good
accuracy using purely analog technology.
Computers can perform these operations
quickly
and
efficiently
using
digital
techniques.
7/2/16
INTRODUCTION
It is necessary to convert the analog signals
(from the transducers) into equivalent
digital data
So both DAC and ADC are necessary to
make communication between
computers(Digital) and Human(Analog)
7/2/16
7/2/16
Terms related to
Analog signal
Quantization
Quantized variable
Discrete time signal
Digital signal
7/2/16
SPECIFICATIONS
ACCURACY
OFFSETVOLTAGE
LINEARITY
-Differential Non linearity Error
-Integral Nonlinearity Error
MONOTONICITY
RESOLUTION (STEP SIZE)
SETTLING TIME
TEMPERATURE SENSITIVITY
7/2/16
SPECIFICATIONS
ACCURACY
The components in the D/A circuits are prone to
mismatches, drift, ageing, noise and other
sources of errors. These factors
lead
to
degradation in conversion performance.
ABSOLUTE ACCURACY It defines the maximum
deviation of the output from the ideal value.
Expressed in fractions 1 LSB.
CLASSIFICATION OF ERRORS
- Static errors: offset error, gain error
- Dynamic errors: Full scale error, Linearity error
7/2/16
SPECIFICATIONS
OFFSETVOLTAGE(offset error)
Ideally DAC output is 0 V when all the bits of
binary input word are 0s. But in practice, there is
a very small output voltage called Offset voltage
or Offset error.
Gain error : Deviation of gain from the ideal value
.
Offset error can be compensated by translating
the actual characteristics up or down so that it
goes through origin. And Gain error can be
nullified by adjusting the scale factor K.
7/2/16
SPECIFICATIONS
7/2/16
SPECIFICATIONS
LINEARITY
-Maximum deviation in step size from
the ideal step size
-Differential Non linearity Error
-Integral Nonlinearity Error
7/2/16
SPECIFICATIONS
Linearity: is the difference between the desired analog
output and the actual output over the full range of
expected values.
Ideally, a DAC should produce a linear relationship
between a digital input and the analog output, this is
not always the case.
7/2/16
SPECIFICATIONS
NON-Linearity(Real World)
Desired/Approximate Output
Linearity(Ideal Case)
Desired Output
Approximate
output
Digital Input
Perfect Agreement
Digital Input
Miss-alignment
7/2/16
SPECIFICATIONS- Monotonicity
means that the magnitude of the output voltage increases every time the
input digital code increases
Non-Monotonic: A decrease in output voltage with an increase in the
digital input
Desired Output
NonMonotonic
Monotonic
Digital Input
7/2/16
SPECIFICATIONS
Resolution: is the amount of variance in
output voltage for every change of the LSB
in the digital input.
How closely can we approximate the desired
output signal(Higher Res. = finer
detail=smaller Voltage divisions)
A common DAC has a 8 - 12 bit Resolution
Resolution VLSB
VRef
N
2
N = Number of
bits
7/2/16
SPECIFICATIONS
Poor Resolution(1 bit)
Vout
Vout
Desired Analog
signal
Approximate
output
8 Volt. Levels
2 Volt. Levels
110
Digital Input
110
101
100
011
010
001
101
100
011
010
001
000
000
Approximate
output
7/2/16
Digital Input
SETTLING TIME
settling time is the time in which the expected
output voltage is within 0.5 times of resolution, i.e.,
within 1/2 lsb
7/2/16
7/2/16
Expected
Voltage
+VLSB
-VLSB
Time
Settling time
7/2/16
TEMPERATURE SENSITIVITY
For a fixed digital input, output should be constant
with temperature variation. But real time scenario is
different.
This is due to the temperature sensitivity of the
reference voltage, resistors used in converters, the
opamp and its offset voltage.
This factor decides the stability of DAC
7/2/16
DAC
To convert digital values to analog
voltages
Performs inverse operation of the Analogto-Digital Converter (ADC)
Reference Voltage
Digital Value
DAC
Analog Voltage
7/2/16
TYPES OF DAC
i.
ii.
iii.
iv.
7/2/16
I
R
2R
4R
Vo
8R
MSB
LSB
-VREF
7/2/16
Binary Representation
Rf = R
I
R
2R
4R
8R
Vo
Most
Significant Bit
Least
Significant Bit
-VREF
7/2/16
Binary Representation
SET
CLEARED
Most
Significant Bit
Least
Significant Bit
-VREF
( 1
7/2/16
1 )2 = ( 15 )10
Rf = R
I
R
2R
4R
Vo
8R
MSB
LSB
-VREF
7/2/16
Result:
B3 B2 B1 B0
I VREF R 2 R 4 R 8R
VOUT
B2 B1 B0
I R f VREF B3
2
4
8
Bi = Value of Bit i
7/2/16
More Generally:
VOUT VREF
Bi
n i 1
2
VREF Digital Value Resolution
Bi = Value of Bit i
n = Number of Bits
7/2/16
R-2R Ladder
LSB
7/2/16
R-2R Ladder
Same input switch setup as Binary Weighted
Resistor DAC
But for weighted resistor DAC wide range of
resistors we need
In this only R and 2R needed
All bits pass through resistance of 2R
7/2/16
R-2R Ladder
7/2/16
R-2R Ladder
7/2/16
7/2/16
7/2/16
7/2/16
7/2/16
7/2/16
7/2/16
Practically
VOUT
Rf
B1 B2 B3 B4
VREF 1 2 3 4
R
2
2
2 2
Advantages:
7/2/16
7/2/16
7/2/16
7/2/16
7/2/16
7/2/16
7/2/16