Electrical – pulse response of opamp integrator

capacitoroperational-amplifierstep response

I was simulating the below opamp integrator circuit with pulse current.As this is an inverting integrator I thought it would integrate the input current and give me a triangular waveform.

enter image description here

But after simulation in PSpice I got the following result.

Can anyone explain why the current flowing through capacitor jumping to 0 to 2u instead -1u to 1u.
Also why Vout is almost constant at 15v.

From my understanding, if dc current flows through capacitor then the voltage across through capacitor will be ramp.
enter image description here

Best Answer

Assuming this was an ideal op amp your question is answered by the initial condition at time zero for your simulation. If the current in the capacitor was zero at time zero, and the voltage at the output was zero at time zero, the current and voltage waveforms would be as you describe.

Since this is in the real world, and the initial conditions are I = -1u, the op amp starts out saturated because C1 is charged to a large negative voltage.

To get the desired result, simulate a switch across C1 with the switch closed, and open the switch a short time after your current starts. If you vary the start time delay, the triangle wave will have a differing DC component.