summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/numparam/pintest.cir
diff options
context:
space:
mode:
authorrahulp132020-02-28 11:38:58 +0530
committerrahulp132020-02-28 11:38:58 +0530
commit246319682f60293b132fca1ce6e24689c6682617 (patch)
tree6871b758a17869efecfd617f5513e31f9a933f4a /Windows/spice/examples/numparam/pintest.cir
parentd9ab84106cac311d953f344386fef1c1e2bca1cf (diff)
downloadeSim-246319682f60293b132fca1ce6e24689c6682617.tar.gz
eSim-246319682f60293b132fca1ce6e24689c6682617.tar.bz2
eSim-246319682f60293b132fca1ce6e24689c6682617.zip
initial commit
Diffstat (limited to 'Windows/spice/examples/numparam/pintest.cir')
-rw-r--r--Windows/spice/examples/numparam/pintest.cir32
1 files changed, 32 insertions, 0 deletions
diff --git a/Windows/spice/examples/numparam/pintest.cir b/Windows/spice/examples/numparam/pintest.cir
new file mode 100644
index 00000000..80702e14
--- /dev/null
+++ b/Windows/spice/examples/numparam/pintest.cir
@@ -0,0 +1,32 @@
+* Test circuit for pin.mod
+
+*.include C:\Spice\tests\numparam\pin.mod
+.include pin.mod
+
+* Photodiode supply
+Vbias psu 0 10V
+
+* Light input is modeled by a voltage source that we can vary
+Vlight input 0 2mW
+
+* The pin diode
+Xpin input cathode anode SIMPLE_PIN resp=0.7
+
+* monitor resistor
+Rmon anode 0 1ohm
+
+* Quench restistor
+Rq psu cathode 1k
+
+*.dc vlight 0 5mW 0.01mW
+
+.dc vlight 0 10mW 0.01mW
+
+.control
+dc vlight 0 10mW 0.01mW
+*write pintest.raw all
+plot V(anode)
+.endc
+
+.end
+