BACKGROUND OF THE INVENTION
The present invention relates generally to analog electronic circuits and more particularly to a circuit for implementing nonlinear operators.
Various circuits are known in the prior art for performing Nth-order operations. One such device includes a log-converter, a gain stage (where the gain=k) and an antilog converter to provide the Kth-order function, such that the output Vo is expressed as
V.sub.o =α(V.sub.in).sup.k.
In this case the gain K can be manipulated to yield either a power or a root. However, this method is very complex and requires a temperature compensating component in each converter. Typical circuits using this approach appear in a publication by National Semiconductor, Inc., entitled "Linear Applications", Vol. 1 (1973) at pages AN31-18,20. Another circuit at page AN31-15 of the above reference is a two quadrant multiplier wherein
V.sub.o =KV.sub.x V.sub.y.
However, this circuit is only useful for squaring and requires a thermistor for temperature compensation because it operates on the principle of modulating the rE term, which is equal to KT/qIE where IE is one of the inputs. Further, this circuit is not readily adaptable to yield the inverse function, i.e., the square root.
Yet another prior art approach utilizes the square-law characteristics of an MOS device to perform a squaring operation. This approach is extremely susceptible to temperature variation and the uniformity from device to device is generally poor because of the variation in threshold voltage VT. Again, the inverse function is not possible.
It is a principal object of this invention to provide a versatile Nth-order function converter that is readily programmable to operate as either an Nth-root extractor or an Nth-power operator. Another object of this invention is to provide a high speed analog function converter using bipolar devices in current mode operation. Still another object is to provide an inherently temperature stable converter requiring no external compensation.
SUMMARY OF THE INVENTION
In accordance with the present invention, an Nth-order analog function converter is provided that is readily programmable for either root or power operations. The converter is implemented using bipolar technology operating in the current mode to provide high speed operation.
In one embodiment of the invention, two current sources I1 and I2 are each coupled to the collector of a bipolar transistor, the bases of the transistors being coupled together. One or the other of the transistors is selectively configured to operate as a diode by coupling its base to its collector. Depending upon whether the I2 or the I1 transistor is so connected, the converter will function as either a "power" or a "root" operator, respectively. The emitter of the I2 transistor is coupled to a string of n transistors connected as diodes, each having its collector coupled to its base and its emitter coupled to the next transistor in the string. The emitter of the nth transistor is coupled to ground. The emitter of the I1 transistor is coupled to the inverting input and the output of a buffer having a low offset, for example a differential amplifier having a gain of k=1, the non-inverting input of which is coupled to a third current source Ik. Ik is also coupled to a second string of n transistors configured as described above, with the emitter of the nth transistor being coupled to ground. For n transistors in a string, and assuming a collector-base short on the I2 transistor, the output current I1 =Ik -n I2 n+1. With a collector-base short on the I1 transistor, the output current will be I2 =Ik n/(n+1) I1 1/(n+1). It is readily apparent that for n=1, i.e., one transistor in each string, the circuit will function as either a squaring converter or a square root extractor.
In the present configuration, the difference between the base-emitter voltage of I1 and I2 transistors is equal to the difference between the voltage across each string of transistors. Therefore, the thermal voltage component, KT/q, is cancelled out and the converter is inherently temperature stable.
The converter is useful, for example, in such applications as RMS measurement, auto-correlation, power measurement and gain compression/expansion.
BRIEF DESCRIPTION OF THE DRAWINGS
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as further objects and advantages thereof, will be best understood by reference to the following detailed description when read in conjunction with the accompanying drawings, wherein:
FIG. 1 is a schematic diagram of an (n+1) order function converter according to the present invention;
FIG. 2 is a schematic diagram of a squaring circuit including the converter of FIG. 1; and
FIGS. 3a-3c are graphical representations illustrating the relationship of the input voltage to the output current in the circuit of FIG. 2.
DETAILED DESCRIPTION OF THE DRAWINGS
Referring now to the drawings, there is shown in FIG. 1 a schematic diagram of the general case of a function coverter 10 according to the present invention. Details of the current sources and power supply have been omitted from FIG. 1 so as to not unduly burden the description thereof. Further, it will be readily apparent to those skilled in the art that although NPN transistors have been utilized, PNP transistors may be substituted therefor with appropriate modifications to the respective polarities. A first current source I1 is coupled to the collector of a transistor Q1 having its emitter coupled to the output of an amplifier 12 configured to have non-inverting unity gain. A second current source I2 is coupled to the collector of a transistor Q2 having its base coupled to the base of transistor Q1. The emitter of transistor Q2 is coupled to the collector of a transistor Q01 which is the first of a string of n series-connected transistors Q01 . . . Qn each having its collector coupled to the emitter of the preceding transistor. The emitter of Qn, the last transistor in the string, is coupled to ground. The base of each transistor Q01 . . . Qn is coupled to its respective collector. In effect, each transistor in the string functions as a diode and therefore the string Q01 . . . Qn may be replaced by a string of n series-connected diodes. It is preferred, however, to use transistors with a collector-base short as shown in FIG. 1 because they have operating characteristics that more closely approximate those of an ideal diode.
A third current source Ik is coupled to a string of diode-connection transistors Q'01 . . . Q'n connected in the same configuration as the first string of transistors Q01 . . . Qn described above. The emitter of transistor Q'n is coupled to ground. This second diode string modulates the Ik current source.
Amplifier 12, connected as a unity gain buffer, couples the voltage on the Q'01 collector-base terminal to bias the emitter of Q1, thus sinking the Q1 emitter current I1 without altering its voltage.
A pair of shorting means or jumpers JA and JB, shown as dashed lines in FIG. 1, selectively provide a collector-base short on either Q1 or Q2 depending upon the operational configuration desired for converter 10. When JA is connected, I1 is the output and the circuit operates as a power converter with I1 proportional to I2.sup.(n+1). Conversely, when JB is connected the circuit operates as a root extractor and I2 is the output proportional to I1 1/(n+1). IK is used in both cases as a gain setting constant.
In operation, referring to FIG. 1, the voltage difference between points 14 and 16 is equivalent to the difference between the base-emitter voltages of transistors Q1 and Q2, i.e., VBE1 -VBE2. This is also the difference in the voltage drop across the respective strings of transistors Q01 . . . Qn and Q'01 . . . Q'n. Since the transistors in each string are identical, the respective voltage drops may be expressed as nVBE(Q01) and nVBE(Q'01), and the difference is n(VBEQ01 -vBEQ'01). The voltage difference at points 14 and 16 may then be expressed as
V.sub.BE1 -V.sub.VE2 =n(V.sub.BEQ01 -V.sub.BEQ '01.
Using the thermal voltage equivalent expression for the base-emitter voltage in terms of the collector currents I1 and I2,
V.sub.BE1 -V.sub.BE2 =(KT/q)1n(I.sub.1 /I.sub.2).
Similarly, the Q01 and Q'01 base-emitter voltage difference may be expressed in terms of I2 and Ik as
V.sub.BEQ01 -V.sub.BEQ'01 =(KT/q)1n(I.sub.2 /I.sub.k).
Substituting into the first equation
(KT/q)1n(I.sub.1 /I.sub.2)=n(KT/q)1n(I.sub.2 /I.sub.k).
Removing the common terms (KT/q),
1n(I.sub.1 /I.sub.2)=n1n(I.sub.2 /I.sub.k)=1n[I.sub.2 /I.sub.k).sup.n ]
or,
I.sub.1 /I.sub.2 =(I.sub.2 /I.sub.k).sup.n.
In terms of I1 this becomes ##EQU1## or, in terms of I2,
I.sub.2 =I.sub.k.sup.n/n+1 (I.sub.1).sup.1/n+1.
It should be noted that converter 10 is inherently insensitive to temperature since the last two equations are independent of the temperature term (KT/q) normally associated with diodes.
Assuming Ik= 1, to obtain an output current I1 equal to the nth power of an input current I2, jumper JA must be connected and each string must contain (n-1) transistors, i.e., Q01 . . . Qn-1 and Q'01. . . Q'n-1. Converter 10 is programmed as an nth root extractor by merely disconnecting JA and connecting JB, whereupon the output current I2 now equals the nth root of the input current I1, again assuming Ik =1.
The accuracy of the present converter is directly related to the common mode current gain, or beta, of transistors Q1 and Q2. That is, the higher the beta, the more accurate the conversion. If a particularly high conversion accuracy is required, an emitter-follower stage can be included to drive the bases of Q1 and Q2 over a wide range of betas. For example, the collector of Q2 can be connected to the base of an additional NPN transistor (not shown), whose emitter would be connected to the bases of Q1 and Q2, and whose collector would be connected to a VCC voltage supply.
Referring now to FIG. 2, converter 10 is configured as a squaring converter. That is, JA is connected, there is one transistor in each string (n=1), and output I1 is proportional to the square of input I2. An A.C. voltage source 18 having a ramp voltage Vs is shown as a typical input for which the square function is required. An amplifier 20 and transistors Q3, Q4, Q5, Q6, and Q7 are used to convert the input voltage Vs to a double-frequency absolute-valued current which is in turn coupled to input I2 of converter 10. The squared output is then obtained as a current I1.
By way of illustration, referring to FIG. 3a, a symmetrical sawtooth voltage signal VS applied to the input of the circuit of FIG. 2 has a positive voltage peak VSP and a negative voltage peak -VSP. Transistors Q3 -Q7 form a frequency doubling current source with Q5 and Q6 conducting on alternate half-cycles of the input signal VS. The Q4 collector current I2, shown in FIG. 3b, is also the input current to converter 10.
The input voltage VS, and the converter 10 input current I2, may be expressed by a linear equation. Since the output current I1 is related to the square of the input current I2 as explained above, the converter output waveform is in this example a series of parabolas as shown in FIG. 3c. The voltage at the output of converter 10 is thus:
V.sub.out =V.sub.CC -I.sub.1 R.sub.1.
In addition to the programmability of the converter of FIG. 1 for power or root functions by the connection of JA or JB, the circuit may also be programmed for any root or power up to n+1 by shorting the appropriate transistor in each string to ground. For example, if the cube root were desired, JB would be connected and a short to ground would be connected at the emitter of the second transistor in each string, i.e., Q02 and Q'02.
The present converter is readily adaptable to any number of applications. For example, the combination of a square and a square root converter could be utilized in an RMS or a power measuring application. Or, by applying the square-converted output current to a summing amplifier for integration a particular auto-correlation function could be achieved. Various other embodiments and modifications will be apparent to those skilled in the art in light of the above disclosure. Therefore, it is to be understood that modifications to the details thereof may be made without departing from the spirit and scope of the invention.