summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/p-to-n-examples/OP_MCP6041.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_MCP6041.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_MCP6041.cir')
-rw-r--r--Windows/spice/examples/p-to-n-examples/OP_MCP6041.cir36
1 files changed, 36 insertions, 0 deletions
diff --git a/Windows/spice/examples/p-to-n-examples/OP_MCP6041.cir b/Windows/spice/examples/p-to-n-examples/OP_MCP6041.cir
new file mode 100644
index 00000000..816fccc8
--- /dev/null
+++ b/Windows/spice/examples/p-to-n-examples/OP_MCP6041.cir
@@ -0,0 +1,36 @@
+Test OpAmp
+
+*.OPTIONS RELTOL=.0001
+*.include MCP6041ng.lib
+.include MCP6041.txt
+
+V1 vdd 0 2.2
+V2 vss 0 -2.2
+
+Vin in 0 dc 0 sin(0 100m 500)
+
+Rin in opin 1000k
+Rfb opout opin 10000k
+
+*Eop opout 0 opin 0 -10000
+
+Xop 0 opin vdd vss opout MCP6041
+* MCP6041 1 2 3 4 5
+* | | | | |
+* | | | | Output
+* | | | Negative Supply
+* | | Positive Supply
+* | Inverting Input
+* Non-inverting Input
+
+*.dc Vin -2.2 2.2 0.1
+*.tran 0.1m 10m
+
+.control
+dc Vin -0.2 0.2 0.01
+plot v(opout) v(opin)
+tran 0.1m 10m
+plot v(in) v(opin) v(opout)
+.endc
+
+.end