diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /339/CH7/EX7.1/ex7_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '339/CH7/EX7.1/ex7_1.sce')
-rwxr-xr-x | 339/CH7/EX7.1/ex7_1.sce | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/339/CH7/EX7.1/ex7_1.sce b/339/CH7/EX7.1/ex7_1.sce new file mode 100755 index 000000000..023f073f1 --- /dev/null +++ b/339/CH7/EX7.1/ex7_1.sce @@ -0,0 +1,61 @@ +//define problem parameters
+TT=500e-12; // transit time
+T0=300; //temperature
+Is0=5e-15; // reverse saturation current at 300K
+Rs=1.5; // series resistance
+nn=1.16; //emission coefficient
+
+// parameters needed to describe temperature behavior of
+// the band-gap energy in Si
+alpha=7.02e-4;
+beta=1108;
+Wg0=1.16;
+pt=3;
+
+// quiescent current
+Iq=50e-3;
+
+// frequency range 10MHz to 1GHz
+f_min=10e6; // lower limit
+f_max=1e9; //upper limit
+N=300; // number of points in the graph
+f=f_min*((f_max/f_min).^((0:N)/N)); // compute frequency points on log scale
+
+// temperatures for which analysis will be performed
+T_points=[250 300 350 400];
+
+// define physical constants
+q=1.60218e-19; // electron charge
+k=1.38066e-23; // Boltzmann's constant
+
+for n=1:length(T_points)
+ T=T_points(n);
+ s=sprintf('T=%.f\n',T);
+ Vt=k*T/q;
+
+ Wg=Wg0-alpha*T^2/(beta+T);
+ s=sprintf('%s Wg(T)=%f\n',s,Wg);
+
+ Is=Is0*(T/T0)^(pt/nn)*exp(-Wg/Vt*(1-T/T0));
+ s=sprintf('%s Is(T)=%e\n',s,Is);
+
+ Vq=nn*Vt*log(1+Iq/Is);
+ s=sprintf('%s Vq(T)=%f\n',s,Vq);
+
+ Rd=nn*Vt/Iq;
+ s=sprintf('%s Rd(T)=%f\n',s,Rd);
+
+ Cd=Is*TT/nn/Vt*exp(Vq/nn/Vt);
+ s=sprintf('%s Cd(T)=%fpF\n',s,Cd/1e-12)
+
+ Zc=1./(%i*2*%pi*f*Cd);
+
+ Zin=Rs+Rd*Zc./(Rd+Zc);
+
+ plot(f/1e6,abs(Zin));
+ set(gca(),"auto_clear","off");
+end;
+
+title('Frequency behavior of small-signal diode model');
+xlabel('Frequency {\itf}, MHz');
+ylabel('Impedance |Z|, \Omega');
\ No newline at end of file |