This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hey Nishie,
This is caused by the models being different architectures. The LM2904 model you had included in your schematic was a simpler model developed by national semiconductor. We have since updated this model with a more complex architecture that shows more of the device behaviors.
The newest model can be found at the below link under design tools and simulations:
https://www.ti.com/product/LM2904#design-tools-simulation
On the output of the LM2904, there is a 50uA constant current sink. This may result in some non-linear behaviors on the output when you switch between sinking and sourcing current. For more information on this please see section 3 in the below application note.
https://www.ti.com/lit/an/sloa277b/sloa277b.pdf
Shifting your input voltage up by 3V fixes this for the LM2904. LM2904B has a stronger constant current sink driver, so to fix this you have to shift your voltage and increase the value of your resistors to 10k.
Best,
Jerry