2005-04-17 00:45:32 +02:00
|
|
|
* Test circuit for pin.mod
|
|
|
|
|
|
2008-06-14 17:09:20 +02:00
|
|
|
*.include C:\Spice\tests\numparam\pin.mod
|
2005-04-17 00:45:32 +02:00
|
|
|
.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
|
2008-06-14 17:09:20 +02:00
|
|
|
Xpin input cathode anode SIMPLE_PIN resp=0.7
|
2005-04-17 00:45:32 +02:00
|
|
|
|
|
|
|
|
* monitor resistor
|
|
|
|
|
Rmon anode 0 1ohm
|
|
|
|
|
|
|
|
|
|
* Quench restistor
|
|
|
|
|
Rq psu cathode 1k
|
|
|
|
|
|
|
|
|
|
*.dc vlight 0 5mW 0.01mW
|
|
|
|
|
|
2008-06-14 17:09:20 +02:00
|
|
|
.dc vlight 0 10mW 0.01mW
|
|
|
|
|
|
2005-04-17 00:45:32 +02:00
|
|
|
.control
|
|
|
|
|
dc vlight 0 10mW 0.01mW
|
2008-06-14 17:09:20 +02:00
|
|
|
*write pintest.raw all
|
2005-04-17 00:45:32 +02:00
|
|
|
plot V(anode)
|
|
|
|
|
.endc
|
|
|
|
|
|
|
|
|
|
.end
|
|
|
|
|
|