Subversion Repositories Electronics.Rangefider

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

*Increase mdl_k ->> Decrease mdl_kdisc ! Bad discontinuitites otherwise
.SUBCKT p_type_laser_diode LA LK MA MK OPTW PARAMS: seff=0.8 ith=15m cjo=16p pmdsens=1.3u mdl_k=22 mdl_kdisc=5.92


*voltage source to measure diode current
VIMEAS LA ANODE DC 0
DLASER ANODE LK diode_basic

*Optical power from ABM source
*Use of softplus function for fully continuous model
*2.66 is the value of the exp. temperature factor at 125°C
*BVOPT OPTW 0 V = { (seff/mdl_k) * ln(1 + exp(mdl_k*(I(VIMEAS) - ith * exp((temp - 27)/100) )) ) }

BVOPT OPTW 0 V = if(I(VIMEAS) - mdl_kdisc*ith - 0.5, 
+seff*(I(VIMEAS) - ith*exp((temp - 27)/100)),
+(seff/mdl_k) * ln(1 + exp(mdl_k*(I(VIMEAS) - ith * exp((temp - 27)/100) )) ))
*Monitor photodiode basic model
*including junction capacitance vatiation Vs reverse bias
DMONITOR  MA CAT dhigh_juncvar
RSH  MA CAT 5e9
RS CAT MK 20


*Flow -->>m
GPH CAT MA OPTW 0 {pmdsens}

.model dhigh_juncvar D(CJO={cjo})
.model diode_basic D(RS=0.1)

.ends