summaryrefslogtreecommitdiff
path: root/1223/CH1/EX1.4/Ex1_4.sce
blob: 05f6395430f75a3357f756001c6d21ac0102499a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear;
clc;
//Example 1.4
T=300;//(°K)Given Temperature
Na=10^16;//(cm^-3)Acceptor concentration in p region
Nd=10^15;//(cm^-3)Donor concentration in n region
n_i=1.5*10^10;//(cm^-3)intrinsic carrier concentration
C_jo=0.5;//(pF)junction capacitance at zero applied voltage
V_T=0.026;//(Volt)terminal voltage
//built-in potential
V_bi=V_T*log(Na*Nd/(n_i)^2);
disp(V_bi,"the built-in potential(V)")
//the junction capacitance for
V_R=1;//(V)reverse bias voltage
Cj=C_jo*(1+V_R/V_bi)^(-1/2);
printf('\nthe junction capacitance for V_R=1V=%f pF\n',Cj)
V_R=5;//(V)reverse bias voltage
Cj=C_jo*(1+V_R/V_bi)^(-1/2);
printf('\nthe junction capacitance for V_R=5V =%f pF',Cj)