140 likes | 292 Views
PSpice code. EXAMPLE OF SIMPLE SWITCHING CIRCUIT * ************************* * ****SWITCH02.CIR****** * ************************* VS 1 0 DC 50 SW 1 2 11 0 SMOD D 0 2 DMOD L 2 3 1MH VO 3 0 DC 20
E N D
PSpice code EXAMPLE OF SIMPLE SWITCHING CIRCUIT * ************************* * ****SWITCH02.CIR****** * ************************* VS 1 0 DC 50 SW 1 2 11 0 SMOD D 0 2 DMOD L 2 3 1MH VO 3 0 DC 20 VCON 11 0 PULSE (-5 5 0 1NS 1NS 0.08MS 0.2MS) .MODEL SMOD VSWITCH (RON=0.01 ROFF=1E6) .MODEL DMOD D(N=1) .TRAN 5US 0.6MS 0MS 10US .PROBE .END Circuit representation of PSpice code
PSpice code SOLENOID DRIVE CIRCUIT ********************************** **********SDRIVE01************** ********************************** VCC 1 0 DC 90 VDU 1 2 AC 0 S1 2 3 5 0 SMOD D1 0 3 DMOD L 3 4 200MH S2 4 0 5 0 SMOD D2 4 2 DMOD VCON 5 0 PULSE(-10 10 0 1U 1U 10MS 100MS) .MODEL SMOD VSWITCH (RON=0.001) .MODEL DMOD D(N=0.002) .TRAN 0.1M 200MS .PROBE .END Circuit representation of PSpice code
PSpice code OPEN-LOOP BUCK CONVERTER ******************************* ******* TOBUCK01 ********** ******************************* VS 1 0 DC 50 SW 1 2 11 0 SMOD VCON 11 0 PULSE (-5 5 0 1NS 1NS 50US 100US) D 0 2 DMOD L 2 3 1MH IC=0 C 3 0 100UF IC=0 R 3 0 4 .MODEL SMOD VSWITCH (RON=0.01 ROFF=1E6) .MODEL DMOD D (N=1) .TRAN 5US 5MS UIC .PROBE .END Circuit representation of PSpice code
Circuit representation of PSpice code