Data Converters
Data Converters
CONVERTERS
110INTRODUCTION
Itis important for a system to convert the available signal into digital form and vice-versa
There are basic two types of converters named as A/D converter and D/A coaverter.
Covener.
The process of conversion from an analog signal to digital signal is refered to as an Analog to Digtai
ADC or AD converter).
fed to D/A converer o ge
Whenever, the output of the system required to be in analog form then the digital inpats
are
ack the original analog signal. For this purpose Digital to Analog Converter
(DAC or D/A Coaverter) is used
20LSB)
Resistance Analog
Ourput
Digital
Inputs 2
Divider
Circuit
2
(MSB)
Converter.
Weighted DA
Functionalblock
diagram of Binary
g. 11.1
843
DESIGN
CIRCUITS & LOGIC
DIGITAL
844 Table 11.1 shows digital inputs and their corresponding analog oupu
TABLE 11.1
Analog Outputs
Digital Inputs
OV
0 0
+1V
0
0 +2V
+3V
0
+4V
0
+5V
+6V
1 1 +7V
1
output voltage.
1. The 20 bit must be changed to +1V and 21 bit must be changed to +2V, and 22 bit must be changed to + 4V.
2. These three voltages represents the digital bits and they must be summed together to form the analog output
voltage.
Its internal structure is as shown in fig. 11.2 for a 3-bit digital input.
Digital Inputs
22 2 0
(MSB) LSB)
Ro
RLRo
us a s s u m e logic 0 = 0V
Let
logic 1=+7V
Vi No +7V=1
OV OV
4
R2 =R. RRo
VA
RL>Ro
input (001)2
Converter for given
Resistance DA
a. 11.3 Equivalent circult of Binary Weighted
ACcording to Millman's theorem V, =
V, =0V)
/R,14)
V/R,/2)+V,
Vo7V,
A =R +
, +1/(R/2)+1/R,14)
1/R
V
7/R+0+0 1/Ro
o=+1V
4
+
Ro Bo Ro
So, the output is
alog+1V.
t will
be mo anotherdata.
more clear if we consider
he
digital data is 011, we have
logic 0= OV data)
[Assumed
+7V
1=
logic
846 Its
DIGITAL CIRCUITS& LOGIC DESIGN
equivalent circuit is as shown in fig. 114.
V2 V
+7V 1 Vo N 1
OV
Ro4 R2 Ro
2 R Ro
VA
RL>Ro
Fig. 11.4 Internal structure of Binary Weighted Resistance D/A converter for given input data(001)
According to Millman's theorem
In 10-bit system, the current through the MSB resistor is approximately 500 times as large as the current througn
resistor.
Due to these drawbacks second types of reslstive network is used called as 'R-2R ladder' network
Converter
11.1.2 R-2R Ladder D/A r make
l tovercomes the drawbacks of resistive network in which different values of resistances are used. R-2R ladder
f only two values of resistor 1.e. K and 2K. It 1s as shown in fig. 11.5 for a 4-bit digital input.
VERTTERS
ERTERS
Digital Inputs
847
(LSB)
(MSB)
2R 2R
2R R
w ww
2R A
w w
R B R C R D
D
VA
Analog
Ci 11.5 Internal structure of R-2R
Output
Ladder digital to
the formula analog converter.
I uSes
2 2 2 2
n=
Number of bits.
Here, n =
4(as data is 4-bit)
2R 2R 2R 2R
w w- ww VA
2R A R B R C R D Analog
Output
v,Yox20 +V 2 +Va 22 +V, 2 16x1+0x2+16x4
16
+0x8 16+6480
16
us, the analog
outputis +5V.
imilarly, if the iven data is 1000, we get
v. - Ox20+0x2
VA +0x22 +16x2 16x8
16x8= 8V
Thus, nalog output is 2
16
8V for binary 1000.
Performance
1.
Rer
esolution
Characteristice of D/A Converters discrete steps in the D/A outputs. Thus, resolution
number of
:
Reso.
on the number Solution is the reciprocal of the
following equation
bits
Or in a digital system. It is given by
3. Linearity: The linearity of the converter specifies the accuracy with which the ideal performance is followed
Output of D/A Converter must be each step up (down) in the digital input so as to cause an increase (decrease) in the analog
specified limit of the final value. The limit range is -LSB or less. This parameter tells the speed of D/A converter and
it can be calculated by use of switches, amplifier, resistors etc. in the device.
EXAMPLE 11.1 A 6-bit R-2R ladder D/A converter has reference voltage of 6.5 V. It meets standard linearity.
Calculate 1. Resolution in Volts and Percentage 2. Full Scale Voltage 3. Output for O11100
4. Range in output for (0) 5. Quantization error
1
SOLUTION: 1. Resolution 2
Here, datais
0
1 0
MSB Vs V4 V V2 V Vo LSB
out
6.5x2+6.5x 23 +6.5x24
64
also, Vo65x284 V 04
A/D AND D/A
CONVERTERS
is specifiedby linearity which is
m deviation LSB
Matun
849
LSB =
Resolution is Volts =
0.1 V
Therefore,
LSB =+0.05 V
Range = 2.84 +0.05 V
Thus
Qvantization error is given by
Q.E. =
LSB 0.05_0.05
2
2-1 26-1630.00079
9% Q.E. = 0.079 %
V, Voltage Y(Output)
Comp
(Inputs,Voltage
and V, voltages.
Fig. 11.6 Comparator with V,
can be designed. The
table gives following points
From table 11.2 the circuit diagram
is high.
(1)
X is high ie.. '1' only when, 4th comparator output
6.5V
5.5V
4.5V
3.5V
Digital
Xi Outputs
2.5V
D
1.5V Xo
0.5V
Analog Reference
Input (V) Voltage (V)
Voltage
Fig. 11.7 Internal structure of parallel AD Converter
Lets take an example -»
Let V. analog Input = 5V
öclear
5V
OV<V
SV6SV
6
O(V,<V,
SVSVv
1(:V>V
sv4SV
0
V,>V
S v 3 S V 0 X D i g i t a l
X1 Outputs
1:V,>V, 0
sv 2.5V
2
iV,>V,
S V S V v
1(V,>VN
0.5V
Converter
Thus, Vs = 5V = (101)2
up/down)
Counter
AD
of this
comnponents
[Link] converter
[Link]
[Link]-down counter
[Link] unit and
[Link].
CIRCUITS & LOGIC DESIGN
DIGITAL
852 It is as shown in figure 11.9
Analog
Input V Control
Logic
V, Comparator
Up Down Command
Command Clock
Reference
Voltage Do Q0
D/A
Di Qi Up/Down
Converters D2 - Q2 Counter
D3
Latches
Digital Output
converter.
Fig. 11.9 Black diagram of counter type A/D
i.e. op-amp at its non-inverting input. The
The analog input which is to be viewed as digital is given to the comparator
If the
reference voltage V, which is to be compared with the analog input V; comparator.
at
output of D/A converter is the 'l' and due to
the output of comparator goes High i.e.
reference voltage V, is less than the analog input V; ie. V,< Vi,
counter gives the binary counts and an analog reference output
which the counter is in up mode via control logic. Thus, the
with the analog voltage Vi. Whenever, the V, i.e. reference
is obtained from the D/A converter which is then compared
of Low i.e. '0' and the counter comes in the
voltage becomes equal to V; i.e. analog voltage then the output comparator goes 15
starts counting up and if input
down mode through control logic. If the analog input is increasing then the counter
decreasing, the counter continues to count back i.e. down. It is as shown in figure 11.10.
12 Continuous
11 Analog Signal
10-
9
8
7 D/A Converter Output
Magnitude 6
Time ()
Flg. 11.10 Input-output waveforms for counter type A/D converter
AD AND D/A CONVERTERS
If the input is 853
constant, the counter backs down
on count when a
count, the reference voltage comparison takes
place t ooes High and coun
V,becomes a bit less than
goes to p analog output
again. So, if the input is constant, this back and forth voltage V, the comparator ou e t Such type of
output waveforms. action continuous and due to wicn v 8
112.4 Dual Slope A/D Converter
Dual slope AD convertor is used because it is free from the noise which is not overcome by single slope A/D convert
It uses op-amp as integrator amplifier for ramp generator. It is called dual slope because it uses afixed slope as well as
vanable slope ramp. It is as shown in figure 11.12.
R
Counter
Clock
Latches
D3 D2 D1
Doj
Digital Outputs
Fig. 11.12 Black diagram of Dual Slope AD Converter.
A/D AND D/A CONVERTERS
he integrating op-amp uses a capacitor in the feedback path as clearly shown in figure 855
Output voltage of integrating op-amp is given by -
o-i d=-Vd RC
Thus, the output voltage is integral ofanalog input voltage. IfVin is constant we get an output-Vi which is a
fxed ramp. If Vin is varying we get a ramp fixed as well as variable slope at its output.
Let the output ofintegrator be zero and initially the counter be reset i.e. starts from 0000 (for 4-bit counter). A positive
nalog input voltage Vin is applied through electronic switch S, we get a ramp output and the counter starts counting. When
inecounter reaches a specified count, it will be reset again and the control logic switches to the negative reference voltage
-Vthrough switches. At this instant the capacitor'C' is charged to a -ve voltage -V" proportionalto analog input
wdtageofV, When-Veamplifier
isconnected the
capacitor C' starts discharging linearly due to constant currentfrom-V,et The
is now positive fixed slope ramp which starts at -V'.
a
output integrating
As the capacitor discharges, the counter starts from reset state, when the output of integratorbecomes zero due to
the CLK. through AND gate. Thus, the counter stops and the
which the comparator output becomes Low and it disables to
one conversion cycle. The binary count is proportional
digital output can be obtained from latches. This completes
analog input Voltage Vin or V
V Control Logic
V, Comparator CLK
(Reference
Voltage)
-R
Flip Flops >Flip Flops
are used
SAR
Level Amplifiers
D3
Latches D2|
D
Do
Digital outputs
D/A Converters
Converter.
Approximation Type AD
11.13 Black diagram of Successive
Fig.
856 DIGITAL CIRCUITS & LOGIC DESIGN
c Contro logic is used to set or reset the flip-flops. The output of these flip-flops are given to level amplifiers and
D A converter which is a binary ladder network. It gives digital outputs as well as the analog reference voltage V.
1000
V,=Vi
Clock is disabled by control logic and we get 4V as analog voltage in digital output 0100.
Consider another example for its
working
LetAnalog Voltage be V 5V and intially V, 0, thus V,< V, First MSB in set to '1', output
= =
of SAR =
1000.
Again, V, = 8V and V; = 5V
V,>V
Ist MSB is reset to 0' and 2nd MSB is set to '1', output of SAR = 0100
Again, V,=4V, and V; = 5V
3rd MSB is
V,>V
set to zero and 4 bit is 1', output of SAR 0101.
set to =
V,= Vi =5V
Now clock is disabled by control logic and output of SAR 0101 = is obtained as digital output through latches.
EXAMPLE 11.3 Find the sanversian time & c roio
A/D AND D/A CONVERTERS
26 Performance Characteristics of AD Converter
857
126
defined
is del as the voltage input change necessary for one bit hange in the output. For n bit ADC, the
Resolution : It
1.
levels are 2"- 1.
Rmber of output
Full scale input Full scale I/P
Resoluton=
[Link] O/P levels 2"-1
Eor Example: 10 bit ADC having an I/P voltage range of -10 and + 10V. The resolution is given by:
or
%Resolution = x 100%
(Because,n =4)
For 4 bits, %Resolution = 2"-1x100x100
15
=6.7%.
(Or)
Resolution may also be defined in two ways
(a) A DAC that can provide
number of different analog output values is called Resolutions.
For a DAC having n-bits
Resolution 'R' =2".
1 least significant
A DAC in which the ratio of change
in output voltage resulting from a change of 1 LSB (i.e.,
(6)
known as resolution.
bit) at the digital inputs is
Resolution for n-bit DAC is given by
"%R'= OFSx100.
Percentage Resolution -1
resolution is known, we have:
obtained for DAC, if the
Input-Output equation can also be
D
Vo= Resolution x
where, Vg =Output voltage.
D Decimal value of the digital input.
R
x 100 X100
2-1
If Vo R where R = Resolution. Then, %
Resolution= R(2n_
converter determines the number of bits which can
ADC i.e. analog to digital
Accuracy: The accuracy of a given
2.
be usefully provided. etc. Typical values are t 0.02% of the full scale
error system noise
ADC consists of quantization
he accuracy of an reading. The
reading. 0.02% of full scale
10V. If the accuracy is
ADC OR with input range of t
For Example: Consider an limitation is 2mv.
naximum error due to such accuracy
(Or)
and the expected analog output,
the actual analog Output
difference between
ACCuracy may also be
defined as the
in percentage. In ideal case the accuracy of DAC should be at worst,
whenud given digital input in applied. It is expressed
+of its LSB.
VOFS
Accuracy 2(2-1)
DESIGN
$58 DIGITAL CIRCUITS & LOGIC complete measurment by analog
time requires for a
Conversion Time or Setting Time: lt is the time refers to the
to digital converter.
(Or)
It 1s dcpendent on the
amplifiers
into its digital equivalent.
m e required for conversion of analog signal
output and switches response time.
converter directly determines the relative
4Linearity: Linearity is basically a "best staraight line'. Lincarity of a actual
the oonverter. It is the difference of errors betweens
the nominal and
the ruil
scale analog value
ratios to error should
ury
o and independent of full scale
calibration. The linearity be less than
esponding to a given digital input
LSB
must be specified over
error, monotonicity and otiset
SStability : When all the parameters such as gain, linearity the converter.
Dc power supply ranges and full temperature then these parameters
represent the stability of
for a
decrease or skip at any point continuously increas ing
Monotonicity: The output of AD convertor should not
input signal. It is known as monotonicity of A/D convertor.
(Or)
counter, then it is said to have a
during its entire range stepped by
a
ifa converter does not miss any step backward
coaverter having good monolonicity.