LAB02 Extras
LAB02 Extras
LAB02 Extras
******************************************************************************
*Libraries:
* Local Libraries :
.LIB ".\scr_subckt.lib"
.LIB ".\thy_trig_subckt.lib"
* From [PSPICE NETLIST] section of pspice.ini file:
.lib "nom.lib"
*Analysis directives:
.TRAN 0 50ms 0 50us SKIPBP
.OPTIONS ABSTOL= 1.0u
.OPTIONS GMIN= 1u
.OPTIONS ITL1= 400
.OPTIONS ITL4= 100
.PROBE
*Netlist File:
.INC "thyrect1-SCHEMATIC1.net"
*Alias File:
* source SCR_SUBCKT
*$
.SUBCKT SCR_SUBCKT A G K params: state=0
H_H1 0 N00261 VH_H1 1
VH_H1 N00111 K 0V
d_D1 N000032, N00111, mod_D1
.model mod_D1 d (rs=1m)
s_S1 A,N000032,N00096,0, mod_S1
.model mod_S1 vswitch (ron=1m]
R_Rg G N00073 1.0
R_R1 N00076 N00261 1.0
C_C3 N00076 0 1uF
C_Cg N00073 0 1uF IC={state}
E_E1 N00096 0 TABLE { V(N00073, N00076) }
+ ( (-1.0,0) (0,0) (0.1,1) (1,1) )
.ENDS SCR_SUBCKT
*$
* source THY_TRIG_SUBCKT
*$
.SUBCKT THY_TRIG_SUBCKT c p v params: f=60
E_ABM1 N00062 0 VALUE { IF(V(V)>0,1,-5) }
E_ABM2 N00323 0 VALUE { IF(V(V)>0|V(N00073)>0,V(N00062),0) }
G_INTEG1 0 $$U_INTEG1 VALUE {V(N00323)}
C_INTEG1 $$U_INTEG1 0 {1/{2*f}}
R_INTEG1 $$U_INTEG1 0 1G
E_INTEG1 N00073 0 VALUE {V($$U_INTEG1)}
.IC V($$U_INTEG1) = 0v
E_ABM3 N00117 0 VALUE { IF(V(N00073)>V(C),1,0) }
E_ABM4 P 0 VALUE { IF(V(N00117)>0 & V(N00129)<0.5 , 1 ,0) }
R_R1 N00117 N00129 5k
C_C1 N00129 0 100nF
.ENDS THY_TRIG_SUBCKT
*$
******************************************************************************
X_SCR_SUBCKT1.mod_D1
IS 10.000000E-15
RS 1.000000E-03
X_SCR_SUBCKT2.mod_D1
IS 10.000000E-15
RS 1.000000E-03
X_SCR_SUBCKT3.mod_D1
IS 10.000000E-15
RS 1.000000E-03
X_SCR_SUBCKT4.mod_D1
IS 10.000000E-15
RS 1.000000E-03
**** 04/08/08 11:42:48 ********* PSpice 9.0 (Nov 1998) ******** ID# 0 ********
******************************************************************************
X_SCR_SUBCKT1.mod_S1
RON 1.000000E-03
ROFF 1.000000E+06
VON 1
VOFF 0
X_SCR_SUBCKT2.mod_S1
RON 1.000000E-03
ROFF 1.000000E+06
VON 1
VOFF 0
X_SCR_SUBCKT3.mod_S1
RON 1.000000E-03
ROFF 1.000000E+06
VON 1
VOFF 0
X_SCR_SUBCKT4.mod_S1
RON 1.000000E-03
ROFF 1.000000E+06
VON 1
VOFF 0
JOB CONCLUDED