Anda di halaman 1dari 3

Expt.

No: 2
Date:

ESTIMATION OF RESISTANCE, INDUCTANCE AND


CAPACITANCE

AIM:
To estimate the resistance, inductance and capacitance values by C programming.

SOFTWARE REQUIRED:
TURBO C++.

DESIGN EQUATIONS:
Resistor:
R = Rs *
R1 =
Where R1 load resistance
RS sheet resistance
l -length of resistor
w width of resistor
t -thickness of resistor
Capacitor:
Cg
Cd =
Cgb =
Where
-gate capacitance
-drain capacitance
-gate to bulk capacitance
-permittivity of silicon-di-oxide
-permittivity in free space
-permittivity of silicon
d
-depth of capacitance
-oxide thickness
A
-area

Inductance:
l = r * (n * n) *u0
where
r -radius.
n - number of turns.
uo - permeability in free space.

ALGORITHM:
STEP 1:Open turbo c and create new file.
STEP 2:Type the codings for the calculation of resistance,inductance,capacitance.
STEP 3:Save the file with extension as.cpp.
STEP 4:Compile and run the program.

CODING:
Estimation of resistor:
#include<stdio.h>
#include<conio.h>
void main()
{
int Rs=15;int P=6;float t=30*POW(10,-3);
float l,w,R,R1;
R=Rs*(l/w);
printf("The resistance value is:%f",R);
R1=(l/t*l/w);
printf("The value of R1 is:%f",R1);
getch();
}
Estimation of inductor
#include<stdio.h>
#include<conio.h>
Void main()
{
Int n=6,r=10;
Float l,uo=1.2/1000000;
l=uo*n*n*r;
printf(inductor value:%f,l);
getch();
}

Estimation of capacitor:
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()

{
float Cg,Cd,Cgb,A=10*pow(10,-2);
float tox=1000*pow(10,-8),e0=8.854*pow(10,-4),esio2=3.9;
float esi=12,d=1.7*pow(10,-3);
Cg=(esio2*e0/tox)*A;
printf("The gate capacitance is:%f",Cg);
Cd=(e0*esi/d)*A;
printf("The depletion capacitance is:%f",Cd);
Cgb=(Cg*Cd/Cg+Cd);
printf("The gate bulk capacitance is:%f",Cgb);
getch();
}

OUTPUT:
RESISTANCE:
The resistance value is :12367364261280588700000000000.000000
The value of r is:0.000000

INDUCTANCE:
Inductance value is .628000
Inductance value is .628000
Inductance value is .628000
Inductance value is .628000

CAPCITANCE:
The gate capacitance is:34.530602
The capacitance is:0.624988
The gate bulk capacitance is:0.613877
The gate capacitance is:34.530602
The capacitance is:0.624988
The gate bulk capacitance is:0.613877

RESULT:
The resistance, inductance and capacitance values are estimated by C programming.

Anda mungkin juga menyukai