2. INDEX
S No. CONTENT Page No.
1. Syllabus
3
2. Do’s & Don’ts
4
3. Instructions to the Students 5
4. Lab PEO 6
5. Lab Plan 12
Experiment as per RTU Syllabus
6. Exp-1 Draw the circuit symbols. 13
7. Exp-2 Verify the Thevenin’s and Super position Theorems
for dc circuits.
16
8.
Exp-3 (a) Write a C Program to Compute Resistance of a
Conductor, Resistivity, Length and area are given.
(b)Write a C program to Compute Change in Resistance of a
Conductor , initial & final temp, Temp coefficient and initial
resistance is given.
21
9. Exp-4 Write a C Program to convert (a) a Star resistive
network in Delta Resistive Network (b) a Delta resistive
network in Star Resistive Network.
25
10.
Exp-5 Write a C program to Compute DC Analysis of a
Resistive network to determine all branch currents and voltage
drop across resistances.
30
11. Exp-6 Write a C program to Compute Transient Analysis of a
RL Series And RC Series network to produce table of
components voltages & currents level for a given set of time
instants.
34
ROTOR # 2
13.
Exp-7 Introduction of PSPICE Programming.
14. Exp-8 Write a PSPICE Program for DC-analysis of resistor 53
2
3. networks to determine node voltages, components voltages,
and component currents.
15.
Exp-9 Write a PSPICE Program for AC-analysis of resistor
networks that have several voltage sources.
60
16.
Exp-10 Write a PSPICE Program for Transient –analyze of
RC & RL circuits to produce tables of component voltage &
current levels for a given set of time instants & to produce
graphs of voltages & currents versus time.
66
17.
Exp-11 Write a PSPICE Program for AC-analyze of
impedance networks to determine the magnitude & phase of
node voltages, components voltages and component currents.
74
18.
Exp-12 Write a PSPICE Program to determine the magnitude
& phase of component voltages and currents in resonant
circuits.
Experiment Beyond Syllabus
19.
Exp-13 Write a PSPICE Program for AC-analyze of
impedance networks to determine the magnitude, phase, real &
phase of node voltages, components voltages and component
currents.
81
3
4. Detailed Syllabus
Class: III Sem. B.Tech. Evaluation
Branch: E.E
Schedule per Week
Practical Hrs : 2 hr/week
Examination Time = Three (2) Hours
Maximum Marks = 50
[Sessional (30) & End-term (20)]
S. No. List of Experiments as per RTU Syllabus
1. Draw the circuit symbols.
2. Verify theorems for A. C. & D. C. circuits.
PSPICE PROGRAMS FOR CIRCUIT ANALYSIS:
3. DC-analysis resistor networks to determine node voltages, components
voltages, and component currents.
4. Analyze resistor networks that have several voltage and current
sources and variable load resistors
5. Transient –analyze RC & RL circuits to produce tables of component voltage
& current levels for a given set of time instants & to produce graphs of
voltages & currents versus time.
6. AC-analyze impedance networks to determine the magnitude & phase of
node voltages, components voltages and component currents.
7. Determine the magnitude & phase and component voltages and currents in
resonant circuits & produce voltage and current v/s frequency graphs.
PROGRAMS FOR CIRCUIT ANALYSIS:
8. Calculate the resistance of a conductor
9. D.C.-analyze resistor networks to determine all junction voltages
10. Transient –analyze RC & RL circuits to produce tables of component voltage
& current levels for a given set of time instants.
11. Convert Y-connected resistor networks to delta-connected circuits.
List of Experiments Beyond Syllabus
12. Write a PSPICE Program for AC-analyze of impedance networks to
determine the magnitude, phase, real & phase of node voltages, components
voltages and component currents.
4
5. LAB ETHICS
DO’s
1. Enter the lab on time and leave at proper time.
2. Keep the bags outside in the racks.
3. Utilize lab hours in the corresponding experiment.
4. Shut down the computers before leaving the lab.
5. Maintain the decorum of the lab.
Don’ts
1. Don’t bring any external material in the lab.
2. Don’t make noise in the lab.
3. Don’t bring the mobile in the lab. If extremely necessary then keep ringers off.
4. Don’t enter in server room without permission of lab incharge.
5. Don’t litter in the lab.
6. Don’t delete or make any modification in system files.
7. Don’t carry any lab equipments outside the lab
We need your full support and cooperation for smooth functioning of the lab.
5
6. INSTRUCTIONS
BEFORE ENTERING IN THE LAB
1. All the students are supposed to prepare the theory regarding the next
program.
2. Students are supposed to bring the practical file and the lab copy.
3. Previous program should be written in the practical file.
4. Algorithm & Program of the current program should be written in the lab
copy.
5. Any student not following these instructions will be denied entry in the lab and
Sessional Marks will be affected.
WHILE WORKING IN THE LAB
1. Adhere to experimental schedule as instructed by the faculty.
2. Get the previously executed program signed by the faculty.
3. Get the output of current program checked by the faculty in the lab copy.
4. Each student should work on his assigned computer at each turn of the lab.
5. Take responsibility of valuable accessories.
6. Concentrate on the assigned practical and don’t play games.
7. If anyone is caught red-handed carrying any equipment of the lab, then he will
have to face serious consequences.
Lab Plan
6
7. 1.Single computer is allotted to each student.
2. Each experiment number is scheduled as per turn.
ROTOR # 1
Turn
Exp No
1 2 3 4 5 6
1 √
2 √
3 √
4 √
5 √
6 √
ROTOR # 2
Turn
Exp No
7 8 9 10 11 12 13
7 √
8 √
9 √
10 √
11 √
12 √
13 √
7
8. EXPERIMENT # 1
OBJECT: Make Circuit Symbols
THEORY: Some basic symbols are –
Sr.
No.
COMPONENTS SYMBOLS
DESCRIPTION
1. RESISTOR
A resistor is a two-terminal electrical or
electronic component that resists an electric
current by producing a voltage drop between
its terminals in R= V/I accordance with Ohm's
law: The electrical resistance is equal to the
voltage drop across the resistor divided by the
current through the resistor
2.
VARIABLE
RESISTOR
Variable resistors consist of a resistance track
with connections at both ends and a wiper
which moves along the track as you turn the
spindle
3.
CAPACITOR
A capacitor is an electrical device that can
store energy in the electric field between a pair
of closely spaced conductors (called 'plates').
When current is applied to the capacitor,
electric charges of equal magnitude, but
opposite polarity, build up on each plate.
4
ELECTROLYTIC
CAPACITOR
An electrolytic capacitor is a type of capacitor
typically with a larger capacitance per unit
volume than other types, making them valuable
in relatively high-current and low-frequency
electrical circuits
5
INDUCTOR
An inductor is a passive electronic component
that stores energy in the form of a magnetic
field. In its simplest form, an inductor consists
of a wire loop or coil
6 TRANSFORMER
A transformer is a device that transfers
electrical energy from one circuit to another
through a shared magnetic field.
7 MOTOR
An electric motor converts electrical energy
into mechanical energy. The reverse process,
that of converting mechanical energy into
electrical energy, is accomplished by a
generator or dynamo.
8
VOLTMETER
A voltmeter is an instrument used for
measuring the electrical potential difference
between two points in an electric circuit
Sr.
No.
COMPONENTS SYMBOLS
DESCRIPTION
8
9. 9
AMMETER
An ammeter is a measuring instrument used to
measure the flow of electric current in a circuit.
Electric currents are measured in amperes,
hence the name.
10
WATTMETER The Wattmeter is an instrument for measuring
the electric power or the supply rate of
electrical energy (Watts) of any given circuit.
11
BATTERY
A galvanic cell is an electrochemical cell that
stores chemical energy and makes it available
in an electrical form, and a battery is a string
of two or more cells in series. Other types of
electrochemical cell include electrolytic cells,
fuel cells, flow cells, or voltaic cells.
12 FUSE
In electronics and electrical engineering a fuse,
short for 'fusible link', is a type of overcurrent
protection device. Its essential component is a
metal wire or strip that melts when too much
current flows.
13 SWITCH
A switch is a device for changing the course
(or flow) of a circuit.
14
EARTH To represent zero potentail
15
WIRES (JOINED) Electric wiring (joined) connects one part of
the circuit to the other.
16
WIRES (NOT
JOINED)
Electric wiring (not joined) isolates one part
of the circuit from the other.
17 D C SUPPLY
A D. C. supply is a fixed supply voltage with
no ripples.
18
SINGLE PHASE
A C SUPPLY
2 wire supply system having 1 phase and one
neutral wire at a fixed frequency of supply
votage
19
3 PHASE AC
SUPPLY
3 phases each having a 120 phase shift with
the other at a fixed frequency.
Sr.
No.
COMPONENTS SYMBOLS
DESCRIPTION
20
SPST Toggle
Switch
Disconnects current when open
21
SPDT Toggle
Switch Selects between two connections
9
10. 22
Pushbutton Switch
(N.O)
Momentary switch - normally open
23
Pushbutton Switch
(N.C)
Momentary switch - normally closed
24
Controlled
Voltage Source
Generates voltage as a function of voltage or
current of other circuit element.
25
Controlled Current
Source
Generates current as a function of voltage or
current of other circuit element.
26
NPN Bipolar
Transistor
Allows current flow when high potential at
base (middle)
27
PNP Bipolar
Transistor
Allows current flow when low potential at base
(middle)
28 Darlington
Transistor
Made from 2 bipolar transistors. Has total gain
of the product of each gain.
29 JFET-N Transistor N-channel field effect transistor
30
JFET-P Transistor P-channel field effect transistor
31 NMOS Transistor N-channel MOSFET transistor
32 PMOS Transistor P-channel MOSFET transistor
33 Diode
Diode allows current flow in one direction only
- left (anode) to right (cathode).
Sr.
No.
COMPONENTS SYMBOLS
DESCRIPTION
34 Zener Diode
Allows current flow in one direction, but also
can flow in the reverse direction when above
breakdown voltage
35
Varactor / Varicap
Diode
Variable capacitance diode
36 Schottky Diode
Schottky diode is a diode with low voltage
drop
10
11. 37
Light Emitting
Diode (LED)
LED emits light when current flows through
38 Photodiode
Photodiode allows current flow when exposed
to light
39
Optocoupler /
Opto-isolator
Optocoupler isolates connection to other board
40 Loudspeaker Converts electrical signal to sound waves
41 Microphone Converts sound waves to electrical signal
42
Operational
Amplifier
Amplify input signal
43 Schmitt Trigger Operates with hysteresis to reduce noise.
44
Analog-to-digital
converter (ADC)
Converts analog signal to digital numbers
45
Digital-to-Analog
converter (DAC)
Converts digital numbers to analog signal
46 Crystal Oscillator
Used to generate precise frequency clock
signal
RESULT:
Study of electrical symbols has been done successfully.
11
12. EXPERIMENT # 2
OBJECT: Verify the Thevenin’s and Super position Theorems for dc circuits.
THEORY:
THEVENIN'S THEOREM
Thevenin's Theorem states that it is possible to simplify any linear circuit, no matter how complex,
to an equivalent circuit with just a single voltage source and series resistance connected to a load.
Thevenin's Theorem is especially useful in analyzing power systems and other circuits where one
particular resistor in the circuit (called the “load” resistor) is subject to change, and re-calculation
of the circuit is necessary with each trial value of load resistance, to determine voltage across it
and current through it.
Example: find the voltage across R2
Fig.2.1
Thevenin's Theorem makes this easy by temporarily removing the load resistance from the original
circuit and reducing what's left to an equivalent circuit composed of a single voltage source and
series resistance. The load resistance can then be re-connected to this “Thevenin equivalent
circuit” and calculations carried out as if the whole network were nothing but a simple series
circuit.
Fig.2.2
First, the chosen load resistor is removed from the original circuit, replaced with a break (open
circuit):
Fig.2.3
Voltage between the two points where the load resistor used to be attached is –
12
13. Fig.2.4
Thevenin voltage” (EThevenin) in the equivalent circuit = 11.2 volts
Thevenin series resistance- With the removal of the two batteries, the total resistance measured at
this location is equal to R1 and R3 in parallel: 0.8 Ω. This is our “Thevenin resistance” (RThevenin) for
the equivalent circuit
Fig.2.5
Now current through R2
I= Eth/(Rth + R2) = 11.2/2.8 = 4 amp
Voltage across R2 is : I x R2 = 8Volts
SUPERPOSITION THEOREM:
The strategy used in the Superposition Theorem is to eliminate all but one source of power within
a network at a time, using series/parallel analysis to determine voltage drops (and/or currents)
within the modified network for each power source separately. Then, once voltage drops and/or
currents have been determined for each power source working separately, the values are all
“superimposed” on top of each other (added algebraically) to find the actual voltage drops/current
with all sources active.
Fig.2.6
Case (i) Consider 28 V source only
13
14. Fig.2.7
Case (ii)Consider 7 volt battery -
Fig.2.8
When re-drawing the circuit for series/parallel analysis with one source, all other voltage sources
are replaced by wires (shorts), and all current sources with open circuits (breaks). Since we only
have voltage sources (batteries) in our example circuit, we will replace every inactive source
during analysis with a wire.
When superimposing these values of voltage and current, we have to be very careful to consider
polarity (voltage drop) and direction (electron flow), as the values have to be added algebraically.
Fig.2.9
Applying these superimposed voltage figures to the circuit; the end result looks something like
this:
Fig.2.10
RESULT:
14
15. The voltage across R2 is 8 volt is proved by thevenin’s and super position theorems.
EXPERIMENT # 3
15
16. OBJECT: (a)Write a C Program to Compute Resistance of a Conductor,
Resistivity, Length and area is given.
(b) Write a C program to Compute Change in Resistance of a Conductor,initial
& final temp, Temp coefficient and initial resistance is given.
THEORY:
(a) Resistance of a conductor is
R = . L/a
Where R = Resistance of a conductor in ohm
= Resistivity of conductor in ohm-m
l = Length of a conductor in m
a = Area of cross section of conductor in m2
(b) Resistance of a conductor at temperature t1 & t2
o
C are
R1=R0 (1+ t1)
& R2=R0 (1+ t2)
R1 & R2=Resistance of conductor at temp t1 & t2
o
C
R0 =Resistance of conductor at temp 0o
C
= Temp coefficient of material in / o
C
Change in Resistance is ∆R= R1 - R2
PROGRAM : (A)
#include<stdio.h>
#include<conio.h>
void main( )
{
float r,l,a,res;
clrscr( );
printf("n ENTER LENGTH OF RESISTANCE IN mtr: ");
scanf("%f",&l);
printf("n ENTER AREA OF RESISTANCE mtr² : ");
scanf("%f",&a);
printf("n ENTER RESISTIVITY OF RESISTANCE Ω-mtr: ");
scanf("%f",&res);
r=res*l/a;
16
17. printf("nRESISTANCE = %f Ω",r);
getch( );
}
OUTPUT: ENTER LENGTH OF RESISTANCE IN mtr 1
ENTER AREA OF RESISTANCE mtr² : 0.2
ENTER RESISTIVITY OF RESISTANCE Ω-mtr : 0.2
RESISTANCE = 1 Ω
PROGRAM: (B)
#include<stdio.h>
#include<conio.h>
void main()
{
float r0,r1,r2,t1,t2,coff;
clrscr( );
printf("n ENTER VALUE OF TEMPRATURE COFF.(α) IN Ω/°cel : ");
scanf("%f",& coff);
printf("nENTER RESISTANCE AT 0°celcius IN Ω : ");
scanf("%f",&r0);
printf("nENTER INITIAL TEMPRATURE IN °celcius : ");
scanf("%f",&t1);
printf("nENTER FINAL TEMPRATURE IN °celcius : ");
scanf("%f",&t2);
r1=r0*(1+coff*t1);
r2=r0*(1+coff*t2);
printf("nINITIAL RESISTANCE = %f Ω",r1);
printf("nFINAL RESISTANCE = %f Ω",r2);
printf("nCHANGE IN RESISTANCE = %f Ω",r2-r1);
getch( );
}
OUTPUT: ENTER VALUE OF TEMPRATURE COFF.(α) IN Ω/°cel : 0.01
ENTER RESISTANCE AT 0°celcius IN Ω : 20
ENTER INITIAL TEMPRATURE IN °Celsius: 0
ENTER FINAL TEMPRATURE IN °Celsius: 20
INITIAL RESISTANCE = 20.000 Ω
FINAL RESISTANCE = 24.000 Ω
CHANGE IN RESISTANCE = 4.000 Ω
17
18. RESULT:
Hence we made C program for calculation of resistance for -
(i) Resistance for a conductor for given area, length and Resistivity;
(ii) Change in resistance for given temperature.
EXPERIMENT # 4
OBJECT: Write a C Program to convert
(a) a Star resistive network in Delta Resistive Network
(b) a Delta resistive network in Star Resistive Network
18
19. THEORY:
Fig.4.1 Delta Connection Fig.4.2 Star Connection
If resistance of star connection are RA, RB & RC and in delta RAB ,RAC & RBC then Conversion –
PROGRAM:
(A)STAR TO DELTA CONVERSION
#include<stdio.h>
#include<conio.h>
void main( )
19
20. {
float RA, RB , RC ,RAB ,RAC , RBC ;
clrscr( );
printf("enter the value of resistance RA:");
scanf("%f",& RA);
printf("enter the value of resistance RB:");
scanf("%f",& RB);
printf("enter the value of resistance RC:");
scanf("%f",& RC);
RAB= RA + RB + (RAx RB )/ RC;
RBC= RB + RC + (RBx RC )/ RA;
RAC= RA + RC + (RAx RC )/ RB;
printf("star to delta resistance RAB =%fn", RAB);
printf("star to delta resistance RBC =%fn", RBC);
printf("star to delta resistance RAC=%fn", RAC);
getch( );
}
(B) DELTA TO STAR CONVERSION
#include<stdio.h>
#include<conio.h>
void main( )
{
float RA, RB , RC ,RAB ,RAC , RBC,R;
printf("enter the value of resistance RAB ");
scanf("%f"&RAB);
printf("enter the value of resistance RBC ");
scanf("%f"&RBC);
printf("enter the value of resistance RAC ");
scanf("%f"&RAC);
R=RAB+RBC+RAC;
RA=(RAB*RAC)/R;
RB=(RBC*RAB)/R;
RC=(RAC*RBC)/R;
printf("delta to star resistance RA=%fn",RA);
20
21. printf("delta to star resistance RB=%fn",RB);
printf("delta to star resistance RC=%fn",RC);
getch( );
}
OUTPUT:
(A)STAR TO DELTA CONVERSION-
Enter the value of resistance RA: 2
Enter the value of resistance RB: 4
Enter the value of resistance RC: 6
Star to delta resistance RAB = 7.33
Star to delta resistance RBC = 22
Star to delta resistance RAC= 11
(B) DELTA TO STAR CONVERSION
Enter the value of resistance RAB = 7.33
Enter the value of resistance RBC = 22
Enter the value of resistance RAC = 11
Delta to star resistance RA = 2
Delta to star resistance RB = 4
Delta to star resistance RC = 6
RESULT:
Hence we make a C Program to convert
(i) a Star resistive network in Delta Resistive Network and
(ii) a Delta resistive network in Star Resistive Network
EXPERIMENT # 5
OBJECT: Write a C program to Compute DC Analysis of a Resistive network
to determine all branch currents and voltage drop across resistances.
THEORY: For following circuit
21
22. Fig. 5.1 Two mesh circuit
The mesh equations – (r1+r2) I1 +I2 r2 = V1-V2;
r2 I1 +(r2+r3) I2 = V3-V2;
In Matrix Form-
┌ (r1+r2) r2 ┐┌ I1 ┐ ┌ V1-V2 ┐
└ r2 (r2+r3) ┘└ I2 ┘ └ V3-V2┘
I1 = d1/d ; I2 = d2/d;
Where – d = | (r1+r2) r2 | d 1= | V1-V2 r2 | d 2= | (r1+r2) V1-V2 |
| r2 (r2+r3) | | V3-V2 (r2+r3) | | r2 V3-V2 |
Then Branch currents – for branch-1 I1; for branch-2 I1+I2; for branch-3 I2
Voltage drop across r1 = I1* r1;
Voltage drop across r2 = (I1+I2)* r2;
Voltage drop across r3 = I2* r3;
PROGRAM :
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float r1, r2,r3,v1,v2,v3,i1,i2,d1,d2,d;
float a[2][2],c[2];
clrscr ( );
printf("n ENTER VALUE OF RESISTANCE IN BRANCH 1 : ");
scanf("%f",&r1);
printf("n ENTER VALUE OF RESISTANCE IN BRANCH 2 : ");
scanf("%f",&r2);
printf("n ENTER VALUE OF RESISTANCE IN BRANCH 3 : ");
scanf("%f",&r3);
printf("n ENTER VALUE OF VOLTAGE IN BRANCH 1 : ");
scanf("%f",&v1);
printf("n ENTER VALUE OF VOLTAGE IN BRANCH 2 : ");
22
23. scanf("%f",&v2);
printf("n ENTER VALUE OF VOLTAGE IN BRANCH 3 : ");
scanf("%f",&v3);
a[0][0]=r1+r2;
a[0][1]=r2;
a[1][0]=r2;
a[1][1]=r2+r3;
c[0]=v1-v2;
c[1]=v3-v2;
printf("nt║%3.4f %3.4f║ ║i1 ║= ║%3.4f ║",a[0][0],a[0][1],c[0]);
printf("nt║%3.4f %3.4f║ ║i2 ║= ║%3.4f ║",a[1][0],a[1][1],c[1]);
d=(a[0][0]*a[1][1])-(a[0][1]*a[1][0]);
d1=(c[0]*a[1][1])-(a[0][1]*c[1]);
d2=(a[0][0]*c[1])-(c[0]*a[1][0]);
i1=d1/d;
i2=d2/d;
printf("nnt MESH CURRENTS AREnt MESH 1 = %3.4fntMESH 2 = %3.4f",i1,i2);
printf("nnt BRANCH CURRENTS AREnt BRANCH 1 = %3.4fntBRANCH 2 =
%3.4fntBRANCH 3 = %3.4f",i1,i1+i2,i2);
printf("nnt VOLTAGE DROP ACROSS :nttt BRANCH 1 = %3.4fntttBRANCH 2
= %3.4fntttBRANCH 3 = %3.4f",i1*r1,i1*r2+i2*r2,i2*r3);
getch( );
}
OUTPUT: ENTER VALUE OF RESISTANCE IN BRANCH 1 r1 = 2
ENTER VALUE OF RESISTANCE IN BRANCH 2 r2 = 4
ENTER VALUE OF RESISTANCE IN BRANCH 3 r3 = 2
ENTER VALUE OF VOLTAGE IN BRANCH 1 V1 = 10
ENTER VALUE OF VOLTAGE IN BRANCH 1 V2 = 0
ENTER VALUE OF VOLTAGE IN BRANCH 1 V3 = 10
║6 4 ║ ║i1 ║= ║10 ║
║4 6 ║ ║i2 ║= ║10 ║
MESH CURRENTS ARE
MESH I1 = 1.6667 Amp MESH I2 = 1.6667 Amp
23
24. BRANCH CURRENTS ARE
BRANCH 1 = 1.6667 Amp
BRANCH 2 = 3.3334 Amp
BRANCH 3 = 1.6667 Amp
VOLTAGE DROP ACROSS:
BRANCH 1 = 3.3334 Volt
BRANCH 2 = 13.3336 Volt
BRANCH 3 = 3.3334 Volt
RESULT: Hence we write a C program to Compute DC Analysis of a Resistive network for
two loop network to determine all branch currents and voltage drop across resistances.
EXPERIMENT # 6
OBJECT: Write a C program to Compute Transient Analysis of a RL Series
And RC Series network to produce table of components voltages & current
levels for a given set of time instants.
THEORY: Taking all initial conditions zero, For following R-L Series circuit –
i = V/R [1- exp(-R/L*t)]
VR= V [1- exp (-R/L*t)]
24
25. VL= V [exp (-R/L*t)]
Fig.6.1 Series RL circuit with DC source
Taking all initial conditions zero, For following R-C Series circuit –
i = V/R [ exp(-t/RC)]
VR= V [exp (-t/RC)]
VL= V [1 - exp (-t/RC)]
Fig.6.2 Series RC circuit with DC source
PROGRAM:
(I) ANALYSIS OF SERIES R-L CIRCUIT
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float V, R, X[15], L, i[15], VR[15], VL[15], t[15], A[15];
int j, n;
clrscr( );
printf("Enter the value of voltage & resistor V ,R");
scanf("%f%f",&V,&R);
25
26. printf("Enter the value of inductance in hennery L=");
scanf("%f",&L);
printf("Enter the value of no. of time division n=");
scanf("%d",&n);
for(j=1;j<=n;j++)
{
printf("Enter the value of time in sec t =");
scanf("%f",& t[j]);
X[j]=(R/L)*t[j];
A[j]=exp(-X[j]);
i[j]=(V/R)*(1-A[j]);
VR[j]=V*(1-A[j]);
VL[j]=V*A[j];
}
printf("t(sec) I(Amp) VR(Volt) VL(Volt)n");
for(j=1;j<n;j++)
{
printf("%ft%ft%ft%f",t[j],i[j],VR[j],VL[j]);
printf("n");
}
getch( );
}
(II) ANALYSIS OF SERIES R-C CIRCUIT
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float V, R, X[15], C, i[15], VR[15], Vc[15], t[15], A[15];
int j, n;
clrscr( );
printf("Enter the value of voltage & resistor V,R");
scanf("%f%f",&V,&R);
printf("Enter the value of Capacitance in Farad C=");
scanf("%f",&C);
26
27. printf("Enter the value of no. time:");
scanf("%d",&n);
for(j=1;j<=n;j++)
{
printf("Enter the value of t in Sec :");
scanf("%f",& t[j]);
X[j]= t[j]/(R*C);
A[j]=exp(-X[j]);
i[j]=(V/R)*(A[j]);
VR[j]=V*A[j];
Vc[j]=V*(1-A[j]);
}
printf("t (Sec) I(Amp) VR(Volt) Vc(Volt)n");
for(j=1;j<n;j++)
{
printf("%ft%ft%ft%f",t[j],i[j],VR[j],Vc[j]);
printf("n");
}
getch( );
}
OUT PUT: (I) ANALYSIS OF SERIES R-L CIRCUIT
Enter the value of voltage V=100
Enter the value of resistance in ohm R= 10
Enter the value of inductance in Henry L= 10
Enter the value of no. of time division n= 4
Enter the value of time t in sec = 0.0
Enter the value of time t in sec = 0.1
Enter the value of time t in sec = 0.2
Enter the value of time t in sec = 0.3
t(sec) I(Amp) VR(Volt) VL(Volt)
0.0 0.000 0.000 100.000
0.1 0.952 9.516 90.484
0.2 1.812 18.127 81.873
0.3 2.592 25.918 74.082
(II) ANALYSIS OF SERIES R-C CIRCUIT
Enter the value of voltage V=10
Enter the value of resistance in ohm R= 10
Enter the value of Capacitance in Farad C= 0.01
27
28. Enter the value of no. of time division n= 5
Enter the value of time t in sec = 0.000
Enter the value of time t in sec = 0.001
Enter the value of time t in sec = 0.002
Enter the value of time t in sec = 0.003
Enter the value of time t in sec = 0.004
t(sec) I(Amp) VR(Volt) VC(Volt)
0.000 0.000 10.000 0.000
0.001 0.00995 9.900 0.099
0.002 0.0198 9.802 0.198
0.003 0.0295 9.704 0.295
0.004 0.0392 9.607 0.392
RESULT:
Hence we made a C program to Compute AC Analysis of a RL Series And RC Series network to
produce table of components voltages & current levels for a given set of time instants.
EXPERIMENT # 7
OBJECT: Introduction of PSPICE Programming
THEORY:
Circuit components -
The first letter in each respective line primarily identifies all components in a PSPICE source file.
Characters following the identifying letter are used to distinguish one component of a certain type
from another of the same type (r1, r2, r3, rload, r pullup, etc.).
1.Passive components
RESISTORS
r1 1 0 2t (Resistor R1, 2t = 2 Tera-ohms = 2 TΩ)
r2 1 0 4g (Resistor R2, 4g = 4 Giga-ohms = 4 GΩ)
r3 1 0 47meg (Resistor R3, 47meg = 47 Mega-ohms = 47 MΩ)
r4 1 0 3.3k (Resistor R4, 3.3k = 3.3 kilo-ohms = 3.3 kΩ)
r5 1 0 55m (Resistor R5, 55m = 55 milli-ohms = 55 mΩ)
r6 1 0 10u (Resistor R6, 10u = 10 micro-ohms 10 µΩ)
r7 1 0 30n (Resistor R7, 30n = 30 nano-ohms = 30 nΩ)
r8 1 0 5p (Resistor R8, 5p = 5 pico-ohms = 5 pΩ)
r9 1 0 250f (Resistor R9, 250f = 250 femto-ohms = 250 fΩ)
Scientific notation:
r10 1 0 4.7e3 (Resistor R10, 4.7e3 = 4.7 x 103
ohms = 4.7 kilo-ohms = 4.7 kΩ)
r11 1 0 1e-12 (Resistor R11, 1e-12 = 1 x 10-12
ohms = 1 pico-ohm = 1 pΩ)
28
29. CAPACITORS
General form: c[name] [node1] [node2] [value] ic=[initial voltage]
Example 1: c1 12 33 10u
Example 2: c1 12 33 10u ic=3.5
Comments: The "initial condition" (ic=) variable is the capacitor's voltage in units of volts at the
start of DC analysis. It is an optional value, with the starting voltage assumed to be zero if
unspecified. Starting current values for capacitors are interpreted by SPICE only if the .tran
analysis option is invoked (with the "uic" option).
INDUCTORS
General form: l[name] [node1] [node2] [value] ic=[initial current]
Example 1: l1 12 33 133m
Example 2: l1 12 33 133m ic=12.7m
Comments: The "initial condition" (ic=) variable is the inductor's current in units of amps at the
start of DC analysis. It is an optional value, with the starting current assumed to be zero if
unspecified. Starting current values for inductors are interpreted by SPICE only if the .tran
analysis option is invoked.
INDUCTOR COUPLING (transformers)
General form: k[name] l[name] l[name] [coupling factor]
Example 1: k1 l1 l2 0.999
Comments: SPICE will only allow coupling factor values between 0 and 1 (non-inclusive), with 0
representing no coupling and 1 representing perfect coupling. The order of specifying coupled
inductors (l1, l2 or l2, l1) is irrelevant.
2. Sources
AC SINEWAVE VOLTAGE SOURCES (when using .ac card to specify frequency):
General form: v[name] [+node] [-node] ac [voltage] [phase] sin
Example 1: v1 1 0 ac 12 sin
Example 2: v1 1 0 ac 12 240 sin (12 V 240∠ o
)
Comments: This method of specifying AC voltage sources works well if you're using multiple
sources at different phase angles from each other, but all at the same frequency. If you need to
specify sources at different frequencies in the same circuit, you must use the next method!
AC SINEWAVE VOLTAGE SOURCES (when NOT using .ac card to specify frequency):
General form: v[name] [+node] [-node] sin([offset] [voltage]
+ [freq] [delay] [damping factor])
Example 1: v1 1 0 sin(0 12 60 0 0)
Parameter definitions:
offset = DC bias voltage, offsetting the AC waveform by a specified voltage.
voltage = peak, or crest, AC voltage value for the waveform.
freq = frequency in Hertz.
delay = time delay, or phase offset for the waveform, in seconds.
damping factor = a figure used to create waveforms of decaying amplitude.
Comments: This method of specifying AC voltage sources works well if you're using multiple
sources at different frequencies from each other. Representing phase shift is tricky, though,
necessitating the use of the delay factor.
DC VOLTAGE SOURCES (when using .dc card to specify voltage):
General form: v[name] [+node] [-node] dc
Example 1: v1 1 0 dc
29
30. Comments: If you wish to have SPICE output voltages not in reference to node 0, you must use
the .dc analysis option, and to use this option you must specify at least one of your DC sources in
this manner.
DC VOLTAGE SOURCES (when NOT using .dc card to specify voltage):
General form: v[name] [+node] [-node] dc [voltage]
Example 1: v1 1 0 dc 12
Comments: Nothing noteworthy here!
PULSE VOLTAGE SOURCES
General form: v[name] [+node] [-node] pulse ([i] [p] [td] [tr]
+ [tf] [pw] [pd])
Parameter definitions:
i = initial value
p = pulse value
td = delay time (all time parameters in units of seconds)
tr = rise time
tf = fall time
pw = pulse width
pd = period
Example 1: v1 1 0 pulse (-3 3 0 0 0 10m 20m)
Comments: Example 1 is a perfect square wave oscillating between -3 and +3 volts, with zero rise
and fall times, a 20 millisecond period, and a 50 percent duty cycle (+3 volts for 10 ms, then -3
volts for 10 ms).
AC SINEWAVE CURRENT SOURCES (when using .ac card to specify frequency):
General form: i[name] [+node] [-node] ac [current] [phase] sin
Example 1: i1 1 0 ac 3 sin (3 amps)
Example 2: i1 1 0 ac 1m 240 sin (1 mA 240∠ o
)
Comments: The same comments apply here (and in the next example) as for AC voltage sources.
AC SINEWAVE CURRENT SOURCES (when NOT using .ac card to specify frequency):
General form: i[name] [+node] [-node] sin([offset]
+ [current] [freq] 0 0)
Example 1: i1 1 0 sin(0 1.5 60 0 0)
DC CURRENT SOURCES (when using .dc card to specify current):
General form: i[name] [+node] [-node] dc
Example 1: i1 1 0 dc
DC CURRENT SOURCES (when NOT using .dc card to specify current):
General form: i[name] [+node] [-node] dc [current]
Example 1: i1 1 0 dc 12
Comments: Even though the books all say that the first node given for the DC current source is
the positive node, that's not what I've found to be in practice. In actuality, a DC current source in
SPICE pushes current in the same direction as a voltage source (battery) would with its negative
node specified first.
PULSE CURRENT SOURCES
General form: i[name] [+node] [-node] pulse ([i] [p] [td] [tr]
+ [tf] [pw] [pd])
Parameter definitions:
i = initial value
30
31. p = pulse value
td = delay time
tr = rise time
tf = fall time
pw = pulse width
pd = period
Example 1: i1 1 0 pulse (-3m 3m 0 0 0 17m 34m)
Comments: Example 1 is a perfect square wave oscillating between -3 mA and +3 mA, with zero
rise and fall times, a 34 millisecond period, and a 50 percent duty cycle (+3 mA for 17 ms, then -3
mA for 17 ms).
VOLTAGE SOURCES (dependent):
General form: e[name] [out+node] [out-node] [in+node] [in-node]
+ [gain]
Example 1: e1 2 0 1 2 999k
Comments: Dependent voltage sources are great to use for simulating operational amplifiers.
Example 1 shows how such a source would be configured for use as a voltage follower, inverting
input connected to output (node 2) for negative feedback, and the noninverting input coming in on
node 1. The gain has been set to an arbitrarily high value of 999,000. One word of caution, though:
SPICE does not recognize the input of a dependent source as being a load, so a voltage source tied
only to the input of an independent voltage source will be interpreted as "open." See op-amp
circuit examples for more details on this.
Analysis options-
AC ANALYSIS:
General form: .ac [curve] [points] [start] [final]
Example 1: .ac lin 1 1000 1000
Comments: The [curve] field can be "lin" (linear), "dec" (decade), or "oct" (octave), specifying
the (non)linearity of the frequency sweep. specifies how many points within the frequency sweep
to perform analyses at (for decade sweep, the number of points per decade; for octave, the number
of points per octave). The [start] and [final] fields specify the starting and ending frequencies of
the sweep, respectively. One final note: the "start" value cannot be zero!
DC ANALYSIS:
General form: .dc [source] [start] [final] [increment]
Example 1: .dc vin 1.5 15 0.5
Comments: The .dc card is necessary if you want to print or plot any voltage between two
nonzero nodes. Otherwise, the default "small-signal" analysis only prints out the voltage between
each nonzero node and node zero.
TRANSIENT ANALYSIS:
General form: .tran [increment] [stop_time] [start_time]
+ [comp_interval]
Example 1: .tran 1m 50m uic
Example 2: .tran .5m 32m 0 .01m
Comments: Example 1 has an increment time of 1 millisecond and a stop time of 50 milliseconds
(when only two parameters are specified, they are increment time and stop time, respectively).
Example 2 has an increment time of 0.5 milliseconds, a stop time of 32 milliseconds, a start time
of 0 milliseconds (no delay on start), and a computation interval of 0.01 milliseconds.
Default value for start time is zero. Transient analysis always beings at time zero, but storage of
data only takes place between start time and stop time. Data output interval is increment time, or
(stop time - start time)/50, which ever is smallest. However, the computing interval variable can be
used to force a computational interval smaller than either. For large total interval counts, the itl5
31
32. variable in the .options card may be set to a higher number. The "uic" option tells SPICE to "use
initial conditions."
PLOT OUTPUT -
General form: .plot [type] [output1] [output2] . . . [output n]
Example 1: .plot dc v(1,2) i(v2)
Example 2: .plot ac v(3,4) vp(3,4) i(v1) ip(v1)
Example 3: .plot tran v(4,5) i(v2)
Comments: SPICE can't handle more than eight data point requests on a single .plot or .print card.
If requesting more than eight data points, use multiple cards!
Also, here's a major caveat when using SPICE version 3: if you're performing AC analysis and you
ask SPICE to plot an AC voltage as in example #2, the v(3,4) command will only output the real
component of a rectangular-form complex number! SPICE version 2 outputs the polar magnitude
of a complex number: a much more meaningful quantity if only a single quantity is asked for. To
coerce SPICE3 to give you polar magnitude, you will have to re-write the .print or .plot argument
as such: vm(3,4).
PRINT OUTPUT-
General form: .print [type] [output1] [output2] . . . [output n]
Example 1: .print dc v(1,2) i(v2)
Example 2: .print ac v(2,4) i(vinput) vp(2,3)
Example 3: .print tran v(4,5) i(v2)
Comments: SPICE can't handle more than eight data point requests on a single .plot or .print card.
If requesting more than eight data points, use multiple cards!
FOURIER ANALYSIS -
General form: .four [freq] [output1] [output2] . . . [output n]
Example 1: .four 60 v(1,2)
Comments: The .four card relies on the .tran card being present somewhere in the deck, with the
proper time periods for analysis of adequate cycles. Also, SPICE may "crash" if a .plot analysis
isn't done along with the .four analysis, even if all .tran parameters are technically correct. Finally,
the .four analysis option only works when the frequency of the AC source is specified in that
source's card line, and not in an .ac analysis option line.
It helps to include a computation interval variable in the .tran card for better analysis precision. A
Fourier analysis of the voltage or current specified is performed up to the 9th harmonic, with the
[freq] specification being the fundamental, or starting frequency of the analysis spectrum.
.
32
33. EXPERIMENT NO:-8
OBJECT- Write a PSPICE Program for DC-analysis of resistor networks to
determine node voltages, components voltages, and component currents.
Fig.8.1
PSPICE PROGRAM-
* DC ANALYSIS
**** CIRCUIT DESCRIPTION***********************************************
VS 1 0 DC 2OV
IS 0 4 DC 50MA
R1 1 2 200OHM
R2 2 5 800OHM
R3 4 0 2000OHM
VX 3 0 DC 0V
VY 5 4 DC 0V
.OP
.END
33
34. ******************************************************************************
NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE
( 1) 2.0000 ( 2) 8.5333 ( 3) 0.0000 ( 4) 34.6670
( 5) 34.6670
VOLTAGE SOURCE CURRENTS
NAME CURRENT
VS 3.267E-02
VX 0.000E+00
VY -3.267E-02
TOTAL POWER DISSIPATION -6.53E-02 WATTS
RESULT- Hence we made a PSPICE program to Compute DC Analysis of network..
EXPERIMENT NO:- 9
OBJECT- Write a PSPICE Program for AC-analysis of resistor networks
that have several voltage sources.
Fig.9.1
PSPICE PROGRAM-
*AC ANALYISIS
** CIRCUIT DESCRIPTION*********************************************
VAN 1 0 AC 120V 0 SIN(0 169.7V 50HZ)
VBN 2 0 AC 120V 120 SIN(0 169.7V 50HZ 0 0 120DEG)
VCN 3 0 AC 120V 240 SIN(0 169.7V 50HZ 0 0 240DEG)
RA 1 4 0.5
RX 4 7 1
R1 7 10 5
C 10 12 150UF
RB 2 5 0.5
RY 5 8 1
R2 8 11 10
L1 11 12 120MH
RC 3 6 0.5
RZ 6 9 1
R3 9 12 10
VX 0 12 DC 0V
34
36. 2.57299470885098e-005 12.7794485092163
2.67299699766934e-005 12.7794427871704
2.7729992864877e-005 12.7794370651245
2.87300157530606e-005 12.7794303894043
2.97300386412442e-005 12.7794237136841
3.07300615294278e-005 12.7794170379639
3.17300844176114e-005 12.7794103622437
3.2730107305795e-005 12.7794027328491
3.37301301939786e-005 12.7793960571289
3.47301530821621e-005 12.7793884277344
3.57301759703457e-005 12.7793798446655
3.67301988585293e-005 12.779372215271
3.77302217467129e-005 12.7793636322021
3.87302446348965e-005 12.7793550491333
3.97302675230801e-005 12.7793464660645
4.07302904112637e-005 12.7793369293213
4.17303132994473e-005 12.7793283462524
4.27303361876309e-005 12.7793188095093
4.37303590758145e-005 12.7793092727661
4.47303819639981e-005 12.7792987823486
4.57304048521817e-005 12.7792892456055
4.67304277403653e-005 12.779278755188
4.77304506285489e-005 12.7792682647705
4.87304735167325e-005 12.7792568206787
4.97304964049161e-005 12.7792463302612
5.00000000001e-005 12.779242515564
RESULT- Hence we made a PSPICE program to Compute AC Analysis of network..
36
Ti me
0s 5us 10us 15us 20us 25us 30us 35us 40us 45us 50us
I ( L1)
12. 7792A
12. 7793A
12. 7794A
12. 7795A
12. 7796A
37. EXPERIMENT NO:-10(A)
OBJECT- Write a PSPICE Program for Transient –analyze of RL circuits to
produce tables of component voltage & current levels for a given set of time
instants & to produce graphs of voltages & currents versus time.
PSPICE PROGRAM-
*RL ANALYSIS*
**** CIRCUIT DESCRIPTION *****************************************************
VIN 1 0 SIN(0 10V 5KHZ)
R 1 2 2
L 2 0 50UH
.TRAN 1US 400US
.PLOT TRAN V(1) I(R)
.PROBE
.END
NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE
( 1) 0.0000 ( 2) 0.0000
VOLTAGE SOURCE CURRENTS
NAME CURRENT
VIN 0.000E+00
TOTAL POWER DISSIPATION 0.00E+00 WATTS
(A)I(Vin) v/s time
Time I(VIN)
0 0
8e-008 -4.00840763177257e-005
8.67345798015595e-008 -4.37424278061371e-005
1.00203739404678e-007 -5.16269465151709e-005
1.27142058610916e-007 -7.0801041147206e-005
1.81018697023392e-007 -0.000122751080198213
2.88771973848343e-007 -0.000280911568552256
5.04278527498245e-007 -0.000813101243693382
9.3529163479805e-007 -0.00273160939104855
1.79731784939766e-006 -0.00991096999496222
3.52137027859688e-006 -0.0370549373328686
6.96947513699532e-006 -0.137949258089066
1.38656848537922e-005 -0.491864144802094
2.18658679592609e-005 -1.08455395698547
2.98660510647297e-005 -1.77897202968597
37
58. 0.000317880268530846 0.0138638243079185
0.000325880451636314 -2.0891969203949
0.000333880634741783 -4.06097984313965
0.000341880817847252 -5.77758455276489
0.000349881000952721 -7.13114595413208
0.000357881184058189 -8.03661060333252
0.000365881367163658 -8.43708229064941
0.000373881550269127 -8.30739784240723
0.000381881733374596 -7.65570449829102
0.000389881916480064 -6.52295351028442
0.000397882099585533 -4.98032236099243
0.0004000000000008 -4.51288366317749
Ti me
0s 40us 80us 120us 160us 200us 240us 280us 320us 360us 400us
V1( C)
- 10V
- 5V
0V
5V
10V
V1( C)
Comperision between Graphs
(1) I(Vin),I(R),I(C) v/s time
Ti me
0s 40us 80us 120us 160us 200us 240us 280us 320us 360us 400us
I ( VI N) I ( R) I ( C)
- 3. 0A
- 2. 0A
- 1. 0A
- 0. 0A
1. 0A
2. 0A
3. 0A
58
59. (2) V1(Vin),V1(R),V1(C) v/s time
Ti me
0s 40us 80us 120us 160us 200us 240us 280us 320us 360us 400us
V1( VI N) V1( R) V1( C)
- 10V
- 5V
0V
5V
10V
RESULT- Hence we made a PSPICE program to Compute Transient Analysis of RC network..
59
60. EXPERIMENT # 11
OBJECT: WRITE A PSPICE PROGRAM FOR AC-ANALYZE OF IMPEDANCE
NETWORKS TO DETERMINE THE MAGNITUDE & PHASE OF NODE
VOLTAGES, COMPONENTS VOLTAGES AND COMPONENT CURRENTS.
THEORY:
11.1 Simple AC resistor-capacitor circuit
Fig. 11.1 Series RC Circuit
The .ac card specifies the points of ac analysis from 60Hz to 60Hz, at a single point. This card, of
course, is a bit more useful for multi-frequency analysis, where a range of frequencies can be
analyzed in steps. The .print card outputs the AC voltage between nodes 1 and 2, and the AC
voltage between node 2 and ground.
Netlist: Demo of a simple AC circuit
v1 1 0 ac 12 sin
r1 1 2 30
c1 2 0 100u
.ac lin 1 60 60
.print ac v(1,2) v(2)
.end
Output:
freq v(1,2) v(2)
6.000E+01 8.990E+00 7.949E+00
11.2 Multiple-Source AC network
One of the idiosyncrasies of SPICE is its inability to handle any loop in a circuit exclusively
composed of series voltage sources and inductors. Therefore, the "loop" of V1-L1-L2-V2-V1 is
unacceptable. To get around this, I had to insert a low-resistance resistor somewhere in that loop
to break it up. Thus, we have Rbogus between 3 and 4 (with 1 pico-ohm of resistance), and V2
between 4 and 0. The circuit above is the original design, while the circuit below has Rbogus inserted
to avoid the SPICE error.
60
61. Fig. 11.2 Multiple-Source AC network
Netlist:
Multiple ac source
v1 1 0 ac 55 0 sin
v2 4 0 ac 43 25 sin
l1 1 2 450m
c1 2 0 330u
l2 2 3 150m
rbogus 3 4 1e-12
.ac lin 1 30 30
.print ac v(2)
.end
Output:
freq v(2)
3.000E+01 1.413E+02
RESULT:
Hence we made a PSPICE program to Compute AC Analysis of network..
EXPERIMENT NO:-12
61
62. OBJECT- Write a PSPICE Program to determine the magnitude & phase of
component voltages and currents in resonant circuits (RLC).
PSPICE PROGRAM-
*RLC ANALYSIS*
**** CIRCUIT DESCRIPTION *************************************************************
VIN 1 0 SIN(0 10V 5KHZ)
R 1 2 2
L 2 3 50UH
C 3 0 10UF
.TRAN 1US 400US
.PLOT TRAN V(1) I(R)
.PROBE
.END
**********************************************************************************
NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE
( 1) 0.0000 ( 2) 0.0000 ( 3) 0.0000
VOLTAGE SOURCE CURRENTS
NAME CURRENT
VIN 0.000E+00
TOTAL POWER DISSIPATION 0.00E+00 WATTS
(A) I (Vin) v/s time
Time I(VIN)
0 0
8e-008 -4.00835633627139e-005
8.44837594032288e-008 -4.24560166720767e-005
9.34512782096863e-008 -4.74526568723377e-005
1.11386315822601e-007 -5.89558039791882e-005
1.47256391048431e-007 -8.79960934980772e-005
2.18996541500092e-007 -0.000170168917975388
3.62476842403412e-007 -0.00043053287663497
5.6365443944931e-007 -0.00100999174173921
9.00158421993256e-007 -0.00253313197754323
1.38939334630966e-006 -0.00596629269421101
2.19229175329208e-006 -0.0146528081968427
3.40231372594833e-006 -0.0346330963075161
5.36879016637802e-006 -0.0835836455225945
8.4258885550499e-006 -0.195551574230194
1.34719700980186e-005 -0.454990178346634
2.14721532034874e-005 -0.973369359970093
2.94723363089561e-005 -1.50876677036285
3.74725194144249e-005 -1.93907618522644
4.54727025198936e-005 -2.17364835739136
5.34728856253624e-005 -2.15914535522461
6.14730687308312e-005 -1.88032209873199
6.94732518362999e-005 -1.35669529438019
7.74734349417687e-005 -0.636228680610657
8.54736180472374e-005 0.212805137038231
9.34738011527062e-005 1.11071646213531
0.000101473984258175 1.97513055801392
0.000109474167363644 2.72884726524353
0.000117474350469112 3.30632519721985
0.000125474533574581 3.65848994255066
0.00013347471668005 3.75574278831482
0.000141474899785519 3.58919620513916
0.000149475082890987 3.17026948928833
0.000157475265996456 2.52886724472046
0.000165475449101925 1.71041166782379
0.000173475632207394 0.77202433347702
62
75. Ti me
0s 40us 80us 120us 160us 200us 240us 280us 320us 360us 400us
V1( C)
- 15V
- 10V
- 5V
0V
5V
10V
15V
V1( C)
Comperision between Graphs
(3) I(Vin),I(R),I(L),I(C) v/s time
Ti me
0s 40us 80us 120us 160us 200us 240us 280us 320us 360us 400us
I ( VI N) I ( R) I ( L) I ( C)
- 4. 0A
- 2. 0A
0A
2. 0A
4. 0A
75
76. (4) V1(Vin),V1(R),V1(L),V1(C) v/s time
Ti me
0s 40us 80us 120us 160us 200us 240us 280us 320us 360us 400us
V1( VI N) V1( R) V1( L) V1( C)
- 15V
- 10V
- 5V
0V
5V
10V
15V
RESULT- Hence we made a PSPICE program to Compute the magnitude & phase of
component voltages and currents in resonant circuits.
76
77. EXPERIMENT # 13
OBJECT: WRITE A PSPICE PROGRAM FOR AC-ANALYZE OF IMPEDANCE
NETWORKS TO DETERMINE THE MAGNITUDE,PHASE,REAL &
IMAGINARY PART OF NODE VOLTAGES, COMPONENTS VOLTAGES AND
COMPONENT CURRENTS.
THEORY:
11.1 Simple AC resistor-capacitor circuit
Fig. 11.1 Series RC Circuit
The .ac card specifies the points of ac analysis from 60Hz to 60Hz, at a single point. This card, of
course, is a bit more useful for multi-frequency analysis, where a range of frequencies can be
analyzed in steps. The .print card outputs the AC voltage between nodes 1 and 2, and the AC
voltage between node 2 and ground.
Netlist:
V1 1 0 AC 12V 0 SIN(0 16.97V 50HZ)
R1 1 2 30
C1 2 0 100UF
.AC LIN 1 50 50
.PRINT AC VM(1,2) VP(1,2) VR(1,2) VI(1,2)
.PRINT AC IM(R1) IP(R1) IR(R1) II(R1)
.END
OUTPUT:
FREQ VM(1,2) VP(1,2) VR(1,2) VI(1,2)
5.000E+01 8.230E+00 4.670E+01 5.645E+00 5.989E+00
77
78. FREQ IM(R1) IP(R1) IR(R1) II(R1)
5.000E+01 2.743E-01 4.670E+01 1.882E-01 1.997E-01
RESULT:
Hence we made a PSPICE program to Compute AC Analysis of network..
78