ANC Unit-5
ANC Unit-5
10.1 INTRODUCTION
Most of the real-world physical quantities such as voltage, current,temperature, pressure
and time etc. are availablein 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 superim-position of noise as in
the case of amplitude modulation. Therefore, for processing, transmission and storagepurposes,
it is often convenient to express these variables in digital form. It gives better accuracyand
reduces noise. The operation of any digital communication system is based upon analog to
digital (AD) and digital to analog (D/A) conversion.
Figure 10.1 highlightsa typicalapplication within which A/D and D/A conversion is used.
The analog signal obtained from the transducer is band limited by antialiasing filter. The
signal is then sampled at a frequency rate more than twice the maximum frequency of the
band limited signal. The sampled signal has to be held constant while conversion is taking
place in AD [Link] requires that ADC should be preceded by a sample and hold
(S/H) circuit. The ADC output is a sequence in binary. digit. The micro-computer or digital
signal processor performs the numerical calculations of the desired control [Link]
D/A converter is to convert digital signal into analog and hence the function of DAC is
exactly opposite to that of [Link] D/A converteris usually operated at thesame frequency
as the ADC. The output of a D/A converter is commonly a staircase. This staircase-like
digital output is passed through a smoothing filter to reduce the effect of quantizationnoise.
I, = I, + I, +
VRd
2R t22R 2" R
R
$2'R
2'R
GiMse)
d,(LSB)
(a)
andno
boje
(b)
Fig. 10.3 (a) A simple weighted resistor DAC (b) Transfer characteristics of a 3-bit DAC
V, =1R,= VR
R -(dh 2-1+ d, +...+d, (10.2)
R 2-2 2-")
Comparing Eq. (10.1) with Eq. (10.2), it can be seen that if R =R then K = 1 and
VFS = VR:
The circuit shown in Fig. 10.3 (a) uses a negative reference voltage. The analog output
voltage is therefore positive staircase as shown in Fig. 10.3 (b) for a 3-bit weighte resistor
The largest resistor is 128 times the smallest one for only 8-bit DAC. For a 12-bit DAC, the
largest resistance required is 5.12 MQ
if the smallest is 2.5 ko. The fabrication of such a
large resistance in IC is not practical. Also the voltage drop across such a large resistor due
to tne bias current would also affect the accuracy. The choice of smallest resistor value as 10
2.0 k2is reasonable;otherwise loading effect wil be there. The difficulty of achieving and
mantaining accurate ratios over such a wide range especially in monolithic form restricts
the use of weighted resistor DACs to below
8-bits.
The switches in Fig. 10.3 (a) are in series with resistors and therefore,their on
resistance Chapter
must be very low and they should have zero offset voltage. Bipolar transistorsdo not
perform
well as voltage switches, due to the inherent offset voltage
when in saturation. However, by
using MOSFET, this can be achieved.
Different types of digitally controlled SPDT electronic switches are available of
which two
are shown in Fig. 10.4. A totem-pole MOSFET driver in Fig.
10.4 (a)feeds each resistor
connected to the inverting input terminal 'a' of Fig. 10.3 (a).
The two complementary gate
inputs Q and Q come from MOSFET S-R flip-flop or a binary cell
of a register which holds
one bit of the digital information to be converted to an
analog number. Assume a negative
logic, i.e. logic 1 corresponds to -
10 V and logic '0 corresponds to zero volt. If there is 1
in the bit line, S= 1 and R =
0 so that and Q Q=1 =
0. This drives the transistor Q, on,
thus connecting the resistor R, to the reference
voltage -V
whereas the transistor Q2
remains off. Similarly a 0
at the bit line connects the resistor R, to the ground
terminal.
Another SPDT switch of Fig. 10.4(b) consists of CMOS
inverter feeding an op-amp voltage
follower which drives R,from a very low output
resistance. The circuit is using a positive
logic with V(1) = V= =
+5 V and V(0) 0 V. The complement Q of the bit under consideration
is applied at the input. Thus Q =
0 makes transistor off and on. The output of the
CMOS inverter is at logic 1, that is, 5V
is applied to resstor F through the
voltage follower.
|And if Q =1 the output of the CMOS inverter is 0 V cinzsng the
reitance2 to und.
V(-10v)
Bit line
R R,
R
Wa
Op-amp
input line Op-amp
input line
(a)
(b)
Fig. 10.4 (a) A totem pole MOSFET switch (b) CMOS Inverter as Switch
10.2.2 R-2R Ladder DAC
resistor type DAC,
Wide range of are required in binary weighted
resistors This can
are be
avoided by using R-2R ladder type DAC where only two values of resistors required. It
1S well suited for integrated circuit realization. The typical value of K ranges from 25
to 10 kQ.
For simplicity, consider a 3-bit DAC as shown in Fig. 10.5 (a), where the switch
position
d, dy d, corresponds tothe binary word 100. The circuit can be simplified to the
equivalent
form 10.5 (b) and Then, voltage at node C can be
of Fig. to finally Fig. 10.5 (c). easily
2R + R
3
4
-2R( VES
V, =
R 4 2 2
2R
R
R R
+ <
Vo
2R 2R 2R $2R
(LSB) (MSB)
d,-0 d,=0 d,=1
-o -V
(a)
w
2R
R R CR
2R 2R 2R Vo
2R
(b)
2R R
2R
2R
V, =( R VRVES
16 8
2R 10
Š2R 2R
,d,-1
R
TT 2R
R
d,=0
S2R
d,=0
R
+ V -VR
2R
A
2R
R
2R
R
2R
R
2R
Chapter
-o -VR
(a) (b)
Fig. 10.6 (a) R-2R ladder DAC for switch positions 001 (b)Equivalent circuit
In a similar fashion, the output voltage for R-2R ladder type DAC corresponding to
other
3-bit binary words can be calculated.
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. A 3-bit Inverted R-2R ladder type DAC is shown in Fig.
10.7 (a) where the position of MSB and LSB is interchanged. Here
each input binary word
Connectsthe corresponding switch either to ground or to the inverting input terminal of the
op-amp which is also at [Link] both the ierminals of switches d,are at ground
potential, current flowing in the resistancesis constant and independent of switch pOsition
ie. independent of input binary word. in Fig. 10.7 (a), when switch d, is at logical
the left. the current through 2R resistor flows to the ground and when
ie. to 0
the switch d is at
logical 1' ie.. to the right, the current through 2R sinks to the virtuai
ground. The cireuit
has the important property that the current divides equally at each of the nodes. This is
because the equivalent resistance tothe right or to the left of any node is exactly 2 R.
The
division of the current is shown in Fig. 10.7 (b). Consider a reference current of 2 mÀ.
hust
to the right of node A, the equivalent
resistor is 2 R. Thus 2 mA of reference input current
divides equally to value 1 mA at node [Link] to the right of node B, the eguivalent
resistor is R. Thus 1 mA
2 current further divides to value 0.5 mA at node
of
B. Similarly,
urrent divides equally at node C to 0.25 [Link] equal division of current in successiw
nodes remains the samne in the inverted R-2R ladder irrespective of the
input binary word.
hus the currents remain constant in each branch of the adder. Since constant curent
nplies constant voltage, the ladder node voltages remain constant at V/2°, V/21, V/92 Tho
rcuit works on the principleof summing currents and is also said to operate in the cument
[Link] 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), the
performance of the
stray capacitances are not able to produce slow-down effects on the
circuit.
It may be noted that the switches used in Fig. 10.7 (a) are the SPDT switches discussed
earlier. Acording to bit d, the corresponding switch gets connected either to ground for d,
=0or to V for d, = 1. The current flows from inverting input terminal to –VR for = d 1
and from ground to -V for d; = 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.
10.7(6). However, the current through the feedback resistor is the summing current R
10.7 (b) shows
depending upon the input binary word. It may further be mentioned that, Fig.
only the current division for making the analysis simple, though it is a voltage driven
DAC.
-Vo
R R 2R
$2R 2R 2R
ld,(MSB) d (d,(LSB) R
(a)
A R B R 2R
2 mA 1 mA w 0.5 mA 0.25 mA
R
2R 2R
W2 mA 2R
1 mA d,=1
0.5 mA [d,=0 0.25 mA d,-0
(b)
Fig. 10.7 (a) Inverted R-2R ladder DAC (b) Inverted R-2R ladder DAC showingdivision
of current for digital input word 001
Adigital to analog converter which uses a varying reference voltage V is called a multiplying
DIA converter (MDAC). Thus if in the Eq. (10.1), the reference voltage vg is a sine wavegiven
by
URlt) = Vim cos 2nft
where Vom will vary from 0V to (1-2") depending upon the input code. When used
V,im, like
Chapter
Rsa and
voltage V). The total reference V -5
match the referenceVR current source is determined by
and is equal to V/R4 =5 V/2.5 resistor
input
impedance of the kQ=[Link] resistor R1s F R14
reference source. The output current I,
is calculated as
VR
For full
R4 4-0or1
scale input
(i.e. dg through
d, = 1)
5V
I, = 2.5 kQ = 2 mA (255/256)= 1.992 mA
i=1
V,= dg
2 4 8 256
The 1408 DAC can be
calibrated for bipolar range from
(5 k2) between VR and output pin 4 -5 V to +5V by adding resistor Re
as shown in Fig. 10.8 (b). The
(E V/R)current resistor Rp supplies 1 mA
to the output in the opposite
direction of the current
Signal. Therefore the output
generated by the input
,
current for the bipolar operation I is
8
=I,- (V/Rg) = (Vg/R,)d
i=1
2
For binary input word = 00000000, i.e. zero input,the output becomes,
Vec(+5 V)
R14
13
(MSB)d, 5 14 woVg(+5
V)
2.5 k2
6
da 7
8 R
1408
ds9
d- 10
Out
5k2
d,11 4
d,12
16 3 1 2 15 741
Vea5V)
(a)
R44
14 -o Va(+5V)
2.5 kQ
5 kQ
Ra
R
1408
1 mA
Out 5 kQ
V,
16 3 1 215
ŽRis
15 pF S2.5 k2
VE(-5 V) (b)
Fig. 10.8 1408 D/A converter (a) Voltage output in unipolar range (b) Modified circuit for bipolar output
Example 10.1
The basic step of a 9-bit DAC is 10.3 mV. If 000000000 0 V, what
represents output b
produced if the input is 101101111?
Solution
The output voltage for
input 101101111 is
= 10.3
= 10.3 mv (1x 2*+0x
mV (367) = 3.78 V
27+1 x 26 + 1x25 +0 x 24+ 1X 28 + 1 X 22 +1 x 2 +1x2)
Example 10.2
Ualculate the values of the LSB, MSB and full scale output for an 8-bit DACfor the 0 to 10 v
range.
Solution 2 10
Solution
0 V,=10v 1x,+0x;}-5v
1 1
1
+0X,4
(9 V, =10 VV0x1xtlx
=3.75V
+ 1 x 1/25
+ 1 x 1/2* + 1 x 1/2
=10 V(1 x 1/2 + 0 x 1/2
+ 0 x 1/2)
+ x 1/g6 + 0 x 1/27 + 1/32 + 1/64) = 7.34 V
1
10 (1/2 + 1/8
V
+ 1/16
3 A-D CONVERTERS the function just opposite
to that
10.9 provides word d,d,..d,
eblock ADC shown in
of
Fig.
V and
an output binary
produces
schematic
input voltage
ADAC. It accepts an analog
358 Linear Integrated Circuits
Start EOC
of functionalvalue D, so that
D = d, 21+d, 22+..,+ d,2 (10.3)
d, MSB
where d, is the most and d, is
significant bit the least d,
significant bit. An ADC usually has two additional Analog ADC Digital
Thís ís the simplest possible A/D converter. It is at the same time, the fastest and most
expensive technique. Figure 10.10 (a) shows a 3-bit A/D converter. The circuit consists of a
resistive dívider network, 8 op-amp comparators and a 8-line to 3-line encoder (3-bit priority
encoder). The comparator and its truth table is shown in Fig. 10.10 (b). A small amount of
hysteresis is built into the comparatot to resolve any problems that might occur if both
inputs were of equal voltage as shown in the truth table. Coming back to Fig. 10.10 (a), at
each node of the resistive divider, a comparison voltageis 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 V, with each of the node voltages. The truth table for the flash type AD
converter is shown in Fig. 10.10 (c). The circuit has the advantage of high speed as the
Analog
9+Va(Reference voltage)
input V,
ŽR
SR
R 8-line
to
Yz(MSB)
Y,
3-line
priority
111 Y,(LSB)
SR encoder
R X.
R X
ov
Input voltage Va
0. to Va/8 0 0 0 0 0 1 0 0
VJ8 to Va/4 0 0 0 0 0 0 1 1 0 0 1
V,/4to 3Vy/8 0 0 0 0 1 1 1 0 1
3 VJ8 to V2 0 0 1 1 1 1 1
VJ2 to 5 V/8 0 0 1 1 1 1 1 1 0
5 V/8 to 3 V/4 0 1 1 1 1 11 1 0 1
3 V/4 to 7 VJ8 0 1 1 1 1 1 1 1 11 0
7 V/8 to V 1 1 1 1 1 1 1 1 1 1 1
Fig. 10.10 (c) Truth table for a flash type A/D converter
360 Linear Integrated Circuits
time is 100
rather than sequentially. Typical conversion
conversiontake place simultaneously
by the speed of the comparator and of the
priority
ns or less. Conversion time is limited only a T1147 priority
Devices AMD 686A comparator and
encoder. By using an Advanced Micro
of 20 ns can be obtained.
encoder, conversion delays of the order required almost
This type of ADC has
the disadvantage that the number of comparators
comparators, 3-bit ADC needs 8,
whereas
doubles foreach added bit. A
2-bit ADC requires 4
required are 2
In general, the number of comparators
4-bit requires l6 comparators.
Hence the number of comparators approximately
where n is the desired number of bits, complex is the priority
doubles for each added bit.
Also the larger the value of n, the more
encoder.
the counter. When V, < Va, the output of the comparator becomes low and the
gate is AND
disabled. This stops the counting at the time V,s Va and the digital output of the counter
represents the analog input voltage V. For a new value of analog input Va, a second
reset
pulse is applied to clear the counter. Upon the end of the reset, the counting begins again
Volts
Reset o
Counter stops
Clock Binary
cOunter MSB
Digital
output
Comparator V 123 4
O1 DAC
LSB 0 5 6 7 8 9 10 012
Analog input Clock
reset
LULLLLL
(a)
End Begin End
reset reset
reset
(b)
Fig. 10.11(a) A counter type A/D converter (b) D/A output staircase waveform
as shown in Fig. 10.11 (b).The counter freguency must be low enough to give
sufficient time
for the DAC to settle and for the comDarator to
respond. Low speed is the most serious
drawback of this method. The conversion time can be as long as (2"-
1) clock periods
depending upon the magnitude of input voltage V. For instance, a
l2-bit system with
1 MHz clock frequency,the counter will
input.
take (212- 1) us 4.095 ms to convert a full scale =
If the analog input voltage varies with time, the input signal
is sampled, using a sample
and hold circuit before it is applied to the comparator. 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.
10
10.3.3 Servo Tracking A/D Converter
An improved version of counting ADC is the tracking or a servo converter shown in Fig.
10.12 (a). The circuit consists of
an up/down counter with the comparator controlling Chapter
Clock
Tracking error
Up-down
Up-down
counter
control
MSB Analog signal
Digital (dark line)
Comparator output with D/A output
V ¬LSB superimposed
DAC
Up/Down input
to counter
(Up=1, Dn=0)
Analog input
Fig. 10.12 (a) A tracking A/D converter (b)Waveforms associated with a tracking A/D converter
10.3.4
Successive Approximation Converter
The
successive
approximation technique uses avery efficient code seareh strategyto complete
oohconversion in justn-clock periods. An eight bit converter would require eight clock pulses
obtain a
digital output. Figure 10.13 shows an eight bit converter. The cireuit uses a
362 Linear Integrated Circuits
EOC
o
successiveapproximation register (SAR) to
Start
11100000
11010000
11011000
11010100
11010110
11010101
11010100
Fig. 10.14 (a) Successive approximation conversion sequence for a typical analog input
Load output
register
Actual analog
256
signal V,
192F
128
123 56789 4
Time
Fig. 10.14 (b) The D/A output voltage is seen to become successively closer
to the actual analog input voltage
D-A and A-D Converters 363
hows the associated wave forms. It can be seen that the D/A output voltage becomes successively
nser to the actual analog input voltage. It requires eight pulses to establish the accurate
of the value ofthe analog
regardless input. However,one additional clock pulse is used
output
the output register and reinitialize the circuit.
to load
A comparison of the speed of an eight bit tracking ADC and an eight bit successive
ADC is 10.15. Given the same clock frequency, we see that the
made in Fig.
approximnation
tracking circuit is faster only for small changes in the input. In general, the successive
discussed so far.
approximation technique is more versatile and superiorto all other circuits
Successive approximation ADCs are available as self contained ICs. The AD7592 (Analog
10
Devices Co.)a 28-pin dual-in-line CMOS package is a 12-bit A/D converter
using successive
approximation technique.
Conversion time for a tracking
A/D is directly proportional to
the relative change in input value
Chapter
from one conversioncycle to the next
required
Conversion time for a successive approximation
A/D is always the same,regardless of input value
cycles
clock
of
R
Integrator
output voltage
SW. CMP V, T
Autozero
Autozero N-cycles
SW,
T,2T4 t
Time
1
od, V.
Start Control n-stage -od, Integrate
logic COunter tegrate
EOC -od,
(b)
(a)
output
diagram ofthe dual slope ADC (b) Integrated
Fig. 10.16 (a) Functional
For an integrator,
(10.6)
Au, = (-1/RC) V(A)
The voltage u, will be equal to u at the instant t, and can be written as
D-A and A-D Converters 365
D = (-1/RC)V\t, -t)
The voltage v is also given by
ator
oltago = (-/RC) (- V)(ty-
U ta)
V,(2") =(V)N
or,
V,= (V)(/2")
Integrato - Integrate
-VR
The followingimportant observationscan
N
and is independent of R, C and T.
be made:
1. Since VR and n are constant,the analog voltage V, is
proportional to
(10.7)
output
2. he dual-slope ADC integrates the input signal for a fixed time, hence it provides
Dc (b) Integrated
excellent rejection of ac signals whose periods are integral
noise multiples of the
Chapter
integration time T,. Thus ac noise superimposed on the input signal such as 50 Hz
output is zero. The number N of power line pick-upwill be averaged during the input integration time. So choose lock
rtional to the value ofV, averaged period 7, so that 2"T is an exact integral multiple of the line period (1/50)second 20 =
operates ms.
output [Link] circuit
3. The main disadvantage of the dual-slope ADC isthe long conversion time. For instance,
connected to ground and SW, is if 2" T- = V50 is used to reject line pick-up, the conversion time will be 20 ms.
or loop after integration, appears
Dual-slope convertersare particularly suitable for accurate measurement. of slowlyvarying
or is achieved. capacitor CAZ
The signals,such as thermocouples and weighing scales. Dual-slope ADCs also form the basis of
0.1
Solution
equivalent is 1000010000100001.
:8 bit resolution
: a resolution of 0.392 of full-scale
a resolution of 1 part in 255
in analog
is defined as the smallest change
Similarly,the resolution of an A/D converter an 8-bit AD
As an example, the input range of
input for a one bit change at the output. 39.22 mV
for a 10 V input range is
converter is divided into 255 intervals. So the
resolution
bit DACs.
(= 10VI255). Table 10.1 gives the resolution for 6-16
Table 10.1 Resolution for 6-16 bit DACs
63 1.588 158.8 mV
6
256 39.2 mV
8 0.392
1023 0.0978 9.78 mV
10
4095 0.0244 2.44 mV
12
16383 0.0061 0.61 mV
14
65535 0.0015 0.15 mV
16
voltage. A good converter exhibits alinearity error of less than (112) LSB. +
Accuracy: Absolute accuracy is the maximum deviation between the actual converter
output and the ideal converter output. Relative accuracy is the maximum deviation afer
gain and offset errors have been removed. Data sheets normally specify relative accuracy
rather than absolute accuracy. The accuracy of a converter is also specified in terms of LSB
increments or percentage of full scale voltage.
10
Monotonicity: A monotonic DAC is the one whose analog output increases for an increase
in digital input. Figure 10.18 represents the
transfer curve for a non-monotonic DAC,
since the output decreases when input code
43Vs
Chapter
changes from 001 to 010. A monotonic
characteristic is essential in control 8
applications, otherwise oscillations can 2
[Link] successive approximation ADCs,
a non-monotonic characteristicmay lead to
signal
missing codes.
If a DAChas to be monotonic, the error
Analog
should be less than ±(1/2) LSB at each 000 001 010 011 100 101 110 11
DACs are monotonic because the linearity Fig. 10.18 A non-monotonic 3-bit DAC
error never exceeds ±(1/2) LSB
at each
output level.
is the settling time. It represents
Settling time: The most important dynamic parameter
specified band +(1/2)LSB of its final
value
the time it takes for the output to settle within a
following a code change at the input (usually
a full scale change). It depends upon the
due to internal parasitic capacitances and inductances.
switching time of the logic circuitry used.
us depending on word length and type of circuit
Settling time ranges from 100 ns to 10
with temperature, age and power supply
Stability: The performance of converter changes
such as offset, gain,linearity error and monotonicity
[Link] all the relevant parameters
ranges.
must be over the full temperature and power supply
specified
range is 0 to 3 V?
D/A converter is available. Assume that 00000 corresponds to an output
of
10.2. A 5-bit
what output
+10 V and that the D/A converter is connected for –0.1 V
per increment,
for 11111?
voltage will be produced mV of
of 0 to 10 V and is always within
1
and R =
10 k2.
resistor D/A converter.
10.5. The Fig. P. 10.5 shows a binary weighted of the digital word and that
(i) Show output resistance is independent
that the
2N-1
R,=
analog output
(ii) Show that theMSB is
R
the
voltage for
2N-1
VR 2R
2N -1
analog output
(iii) Show that theLSB is R
for the
voltage
2'R
the circuit diagram of a
10.9. The ADC in problem 10.8 uses a 100 kHz clock. How long did it take to digitize
6.85 V?
10.10. What is the conversion time of a 10-bit successiveapproximation converter if its AD
input clock is 5 MHz?
10.11. A dual slope ADC uses a 18-bit counter with a 5 MHz clock. The maximum input
voltage is +12 V and the maximum integratoroutput voltage at count is -10 V. 2
If R =
100 k2, find the size of the capacitor to be used for integrator.
10.12. The dual slope ADC of problem 10.11 has an input voltage of +5.237 V. Determine the
digital number in binary which represents the count in the register.
Experiment 10.1
To construct a 4-bit R-2R ladder type D/A converter. Plot the transfer characteristics, that
is, binary input vs output voltage. Calculate the resolution and linearity of the converter
from the graph.
(i) Choose R =
10 k2, 2R =
20 kQ of tolerance or less. 1%
(iü) For logic "0' short to ground and logic 1 connect to a +5V supply.
PROCEDURE
10 k2 2 6
741
3
2R 2R 2R 2R
20 k2w
100K) O_15V
100 kQ
(LSB) (MSB) -15 V
Digital input
-4iq2 v
maimu m
ire ooo00|
(or)
Resotion VoES
Prcb
Fi nel
Rosatin=
lov.