I'm trying to understand op amps through working with simulations in ng-spice.
I decided to start with a very simple buffer circuit using the UA741 op amp from TI.
I fed in a sine wave voltage. And I expected the same thing coming out. However the output was clipped.
What am I doing to cause the output to be clipped?
Here's the netlist:
And the schematic file if you're interested:
I got the op amp spice model from here:
http://www.ti.com/product/ua741
Richard
I decided to start with a very simple buffer circuit using the UA741 op amp from TI.
I fed in a sine wave voltage. And I expected the same thing coming out. However the output was clipped.
What am I doing to cause the output to be clipped?
Here's the netlist:
Rich (BB code):
* Spice netlister for gnetlist
R3 0 4 100
R1 1 5 100
R2 2 3 100
XOA1 3 4 5 0 4 UA741
V2 0 2 sin(-2.5v 1v 1Hz)
V1 1 0 5v
.END
Rich (BB code):
v 20110115 2
C 40000 40000 0 0 0 title-B.sym
C 43300 47000 1 270 0 voltage-3.sym
{
T 44000 46800 5 8 0 0 270 0 1
device=VOLTAGE_SOURCE
T 43800 46700 5 10 1 1 270 0 1
refdes=V1
T 43300 47000 5 10 1 0 0 0 1
value=5v
}
C 45200 45000 1 90 0 voltage-1.sym
{
T 44700 45100 5 10 0 0 90 0 1
device=VOLTAGE_SOURCE
T 44700 45300 5 10 1 1 90 0 1
refdes=V2
T 45200 45000 5 10 1 0 0 0 1
value=sin(-2.5v 1v 1Hz)
}
C 46000 47600 1 0 0 opamp-1.sym
{
T 46700 48400 5 10 0 0 0 0 1
device=OPAMP
T 46700 48200 5 10 1 1 0 0 1
refdes=XOA1
T 46700 49000 5 10 0 0 0 0 1
symversion=0.1
T 46000 47600 5 10 1 0 0 0 1
value=UA741
}
N 43500 49000 48500 49000 4
N 43500 46100 43500 45000 4
N 43500 45000 48500 45000 4
C 45100 45900 1 90 0 resistor-1.sym
{
T 44700 46200 5 10 0 0 90 0 1
device=RESISTOR
T 44800 46100 5 10 1 1 90 0 1
refdes=R2
T 45100 45900 5 10 1 0 0 0 1
value=100
}
C 43300 44700 1 0 0 ground.sym
C 46300 47300 1 0 0 ground.sym
N 46500 48400 46500 49000 4
N 47000 48000 47000 47000 4
N 46000 48200 45000 48200 4
N 45000 48200 45000 46800 4
N 46000 47000 48500 47000 4
N 48500 47000 48500 46500 4
N 48500 45600 48500 45000 4
C 43600 47000 1 90 0 resistor-1.sym
{
T 43200 47300 5 10 0 0 90 0 1
device=RESISTOR
T 43300 47200 5 10 1 1 90 0 1
refdes=R1
T 43600 47000 5 10 1 0 0 0 1
value=100
}
N 43500 49000 43500 47900 4
C 48600 45600 1 90 0 resistor-1.sym
{
T 48200 45900 5 10 0 0 90 0 1
device=RESISTOR
T 48300 45800 5 10 1 1 90 0 1
refdes=R3
T 48600 45600 5 10 1 0 0 0 1
value=100
}
N 46000 47800 46000 47000 4
http://www.ti.com/product/ua741
Richard