summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/numparam/pintest.cir
blob: 80702e142f3ddf31335a2e7543f628be1a64c917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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