chiark / gitweb /
undo broken deletion
[trains.git] / spice / test.cir
diff --git a/spice/test.cir b/spice/test.cir
new file mode 100644 (file)
index 0000000..36838f6
--- /dev/null
@@ -0,0 +1,31 @@
+OPMODEL1.CIR - OPAMP MODEL SINGLE-POLE
+*
+* OPAMP MACRO MODEL, SINGLE-POLE 
+* connections:      non-inverting input
+*                   |   inverting input
+*                   |   |   output
+*                   |   |   |
+.SUBCKT OPAMP1     1   2   6
+* INPUT IMPEDANCE
+RIN    1       2       10MEG
+* DC GAIN=100K AND POLE1=100HZ
+* UNITY GAIN = DCGAIN X POLE1 = 10MHZ
+EGAIN  3 0     1 2     100K
+RP1    3       4       1K
+CP1    4       0       1.5915UF
+* OUTPUT BUFFER AND RESISTANCE
+EBUFFER        5 0     4 0     1
+ROUT   5       6       10
+.ENDS
+*
+VS     1       0       AC      1
+XOP    1 0     3       OPAMP1
+RL     3       0       1K
+* 
+* ANALYSIS
+.AC    DEC     5 1 100MEG
+* VIEW RESULTS
+*.PLOT AC      VM(3)
+.print AC      VM(3) vp(3)
+.PROBE
+.END