|
|||||||||||
November 20, 1997 Circuit takes square root of input voltage Mark Shill, Burr-Brown Corp, Tucson, AZ For an NMOS transistor operating in the saturation region, the relationship between the drain current, ID, and the gate-source voltage, VGS, is governed by the square-law equation
where VT is the threshold voltage and µN, COX, L, and k are constants not relevant to the square-law relationship. You can algebraically manipulate Equation 1 to yield the gate-source voltage as a function of the drain current:
where ID is the drain current. By using the transfer function of Equation 2, you can make a circuit take the square root of an input voltage. Such an implementation uses an NMOS transistor to obtain the square root of a positive input voltage, VIN (Figure 1). The op-amp gain stage using IC1 inverts VIN; the inversion is necessary because of the polarity of the ID flow in MOSFET Q1. If you configure op amp IC1 for a gain of 1, the drain current of Q1 becomes ID=VIN/R3. Q1 is an SD215 enhancement-mode n-channel MOSFET from Siliconix (Santa Clara, CA). It connects in the feedback loop of op amp IC2 such that IC2's output voltage biases Q1's gate in relation to drain current ID. The body terminal of Q1 connects to the source terminal to eliminate any back-body voltage effects. Diode D1 provides feedback and clamps the output of IC2 when VIN¾0V and Q1 turns off. Because the inverting terminal of IC2 is at a virtual-ground potential, the output voltage of IC2 is in effect the gate-source voltage, VGS, of Q1. Thus, substituting ID=VIN/R3 into Equation 2, the output voltage of IC2 assumes the relationship
To eliminate the first radical term and VT from Equation 3, the output voltage of IC2 connects to an INA118 instrumentation amplifier. The negative-input terminal of the INA connects to a bias level of approximately 1V, approximating the MOSFET's threshold voltage, VT. The gain of the INA is R3·k, or approximately 6 V/V. The gain of the INA118 is 1+50k/RG, where RG is an external gain-setting resistor. A 20-kilo-ohm, 20-turn potentiometer provides both sufficient range and resolution. To calibrate the square-root circuit, first vary VIN between two accurate voltage levels, such as 9 and 1V. Then monitor VOUT and adjust the gain-setting resistor, RG, until the corresponding peak-to-peak output voltage, VOUT, is equal to 9V1V=2V. Finally, adjust the offset voltage using potentiometer R5 such that VOUT=1V for VIN=1V. Transistor Q1 begins to operate in the subthreshold region for input voltages lower than approximately 1V and thus no longer follows the square-law equation. Therefore, VOUT can drop off quickly and even become negative for low input-voltage levels. Once the voltage output of IC2 approaches the threshold voltage set by R5, the output voltage of the INA118 approaches 0V. As the output of IC2 becomes less than the threshold voltage, VT, for low Q1 drain current, the INA's output becomes negative. The addition of diode D2 and resistor R7 improves low-voltage performance. As Q1 enters the subthreshold region and the INA's output pulls toward 0V, diode D2 forward-biases and lowers the threshold voltage set at the INA's negative input. This addition improves the square-root transfer function for input voltages of 0.5 to approximately 1V. For input
voltages of 0.5V to 10V, the maximum error is 70 mV (Figure 2). If you use a reduced
input-voltage range, you can further improve the
square-root accuracy by calibrating over the
reduced-range endpoints. To prevent the output response
from going below 0V for input voltages lower than 0.5V,
connect the optional clamping circuit in Figure 3 to the INA118's output. |
|||||||||||
|
|||||||||||
| 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. | |||||||||||