LMV791 PSPICE Library Issue in QSPICE

Hello everyone,

The issue is that I’ve downloaded LMV791.MOD file from TI’s website(Pspice version). It works as expected in LTspice but QSPICE generates wrong result.

  • Current sense resistor is 100-ohms for each case
  • Gain of the diff-amp is 22
  • Load is 2.2K

The output should be around 2.3V but in QSPICE it is 28mV(it can not amplify voltage across the sense resistor).

  • In QSPICE side LMV791’s non-inverting input is 3.06V inverting input is 2.927V (R7’s voltage is 3.05V)
  • In LTspice LMV791’s non-inverting input is 3.05V and inverting input is 3.039V

Is it a bug related with parsing PSICE to QSPICE or there is something wrong that I did somehow?

QSPICE Build date is: 30/08/2023

If exactly duplicate your circuit, get same result that OUT is about 28mV. I export the netlist and put into LTspice, simulation results is the same, 28mV for OUT.

By remove R1/R7/V2 and replace with a ramp voltage source, can simulate with this amplifier where V(out)/V(in) before rail clamp is about 22. Again, if export netlist and load into LTspice, can get same results.


But if you download the PSPICE model from TI’s website instead of exporting the netlist from QSPICE and include it to the LTspice than it works as expected. I guess there is an issue with parsing process in QSPICE…

Here is the result from LTspice:

Hi namcho,

I get the same result with QSpice, LTSpice, and PSpice (PSpice for TI).
The output voltages are 28mV.



According to the LMV791 datasheet, the maximum input common-mode voltage range is around VDD-1V.
It seems that LV721 may not be compatible with your design.

Try changing the supply voltage, e.g., to 5V. It will work fine.
The expected output voltage is,
Input differential voltage = 100 / (2.2k + 100) * 3.2V = 0.139V
V(out) = 220k / 10k * 0.139V = 3.06V
*The simulation model has an input offset voltage, so the simulation results have some difference from the expected value.

But what made the difference in your QSpice and LTspice results?

1 Like

Thank you EL34, I’ll closer look to the datasheet today, and try to find out why the LTSPICE that I’ve done gives me different results.

1 Like

Any chance the model in your LTspice is not exact match to current TI LMV791 Pspice model?
https://www.ti.com/lit/zip/snom056

This is where I download the model to verify your observation.
It seems EL34 created a symbol from LMV791.mod in LTspice and can get same simulation results as in Qspice.

Yes, I created the LMV791 symbol and linked it to its model.
The model version is “Rev.b July-2006,” the same as the one linked.

As @EL34 mentioned about common-mode voltage value, the model should respond as it is in QSPICE but I did not look at my LTSPICE yet. I’ll

I tested LMV791 on LTspice - 17.0.35.0.

I’ve just re-simulated in LTspice without any change. As it is seen common mode voltage is about 3V in the simulation but in the datasheet CM voltage value is given 1.5V (MAX) and -0.3V(MIN).
Therefore LTspice doesn’t give proper result for my case.