data converter

18
Microelectronic Circuits: Analysis and Design 6 KEY POINTS OF SECTION 1.3 An electronic system consists of electronic devices and components. It processes electronic signals, acting as an interface between sensors on the input side and as actuators on the output side. Sensors convert physical qualities to electrical signals, whereas actuators convert electrical signals to physical qualities. Sensors and actuators are often called transducers. Meters to indicate displacement Electric motors to produce motion or speed Speakers and ultrasonic transducers to produce sound 1.4 Electronic Signals and Notation Electronic signals can be categorized into two types: analog and digital. An analog signal has a continuous range of amplitudes over time, as shown in Fig. 1.4(a). Figure 1.4(b) is the sampled form of the input signal in Fig. 1.4(a). A digital signal assumes only discrete voltage values over time, as shown in Fig. 1.4(c). A digital signal has only two values, representing binary logic state 1 (for high level) and binary logic state 0 (for low level). To accommodate variations in component values, temperature, and noise (or extraneous t Logic level t Amplitude Amplitude t (a) Analog signal (b) Sampled signal (c) Digital signal 1 0 0 1 1 1 1 1 0 0 0 1 0 0 1 1 1 0 0 0 4 3 2 1 0 4 3 2 1 FIGURE 1.4 Types of electronic signals Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Upload: ronak-trivedi

Post on 12-Apr-2017

235 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Data converter

Microelectronic Circuits: Analysis and Design6

KEY POINTS OF SECTION 1.3

■ An electronic system consists of electronic devices and components. It processes electronic signals,acting as an interface between sensors on the input side and as actuators on the output side.

■ Sensors convert physical qualities to electrical signals, whereas actuators convert electrical signals tophysical qualities. Sensors and actuators are often called transducers.

• Meters to indicate displacement• Electric motors to produce motion or speed• Speakers and ultrasonic transducers to produce sound

1.4 Electronic Signals and NotationElectronic signals can be categorized into two types: analog and digital. An analog signal has a continuousrange of amplitudes over time, as shown in Fig. 1.4(a). Figure 1.4(b) is the sampled form of the input signalin Fig. 1.4(a). A digital signal assumes only discrete voltage values over time, as shown in Fig. 1.4(c). Adigital signal has only two values, representing binary logic state 1 (for high level) and binary logic state0 (for low level). To accommodate variations in component values, temperature, and noise (or extraneous

t

Logic level

t

Amplitude

Amplitude

t

(a) Analog signal

(b) Sampled signal

(c) Digital signal

1 0 0 1 1 1 1 1 0 0 0 1 0 0 1 1 1 0

0

0

4

3

2

1

0

4

3

2

1

FIGURE 1.4 Types of electronic signals

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 2: Data converter

signals), logic state 1 is usually assigned to any voltage between 2 V and 5 V. Logic state 0 may be assignedto any voltage between 0 and 0.8 V.

The output signal of a sensor is usually of the analog type, and actuators often require analog input toproduce the desired output. An analog signal can be converted to digital form and vice versa. The elec-tronic circuits that perform these conversions are called analog-to-digital (A/D) and digital-to-analog(D/A) converters.

1.4.1 Analog-to-Digital ConvertersAn A/D converter converts an analog signal to digital form and provides an interface between analogand digital signals. Consider the analog input voltage shown in Fig. 1.5(a). The input signal is sampled atperiodic intervals determined by the sampling time Ts, and an n-bit binary number (b1b2 . . . bn) isassigned to each sample, as shown in Fig. 1.5(b) for n � 3. The n-bit binary number is a binary fraction

Introduction to Electronics and Design 7

Binary output

t

0 0 0

0

–0.5

0

0.5

1 0 0 1 1 0 0 1 1 0 1 0 1 0 1

0 0 10 1 00 1 11 0 01 0 11 1 01 1 1

(a) Analog signal

(b) Digital signal

Sampled signal

Signal vI

VFS4

VFS2

3VFS4

VFS0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1Quantization error (LSB)

VFS4

VFS2

3VFS4

VFS

t

Amplitude

Amplitude

(d) Quantization error(c) Binary output

FIGURE 1.5 Analog-to-digital conversion

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 3: Data converter

that represents the ratio between the unknown input voltage vI and the full-scale voltage VFS of the con-verter. For n � 3, each binary fraction is VFS 2n � VFS 8. The output voltage of a 3-bit A/D converteris shown in Fig. 1.5(c).

The input–output relation shown in Fig. 1.5(c) indicates that as the input voltage increases from 0 tofull-scale voltage, the binary output steps up from 000 to 111. However, the binary number remains con-stant for an input voltage range of VFS 2n (�VFS 8 for n � 3), which is equal to one least significant bit(LSB) of the A/D converter. Thus as the input voltage increases, the binary output will give first a nega-tive error and then a positive error, as shown in Fig. 1.5(d). This error, called the quantization error, canbe reduced by increasing the number of bits n. Thus, the quantization error may be defined as the small-est voltage that can change the LSB of the binary output from 0 to 1. The quantization error is also calledthe resolution of the converter, and it can be found from

(1.1)

where VFS is the full-scale voltage of the converter. For example, VLSB for an 8-bit converter of VFS � 5 V is

1.4.2 Digital-to-Analog ConvertersA D/A converter takes an input signal in binary form and produces an output voltage or current in an analog(or continuous) form. A block diagram of an n-bit D/A converter consisting of binary digits (b1b2 . . . bn)is shown in Fig. 1.6. It is assumed that the converter generates the binary fraction, which is multiplied bythe full-scale voltage VFS to give the output voltage, expressed by

VO � (b12�1 � b22�2 � b32�3 � . . . � bn2�n)VFS (1.2)

where the ith binary digit is either bi � 0 or bi � 1 and b1 is the most significant bit (MSB). For exam-ple, for VFS � 5 V, n � 3, and a binary word b1b2b3 � 110, Eq. (1.2) gives

VO � (1 � 2�1 � 1 � 2�2 � 0 � 2�3) � 5 � 3.75 V

1.4.3 NotationAn analog signal is normally represented by a symbol with a subscript. The symbol and the subscript canbe either uppercase or lowercase, according to the conventions shown in Table 1.2. For example, considerthe circuit in Fig. 1.7(a), whose input consists of a DC voltage VDC � 5 V and an AC voltage vab � 2 sin � t.

VLSB =VFS

2n =528 = 19.53 mV L 20 mV

VLSB = Verror =VFS

2n

Microelectronic Circuits: Analysis and Design8

Digital-to-analogconverter

b12–1 b22–2 . . . bn2–nVOVFS ~

+

+

−+ + +FIGURE 1.6 Digital-to-analog converter

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 4: Data converter

16.13 Sample-and-Hold CircuitsSample-and-hold (SAH) circuits are used as an interface between an analog signal and a digital circuit ina wide variety of applications such as data acquisition, analog-to-digital (A/D) conversion, and synchro-nous data demodulation. An SAH circuit is used to sample an analog signal at a particular instant of timeand hold the value of the sample as long as required. The sampling instants and hold duration are deter-mined by a logic control signal. The hold duration depends on the type of application. For example, in A/Dconversion, samples must be held long enough for the conversion to be completed.

The principle of operation of a sample-and-hold circuit can be explained with Fig. 16.68(a), whichshows a circuit consisting of capacitor C, switch S1, and internal resistor Rs. The capacitor is used to holdthe sample. The switch provides a means of rapidly charging the capacitor to the sample voltage and thenremoving the input so that the capacitor can retain the desired voltage. When the control signal vCN is high,the switch is closed. If the time constant RsC is very small, the output voltage vO will be very close to the

Integrated Analog Circuits and Applications 1155

KEY POINTS OF SECTION 16.12

■ The TelCom 9400 converter can be used as either a voltage-to-frequency (V/F) converter or a frequency-to-voltage (F/V) converter, and it can produce pulse and square-wave outputs with a frequency range of1 Hz to 100 kHz.

■ In a V/F converter, the input voltage is converted to charge by an op-amp integrator and gives a linearlydecreasing output voltage. As soon as this voltage falls below a threshold level, a threshold detectorcauses the output to step up by a certain amount so that the system is ready to repeat the cycle whenthe output passes again through the zero axis.

■ In an F/V converter, a precise amount of charge dispensed into the op-amp’s summing junction gen-erates a voltage pulse at the output of the op-amp. A capacitor is then used to average these pulses intoa DC signal that is linearly proportional to the input frequency.

Voltages

tvCN

t

0

0

vO

vO

Rs

S1

C

Switch controlledby vCN

(a) Simple switch

vI

Switch open

Sample Sample Sample

Hold Hold

(b) Waveforms

Switchclosed

vI, vO

vI

++

−−

FIGURE 16.68 Principle of a sample-and-hold circuit

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 5: Data converter

input voltage vI and will be equal to it at the instant the control signal becomes low and the switch isopened. The idealized waveforms for output voltage vO, input voltage vI, and control voltage vCN areshown in Fig. 16.68(b).

In practice, the capacitor can neither charge instantly nor hold a constant voltage. Also, the switchcannot open and close instantaneously. As a result, the practical output waveform will differ from theideal one. Among the important specifications given by the manufacturers of SAH circuits are aperturetime, acquisition time, settling time, and drop.

Aperture time tAP, shown in Fig. 16.69(a), is the maximum time required for the SAH circuit to open.It is the delay between application of the control signal to open the switch and the instant when the switchactually does open. This time depends on the type of switch, but typically ranges from 4 �s to 20 �s. ThetAP of FET switches is in the range of 50 ns to 100 ns. The aperture time should be much less than the sam-pling period (i.e., the reciprocal of the sampling rate). Since the input signal is changing continuously, thehold voltage will change slightly during the aperture time, causing an error in the hold voltage.

Once the switch is closed for sampling, it takes a finite amount of time for the output voltage to becomeidentical to the input signal because the input was changing during the holding interval. Acquisition time tAQ,shown in Fig. 16.69(b), is the minimum time, after application of the sample signal, required for the outputvoltage to reach the input voltage (with the necessary degree of accuracy).

Settling time ts is the delay between the opening of the switch and the instant when the output reacheswithin a specified percentage of its final value (usually 0.99% of full-scale output). If the SAH circuit isfollowed by an A/D converter, conversion should not begin until the signal has settled; otherwise, the wrongsignal will be converted.

Drop, or output decay rate, is the voltage drop across capacitor C during the hold time. It is inverselyproportional to the capacitance, since dvO ⁄dt � I ⁄ C, where I is the capacitor leakage current. This leakagecurrent can arise as a result of biasing current in an op-amp, leakage current through the switch, or internalleakage in the capacitor.

The speed with which the output follows the input depends on the characteristics of the input signalvI. vO will follow vI exponentially with time constant RsC. For vO to be within 0.01% of the output, its timeperiod should be approximately 9RsC. In addition, the signal source must be able to supply the chargingcurrent required by capacitor C. Usually, the analog signal is buffered from the switch by a unity-gainop-amp follower in order to ensure a low value of Rs.

Microelectronic Circuits: Analysis and Design1156

(b) Acquisition time(a) Aperture time

vI

vI

vCN

Sample Sample Sample

Voltage held

Error

Aperture timetAP

vO

Point at which vO ≈ vI

Acquisition timetAQ

dloHdloH

Expectedvoltage

FIGURE 16.69 Aperture time and acquisition time

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 6: Data converter

16.13.1 SAH Op-Amp CircuitsAn SAH circuit can be implemented using an op-amp and a switch, as shown in Fig. 16.70(a). When switchS1 is closed, the circuit operates as an RC filter. For a step input voltage of VI, the output voltage vO(t) canbe found from

(16.102)

For vO to reach VI in the shortest time, the time constant RFC must be shorter than the sample intervalso that the output can track the input. When switch S1 is opened, the capacitor will hold its voltage of�VI. To minimize the output voltage drop, the op-amp should have a low input biasing current (as doesan op-amp with a FET input stage, for example). Also, a high-quality capacitor with a low leakage cur-rent should be used.

Switch S1 can be replaced by a transistor M1 (i.e., a p-type depletion MOSFET), as shown in Fig. 16.70(b).If the control voltage vCN is low (say, 0 V), the FET M1 will be on (i.e., the switch will be closed), and thecapacitor will be in sample mode, charging to VI. If the control voltage vCN is high (say, �5 V), the FETwill be off (i.e., the switch will be open), and the capacitor will be in hold mode.

Diode D1 clamps the voltage at node A to 0.7 V. When M1 is on, the diode effectively becomes con-nected across the FET (i.e., between its drain and source). Since the voltage drop across the FET is low,the voltage across the diode will also be small—much less than 0.7 V. Thus, the diode will have no effectduring the sampling time.

16.13.2 SAH Integrated CircuitsSAH integrated circuits such as the LF198 use BiFET technology to obtain ultrahigh DC accuracy (within0.01%) with fast signal acquisition (4 �s) and a low drop (3 mV/s). The functional block diagram of theLF198 is shown in Fig. 16.71(a), and its connection diagram is shown in Fig. 16.71(b). The manufacturersgive curves showing the variation in acquisition time tAQ with hold capacitance Ch. For example, tAQ � 4 �sfor hold capacitance Ch � 1000 pF, and tAQ � 20 �s for Ch � 0.01 �F.

vO(t) = -RF

R1VI(1 - e-t>RFC)

Integrated Analog Circuits and Applications 1157

vCNvCN

vO

Op-amp

(a) Integrator (b) Integrator with FET switch

vI

S1

D1

A

M1

Sample

B

HoldC

RF

RF

R1

R1

C

vI

++

+

vO

Op-amp

++

FIGURE 16.70 Inverting SAH op-amp circuit

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 7: Data converter

16.14 Digital-to-Analog ConvertersDigital systems are used in a wide variety of applications because of their efficiency, reliability, and eco-nomical operation. Applications include process and industrial control, measurement and testing, graphicsand displays, data telemetry, voice and video communication, and arithmetic operations. Data processing,which has become an integral part of various systems, involves the transfer of data to and from digitaldevices such as microprocessors via input and output devices.

The output of digital systems is in binary form: 1s and 0s. After processing is accomplished using dig-ital methods, the processed signal is converted back to analog form. The circuit that performs this conver-sion is called a digital-to-analog (D/A) converter. A D/A system normally contains four separate parts: areference quantity; a set of binary switches to simulate binary coefficients B0, . . . , BN; a resistive network;and an output summing means.

Microelectronic Circuits: Analysis and Design1158

(b) Connection diagram(a) Block diagram

Offset

vIInput

vCNLogic

Logicreference

Hold capacitor

Analog inputvI

Logic inputvCN

Output

7

8

3

5

2

6

LF1983

7

4

6

8

1

5

Ch vO05 V

Output

30 kΩ

300 Ω

+

+

+

V+ V−

+

FIGURE 16.71 Sample-and-hold LF198 (Courtesy of National Semiconductor, Inc.)

KEY POINTS OF SECTION 16.13

■ An SAH circuit uses a capacitor to sample an analog signal at a particular instant of time and hold thevalue of the sample as long as required. A switch is closed to charge the capacitor rapidly to the samplevoltage and then is opened to remove the input so that the capacitor can retain the desired voltage.

■ The specifications of an SAH circuit include acquisition time, aperture time, settling time, and drop,or output decay rate.

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
RISHABH SHUKLA
Pencil
Page 8: Data converter

16.14.1 Weighted-Resistor D/A ConverterA simple D/A converter is shown in Fig. 16.72(a). This converter can convert a 4-bit parallel digital word(B0B1B2B3) to an analog voltage that is proportional to the binary number corresponding to the digitalword. Four switches are used to simulate the binary inputs. (In practice, a 4-bit binary counter may be usedinstead.) The logic voltages, which represent the individual bits B0, B1, B2, and B3, are used to operateswitches S0, S1, S2, and S3, respectively. When a B is a 1, the corresponding switch is connected to refer-ence voltage Vref; when a B is a 0, the corresponding switch is grounded.

The inverting terminal of the op-amp is at virtual ground (i.e., Vd � 0), so the total current IS is given by

Since the current flowing into the op-amp is negligible, IS � IF. Thus, the analog output voltage is given by

(16.103)

Resistors are weighted so that successive resistor values are related by a factor of 2 and the value of eachindividual resistor is inversely proportional to the numerical significance of the appropriate binary digit.That is,

LSB (least significant bit) 0

MSB (most significant bit) 0 R3 =R23 =

R8

R0 =R20 = R

R1 =R21 =

R2

R2 =R22 =

R4

VO = -RFIF = -RFVref aB3

R3+

B2

R2+

B1

R1+

B0

R0b

IS = Vref aB3

R3+

B2

R2+

B1

R1+

B0

R0b

Integrated Analog Circuits and Applications 1159

R2

R1

VO

RF

S0

S1

S2

S3

B2

B3

B1

R0B0

R3

IF = IS

IS

LSB

MSB

(b) Output voltage(a) Circuit

−7.5 V

−1.5 V

−0.5 V−1 V

−7 V

vI

10 3 152Decimal equivalent of binary inputs

Output

+Vref

++

−VO

FIGURE 16.72 Weighted-resistor D/A converter

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 9: Data converter

Substituting these weighted resistor values into Eq. (16.103) gives the analog output voltage VO as

(16.104)

where Bi � 1 if switch Si is connected to Vref and Bi � 0 if switch Si is grounded. For an input ofB3B2B1B0 � 1111, VO � �15VrefRF ⁄ R; for B3B2B1B0 � 0110, VO � �6VrefRF ⁄ R; and for B3B2B1B0 �0001, VO � �VrefRF ⁄ R. Thus, the output VO is directly proportional to the numerical value of the binarynumber B3B2B1B0. Since there are 16 (i.e., 24) combinations of the binary inputs B3, B2, B1, and B0, theanalog output will have 16 possible corresponding values. For Vref � 5 V and R � 10RF, Eq. (16.104)gives VO as

The plot is shown in Fig. 16.72(b). The major disadvantage of this D/A converter is the wide variety ofresistor values required to weight the network. If the resistor values change in response to temperaturechanges, it will be difficult to obtain identical tracking characteristics. As a result, the accuracy and thestability of the D/A will be degraded.

16.14.2 R-2R Ladder Network D/A ConverterThe R-2R D/A ladder converter, shown in Fig. 16.73(a), has only two resistor values R and 2R, rather thana wide range of resistor values. The plot of the output (which is known as a “resistance ladder”) is shownin Fig. 16.73(b). Figure 16.73(c) exhibits the property that the equivalent resistance, looking into any ofthe terminals X, Y, S3, S2, S1, or S0 with the remainder of the terminals grounded, is 3R.

Consider the circuit with LSB � 1 only; that is, switch S0 is closed. The equivalent circuit forLSB � 1 only is shown in Fig. 16.74(a). Successive Thevenin’s conversions lead, through the circuitsshown in Fig. 16.74[(b) and (c)], to the final circuit shown in Fig. 16.74(d), which gives the output dueto LSB � 1 as

Now consider the circuit with MSB � 1 only; that is, switch S3 is closed. The equivalent circuit forMSB � 1 only is shown in Fig. 16.74(e), which can be simplified by applying the series and parallelrule for Rs. The simplified circuit shown gives the output due to MSB � 1 as

Thus, the output voltage is scaled up by the numerical value of the binary digit. Applying the superposi-tion theorem, we can find the output voltage when all switches are on (i.e., switch Si is connected) as

(16.105)

which can be simplified to

(16.106)VO = -VrefRF

48R (23B3 + 22B2 + 21B1 + 20B0)

VO = -VrefRF

3RaB3

21 +B2

22 +B1

23 +B0

24 b

VO = -VrefRF

3RaB3

21 b (for MSB = 1 only)

VO = -VrefRF

3RaB0

24 b (for LSB = 1 only)

VO = -0.5 * (23B3 + 22B2 + 21B1 + 20B0)

VO = -VrefRF

R (23B3 + 22B2 + 21B1 + 20B0)

Microelectronic Circuits: Analysis and Design1160

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

RISHABH SHUKLA
Pencil
Page 10: Data converter

where Bi � 1 if switch Si is connected to Vref and Bi � 0 if switch Si is grounded. For an input ofB3B2B1B0 � 1111, VO � �15VrefRF ⁄48R; for B3B2B1B0 � 0110, VO � �6VrefRF ⁄48R; and forB3B2B1B0 � 0001, VO � �VrefRF ⁄48R. For Vref � 5 V and 6R � RF, Eq. (16.106) gives VO as

whose plot is shown in Fig. 16.73(b) for VO(max) � 10 V.

VO = - a 548b * (23B3 + 22B2 + 21B1 + 20B0)

Integrated Analog Circuits and Applications 1161

B3

B2

B1

B0

RRR

X S0 S1 S2 S3 Y

VO

RF

RRR

Vd

(b) Output voltage

−1.875 V

−3.125 V

−8.875 V−9.375 V

vI

Decimal equivalent of binary inputs10 3 155

(a) Circuit

(c) R-2R network

LSB

MSB

Output

S0

S1

S2

S3

2R 2R

2R

2R 2R

2R 2R 2R 2R 2R 2R

2R

+Vref

++

−0.625 V

−VO

FIGURE 16.73 R-2R ladder D/A converter

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 11: Data converter

16.14.3 Integrated Circuit D/A ConvertersSwitches in IC D/A converters are made either of BJTs or of MOSFETs. They are generally one of twotypes: voltage driven or current driven. Voltage-driven converters, which use BJTs or MOSFETs as on oroff switches, are generally used for relatively low-speed low-resolution applications. In a current-drivenconverter, switching is accomplished using emitter-coupled logic (ECL) current switches, which do notsaturate but are driven from the active region to cutoff. This type of converter is capable of much faster op-eration than the voltage-driven type. IC D/A converters of 8, 10, 12, 14, and 16 bits are commerciallyavailable with either a current output, a voltage output, or both a current and a voltage output.

Microelectronic Circuits: Analysis and Design1162

Vd2R 2R

2R

2R 2R

2R2R 2R 2R 2R2R

2RR R R

3 2 1 0 3 2 1 0

(a) Network for LSB = 1

(e) Network for MSB = 1

R R R

3 2 1 0

R R R R

(b) Thevenin’s equivalent

R R R

2 1 0

(c) Thevenin’s equivalent

R R

1 0

(d) Thevenin’s equivalent

VO

RF

Vd

Vref2Vref

168

Vref

VrefVref

4

Vref2

Vref

+

Vd2R 2R

3R

3R

2R

+

Vd2R

2R

+

++

VO

RF

+

Vd2R 2R 2R

2R

+

FIGURE 16.74 Equivalent R-2R ladder for LSB � 1 only and MSB � 1 only

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 12: Data converter

The MC1408 is an example of a D/A converter with current output. It is a low-cost, high-speed con-verter designed for use in applications where the output current is a linear product of an 8-bit digital wordand an analog reference voltage. Its internal block diagram, shown in Fig. 16.75(a), consists of four parts:current switches, an R-2R ladder, a biasing current network, and a reference current amplifier. The con-nection diagram is shown in Fig. 16.75(b). The output current is converted to a voltage by an instantaneouscurrent-to-voltage (I/V) op-amp converter.

The NE/SE-5018 is an example of a D/A converter with voltage output. It gives an output voltage thatis a linear product of an 8-bit digital word and an analog reference voltage. Its internal block diagram isshown in Fig. 16.76(a). A typical configuration of the 5018 is shown in Fig. 16.76(b).

The manufacturer’s specifications for a D/A converter normally include the following parameters.Resolution is determined by the number of input bits of the D/A converter. An 8-bit converter has 28

possible output levels, so its resolution is 1 ⁄ 28 � 1 ⁄ 256 � 0.39%. For a 4-bit converter, the resolution is1 ⁄ 24 � 1 ⁄ 16 � 6.25%. Thus, resolution is the value of the LSB. Accuracy is defined in terms of the max-imum deviation of the D/A output from an ideal straight line drawn from zero to full-scale output. Non-linearity, or linearity error, is the difference between the actual output of the D/A converter and its idealstraight-line output. The error is normally expressed as a percentage of the full-scale range. Gain error isany error in gain, usually caused by deviations in the feedback resistor on the I/V converter. Offset error isany error caused by the fact that the output of the D/A converter is not zero when the binary inputs are allzero. This error stems from input offsets (in voltages and currents) of the op-amp as well as the D/A con-verter. Settling time is the time required for the output of the D/A converter to reach within �1 ⁄ 2 LSB ofthe final value for a given digital input—that is, go from zero to full-scale output. Stability is a measure ofthe independence of the converter parameters from variations in external conditions such as temperature andsupply voltage.

Integrated Analog Circuits and Applications 1163

12111098765 12

4

B7 B6 B5 B4 B3 B2 B1 B0

IO

MSB LSB

Current switches

R-2R ladder

VEE

Ground

npn current source pair

(b) Circuit connection(a) Block diagram

Referencecurrent

amplifier

Biasingcurrent 2

3

1314

15

16

MSB

LSB

15 pFCompensator

MC1408LDAC

VO =VrefRF

Rref

B72

B64

B58

B416

B332

B264

B1128

B0256

6

1413

15

1

2

4

12

16 3

5

7

9

8

10

11

6

0

7

5

4

3

2

1

43

2

6

7

RF

Rref

R

IO

+Vref

VCC−Vref

VCC = +5 V

VEE = −5 V

−15 V

+15 V VO = 9.961 Vwith all

inputs high

Vref = 2 V DC

10 kΩ

10 kΩ

+

+ + + + + + +

FIGURE 16.75 MC1408 D/A converter with current output

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 13: Data converter

Microelectronic Circuits: Analysis and Design1164

Qn

(19)

+VC

C

(10)

Latc

h en

able

(1)

Dig

ital

grou

nd

(9)

DB

7

(8)

DB

6

(7)

DB

5

(6)

DB

4

(5)

DB

3

(4)

DB

2

(3)

DB

1

(2)

DB

0

Latc

hes a

nd sw

itch

driv

ers

DA

C sw

itche

s

V ref

adju

stm

ent

Bip

olar

offs

etV ref in

(14)

(15)

(17)

(16)

(12)

(13)

V ref

out

Ana

log

grou

nd

Am

plifi

erco

mpe

nsat

o r

V out

Sum

nod

e(2

0)

(18)

(21)

(22)

DA

Cco

mpe

nsat

or

Dig

ital

grou

nd 1

Ana

log

gro

und

22O

utpu

tV o

ut 1

8

Sum

2019

Zero

scal

ead

just

men

t

Full-

scal

ead

just

men

t

(a)

Blo

ck d

iagr

am

DA

Cco

mpe

nsat

or16

Bip

olar

offs

et71

51

R L22

pF

100

pF

MSB

LSB

Latc

hen

able

10T

14V r

ef in

10 13V r

ef o

ut

12V r

ef a

djus

tmen

t

98

76

54

32

NE/

SE-

5018

D/A

(b)

Cir

cuit

conn

ectio

n

Inte

rnal

V ref

LSB

DA

C c

urre

ntou

tput

Am

plifi

erco

mpe

nsat

or 2

1

MSB

5 kΩ5 kΩ

5 kΩ

5 kΩ

5 kΩ

10 k

Ω

10T

20 k

Ω

2 kΩ

1 M

Ω

80 k

Ω

5 kΩ

15 k

Ω

−VC

C

+

+

− +

−VC

C

+VC

C

0.01

μF

0.1

μF

0.47

μF

V CC

= +1

5 V

V CC

= −1

5 V

FIG

UR

E 16

.76

NE

/SE

-501

8 D

/A c

onve

rter

with

vol

tage

out

put (

Cou

rtes

y of

Phi

lips

Sem

icon

duct

ors)

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 14: Data converter

16.15 Analog-to-Digital ConvertersA large number of physical devices generate output signals that are analog or continuous variables; exam-ples include temperature and pressure gauges and flow transducers. For digital processing, the input signalmust be converted into a binary form of 1s and 0s. The circuit that performs this conversion is called ananalog-to-digital (A/D) converter. There are many types of A/D converters, depending on the type of con-version technique used, such as counting, tracking (up-down), successive approximation, single-ramp in-tegrating, or dual-ramp integrating. The successive-approximation technique is the one most commonlyused, mainly because it offers excellent trade-offs in resolution, speed, accuracy, and cost.

16.15.1 Successive-Approximation A/D ConverterA successive-approximation A/D converter operates by successively dividing in half the voltage range of theconverter. The simplified block diagram of a 4-bit A/D converter is shown in Fig. 16.77(a). The converterconsists of five parts: an analog comparator, a 4-bit register that has independent set and reset capability foreach stage, a 4-bit D/A converter, a ring counter, and a logic control. The ring counter provides a timing (orclock) signal to control the operation of the converter. The logic control synchronizes the operation of theconverter with the clock. The combination of the logic control, 4-bit register, and ring counter is often knownas the successive-approximation register (SAR).

The comparator converts analog voltages to digital signals. It has two inputs, Va and Vb, and gives abinary voltage. If Va � Vb, the output is high (logic 1); if Va � Vb, the output is low (logic 0). Thus, thecomparator output Vcom is

An SAH circuit is commonly used to hold the input voltage constant during the conversion process.There is no need for an SAH circuit if the input signal varies slowly enough and has a low enough noiselevel that the input will not change during the conversion.

The algorithm for the operation of a successive-approximation A/D converter can be best described byan example. The steps in converting an analog voltage of, say, 10 V are as follows:

Step 1. The first pulse from the ring counter sets the D/A converter, 4-bit register, and ring counter sothat MSB � 1 and all others are 0; that is, B3 � 1, and B2 � B1 � B0� 0. Thus, for B3B2B1B0 � 1000,the output Vb of the D/A is 8 V, which is compared by the comparator. If Va 8 V, the MSB in the reg-ister (B3) is maintained at 1; otherwise, it is set to 0. At the end of step 1, B3 � 1 for Va � 10 V.

Vcom = sgn (Va - Vb) = e1 for Va 7 Vb

0 for Va 6 Vb

Integrated Analog Circuits and Applications 1165

KEY POINTS OF SECTION 16.14

■ A D/A converter can convert a digital word to an analog voltage that is proportional to the binary num-ber corresponding to the digital word.

■ The specifications for a D/A converter include resolution, accuracy, nonlinearity (or linearity error),gain error, offset error, settling time, and stability. The resolution of an N-bit converter is 1 ⁄ 2N.

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 15: Data converter

Microelectronic Circuits: Analysis and Design1166

Va

Vb

Vo

MSB

LSB

B3B2B1B0

Clock

Analoginput

vI

(a) 4-bit A/D converter

Output

4-bit register

4-bit SAR

4-bit DAC

8-bit DAC

8-bit latch

Sample-and-hold

Logic control

Ring counter

B7 B0

Q7 Q3 Q0

8-bit SAR

D0S

CCD

Serial data out

Binary inputs

Conversion completeStart conversion

Latchenable

Serial data input

Clock

Va

Vb

VIAnalog input

Comparator

(b) 8-bit A/D converter

E

Digitaldata

output

Q7 Q3 Q0

Analogvoltage

out

+

+

FIGURE 16.77 Successive-approximation A/D converter

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 16: Data converter

Step 2. The second pulse from the ring counter sets B2 � 1. B1 and B0 remain at 0, and B3 remainsat either 1 or 0, depending on the condition in step 1; that is, B3 � B2 � 1, and B1 � B0 � 0. Thus,for B3B2B1B0 � 1100, the output Vb of the D/A is 12 V, which is compared by the comparator. IfVa 12 V, the B2 in the register is maintained at 1; otherwise, it is set to 0. At the end of step 2,B2 � 0 for Va � 10 V.

Step 3. The third pulse from the ring counter sets B1 � 1. B0 remains at 0. B2 and B3 remain as theywere at the end of step 2. That is, B3 � 1, B2 � 0, B1 � 1, and B0 � 0. Thus, for B3B2B1B0 � 1010,the output Vb of the D/A is 10 V, which is compared by the comparator. If Va 10 V, the B1 in theregister is maintained at 1; otherwise, it is set to 0. At the end of step 3, B1 � 1 for Va � 10 V.

Step 4. The fourth pulse from the ring counter sets B0 � 1. B3, B2, and B1 remain as they were atthe end of step 3. That is, B3 � 1, B2 � 0, B1 � 1, and B0 � 1. Thus, for B3B2B1B0 � 1011, the out-put Vb of the D/A is 11 V, which is compared by the comparator. If Va 11 V, the B0 in the registeris maintained at 1; otherwise, it is set to 0. That is, B0 � 0 for Va � 10 V.

At the end of the fourth step, the desired number, which is in the counter, will give Read output. Theresults of the conversion steps are shown in Table 16.2. For an N-bit A/D converter, the conversion processwill take N clock periods. That is, for an 8-bit A/D converter and a 10-MHz clock, the conversion willtake 8 ⁄ (10 106) � 8 10�7 � 800 ns.

The successive-approximation technique can be extended to the higher-bit converter shown inFig. 16.77(b), in which the SAR also performs the functions of logic control and ring counter. The con-version complete (CC) signal enables the latch. Digital data appear at the output of the latch and are alsoavailable serially as the SAR determines each bit. The cycle of the conversion process is normally repeatedcontinuously, and the CC signal is connected to the Start-Conversion input.

16.15.2 Integrated Circuit A/D ConvertersThere are many types of IC A/D converters, such as the integrating A/D converter, the integrating A/D con-verter with three-stage outputs, and the tracking A/D converter with latched output. Also, the output canbe in straight binary, binary-coded decimal (BCD), complementary binary (1s or 2s), or sign-magnitudebinary form.

The NE5034 is an example of an IC A/D converter. Its internal block diagram is shown in Fig. 16.78(a).It is a high-speed microprocessor-compatible 8-bit A/D converter that uses the successive-approximationtechnique. It includes a comparator, a reference D/A converter, an SAR, an internal clock, and three-stagebuffers all on the same chip. The connection diagram for the NE5034 is shown in Fig. 16.78(b). Upon receiptof the Start pulse, successive bits are applied to the input of the internal 8-bit current D/A converter by the

Integrated Analog Circuits and Applications 1167

TABLE 16.2 Successive-approximation process for Va � 10 V

Step Vb B3 B2 B1 B0 Comparisons Answer

1 8 V 1 0 0 0 Is Va 8 V? Yes2 12 V 1 1 0 0 Is Va 12 V? No3 10 V 1 0 1 0 Is Va 10 V? Yes4 11 V 1 0 1 1 Is Va 11 V? No

10 V 1 0 1 0 Read output

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 17: Data converter

I2L SAR, beginning with the MSB (DB7). During the successive approximations, the sequence Data-Ready(DR) remains at 1. When the Output-Enable (OE) input is at logic 1, the data outputs assume a high-impedance status. When OE is at logic 0, the data are placed on the outputs. External capacitor CL sets theinternal clock frequency, as shown in Fig. 16.78(c). For CL � 100 pF, for example, fclock � 120 kHz.

The manufacturer’s specifications for an A/D converter normally include the following parameters: Input signal is the maximum allowable analog input voltage range and may be unipolar or bipolar.

Microelectronic Circuits: Analysis and Design1168

DB7MSB

StartClock DB0LSB

Output buffer

SAR

8-bit DAC

Data ready

Digital ground

Internalclock

IinIref in

Comparator

Analogground

Analog ground

(a) Block diagram

8

Outputenable

116

13

15

12 14

2345678

11 17 10 18 9

DB7 MSB

DB0 LSB

CL

External clock(if used)

Startpulse

Dataready

Outputenable

Digitalground

D1

Unknown analogvoltage input

Rin

NE5034

5.0 Vref

CL: See part (c) for valueD1: IN914 or similarCL and D1 not requiredif using external clockAnalog

ground

(c) External capacitor(b) Circuit connection

100,00010,0001 10 100 10001

10

100

1000

10,000

100,000

Frequency (in kHz)

CL (in pF)

Iref in

+VCC VCC

++

5.0 k

Rref5.0 k

0.1 μ F0.1 μ F

+VCC VCC

FIGURE 16.78 NE5034 8-bit A/D converter

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.

Page 18: Data converter

Conversion speed is the speed at which the A/D converter can make repetitive data conversions. The con-version time for successive-approximation converters ranges from 1 �s to 100 �s, whereas for an ultrafastparallel converter the time is in the range of 10 ns to 60 ns. Quantizing error is the error inherent in the con-version process because of the finite resolution of the discrete output. It is usually �1 ⁄ 2 LSB. For a 10-bitconverter with an analog input range of 0 to 10 V, the quantizing error will be 1 ⁄ 210 10 V � 10 mV.Accuracy is the deviation of the actual bit transition value from the ideal transition value at any level overthe range of the A/D converter. Accuracy includes errors from both the analog and the digital parts. With adigital error of 10 mV and a quantizing error of 10 mV, the overall error becomes 20 mV. With this amountof error, the converter will operate as a 9-bit A/D converter because a 9-bit converter has a quantizing errorof 1 ⁄ 29 10 V � 20 mV.

Integrated Analog Circuits and Applications 1169

KEY POINTS OF SECTION 16.15

■ An A/D converter can convert an analog signal to a digital word that is proportional to the analogsignal. Although there are many conversion techniques, the successive-approximation technique isthe one most commonly used, mainly because of its excellent trade-offs in resolution, speed, accu-racy, and cost.

■ The specifications for an A/D converter include input signal range, conversion speed, quantizingerror, and accuracy.

16.16 Circuit Design Using Analog Integrated CircuitsThere are many analog ICs for general- and special-purpose applications. They include operational ampli-fiers, voltage comparators, instrument amplifiers, timers, buffers, interfacing circuits, voltage/frequencyconverters, data conversion circuits, power conversion and control circuits, and voltage regulators. The cir-cuit design for an application using an IC is very simple and requires the selection of external componentsonly. The steps involved are as follows:

Step 1. Identify the function(s) to be performed and the specifications, including available powersupplies, range of input and output signals, and operating frequency range.

Step 2. Find a suitable IC that can perform the desired function(s) and look for application exam-ples and/or guidelines for that IC. Usually the manufacturer provides application examples andguidelines.

Step 3. Determine the values of external components (usually capacitors and resistors). Generally,the manufacturer provides selection charts or curves. Unless otherwise specified, use standard valuesof components, with tolerances of, say, 5%.

Step 4. Simulate the circuit with a simulator such as PSpice/SPICE or Electronics Workbench, if theIC is supported by the simulator.

Step 5. Build and test the circuit, if possible.

Copyright 2011 Cengage Learning, Inc. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part.