Video Friday: Agile Upgrade
1 day ago
ngspice -b opamp.cir
opamp.cir
Op Amp Example
* ASCII Output setup
.opt nopage
.width in=72
.width out=80
* Ground is node 0
* Inverting Amplifier with Pseudo-Ideal Opamp
* Eopamp [Vout node] [Vin node] [V+ node] [V- node] [Gain]
Eopamp 1 0 0 2 1e6
* R# [input node] [output node] [value]
R1 3 2 5k
R2 2 1 10K
Rload 1 0 100
* Vi [V+ node] [V- node] DC [DC voltage] SIN ( [V0] [Va] [f] [delay] [damping]
Vi 3 0 SIN ( 0V 1V 10Hz 0 0 )
*
.op * Operating point analysis
.control * Execute these statements as commands after loading simulation
set hcopydevtype=postscript
set hcopyfont=DejaVuSans-Bold-ISOLatin1
set hcopyfontsize=32
set hcopypscolor=true
set color0=rgb:f/f/f * background color
set color1=rgb:0/0/0 * foreground color
* transient response
* tran [step] [stop] [start] [max step]
tran 0.250u 0.200 0.00 0.100u
plot tran v(1) v(3) * plot the transient response of the input and output
hardcopy opamp.ps v(1) v(3) * output plot to postscript
.endc * end control commands
.end * the end...