Log amp cascaded to anti-log amp

  • Thread starter Thread starter mercmalta
  • Start date Start date
  • Tags Tags
    Amp Log
AI Thread Summary
Cascading an inverting logarithmic amplifier with an inverting exponential amplifier, along with an inverting buffer, produced unexpected results when the buffer's gain was set to 5. Instead of achieving the anticipated saturation output from the exponential amplifier, a non-inverted sine wave was observed. The issue may stem from the last op-amp reaching negative saturation, which disrupts the expected virtual ground condition. Accurate diagnosis requires knowledge of all DC levels and power supply voltages, as op-amps do not function ideally outside their specified ranges. The circuit's behavior suggests that increasing the gain affects the voltage input significantly, leading to the observed anomalies.
mercmalta
Messages
3
Reaction score
0
Hey everybody,

I've been trying a bit of an experiment involving cascading an inverting logarithmic amp with an inverting exponential amplifier. Between them I put in an inverting buffer (see attached diagram). Now the thing is, when the inverting buffer has unity gain everything works as expected, and the output is basically an inverted copy of the input.

But when I tried giving gain of 5 to the inverting buffer the circuit started acting all wierd. Theoretically what should happen is that the input to the exponential amplifier is high enough to force its output into saturation (in this case assuming a sine wave input). But what's happening when simulating and when i built it in practice is that a non-inverted "sine wave" (i attached a screenshot) is obtained. I have no idea how this is happening, can someone please help? Thanks in advance.

Here are the equations used:

Logarithmic Amp:
V_o = -(1/40)*(ln(V_i/(I_s*R_i)))
Exponential Amp:
V_o = -R_f*I_s*e^(40V_D)
where 1/nV_T is approximately equal to 40.
 

Attachments

  • asd.JPG
    asd.JPG
    48.4 KB · Views: 785
  • asdasd.JPG
    asdasd.JPG
    52.4 KB · Views: 538
Engineering news on Phys.org
Log amps and anti-log amps are unipolar. The sine wave has to be on a dc offset bigger than the amplitude of the sine wave. Also, in the early days, Analog Devices made some log amps (for analog multipliers), and the best "diode" they could find was a trans-diode-connected transistor. See

http://www.analog.com/library/analogDialogue/bestof/pdf/19_1.pdf

Bob S
 
I forgot to mention that the input wave was a sine wive with 100mV peak to peak and it was given a DC offset of 150mV (for the reason you mentioned above). What I can't understand is how come when a gain of 5 is given in the inverting amp the output is not inverted. Thks
 
In this circuit it is most likely that either the second opamp will be in current limit or the final opamp in negative saturation. Depending on how realistically the parts are simulated this my or may not accurately represent the behavior of the real circuit. (as not all sim packages will accurately portray the behavior of parts outside of their most typical operational ranges)
 
I actually built the circuit and the waveform was very similair to the one viewed in the sim. I'm attaching a picture with this reply.
 

Attachments

  • IMG_0259.jpg
    IMG_0259.jpg
    29.7 KB · Views: 640
Hi mercmalta. Could you make sure your scope is DC coupled and indicate all DC levels. It's not possible to really diagnose the circuit without knowledge of all DC levels (and the power supply voltages).
 
Let me add that I have a good theory of what's happening but I can't prove it unless I know the DC levels. I'm almost certain that the last OPAMP (U2) has it's output at negative saturation, it's inverting input no longer a "virtual earth". So current from D2 being coupled directly through R2 to the output, bypassing the opamp, and giving a non-inverting path.

I don't necessarily expect you to understand that, but I do hope you understand that opamps don't work as ideally expected under all circumstances. They require their DC inputs and output voltage and output currents to be within certain ranges, otherwise all bets are off. In your circuit, all bets are off.

BTW. Your simulation software is impressive in it's ability to give good results for the opamp outside of it's usual operating conditions.
 
mercmalta said:
...But when I tried giving gain of 5 to the inverting buffer the circuit started acting all wierd. ...
If you increase the gain of the inverter (middle opamp) by factor 5, it is equivalent to raising the input voltage V to the 5th power, e.g., V5. I suggest that all four resistors in your circuit be 100k. If you want to double the output voltage, try increasing the feedback resistor R2 on the last opamp, or halving the input resistor R1. I believe using the largest acceptable value of the input resistor R1 (and output resistor R2) will give the best log response.

Bob S
 
Back
Top