Professional Documents
Culture Documents
Vi-Unit - D-A & A-D Converters
Vi-Unit - D-A & A-D Converters
UNIT-VI
D/A AND A/D CONVERTERS
Introduction
Most of the real-world physical quantities such as voltage, current, temperature,
pressure and time etc. are available in analog form. Even though an analog signal
represents a real physical parameter with accuracy, it is difficult to process, store
or transmit the analog signal without introducing considerable error because of
the superimposition of noise as in the case of amplitude modulation. Therefore,
for processing, transmission and storage purposes, it is often convenient to
express these variable in digital form. It gives better accuracy and reduces noise.
The operation of any digital communication system is based upon analog to digital
(A/D) and digital to analog (D/A) conversion.
Topics to be Covered: Basic DAC Technique & it’s types
1. Explain the block diagram of basic DAC or D/A technique
Basic DAC or D/A Technique:
The schematic of a DAC is shown in Fig. The input is an n-bit binary word D and is
combined with a reference voltage VR to give an analog output signal. The output
of a DAC can be either a voltage or current. For a voltage output DAC, the D/A
converter is mathematically described as
VR
IO = − [d1 21 + d2 22 + − − − − + 2n dn ] (6)
R
Comparing the equation (1) with (7), it can be seen that if Rf = R then K = 1 and VFS
= V R.
Let the digital input be 3-bit binary word then the number of possible input
combinations equal to 8 (23).
Digital d1(MSB) d2 d3 (LSB) Analog Output Analog Output for
Input (V) VR = 5V
D0 0 0 0 0 0V
1
D1 0 0 1 VR 0.625V
8
2
D2 0 1 0 VR 1.25V
8
3
D3 0 1 1 VR 1.875V
8
4
D4 1 0 0 VR 2.5V
8
5
D5 1 0 1 VR 3.125V
8
6
D6 1 1 0 VR 3.75V
8
7
D7 1 1 1 VR 4.375V
8
Table: For 3-bit Input.
The analog output voltage is given by
Rf
VO = VR [d1 2−1 + d2 2−2 + − − − + 2−n dn ]
R
Rf D
Simply, we can write the output voltage, VO = V [ ]
R R 2n
For a 3-bit DAC, n = 3. Therefore 2n = 8
If D1 = 001 (1) i.e d1 = 0, d2 = 0, d3 = 1 then output voltage, (Assuming Rf = R)
1
VO = VR (0/21 + 0/22 +1/23) = VR
8
1 4
VO = VR (1/21 + 0/22 +0/23) = VR= VR
2 8
binary word length has to be increased. Thus, as the number of bit increases,
the range of resistance value increases. For 8-bit DAC, the resistors required
are 21R, 22R………28R. The largest resistor is 256 times greater than the
smallest one for 8-bit DAC.
• For a 12-bit DAC, the largest resistance required is 5.12 MΩ if the smallest is
2.5kΩ. The fabrication of such a large resistance in IC is not practical.
• The difficulty of achieving and maintaining accurate ratios over such a wide
range especially in monolithic form restricts the use of weighted resistor DAC
to below 8-bits. Therefore accuracy is poor.
Topics to be covered: R-2R Ladder/Voltage Mode R-2R Ladder DAC.
1. Explain about R-2R Ladder/Voltage Mode R-2R Ladder DAC.
Wide range of resistors are required in binary weighted resistor type DAC. This can
be avoided by using R-2R ladder type DAC, where only two values of resistors i.e R
& 2R are required. It is well suited for integrated circuit realization. The typical
value of R ranges from 2.5 KΩ to 10 KΩ.
R-2R Ladder DAC for switch positions 100
(C)
Fig: (c) Equivalent circuit of Fig (b)
For simplicity, consider a 3-bit DAC as shown in Fig (a), where the switch positions
d1, d2, d3 corresponds to the binary word 100 (d1=1, d2=0, d3=0) . The circuit can
be simplified to the equivalent form of Fig (b) and finally to Fig (c).
Analysis:
Thevenizing the circuit to the left of switch d1, Thevenin’s equivalent resistance is
2
given by {[(2RII2R)+R] II 2R} + R = 2R and 2R II R = R
3
Then, voltage at node C is obtained by using potential divider rule is given by
• The output voltage for an inverting amplifier for the input 100 (4) i.e d1 = 1, d2
= 0, d3 = 0 is given by
1
If VR =5V then Vo = VR = 2.5V
2
• The output voltage for an inverting amplifier for the input 010 (2) i.e d1 = 0, d2
= 1, d3 = 0 is given by
• The output voltage for an inverting amplifier for the input 111 (7) i.e d1 = 1, d2
= 1, d3 = 1 is given by
d1 d2 d3 dn
Vo = VR ( + + + ----------------------- + 2n )
2 4 8
For the digital input 001(1) i.e d1=0, d2=0, d3=1 then
1 VFS
Vo = VR (0 + 0 +1/8) = VR =
8 8
Raghu Institute of Technology Dept. of ECE LICA Unit - 6
9
1
If VR =5V then Vo = 5V = 0.625 V.
8
Similarly obtain the analog output Vo for other digital inputs.
Advantages:
• It requires only two resistors R & 2R.
Disadvantages:
• In weighted resistor type DAC and R-2R ladder type DAC, current flowing in
the resistors changes as the input data changes. More power dissipation
causes heating, which in turn, creates non-linearity in DAC. This is a serious
problem and can be avoided completely in Inverted R-2R ladder type DAC.
Topics to be covered: Inverted R-2R Ladder /Current Mode R-2R Ladder DAC
1. Explain Inverted R-2R Ladder /Current Mode R-2R Ladder DAC
A 3-bit Inverted R-2R ladder type DAC is shown in Fig (a), where the position of
MSB and LSB bits are interchanged. Here each input binary word connects the
corresponding switch either to ground or to the inverting input terminal of the op-
amp, which is also at virtual ground. Since both the terminals of switches di are at
ground potential, current flowing in the resistances is constant and independent of
switch position, i.e. independent of input binary word.
In Fig (a), when switch di is at logical '0' i.e., to the left, the current through
2R resistor flows to the ground and when the switch di is at logical '1' i.e., to the
right, the current through 2R sinks to the virtual ground. The circuit has the
important property that the currents divide equally at each of the nodes. This is
because the equivalent resistance to the right or to the left of any node is exactly
equal to 2R.
Fig: (b) Inverter R-2R ladder DAC showing a division of current for input word
001 (d1 = 1, d2 = 0, d3 = 0)
The division of the current is shown in Fig (b). Consider a reference current of
2mA. Just to the right of node A, the equivalent resistor is 2R. Thus 2mA of
reference input current divides equally to value 1 mA at node A.
Similarly to the right of node B, the equivalent resistor is 2R. Thus 1 mA of
current further divides to value 0.5 mA at node B.
Similarly, current divides equally at node C to 0.25 mA. The equal division of
current in successive nodes remains the same in the ‘inverted R-2R ladder'
irrespective of the input binary word, Thus the currents remain constant in each
branch of the ladder. Since constant current implies constant voltage, the ladder
node voltages remain constant at VR/21, VR/22, VR/23, VR/23------ VR/2n
According to bit di, the corresponding switch gets connected either to
ground for di = 0 or to -VR for di = 1. The current flows from inverting input
terminal to -VR for di = 1 and from ground to - VR for di = 0. Regardless of the
binary input word, the current in the resistive branches of the inverted ladder
circuit remains always constant as explained in Fig (b).
The output voltage Vo is given by
VO = −IO R f
IO = I1 + I2 + − − − − − − + In
−VR
I1 =
2R
−VR /2 −VR I1
I2 = = =
2R 4R 2
−VR /4 −VR I2
I3 = = =
2R 8R 2
−VR /8 −VR I3
I4 = = =
2R 16R 2
−VR /2𝑛− 1 In−1
In = =
2R 2
VO = −IO R f = − (I1 + I2 + − − − − − − + In ) R f
−VR −VR −VR −VR −VR
VO = −( d1 + d2 + d3 + d4 − − − − − − + 𝑛 dn ) R f
2R 4R 8R 16R 2 R
VR
VO = R f [d1 2−1 + d2 2−2 + d3 2−3 + d4 2−4 − − − − + dn 2−n ]
R
If Rf = R, Vo is given by
VO = VR [d1 2−1 + d2 2−2 + − − − − + dn 2−n ]
For the digital input 1001( 9) i.e d4=1, d3=0, d2 = 0, d1=1 then
VO = VR [1. 2−1 + 0. 2−2 + 0. 2−3 + 1.2−4 ]
OR
VO = VR [D/24 ] = VR [D/16]
9
VO = VR [1/2 + 0 + 0 + 1/16] = VR
16
9
If VR = 5V then Vo = 5V = 2.8125V
16
Advantage:
The most important advantage of the current mode or inverted ladder is that since
the ladder node voltages remain constant even with changing input binary words
(codes).
Problems on DACs
1. What would be the output voltage produced by a D/A converter whose output
range is 0 to 10V with a binary number is
(i) 10 (for a 2-bit DAC).
(ii) 0110 (for a 4-bit DAC)
(iii) 10111100 (for a 8-bit DAC)
2. Calculate the values of the LSB, MSB and full scale output for an 8-bit DAC for
the 0 to 10V range.
3. The basic step of a 9-bit DAC is 10.3 mV. If 000000000 represents 0V, what
output is produced if the input is 101101111.
Solution: The output voltage for input 101101111 is
= 10.3mV (1.28+0.27+1.26+1.25+0.24+1.23+1.22+1.21+1.20) = 10.3mV (367) =3.78V
Raghu Institute of Technology Dept. of ECE LICA Unit - 6
13
D = d1 2 −1 + d 2 2 −2 + …… + d n 2 −n (1)
where d1 is the most significant bit and dn is the least significant bit.
Direct type ADCs compare a given analog signal with the internally generated
equivalent signal. This group includes
1. Parallel comparator or flash type converter
2. Counter type converter
3. Tracking or servo/servo tracking converter
4. Successive Approximation type converter
Fig. (a): Basic Circuit of a Flash or Parallel Comparator Type A/D Converter
In Fig (a), at each node of the resistive divider, a comparison voltage is available.
Since all the resistors are of equal value, the voltage levels available at the nodes
are equally divided between the reference voltage VR and the ground. The purpose
of the circuit is to compare the analog input voltage Va with each of the node
voltages. The truth table for the flash type A/D converter is shown in Fig. (c).
Fig. (a) Counter Type A/D Converter (b) D/A Output Stair Waveform
In Fig. (a), the analog output Vd of DAC is compared to the analog input Va by the
comparator. If Va > Vd, the output of the comparator becomes high and the AND
gate is enabled to allow the transmission of the clock pulses to the counter. When
Va < Vd, the output of the comparator becomes low and the AND gate is disabled.
This stops the counting at the time Va Vd and the digital output of the counter
represents the analog input voltage Va.
For a new value of analog input Va, second reset pulse is applied to clear the
counter. Upon the end of the reset, the counting begins again as shown in Fig. (b).
The counter frequency must be low enough to give sufficient time for the
DAC to settle and for the comparator to respond.
If the maximum value of the analog voltage is represented by n-pulses and if
the clock period is T seconds, the minimum interval between samples is nT
seconds.
Raghu Institute of Technology Dept. of ECE LICA Unit - 6
21
Advantages:
1. It requires less hardware components.
2. Its operation is simple.
Disadvantages:
Low speed is the most serious drawback of this method. The conversion time can
be as long as (2n- 1) clock periods depending upon the magnitude of input
voltage Va. For instance, a 12-bit system with 1 MHz clock frequency, the counter
will take (212-1) s = 4.095 ms to convert a full scale input.
Problem on Counter Type DAC
1. Calculate the conversion time for a full scale input in case of a 12-bit counter
type analog to digital converter driven by 2MHZ clock?.
Sol: T = 1/(2ˣ106) = 0.5µs
The total time for a full scale input in case of a 12-bit counter type = (2n – 1) T
= (212 – 1) ˣ 0.5µs
= 2.0475ms
2. Explain about servo tracking A/D converter.
An improved version of counting ADC is the tracking or a servo converter shown in
Fig. (a). The circuit consists of an up/down counter with the comparator
controlling the direction of the count. The analog output of the DAC is Vd and is
compared with the analog input Va.
Fig. (b): Successive Approximation Conversion Sequence for a Typical Analog Input
Fig. (c): The D/A Output Voltage is Approximately Close to Actual Input Voltage.
Fig (b) shows a typical conversion sequence and Fig. (c) shows the associated wave
forms. It can be seen that the D/A output voltage becomes successively closer to
the actual analog input voltage. It requires eight pulses to establish the accurate
output regardless of the value of the analog input. However, one additional clock
pulse is used to load the output register and reinitialize the circuit.
Advantages:
1. It’s conversion speed is high.
Disadvantages:
1. It is faster but less accurate than integrating type ADC.
Fig. (a) shows the functional diagram of the dual-slope or dual-ramp converter.
The analog part of the circuit consists of a high input impedance buffer AI,
precision integrator A2 and a voltage comparator.
The converter first integrates the analog input signal V a for a fixed duration
of 2n clock periods as shown in Fig. (b). Then it integrates an internal reference
voltage VR of opposite polarity until the integrator output is zero. The number N of
clock cycles required to return the integrator to zero is proportional to the value of
Va averaged over the integration period. Hence N represents the desired output
code.
Fig. (a) Functional Diagram of Dual slope ADC (b)Integrated output waveform
Raghu Institute of Technology Dept. of ECE LICA Unit - 6
27
Operation:
Before the START command arrives, the switch SW1 is connected to ground and
SW2 is closed. Any offset voltage present in the A1, A2, comparator loop after
integration, appears across the capacitor CAZ till the threshold of the comparator is
achieved. The capacitor CAZ thus provides automatic compensation for the input-
offset voltages of all the three amplifiers. Later, when SW 2 opens, CAZ acts as a
memory to hold the voltage required to keep the offset nulled.
At the arrival of the START command at t = t1, the control logic opens SW2
and connects SW1 to Va and enables the counter starting from zero.
The circuit uses an n-stage ripple counter and therefore the counter resets to
zero after counting 2n pulses. The analog voltage Va is integrated for a fixed
number 2n counts of clock pulses after which the counter resets to zero. If the
clock period is T, the integration takes place for a time T 1 = 2n X T and the Output is
a ramp going downwards as shown in Fig. (b).
The counter resets itself to zero at the end of the interval T I and the switch
SW1 is connected to the reference voltage (- VR). The output voltage V0 will now
have a positive slope. As long as Vo is negative, the output of the comparator is
positive and the control logic allows the clock pulse to be counted. However, when
Vo becomes just zero at time t = t3, the control logic issues an end of conversion
(EOC) command and no further clock pulses enter the counter. It can be shown
that the reading of the counter at t3 is proportional to the analog input voltage Va.
In Fig. (b)
2n counts
T1 = t2 − t 1 = (1)
clock rate
Digital count N
And t3 − t2 = (2)
clock rate
For an integrator,
v0 = (−1/ RC ) V (t) (3)
The voltage v0 will be equal to v1 at the instant t2 and can be written as
v1 = (−1/ RC )Va (t2 − t1)
The voltage v1 is also given by
v1 = (−1/ RC)(−VR )(t2 − t1)
Va (t2 − t1 ) = VR (t3 − t2)
Putting the values of (t2 − t1 ) = 2n and (t3 − t2 ) = N , we get
Va (2n )= (VR )N
Or, Va = (VR )(N / 2 n ) (4)
Raghu Institute of Technology Dept. of ECE LICA Unit - 6
28
The following observations can be made from the dual slope ADC as:
1. Since VR and n are constant, the analog voltage Va is proportional to the count
reading N and is independent of R, C and T.
2. The dual-slope ADC integrates the input signal for a fixed time, hence it provides
excellent noise rejection of ac signals whose periods are integral multiples of the
integration time T1 Thus ac noise superimposed on the input signal such as 50 Hz
power line pick-up will be averaged during the inputintegration time. So choose
clock period T, so that 2nT is an exact integral multiple of the line period (1/50)
second = 20 ms.
Advantages:
It provides excellent noise rejection of ac signals.
Disadvantage:
Dual-slope ADC is the long conversion time. For instance, if 2n.T = 1/50 is used to
reject line pick-up, the conversion time will be 20 ms.
2. Find the digital output, for 8-bit dual slope integrating ADC whose analog
input voltage =100mv, VR = 8V.
Sol: Va = (VR )(N / 2 n )
Digital count, N = 2n (Va/VR)
n = 8 & VR = 8V then N = 28 (100mV/8V) = 204.8 = 205.
Therefore (205)10 = (11001101)2
Digital output = (11001101)
3. Find the digital output, for 16-bit dual slope integrating ADC whose analog
input voltage = 4.129 V, VR = 8V.
Sol: Va = (VR )(N / 2 n )
Digital count, N = 2n (Va/VR)
n = 16 & VR = 8V then N = 216 (4.129V/8V) = 65536 (4.129V/8V) = 33825.
Therefore (338255)10 = (1000010000100001)2
Digital output = (1000010000100001)
Comparison between Flash, Successive Approximation & Dual Slope ADCs
Therefore, we can say that an input change of 1 LSB causes the output to
change by 39.22 mV
From the resolution, we can obtain the input-output equation for a DAC
Vo = Resolution * D
Where, D = Decimal value of the digital input
Vo = Output Voltage
Linearity:
The linearity of an A/D or D/A converter is an important measure of its accuracy
and tells us how close the converter output is to its ideal transfer characteristics.
In an ideal DAC, equal increment in the digital input should produce equal
increment in the analog output and the transfer curve should be linear.
However, in an actual DAC, output voltages do not fall on a straight line
because of gain and offset errors as shown by the solid line curve in Fig. The static
performance of a DAC is determined by fitting a straight line through the
measured output points. The linearity error measures the deviation of the actual
output from the fitted line and is given by £IΔ as shown in Fig.
The error is usually expressed as a fraction of LSB increment or percentage of
full-scale voltage. A good converter exhibits a linearity error of less than 1/2 LSB.
Relative accuracy is the maximum deviation after gain and offset errors have
been removed. The accuracy of a converter is also specified in terms of LSB
increments or percentage of full scale voltage.
The accuracy of DAC should be at worst, ± 1/2 LSB. If the full scale output
voltage is 10.2V then for 8-bit DAC accuracy is given by
V 10.2 V 10.2 V
Accuracy = n FS = 8 = = 10mV
(2 – 1)2 (2 – 1)2 (255)2
Monotonicity:
A monotonic DAC is the one whose analog output increases for an increase in
digital input. The below Fig represents the transfer curve for a non-monotonic
DAC, since the output decreases when input code changes from 001 to 010. A
monotonic characteristic is essential in control applications, otherwise oscillations
can result. In successive approximation ADCs, a non-monotonic characteristic may
lead to missing codes.
If a DAC has to be monotonic, the error should be less than 1/2 LSB at each
output level. All the commercially available DACs are monotonic because the
linearity error never exceeds 1/2 LSB at each output level.
Generally, DACs with a current output will have shorter settling times than
those with voltage outputs.
Stability:
The performance of converter changes with temperature, age and power supply
variations. So all the relevant parameters such as offset, gain, linearity error and
monotonicity must be specified over the full temperature and power supply
ranges.
2. What are the Specifications of AD 574 (12-Bit ADC)
Supply Voltage = + 5V
Supply Current = 800Ma (Max)
Power Dissipation = 390 mw (Typical ) & 725mW (Maximum)
Resolution = 12 bits
No of channels = 48-Single Ended or 24 differential
Polarity = Unipolar/Bipolar
Maximum Conversion Time = 35µsec
Accuracy = ± 0.01% of reading ± 1 LSB
Linearity Error = ± 1 LSB
Maximum Input Volage Range = ± 35V
Analog Input Range = -5V to 5V
Internal Reference Voltage = 9.98 V to 10.02 V
Operating Temperature = 0 – 70oC
Problems