Посмотри модель VCO_tri в библиотеке anl_misс (OrCAD PSpice). *************** .subckt vco_tri in out Params: Fcenter=1k Frange=50 Vmin=1 Vmax=5 +phase=0
Rin in 0 1G Rtable table 0 1G
Etable table 0 Value {Table(V(in),Vmin,-1,Vmax,1)}
Esin sine 0 +Value {sin(6.28318*(Fcenter*time+Frange*SDT(V(table)))+phase*(3.14159/180))}
Esqr sqr 0 Value {SGN(v(sine))}
Eintg out 0 Value {SDT(V(sqr)*2*V(freq))}
*gain calculation used in Eintg Efreq freq 0 Value {Table(V(in),Vmin,Fcenter-Frange,Vmax,Fcenter+Frange)} Rfreq Freq 0 1G
.ends
* Ideal Center-tapped Transformer Models
|