summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/p-to-n-examples/op-test-adi.cir
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/p-to-n-examples/op-test-adi.cir
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/p-to-n-examples/op-test-adi.cir')
-rw-r--r--Windows/spice/examples/p-to-n-examples/op-test-adi.cir40
1 files changed, 40 insertions, 0 deletions
diff --git a/Windows/spice/examples/p-to-n-examples/op-test-adi.cir b/Windows/spice/examples/p-to-n-examples/op-test-adi.cir
new file mode 100644
index 00000000..a82eca9a
--- /dev/null
+++ b/Windows/spice/examples/p-to-n-examples/op-test-adi.cir
@@ -0,0 +1,40 @@
+OpAmp Test
+
+vddp vp 0 15
+vddn vn 0 0
+voff off 0 -1
+
+*vin in 0 0
+
+.include ad22057n.lib
+
+* Node assignments
+* non-inverting input
+* | inverting input
+* | | positive supply
+* | | | negative supply
+* | | | | A1 out
+* | | | | | A2 in
+* | | | | | | offset
+* | | | | | | | output
+* | | | | | | | |
+*SUBCKT AD22057N 1 2 99 50 30 31 40 49
+Xopmap in 0 vp vn a1 a1 off outo AD22057N
+
+Rout outo a1 200k
+Ca1 a1 0 500p
+
+.dc vin 0.1 0.2 0.01
+
+vin in 0 DC 0 PULSE(0.1 0.2 200uS 200uS 200uS 5m 10m)
+.tran 10u 10m
+
+.control
+run
+plot dc1.v(outo) vs dc1.v(in)
+plot v(in) v(a1) v(outo)
+.endc
+
+
+.end
+