Limiting Output Voltage of the Opamp-to avoid saturation

First, you could try replacing the diodes with square-law device tied BJT's. As it mentions in the image, the stability improves.

log amplifier

Instead of reinventing the wheel, it may be useful to check out TI's guide to logarithmic amplifiers. In particular, figure 1 with I_in as the input current.

log amplifier

To quote the pdf a bit more ... "This confirms that the circuit output voltage is logarithmically related to the circuit's input."


You have a couple of problems with your circuit. 1st, LTC6268-10 is a 5V part. You can't go and feed it +/- 5V! At +/-2.5V the circuit works more like advertised.

Second, your diode circuit is oscillating because the opamp feedback gets out of whack. Very scientific, I know, but without bothering to do the hard math, you can fix this by adding a series resistor to the light sensor which matches the TC of your bypass resistor. You also need a series resistor on the diode. Lets use 100R for that.

For the light sensor series resistor 1k + 1p equals about 12p and 82R. If we experiment a bit we'll find that 22R gives faster response but more ringing and 1k is unstable.

3rd, You now have a voltage limiting circuit, congragulations! Alas, MMSD4148 is not a fast recovery diode, it takes tardy 5ns to switch off. That's not good for 10ns pulses! MMSD4148 + 100R

Let's replace it with a much more reasonable vishay BAS70E6327 with 100ps Trr.

4th, yay, now we have voltage clamping that works fairly reasonably. However .. it's not exactly balanced. Going down, that diode + 100R resistor will pull the output down much faster than 1k can charge the 12pF capacitor in the other direction. To add insult to injury, 100R clamps the voltage fairly close to the Vf so we see a nice sharp transition in one direction and RC droop in the other. BAS70 + 100R in series

We can make this look prettier by changing series resistor to 330R but it mostly makes it look better as now the voltage clap is at higher voltage and ringing is eliminated but it doesn't actually do anything about returning to zero. BAS70 + 330R in series

That droop is caused by the parasitic ~2pF capacitance of that diode. So basically you want ultrafast recovery, ultralow reverse current and ultrasmall capacitance. Don't we all.

Your basic problem here in general is that your measurement range is fairly unreasonable. On the other hand you want to measure 1uA/1mV signal (how?) and then you come back and want to handle 1mA/1V signal too with the same circuit! You get that tail-off from RC delay that'll round things off more and more the stronger the signal is. At 1mA it's +14ns to cross 1mV. At 100uA it's 11ns. at 10uA it's about 8ns. At 1uA you've got the opposite problem as the signal doesn't reach 1mV but infinitely gets closer.

So definitely for any kind of fidelity this needs some other kind of circuit or more limited range of signal or longer pulses.. It would be also helpful to properly do the feedback loop stability analysis as it's obviously marginal here. I think using 500MHz high slew rate amplifier would work better than 4GHz amplifier, you can get same 3kV/us slew rate from 300-500MHz parts and they're much more stable. Also it'd help if you can find that perfect diode but I'll leave it as an excercise for you, I already spent ages on this..

Here's the modified circuit. Circuit without capacitor as we've got parasitic cap from diode already