TP n01 Simulation Tool
TP n01 Simulation Tool
4/4
Zerdoumi rahma
Chebbi sabrine 2
sekak aicha
I. Objective:
• Introduction to the simulator PSPICE.
• Study in a static regime.
1 1 R3 3
1k
R2
500 Vs
I1 R1 C1
2
4mA 800 33 n
V1
30 V
1. Write the netlist describing the circuit in Figure 1.
Pspice simulation of fundamental circuits
*.LIB
R1 1 0 800
R2 1 2 500
R3 1 3 1k
c1 3 0 33n
I1 0 1 DC 4m
V1 2 0 DC 30
.end
2. Perform a DC operating point simulation (by using the command .OP) to record the values of
voltages V(1) and V(3).
*.LIB
R1 1 0 800
R2 1 2 500
R3 1 3 1k
c1 3 0 33n
I1 0 1 DC 4m
V1 2 0 DC 30
*commands
.op
.end
2
3. Perform a continuous simulation (by using the command .dc) on V1 from 0 to 30 and plot the
voltages V(1) and V(3) as function of V1.
*.LIB
R1 1 0 800
R2 1 2 500
R3 1 3 1k
c1 3 0 33n ic=0
I1 0 1 DC 4m
V1 2 0 DC 30
*commands
.op
.dc V1 0 30 0.5
.probe
.end
And : b = 1.2308 mv
5. By using the command .TF, find the value of the equivalent resistance Req and the Thevenin
voltage source Vth to form the Thevenin equivalent circuit seen between the nodes 3 and 0
(External to C1).
*.LIB
R1 1 0 800 .la valeur de Vth est :Vth = v(open circuit )= V(3) = 19v
c1 3 0 33n
I1 0 1 dc 4m
V1 2 0 dc 30
*commands
.op
.TF v(3)v1
.end
6. It is assumed that the capacity is initially discharged. V1=30V and I1=4mA. Perform a transient
simulation using the command .Tran, specifying the time scale and time step in accordance with
the theoretical analysis conducted.
R1 1 0 800
R2 1 2 500
R3 1 3 1k
c1 3 0 33n ic =0
I1 0 1 dc 4m
V1 2 0 dc 30
*commands
.op
.tran 1u 4m 0 1u
.probe
.end
7. Plot the simulated curve and record the remarkable values of Vs(t). find the final voltage and the
constant of the capacity charge time τ.
Vth C1
33 n
0
Figure.2: Thevenin equivalent circuit
8. If we replace Vth by a square wave signal “PULSE source” with an amplitude of 5V, visualize and
plot the charging and discharging voltage of the capacitance V C for four periods (at different
frequencies:1KHz, 10KHz and 20KHz).
I. For F =1KHZ :
5
Pspice simulation of fundamental circuits
*.LIB
rth 1 2 1.3087E+03
c1 2 0 33n ic=0
vth 1 0 pulse (0 5 1f 1f 1f 0.5m 1m) ; for F= 1KHZ
*commands
.op
.tran 1u 4m 0 1u ; for four period
.probe
.end
6
Pspice simulation of fundamental circuits
*.LIB
rth 1 2 1.3087E+03
c1 2 0 33n ic=0
vth 1 0 pulse (0 5 1f 1f 1f 25u 50u) ; for F= 20KHZ
*commands
.op
.tran 1u 200u ; for four period
.probe
.end
9. If we replace Vth by sinusoidal signal Ve=5sin(2π×f×t), visualize and compare the voltages Vc to Ve
for two periods at various frequencies 100Hz, 3.7KHz and 10KHz
V C ( V) 5v 3.4708v 1.7287v
*.LIB
rth 1 2 1308
7
c1 2 0 33n ic=0
*commands
.tran 1u 40m
.probe
.end
*.LIB
rth 1 2 1308
c1 2 0 33n ic=0
*commands
.tran 1u 1m
.probe
.end
8
*.LIB
rth 1 2 1308
c1 2 0 33n ic=0
*commands
.tran 1u 10m 0 1u
.probe
.end
10. Plot the transfer function curves (magnitude(dB) and phase(°))using the command .AC.
*.LIB
Rth 1 2 1.3087E+03
c1 2 0 33n ic=0
*commands
.probe
.end
12. Interpret the all the simulation results and draw conclusions.
9
Simulation can be used to predict the performance of an existing or planned system .
like we have seen in this practical work , we have used simulation tools to analysis that circuit and
know the currents and voltages as well as transfert function and plot graphs ...etc . it's very helpful
because it diminuate the time of theoric analysis and it gives us a precise values .
in addition we found that there are commands that can make the things easier , for example
instead of using many commands and calculate we can use one command that can do All the
work and gives us the results.
10
11