Electronic – Single-supply op-amp behavior with 0V input

circuitlaboperational-amplifier

I am confused by how op-amps work. I have a single-supply op-amp: the power rails are +5V and ground. The circuit in the image says the op-amp is an LM741 but it's actually the op-amp built into the Cypress PSoC 4200M chip (data sheet). My understanding is that op-amps generally cannot output a voltage that is too close to the power rail. Therefore I expect that if I configure the op-amp as a voltage follower and tie the positive input to ground, I should get something greater than 0V from the output.

Looking at the data sheet, I think that, assuming I set the power to low and my load is minimal (it's an ADC), the output should range from 0.1V to VDDA (5V) – 0.1V = 4.9V. Does that look correct?

The reason I'm confused about this is when I simulate the circuit in CircuitLab (with the LM741) and run the DC sweep simulation, I see the LM741 outputting the full range of voltages from 0V all the way up to 5V. It seems to be behaving as an "ideal" op-amp. But what's the point in choosing the op-amp model in the simulator and entering all the parameters if it's not going to simulate correctly? Am I doing something wrong or does CL just not simulate op-amps correctly or do I not understand how op-amps work?

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

Your understanding of op-amps is fundamentally correct, and as Olin notes, an output with no load may very well drive close to the rails, but many parts will struggle even at no load.

What you may not understand is the models used for simulation, and these vary considerably in detail and accuracy.

This application note explains why most op-amp models are continuous time and why earlier models may not accurately show the limitations of the output. It also goes into some detail on how these models have evolved to bring greater accuracy to simulations.

Most interestingly, the model itself has no real relationship to the part in terms of the actual circuitry used, as the model is only representative of the behaviour of the part; these models rarely model start-up response (if ever) which can catch the unwary. (Chopper stabilised device outputs can be interesting for the first few milliseconds).

Understanding the limitations of simulation tools is critical in engineering, and only a thorough understanding of the parts being simulated (op-amps in this case) will save you from serious circuit mistakes.

The simulation is to help you understand the typical performance of a given part in a given configuration to help avoid many problems; you still need to understand the device fundamentals.

I have seen models (TVS devices in that case) that did not reflect reality and caused quite a lot of embarrassment when the box was subjected to lightning tests, because the designer had blindly believed the simulation.