Op amp, I want to use LM358

MrAl

Joined Jun 17, 2014
13,764
Hello again,

Here is the spice model I tried in the LT Spice simulator. It seems to work ok even with a pulse like you were testing earlier.
If you want to try it you can put the file under the "Lib" sub-directory of the simulator directory.
I named the file simply LM358.mod so you can rename the file after you download it.
 

Attachments

MrAl

Joined Jun 17, 2014
13,764
Hello again,

Going back to your post #55 with the unusual waveform that was not yet explained, it immediately looks like crossover distortion. The wave distortion itself looks like that with the combined fact that it looks like those intermediate 'steps' are roughly 4us long each. That's the time for one of the internal signals to ramp to the right level to switch between upper and lower output transistors. That's where the crossover distortion comes in. This is always a consideration with the LM358 type op amps.
To get rid of crossover distortion, we have to 'bias' the output so that it forces either the upper or the lower transistor to supply the output for the entire time of operation. This can sometimes be accomplished by simply adding a resistor (like 10k) from the output to ground, which keeps the upper transistor in the linear mode all the time and the lower transistor is never used. It may also be possible to bias from the output to +Vcc which would keep the lower transistor in the linear mode all of the time and with the upper transistor never being used.
The key to this type of bias is that the current through the added resistor has to do all the work of the transistor that is not being used, so it has to be the right value.
 
Top