summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/numparam/pin.mod
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/pin.mod
parentd9ab84106cac311d953f344386fef1c1e2bca1cf (diff)
downloadeSim-246319682f60293b132fca1ce6e24689c6682617.tar.gz
eSim-246319682f60293b132fca1ce6e24689c6682617.tar.bz2
eSim-246319682f60293b132fca1ce6e24689c6682617.zip
initial commit
Diffstat (limited to 'Windows/spice/examples/numparam/pin.mod')
-rw-r--r--Windows/spice/examples/numparam/pin.mod33
1 files changed, 33 insertions, 0 deletions
diff --git a/Windows/spice/examples/numparam/pin.mod b/Windows/spice/examples/numparam/pin.mod
new file mode 100644
index 00000000..b035cd2f
--- /dev/null
+++ b/Windows/spice/examples/numparam/pin.mod
@@ -0,0 +1,33 @@
+* PIN model
+* line 2
+* line 3
+* -- Summary -------------------------------
+* This is a simple spice model of a PIN diode.
+*
+* -- Description ---------------------------
+* It is a three node device; one input node (relative to ground) and two
+* output nodes (cathode and anode)
+*
+
+* -- Model ----------------------------------
+.subckt SIMPLE_PIN input cathode anode resp=0.5
+
+* Input photocurrent is modled by a voltage
+* This generates a current using a linear voltage-controlled current source
+Gin dk da input 0 {resp}
+Rin input 0 1G
+Cin input 0 {resp}
+
+* The pn-junction that generates this photocurrent in the real device is modelled
+* here by a simple diode
+Dpn da dk pndiode
+
+* terminal resistances
+Ra anode da 0.001ohm
+Rk cathode dk 0.001ohm
+
+* subsircuit models:
+.MODEL pndiode D IS=0.974p RS=0.1 N=1.986196 BV=7.1 IBV=0.1n
++ CJO=99.2p VJ=0.455536 M=0.418717 TT=500n
+
+.ends