Electronic – Simulating step function in PSpice

pspicesimulation

How do I implement the the function in Pspice?

\$V_s(t)=1.5u(t)-3u(t-.01)+1.5u(t-.02)\$

I know to use the VPULSE source but it has only two voltages as parameters but I need 3.

Best Answer

Here I inverted the middle Vsource to get the negative voltage. You can do it with just changing the internal parameters.

enter image description here