ADC and DAC
ADC and DAC
ADC and DAC
2-Step Process
• Quantizing - breaking down analog value is a
set of finite states
• Encoding - assigning a digital word or number
to each state and matching it to the input
signal
Quantizing
The number of possible states that the converter can
output is:
N=2n
where n is the number of bits in the AD converter
100101…
DAC
3 bit DAC output waveform
Digital-to-Analog Conversion
v v v v
a
b
c
out
R a
R b
R c
R f
R R R
v v v f
v f f
R
out a b c
R Ra b c
Digital-to-Analog Conversion
• 2 Basic Approaches
MSB
LSB
V1 V2 V3 Vn
Vout IRf Rf n -1
R 2R 4R 2 R
3 bit binary-weighted DAC
Binary Weighted Resistor
If Rf=R/2
V1 V2 V3 Vn
Vout IRf n
2 4 8 2
For example, a 3-Bit converter
23
R-2R Ladder DAC
R-2R Ladder DAC
R-2R Ladder DAC
Vref
Resolution VLSB
2N
where N number of bits
Speed
• Rate of conversion of a single digital input to
its analog equivalent
• Conversion rate depends on
– clock speed of input signal
– settling time of converter
• When the input changes rapidly, the DAC
conversion speed must be high.
Linearity
• Ideally, a DAC should produce a linear relationship
between the digital input and analog output
0000 0001 0010 0011 0100 0101 0000 0001 0010 0011 0100 0101
Digital Input Signal Digital Input Signal
Analog to Digital Conversion
2-Step Process
• Quantizing - breaking down analog value is a
set of finite states
• Encoding - assigning a digital word or number
to each state and matching it to the input
signal
ADC Basic Principle
• The basic principle of operation is to use the
comparator to determine whether or not to
turn on a particular bit of the binary number
output.
• It is typical for an ADC to use a digital-to-
analog converter (DAC) to determine one of
the inputs to the comparator.
A/D Converter Types
–Flash ADC
–Dual Slope (integrating) ADC
–Successive Approximation ADC
Overall Better Accuracy
Advantages Disadvantages
• Simplest in terms of • Lower resolution
operational theory • Expensive
• Fo it ADC it e ui e
• Most efficient in terms of 2n -1 comparators
speed, very fast
Block diagram of a 4 bit Successive - approximation ADC .
It consists of a DAC, Successive-Approximation Register (SAR),
and a comparator
44
Successive approximation ADC
Block diagram
Successive approximation ADC
1. Set the MSB of the digital representation to 1, all
other bits to 0.
2. Compare the analog value produced in the first
step to the voltage being converted.
2A. If the test voltage is higher than the voltage being
converted, reset the MSB and set the second MSB.
2B. If the test voltage is less than the voltage being
converted, leave the MSB set and set the second MSB.
3. Repeat Steps 2, 2A, and 2B until all the bits have
been tested.
Successive Approximation
Advantages Disadvantages
A dual slope ADC is common in digital voltmeters and other type of measurement
instruments.
49
Dual Slope Converter
Vin
tFIX tmeas
t
52
Dual Slope Converter
Advantages Disadvantages
• Input signal is averaged • Slow
• Greater noise immunity • High precision external
than other ADC types components required to
• High accuracy achieve accuracy
ADC Types Comparison