Subversion Repositories Electronics.Rangefider

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 florent_ba 1
.SUBCKT p_type_laser_diode A K OPTW PARAMS: seff=0.85 ith=450m rs=0.1
2
 
3
 
4
*voltage source to measure diode current
5
VIMEAS LA ANODE DC 0
6
DLASER ANODE LK diode_basic
7
 
8
*Optical power from ABM source
9
*Use of softplus function for fully continuous model
10
*BVOPT OPTW 0 V = { (seff/646) * ln(1 + exp(646*(I(VIMEAS) - ith * exp((temp - 27)/100) )) ) }
11
BVOPT OPTW 0 V = {if(I(VIMEAS) - ith*exp((temp - 27)/100) - 0.5, seff*(I(VIMEAS) - ith*exp((temp - 27)/100)), 0)}
12
 
13
.model diode_basic D(RS={rs})
14
 
15
.ends