Index: simulation/raw/16_opamp_dc.html =================================================================== --- simulation/raw/16_opamp_dc.html (revision 7928) +++ simulation/raw/16_opamp_dc.html (revision 7929) @@ -9,7 +9,7 @@

The schematics

-The single-sheet schematics contains the opamp, the voltage sources for +The single-sheet schematic contains the opamp, the voltage sources for input and two more voltage sources for the power supply (positive and negative) for the opamp and spice command symbol.

@@ -21,8 +21,8 @@

Opamp model

This example uses the lm358 macromodel from sch-rnd's stock spice -library. This model is a subcircuit of the amplifier and a lot of -limiters and parasitics. +library. This model is a subcircuit of the amplifier and simulates a +lot of limiters and parasitics.

Preparing for simulation

@@ -29,18 +29,18 @@

Q1

The model uses the standard opamp pinout so the hardwired spice/pinnum -attributes on the terminals work. +attributes on the terminals will simply work.

V1

-V1 is generating the input dc voltage. We can leave it 0 here, the -dc sweep command for the analysis will keep it changing +V1 is generating the input dc voltage. We can leave it 0 here, since +the dc sweep command for the analysis will provide the change over time

V2 and V3

-Both are 5V DC rails for powering the opamp with positive -and negative supply. +Both are 5V DC rails for powering the opamp with the required positive +and negative supplies.

Raw spice commands

@@ -50,7 +50,7 @@ plot v(in) v(out)

-which runs a DC sweep analysis from -50mV to +60mV on input, increasing +which runs a DC sweep analysis from -50mV to +60mV on the input, increasing voltage by 2 mV steps. At the end the input and output voltages are plotted. @@ -72,12 +72,12 @@ dc V1 -50m 60m 2m > plot.txt

-After the export, write a single word spice in the first line of the -file (e.g. using a text editor), else gnucap won't know the file is in spice +After the export, write the single word spice in the first line of the +file (e.g. using a text editor), otherwise gnucap won't know the file is in spice syntax. Then run gnucap 16_omapm_dc.cir and it will dump a text -table to plot.txt that can be plotted using e.g. gnuplot. +table to plot.txt that can be plotted using a suitable utility, e.g. gnuplot.

-The gnucap-modified schematics is also available. +The gnucap-modified schematic is also available.

xyce