Sei sulla pagina 1di 14

Workshop on PSPICE

Phase 2: Electronic circuit simulation using


classical code based PSPICE
Engr. Dr. Hadeed Ahmed Sher, PhD
Assistant Professor, EED
KFUEIT, Pakistan

EEDKFUEIT

Monday, January 02, 2017

Contents

Modeling a semiconductor
Example 1 : Half wave rectifier
Example 2 : Full wave 3 phase rectifier
Example 3 : BJT based buck converter
Practice problem

Dr.Sher
2

Modeling a semiconductor
It is essential to explain the model of a
semiconductor used.
<.model><device name><model parameters>
For an ideal diode the model parameters is
defined as D.
For a transistor
<name><nodes><Controlling nodes>

Dr.Sher
3

Example 1: Simulation of Half wave


rectifier
Simulate a half wave rectifier with a resistive
load. Vs=220V 50Hz R=100 ohm. Ideal diode

Dr.Sher
4

Example 1: Simulation of Half wave


rectifier (Cont..)
Vs 1 0 SIN (0 312 50) ; AC source
R1 3 0 100
Vx 2 3 DC 0 ; Current measurement
D1 1 2 DMOD
.model DMOD D ; Ideal Diode model
.tran 10u 60m ; Time domain analysis <timestep><total time for analysis>
.four 50 I(Vx) ; Fourier analysis @ 50Hz fund. freq.
.probe ; Graphic post processor. Oscilloscope
.end
Dr.Sher
5

Example 1: Simulation of Half wave


rectifier (Cont..)

Dr.Sher
6

Example 2: Full wave 3 rectifier


Plot Ian , Iload and three phase input and VL

Dr.Sher
7

Example 2: Full wave 3 rectifier


(Cont..)
3 phase rectifier
Van 1 0 SIN (0 312 50)
Vbn 7 0 SIN (0 312 50 0 0 120)
Vcn 8 0 SIN (0 312 50 0 0 240)
R1 3 4 2.5
L1 4 5 1.5m
Vx 5 6 DC 0
Vy 1 2 DC 0
D1 2 3 DMOD
D3 7 3 DMOD
D5 8 3 DMOD
D2 6 8 DMOD
D4 6 2 DMOD
D6 6 7 DMOD
.model DMOD D
.Tran 10u 60m
.probe
.end

Dr.Sher
8

Example 2: Full wave 3 rectifier


(Cont..)

Dr.Sher
9

Example 3 : BJT based BUCK converter

Dr.Sher
10

Example 3 : BJT based BUCK converter


PULSE (V1 V2 TD TR TF PW PER)

Dr.Sher
11

Example 3 : BJT based BUCK converter


(Cont..)

Dr.Sher

Buck converter
VS 1 0 DC 12V
VY 1 2 DC 0V ; Voltage source to measure input current
Vg 7 3 PULSE (0V 30V 0 0.1NS 0.1NS 16.7US 40US)
RB 7 6 250 ; Transistor base resistance
R455
L 3 4 145.8UH
C 4 0 200UF IC=0V ; Initial voltage
VX 5 0 DC 0V ; To measure load current
DM 0 3 DMOD ; Freewheeling diode
.MODEL DMOD D(IS=2.22E-15 BV=1200V CJO=0 TT=0)
Q1 2 6 3 3 2N6546 ; BJT switch
.MODEL 2N6546 NPN (IS=6.83E-14 BF=13 CJE=1PF CJC=607.3PF TF=26.5NS)
.TRAN 0.1US 2.1MS 2MS UIC ; Transient analysis
.PROBE ; Graphics post-processor
.OPTIONS ABSTOL = 1.00N RELTOL = 0.01 VNTOL = 0.1 ITL5 = 40000
.FOUR 25KHZ I(VY) ; Fourier analysis
.END
12

Example 3 : BJT based BUCK converter


(Cont..)

Dr.Sher
13

Practice problems
Simulate a full wave rectifier with a
freewheeling diode and source inductance.
Assume the load to be highly inductive.

Dr.Sher
14

Potrebbero piacerti anche