diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3630 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3630')
225 files changed, 2199 insertions, 0 deletions
diff --git a/3630/CH10/EX10.1/Ex10_1.sce b/3630/CH10/EX10.1/Ex10_1.sce new file mode 100644 index 000000000..2e460d438 --- /dev/null +++ b/3630/CH10/EX10.1/Ex10_1.sce @@ -0,0 +1,14 @@ +clc;
+R1=20000; //Ohm
+R2=20000; //Ohm
+Vcc=10; //Volt
+Vb=Vcc*(R2/(R1+R2)); //Volt
+Ve=Vb-0.7; //Volt
+Re=5000; //Ohm
+Ie=Ve/Re; //Ampere
+Vceq=Vcc-Ve; //Volt
+disp('V',Vb,"Vb=");//The answers vary due to round off error
+disp('V',Ve,"Ve=");//The answers vary due to round off error
+disp('A',Ie,"Ie=");//The answers vary due to round off error
+disp('V',Vceq,"Vceq=");//The answers vary due to round off error
+
diff --git a/3630/CH10/EX10.10/Ex10_10.sce b/3630/CH10/EX10.10/Ex10_10.sce new file mode 100644 index 000000000..f373fd40a --- /dev/null +++ b/3630/CH10/EX10.10/Ex10_10.sce @@ -0,0 +1,19 @@ +clc;
+Vee=5; //Volt
+Vbe=0.7; //Volt
+Re=13000; //Ohm
+Ie=0.000331 //Ampere
+re=0.025/Ie; //Ohm
+Zin=re; //Ohm
+Rc=10000; //Ohm
+Zout=Rc; //Ohm
+RL=5100; //Ohm
+rc=(RL*Rc)/(RL+Rc); //Ohm
+Av=rc/re;
+Ai=rc/RL;
+disp('',Av,"Av=");
+disp('',Ai,"Ai=");
+disp('Ohm',Zin,"Zin=");//The answers vary due to round off error
+
+disp('Ohm',Zout,"Zout=");//The answers vary due to round off error
+
diff --git a/3630/CH10/EX10.2/Ex10_2.png b/3630/CH10/EX10.2/Ex10_2.png Binary files differnew file mode 100644 index 000000000..1341079a8 --- /dev/null +++ b/3630/CH10/EX10.2/Ex10_2.png diff --git a/3630/CH10/EX10.2/Ex10_2.sce b/3630/CH10/EX10.2/Ex10_2.sce new file mode 100644 index 000000000..46a32b6ab --- /dev/null +++ b/3630/CH10/EX10.2/Ex10_2.sce @@ -0,0 +1,14 @@ +clc;
+Vcc=0.002; //Volt
+Re=5000; //Ohm
+Icsat=Vcc/Re; //Ampere
+Vceoff=Vcc; //Volt
+disp(' Amperes',Icsat,"Icsat=");
+disp('Volt',Vceoff,"Vceoff=");
+T1=0:2:10 //Here on X-axis T1=Vce=10V
+T2=2:-0.4:0; //Here on the Y-Axis T2=Ic=2miliAmpere
+plot(T1,T2)
+xlabel('Vce(V)')
+ylabel('Ic(mA)')
+
+
diff --git a/3630/CH10/EX10.3/Ex10_3.sce b/3630/CH10/EX10.3/Ex10_3.sce new file mode 100644 index 000000000..9378b2c92 --- /dev/null +++ b/3630/CH10/EX10.3/Ex10_3.sce @@ -0,0 +1,10 @@ +clc;
+Re=2000; //Ohm
+RL=5000; //Ohm
+rE=(Re*RL)/(Re+RL); //Ohm
+Ie=0.031; //Ampere
+re=0.025/Ie; //Ohm
+Av=rE/(rE+re);
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
+
diff --git a/3630/CH10/EX10.4/Ex10_4.sce b/3630/CH10/EX10.4/Ex10_4.sce new file mode 100644 index 000000000..1aaa56d23 --- /dev/null +++ b/3630/CH10/EX10.4/Ex10_4.sce @@ -0,0 +1,6 @@ +clc;
+//power gain of circuit
+Ai=2.7;
+Av=0.994;
+Ap=Ai*Av;
+disp(' ',Ap,"Ap=");
diff --git a/3630/CH10/EX10.5/Ex10_5.sce b/3630/CH10/EX10.5/Ex10_5.sce new file mode 100644 index 000000000..a3815403e --- /dev/null +++ b/3630/CH10/EX10.5/Ex10_5.sce @@ -0,0 +1,11 @@ +clc;
+re=8.1; //Ohm
+rE=1430; //ohm
+hfc=220;
+Zbase=hfc*(re+rE); //Ohm
+R1=25000; //Ohm
+R2=33000; //Ohm
+Req=(R1*R2)/(R1+R2); //Ohm
+Zin=(Zbase*Req)/(Zbase+Req);//Ohm
+disp('kohm',Zin/1000,"Zin=");//The answers vary due to round off error
+
diff --git a/3630/CH10/EX10.6/Ex10_6.sce b/3630/CH10/EX10.6/Ex10_6.sce new file mode 100644 index 000000000..d30f4773d --- /dev/null +++ b/3630/CH10/EX10.6/Ex10_6.sce @@ -0,0 +1,13 @@ +clc;
+hic=4000;
+hfc=200;
+re=hic/hfc; //Ohm
+R1=3000; //Ohm
+R2=4700; //Ohm
+Req=(R1*R2)/(R1+R2); //Ohm
+Rs=600; //Ohm
+Rth=(Req*Rs)/(Req+Rs);//Ohm
+Re=390;//Ohm
+R=(re+(Rth/hfc));//Ohm
+Zout=(Re*R)/(Re+R);//Ohm
+disp('Ohm',Zout,"Zout=");//The answers vary due to round off error
diff --git a/3630/CH10/EX10.7/Ex10_7.sce b/3630/CH10/EX10.7/Ex10_7.sce new file mode 100644 index 000000000..a1aff7713 --- /dev/null +++ b/3630/CH10/EX10.7/Ex10_7.sce @@ -0,0 +1,19 @@ +clc;
+hic=650; //Ohm
+hfc=150;
+re=hic/hfc; //Ohm
+Re=2000; //Ohm
+RL=8000; //Ohm
+rE=(Re*RL)/(Re+RL); //Ohm
+Zbase=hfc*(re+rE); //Ohm
+R1=190000; //ohm
+Zin1=(R1*Zbase)/(R1+Zbase);//Ohm//for emitter feedback
+R1=30000; //Ohm
+R2=39000; //Ohm
+Req=(R1*R2)/(R1+R2); //Ohm
+Zin2=(Zbase*Req)/(Zbase+Req);//Ohm //for voltage divider biased
+disp('kOhm',Zin1/1000,"Zin1=");
+disp('kOhm',Zin2/1000,"Zin2=");
+
+
+
diff --git a/3630/CH10/EX10.8/Ex10_8.sce b/3630/CH10/EX10.8/Ex10_8.sce new file mode 100644 index 000000000..c14db48c2 --- /dev/null +++ b/3630/CH10/EX10.8/Ex10_8.sce @@ -0,0 +1,15 @@ +clc;
+R2=120; //Ohm
+R1=120; //Ohm
+Vcc=10; //Volt
+Vb=Vcc*(R2/(R1+R2));//Volt
+Re=3300; //Ohm
+Vbe=0.7; //Volt
+Ie=(Vb-2*Vbe)/Re; //Amperes
+hfc1=70;
+hfc2=70;
+RE=3300; //Ohm
+Rin1=hfc1*hfc2*RE; //Ohm//hfe=70 for current (Icq)
+disp('MegaOhm',Rin1/1000000,"Rin1=");//The answers vary due to round off error
+
+
diff --git a/3630/CH10/EX10.9/Ex10_9.sce b/3630/CH10/EX10.9/Ex10_9.sce new file mode 100644 index 000000000..9d1193ba1 --- /dev/null +++ b/3630/CH10/EX10.9/Ex10_9.sce @@ -0,0 +1,23 @@ +clc;
+Re=3300; //Ohm
+RL=1000; //Ohm
+rE=(Re*RL)/(Re+RL); //Ohm
+hic1=40000; //Ohm
+hfc1=120;
+hic2=3000; //Ohm
+hfc2=150;
+Zbase=hic1+hfc1*(hic2+(hfc2*rE));//Ohm
+R1=120000;//Ohm
+R2=120000; //Ohm
+Req=(R1*R2)/(R1+R2);//Ohm
+Zin=(Zbase*Req)/(Zbase+Req);//Ohm//input impedance
+re1=hic1/hfc1;//Ohm
+re2=hic2/hfc2;//Ohm
+R1=120000;//Ohm
+R2=120000;//Ohm
+Req=(R1*R2)/(R1+R2);//Ohm
+Rs=3300;//Ohm
+Rth=(Req*Rs)/(Req+Rs);//Ohm
+Zout=re2+(re1+(Rth/hfc1))/hfc2;//Ohm//output impedance
+Ai=(hfc1*hfc2)*((Zin*rE)/(Zbase*RL));//current gain
+disp('',Ai,"Ai=");Answer variation due to round of error
diff --git a/3630/CH11/EX11.1/Ex11_1.sce b/3630/CH11/EX11.1/Ex11_1.sce new file mode 100644 index 000000000..f44c5ab9a --- /dev/null +++ b/3630/CH11/EX11.1/Ex11_1.sce @@ -0,0 +1,8 @@ +clc;
+Vceq=5.72; //Volt
+PP1=2*Vceq; //Vpp(peak to peak voltage)
+Icq=0.103; //Ampere
+rc=25.7; //Ohm
+PP2=2*Icq*rc; //Volt
+disp('Vpp',PP1,"PP1=");//The answers vary due to round off error
+disp('Vpp',PP2,"PP2=");//The answers vary due to round off error
diff --git a/3630/CH11/EX11.10/Ex11_10.sce b/3630/CH11/EX11.10/Ex11_10.sce new file mode 100644 index 000000000..3a8249883 --- /dev/null +++ b/3630/CH11/EX11.10/Ex11_10.sce @@ -0,0 +1,13 @@ +clc;
+Vcc=15; //Volt
+R1=1000; //Ohm
+R2=170; //Ohm
+R3=1000; //Ohm
+I1=Vcc/(R1+R2+R3); //Ampere
+RL=10; //Ohm
+Icave=Vcc/(2*3.14*RL);//Ampere
+Icc=Icave+I1; //Ampere
+Ps=Vcc*Icc; //Watt
+disp('W',Ps,"Ps=");//The answers vary due to round off error
+
+
diff --git a/3630/CH11/EX11.11/Ex11_11.sce b/3630/CH11/EX11.11/Ex11_11.sce new file mode 100644 index 000000000..f3e160687 --- /dev/null +++ b/3630/CH11/EX11.11/Ex11_11.sce @@ -0,0 +1,6 @@ +clc;
+PP=15; //Vpp(peak to peak voltage Volt)
+RL=10; //Ohm
+PLmax=PP^2/(8*RL); //Watt
+disp('W',PLmax,"PLmax=");//The answers vary due to round off error
+
diff --git a/3630/CH11/EX11.12/Ex11_12.sce b/3630/CH11/EX11.12/Ex11_12.sce new file mode 100644 index 000000000..10b51551f --- /dev/null +++ b/3630/CH11/EX11.12/Ex11_12.sce @@ -0,0 +1,6 @@ +clc;
+PL=2.81; //Watt
+Ps=3.69; //Watt
+N=(PL/Ps)*100;
+disp('%',N,"N=");//The answers vary due to round off error
+
diff --git a/3630/CH11/EX11.13/Ex11_13.sce b/3630/CH11/EX11.13/Ex11_13.sce new file mode 100644 index 000000000..d672dcb03 --- /dev/null +++ b/3630/CH11/EX11.13/Ex11_13.sce @@ -0,0 +1,15 @@ +clc;
+Vppout=7.5; //Volt
+RL=10; //Ohm
+Iceq=0.119; //Ampere
+Icave=Vppout/(2*3.14*RL); //Ampere
+I1=0.00691; //Ampere
+Icc=Icave+I1; //Ampere
+Vcc=15; //Volt
+Ps=Vcc*Icc; //Watt
+PLmax=Vppout^2/(8*RL); //Watt
+N=(PLmax/Ps)*100;
+disp('%',N,"N=");//The answers vary due to round off error
+
+
+
diff --git a/3630/CH11/EX11.14/Ex11_14.sce b/3630/CH11/EX11.14/Ex11_14.sce new file mode 100644 index 000000000..6582888ef --- /dev/null +++ b/3630/CH11/EX11.14/Ex11_14.sce @@ -0,0 +1,6 @@ +clc;
+Icq=0.001; //Ampere
+Vceq=5.3; //Volt
+Pd=Icq*Vceq; //Watt
+disp('mW',Pd*1000,"Pd=");//The answers vary due to round off error
+
diff --git a/3630/CH11/EX11.15/Ex11_15.sce b/3630/CH11/EX11.15/Ex11_15.sce new file mode 100644 index 000000000..0ba6b125b --- /dev/null +++ b/3630/CH11/EX11.15/Ex11_15.sce @@ -0,0 +1,7 @@ +clc;
+Vpp=12; //Volt
+RL=8; //Ohm
+Pd=Vpp^2/(40*RL); //Watt
+disp('mW',Pd*1000,"Pd=");//The answers vary due to round off error
+
+
diff --git a/3630/CH11/EX11.2/Ex11_2.sce b/3630/CH11/EX11.2/Ex11_2.sce new file mode 100644 index 000000000..f1167ab3e --- /dev/null +++ b/3630/CH11/EX11.2/Ex11_2.sce @@ -0,0 +1,9 @@ +clc;
+Vcc=12; //Volt
+R1=300; //Ohm
+R2=100; //ohm
+I1=Vcc/(R1+R2); //Ampere
+Icq=0.103; //Ampere
+Icc=Icq+I1; //Ampere
+Ps=Vcc*Icc; //Watt
+disp('W',Ps,"Ps=");//The answers vary due to round off error
diff --git a/3630/CH11/EX11.3/Ex11_3.sce b/3630/CH11/EX11.3/Ex11_3.sce new file mode 100644 index 000000000..29dabc71d --- /dev/null +++ b/3630/CH11/EX11.3/Ex11_3.sce @@ -0,0 +1,5 @@ +clc;
+VL=10.6; //volt
+RL=20; //Ohm
+PL=VL^2/RL; //Watt
+disp('W',PL,"PL=");//The answers vary due to round off error
diff --git a/3630/CH11/EX11.4/Ex11_4.sce b/3630/CH11/EX11.4/Ex11_4.sce new file mode 100644 index 000000000..3b87f17d5 --- /dev/null +++ b/3630/CH11/EX11.4/Ex11_4.sce @@ -0,0 +1,5 @@ +clc;
+Vpk=20; //Volt
+RL=75; //Ohm
+PL=Vpk^2/(2*RL);//Watt
+disp('W',PL,"PL=");//The answers vary due to round off error
diff --git a/3630/CH11/EX11.5/Ex11_5.sce b/3630/CH11/EX11.5/Ex11_5.sce new file mode 100644 index 000000000..068dbc4dc --- /dev/null +++ b/3630/CH11/EX11.5/Ex11_5.sce @@ -0,0 +1,5 @@ +clc;
+PP=36; //Vpp
+RL=75; //Ohm
+PLmax=PP^2/(8*RL); //Watt
+disp('W',PLmax,"PLmax=");//The answers vary due to round off error
diff --git a/3630/CH11/EX11.6/Ex11_6.sce b/3630/CH11/EX11.6/Ex11_6.sce new file mode 100644 index 000000000..591ce7a5e --- /dev/null +++ b/3630/CH11/EX11.6/Ex11_6.sce @@ -0,0 +1,8 @@ +clc;
+PP=5.29; //Vpp(Volt peak to peak))
+RL=75; //Ohm
+PL=PP^2/(8*RL);//Watt
+Ps=1.6; //Watt
+N=(PL/Ps)*100;
+disp('%',N,"N=");//The answers vary due to round off error
+
diff --git a/3630/CH11/EX11.7/Ex11_7.sce b/3630/CH11/EX11.7/Ex11_7.sce new file mode 100644 index 000000000..38182e23e --- /dev/null +++ b/3630/CH11/EX11.7/Ex11_7.sce @@ -0,0 +1,20 @@ +Vcc=10; //Volt
+R1=470; //Ohm
+R2=110; //Ohm
+I1=Vcc/(R1+R2); //Ampere
+Icq=0.0976; //Ampere
+Icc=Icq+I1; //Ampere
+Ps=Vcc*Icc; //Watt
+Vceq=8.63; //Volt
+PP1=2*Vceq; //Volt
+rc=80; //Ohm
+PP2=2*Icq*rc; //Volt
+Ns=1;
+Np=4;
+Vpp=(Ns/Np)*PP2; //Volt
+RL=5;
+PLmax=Vpp^2/(8*RL);//Watt//maximum load power
+Ps=1.15 //Watt
+H=(PLmax/Ps)*100;
+disp('%',H,"H=");//The answers vary due to round off error
+
diff --git a/3630/CH11/EX11.8/Ex11_8.sce b/3630/CH11/EX11.8/Ex11_8.sce new file mode 100644 index 000000000..7591d6323 --- /dev/null +++ b/3630/CH11/EX11.8/Ex11_8.sce @@ -0,0 +1,10 @@ +clc;
+Vcc=10; //volt
+RL=10; //ohm
+Icsat=Vcc/(2*RL); //Ampere
+Vceoff=Vcc/2; //Volt
+disp('mA',Icsat*1000,"Icsat=");//The answers vary due to round off error
+
+disp('V',Vceoff,"Vceoff=");//The answers vary due to round off error
+
+
diff --git a/3630/CH11/EX11.9/Ex11_9.sce b/3630/CH11/EX11.9/Ex11_9.sce new file mode 100644 index 000000000..78a9ec39d --- /dev/null +++ b/3630/CH11/EX11.9/Ex11_9.sce @@ -0,0 +1,7 @@ +clc;
+Vcc=12; //volt
+PP=Vcc; //volt
+RL=8; //ohm
+PLmax=PP^2/(8*RL); //watt
+disp('W',PLmax,"PLmax=");//The answers vary due to round off error
+
diff --git a/3630/CH12/EX12.1/Ex12_1.sce b/3630/CH12/EX12.1/Ex12_1.sce new file mode 100644 index 000000000..108bae9df --- /dev/null +++ b/3630/CH12/EX12.1/Ex12_1.sce @@ -0,0 +1,10 @@ +clc;
+Idss=0.003;
+Vgs=-2;
+Vgsoff=-6;
+Id=Idss*(1-(Vgs/Vgsoff))^2;
+disp('mA',Id*1000,"Id=");//The answers vary due to round off error
+
+
+
+
diff --git a/3630/CH12/EX12.10/Ex12_10.sce b/3630/CH12/EX12.10/Ex12_10.sce new file mode 100644 index 000000000..925a6737c --- /dev/null +++ b/3630/CH12/EX12.10/Ex12_10.sce @@ -0,0 +1,9 @@ +clc;
+Vdd=30;
+Rd=1100;
+Rs=10000;
+Idq=[0.0015 0.002];
+Vdsqmax=Vdd-Idq(1,1)*(Rd+Rs);
+Vdsqmin=Vdd-Idq(1,2)*(Rd+Rs);
+disp('V',Vdsqmax,"Vsdqmax=")
+disp('V',Vdsqmin,"Vsdqmin=")
diff --git a/3630/CH12/EX12.11/Ex12_11.sce b/3630/CH12/EX12.11/Ex12_11.sce new file mode 100644 index 000000000..e9fe3b1a4 --- /dev/null +++ b/3630/CH12/EX12.11/Ex12_11.sce @@ -0,0 +1,10 @@ +clc;
+Vgs1=-3;
+Vgs2=-5;
+Gm0=0.006;
+Vgsoff=-8;
+Gm1=Gm0*(1-(Vgs1/Vgsoff));
+Gm2=Gm0*(1-(Vgs2/Vgsoff));
+disp('uS',Gm1*1000000,"Gm1=")
+disp('uS',Gm2*1000000,"Gm2=")
+
diff --git a/3630/CH12/EX12.12/Ex12_12.sce b/3630/CH12/EX12.12/Ex12_12.sce new file mode 100644 index 000000000..56f16d100 --- /dev/null +++ b/3630/CH12/EX12.12/Ex12_12.sce @@ -0,0 +1,18 @@ +Vgs1=-5;
+Vgs2=-0.75;
+Gm01=0.006;
+Gm02=0.002;
+Vgsoff1=-8;
+Vgsoff2=-2;
+Gm1=Gm01*(1-(Vgs1/Vgsoff1));
+Gm2=Gm02*(1-(Vgs2/Vgsoff2));
+RD=8200;
+RL=100000;
+rD=(RD*RL)/(RD+RL);
+Avmax=rD*Gm1;
+Avmin=rD*Gm2;
+disp(' ',Avmax,"Avmax=")//The answers vary due to round off error
+disp(' ',Avmin,"Avmin=")//The answers vary due to round off error
+
+
+
diff --git a/3630/CH12/EX12.13/Ex12_13.sce b/3630/CH12/EX12.13/Ex12_13.sce new file mode 100644 index 000000000..2be84c28d --- /dev/null +++ b/3630/CH12/EX12.13/Ex12_13.sce @@ -0,0 +1,12 @@ +clc;
+rD=7580;
+rS=2200;
+Gm1=1/444;
+Gm2=1/1000;
+Avmax=rD/(rS+(1/Gm1));
+Avmin=rD/(rS+(1/Gm2));
+disp(' ',Avmax,"Avmax=")//The answers vary due to round off error
+disp(' ',Avmin,"Avmin=")//The answers vary due to round off error
+
+
+
diff --git a/3630/CH12/EX12.14/Ex12_14.sce b/3630/CH12/EX12.14/Ex12_14.sce new file mode 100644 index 000000000..8b6b2a10c --- /dev/null +++ b/3630/CH12/EX12.14/Ex12_14.sce @@ -0,0 +1,12 @@ +clc;
+Hfe=200;
+re=22.7;
+R1=10000;
+R2=2200;
+Req=(R1*R2)/(R1+R2);
+X1=Hfe*re;
+ZinBJT=(Req*X1)/(Req+X1);
+ZinJFET=(R1*R2)/(R1+R2);
+disp('kOhm',ZinBJT/1000,"ZinBJT=")//The answers vary due to round off error
+disp('kOhm',ZinJFET/1000,"ZinJFET=")//The answers vary due to round off error
+
diff --git a/3630/CH12/EX12.15/Ex12_15.sce b/3630/CH12/EX12.15/Ex12_15.sce new file mode 100644 index 000000000..5aa775385 --- /dev/null +++ b/3630/CH12/EX12.15/Ex12_15.sce @@ -0,0 +1,11 @@ +RD=8200;
+Zin=1290;
+rD1=(RD*Zin)/(RD+Zin);
+Gm=0.002;
+AvBJT=Gm*rD1;
+Zin=1800;
+rD2=(RD*Zin)/(RD+Zin);
+AvJFET=Gm*rD2;
+disp(' ',AvBJT,"AvBJT=")//The answers vary due to round off error
+disp(' ',AvJFET,"AvJFET=")//The answers vary due to round off error
+
diff --git a/3630/CH12/EX12.16/Ex12_16.sce b/3630/CH12/EX12.16/Ex12_16.sce new file mode 100644 index 000000000..d34f867f5 --- /dev/null +++ b/3630/CH12/EX12.16/Ex12_16.sce @@ -0,0 +1,28 @@ +clc;
+Vgs1=-0.5
+Vgs2=-5;
+Gm01=0.002;
+Gm02=0.006;
+Vgsoff1=-2;
+Vgsoff2=-8;
+Gm1=Gm01*(1-(Vgs1/Vgsoff1));
+Gm2=Gm02*(1-(Vgs2/Vgsoff2));
+Rs=5100;
+RL=20000;
+rS=(Rs*RL)/(Rs+RL);
+Avmin=rS/(rS+(1/Gm1));
+Avmax=rS/(rS+(1/Gm2));
+disp(' ',Avmax,"Avmax=")//The answers vary due to round off error
+disp(' ',Avmin,"Avmin=")//The answers vary due to round off error
+Gm11=1/667;
+Gm22=1/444;
+Zoutmax=(Rs/Gm11)/(Rs+(1/Gm11));
+Zoutmin=(Rs/Gm22)/(Rs+(1/Gm22));
+disp('Ohm',Zoutmax,"Zoutmax=")//The answers vary due to round off error
+disp('Ohm',Zoutmin,"Zoutmin=")//The answers vary due to round off error
+R1=1000000;
+R2=1000000;
+Zin=(R1*R2)/(R1+R2);
+disp('KOhm',Zin/1000,"Zin=")//The answers vary due to round off error
+
+
diff --git a/3630/CH12/EX12.17/Ex12_17.sce b/3630/CH12/EX12.17/Ex12_17.sce new file mode 100644 index 000000000..70782f8db --- /dev/null +++ b/3630/CH12/EX12.17/Ex12_17.sce @@ -0,0 +1,6 @@ +clc;
+yos=0.00005;
+rd=1/yos; //minimum value
+Rd=1000;
+Zout=(Rd*rd)/(Rd+rd);
+disp('Ohm',Zout,"Zout=")//The answers vary due to round off error
diff --git a/3630/CH12/EX12.2/Ex12_2.png b/3630/CH12/EX12.2/Ex12_2.png Binary files differnew file mode 100644 index 000000000..a58efd693 --- /dev/null +++ b/3630/CH12/EX12.2/Ex12_2.png diff --git a/3630/CH12/EX12.2/Ex12_2.sce b/3630/CH12/EX12.2/Ex12_2.sce new file mode 100644 index 000000000..a1d4f163f --- /dev/null +++ b/3630/CH12/EX12.2/Ex12_2.sce @@ -0,0 +1,15 @@ +clc;
+Idss=0.003;
+Vgs=[0 -1 -3 -5];
+Vgsoff=-6;
+Id=zeros(1,5);
+Id(1,1)=Idss*(1-(Vgs(1,1)/Vgsoff))^2;
+Id(1,2)=Idss*(1-(Vgs(1,2)/Vgsoff))^2;
+Id(1,3)=Idss*(1-(Vgs(1,3)/Vgsoff))^2;
+Id(1,4)=Idss*(1-(Vgs(1,4)/Vgsoff))^2;
+Vgs1=[0 -1 -3 -5 -6];
+plot(Vgs1,Id*1000)
+xlabel('Vgs(V)')
+ylabel('Id(mA)')
+
+
diff --git a/3630/CH12/EX12.3/Ex12_3.png b/3630/CH12/EX12.3/Ex12_3.png Binary files differnew file mode 100644 index 000000000..4a5f107c4 --- /dev/null +++ b/3630/CH12/EX12.3/Ex12_3.png diff --git a/3630/CH12/EX12.3/Ex12_3.sce b/3630/CH12/EX12.3/Ex12_3.sce new file mode 100644 index 000000000..28331aacc --- /dev/null +++ b/3630/CH12/EX12.3/Ex12_3.sce @@ -0,0 +1,12 @@ +clc;
+Vgs1=[-6 -4 -2 0];
+Id1=[0 0.556 2.222 5];
+Vgs2=[-0.5 -0.4 -0.2 0];
+Id2=[0 0.04 0.36 1];
+plot(Vgs1,Id1)
+xgrid
+set(gca(),"auto_clear","off")
+plot2d(Vgs2,Id2)
+xlabel('Vgs(V)')
+ylabel('Id(mA)')
+
diff --git a/3630/CH12/EX12.4/Ex12_4.sce b/3630/CH12/EX12.4/Ex12_4.sce new file mode 100644 index 000000000..a07b203fc --- /dev/null +++ b/3630/CH12/EX12.4/Ex12_4.sce @@ -0,0 +1,12 @@ +clc;
+Vgs=-5;
+Vgg=Vgs;
+Idss=0.016;
+Vgsoff=-8;
+Id=Idss*(1-(Vgs/Vgsoff))^2;
+Vdd=10;
+Rd=2200;
+VDS=Vdd-Id*Rd;
+disp('V',Vgs,"Vgs=")
+disp('mA',Id*1000,"Id=")
+disp('V',VDS,"VDS=")
diff --git a/3630/CH12/EX12.7/Ex12_7.sce b/3630/CH12/EX12.7/Ex12_7.sce new file mode 100644 index 000000000..85875fb3e --- /dev/null +++ b/3630/CH12/EX12.7/Ex12_7.sce @@ -0,0 +1,17 @@ +clc;
+//from example 12.7 Idqmax and Idqmin
+Idqmax=0.006;
+Idqmin=0.0015;
+Vdd=10;
+Rs=500;
+Rd=500;
+Vdsqmax=Vdd-Idqmin*(Rs+Rd);
+Vdsqmin=Vdd-Idqmax*(Rs+Rd);
+disp('V',Vdsqmax,"Vsdqmax=")
+disp('V',Vdsqmin,"Vsdqmin=")
+disp('The value of Vdsq will fall between Vdsqmax and Vdsqmin')
+
+
+
+
+
diff --git a/3630/CH12/EX12.8/Ex12_8.png b/3630/CH12/EX12.8/Ex12_8.png Binary files differnew file mode 100644 index 000000000..9724022e3 --- /dev/null +++ b/3630/CH12/EX12.8/Ex12_8.png diff --git a/3630/CH12/EX12.8/Ex12_8.sce b/3630/CH12/EX12.8/Ex12_8.sce new file mode 100644 index 000000000..16c2d7bfa --- /dev/null +++ b/3630/CH12/EX12.8/Ex12_8.sce @@ -0,0 +1,27 @@ +clc;
+R2=1500000;
+R1=1500000;
+Vdd=30;
+Vg=Vdd*(R2/(R1+R2));
+Rs=10000;
+Id=Vg/Rs;
+Vgsoff=-8;
+Idss=0.016;
+Vgs1=-8:1:0;
+Id1=Idss*(1-(Vgs1/Vgsoff)).^2;
+Vgsoff=-2;
+Idss=0.004;
+Vgs2=-2:1:0;
+Id2=Idss*(1-(Vgs2/Vgsoff)).^2;
+plot2d(Vgs1,Id1*1000)
+xgrid
+set(gca(),"auto_clear","off")
+plot2d(Vgs2,Id2*1000)
+set(gca(),"auto_clear","off")
+Vgs3=-6:1:0;
+Id3=((Vgs3.*-0.1)+1.5);
+plot2d(Vgs3,Id3)
+xlabel('Vgs(V)')
+ylabel('Id(mA)')
+xtitle('The voltage -divider dc bias line')
+
diff --git a/3630/CH12/EX12.9/Ex12_9.sce b/3630/CH12/EX12.9/Ex12_9.sce new file mode 100644 index 000000000..58de35897 --- /dev/null +++ b/3630/CH12/EX12.9/Ex12_9.sce @@ -0,0 +1,16 @@ +clc;
+Idqmax=0.002;
+Idqmin=0.0015;
+Vgsmax=-5;
+Vgsmin=-0.5;
+Vdd=30;
+R1=1500000;
+R2=1500000;
+Vg=Vdd*(R2/(R1+R2));
+Vs=Vg-Vgsmax;
+Rs=10000;
+Idq1=Vs/Rs;
+Idq2=(Vg-Vgsmin)/(Rs);
+disp('mA',Idq1*1000,"Idq1=")
+disp('mA',Idq2*1000,"Idq2=")
+disp('Result Is verified', ," ")
diff --git a/3630/CH13/EX13.1/Ex13_1.png b/3630/CH13/EX13.1/Ex13_1.png Binary files differnew file mode 100644 index 000000000..7f993dbfd --- /dev/null +++ b/3630/CH13/EX13.1/Ex13_1.png diff --git a/3630/CH13/EX13.1/Ex13_1.sce b/3630/CH13/EX13.1/Ex13_1.sce new file mode 100644 index 000000000..ef715e187 --- /dev/null +++ b/3630/CH13/EX13.1/Ex13_1.sce @@ -0,0 +1,9 @@ +clc;
+Vgs=-6:1:4;
+Vgsoff=-6;
+Idss=0.001;
+Id=Idss*(1-(Vgs/Vgsoff)).^2;
+plot(Vgs,Id*1000,'r')
+xgrid
+xlabel('Vgs(V)')
+ylabel('Id(mA)')
diff --git a/3630/CH13/EX13.2/Ex13_2.sce b/3630/CH13/EX13.2/Ex13_2.sce new file mode 100644 index 000000000..de8b82b06 --- /dev/null +++ b/3630/CH13/EX13.2/Ex13_2.sce @@ -0,0 +1,12 @@ +Idon=0.01;
+Vgson=10;
+Vgsth=1.5;
+k=Idon/(Vgson-Vgsth)^2;
+Vdd=10;
+R2=1000000;
+R1=1000000;
+Vg=Vdd*(R2/(R1+R2));
+Id=k*((Vg-Vgsth)^2);
+disp('mA',Id*1000,"Id=")//The answers vary due to round off error
+
+
diff --git a/3630/CH13/EX13.3/Ex13_3.sce b/3630/CH13/EX13.3/Ex13_3.sce new file mode 100644 index 000000000..167f683fd --- /dev/null +++ b/3630/CH13/EX13.3/Ex13_3.sce @@ -0,0 +1,8 @@ +clc;
+Vdd=20;
+Id=0.01;
+Rd=1000;
+Vgs=Vdd-Id*Rd;
+disp('V',Vgs,"Vgs=")//The answers vary due to round off error
+
+
diff --git a/3630/CH14/EX14.1/Ex14_1.sce b/3630/CH14/EX14.1/Ex14_1.sce new file mode 100644 index 000000000..07c748d1d --- /dev/null +++ b/3630/CH14/EX14.1/Ex14_1.sce @@ -0,0 +1,7 @@ +clc;
+Fc1=30;
+Fc2=275;
+BW=Fc2-Fc1;
+disp('kHz',BW,"BW=")//The answers vary due to round off error
+
+
diff --git a/3630/CH14/EX14.10/Ex14_10.sce b/3630/CH14/EX14.10/Ex14_10.sce new file mode 100644 index 000000000..8c7b83e05 --- /dev/null +++ b/3630/CH14/EX14.10/Ex14_10.sce @@ -0,0 +1,12 @@ +clc;
+R1=18000;
+R2=4700;
+Hie=600;
+Req=(R1*R2)/(R1+R2);
+Rth=(Req*Hie)/(Req+Hie);
+hfc=201;
+re=22;
+Rout=re+(Rth/hfc);
+Ce=0.00001;
+f1E=1/(2*3.14*Rout*Ce);
+disp('Hz',f1E,"f1E=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.11/Ex14_11.sce b/3630/CH14/EX14.11/Ex14_11.sce new file mode 100644 index 000000000..d174f605e --- /dev/null +++ b/3630/CH14/EX14.11/Ex14_11.sce @@ -0,0 +1,7 @@ +clc;
+Avmid=45;
+fC1=2000;
+f=500;
+deltaAv=20*log10(1/(1+(fC1/f)^2)^0.5);
+AvdB=Avmid+deltaAv;
+disp('dB',AvdB,"AvdB=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.12/Ex14_12.sce b/3630/CH14/EX14.12/Ex14_12.sce new file mode 100644 index 000000000..6613bad97 --- /dev/null +++ b/3630/CH14/EX14.12/Ex14_12.sce @@ -0,0 +1,6 @@ +clc;
+fT=300000000;
+re=2.9;
+//value of cbe
+Cbe=1/(2*3.14*fT*re);
+disp('Farad',Cbe,"Cbe=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.13/Ex14_13.sce b/3630/CH14/EX14.13/Ex14_13.sce new file mode 100644 index 000000000..811014bbb --- /dev/null +++ b/3630/CH14/EX14.13/Ex14_13.sce @@ -0,0 +1,9 @@ +clc;
+Av=120;
+Cbc=0.000000000006;
+CinM=Av*Cbc;
+CoutM=Cbc;
+disp('Farad',CinM,"CinM=")//The answers vary due to round off error
+disp('pFarad',CoutM*1000000000000,"CoutM=")//The answers vary due to round off error
+
+
diff --git a/3630/CH14/EX14.14/Ex14_14.sce b/3630/CH14/EX14.14/Ex14_14.sce new file mode 100644 index 000000000..b427574f9 --- /dev/null +++ b/3630/CH14/EX14.14/Ex14_14.sce @@ -0,0 +1,15 @@ +clc;
+hfe=150;
+rC=4000;
+hie=3000;
+Cbe=0.000000000012
+Cbc=0.000000000006;
+Av=(hfe*rC)/hie;
+CinM=Av*Cbc;
+Rs=500;
+Req=1000;
+Rth=(Req*Rs)/(Req+Rs);
+RX=(Rth*hie)/(Rth+hie);
+f2B=1/(2*3.14*RX*(Cbe+CinM));
+disp('kHz',f2B/1000,"f2B=")//The answers vary due to round off error
+disp('The answers vary due to round off error', ," ")
diff --git a/3630/CH14/EX14.15/Ex14_15.sce b/3630/CH14/EX14.15/Ex14_15.sce new file mode 100644 index 000000000..c37c40972 --- /dev/null +++ b/3630/CH14/EX14.15/Ex14_15.sce @@ -0,0 +1,6 @@ +clc;
+CoutM=0.000000000006;
+CL=0.000000000720;
+rC=4000;
+f2C=1/(2*3.14*rC*(CoutM+CL));
+disp('kHz',f2C/1000,"f2C=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.16/Ex14_16.sce b/3630/CH14/EX14.16/Ex14_16.sce new file mode 100644 index 000000000..769eab17b --- /dev/null +++ b/3630/CH14/EX14.16/Ex14_16.sce @@ -0,0 +1,9 @@ +clc;
+//high input impedance of JFET
+R1=18000;
+R2=4700;
+Rin=(R1*R2)/(R1+R2);
+Rs=600;
+Cc1=0.000001;
+f1G=1/(2*3.14*(Rs+Rin)*Cc1);
+disp('Hz',f1G,"f1G=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.17/Ex14_17.sce b/3630/CH14/EX14.17/Ex14_17.sce new file mode 100644 index 000000000..3f8a6f0d5 --- /dev/null +++ b/3630/CH14/EX14.17/Ex14_17.sce @@ -0,0 +1,9 @@ +clc;
+//high input impedance of JFET
+R1=18000000;
+R2=4700000;
+Rin=(R1*R2)/(R1+R2);
+Rs=600;
+Cc1=0.000001;
+f1G=1/(2*3.14*(Rs+Rin)*Cc1);
+disp('Hz',f1G,"f1G=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.18/Ex14_18.sce b/3630/CH14/EX14.18/Ex14_18.sce new file mode 100644 index 000000000..1a5c00a43 --- /dev/null +++ b/3630/CH14/EX14.18/Ex14_18.sce @@ -0,0 +1,14 @@ +clc;
+//high input impedance of JFET
+R1=1500000;
+R2=650000;
+Rin=(R1*R2)/(R1+R2);
+Rs=1000;
+Cc1=0.00000001;
+f1G=1/(2*3.14*(Rs+Rin)*Cc1);
+Rd=5000;
+RL=10000;
+Cc2=0.0000001;
+f1D=1/(2*3.14*(Rd+RL)*Cc2);
+disp('Hz',f1G,"f1G=")//The answers vary due to round off error
+disp('Hz',f1D,"f1D=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.19/Ex14_19.sce b/3630/CH14/EX14.19/Ex14_19.sce new file mode 100644 index 000000000..95e69f5d8 --- /dev/null +++ b/3630/CH14/EX14.19/Ex14_19.sce @@ -0,0 +1,6 @@ +clc;
+Cgd=0.000000000004;
+Gm=0.0025;
+rD=5600;
+CinM=Cgd*(Gm*rD+1);
+disp('Farad',CinM,"CinM=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.2/Ex14_2.sce b/3630/CH14/EX14.2/Ex14_2.sce new file mode 100644 index 000000000..5cde8ef1d --- /dev/null +++ b/3630/CH14/EX14.2/Ex14_2.sce @@ -0,0 +1,5 @@ +clc;
+fc1=30;
+fc2=275;
+f0=(fc1*fc2)^0.5; //geometric centre frequency
+disp('kHz',f0,"f0=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.20/Ex14_20.sce b/3630/CH14/EX14.20/Ex14_20.sce new file mode 100644 index 000000000..20c5ab5ec --- /dev/null +++ b/3630/CH14/EX14.20/Ex14_20.sce @@ -0,0 +1,19 @@ +clc;
+Rin=454000;
+Rs=1000;
+Rth=(Rin*Rs)/(Rin+Rs);
+Cgd=0.000000000004;
+Gm=0.004;
+rD=3325;
+CinM=Cgd*(Gm*rD+1);
+Cgs=0.000000000005;
+Cg=Cgs+CinM;
+Cg=0.0000000000622;
+f2G=1/(2*3.14*Rth*Cg);
+CoutM=0.000000000004;
+Cds=0.000000000002;
+CL=0.000000000001;
+Cd=CoutM+Cds+CL;
+f2D=1/(2*3.14*rD*Cd);
+disp('MHz',f2G/1000000,"f2G=")//The answers vary due to round off error
+disp('MHz',f2D/1000000,"f2D=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.21/Ex14_21.sce b/3630/CH14/EX14.21/Ex14_21.sce new file mode 100644 index 000000000..12b639a2b --- /dev/null +++ b/3630/CH14/EX14.21/Ex14_21.sce @@ -0,0 +1,10 @@ +clc;
+Crss=0.000000000001;
+Cgd=Crss;
+Ciss=0.000000000005;
+Cgs=Ciss-Crss;
+Coss=0.000000000002;
+Cds=Coss-Crss;
+disp('Farad',Cgd,"Cgd=");
+disp('Farad',Cds,"Cds=");
+disp('Farad',Cgs,"Cgs=");
diff --git a/3630/CH14/EX14.22/Ex14_22.sce b/3630/CH14/EX14.22/Ex14_22.sce new file mode 100644 index 000000000..96aee59c9 --- /dev/null +++ b/3630/CH14/EX14.22/Ex14_22.sce @@ -0,0 +1,4 @@ +clc;
+fC2=500000;
+fC2T=fC2*(2^0.5-1)^0.5;
+disp('kHz',fC2T/1000,"fC2T=");
diff --git a/3630/CH14/EX14.23/Ex14_23.sce b/3630/CH14/EX14.23/Ex14_23.sce new file mode 100644 index 000000000..a3cc73b99 --- /dev/null +++ b/3630/CH14/EX14.23/Ex14_23.sce @@ -0,0 +1,4 @@ +clc;
+fC1=5000;
+fC1T=fC1/(2^0.5-1)^0.5;
+disp('kHz',fC1T/1000,"fC1T=");
diff --git a/3630/CH14/EX14.3/Ex14_3.sce b/3630/CH14/EX14.3/Ex14_3.sce new file mode 100644 index 000000000..795dae859 --- /dev/null +++ b/3630/CH14/EX14.3/Ex14_3.sce @@ -0,0 +1,10 @@ +clc;
+fc1=30;
+fc2=275;
+f0=90.8;
+ratio1=f0/fc1;
+ratio2=fc2/f0;
+disp('Ratio of f0/fc1',ratio1,"ratio1=")//The answers vary due to round off error
+disp('Ratio fof fc2/f0',ratio1,"ratio1=")//The answers vary due to round off error
+
+
diff --git a/3630/CH14/EX14.4/Ex14_4.sce b/3630/CH14/EX14.4/Ex14_4.sce new file mode 100644 index 000000000..6063f64e5 --- /dev/null +++ b/3630/CH14/EX14.4/Ex14_4.sce @@ -0,0 +1,8 @@ +clc;
+f0=60;
+fc2=300;
+fc1=(60)^2/(300);
+BW=fc2-fc1;
+disp('kHz',BW,"BW=")//The answers vary due to round off error
+disp('kHz',fc1,"fc1=")//The answers vary due to round off error
+
diff --git a/3630/CH14/EX14.5/Ex14_5.sce b/3630/CH14/EX14.5/Ex14_5.sce new file mode 100644 index 000000000..da24cff64 --- /dev/null +++ b/3630/CH14/EX14.5/Ex14_5.sce @@ -0,0 +1,8 @@ +clc;
+f0=40;
+fc1=8;
+fc2=(f0)^2/(fc1);
+BW=fc2-fc1;
+disp('kHz',BW,"BW=")//The answers vary due to round off error
+disp('kHz',fc2,"fc2=")//The answers vary due to round off error
+
diff --git a/3630/CH14/EX14.6/Ex14_6.sce b/3630/CH14/EX14.6/Ex14_6.sce new file mode 100644 index 000000000..3346f4cf9 --- /dev/null +++ b/3630/CH14/EX14.6/Ex14_6.sce @@ -0,0 +1,6 @@ +clc;
+Pout=2;
+Pin=0.0001;
+ApdB=10*log10(Pout/Pin);
+disp('dB',ApdB,"ApdB=")//The answers vary due to round off error
+
diff --git a/3630/CH14/EX14.7/Capture.PNG b/3630/CH14/EX14.7/Capture.PNG Binary files differnew file mode 100644 index 000000000..5450971b8 --- /dev/null +++ b/3630/CH14/EX14.7/Capture.PNG diff --git a/3630/CH14/EX14.7/Ex14_7.sce b/3630/CH14/EX14.7/Ex14_7.sce new file mode 100644 index 000000000..384091500 --- /dev/null +++ b/3630/CH14/EX14.7/Ex14_7.sce @@ -0,0 +1,18 @@ +clc;
+Ap1=100; //power gain at stage 1
+Ap2=4; //power gain at stage 2
+Ap3=2; //power gain at stage3
+ApT=Ap1*Ap2*Ap3; //total power gain of a multistage amplifier
+ApTdB=10*log10(ApT); //total power in dB
+Ap1dB=10*log10(Ap1); //power gain at stage 1 in dB
+Ap2dB=10*log10(Ap2); //power gain at stage 2 in dB
+Ap3dB=10*log10(Ap3); //power gain at stage 3 in dB
+ApT1dB=Ap1dB+Ap2dB+Ap3dB; ////total power in dB
+disp('dB',ApT1dB,"ApT1dB=")//The answers vary due to round off error
+
+disp('dB',ApTdB,"ApTdB=")//The answers vary due to round off error
+
+if ApT1dB==ApTdB then
+ disp('Proved total power gain ApT is equal to Ap1(dB)+Ap2(dB)+Ap3(dB).We have shown that you can determine total multistage gain by adding the individual dB power gain values')
+end
+
diff --git a/3630/CH14/EX14.8/Ex14_8.sce b/3630/CH14/EX14.8/Ex14_8.sce new file mode 100644 index 000000000..43cc44487 --- /dev/null +++ b/3630/CH14/EX14.8/Ex14_8.sce @@ -0,0 +1,10 @@ +clc;
+R1=18000;
+R2=4700;
+Hie=4400;
+Req=(R1*R2)/(R1+R2);
+Rin=(Req*Hie)/(Req+Hie);
+Rs=600;
+C=0.000001;
+fB1=1/(2*3.14*(Rs+Rin)*C);
+disp('Hz',fB1,"fB1=")//The answers vary due to round off error
diff --git a/3630/CH14/EX14.9/Ex14_9.sce b/3630/CH14/EX14.9/Ex14_9.sce new file mode 100644 index 000000000..ad1b1105f --- /dev/null +++ b/3630/CH14/EX14.9/Ex14_9.sce @@ -0,0 +1,6 @@ +clc;
+Rc=1500;
+RL=5000;
+C=0.00000022;
+f1C=1/(2*3.14*(Rc+RL)*C);
+disp('Hz',f1C,"f1C=")//The answers vary due to round off error
diff --git a/3630/CH15/EX15.1/Ex15_1.sce b/3630/CH15/EX15.1/Ex15_1.sce new file mode 100644 index 000000000..9d07ee2db --- /dev/null +++ b/3630/CH15/EX15.1/Ex15_1.sce @@ -0,0 +1,7 @@ +clc;
+V1=2;
+V2=[4 0];
+Vdiff1=V2(1,1)-V1;
+Vdiff2=V2(1,2)-V2;
+disp('V',Vdiff1,"Vdiff1=");
+disp('V',Vdiff2,"Vdiff2=");
diff --git a/3630/CH15/EX15.10/Ex15_10.sce b/3630/CH15/EX15.10/Ex15_10.sce new file mode 100644 index 000000000..270c4454a --- /dev/null +++ b/3630/CH15/EX15.10/Ex15_10.sce @@ -0,0 +1,9 @@ +clc;
+funity=15000000;
+Acl=500;
+fc=funity/Acl;
+BW=fc;
+fc1=200000;
+AcL=funity/fc1;
+disp('kHz',fc/1000,"fc=");//The answers vary due to round off error
+disp('',AcL,"AcL=");//The answers vary due to round off error
diff --git a/3630/CH15/EX15.12/Ex15_12.sce b/3630/CH15/EX15.12/Ex15_12.sce new file mode 100644 index 000000000..b4b253771 --- /dev/null +++ b/3630/CH15/EX15.12/Ex15_12.sce @@ -0,0 +1,5 @@ +clc;
+AoL=150000;
+av=0.005;
+AcL=AoL/(1+(av*AoL));
+disp('',AcL,"AcL=");//The answers vary due to round off error
diff --git a/3630/CH15/EX15.13/Ex15_13.sce b/3630/CH15/EX15.13/Ex15_13.sce new file mode 100644 index 000000000..19edc09fe --- /dev/null +++ b/3630/CH15/EX15.13/Ex15_13.sce @@ -0,0 +1,8 @@ +clc;
+Rf=120000;
+Rin=1500;
+AcL=(Rf/Rin)+1;
+av=1/AcL;
+AoL=150000;
+A=1+av*AoL;
+disp('Feedback factor',A,"A=");//The answers vary due to round off error
diff --git a/3630/CH15/EX15.14/Ex15_14.sce b/3630/CH15/EX15.14/Ex15_14.sce new file mode 100644 index 000000000..1d171e309 --- /dev/null +++ b/3630/CH15/EX15.14/Ex15_14.sce @@ -0,0 +1,9 @@ +clc;
+AcL=151;
+av=1/AcL;
+AoL=180000;
+A=1+av*AoL;
+Zin=5000000;
+Zinf=Zin*A;
+disp('ohm',Zinf,"Zinf=");//The answers vary due to round off error
+
diff --git a/3630/CH15/EX15.15/Ex15_15.sce b/3630/CH15/EX15.15/Ex15_15.sce new file mode 100644 index 000000000..c0710ce50 --- /dev/null +++ b/3630/CH15/EX15.15/Ex15_15.sce @@ -0,0 +1,6 @@ +clc;
+Zout=80;
+avAoL=1180;
+Zoutf=Zout/(1+avAoL);
+disp('mohm',Zoutf*1000 ,"Zoutf=");//The answers vary due to round off error
+
diff --git a/3630/CH15/EX15.2/Ex15_2.sce b/3630/CH15/EX15.2/Ex15_2.sce new file mode 100644 index 000000000..cdaf595ef --- /dev/null +++ b/3630/CH15/EX15.2/Ex15_2.sce @@ -0,0 +1,10 @@ +clc;
+Av=150;
+Vin=0.100;
+Vout=Av*Vin;
+V1=10;
+V2=-10;
+Vpk1=V1-1;
+Vpk2=V2+1;
+disp('V+',Vpk1,"Vpk1=");
+disp('V-',Vpk2,"Vpk1=");
diff --git a/3630/CH15/EX15.3/Ex15_3.sce b/3630/CH15/EX15.3/Ex15_3.sce new file mode 100644 index 000000000..3c9fe3b6f --- /dev/null +++ b/3630/CH15/EX15.3/Ex15_3.sce @@ -0,0 +1,12 @@ +clc;
+Av=200;
+Vout=8;
+Vin=Vout/Av;
+V1=6;
+V2=-6;
+Vpk1=V1-2;
+Vpk2=V2+2;
+disp('V+',Vpk1,"Vpk1=");
+disp('V-',Vpk2,"Vpk1=");
+disp('mVpp',Vin*1000,"Vin=");
+
diff --git a/3630/CH15/EX15.4/Ex15_4.sce b/3630/CH15/EX15.4/Ex15_4.sce new file mode 100644 index 000000000..17a1fdaf5 --- /dev/null +++ b/3630/CH15/EX15.4/Ex15_4.sce @@ -0,0 +1,13 @@ +clc;
+Av=121;
+Vout=4;
+Vin=Vout/Av;
+V1=4;
+V2=-4;
+Vpk1=V1-2;
+Vpk2=V2+2;
+disp('V+',Vpk1,"Vpk1=");
+disp('V-',Vpk2,"Vpk1=");
+disp('mVpp',Vin*1000,"Vin=");
+
+
diff --git a/3630/CH15/EX15.5/Ex15_5.sce b/3630/CH15/EX15.5/Ex15_5.sce new file mode 100644 index 000000000..65629cbbd --- /dev/null +++ b/3630/CH15/EX15.5/Ex15_5.sce @@ -0,0 +1,5 @@ +clc;
+slewrate=500000;
+Vpk=8;
+fmax=slewrate/(2*3.14*Vpk);
+disp('kHz',fmax/1000,"fmax=");
diff --git a/3630/CH15/EX15.6/Ex15_6.sce b/3630/CH15/EX15.6/Ex15_6.sce new file mode 100644 index 000000000..662580636 --- /dev/null +++ b/3630/CH15/EX15.6/Ex15_6.sce @@ -0,0 +1,8 @@ +clc;
+slewrate=500000;
+Vpk=0.001;
+fmax=slewrate/(2*3.14*Vpk);
+disp('Hz',fmax,"fmax=");
+//The provided in the textbook is wrong
+
+
diff --git a/3630/CH15/EX15.7/Ex15_7.sce b/3630/CH15/EX15.7/Ex15_7.sce new file mode 100644 index 000000000..5ec3c1f18 --- /dev/null +++ b/3630/CH15/EX15.7/Ex15_7.sce @@ -0,0 +1,25 @@ +clc;
+Rf=100000;
+Rin=10000;
+AcL=Rf/Rin;
+Zin=Rin;
+Acm=0.001;
+CMRR=AcL/Acm;
+Vin=1;
+Vout=AcL*Vin;
+slewrate=500000;
+Vpk=5;
+fmax=slewrate/(2*3.14*Vpk);
+disp(' ',AcL,"AcL=");//The answers vary due to round off error
+
+disp(' ',CMRR,"CMRR=");//The answers vary due to round off error
+
+disp('Vpp',Vout,"Vout=");//The answers vary due to round off error
+
+disp('kHz',fmax/1000,"fmax=");//The answers vary due to round off error
+
+
+
+
+
+
diff --git a/3630/CH15/EX15.8/Ex15_8.sce b/3630/CH15/EX15.8/Ex15_8.sce new file mode 100644 index 000000000..7da991c84 --- /dev/null +++ b/3630/CH15/EX15.8/Ex15_8.sce @@ -0,0 +1,24 @@ +clc;
+Rf=100000;
+Rin=10000;
+AcL=(Rf/Rin)+1;
+Acm=0.001;
+CMRR=AcL/Acm;
+Vin=1;
+Vout=AcL*Vin;
+slewrate=500000;
+Vpk=5.5;
+fmax=slewrate/(2*3.14*Vpk);
+disp(' ',AcL,"AcL=");//The answers vary due to round off error
+
+disp(' ',CMRR,"CMRR=");//The answers vary due to round off error
+
+disp('Vpp',Vout,"Vout=");//The answers vary due to round off error
+
+disp('kHz',fmax/1000,"fmax=");//The answers vary due to round off error
+
+
+
+
+
+
diff --git a/3630/CH15/EX15.9/Ex15_9.sce b/3630/CH15/EX15.9/Ex15_9.sce new file mode 100644 index 000000000..ef8476928 --- /dev/null +++ b/3630/CH15/EX15.9/Ex15_9.sce @@ -0,0 +1,16 @@ +clc;
+AcL=1;
+Acm=0.001;
+CMRR=AcL/Acm;
+slewrate=500000;
+Vpk=3;
+fmax=slewrate/(2*3.14*Vpk);
+disp(' ',AcL,"AcL=");//The answers vary due to round off error
+disp(' ',CMRR,"CMRR=");//The answers vary due to round off error
+disp('kHz',fmax/1000,"fmax=");//The answers vary due to round off error
+
+
+
+
+
+
diff --git a/3630/CH16/EX16.1/Ex16_1.sce b/3630/CH16/EX16.1/Ex16_1.sce new file mode 100644 index 000000000..9e218b189 --- /dev/null +++ b/3630/CH16/EX16.1/Ex16_1.sce @@ -0,0 +1,28 @@ +clc;
+Vin=4.999;
+Vref=5;
+Vdiff1=Vin-Vref;
+AoL=150000;
+Vout1=AoL*Vdiff1;
+V=10;
+VoutL1=-V+1;
+//asume RL>10000 ohm
+Vin=5.001;
+Vref=5;
+Vdiff2=Vin-Vref;
+Vout2=AoL*Vdiff2;
+VoutL2=9;
+//again asume RL.1000
+disp('Noninverting input at +4.999', ," ");
+disp('mV',Vdiff1*1000,"Vdif1=");
+disp('V',Vout1,"Vout1=");
+disp('V',VoutL1,"VoutL1=");
+disp('Noninverting input at +5.001', ," ");
+disp('V',Vout2,"Vout2=");
+disp('V',VoutL2,"VoutL2=");
+disp('mV',Vdiff2*1000,"Vdif1=");
+
+
+
+
+
diff --git a/3630/CH16/EX16.2/Ex16_2.sce b/3630/CH16/EX16.2/Ex16_2.sce new file mode 100644 index 000000000..564f6a6df --- /dev/null +++ b/3630/CH16/EX16.2/Ex16_2.sce @@ -0,0 +1,6 @@ +clc;
+V=5;
+R2=30000;
+R1=120000;
+Vref=V*(R2/(R1+R2));
+disp('V',Vref,"Vref=");
diff --git a/3630/CH16/EX16.4/Ex16_4.sce b/3630/CH16/EX16.4/Ex16_4.sce new file mode 100644 index 000000000..d56f655c4 --- /dev/null +++ b/3630/CH16/EX16.4/Ex16_4.sce @@ -0,0 +1,10 @@ +clc;
+v1=3;
+v2=6;
+v3=4;
+rf=10000;
+r1=10000;
+r2=10000;
+r3=10000;
+Vout=-rf*((v1/r1)+(v2/r2)+(v3/r3));
+disp('V',Vout,"Vout=");
diff --git a/3630/CH16/EX16.5/Ex16_5.sce b/3630/CH16/EX16.5/Ex16_5.sce new file mode 100644 index 000000000..128603e5e --- /dev/null +++ b/3630/CH16/EX16.5/Ex16_5.sce @@ -0,0 +1,10 @@ +clc;
+v1=10;
+v2=8;
+v3=7;
+rf=1000;
+r1=10000;
+r2=10000;
+r3=10000;
+Vout=-rf*((v1/r1)+(v2/r2)+(v3/r3));
+disp('V',Vout,"Vout=");
diff --git a/3630/CH16/EX16.6/Ex16_6.sce b/3630/CH16/EX16.6/Ex16_6.sce new file mode 100644 index 000000000..1c01aa601 --- /dev/null +++ b/3630/CH16/EX16.6/Ex16_6.sce @@ -0,0 +1,14 @@ +clc;
+rf=1000;
+r1=1000;
+r2=2000;
+r3=4000;
+v1=[10 0 10];
+v2=[0 10 10];
+v3=[10 0 10];
+for i=1:3
+Vout(1,i)=(rf/r1)*v1(1,i)+(rf/r2)*v2(1,i)+(rf/r3)*v3(1,i);
+end
+disp('V',Vout(1,1),"Vout(1,1)=");
+disp('V',Vout(1,2),"Vout(1,2)=");
+disp('V',Vout(1,3),"Vout(1,3)=");
diff --git a/3630/CH17/EX17.1/Ex17_1.sce b/3630/CH17/EX17.1/Ex17_1.sce new file mode 100644 index 000000000..4f30f5bde --- /dev/null +++ b/3630/CH17/EX17.1/Ex17_1.sce @@ -0,0 +1,5 @@ +clc;
+f0=1000000;
+BW=40000;
+Q=f0/BW;
+disp('V',Q,"Q=");
diff --git a/3630/CH17/EX17.10/Ex17_10.sce b/3630/CH17/EX17.10/Ex17_10.sce new file mode 100644 index 000000000..4ad8ffb87 --- /dev/null +++ b/3630/CH17/EX17.10/Ex17_10.sce @@ -0,0 +1,13 @@ +clc;
+f0=100;
+Q=1.02;
+BW=floor(f0/Q);
+fc1=ceil(f0-BW/2);
+fc2=floor(f0+BW/2);
+fc11=floor(f0*((1+(1/((2*Q)^2)))^0.5)-BW/2);
+fc22=floor((f0*(1+(1/((2*Q)^2)))^0.5)+BW/2);
+Fc1=((fc11-fc1)/fc11)*100;
+Fc2=((fc22-fc2)/fc22)*100;
+disp('%',Fc1,"Fc1=");//The answers vary due to round off error
+disp('%',Fc2,"Fc2=");//The answers vary due to round off error
+
diff --git a/3630/CH17/EX17.11/Ex17_11.sce b/3630/CH17/EX17.11/Ex17_11.sce new file mode 100644 index 000000000..93585963b --- /dev/null +++ b/3630/CH17/EX17.11/Ex17_11.sce @@ -0,0 +1,6 @@ +clc;
+rf=40000;
+r2=10000;
+AcL=rf/(2*r2);
+disp('%',AcL,"AcL=");//The answers vary due to round off error
+
diff --git a/3630/CH17/EX17.12/Ex17_12.sce b/3630/CH17/EX17.12/Ex17_12.sce new file mode 100644 index 000000000..6a6865426 --- /dev/null +++ b/3630/CH17/EX17.12/Ex17_12.sce @@ -0,0 +1,7 @@ +clc;
+L=0.001;
+C=0.0000000001;
+f0=1/(2*3.14*(L*C)^0.5);
+disp('Hz',floor(f0/1000),"f0=");//The answers vary due to round off error
+
+
diff --git a/3630/CH17/EX17.13/Ex17_13.sce b/3630/CH17/EX17.13/Ex17_13.sce new file mode 100644 index 000000000..7bc16f629 --- /dev/null +++ b/3630/CH17/EX17.13/Ex17_13.sce @@ -0,0 +1,6 @@ +clc;
+XL=3160;
+Rw=25;
+Q=XL/Rw;
+disp(' ',Q,"Q=");//The answers vary due to round off error
+
diff --git a/3630/CH17/EX17.14/Ex17_14.sce b/3630/CH17/EX17.14/Ex17_14.sce new file mode 100644 index 000000000..38c198a55 --- /dev/null +++ b/3630/CH17/EX17.14/Ex17_14.sce @@ -0,0 +1,10 @@ +clc;
+Q=126;
+Rw=25;
+Rp=(Q^2)*Rw;
+XL=3160;
+rc=20000;
+QL=rc/XL;
+disp(' ',ceil(Rp/1000),"Rp=");//The answers vary due to round off error
+disp(' ',QL,"QL=");//The answers vary due to round off error
+
diff --git a/3630/CH17/EX17.15/Ex17_15.sce b/3630/CH17/EX17.15/Ex17_15.sce new file mode 100644 index 000000000..4730e5664 --- /dev/null +++ b/3630/CH17/EX17.15/Ex17_15.sce @@ -0,0 +1,6 @@ +clc;
+f0=503000;
+QL=6.33;
+BW=f0/QL;
+disp('khz',BW,"BW=");//The answers vary due to round off error
+
diff --git a/3630/CH17/EX17.2/Ex17_2.sce b/3630/CH17/EX17.2/Ex17_2.sce new file mode 100644 index 000000000..4f30f5bde --- /dev/null +++ b/3630/CH17/EX17.2/Ex17_2.sce @@ -0,0 +1,5 @@ +clc;
+f0=1000000;
+BW=40000;
+Q=f0/BW;
+disp('V',Q,"Q=");
diff --git a/3630/CH17/EX17.3/Ex17_3.sce b/3630/CH17/EX17.3/Ex17_3.sce new file mode 100644 index 000000000..3e8af8af7 --- /dev/null +++ b/3630/CH17/EX17.3/Ex17_3.sce @@ -0,0 +1,10 @@ +fc1=960000;
+fc2=1440000;
+BW=480000;
+f0=ceil((fc1*fc2)^0.5);
+fave=(fc1+fc2)/2;
+Q=f0/BW;
+disp('kHz',f0/1000,"f0=");
+disp('kHz',fave/1000,"fave=");
+disp(' ',Q,"Q=");//The answers vary due to round off error in f0
+
diff --git a/3630/CH17/EX17.4/Ex17_4.sce b/3630/CH17/EX17.4/Ex17_4.sce new file mode 100644 index 000000000..f372c4585 --- /dev/null +++ b/3630/CH17/EX17.4/Ex17_4.sce @@ -0,0 +1,10 @@ +clc;
+r1=33000;
+c1=0.0000001;
+fc=1/(2*3.14*r1*c1);
+rf1=4700;
+rf2=9100;
+AcL=(rf1/rf2)+1;
+disp('Hz',fc,"fc=");
+disp('',AcL,"AcL");//The answers vary due to round off error in f0
+
diff --git a/3630/CH17/EX17.5/Ex17_5.sce b/3630/CH17/EX17.5/Ex17_5.sce new file mode 100644 index 000000000..7e4ecec6f --- /dev/null +++ b/3630/CH17/EX17.5/Ex17_5.sce @@ -0,0 +1,7 @@ +clc;
+r1=10000;
+r2=10000;
+c1=0.000000015;
+c2=0.000000033;
+fc=floor(1/(2*3.14*(r1*r2*c1*c2)^0.5));
+disp('Hz',fc,"fc=");
diff --git a/3630/CH17/EX17.6/Ex17_6.sce b/3630/CH17/EX17.6/Ex17_6.sce new file mode 100644 index 000000000..fb233b38c --- /dev/null +++ b/3630/CH17/EX17.6/Ex17_6.sce @@ -0,0 +1,18 @@ +clc;
+r1=10000;
+r2=10000;
+c1=0.00000001;
+c2=0.00000002;
+fc2=ceil(1/(2*3.14*(r1*r2*c1*c2)^0.5));
+r3=15000;
+r4=30000;
+c3=0.00000001;
+c4=0.00000001;
+fc1=1/(2*3.14*(r3*r4*c3*c4)^0.5);
+BW=(fc2-fc1);
+f0=(fc2*fc1)^0.5;
+Q=(f0/BW);
+disp('Hz',fc2,"fc2=");//The answers vary due to round off error
+disp('Hz',fc1,"fc1=");//The answers vary due to round off error
+disp('Hz',BW,"BW=");//The answers vary due to round off error
+disp(' ',Q,"Q=");//The answers vary due to round off error
diff --git a/3630/CH17/EX17.7/Ex17_7.sce b/3630/CH17/EX17.7/Ex17_7.sce new file mode 100644 index 000000000..7a07c1432 --- /dev/null +++ b/3630/CH17/EX17.7/Ex17_7.sce @@ -0,0 +1,9 @@ +clc;
+r1=10000;
+r2=10000;
+rf=40000;
+req=(r1*r2)/(r1+r2);
+c1=0.0000001;
+c2=0.000000068;
+f0=ceil(1/(2*3.14*((req*c1*c2*rf)^0.5)));
+disp('Hz',f0,"f0=");
diff --git a/3630/CH17/EX17.8/Ex17_8.sce b/3630/CH17/EX17.8/Ex17_8.sce new file mode 100644 index 000000000..2e1a8cf4d --- /dev/null +++ b/3630/CH17/EX17.8/Ex17_8.sce @@ -0,0 +1,11 @@ +clc;
+c1=0.0000001;
+c2=0.000000068;
+c=(c1*c2)^0.5;
+rf=40000;
+f0=137;
+Q=(3.14*f0*rf*c);
+BW=f0/Q;
+disp(' ',Q,"Q=");
+disp('Hz',BW,"BW=");
+
diff --git a/3630/CH17/EX17.9/Ex17_9.sce b/3630/CH17/EX17.9/Ex17_9.sce new file mode 100644 index 000000000..9232762a4 --- /dev/null +++ b/3630/CH17/EX17.9/Ex17_9.sce @@ -0,0 +1,12 @@ +clc;
+f0=12000;
+BW=6000;
+Q=2;
+fc1=f0-BW/2;
+fc2=f0+BW/2;
+fc11=ceil(f0*((1+(1/((2*Q)^2)))^0.5)-BW/2);
+fc22=f0*(1+(1/(2*Q)^2))^0.5+BW/2;
+Fc1=((fc11-fc1)/fc11)*100;
+Fc2=((fc22-fc2)/fc22)*100;
+disp('%',Fc1,"Fc1=");//The answers vary due to round off error
+disp('%',Fc2,"Fc2=");//The answers vary due to round off error
diff --git a/3630/CH18/EX18.1/Ex18_1.sce b/3630/CH18/EX18.1/Ex18_1.sce new file mode 100644 index 000000000..3c9e993e4 --- /dev/null +++ b/3630/CH18/EX18.1/Ex18_1.sce @@ -0,0 +1,16 @@ +clc;
+c1=0.0000000033;
+c2=0.0000001;
+L=0.000047;
+cT=(c1*c2)/(c1+c2);
+fr=1/(2*3.14*(L*cT)^0.5);
+Xc1=117; //for fr value
+Xc2=3.87;
+av1=Xc2/Xc1;
+av2=c1/c2;
+disp('using equation 18.3',av1,"av1=");//The answers vary due to round off error
+disp('using equation 18.4',av2,"av2=");//The answers vary due to round off error
+
+
+
+
diff --git a/3630/CH19/EX19.1/Ex19_1.sce b/3630/CH19/EX19.1/Ex19_1.sce new file mode 100644 index 000000000..1ce3c9006 --- /dev/null +++ b/3630/CH19/EX19.1/Ex19_1.sce @@ -0,0 +1,12 @@ +clc;
+vcc=12;
+Rc=1200;
+Icsat=vcc/Rc;
+hfe=100;
+Ib=Icsat/hfe;
+Rb=47000;
+vbe=0.7;
+Vpk=(Ib*Rb)+vbe;
+disp('V',Vpk,"Vpk=");//The answers vary due to round off error
+
+
diff --git a/3630/CH19/EX19.10/Ex19_10.sce b/3630/CH19/EX19.10/Ex19_10.sce new file mode 100644 index 000000000..85daea567 --- /dev/null +++ b/3630/CH19/EX19.10/Ex19_10.sce @@ -0,0 +1,5 @@ +clc;
+r=1200;
+c=0.0000001;
+PW=1.1*r*c;
+disp('ms',PW*1000000,"PW=");//The answers vary due to round off error
diff --git a/3630/CH19/EX19.11/Ex19_11.sce b/3630/CH19/EX19.11/Ex19_11.sce new file mode 100644 index 000000000..534e7fc4d --- /dev/null +++ b/3630/CH19/EX19.11/Ex19_11.sce @@ -0,0 +1,7 @@ +clc;
+Vcon=6;
+Vcc=12;
+VT1=(1/2)*Vcon;
+VT2=(1/3)*Vcc;
+disp('V',VT1,"VT1=");//The answers vary due to round off error
+disp('V',VT2,"VT2=");//The answers vary due to round off error
diff --git a/3630/CH19/EX19.12/Ex19_12.sce b/3630/CH19/EX19.12/Ex19_12.sce new file mode 100644 index 000000000..fb1b01c70 --- /dev/null +++ b/3630/CH19/EX19.12/Ex19_12.sce @@ -0,0 +1,10 @@ +clc;
+ra=3000;
+rb=2700;
+c1=0.000000033;
+f0=(1.44/((ra+2*rb)*c1));
+dutycycle=((ra+rb)/(ra+2*rb))*100;
+PW=0.693*((ra+rb)*c1);
+disp('kHz',f0/1000,"f0=");//The answers vary due to round off error
+disp('%',dutycycle,"dutycycle=");//The answers vary due to round off error
+disp('mS',floor(PW*1000000),"PW=");//The answers vary due to round off error
diff --git a/3630/CH19/EX19.2/Ex19_2.sce b/3630/CH19/EX19.2/Ex19_2.sce new file mode 100644 index 000000000..2539dff8b --- /dev/null +++ b/3630/CH19/EX19.2/Ex19_2.sce @@ -0,0 +1,17 @@ +clc;
+Vdd1=5;
+Idss=0.005;
+Rd1=1000;
+Vout1=Vdd1-(Idss*Rd1);
+Vdd=5;
+Id=0;
+Rd=1000;
+Vout2=Vdd-(Id*Rd);
+disp('V',Vout1,"Vout1=");//The answers vary due to round off error
+disp('V',Vout2,"Vout2=");//The answers vary due to round off error
+
+
+
+
+
+
diff --git a/3630/CH19/EX19.3/Ex19_3.sce b/3630/CH19/EX19.3/Ex19_3.sce new file mode 100644 index 000000000..64da32880 --- /dev/null +++ b/3630/CH19/EX19.3/Ex19_3.sce @@ -0,0 +1,11 @@ +clc;
+Vdd=10;
+Idss1=0.002;
+Rd1=1000;
+Rd2=100;
+Vout1=Vdd-(Idss1*Rd1);
+Vout2=Vdd-(Idss1*Rd2);
+disp('V',Vout1,"Vout1=");//The answers vary due to round off error
+disp('V',Vout2,"Vout2=");//The answers vary due to round off error
+
+
diff --git a/3630/CH19/EX19.4/Ex19_4.sce b/3630/CH19/EX19.4/Ex19_4.sce new file mode 100644 index 000000000..9e28395fa --- /dev/null +++ b/3630/CH19/EX19.4/Ex19_4.sce @@ -0,0 +1,7 @@ +clc;
+PW=2.5*0.000050;
+T=6.5*0.000050;
+disp('uS',PW*1000000,"PW=");//The provided in the textbook is wrong
+disp('uS',T*1000000,"T=");//The provided in the textbook is wrong
+
+
diff --git a/3630/CH19/EX19.5/Ex19_5.sce b/3630/CH19/EX19.5/Ex19_5.sce new file mode 100644 index 000000000..c8f9be59b --- /dev/null +++ b/3630/CH19/EX19.5/Ex19_5.sce @@ -0,0 +1,8 @@ +clc;
+PW=0.000125;
+T=0.000325;
+dutycycle=(PW/T)*100;
+disp('%',dutycycle,"dutycycle=");//The provided in the textbook is wrong
+
+
+
diff --git a/3630/CH19/EX19.6/Ex19_6.sce b/3630/CH19/EX19.6/Ex19_6.sce new file mode 100644 index 000000000..a0bb91829 --- /dev/null +++ b/3630/CH19/EX19.6/Ex19_6.sce @@ -0,0 +1,11 @@ +clc;
+tr=0.000000040;
+fc=0.35/tr;
+tf=0.000000030;
+fmax=0.35/(100*tr);
+disp('MHz',fc/1000000,"fc=");//The provided in the textbook is wrong
+disp('kHz',fmax/1000,"fmax=");//The provided in the textbook is wrong
+
+
+
+
diff --git a/3630/CH19/EX19.7/Ex19_7.sce b/3630/CH19/EX19.7/Ex19_7.sce new file mode 100644 index 000000000..768cf304e --- /dev/null +++ b/3630/CH19/EX19.7/Ex19_7.sce @@ -0,0 +1,15 @@ +clc;
+Rin=20000;
+rf=100000;
+Vout1=-12;
+Vout2=12;
+Vin=2.4;
+UTP=-(Rin/rf)*Vout1;
+LTP=-(Rin/rf)*Vout2;
+Vrin=(Vin-Vout1)*(Rin/(Rin+rf));
+disp('V',UTP,"UTP=");//The answers vary due to round off error
+disp('V',LTP,"LTP=");//The answers vary due to round off error
+disp('V',Vrin,"Vrin=");//The answers vary due to round off error
+
+
+
diff --git a/3630/CH19/EX19.8/Ex19_8.sce b/3630/CH19/EX19.8/Ex19_8.sce new file mode 100644 index 000000000..bc3e9c394 --- /dev/null +++ b/3630/CH19/EX19.8/Ex19_8.sce @@ -0,0 +1,10 @@ +clc;
+Rin=3300;
+rf1=11000;
+rf2=33000;
+Vout1=-11;
+Vout2=11;
+UTP=-(Rin/rf1)*(Vout1+0.7);
+LTP=-(Rin/rf2)*(Vout2-0.7);
+disp('V',UTP,"UTP=");//The answers vary due to round off error
+disp('V',LTP,"LTP=");//The answers vary due to round off error
diff --git a/3630/CH19/EX19.9/Ex19_9.sce b/3630/CH19/EX19.9/Ex19_9.sce new file mode 100644 index 000000000..02582ad11 --- /dev/null +++ b/3630/CH19/EX19.9/Ex19_9.sce @@ -0,0 +1,8 @@ +clc;
+rf2=1000;
+rf1=2000;
+req=(rf2/(rf1+rf2));
+UTP=req*9;
+LTP=req*-9;
+disp('V',UTP,"UTP=");//The answers vary due to round off error
+disp('V',LTP,"LTP=");//The answers vary due to round off error
diff --git a/3630/CH2/EX2.1/Ex2_1.sce b/3630/CH2/EX2.1/Ex2_1.sce new file mode 100644 index 000000000..ddb241300 --- /dev/null +++ b/3630/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,10 @@ +clc;
+//ex2.1
+R1=1000; //kohm;
+VS=5; //Volt//voltage across voltage source
+IT=0; //Ampere; because diode in reverse bias and does not allow conduction through diode
+VD1=VS-(IT*R1); //apply kvl in the circuit
+VR1=VD1-VS; //apply kvl in the circuit
+disp( 'Volt',VD1*1,"VD1=");
+disp( 'Ampere',IT*1,"IT=");
+disp( 'Volt',VR1*1,"VR1=");
diff --git a/3630/CH2/EX2.10/Ex2_10.sce b/3630/CH2/EX2.10/Ex2_10.sce new file mode 100644 index 000000000..d389af35f --- /dev/null +++ b/3630/CH2/EX2.10/Ex2_10.sce @@ -0,0 +1,14 @@ +clc;
+//ex2.10
+Vss=10; //volt
+Vf=0.7; //volt
+R=100; //ohm
+//total current through the circuit by using kirchhoff's voltage law
+If=(Vss-Vf)/R; //Ampere
+//power dissipation form diode for Vf and If
+Pf=Vf*If; //Watt
+PDmax=(20/100)*Pf+Pf; //Watt//forward power dissipation that is 20% greater than value of Pf
+disp( 'mA',If*1000,"If=");
+disp( 'mW',Pf*1000,"Pf=");
+disp( 'mW',PDmax*1000,"PDmax=");
+
diff --git a/3630/CH2/EX2.11/Ex2_11.sce b/3630/CH2/EX2.11/Ex2_11.sce new file mode 100644 index 000000000..95bec3d9b --- /dev/null +++ b/3630/CH2/EX2.11/Ex2_11.sce @@ -0,0 +1,8 @@ +clc;
+//ex2.11
+Pdmax=500; //miliwatt
+Vf=0.7; //volt
+Io=Pdmax/Vf; //Ampere//using P=V*I
+Ifmax=(80/100)*Io; //Ampere//maximum forward current 80% of IO
+disp( 'mA',Io,"Io="); //The answers vary due to round off error
+disp('mA',Ifmax,"Ifmax="); //The answers vary due to round off error
diff --git a/3630/CH2/EX2.12/Ex2_12.sce b/3630/CH2/EX2.12/Ex2_12.sce new file mode 100644 index 000000000..4f606e12b --- /dev/null +++ b/3630/CH2/EX2.12/Ex2_12.sce @@ -0,0 +1,12 @@ +clc;
+//ex2.12
+Vb=0.7; //volt
+If=[0.001 0.005]; //Ampere
+Rb=5; //ohm
+Vf1=Vb+If(1,1)*Rb; //Volt//VF=VB+If*Rb;
+Vf2=Vb+If(1,2)*Rb; //Volt//VF=VB+If*Rb;
+disp('mV',Vf1,"Vf1=");
+disp('mV',Vf2,"Vf2=");
+
+
+
diff --git a/3630/CH2/EX2.13/Ex2_13.sce b/3630/CH2/EX2.13/Ex2_13.sce new file mode 100644 index 000000000..ebe2d8ba1 --- /dev/null +++ b/3630/CH2/EX2.13/Ex2_13.sce @@ -0,0 +1,5 @@ +clc;
+Pdmax=0.5; //watt
+Vz=6.8; //volt
+Izm=Pdmax/Vz; //Ampere//Power(P)=V*I
+disp('mA',Izm*1000,"Izm="); //The answers vary due to round off error
diff --git a/3630/CH2/EX2.14/Ex2_14.sce b/3630/CH2/EX2.14/Ex2_14.sce new file mode 100644 index 000000000..cb89e6e4f --- /dev/null +++ b/3630/CH2/EX2.14/Ex2_14.sce @@ -0,0 +1,7 @@ +clc;
+//ex2.14;
+T=100; //degree celcious
+Pdissi=4 //miliwatt
+D=Pdissi*(T-75); //D IS Derating value in miliwatt
+Pd=(500-D); //W
+disp('mW',Pd,"Pd=");
diff --git a/3630/CH2/EX2.16/Ex2_16.sce b/3630/CH2/EX2.16/Ex2_16.sce new file mode 100644 index 000000000..988f71c4e --- /dev/null +++ b/3630/CH2/EX2.16/Ex2_16.sce @@ -0,0 +1,6 @@ +clc;
+//ex2.16
+Vz=20; //volt
+Izm=0.15; //Ampere
+Pdmax=Vz*Izm; //Watt//p=v*i
+disp('W',Pdmax,"Pdmax=");
diff --git a/3630/CH2/EX2.17/Ex2_17.sce b/3630/CH2/EX2.17/Ex2_17.sce new file mode 100644 index 000000000..697154b71 --- /dev/null +++ b/3630/CH2/EX2.17/Ex2_17.sce @@ -0,0 +1,6 @@ +clc;
+Voutpk=8; //volt
+Vf=1.8; //volt
+If=0.02; //Ampere
+Rs=(Voutpk-Vf)/If; //Ohm//v=r*i
+disp('Ohm',Rs,"Rs=");
diff --git a/3630/CH2/EX2.2/Ex2_2.sce b/3630/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..5ff55a7f1 --- /dev/null +++ b/3630/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,10 @@ +clc;
+//ex2.2
+VD1=0; //Volt//diode is forward bias for ideal diode total Rideal=0 so VD1=IT*Rideal=0V
+R1=1000; //kilo ohm;
+VS=5; //Volt //voltage across voltage source
+IT=(VS/R1)-(VD1/R1);//Ampere;apply kvl in the circuit
+VR1=IT*R1; //Volt//apply ohms law voltage across resistance
+disp( 'Volt',VD1*1,"VD1=");
+disp( 'mAmpere',IT*1000,"IT=");
+disp( 'Volt',VR1*1,"VR1=");
diff --git a/3630/CH2/EX2.3/Ex2_3.sce b/3630/CH2/EX2.3/Ex2_3.sce new file mode 100644 index 000000000..f64ef73b0 --- /dev/null +++ b/3630/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,7 @@ +clc
+//ex2.3
+Vd=0.7;//volt
+Vs=6;//volt
+Vr1=Vs-Vd; //volt//Voltmeter's reading
+disp( 'Volt',Vr1*1,"Vr1=");
+
diff --git a/3630/CH2/EX2.4/Ex2_4.sce b/3630/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..98004a4c2 --- /dev/null +++ b/3630/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,7 @@ +clc;
+//ex2.4
+Vs=6; //volt
+Vd=0.7;//volt
+R1=10000;//ohm
+It=(Vs-Vd)/R1; //Total circuit current using kirchoff's volatage law
+disp('Ampere',It,"It=")
diff --git a/3630/CH2/EX2.5/Ex2_5.sce b/3630/CH2/EX2.5/Ex2_5.sce new file mode 100644 index 000000000..4628fa39b --- /dev/null +++ b/3630/CH2/EX2.5/Ex2_5.sce @@ -0,0 +1,8 @@ +clc;
+//ex2.5
+Vs=5; //volt
+Vd=0.7; //volt
+R1=1200; //ohm
+R2=2200; //ohm
+It=(Vs-Vd)/(R1+R2); //Ampere//Apply KVL to circuit
+disp('Ampere',It*1,"It=")
diff --git a/3630/CH2/EX2.6/Ex2_6.sce b/3630/CH2/EX2.6/Ex2_6.sce new file mode 100644 index 000000000..6b5d94225 --- /dev/null +++ b/3630/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,7 @@ +clc;
+//ex2.6
+Vs=4; //volt
+Vd=0.7; //volt
+R1=5100; //ohm
+IT=(Vs-2*Vd)/R1; //Ampere//KVL int the circuit
+disp('Ampere',IT*1,"IT=")
diff --git a/3630/CH2/EX2.7/Ex2_7.sce b/3630/CH2/EX2.7/Ex2_7.sce new file mode 100644 index 000000000..55d7480ea --- /dev/null +++ b/3630/CH2/EX2.7/Ex2_7.sce @@ -0,0 +1,15 @@ +clc;
+//ex2.7
+//assume diode is ideal(Vf=0V)
+Vs=10; //Volt
+Rt=3030; //Ohm
+IT=Vs/Rt; //Ampere
+//assume diode is practical(Vf=0.7V)
+Vf=1.4; //Volt
+Vs1=Vs-Vf; //Volt
+IT1=Vs1/Rt; //Ampere
+e=(-100*(IT1-IT))/IT1; //Percentage of error between two circuit current
+disp( 'Ampere',IT*1,"IT=");
+disp( 'Ampere',IT1*1,"IT1=");
+disp( '%',e*1,"Percentage Error="); //The answers vary due to round off error
+
diff --git a/3630/CH2/EX2.9/Ex2_9.sce b/3630/CH2/EX2.9/Ex2_9.sce new file mode 100644 index 000000000..1514e6f21 --- /dev/null +++ b/3630/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,9 @@ +clc;
+//ex2.9
+Vs=50; //Volt
+Vd=0.7; //volt
+RL=200; //ohm
+If=(Vs-Vd)/RL; //Ampere//forward current in the circuit
+Io=(20/100)*If+If; //Ampere//Average forward current rating 20% greater than calculated value of If
+disp('mAmp',If*1000,"If="); //The answers vary due to round off error
+disp('mAmp',Io*1000,"Io=") //The answers vary due to round off error
diff --git a/3630/CH20/EX20.1/Ex20_1.sce b/3630/CH20/EX20.1/Ex20_1.sce new file mode 100644 index 000000000..762d75d37 --- /dev/null +++ b/3630/CH20/EX20.1/Ex20_1.sce @@ -0,0 +1,7 @@ +clc;
+t=0.018;
+I=50;
+D=(I^2)*t;
+if (D <= 145) then
+ disp('device can handle this surge');
+end
diff --git a/3630/CH20/EX20.2/Ex20_2.sce b/3630/CH20/EX20.2/Ex20_2.sce new file mode 100644 index 000000000..fcf54f191 --- /dev/null +++ b/3630/CH20/EX20.2/Ex20_2.sce @@ -0,0 +1,6 @@ +
+clc;
+D=60; //I^2*t(rated) value
+Is=100;
+tmax=(D)/(Is)^2;
+disp('ms',tmax*1000,"tmax=");//The answers vary due to round off error
diff --git a/3630/CH20/EX20.3/Ex20_3.sce b/3630/CH20/EX20.3/Ex20_3.sce new file mode 100644 index 000000000..d67e2fcdc --- /dev/null +++ b/3630/CH20/EX20.3/Ex20_3.sce @@ -0,0 +1,5 @@ +clc;
+D=60; //I^2*t(rated) value
+ts=0.020;
+Ismax=(D/ts)^0.5;
+disp('A',Ismax,"Ismax=");//The answers vary due to round off error
diff --git a/3630/CH20/EX20.4/Ex21_4.sce b/3630/CH20/EX20.4/Ex21_4.sce new file mode 100644 index 000000000..7d5ae945e --- /dev/null +++ b/3630/CH20/EX20.4/Ex21_4.sce @@ -0,0 +1,5 @@ +clc;
+R2=2400;
+R1=240;
+Vdc=(1.25)*((R2/R1)+1);
+disp('V',Vdc,"Vdc=");//The answers vary due to round off error
diff --git a/3630/CH20/EX20.5/Ex20_5.sce b/3630/CH20/EX20.5/Ex20_5.sce new file mode 100644 index 000000000..0459765b6 --- /dev/null +++ b/3630/CH20/EX20.5/Ex20_5.sce @@ -0,0 +1,5 @@ +clc;
+n=0.8;
+Vbb=18;
+Vp=(n*Vbb+0.7);
+disp('V',Vp,"Vp=");//The answers vary due to round off error
diff --git a/3630/CH20/EX20.6/Ex20_6.sce b/3630/CH20/EX20.6/Ex20_6.sce new file mode 100644 index 000000000..7d24bbe33 --- /dev/null +++ b/3630/CH20/EX20.6/Ex20_6.sce @@ -0,0 +1,5 @@ +clc;
+c=3*10^(17);
+f=150*10^(12);
+lemda=c/f;
+disp('nm',lemda,"lemda=");
diff --git a/3630/CH21/EX21.1/Ex21_1.sce b/3630/CH21/EX21.1/Ex21_1.sce new file mode 100644 index 000000000..69d2153c1 --- /dev/null +++ b/3630/CH21/EX21.1/Ex21_1.sce @@ -0,0 +1,5 @@ +clc;
+Vout=0.000010;
+Vin=5;
+linein=Vout/Vin;
+disp('uV/V',linein*1000000,"linein=");//The answers vary due to round off error
diff --git a/3630/CH21/EX21.2/Ex21_2.sce b/3630/CH21/EX21.2/Ex21_2.sce new file mode 100644 index 000000000..67ee50a7d --- /dev/null +++ b/3630/CH21/EX21.2/Ex21_2.sce @@ -0,0 +1,6 @@ +clc;
+vnl=5;
+vfl=4.9998;
+Il=0.020;
+loadre=(vnl-vfl)/Il;
+disp('uA/mA',loadre*100,"loadre=");//The answers vary due to round off error
diff --git a/3630/CH21/EX21.3/Ex21_3.sce b/3630/CH21/EX21.3/Ex21_3.sce new file mode 100644 index 000000000..993646aef --- /dev/null +++ b/3630/CH21/EX21.3/Ex21_3.sce @@ -0,0 +1,5 @@ +clc;
+Vout=8;
+Vd=40;
+Vin=Vout+Vd;
+disp('V',Vin,"Vin=");//The answers vary due to round off error
diff --git a/3630/CH21/EX21.4/Ex21_4.sce b/3630/CH21/EX21.4/Ex21_4.sce new file mode 100644 index 000000000..7d5ae945e --- /dev/null +++ b/3630/CH21/EX21.4/Ex21_4.sce @@ -0,0 +1,5 @@ +clc;
+R2=2400;
+R1=240;
+Vdc=(1.25)*((R2/R1)+1);
+disp('V',Vdc,"Vdc=");//The answers vary due to round off error
diff --git a/3630/CH21/EX21.5/Ex21_5.sce b/3630/CH21/EX21.5/Ex21_5.sce new file mode 100644 index 000000000..2baff131b --- /dev/null +++ b/3630/CH21/EX21.5/Ex21_5.sce @@ -0,0 +1,5 @@ +Ton=0.000005;
+Toff=0.000010;
+Vin=24;
+Vave=Vin*(Ton/(Ton+Toff));
+disp('V',Vave,"Vave=");//The answers vary due to round off error
diff --git a/3630/CH3/EX3.1/Ex3_1.sce b/3630/CH3/EX3.1/Ex3_1.sce new file mode 100644 index 000000000..959cceb61 --- /dev/null +++ b/3630/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,7 @@ +clc;
+//ex3.1
+Np=1;
+Ns=4;
+Ip=1; //Ampere
+Is=(Np/Ns)*Ip; //Ampere
+disp('mA',Is*1000,"Is="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.10/Ex3_10.sce b/3630/CH3/EX3.10/Ex3_10.sce new file mode 100644 index 000000000..3486f0998 --- /dev/null +++ b/3630/CH3/EX3.10/Ex3_10.sce @@ -0,0 +1,9 @@ + clc;
+//ex3.10
+Vlpk=20.5; //volt
+RL=5100; //ohm
+Ilpk=Vlpk/RL; //Ampere// from v=r*i
+Vave=13.1; //volt//from v=r*i
+Iave=Vave/RL; //Ampere
+disp('mA',Ilpk*1000,"Ilpk="); //The answers vary due to round off error
+disp('mA',Iave*1000,"Iave="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.11/Ex3_11.sce b/3630/CH3/EX3.11/Ex3_11.sce new file mode 100644 index 000000000..f6ec2e9c9 --- /dev/null +++ b/3630/CH3/EX3.11/Ex3_11.sce @@ -0,0 +1,13 @@ +clc;
+//ex3.11
+Vac=12; //volt
+Vspk=Vac/0.707; //volt
+Vf=0.7; //volt
+Vlpk=Vspk-2*Vf; //volt
+Vave=(2*Vlpk)/%pi; //volt
+RL=120; //ohm
+Iave=Vave/RL; //Ampere
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',Vlpk,"Vlpk="); //The answers vary due to round off error
+disp('V',Vave,"Vave="); //The answers vary due to round off error
+disp('mA',Iave*1000,"Iave="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.12/Ex3_12.sce b/3630/CH3/EX3.12/Ex3_12.sce new file mode 100644 index 000000000..2eabf8d87 --- /dev/null +++ b/3630/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,13 @@ +clc;
+//ex3.12
+Vac=12; //volt
+Vspk=Vac/0.707; //volt
+Vf=0.7; //volt
+Vlpk=(Vspk/2)-Vf; //volt
+Vave=(2*Vlpk)/%pi; //volt
+RL=120; //ohm
+Iave=Vave/RL; //Ampere
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',Vlpk,"Vlpk="); //The answers vary due to round off error
+disp('V',Vave,"Vave="); //The answers vary due to round off error
+disp('mA',Iave*1000,"Iave="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.13/Ex3_13.sce b/3630/CH3/EX3.13/Ex3_13.sce new file mode 100644 index 000000000..782417890 --- /dev/null +++ b/3630/CH3/EX3.13/Ex3_13.sce @@ -0,0 +1,10 @@ +clc;
+//ex3.13
+Vac=36; //Volt
+Vspk=Vac/0.707; //Volt
+Vf=0.7; //Volt
+Vlpk=Vspk-2*Vf; //Volt
+Vave=(2*Vlpk)/%pi; //Volt
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',Vlpk,"Vlpk="); //The answers vary due to round off error
+disp('V',Vave,"Vave="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.14/Ex3_14.sce b/3630/CH3/EX3.14/Ex3_14.sce new file mode 100644 index 000000000..cc8bef78e --- /dev/null +++ b/3630/CH3/EX3.14/Ex3_14.sce @@ -0,0 +1,11 @@ +clc;
+//ex3.14
+Vppk=170; //volt
+Ns=1;
+Np=2;
+Vspk=(Ns/Np)*Vppk; //Volt//(N1/N2=Vp/Vs)
+Rw=0.8; //ohm
+Rb=5; //ohm
+Isurge=Vspk/(Rw+Rb); //Ampere
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('A',Isurge,"Isurge="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.15/Ex3_15.sce b/3630/CH3/EX3.15/Ex3_15.sce new file mode 100644 index 000000000..b790f9ddd --- /dev/null +++ b/3630/CH3/EX3.15/Ex3_15.sce @@ -0,0 +1,9 @@ +clc;
+//ex3.15
+IL=0.02; //Ampere
+t=[0.0167 0.00833]; //seceond
+c=0.0005; // Farad
+Vr1=(IL*t(1,1))/c; //peakvolt
+Vr2=(IL*t(1,2))/c; //peakvolt
+disp('mVpp',Vr1*1000,"Vr1=");
+disp('mVpp',Vr2*1000,"Vr2="); ////The answers vary due to round off error
diff --git a/3630/CH3/EX3.16/Ex3_16.sce b/3630/CH3/EX3.16/Ex3_16.sce new file mode 100644 index 000000000..c9ae3837d --- /dev/null +++ b/3630/CH3/EX3.16/Ex3_16.sce @@ -0,0 +1,14 @@ +clc;
+//ex3.16
+Vac=24; //volt
+Vspk=Vac/0.707; //volt
+Vf=0.7; //volt
+Vlpk=(Vspk/2)-Vf; //volt
+Vdc=Vlpk; //volt
+RL=1200; //ohm
+IL=Vdc/RL; //Amperes //v=r*i
+t=0.00833 //second
+C=0.00047 //farad
+Vr=(IL*t)/C; //volt
+Vdc=Vlpk-(Vr/2); //volt
+disp('V',Vdc,"Vdc="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.17/Ex3_17.sce b/3630/CH3/EX3.17/Ex3_17.sce new file mode 100644 index 000000000..1ea0b2ab9 --- /dev/null +++ b/3630/CH3/EX3.17/Ex3_17.sce @@ -0,0 +1,7 @@ +clc;
+//ex3.17
+Vin=20; //volt
+Vz=9.1; //volt
+Rs=2200; //ohm
+I=(Vin-Vz)/Rs; //Ampere
+disp('mA',I*1000,"I="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.18/Ex3_18.sce b/3630/CH3/EX3.18/Ex3_18.sce new file mode 100644 index 000000000..0674e089e --- /dev/null +++ b/3630/CH3/EX3.18/Ex3_18.sce @@ -0,0 +1,7 @@ +clc;
+//Ex3.18
+Vz=9.1; //volt
+RL=10000; //ohm
+IL=Vz/RL; //Ampere fromV=R*I
+disp('micro Amperes',IL*1000000,"IL="); //The answers vary due to round off error
+
diff --git a/3630/CH3/EX3.19/Ex3_19.sce b/3630/CH3/EX3.19/Ex3_19.sce new file mode 100644 index 000000000..a949a61f0 --- /dev/null +++ b/3630/CH3/EX3.19/Ex3_19.sce @@ -0,0 +1,9 @@ +clc;
+//Ex3.19
+IT=0.00495; //Ampere
+Vz=9.1; //volt
+RL=10000; //ohm
+IL=Vz/RL; //Ampere//fromV=R*I
+Iz=IT-IL; //Ampere/Iz=IT-IL;
+disp('mA',Iz*1000,"Iz="); //The answers vary due to round off error
+
diff --git a/3630/CH3/EX3.2/Ex3_2.sce b/3630/CH3/EX3.2/Ex3_2.sce new file mode 100644 index 000000000..9123673c3 --- /dev/null +++ b/3630/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,12 @@ +clc;
+//ex3.2
+Vprms=120; //volt
+Vppk=Vprms/0.707; //volt
+Np=5;
+Ns=1;
+Vspk=(Ns/Np)*Vppk; //volt
+Vf=0.7; //volt
+VLpk=Vspk-Vf //volt
+disp('V',Vppk,"Vppk=");//The answers vary due to round off error
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',VLpk,"VLpk="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.20/Ex3_20.sce b/3630/CH3/EX3.20/Ex3_20.sce new file mode 100644 index 000000000..65efc5556 --- /dev/null +++ b/3630/CH3/EX3.20/Ex3_20.sce @@ -0,0 +1,10 @@ +clc;
+//ex3.20
+Vin=20; //volt
+Vz=3.3; //volt
+Rs=1000; //ohm
+I=(Vin-Vz)/Rs; //Ampere
+IZK=0.003 //Ampere
+Ilmax=I-IZK; //Ampere
+RLmin=Vz/Ilmax; //ohm
+disp('ohm',RLmin,"RLmin="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.21/Ex3_21.sce b/3630/CH3/EX3.21/Ex3_21.sce new file mode 100644 index 000000000..dec258306 --- /dev/null +++ b/3630/CH3/EX3.21/Ex3_21.sce @@ -0,0 +1,9 @@ +clc;
+//Ex3.21
+Vr=1.5; //Volt
+Zl=5; //Ohm
+RL=120; //Ohm
+Rs=51; //Ohm
+R1=(Zl*RL)/(Zl+RL); //Ohm
+Vrout=(R1/(R1+Rs))*Vr; //Volt
+disp('mVpp',Vrout*1000,"Vrout="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.22/Ex3_22.sce b/3630/CH3/EX3.22/Ex3_22.sce new file mode 100644 index 000000000..ccb967276 --- /dev/null +++ b/3630/CH3/EX3.22/Ex3_22.sce @@ -0,0 +1,25 @@ +clc;
+//ex3.22
+Vac=36; //Volt
+Vspk=Vac/0.707; //Volt
+Vf=0.7; //Volt
+Vpk=Vspk-2*Vf; //Volt
+Vin=Vpk; //Volt
+Rs=75; //Ohm
+Vz=30; //Volt
+Ir=(Vin-Vz)/Rs; //Amperes
+t=0.00833 //second
+C=0.0022 //Farad
+Vr=(Ir*t)/C; //Volt
+Vdc=30; //Volt
+RL=300; //Ohm
+ZZ=60 //Ohm
+RL=300 //Ohm
+Rs=75 //Ohm
+Znet=(ZZ*RL)/(ZZ+RL); //Ohm
+Il=Vz/RL; //Ampere
+Vrout=(Znet/((Znet)+Rs))*Vr; //Volt
+disp('V',Vdc,"Vdc="); //The answers vary due to round off error
+disp('mVpp',Vrout*1000,"Vrout="); //The answers vary due to round off error
+disp('mA',Il*1000,"Il="); //The answers vary due to round off error
+
diff --git a/3630/CH3/EX3.3/Ex3_3.sce b/3630/CH3/EX3.3/Ex3_3.sce new file mode 100644 index 000000000..ec9bc1e3b --- /dev/null +++ b/3630/CH3/EX3.3/Ex3_3.sce @@ -0,0 +1,8 @@ +clc;
+//ex3.3
+Vsrms=25; //volt
+Vspk=Vsrms/0.707; //volt
+Vf=0.7; //volt
+VLpk=Vspk-Vf; //volt
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',VLpk,"VLpk="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.4/Ex3_4.sce b/3630/CH3/EX3.4/Ex3_4.sce new file mode 100644 index 000000000..43d874e3a --- /dev/null +++ b/3630/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,15 @@ +clc;
+//ex3.4
+Vprms=120; //volt
+Vppk=Vprms/0.707; //volt
+Ns=1;
+Np=3;
+Vspk=(Ns/Np)*Vppk; //volt
+Vf=0.7; //volt
+VLpk=Vspk-Vf; //volt
+RL=10000; //ohm
+ILpk=VLpk/RL; //Ampere
+disp('V',Vppk,"Vppk="); //The answers vary due to round off error
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',VLpk,"VLpk="); //The answers vary due to round off error
+disp('mA',ILpk*1000,"ILpk="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.5/Ex3_5.sce b/3630/CH3/EX3.5/Ex3_5.sce new file mode 100644 index 000000000..7e4d442e5 --- /dev/null +++ b/3630/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,16 @@ +clc;
+//ex=3.5
+Vprms=120; //volt
+Vppk=Vprms/0.707; //volt
+Ns=1;
+Np=2;
+Vspk=(Ns/Np)*Vppk; //volt
+Vf=0.7; //volt
+Vlpk=Vspk-Vf; //volt
+Vave=Vlpk/3.14; //volt
+disp('V',Vppk,"Vppk=");//The answers vary due to round off error.
+disp('V',Vspk,"Vspk=");//The answers vary due to round off error.
+disp('V',Vlpk,"Vlpk=");//The answers vary due to round off error.
+disp('V',Vave,"Vave=");//The answers vary due to round off error
+
+
diff --git a/3630/CH3/EX3.6/Ex3_6.sce b/3630/CH3/EX3.6/Ex3_6.sce new file mode 100644 index 000000000..6cccb1328 --- /dev/null +++ b/3630/CH3/EX3.6/Ex3_6.sce @@ -0,0 +1,7 @@ +clc;
+//ex3.6
+Vave=26.8; //Volt
+RL=20000; //Ohm
+Iave=Vave/RL; //Ampere//from v=r*i
+disp('mA',Iave*1000,"Iave=");
+
diff --git a/3630/CH3/EX3.7/Ex3_7.sce b/3630/CH3/EX3.7/Ex3_7.sce new file mode 100644 index 000000000..1a978b21e --- /dev/null +++ b/3630/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,13 @@ +clc;
+//ex3.7;
+Vac=24;//volt
+Vspk=Vac/0.707; //volt
+Vlpk=Vspk-0.7; //volt
+RL=20000; //Ohm
+Ilpk=Vlpk/RL; //Ampere
+Iave=Ilpk/3.14; //Ampere
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',Vlpk,"Vlpk="); //The answers vary due to round off error
+disp('mili Amperes',Ilpk*1000,"Ilpk="); //The answers vary due to round off error
+disp('Micro Amperes',Iave*1000000,"Ilpk="); //The answers vary due to round off error
+
diff --git a/3630/CH3/EX3.8/Ex3_8.sce b/3630/CH3/EX3.8/Ex3_8.sce new file mode 100644 index 000000000..e5a86f24e --- /dev/null +++ b/3630/CH3/EX3.8/Ex3_8.sce @@ -0,0 +1,10 @@ +clc;
+//ex3.8
+Vac=48; //volt
+Vspk=Vac/0.707; //volt
+Vf=0.7; //volt
+Vlpk=Vspk-Vf; //volt
+Vave=Vlpk/%pi; //volt
+disp('V',-Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',-Vlpk,"Vlpk="); //The answers vary due to round off error
+disp('V',-Vave,"Vave="); //The answers vary due to round off error
diff --git a/3630/CH3/EX3.9/Ex3_9.sce b/3630/CH3/EX3.9/Ex3_9.sce new file mode 100644 index 000000000..237d3b697 --- /dev/null +++ b/3630/CH3/EX3.9/Ex3_9.sce @@ -0,0 +1,10 @@ +clc;
+//ex3.8
+Vac=30; //volt
+Vspk=Vac/0.707; //volt
+Vf=0.7; //volt
+Vlpk=(Vspk/2)-Vf; //volt
+Vave=(2*Vlpk)/%pi; //volt
+disp('V',Vspk,"Vspk="); //The answers vary due to round off error
+disp('V',Vlpk,"Vlpk="); //The answers vary due to round off error
+disp('V',Vave,"Vave="); //The answers vary due to round off error
diff --git a/3630/CH4/EX4.1/Ex4_1.sce b/3630/CH4/EX4.1/Ex4_1.sce new file mode 100644 index 000000000..54cab93a7 --- /dev/null +++ b/3630/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,7 @@ +clc;
+Vin=12; //volt
+RL=5100; //ohm
+Rs=1000; //ohm
+VL=(RL/(RL+Rs))*Vin ; //volt //voltage divide rule
+disp('Vpk',VL,"VL=");//The answers vary due to round off error
+
diff --git a/3630/CH4/EX4.2/Ex4_2.sce b/3630/CH4/EX4.2/Ex4_2.sce new file mode 100644 index 000000000..e0815e45b --- /dev/null +++ b/3630/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,6 @@ +clc;
+VL=-0.7; //volt
+Vin=-12; //volt
+VRS=Vin-VL; //volt
+disp('Vpk',VRS,"VRS=");//The answers vary due to round off error
+
diff --git a/3630/CH4/EX4.3/Ex4_3.sce b/3630/CH4/EX4.3/Ex4_3.sce new file mode 100644 index 000000000..c8877df7c --- /dev/null +++ b/3630/CH4/EX4.3/Ex4_3.sce @@ -0,0 +1,8 @@ +clc;
+Vf=0.7; //volt
+Vin=10; //volt
+VRs=Vin-Vf; //volt
+RL=1200; //ohm
+Rs=220; //ohm
+VL=-Vin*(RL/(RL+Rs)); //volt
+disp('Vpk',VL,"VL=");//The answers vary due to round off error
diff --git a/3630/CH4/EX4.4/Ex4_4.sce b/3630/CH4/EX4.4/Ex4_4.sce new file mode 100644 index 000000000..b4e078f3c --- /dev/null +++ b/3630/CH4/EX4.4/Ex4_4.sce @@ -0,0 +1,6 @@ +clc;
+Vin=8; //volt
+RL=6200; //ohm
+Rs=100; //ohm
+VL=Vin*(RL/(RL+Rs)); //volt
+disp('Vpk',VL,"VL=");//The answers vary due to round off error
diff --git a/3630/CH4/EX4.5/Ex4_5.sce b/3630/CH4/EX4.5/Ex4_5.sce new file mode 100644 index 000000000..8b3a2d31a --- /dev/null +++ b/3630/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,8 @@ +clc;
+Rd=10; //Ohm
+C1=0.000001; //Farad
+RL=10000; //Ohm
+Tc=5*(Rd*C1);
+Td=5*(RL*C1);
+disp('seconds',Tc,"Tc=");//The answers vary due to round off error
+disp('seconds',Td,"Td=");//The answers vary due to round off error
diff --git a/3630/CH6/EX6.1/Ex6_1.sce b/3630/CH6/EX6.1/Ex6_1.sce new file mode 100644 index 000000000..35236b3fc --- /dev/null +++ b/3630/CH6/EX6.1/Ex6_1.sce @@ -0,0 +1,7 @@ +clc;
+B=300;
+Ib=[0.00002 0.00005]; //Ampere
+Ic1=B*Ib(1,1); //Ampere
+Ic2=B*Ib(1,2); //Ampere
+disp('mA',Ic1*1000,"Ic1=");
+disp('mA',Ic2*1000,"Ic2=");
diff --git a/3630/CH6/EX6.2/Ex6_2.sce b/3630/CH6/EX6.2/Ex6_2.sce new file mode 100644 index 000000000..b0d1293c9 --- /dev/null +++ b/3630/CH6/EX6.2/Ex6_2.sce @@ -0,0 +1,7 @@ +clc;
+B=200;
+Ib=0.000125; //Ampere
+Ic=B*Ib; //Ampere
+Ie=Ib+Ic; //Ampere
+disp('mA',Ic*1000,"Ic=");
+disp('mA',Ie*1000,"Ie=");
diff --git a/3630/CH6/EX6.3/Ex6_3.sce b/3630/CH6/EX6.3/Ex6_3.sce new file mode 100644 index 000000000..1f2c5fbfd --- /dev/null +++ b/3630/CH6/EX6.3/Ex6_3.sce @@ -0,0 +1,7 @@ +clc;
+B=200;
+Ie=0.015; //Ampere
+Ib=Ie/(B+1); //Ampere
+Ic=B*Ib; //Ampere
+disp('micro Amperes',Ib*1000000,"Ic=");//The answers vary due to round off error
+disp('mA',Ic*1000,"Ie=");//The answers vary due to round off error
diff --git a/3630/CH6/EX6.4/Ex6_4.sce b/3630/CH6/EX6.4/Ex6_4.sce new file mode 100644 index 000000000..fa65f99c8 --- /dev/null +++ b/3630/CH6/EX6.4/Ex6_4.sce @@ -0,0 +1,8 @@ +clc;
+B=400;
+Ic=0.05; //Amperes
+Ib=Ic/B; //Amperes
+Ie=Ic+Ib; //Amperes
+disp('Amperes',Ib,"Ib=");//The answers vary due to round off error
+disp('Amperes',Ie,"Ie=");//The answers vary due to round off error
+
diff --git a/3630/CH6/EX6.5/Ex6_5.sce b/3630/CH6/EX6.5/Ex6_5.sce new file mode 100644 index 000000000..6eaa4c3ce --- /dev/null +++ b/3630/CH6/EX6.5/Ex6_5.sce @@ -0,0 +1,10 @@ +clc;
+B=300;
+Ie=0.03; //Ampere
+Ib=0.0001; //Ampere
+A=B/(B+1);
+Ic1=A*Ie; //Ampere
+Ic2=B*Ib //Ampere
+disp('Amperes',Ic1,"Ic1=");//The answers vary due to round off error
+disp('Amperes',Ic2,"Ic2=");//The answers vary due to round off error
+
diff --git a/3630/CH6/EX6.6/Ex6_6.sce b/3630/CH6/EX6.6/Ex6_6.sce new file mode 100644 index 000000000..49debf6a6 --- /dev/null +++ b/3630/CH6/EX6.6/Ex6_6.sce @@ -0,0 +1,6 @@ +clc;
+Icmax=0.5; //Ampere
+Bmax=300;
+Ibmax=Icmax/Bmax; //Ampere
+disp('mA',Ibmax*1000,"Ibmax=");//The answers vary due to round off error
+
diff --git a/3630/CH7/EX7.1/Ex7_1.png b/3630/CH7/EX7.1/Ex7_1.png Binary files differnew file mode 100644 index 000000000..03386e5bf --- /dev/null +++ b/3630/CH7/EX7.1/Ex7_1.png diff --git a/3630/CH7/EX7.1/Ex7_1.sce b/3630/CH7/EX7.1/Ex7_1.sce new file mode 100644 index 000000000..38e6b795d --- /dev/null +++ b/3630/CH7/EX7.1/Ex7_1.sce @@ -0,0 +1,11 @@ +clc;
+Vcc=12; //volt
+Vceoff=12; //volt
+Rc=2000; //ohm
+Icsat=Vceoff/Rc; //Ampere//v=r*i
+disp('mA',Icsat*1000,"Icsat=");//The answers vary due to round off error
+T1=0:2:12; // T1 axes is for voltage axes
+T2=6:-1:0 // T2 axes is for Ic mA And T2(max)=Icsat=6 mA
+plot(T1,T2)
+xlabel('Vce(V)')
+ylabel('Ic(mA)')
diff --git a/3630/CH7/EX7.10/Ex7_10.sce b/3630/CH7/EX7.10/Ex7_10.sce new file mode 100644 index 000000000..7b2d2577f --- /dev/null +++ b/3630/CH7/EX7.10/Ex7_10.sce @@ -0,0 +1,9 @@ +clc;
+Vee=-12; //volt
+Re=1500; //ohm
+Icq=-(Vee+0.7)/Re; //Ampere
+Vcc=12; //volt
+Rc=750; //ohm
+Vceq=Vcc-Icq*Rc+0.7; //volt
+disp('mA',Icq*1000,"Icq=");//The answers vary due to round off error
+disp('V',Vceq,"Vceq=");//The answers vary due to round off error
diff --git a/3630/CH7/EX7.11/Ex7_11.sce b/3630/CH7/EX7.11/Ex7_11.sce new file mode 100644 index 000000000..aab2cae11 --- /dev/null +++ b/3630/CH7/EX7.11/Ex7_11.sce @@ -0,0 +1,8 @@ +clc;
+Vcc=12; //volt
+Rc=750; //ohm
+Re=1500;//ohm
+Icsat=(2*Vcc)/(Rc+Re); //Ampere
+Vceoff=2*Vcc; //volt
+disp('mA',Icsat*1000,"Icsat=");//The answers vary due to round off error
+disp('V',Vceoff,"Vceoff=");//The answers vary due to round off error
diff --git a/3630/CH7/EX7.12/Ex7_12.sce b/3630/CH7/EX7.12/Ex7_12.sce new file mode 100644 index 000000000..ac1555289 --- /dev/null +++ b/3630/CH7/EX7.12/Ex7_12.sce @@ -0,0 +1,12 @@ +clc;
+Vcc=10; //volt
+Vbe=0.7; //volt
+Rb=180000; //ohm
+Hfe=100;
+Rc=1500; //Ohm
+Ib=(Vcc-Vbe)/(Rb+(Hfe*Rc)); //Ampere
+Icq=Hfe*Ib; //Ampere
+Vceq=Vcc-Icq*Rc; //volt
+disp('mA',Icq*1000,"Icq=");//The answers vary due to round off error
+disp('V',Vceq,"Vceq=");//The answers vary due to round off error
+
diff --git a/3630/CH7/EX7.13/Ex7_13.sce b/3630/CH7/EX7.13/Ex7_13.sce new file mode 100644 index 000000000..a014afa30 --- /dev/null +++ b/3630/CH7/EX7.13/Ex7_13.sce @@ -0,0 +1,13 @@ +clc;
+Vcc=16; //Volt
+Vbe=0.7; //Volt
+Rb=680000; //Ohm
+Hfe=50;
+Rc=6200; //Ohm
+Re=1600; //Ohm
+Ib=(Vcc-Vbe)/(Rb+((Hfe+1)*Re)); //Ampere
+Icq=Hfe*Ib; //Ampere
+Vceq=Vcc-Icq*(Rc+Re); //Volt
+disp('mA',Icq*1000,"Icq=");//The answers vary due to round off error
+disp('V',Vceq,"Vceq=");//The answers vary due to round off error
+
diff --git a/3630/CH7/EX7.2/Ex7_2.png b/3630/CH7/EX7.2/Ex7_2.png Binary files differnew file mode 100644 index 000000000..e99bdcb63 --- /dev/null +++ b/3630/CH7/EX7.2/Ex7_2.png diff --git a/3630/CH7/EX7.2/Ex7_2.sce b/3630/CH7/EX7.2/Ex7_2.sce new file mode 100644 index 000000000..0db7b5f00 --- /dev/null +++ b/3630/CH7/EX7.2/Ex7_2.sce @@ -0,0 +1,21 @@ +clc;
+Vcc=10; //volt
+Rc=1000; //ohm
+Icsat=Vcc/Rc; //Ampere
+Vceoff=10; //Volt
+Ic=[0.001 0.002 0.005] //Ampere
+Vce=zeros(1,3); //Volt
+for i=1:3
+ Vce(1,i)=Vcc-Ic(1,i)*Rc; //volt
+end
+disp('V',Vce(1,1),"Vce1=");//The answers vary due to round off error
+disp('V',Vce(1,2),"Vce2=");//The answers vary due to round off error
+disp('V',Vce(1,3),"Vce3=");//The answers vary due to round off error
+
+T1=0:1:10; // T1 axes is for voltage axes
+T2=10:-1:0 // T2 axes is for Ic mA
+plot(T1,T2)
+plot((Vce(1,1),Ic(1,1))
+xlabel('Vce(V)')
+ylabel('Ic(mA)')
+
diff --git a/3630/CH7/EX7.3/Ex7_3.sce b/3630/CH7/EX7.3/Ex7_3.sce new file mode 100644 index 000000000..5e873d065 --- /dev/null +++ b/3630/CH7/EX7.3/Ex7_3.sce @@ -0,0 +1,13 @@ +clc;
+Vcc=8; //volt
+Vbe=0.7; //volt
+Rb=360000; //ohm
+Ib=(Vcc-Vbe)/Rb; //Ampere
+Hfe=100;
+Ic=Hfe*Ib;//Ampere
+Rc=2000; //ohm
+Vce=Vcc-Ic*Rc; //volt
+disp('mA',Ic*1000,"Ic=");//The answers vary due to round off error
+disp('V',Vce,"Vce=");//The answers vary due to round off error
+
+
diff --git a/3630/CH7/EX7.4/Ex7_4.png b/3630/CH7/EX7.4/Ex7_4.png Binary files differnew file mode 100644 index 000000000..98cea0c9c --- /dev/null +++ b/3630/CH7/EX7.4/Ex7_4.png diff --git a/3630/CH7/EX7.4/Ex7_4.sce b/3630/CH7/EX7.4/Ex7_4.sce new file mode 100644 index 000000000..40a614da1 --- /dev/null +++ b/3630/CH7/EX7.4/Ex7_4.sce @@ -0,0 +1,21 @@ +clc;
+Vcc=8; //volt
+Rc=2000; //ohm
+Icsat=Vcc/Rc; //Ampere
+Vceoff=Vcc; //volt
+Vcc=8; //volt
+Vbe=0.7; //volt
+Rb=360000; //ohm
+Ib=(Vcc-Vbe)/Rb; //Ampere
+Hfe=100;
+Ic=Hfe*Ib;//Ampere
+Rc=2000; //ohm
+Vce=Vcc-Ic*Rc; //volt
+
+T1=0:2:8; // T1 axes is for voltage axes
+T2=4:-1:0; //T2 axes is for Ic mA
+
+plot(T1,T2)
+xlabel('Vce(V)')
+ylabel('Ic(mA)')
+
diff --git a/3630/CH7/EX7.5/Ex7_5.sce b/3630/CH7/EX7.5/Ex7_5.sce new file mode 100644 index 000000000..4f86b2abd --- /dev/null +++ b/3630/CH7/EX7.5/Ex7_5.sce @@ -0,0 +1,14 @@ +clc;
+//A circuit is midpoint bised when the Q-point value of Vce is one half of Vcc.
+//from example and 7.3
+Vcc=8; //volt
+Vbe=0.7; //volt
+Rb=360000; //ohm
+Ib=(Vcc-Vbe)/Rb; //Ampere
+Hfe=100;
+Ic=Hfe*Ib;//Ampere
+Rc=2000; //ohm
+Vce=Vcc-Ic*Rc; //volt
+disp('V',Vce,"Vce=");//The answers vary due to round off error
+//Here we get Vce = (Vcc/2)
+//We can conclude that the circuit is midpoint
diff --git a/3630/CH7/EX7.6/Ex7_6.sce b/3630/CH7/EX7.6/Ex7_6.sce new file mode 100644 index 000000000..64cd26e87 --- /dev/null +++ b/3630/CH7/EX7.6/Ex7_6.sce @@ -0,0 +1,15 @@ +clc;
+//for T=25' and Hfe=100
+Ib=0.0000203; //Ampere
+Ic=0.00203; //Ampere
+Vce=3.94; //Volt
+//for T=100' andHfe=150
+Hfe=150;
+Vcc=8; //volt
+Rc=2000; //ohm
+Ic=Hfe*Ib; //Ampere
+Vce=Vcc-Ic*Rc; //volt
+disp('mA',Ic*1000,"Ic=");//The answers vary due to round off error
+disp('V',Vce,"Vce=");//The answers vary due to round off error
+
+
diff --git a/3630/CH7/EX7.7/Ex7_7.sce b/3630/CH7/EX7.7/Ex7_7.sce new file mode 100644 index 000000000..2244e527e --- /dev/null +++ b/3630/CH7/EX7.7/Ex7_7.sce @@ -0,0 +1,14 @@ +clc;
+Vcc=10; //volt
+R1=18000; //ohm
+R2=4700; //Ohm
+Vb=(R2/(R1+R2))*Vcc; //volt //voltage divider rule
+Ve=Vb-0.7; //volt
+Re=1100; //ohm
+Icq=Ve/Re; //Ampere//assumption Icq=Ie
+Rc=3000; //Ohm
+Re=1100; //Ohm
+Vceq=Vcc-Icq*(Rc+Re); //Volt
+disp('A',Icq,"Icq=");//The answers vary due to round off error
+disp('V',Vceq,"Vceq=");//The answers vary due to round off error
+
diff --git a/3630/CH7/EX7.8/Ex7_8.sce b/3630/CH7/EX7.8/Ex7_8.sce new file mode 100644 index 000000000..0b4076b97 --- /dev/null +++ b/3630/CH7/EX7.8/Ex7_8.sce @@ -0,0 +1,11 @@ +clc;
+Vcc=20; //volt
+R2=1000; //ohm
+R1=6800; //ohm
+Vb=(R2/(R1+R2))*Vcc; //volt//voltage divider rule
+Ve=Vb-0.7; //volt
+Re=1000; //ohm
+Ie=Ve/Re; //Ampere
+Hfe=50;
+Ib=Ie/(Hfe+1); //Ampere
+disp('Amperes',Ib,"Ib=");//The answers vary due to round off error
diff --git a/3630/CH7/EX7.9/Ex7_9.sce b/3630/CH7/EX7.9/Ex7_9.sce new file mode 100644 index 000000000..7c30acd02 --- /dev/null +++ b/3630/CH7/EX7.9/Ex7_9.sce @@ -0,0 +1,15 @@ +clc;
+Vcc=20; //volt
+R2=10000; //Ohm
+R1=68000; //ohm
+Vth=(R2/(R1+R2))*Vcc; //volt//by voltage divider rule Thevenin
+Rth=(R1*R2)/(R1+R2); //ohm
+Vbe=0.7; //Volt
+Hfe=50;
+Re=1100; //Ohm
+Rc=6200; //Ohm
+Icq=(Vth-Vbe)/((Rth/Hfe)+Re); //Ampere
+Vceq=Vcc-Icq*(Rc+Re); //Volt
+disp('mA',Icq*1000,"Icq=");//The answers vary due to round off error
+disp('V',Vceq,"Vceq=");//The answers vary due to round off error
+
diff --git a/3630/CH8/EX8.1/Ex8_1.sce b/3630/CH8/EX8.1/Ex8_1.sce new file mode 100644 index 000000000..fb41eced8 --- /dev/null +++ b/3630/CH8/EX8.1/Ex8_1.sce @@ -0,0 +1,6 @@ +clc;
+Vout=0.25; //volt
+Vin=0.0004; //volt
+Av=Vout/Vin; //Voltagegain
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH8/EX8.10/Ex8_10.sce b/3630/CH8/EX8.10/Ex8_10.sce new file mode 100644 index 000000000..ac708dde8 --- /dev/null +++ b/3630/CH8/EX8.10/Ex8_10.sce @@ -0,0 +1,7 @@ +clc;
+ApdB=-3;
+Ap=10^(ApdB/10);
+Pout=0.05; //watt
+Pin=Pout/Ap; //watt
+disp('mW',Pin*1000,"Pin=");
+
diff --git a/3630/CH8/EX8.12/Ex8_12.sce b/3630/CH8/EX8.12/Ex8_12.sce new file mode 100644 index 000000000..33950aa87 --- /dev/null +++ b/3630/CH8/EX8.12/Ex8_12.sce @@ -0,0 +1,8 @@ +clc;
+ApdB=50;
+Ap=10^(ApdB/10);
+Pin=0.001; //watt
+Pout=Pin*Ap; //watt
+disp('W',Pout,"Pout=");
+
+
diff --git a/3630/CH8/EX8.13/Ex8_13.sce b/3630/CH8/EX8.13/Ex8_13.sce new file mode 100644 index 000000000..c0e96b492 --- /dev/null +++ b/3630/CH8/EX8.13/Ex8_13.sce @@ -0,0 +1,6 @@ +clc;
+Vout=2; //volt
+Vin=0.025; //volt
+AvdB=20*log10(Vout/Vin);
+disp('dB',AvdB,"AvdB=");//The answers vary due to round off error
+
diff --git a/3630/CH8/EX8.14/Ex8_14.sce b/3630/CH8/EX8.14/Ex8_14.sce new file mode 100644 index 000000000..518f8642c --- /dev/null +++ b/3630/CH8/EX8.14/Ex8_14.sce @@ -0,0 +1,5 @@ +clc;
+AvdB=6;
+Av=10^(AvdB/20);
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH8/EX8.15/Ex8_15.sce b/3630/CH8/EX8.15/Ex8_15.sce new file mode 100644 index 000000000..208a9f7c0 --- /dev/null +++ b/3630/CH8/EX8.15/Ex8_15.sce @@ -0,0 +1,6 @@ +clc;
+AvdB=-6;
+Av=10^(AvdB/20);
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
+
diff --git a/3630/CH8/EX8.2/Ex8_2.sce b/3630/CH8/EX8.2/Ex8_2.sce new file mode 100644 index 000000000..293102b86 --- /dev/null +++ b/3630/CH8/EX8.2/Ex8_2.sce @@ -0,0 +1,5 @@ +clc;
+Vin=0.00024; //volt
+Av=625; //Voltagegain
+Vout=Av*Vin; //volt
+disp('mV',Vout*1000,"Vout=");//The answers vary due to round off error
diff --git a/3630/CH8/EX8.3/Ex8_3.sce b/3630/CH8/EX8.3/Ex8_3.sce new file mode 100644 index 000000000..3c089802d --- /dev/null +++ b/3630/CH8/EX8.3/Ex8_3.sce @@ -0,0 +1,6 @@ +clc;
+Zin=1500; //ohm
+Rs=100; //Ohm
+Vs=0.002; //Volt
+Vin=Vs*(Zin/(Zin+Rs)); //Volt
+disp('mV',Vin*1000,"Vin=");//The answers vary due to round off error
diff --git a/3630/CH8/EX8.4/Ex8_4.sce b/3630/CH8/EX8.4/Ex8_4.sce new file mode 100644 index 000000000..d09bed82d --- /dev/null +++ b/3630/CH8/EX8.4/Ex8_4.sce @@ -0,0 +1,9 @@ +clc;
+Vin=[0.002 0.00188]; //Volt
+Av=500;
+Vout1=Av*Vin(1,1); //Volt
+Vout2=Av*Vin(1,2); //Volt
+disp('V',Vout1,"Vout1=");//The answers vary due to round off error
+disp('mV',Vout2*1000,"Vout2=");//The answers vary due to round off error
+
+
diff --git a/3630/CH8/EX8.5/Ex8_5.sce b/3630/CH8/EX8.5/Ex8_5.sce new file mode 100644 index 000000000..c0f33cd59 --- /dev/null +++ b/3630/CH8/EX8.5/Ex8_5.sce @@ -0,0 +1,9 @@ +clc;
+Vout=0.3; //volt
+RL=1200; //Ohm
+Zout=300; //ohm
+VL=Vout*(RL/(RL+Zout)); //voltage divider rule
+disp('mV',VL*1000,"Vl=");//The answers vary due to round off error
+
+
+
diff --git a/3630/CH8/EX8.6/Ex8_6.sce b/3630/CH8/EX8.6/Ex8_6.sce new file mode 100644 index 000000000..c3dcc44bc --- /dev/null +++ b/3630/CH8/EX8.6/Ex8_6.sce @@ -0,0 +1,6 @@ +clc;
+PL=0.24; //watt
+Pdc=1.2; //watt
+efficiency=(PL/Pdc)*100;
+disp('%',efficiency,"efficiency=");//The answers vary due to round off error
+
diff --git a/3630/CH8/EX8.7/Ex8_7.sce b/3630/CH8/EX8.7/Ex8_7.sce new file mode 100644 index 000000000..275fe7b2a --- /dev/null +++ b/3630/CH8/EX8.7/Ex8_7.sce @@ -0,0 +1,6 @@ +clc;
+Pout=2; //watt
+Pin=0.0001; //watt
+ApdB=10*log10(Pout/Pin);
+disp('dB',ApdB,"ApdB=");//The answers vary due to round off error
+
diff --git a/3630/CH8/EX8.8/Ex8_8.sce b/3630/CH8/EX8.8/Ex8_8.sce new file mode 100644 index 000000000..7c9c6bd57 --- /dev/null +++ b/3630/CH8/EX8.8/Ex8_8.sce @@ -0,0 +1,5 @@ +clc;
+ApdB=3;
+Ap=10^(ApdB/10);
+disp(' ',Ap,"Ap=");
+
diff --git a/3630/CH8/EX8.9/Ex8_9.sce b/3630/CH8/EX8.9/Ex8_9.sce new file mode 100644 index 000000000..dded09b9a --- /dev/null +++ b/3630/CH8/EX8.9/Ex8_9.sce @@ -0,0 +1,7 @@ +clc;
+ApdB=3;
+Ap=10^(ApdB/10);
+Pout=Ap*0.05; //Watt
+disp('mW',Pout*1000,"Pout=");//The answers vary due to round off error
+
+
diff --git a/3630/CH9/EX9.1/Ex9_1.sce b/3630/CH9/EX9.1/Ex9_1.sce new file mode 100644 index 000000000..1af2d0c9f --- /dev/null +++ b/3630/CH9/EX9.1/Ex9_1.sce @@ -0,0 +1,12 @@ +clc;
+R2=2200; //ohm
+R1=10000; //ohm
+Vcc=10; //volt
+Vb=Vcc*(R2/(R1+R2)); //volt
+Ve=Vb-0.7; //volt
+Re=1000; //ohm
+Ie=Ve/Re; //Ampere
+re=0.025/Ie; //Ohm
+disp('ohm',re,"re=");//The answers vary due to round off error
+
+
diff --git a/3630/CH9/EX9.10/Ex9_10.sce b/3630/CH9/EX9.10/Ex9_10.sce new file mode 100644 index 000000000..66561dca2 --- /dev/null +++ b/3630/CH9/EX9.10/Ex9_10.sce @@ -0,0 +1,16 @@ +clc;
+re=22.3; //Ohm
+Hfe=200;
+Zbase=Hfe*re; //Ohm
+R1=18000; //Ohm
+R2=4700; //Ohm
+Req=(R1*R2)/(R1+R2); //Ohm
+Zin=(Req*Zbase)/(Req+Zbase); //Ohm
+rc=1150; //Ohm
+RL=5000; //Ohm
+Ai=Hfe*((Zin*rc)/(Zbase*RL));
+disp(' ',Ai,"Ai=");//The answers vary due to round off error
+
+
+
+
diff --git a/3630/CH9/EX9.11/Ex9_11.sce b/3630/CH9/EX9.11/Ex9_11.sce new file mode 100644 index 000000000..35396e07d --- /dev/null +++ b/3630/CH9/EX9.11/Ex9_11.sce @@ -0,0 +1,13 @@ +clc;
+re=19.8; //Ohm
+Hfe=200;
+Zbase=Hfe*re; //Ohm
+R5=15000; //Ohm
+R6=2500; //Ohm
+Req=(R5*R6)/(R5+R6);//Ohm
+Zin=(Req*Zbase)/(Req+Zbase); //Ohm
+R3=5000; //Ohm
+rc=(R3*Zin)/(R3+Zin); //Ohm
+Av=rc/re;
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.12/Ex9_12.sce b/3630/CH9/EX9.12/Ex9_12.sce new file mode 100644 index 000000000..b798d9c49 --- /dev/null +++ b/3630/CH9/EX9.12/Ex9_12.sce @@ -0,0 +1,10 @@ +clc;
+R7=5000; //Ohm
+RL=10000; //Ohm
+rc=(R7*RL)/(R7+RL);//Ohm
+re=17.4; //Ohm
+Av2=rc/re;
+Av1=53;
+AvT=Av1*Av2;
+disp('',AvT,"AvT=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.13/Ex9_13.sce b/3630/CH9/EX9.13/Ex9_13.sce new file mode 100644 index 000000000..7be1ceb71 --- /dev/null +++ b/3630/CH9/EX9.13/Ex9_13.sce @@ -0,0 +1,13 @@ +clc;
+Ve=1.37; //Volt
+Re=910; //Ohm
+re=300; //Ohm
+Ie=Ve/(Re+re);//Ampere
+re1=0.025/Ie; //Ohm
+Rc=1500; //Ohm
+RL=10000; //Ohm
+rc=(Rc*RL)/(Rc+RL);//Ohm
+Av=rc/(re1+re);
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
+
diff --git a/3630/CH9/EX9.14/Ex9_14.sce b/3630/CH9/EX9.14/Ex9_14.sce new file mode 100644 index 000000000..1a68e9c45 --- /dev/null +++ b/3630/CH9/EX9.14/Ex9_14.sce @@ -0,0 +1,10 @@ +clc;
+rc=1300; //Ohm
+re=2*22.1; //Ohm
+rE=300; //Ohm
+Av1=rc/(re+rE);
+Av2=4.04;
+DelAv=Av2-Av1;
+disp(' ',DelAv,"DelAv=");//The answers vary due to round off error
+
+
diff --git a/3630/CH9/EX9.15/Ex9_15.sce b/3630/CH9/EX9.15/Ex9_15.sce new file mode 100644 index 000000000..9160cbe91 --- /dev/null +++ b/3630/CH9/EX9.15/Ex9_15.sce @@ -0,0 +1,8 @@ +clc;
+re=25; //Ohm
+Hfe=200;
+Zbase=Hfe*re; //Ohm
+rE=200; //Ohm
+Zbase=Hfe*(re+rE); //Ohm
+disp('kohm',Zbase/1000,"Zbase=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.16/Ex9_16.sce b/3630/CH9/EX9.16/Ex9_16.sce new file mode 100644 index 000000000..c2ec4e84c --- /dev/null +++ b/3630/CH9/EX9.16/Ex9_16.sce @@ -0,0 +1,12 @@ +clc;
+R1=10000; //Ohm
+R2=2200; //Ohm
+Zbase1=5000; //Ohm
+Req=(R1*R2)/(R1+R2); //Ohm
+Zin1=(Req*Zbase1)/(Req+Zbase1);//Ohm
+Zbase2=45000; //ohm
+Zin2=(Req*Zbase2)/(Req+Zbase2);//Ohm
+disp('kohm',Zin1/1000,"Zin=");//The answers vary due to round off error
+disp('kohm',Zin2/1000,"Zin=");//The answers vary due to round off error
+
+
diff --git a/3630/CH9/EX9.17/Ex9_17.sce b/3630/CH9/EX9.17/Ex9_17.sce new file mode 100644 index 000000000..788bee8be --- /dev/null +++ b/3630/CH9/EX9.17/Ex9_17.sce @@ -0,0 +1,15 @@ +clc;
+Rc=8000; //Ohm
+Zin1=1330; //Ohm
+rc1=(Rc*Zin1)/(Rc+Zin1);//Ohm
+re=25; //Ohm
+Zin2=1730; //Ohm
+rc2=(Rc*Zin2)/(Rc+Zin2);//Ohm
+re=25;//Ohm
+Av1=rc1/re;
+Av2=rc2/re;
+disp(' ',Av1,"Av1=");//The answers vary due to round off error
+disp(' ',Av2,"Av2=");//The answers vary due to round off error
+
+
+
diff --git a/3630/CH9/EX9.18/Ex9_18.sce b/3630/CH9/EX9.18/Ex9_18.sce new file mode 100644 index 000000000..2aa05df92 --- /dev/null +++ b/3630/CH9/EX9.18/Ex9_18.sce @@ -0,0 +1,12 @@ +clc;
+Hfemin1=110;
+Hfemax1=140;
+Hfe=(Hfemin1*Hfemax1)^0.5;
+Hiemin2=600; //Ohm
+Hiemax2=800; //Ohm
+Hie=(Hiemin2*Hiemax2)^0.5; //Ohm
+rc=460; //Ohm
+Av=(Hfe*rc)/Hie;
+disp(' ',Av,"Av=");//The answers vary due to round off error
+
+
diff --git a/3630/CH9/EX9.3/Ex9_3.sce b/3630/CH9/EX9.3/Ex9_3.sce new file mode 100644 index 000000000..8aa0fa7c1 --- /dev/null +++ b/3630/CH9/EX9.3/Ex9_3.sce @@ -0,0 +1,6 @@ +clc;
+Vout=12; //Volt
+Vin=0.06; //Volt
+Av=Vout/Vin;
+disp('',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.4/Ex9_4.sce b/3630/CH9/EX9.4/Ex9_4.sce new file mode 100644 index 000000000..fb09102b0 --- /dev/null +++ b/3630/CH9/EX9.4/Ex9_4.sce @@ -0,0 +1,16 @@ +clc;
+//step1
+Vcc=20; //volt
+R2=20000; //ohm
+R1=150000; //ohm
+Vb=20*(R2/(R2+R1)); //Volt
+Ve=Vb-0.7; //volt
+Re=2200; //ohm
+Ie=Ve/Re; //Ampere
+re=0.025/Ie; //ohm
+Rc=12000; //ohm
+RL=50000; //ohm
+rc=(Rc*RL)/(Rc+RL); //ohm
+Av=rc/re;
+disp('',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.5/Ex9_5.sce b/3630/CH9/EX9.5/Ex9_5.sce new file mode 100644 index 000000000..cf29738e0 --- /dev/null +++ b/3630/CH9/EX9.5/Ex9_5.sce @@ -0,0 +1,18 @@ +clc;
+R2=4700; //Ohm
+R1=18000; //ohm
+Vcc=10; //volt
+Vth=Vcc*(R2/(R1+R2)); //volt
+Rth=(R1*R2)/(R1+R2); //ohm
+Vbe=0.7; //volt
+Hfe=30;
+Re=1200; //ohm
+Icq=(Vth-Vbe)/((Rth/Hfe)+Re); //Ampere
+Ie=Icq; //Ampere
+re=0.025/Ie; //Ohm
+Rc=1500; //Ohm
+RL=5100; //Ohm
+rc=(Rc*RL)/(Rc+RL);//Ohm
+Av=rc/re;
+disp('',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.6/Ex9_6.sce b/3630/CH9/EX9.6/Ex9_6.sce new file mode 100644 index 000000000..11b7dc531 --- /dev/null +++ b/3630/CH9/EX9.6/Ex9_6.sce @@ -0,0 +1,5 @@ +clc;
+Vin=0.08; //Volt
+Av=48.3;
+Vout=Av*Vin; //Volt
+disp('V',Vout,"Vout=");
diff --git a/3630/CH9/EX9.7/Ex9_7.sce b/3630/CH9/EX9.7/Ex9_7.sce new file mode 100644 index 000000000..fdb8373fe --- /dev/null +++ b/3630/CH9/EX9.7/Ex9_7.sce @@ -0,0 +1,11 @@ +clc;
+Ai=20;
+Av=48.3;
+Ap=Ai*Av;
+Pin=0.00008; //Watt
+Pout=Ap*Pin; //Watt
+disp('mW',Pout*1000,"Pout=");//The answers vary due to round off error
+
+
+
+
diff --git a/3630/CH9/EX9.8/Ex9_8.sce b/3630/CH9/EX9.8/Ex9_8.sce new file mode 100644 index 000000000..6e823acbf --- /dev/null +++ b/3630/CH9/EX9.8/Ex9_8.sce @@ -0,0 +1,6 @@ +clc;
+Rc=3000; //Ohm
+re=25 //Ohm
+Av=Rc/re;
+disp('',Av,"Av=");//The answers vary due to round off error
+
diff --git a/3630/CH9/EX9.9/Ex9_9.sce b/3630/CH9/EX9.9/Ex9_9.sce new file mode 100644 index 000000000..3878aeb2f --- /dev/null +++ b/3630/CH9/EX9.9/Ex9_9.sce @@ -0,0 +1,11 @@ +clc;
+re=22.3; //Ohm
+Hfe=200;
+Zbase=Hfe*re; //Ohm
+R1=18000; //Ohm
+R2=4700; //Ohm
+Req=(R1*R2)/(R1+R2); //Ohm
+Zin=(Req*Zbase)/(Req+Zbase); //Ohm
+disp('kohm',Zin/1000,"Zin=");//The answers vary due to round off error
+
+
|