The different universal opamp model "levels" provide increasing levels of opamp simulation effects.Hi,
I sketch this simple diagram in LTSpicie that utilizes op-amp (a generic one) powered by a single supply 0 - Vcc. Surprisingly the output swings negative:
View attachment 358929
How is that possible LTSpicie generates this irrational output?
If you want an idealized op amp simulation and are not concerned about real op amp limitations.what is a model that doesn't take power supply into consideration good for?
Look at the description for the model (below):how can I know what each "level" really simulate?

Put the .asy file below into the LTC sym/Opamp folder and the .sub file into the LTS lib\sub folder.I wanted to work with NE5332x op amp

I don't see the output.This one on the other hand, keeps the output near 0, what is the reason for that?
Sorry, I accidentally clicked on the 555 file next to it.As for the addition of NE5532, @crutschow , I think you gave me the incorrect *.sub file for NE555






You have to plot V(out) / V(mic). Plotting only V(out) will result in a "voltage gain" of only 1.5 (3.521dB) because your 1.5Vp AC output voltage is referenced to the default value of 1Vp.However I have a problem with AC analysis that shows the gain is <4db, while the trans analysis shows ~30db, is that because now I am using a generic op amp again (I just names in JRC4558)?
V(out) DIVIDED BY V(mic).I tried that as well, no change:
Don't understand what that means(?)I can't offset it to go from 0 up to ~3V range.
AC analysis uses a linear model for all active devices, so the AC voltage value doesn't affect the amplifier response (no signal clipping for example).However I have a problem with AC analysis that shows the gain is <4db,
The thing is, I need to feed ADC with this output, and ADC range is 0 - 3V. So I think I have two options, either offset the non inverting terminal so that the output peaks in 0-3V range (and this is what I did on schematic above). Or bias ADC input at 1,5V and connect the series capacitor from op-amp (as you suggested). Do you agree @crutschow?Don't understand what that means(?)
You add a series capacitor on the output to remove the DC offset.
Hmm I am not sure I got your point here, are you saying that the AC analysis doesn't take power supply limits into an account so if I overshoot with gain it will still show it correctly in db gain? Certainly in transit response I see output clipping.AC analysis uses a linear model for all active devices, so the AC voltage value doesn't affect the amplifier response (no signal clipping for example).
Yes, that is what I would do.offset the non inverting terminal so that the output peaks in 0-3V range
Exactly.are you saying that the AC analysis doesn't take power supply limits into an account
Yes, it is.Is the ADC a part of an MCU.?
Hmm, not sure if this is a good idea, the diode will load audio signal, I would rather make sure the preamp doesn't hit the ADC threshold.You could consider using a Schottky diode clamp up to the 3v3 Vcc supply, with a series diode.
This would limit the ADC input to a maximum of ~3.3v
Thank you, it is a valuable information.Even if the theoretical output were 10,000 volts, it would still plot the AC gain correctly.