ngspice/examples/numparam/pintest.cir

33 lines
491 B
Plaintext
Raw Normal View History

* Test circuit for pin.mod
2008-06-14 17:09:20 +02:00
*.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
2008-06-14 17:09:20 +02:00
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
2008-06-14 17:09:20 +02:00
.dc vlight 0 10mW 0.01mW
.control
dc vlight 0 10mW 0.01mW
2008-06-14 17:09:20 +02:00
*write pintest.raw all
plot V(anode)
.endc
.end