You are on page 1of 4

Q 6.

Octave code:

Na=10.^15; # conc. of step junction of p-type doping


Tn=10.^((-1).*6); #lifetime of electron
area=10.^((-1).*3);
T=300; #temperature
un=1345; #value of mobility of electron at T=300k
kT=0.0259; #value of kT in ev at T=300k
Dn=kT.*un; #diffusion coefficient of electrons
Ln=(Dn.*Tn).^(1./2);
ni=10.^10; #value of ni at T=300
q=(1.6) .*(10.^((-1).*19)); #value of electron charge
e=2.718;
J0=(q.*(ni.^2).*Dn)./(Ln.*Na); #value of J0 in step junction
Va= [-50 -0.1 0.1 0.5]; # value of applied voltages
J=J0.*((e.^(Va./kT)).-1);
I=J.*area;
disp(I);

No plot is generated

Discussion and result:

Given p-n junction is a step junction and I have used the formula of J from the note to calculate
I.

Q 14.4

Octave code

Nd=logspace(14,17);
T=300;
phiB=[0.5 0.6 0.7];
Ksi=11.7; #value of dielectric constant of Si
Epsilon0=(8.85 .*(10.^((-1).*(14))) );
q=(1.6 .*(10.^((-1).*(19))) ); #value of electronic charge
kT=0.0259;
Eg=1.12; #value of Ec-Ev atT=300k
Ni=10.^10;
phiMS= (Eg./2).- kT.*log(Nd./Ni);
Va=0; #assuming reference

#part a
phiB=0.5;
Vfb=phiB - phiMS ;
width= ( (2.*Ksi.*Epsilon0.*(Vfb-Va))./(q.*Nd) ).^(1./2);
loglog(Nd,width);
hold on;
#part b
phiB=0.6;
Vfb=phiB - phiMS ;
width= ( (2.*Ksi.*Epsilon0.*(Vfb-Va))./(q.*Nd) ).^(1./2);
loglog(Nd,width);
hold on;

#part c
phiB=0.7;
Vfb=phiB - phiMS ;
width= ( (2.*Ksi.*Epsilon0.*(Vfb-Va))./(q.*Nd) ).^(1./2);
loglog(Nd,width);
hold on;
xlabel("Nd");
ylabel("width");
legend("barrier=0.5","barrier=0.6","barrier=0.7")

Generated plots:
Discussion and result explanation:

Given a junction in flat band condition, I have used the formula from the notes and using that the
above plot is generated. And variation can be seen from the plot.

Q 14.11

Octave code:

Eg=1.12;
Epsilon0=(8.85 .*(10.^((-1).*(14))) );
area=1.5 .*(10.^((-1).*(3))); #given area
Ksi=11.8; # dielectric constan of si
kT=0.0259; #value of kT at T=300k
q=(1.6 .*(10.^((-1).*(19))) ) ;
Ni=10.^10;
VA=[-1.09 -2.08 -3.07 -4.06 -5.05 -6.04 -7.03 -8.02 -9.01 -10.00];
x=1.0e2 .*[0.953 1.494 2.035 2.579 3.125 3.673 4.217 4.763 5.320 5.890];
f=polyfit(VA,x,1);
Nd= 2./ (q.*Ksi.*Epsilon0.*(area.^2).*(-f(1))) ;

vbi= -f(2)./f(1);
phiMS= (Eg./2).- kT.*log(Nd./Ni);
Vfb=phiMS .+ vbi ;

No generated plot

Discussion and result explanation:


I have used the polyfit function on the given data and used it to calculate the required things
asked in the question.

You might also like