EDN Access

 

August 1, 1997


Variable-gain stage uses voltage-output DAC

Eugene Palatnik, BCI International, Waukesha, WI

A voltage-output DAC normally generates an output voltage that is a fraction of the input-reference voltage. In many designs, however, it is necessary to multiply the input voltage by a programmable gain, or, in other words, to create a variable-gain stage. You can easily implement a variable-gain stage using a low-cost voltage-output DAC (Figure 1). IC1 includes three independent DACs, two of which have internal buffers. This design uses the third DAC (DAC C with output OUTC) for the variable-gain stage. This no-buffer design minimizes noise and voltage offset, but you can use buffered DACs, too. Various linearity tests reveal a maximum nonlinearity error of 13.2 mV, which is less than the ±1-LSB (±19.5-mV) integral nonlinearity of the MAX512.

The output voltage of the DAC, VDAC, is as follows, where N is the code clocked into the DAC:

15q20551

IC2A compares VDAC with VIN. To close the feedback loop, the output of IC2A connects to DAC C's voltage-reference input, REFC. In steady-state mode, VIN=VDAC, and, because VREF=VOUT,

15q20552

When N equals its maximum value of 255, the gain of the circuit equals 1.004. The maximum practical gain is at N=1, which equates to a gain of 256. R1 and C1 reduce the loop gain as the frequency increases, which helps make the circuit stable and reduces the bandwidth and overall noise.

An 80C51 µC controls the DAC using a three-wire-plus-reset interface. The µC serially clocks the gain value in the DAC while the SELECT line is low. Pulling SELECT high sets the new gain value. Because the DAC and op amp are rail-to-rail parts, the circuit can operate in rail-to-rail mode. The DAC itself is not critical; you can use voltage-output DACs with external-reference inputs from different vendors.

(DI #2055)


Figure 1
15D20551
By comparing the DAC output voltage (VDAC) with VIN, you can easily implement a variable-gain stage using a low-cost voltage-output DAC.

| EDN Access | Feedback | Table of Contents |


Copyright © 1997 EDN Magazine, EDN Access. EDN is a registered trademark of Reed Properties Inc, used under license. EDN is published by Cahners Publishing Company, a unit of Reed Elsevier Inc.