9.7 Data Converters-An Introduction: Operational-Amplifier and Data-Converter Circuits
9.7 Data Converters-An Introduction: Operational-Amplifier and Data-Converter Circuits
In this section we begin the study of another group of analog IC circuits of great importance;
namely, data converters.
vO
vI C
(a)
(b) vI
(c) vS
T t
(d) vO
FIGURE 9.36 The process of periodically sampling an analog signal. (a) Sample-and-hold (S/H) circuit.
The switch closes for a small part (τ seconds) of every clock period (T). (b) Input signal waveform. (c) Sam-
pling signal (control signal for the switch). (d) Output signal (to be fed to A/D converter).
stored (held) on the capacitor. The circuit of Fig. 9.36 is known as a sample-and-hold (S/H)
circuit. As indicated, the S/H circuit consists of an analog switch that can be implemented
by a MOSFET transmission gate (Section 10.5), a storage capacitor, and (not shown) a
buffer amplifier.
Between the sampling intervals—that is, during the hold intervals—the voltage level on
the capacitor represents the signal samples we are after. Each of these voltage levels is then
fed to the input of an A/D converter, which provides an N-bit binary number proportional to
the value of signal sample.
The fact that we can do our processing on a limited number of samples of an analog
signal while ignoring the analog-signal details between samples is based on the Shannon’s
sampling theorem [see Lathi (1965)].
sedr42021_ch09.fm Page 924 Wednesday, October 15, 2003 9:11 AM
vA
FIGURE 9.38 The analog samples at the output of a D/A converter are usually fed to a sample-and-hold
circuit to obtain the staircase waveform shown. This waveform can then be filtered to obtain the smooth
waveform, shown in color. The time delay usually introduced by the filter is not shown.
4
Bit stands for binary digit.
sedr42021_ch09.fm Page 925 Wednesday, October 15, 2003 9:11 AM
low-pass filter, giving rise to the smooth curve shown in color in Fig. 9.38. In this way an
analog output signal is reconstructed. Finally, note that the quantization error of an A/D con-
verter is equivalent to ± 1--2- least significant bit (bN).
EXERCISE
9.31 An analog signal in the range 0 to +10 V is to be converted to an 8-bit digital signal. What is the resolu-
tion of the conversion in volts? What is the digital representation of an input of 6 V? What is the represen-
tation of an input of 6.2 V? What is the error made in the quantization of 6.2 V in absolute terms and as
a percentage of the input? As a percentage of full scale? What is the largest possible quantization error
as a percentage of full scale?
Ans. 0.0392 V; 10011001; 10011110; −0.0064 V; −0.1%; −0.064%; 0.196%
VREF
FIGURE 9.39 An N-bit D/A converter using a binary-weighted resistive ladder network.
sedr42021_ch09.fm Page 926 Wednesday, October 15, 2003 9:11 AM
through the feedback resistance Rf. The total current iO is therefore given by
V REF V REF V REF
i O = ----------
- b + ---------- - b + . . . + ---------------
- bN
R 1 2R 2 N –1
2 R
2V REF b 1 b 2 . . . b N
= -------------- ----- + ----- + + -----N-
R 21 22 2
Thus,
2V REF
i O = --------------D (9.110)
R
and the output voltage vO is given by
vO = −iORf = −VREF D (9.111)
which is directly proportional to the digital word D, as desired.
It should be noted that the accuracy of the DAC depends critically on (1) the accuracy of
VREF, (2) the precision of the binary-weighted resistors, and (3) the perfection of the switches.
Regarding the third point, we should emphasize that these switches handle analog signals;
thus their perfection is of considerable interest. While the offset voltage and the finite on
resistance are not of critical significance in a digital switch, these parameters are of immense
importance in analog switches. The use of MOSFETs to implement analog switches will be
discussed in Chapter 10. Also, we shall shortly see that in practical circuit implementations of
the DAC, the binary-weighted currents are generated by current sources. In this case the
analog switch can be realized using the differential-pair circuit, as will be shown shortly.
A disadvantage of the binary-weighted resistor network is that for a large number of bits
(N > 4) the spread between the smallest and largest resistances becomes quite large. This
implies difficulties in maintaining accuracy in resistor values. A more convenient scheme
exists utilizing a resistive network called the R-2R ladder.
VREF
FIGURE 9.40 The basic circuit configuration of a DAC utilizing an R-2R ladder network.
sedr42021_ch09.fm Page 927 Wednesday, October 15, 2003 9:11 AM
resistance to the right of each ladder node, such as that labeled X, is equal to 2R. Thus the
current flowing to the right, away from each node, is equal to the current flowing downward
to ground, and twice that current flows into the node from the left side. It follows that
I1 = 2I2 = 4I3 = . . . = 2N−1IN (9.112)
Thus, as in the binary-weighted resistive network, the currents controlled by the switches
are binary weighted. The output current iO will therefore be given by
V REF
i O = ----------
-D (9.113)
R
To virtual ground
of output op amp
···
··· iO
VREF S1 S2 S3 SN
IREF
RREF
0 A
I1 I2 I3 IN 1 IN
0 V
QREF Q1 Q2 Q3 B QN 1 QN Qt
A1 ···
IREF I1 I2 I3 IN 1 IN IN
2R 2R 2R 2R 2R 2R 2R
R R R R
···
1 2 3 N1 N
2IN
VEE
FIGURE 9.41 A practical circuit implementation of a DAC utilizing an R-2R ladder network.
sedr42021_ch09.fm Page 928 Wednesday, October 15, 2003 9:11 AM
where VBEN is the base–emitter voltage of QN. Since the current flowing through the resistor
R connected to node N is (2IN /α), the voltage between node B and node (N − 1) will be
2I 4I N
VN – 1 = VN + --------N R = VBEN + --------R
α α
Assuming, for the moment, that VBE N –1 = VBE N , we see that a voltage of (4IN /α)R appears
across the resistance 2R in the emitter of QN−1. Thus QN−1 will have an emitter current of
(2IN /α) and a collector current of (2IN), twice the current in QN. The two transistors will have
equal VBE drops if their junction areas are scaled in the same proportion as their currents,
which is usually done in practice.
Proceeding in the manner above we can show that
iO
VBIAS VBIAS
FIGURE 9.42 Circuit implementation of switch Sm in the DAC of Fig. 9.41. In a BiCMOS technology, Qms
and Qmr can be implemented using MOSFETs, thus avoiding the inaccuracy caused by the base current of BJTs.
sedr42021_ch09.fm Page 929 Wednesday, October 15, 2003 9:11 AM
base of the reference transistor Qmr connected to a suitable dc voltage VBIAS, and the digital
signal representing the mth bit bm applied to the base of the other transistor Qms. If the volt-
age representing bm is higher than VBIAS by a few hundred millivolts, Qms will turn on and
Qmr will turn off. The bit current Im will flow through Qms and onto the output summing line.
On the other hand, when bm is low, Qms will be off and Im will flow through Qmr to ground.
The current switch of Fig. 9.42 is simple and features high-speed operation. It suffers,
however, from the fact that part of the current Im flows through the base of Qms and thus does
not appear on the output summing line. More elaborate circuits for current switches can be
found in Grebene (1984). Also, in a BiCMOS technology the differential-pair transistors
Qms and Qmr can be replaced with MOSFETs, thus eliminating the base current problem.
EXERCISES
9.32 What is the maximum resistor ratio required by a 12-bit D/A converter utilizing a binary-weighted
resistor network?
Ans. 2048
9.33 If the input bias current of an op amp, used as the output summer in a 10-bit DAC, is to be no more than
that equivalent to 1--4- LSB, what is the maximum current required to flow in Rf for an op amp whose bias
current is as great as 0.5 µA?
Ans. 2.046 mA
There exist a number of A/D conversion techniques varying in complexity and speed. We
shall discuss four different approaches: two simple, but slow, schemes, one complex (in
terms of the amount of circuitry required) but extremely fast method, and, finally, a method
particularly suited for MOS implementation.
distinct values: positive when the difference input signal is positive, and negative when
the difference input signal is negative. We shall study comparator circuits in Chapter 13. An
up/down counter is simply a counter that can count either up or down depending on the
binary level applied at its up/down control terminal. Because the A/D converter of Fig. 9.43
employs a DAC in its feedback loop it is usually called a feedback-type A/D converter. It
operates as follows: With a 0 count in the counter, the D/A converter output, vO, will be zero
and the output of the comparator will be high, instructing the counter to count the clock
pulses in the up direction. As the count increases, the output of the DAC rises. The process
continues until the DAC output reaches the value of the analog input signal, at which point
the comparator switches and stops the counter. The counter output will then be the digital
equivalent of the input analog voltage.
Operation of the converter of Fig. 9.43 is slow if it starts from zero. This converter how-
ever, tracks incremental changes in the input signal quite rapidly.
VREF
(a)
VPEAK
VREF
RC
FIGURE 9.44 The dual-slope A/D conversion method. Note that vA is assumed to be negative.
sedr42021_ch09.fm Page 932 Wednesday, October 15, 2003 9:11 AM
Analog Bit 1
Comparator
input
1
VR 1
Comparator Bit 2
2 Digital
VR 2 Logic
output
···
···
Comparator Bit N
2N 1
VR (2 N 1)
Thus the content of the counter,5 n, at the end of the conversion process is the digital equiv-
alent of vA.
The dual-slope converter features high accuracy, since its performance is independent of
the exact values of R and C. There exist many commercial implementations of the dual-
slope method, some of which utilize CMOS technology.
5
Note that n is not a continuous function of vA, as might be inferred from Eq. (9.118). Rather, n takes
on discrete values corresponding to one of the 2N quantized levels of vA.
sedr42021_ch09.fm Page 933 Wednesday, October 15, 2003 9:11 AM
SB vO 0 Comparator
Control
C C C C C logic
C CT
2 4 8 16 16
S1 S2 S3 S4 S5 ST
SA
vA
VREF
(a)
SB vO vA
C C C C C
C CT
2 4 8 16 16
S1 S2 S3 S4 S5 ST
SA
vA
VREF
(b)
SB vO 0
C C C C C
C CT
2 4 8 16 16
S1 S2 S3 S4 S5 ST
SA
vA
VREF
(c)
FIGURE 9.46 Charge-redistribution A/D converter suitable for CMOS implementation: (a) sample phase,
(b) hold phase, and (c) charge-redistribution phase.
During the hold phase (Fig. 9.46b), switch SB is opened and switches S1 to S5, and ST are
thrown to the ground side. Thus the top plate of the capacitor array is open-circuited while
their bottom plates are connected to ground. Since no discharge path has been provided, the
capacitor charges must remain constant, with the total equal to 2CvA. It follows that the volt-
age at the top plate must become −vA. Finally, note that during the hold phase, SA is con-
nected to VREF in preparation for the charge-redistribution phase.
sedr42021_ch09.fm Page 934 Wednesday, October 15, 2003 9:11 AM
EXERCISES
9.34 Consider the 5-bit charge-redistribution converter in Fig. 9.46 with VREF = 4 V. What is the voltage
increment appearing on the top plate when S5 is switched? What is the full-scale voltage of this con-
verter? If vA = 2.5 V, which switches will be connected to VREF at the end of conversion?
Ans. 1--8- V; 31
------ V; S1 and S3
8
9.35 Express the maximum quantization error of an N-bit A/D converter in terms of its least-significant bit
(LSB) and in terms of its full-scale analog input VFS.
N
Ans. ± 1--2- LSB; VFS ⁄ 2(2 – 1 )
We conclude this chapter with an example to illustrate the use of SPICE in the simulation of
the two-stage CMOS op amp.
6
More precisely, the final voltage can deviate from zero by as much as the analog equivalent of the
LSB. Thus, the insensitivity to top-plate capacitance is not complete.