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 /1658/CH19 | |
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 '1658/CH19')
-rwxr-xr-x | 1658/CH19/EX19.1/Ex19_1.sce | 22 | ||||
-rwxr-xr-x | 1658/CH19/EX19.10/Ex19_10.sce | 26 | ||||
-rwxr-xr-x | 1658/CH19/EX19.11/Ex19_11.sce | 16 | ||||
-rwxr-xr-x | 1658/CH19/EX19.12/Ex19_12.sce | 16 | ||||
-rwxr-xr-x | 1658/CH19/EX19.13/Ex19_13.sce | 23 | ||||
-rwxr-xr-x | 1658/CH19/EX19.2/Ex19_2.sce | 15 | ||||
-rwxr-xr-x | 1658/CH19/EX19.3/Ex19_3.sce | 21 | ||||
-rwxr-xr-x | 1658/CH19/EX19.4/Ex19_4.sce | 21 | ||||
-rwxr-xr-x | 1658/CH19/EX19.5/Ex19_5.sce | 30 | ||||
-rwxr-xr-x | 1658/CH19/EX19.6/Ex19_6.sce | 33 | ||||
-rwxr-xr-x | 1658/CH19/EX19.7/Ex19_7.sce | 25 | ||||
-rwxr-xr-x | 1658/CH19/EX19.8/Ex19_8.sce | 30 | ||||
-rwxr-xr-x | 1658/CH19/EX19.9/Ex19_9.sce | 37 |
13 files changed, 315 insertions, 0 deletions
diff --git a/1658/CH19/EX19.1/Ex19_1.sce b/1658/CH19/EX19.1/Ex19_1.sce new file mode 100755 index 000000000..481abd029 --- /dev/null +++ b/1658/CH19/EX19.1/Ex19_1.sce @@ -0,0 +1,22 @@ +clc;
+//e.g 19.1
+Vcc=10;
+Rc=10*10**3;
+Rb=1*10**6;
+beta=100;
+Vbe=0.7;
+Ib=(Vcc-Vbe)/Rb;
+disp('microA',Ib*10**6,"Ib=");
+Ic=beta*Ib;
+disp('mA',Ic*10**3,"Ic=");
+Ie=Ic;
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta*re;
+disp('kohm',Ri*10**-3,"Ri=");
+Ris=(Rb*beta*re)/(Rb+beta*re);
+disp('kohm',Ris*10**-3,"Ris=");
+R0=Rc;
+disp('kOhm',R0*10**-3,"R0=");
+Av=Rc/re;
+disp(Av);
diff --git a/1658/CH19/EX19.10/Ex19_10.sce b/1658/CH19/EX19.10/Ex19_10.sce new file mode 100755 index 000000000..b518db13b --- /dev/null +++ b/1658/CH19/EX19.10/Ex19_10.sce @@ -0,0 +1,26 @@ +clc;
+VS=10*10**-3;
+a=0.98;
+VBE=0.7;
+VCC=10;
+RC=10*10**3;
+RL=5.1*10**3;
+RE=20*10**3;
+VEE=10;
+IE=(VEE-VBE)/RE;
+re=25/IE*10**-3;
+Ri=re;
+Ris=(RE*re)/(RE+re);
+disp('ohm',Ris,"Ris=");
+Ai=a;
+disp(Ai);
+rL=(RC*RL)/(RC+RL);
+Av=rL/re;
+disp(Av);
+Ap=Av*Ai;
+disp(Ap);
+Gp=10*log10(Ap);
+disp('dB',Gp,"Gp=");
+Vin=VS;
+Vo=Av*Vin;
+disp('mV',Vo*10**3,"Vo=");
diff --git a/1658/CH19/EX19.11/Ex19_11.sce b/1658/CH19/EX19.11/Ex19_11.sce new file mode 100755 index 000000000..8c6804c00 --- /dev/null +++ b/1658/CH19/EX19.11/Ex19_11.sce @@ -0,0 +1,16 @@ +clc;
+Rs=50;
+IE=0.465*10**-3;
+re1=53.8;
+Ri=53.8;
+Ris=52.4;
+rL=3.38*10**3;
+Avs=rL/(Rs+re1);
+disp(Avs);
+Av=rL/re1;
+disp(Av);
+Vs=10;
+vo=Avs*Vs;
+vin=vo/Av;
+disp('mV',vin,"vin=");
+
diff --git a/1658/CH19/EX19.12/Ex19_12.sce b/1658/CH19/EX19.12/Ex19_12.sce new file mode 100755 index 000000000..fe4395ad0 --- /dev/null +++ b/1658/CH19/EX19.12/Ex19_12.sce @@ -0,0 +1,16 @@ +clc;
+VEE=10;
+RE=10*10**3;
+RB=100*10**3;
+B=50;
+VBE=0.7;
+IE=(VEE-VBE)/(RE+(RB/B));
+re=25/IE*10**-3;
+Ri=B*(RE+re);
+disp('Kohm',Ri*10**-3,"Ri=");
+Ris=(RB*Ri)/(RB+Ri);
+Rs=0;
+Ro=re+((RB*Rs)/(RB+Rs))/B;
+disp('ohm',Ro,"Ro=");
+Av=RE/(re+RE);
+disp(Av);
diff --git a/1658/CH19/EX19.13/Ex19_13.sce b/1658/CH19/EX19.13/Ex19_13.sce new file mode 100755 index 000000000..8573c3a3b --- /dev/null +++ b/1658/CH19/EX19.13/Ex19_13.sce @@ -0,0 +1,23 @@ +clc;
+B=80;
+VBE=0.7;
+VCC=15;
+R1=20*10**3;
+R2=20*10**3;
+RS=2*10**3;
+VS=5*10**-3;
+RE=8.2*10**3;
+RL=1.5*10**3;
+VTH=VCC*R2/(R1+R2);
+RTH=(R1*R2)/(R1+R2);
+IE=(VTH-VBE)/(RE+(RTH/B));
+disp('mA',IE*10**3,"IE=");
+re=25/IE*10**-3;
+rL=(RE*RL)/(RE+RL);
+Ri=B*(rL+re);
+Ris=(RTH*Ri)/(RTH+Ri);
+disp('kohm',Ris*10**-3,"Ris=");
+Ro=re+((RS*RTH)/(RS+RTH))/B;
+disp('ohm',Ro,"Ro=");
+Vin=VS*Ris/(RS+Ris);
+disp('mV',Vin*10**3,"Vin=");
diff --git a/1658/CH19/EX19.2/Ex19_2.sce b/1658/CH19/EX19.2/Ex19_2.sce new file mode 100755 index 000000000..eb0525907 --- /dev/null +++ b/1658/CH19/EX19.2/Ex19_2.sce @@ -0,0 +1,15 @@ +clc;
+//e.g 19.2
+Ri=2.5*10**3;
+Av=200;
+Vs=5*10**-3;
+beta=50;
+ib=(Vs/Ri)
+disp('microA',ib*10**6,"ib=");
+ic=beta*ib;
+disp('microA',ic*10**6,"ic=");
+Ai=beta;
+Ap=Ai*Av;
+disp(Ap);
+Gp=10*log10(Ap);
+disp('dB',Gp*1,"Gp=");
diff --git a/1658/CH19/EX19.3/Ex19_3.sce b/1658/CH19/EX19.3/Ex19_3.sce new file mode 100755 index 000000000..92c0b92b7 --- /dev/null +++ b/1658/CH19/EX19.3/Ex19_3.sce @@ -0,0 +1,21 @@ +clc;
+//e.g 19.3
+Vcc=20;
+Rc=5*10**3;
+Re=1*10**3;
+Rb=100*10**3;
+beta=150;
+Vbe=0.7;
+Ic=Vcc/(Re+(Rb/beta));
+disp('mA',Ic*10**3,"Ic=");
+Ie=Ic;
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta*(re+Re);
+disp('kohm',Ri*10**-3,"Ri=");
+Ris=(Rb*Ri)/(Rb+Ri);
+disp('kohm',Ris*10**-3,"Ris=");
+Av=Rc/Re;
+disp(Av);
+Gp=10*log10(Av);
+disp('dB',Gp*1,"Gp=");
diff --git a/1658/CH19/EX19.4/Ex19_4.sce b/1658/CH19/EX19.4/Ex19_4.sce new file mode 100755 index 000000000..e5f31b263 --- /dev/null +++ b/1658/CH19/EX19.4/Ex19_4.sce @@ -0,0 +1,21 @@ +clc;
+//e.g 19.4
+Vcc=12;
+Rc=10*10**3;
+Re=1*10**3;
+Rb=500*10**3;
+beta=50;
+Ic=Vcc/(Re+(Rb/beta));
+disp('mA',Ic*10**3,"Ic=");
+Ie=Ic;
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta*re;
+disp('ohm',Ri*1,"Ri=");
+Ris=(Rb*Ri)/(Rb+Ri);
+disp('ohm',Ris*1,"Ris=");
+R0=Rc;
+Av=R0/re;
+disp(Av);
+Av=Rc/Re;
+disp(Av);
diff --git a/1658/CH19/EX19.5/Ex19_5.sce b/1658/CH19/EX19.5/Ex19_5.sce new file mode 100755 index 000000000..9e5bb7c8f --- /dev/null +++ b/1658/CH19/EX19.5/Ex19_5.sce @@ -0,0 +1,30 @@ +clc;
+//e.g 19.5
+Vcc=30;
+Rc=10*10**3;
+RL=3.3*10**3;
+R1=47*10**3;
+R2=15*10**3;
+Re=8.2*10**3;
+beta=200;
+Vs=5*10**-3;
+Vbe=0.7;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('10^3ohm',Rth*10**-3,"Rth=");
+Ie=(Vth-Vbe)/(Re+(Rth/beta));
+disp('mA',Ie*10**3,"Ie=");
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+rl=(Rc*RL)/(Rc+RL);
+disp('Kohm',rl*10**-3,"rl=");
+Av=rl/re;
+disp(Av);
+Vin=5;
+V0=Av*Vin
+disp('mV',V0*1,"V0=");
+Ri=beta*re;
+disp('Kohm',Ri*10**-3,"Ri=");
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('Kohm',Ris*10**-3,"Ris=");
diff --git a/1658/CH19/EX19.6/Ex19_6.sce b/1658/CH19/EX19.6/Ex19_6.sce new file mode 100755 index 000000000..63f34253b --- /dev/null +++ b/1658/CH19/EX19.6/Ex19_6.sce @@ -0,0 +1,33 @@ +clc;
+//e.g 19.6
+Vcc=10;
+Rc=5*10**3;
+Re=1*10**3;0
+RL=50*10**3;
+R1=50*10**3;
+R2=10*10**3;
+Rs=600;
+beta=50;
+Vs=10*10**-3;
+Vbe=0.7;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('10^3ohm',Rth*10**-3,"Rth=");
+Ie=(Vth-Vbe)/(Re+(Rth/beta));
+disp('mA',Ie*10**3,"Ie=");
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta*re;
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('ohm',Ris*1,"Ris=");
+rl=(Rc*RL)/(Rc+RL);
+disp('Kohm',rl*10**-3,"rl=");
+Av=rl/re;
+disp(Av);
+Vin=(Vs*Ris)/(Ris+Rs);
+disp('mV',Vin*10**3,"Vin=");
+V0=Av*Vin;
+disp('mV',V0*1,"V0=");
+Avs=(Av*Vin)/Vs;
+disp(Avs);
diff --git a/1658/CH19/EX19.7/Ex19_7.sce b/1658/CH19/EX19.7/Ex19_7.sce new file mode 100755 index 000000000..31c2184fe --- /dev/null +++ b/1658/CH19/EX19.7/Ex19_7.sce @@ -0,0 +1,25 @@ +clc;
+//e.g 19.7
+Vcc=-18;
+Rc=4.3*10**3;
+Re=1*10**3;0
+RL=3*10**3;
+R1=39*10**3;
+R2=8.2*10**3;
+beta1=200;
+Vbe=-0.7;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('kohm',Rth*10**-3,"Rth=");
+Ie=(Vth-Vbe)/(Re+(Rth/beta1));
+disp('mA',Ie*10**3,"Ie=");
+re1=(30*10**-3)/(-Ie);
+disp('ohm',re1*1,"re1=");
+Ri=beta1*re;
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('kohm',Ris*10**-3,"Ris=");
+re=(Rc*RL)/(Rc+RL);
+disp('Kohm',re*10**-3,"re=");
+Av=re/re1;
+disp(Av);
diff --git a/1658/CH19/EX19.8/Ex19_8.sce b/1658/CH19/EX19.8/Ex19_8.sce new file mode 100755 index 000000000..4415d52cb --- /dev/null +++ b/1658/CH19/EX19.8/Ex19_8.sce @@ -0,0 +1,30 @@ +clc;
+//e.g 19.8
+Vcc=20;
+Rc=5.7*10**3;
+Re=1*10**3;
+R1=100*10**3;
+R2=10*10**3;
+Rs=100;
+beta1=100;
+Vbe=0.7;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('Kohm',Rth*10**-3,"Rth=");
+Ie=(Vth-Vbe)/(Re+(Rth/beta1));
+disp('mA',Ie*10**3,"Ie=");
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta1*re;
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('ohm',Ris*1,"Ris=");
+rl=Rc;
+Av=rl/re;
+disp(Av);
+Vin=(Vs*Ris)/(Ris+Rs);
+disp('mV',Vin*1,"Vin=");
+V0=Av*Vin;
+disp('V',V0*10**-3,"V0=");
+Avs=(Av*Vin)/Vs;
+disp(Avs);
diff --git a/1658/CH19/EX19.9/Ex19_9.sce b/1658/CH19/EX19.9/Ex19_9.sce new file mode 100755 index 000000000..c270dbd14 --- /dev/null +++ b/1658/CH19/EX19.9/Ex19_9.sce @@ -0,0 +1,37 @@ +clc;
+//e.g 19.9
+Vcc=10;
+Rc=5*10**3;
+RE1=500;
+R1=50*10**3;
+R2=10*10**3;
+Rs=600;
+rE=500;
+beta1=50;
+Vbe=0.7;
+vs=100*10**-3;
+Rl=50*10**3;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('10^3ohm',Rth*10**-3,"Rth=");
+RE=RE1+rE;
+disp('ohm',RE*1,"RE=");
+Ie=(Vth-Vbe)/(RE+(Rth/beta1));
+disp('mA',Ie*10**3,"Ie=");
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta1*(re+rE);
+disp('Kohm',Ri*10**-3,"Ri=");
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('ohm',Ris*1,"Ris=");
+rl=(Rc*Rl)/(Rc+Rl)
+disp('kohm',rl*10**-3,"rl=");
+Av=rl/(re+rE);
+disp(Av);
+VinBYVs=(Ris)/(Ris+Rs);
+disp('V',VinBYVs*1,"VinBYVs=");
+Avs=Av*VinBYVs;
+disp(Avs);
+V0=Avs*vs;
+disp('mV',V0*10^3,"V0=");//answer printed in the book is wrong(variation in decimal point)
|