summaryrefslogtreecommitdiff
path: root/1223/CH1/EX1.4
diff options
context:
space:
mode:
Diffstat (limited to '1223/CH1/EX1.4')
-rwxr-xr-x1223/CH1/EX1.4/Ex1_4.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1223/CH1/EX1.4/Ex1_4.sce b/1223/CH1/EX1.4/Ex1_4.sce
new file mode 100755
index 000000000..05f639543
--- /dev/null
+++ b/1223/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,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)