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 /2582/CH2 | |
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 '2582/CH2')
-rwxr-xr-x | 2582/CH2/EX2.1/Ex2_1.sce | 24 | ||||
-rwxr-xr-x | 2582/CH2/EX2.2/Ex2_2.sce | 9 | ||||
-rwxr-xr-x | 2582/CH2/EX2.3/Ex2_3.sce | 14 | ||||
-rwxr-xr-x | 2582/CH2/EX2.4/Ex2_4.sce | 10 | ||||
-rwxr-xr-x | 2582/CH2/EX2.5/Ex2_5.sce | 11 |
5 files changed, 68 insertions, 0 deletions
diff --git a/2582/CH2/EX2.1/Ex2_1.sce b/2582/CH2/EX2.1/Ex2_1.sce new file mode 100755 index 000000000..704aa26d2 --- /dev/null +++ b/2582/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,24 @@ +//Ex 2.1
+clc;clear;close;
+format('v',6)
+VCC=5;//V
+IS=10^-14;//A
+RS=39*1000;//ohm
+VBE12=0.7;//V(Assumed)
+VBE11=0.7;//V(Assumed)
+VEE=-5;//V
+IREF=(VCC-VBE12-VBE11-VEE)/RS*10^6;//micro A
+disp(IREF,"Estimated input reference current , IREF(micro A)");
+VT=25*10^-3;//V(Thermal Voltage)
+VBE=VT*log(IREF*10^-6/IS);//V
+IREF=(VCC-VBE-VBE-VEE)/RS*10^6;//micro A
+format('v',5)
+disp(IREF,"More precise value of reference current , IREF(micro A)");
+//Replacing Vcc by 15 V in the original design
+VCC2=15;//V
+VEE2=-15;//V
+IREF=(VCC2-VBE-VBE-VEE2)/RS*10^6;//micro A
+VBE=VT*log(IREF*10^-6/IS);//V
+R5=(VCC-VBE-VBE-VEE)/(IREF*10^-6);//ohm
+R5=round(R5/1000);//kohm
+disp(R5,"Value of R5(kohm) : ");
diff --git a/2582/CH2/EX2.2/Ex2_2.sce b/2582/CH2/EX2.2/Ex2_2.sce new file mode 100755 index 000000000..52dab5182 --- /dev/null +++ b/2582/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,9 @@ +//Ex 2.2
+clc;clear;close;
+format('v',5);
+IC10=20*10^-6;//A
+IREF=0.5*10^-3;//A
+IS=10^-14;//A
+VT=25*10^-3;//V(Thermal Voltage)
+R4=VT/IC10*log(IREF/IC10);//ohm
+disp(R4/1000,"For Widlar current source design, the value of R4(kohm) : ");
diff --git a/2582/CH2/EX2.3/Ex2_3.sce b/2582/CH2/EX2.3/Ex2_3.sce new file mode 100755 index 000000000..ff0548b8a --- /dev/null +++ b/2582/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,14 @@ +//Ex 2.3
+clc;clear;close;
+format('v',5)
+Gm1=10;//mA/V
+Gm1=Gm1/1000;//A/V
+Cc=50;//pF
+Cc=Cc*10^-12;//F
+Rt=10^8;//ohm(Shunting resistance with Cc)
+Ao=Gm1*Rt;//unitless
+fp=1/(2*%pi*Rt*Cc);//Hz
+ft=Gm1/(2*%pi*Cc)/10^6;//MHz
+disp(fp,"Frequency at which gain is maximum, fp in Hz");
+disp(ft,"Unit gain frequency, ft(MHz)");
+//Bode plot can not be plotted with the given data in the question by using scilab functions.
diff --git a/2582/CH2/EX2.4/Ex2_4.sce b/2582/CH2/EX2.4/Ex2_4.sce new file mode 100755 index 000000000..82a1913f0 --- /dev/null +++ b/2582/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,10 @@ +//Ex 2.4
+clc;clear;close;
+format('v',6);
+SR=10/10^-6;//V/s
+Vout=10;//V(magnitude of output voltage)
+fm=SR/(2*%pi*Vout)/1000;//kHz
+disp(fm,"Full power bandwidth(kHz)");
+VT=25/1000;//V(Thermal voltage)
+ft=SR/(2*%pi*4*VT)/10^6;//MHz
+disp(ft,"Unity gain bandwidth(MHz)");
diff --git a/2582/CH2/EX2.5/Ex2_5.sce b/2582/CH2/EX2.5/Ex2_5.sce new file mode 100755 index 000000000..3b2f91355 --- /dev/null +++ b/2582/CH2/EX2.5/Ex2_5.sce @@ -0,0 +1,11 @@ +//Ex 2.5
+clc;clear;close;
+VCC=5;//V
+VEE=-5;//V
+VBE=0.6;//V
+VCE23=0.6;//V
+VCE_sat=0.2;//V
+Vo_max=VCC-VCE_sat-VBE;//V
+Vo_min=VEE+VCE_sat+VBE+VCE23;//V
+disp(Vo_max,"Maximum output voltage(V)");
+disp(Vo_min,"Minimum output voltage(V)");
|