A kind of logarithm logaX computing circuit and its implementation
Technical field
The invention belongs to electronic circuit field, relate to a kind of analog circuit realizing general logarithm computing, be specifically related to one
Plant and realize general logarithm function log based on natural logrithm lnx circuit and division circuitaX computing.
Background technology
In electronic circuit, the application of integrated transporting discharging is mainly manifested in it can constitute various computing circuit, by introducing electricity
Pressure negative feedback, makes amplifier be operated in linear zone, so realize the ratio of analogue signal, plus-minus, multiplication and division, integration, differential, logarithm and
The elementary operations such as index.The logarithmic operational circuit that presently, there are only realizes natural logrithm function lnx (i.e. logeX) circuit,
Lack general logarithm function logaThe computing circuit of x.In order to realize general logarithm function with satisfied different analogue signal computings
Needing, the present invention proposes one and is capable of general logarithm function logaThe analog operational circuit of x, truth of a matter a can be necessarily
In the range of free value, it is also possible to realize logaLogarithm operations such as (sin x).
Summary of the invention
For the deficiencies in the prior art, the invention provides one and realize general logarithm function logaX computing circuit and
Method, utilizes natural logrithm lnx circuit and division circuit to realize general logarithm function logaX computing circuit.
The present invention adopts the following technical scheme that and realizes goal of the invention:
One is used for realizing logarithmic function logaThe method of x computing circuit, comprises the following steps:
(1) according to mathematical relationship a, it is achieved logarithmic function logaThe mathematical operation of x:
(2) input voltage x, according to formula a, utilizes the circuit realiration logarithmic function that diode D1 and integrated transporting discharging U1 is constituted
Lnx computing, the output voltage v of integrated transporting discharging U1 the 1st pin1:
(3) also according to formula a, the circuit realiration logarithm lna computing that diode D2 and integrated transporting discharging U1 is constituted is utilized, logical
Overregulating slide rheostat R2 and access the constant value of resistance regulation a, integrated transporting discharging U1 is at the output voltage v of its 14th pin2:
(4) integrated transporting discharging U1 is used to constitute circuit v2Anti-phase amplification computing, i.e. integrated transporting discharging U1 the 7th pin output voltage
v3:
(5) utilizing the division arithmetic circuit that U1 and multiplier are constituted, the output voltage at its 8th pin achieves division fortune
Calculate v4:
WhereiniD1R1=1,
A kind of logarithmic function logaThe computing circuit of x, this circuit is by integrated operational amplifier U1, multiplier U2, diode
D1, diode D2 form, and integrated operational amplifier U1 realizes the conversion of signal, amplification, negative function, diode D1 and integrated fortune
Calculate amplifier U1 to realize asking natural logrithm computing lnx, diode D2 and integrated operational amplifier U1 to realize nature input function x
Logarithm operation function lna, multiplier U2 and operational amplifier U1 realize the division arithmetic function of two signal lnx and lna, the most in fact
Existing general logarithm calculation function.
3rd pin of described integrated operational amplifier U1, the 5th pin, the 10th pin, the 12nd pin ground connection, the 4th pin connects
+ 15V power supply VCC, the 11st pin meets-15V power supply VEE;L pin meets the 2nd of integrated operational amplifier U1 by diode D1
Pin, connects the 9th pin of integrated operational amplifier U1 by potentiometer R5;7th pin connects integrated computation by potentiometer R4 and puts
6th pin of big device U1, connects the 1st pin of multiplier U2;8th pin connects the 3rd pin of multiplier U2;14th pin passes through two
Pole pipe D2 connects the 13rd pin of integrated operational amplifier U1, is connect 6 pins of integrated operational amplifier U1 by potentiometer R3.
2nd pin of described multiplier U2, the 4th pin, the 6th pin ground connection, the 5th pin meets-15V power supply VEE, and the 8th draws
Foot meets+15V power supply VCC;7th pin connects the 9th pin of integrated operational amplifier U1 by potentiometer R6.
The positive pole of described diode D1 meets input signal source x by potentiometer R1, and negative pole connects integrated operational amplifier U1's
1st pin.
The positive pole of described diode D2 connects DC power anode by adjustable sliding potentiometer, and negative pole connects integrated computation and amplifies
14th pin of device U1.
The present invention utilizes a kind of general logarithm computing circuit of natural logrithm circuit and division arithmetic circuit realiration, and leads to
Overregulate percentage ratio regulation truth of a matter a of slide potentiometer, add the type of analogue signal computing circuit, extend analogue signal
Operating range, its simple in construction, computing is accurate, and good stability can realize the general logarithm computing of analogue signal with it, at collection
Become in discharge circuit and will have wide practical use.
Accompanying drawing explanation
Fig. 1 is the structure chart of the present invention.
Fig. 2 is the schematic diagram of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is further described in detail.
Function y=log to be realizedaThe computing of x, according to mathematical relationship
As long as realizingComputing.As it is shown in figure 1, the circuit utilizing diode D1 and integrated transporting discharging U1 to constitute is real
The computing of existing lnx;Utilize the computing of the circuit realiration lna of diode D2 and integrated transporting discharging U1 composition;Utilize multiplier U2 and collection
Amplifier U1 is become to constitute division circuit, it is achievedComputing, i.e. realizes logaX logarithm operation.
As in figure 2 it is shown, the electric current of diode D1 and voltage:
The output voltage of integrated transporting discharging U1 pin 1:
Same, the electric current of diode D2 and voltage:
The output voltage of integrated transporting discharging U1 pin 14:
This voltage, after the inverting amplifier that R3, R4 and the 5th pin, the 6th pin and the 7th pin are constituted amplifies, draws the 7th
The output voltage of foot is:
The output of the 8th pin of this input voltage and integrated transporting discharging U1 is added in the 1st pin and the 3rd pin of multiplier U2,
Divider is collectively constituted, it is achieved division arithmetic, at integrated transporting discharging with the 8th pin of integrated transporting discharging, the 9th pin, the 10th pin
8th pin output voltage:
Take at thisiD1R1=1,I.e. there is v4=loga x。
Described a kind of logarithmic function logaThe computing circuit of x, by integrated operational amplifier U1, multiplier U2, diode
D1, diode D2 form, and integrated operational amplifier U1 realizes the conversion of signal, amplification, negative function, diode D1 and integrated fortune
Calculate amplifier U1 to realize asking natural logrithm computing lnx, diode D2 and integrated operational amplifier U1 to realize nature input function x
Logarithm operation function lna, multiplier U2 and operational amplifier U1 realize the division arithmetic function of two signal lnx and lna, the most in fact
Existing logarithmic function calculation function.
3rd pin of described integrated operational amplifier U1, the 5th pin, the 10th pin, the 12nd pin ground connection, the 4th pin connects
+ 15V power supply VCC, the 11st pin meets-15V power supply VEE;L pin meets the 2nd of integrated operational amplifier U1 by diode D1
Pin, connects the 9th pin of integrated operational amplifier U1 by potentiometer R5;7th pin connects integrated computation by potentiometer R4 and puts
6th pin of big device U1, connects the 1st pin of multiplier U2;8th pin connects the 3rd pin of multiplier U2;14th pin passes through two
Pole pipe D2 connects the 13rd pin of integrated operational amplifier U1, is connect 6 pins of integrated operational amplifier U1 by potentiometer R3.
2nd pin of described multiplier U2, the 4th pin, the 6th pin ground connection, the 5th pin meets-15V power supply VEE, and the 8th draws
Foot meets+15V power supply VCC;7th pin connects the 9th pin of integrated operational amplifier U1 by potentiometer R6.
The positive pole of described diode D1 meets input signal source x by potentiometer R1, and negative pole connects integrated operational amplifier U1's
1st pin.
The positive pole of described diode D2 connects DC power anode by adjustable sliding potentiometer, and negative pole connects integrated computation and amplifies
14th pin of device U1.
Present invention achieves a kind of general logarithm computing circuit, add the type of analogue signal computing circuit, extend
The operating range of analogue signal, its simple in construction, computing is accurate, and good stability can realize the general logarithm of analogue signal with it
Computing, will have wide practical use in integrated operational amplifier circuit.
Certainly, described above not restriction to invention, the present invention is also not limited to the example above, the art general
Change that logical technical staff is made in the essential scope of the present invention, retrofit, add or replace, such as loga(sin x) etc. are right
Number computing falls within protection scope of the present invention.