diff options
Diffstat (limited to '2582/CH5')
-rwxr-xr-x | 2582/CH5/EX5.1/Ex5_1.sce | 10 | ||||
-rwxr-xr-x | 2582/CH5/EX5.11/Ex5_11.sce | 14 | ||||
-rwxr-xr-x | 2582/CH5/EX5.12/Ex5_12.sce | 18 | ||||
-rwxr-xr-x | 2582/CH5/EX5.2/Ex5_2.sce | 8 | ||||
-rwxr-xr-x | 2582/CH5/EX5.3/Ex5_3.sce | 6 | ||||
-rwxr-xr-x | 2582/CH5/EX5.4/Ex5_4.sce | 9 | ||||
-rwxr-xr-x | 2582/CH5/EX5.5/Ex5_5.sce | 10 | ||||
-rwxr-xr-x | 2582/CH5/EX5.7/Ex5_7.sce | 11 | ||||
-rwxr-xr-x | 2582/CH5/EX5.8/Ex5_8.sce | 11 | ||||
-rwxr-xr-x | 2582/CH5/EX5.9/Ex5_9.sce | 10 |
10 files changed, 107 insertions, 0 deletions
diff --git a/2582/CH5/EX5.1/Ex5_1.sce b/2582/CH5/EX5.1/Ex5_1.sce new file mode 100755 index 000000000..450f03f39 --- /dev/null +++ b/2582/CH5/EX5.1/Ex5_1.sce @@ -0,0 +1,10 @@ +//Ex 5.1
+clc;clear;close;
+format('v',5);
+R1=100;//kohm
+R2=86;//kohm
+Vsat=15;//V
+VUT=R2/(R1+R2)*Vsat;//V
+VLT=R2/(R1+R2)*-Vsat;//V
+disp(VUT,"VUT(V) : ");
+disp(VLT,"VLT(V) : ");
diff --git a/2582/CH5/EX5.11/Ex5_11.sce b/2582/CH5/EX5.11/Ex5_11.sce new file mode 100755 index 000000000..cb54f06c8 --- /dev/null +++ b/2582/CH5/EX5.11/Ex5_11.sce @@ -0,0 +1,14 @@ +//Ex 5.11
+clc;clear;close;
+format('v',5);
+f0=1.5;//kHz
+Vopp=6;//V
+Vsat=13.5;//V
+//Let R2=10kohm
+R2=10;//kohm
+R3=R2*2*Vsat/Vopp;//kohm
+//Let C1=0.05 micro F
+C1=0.05;//micro F
+R1=R3/(4*f0*1000*R2*1000*C1*10^-6);//kohm
+disp(R3,R2,R1,"Values of R1, R2 & R3(kohm) are : ");
+disp(C1,"Value of C1(micro F)");
diff --git a/2582/CH5/EX5.12/Ex5_12.sce b/2582/CH5/EX5.12/Ex5_12.sce new file mode 100755 index 000000000..f8f2e063b --- /dev/null +++ b/2582/CH5/EX5.12/Ex5_12.sce @@ -0,0 +1,18 @@ +//Ex 5.12
+clc;clear;close;
+format('v',4);
+tau=1;//ms
+//R1/R2=1.8:9;given range
+//Let R1/R2=1.8
+R1BYR2=1.8;//ratio
+Beta1=1/(R1BYR2+1);
+R1BYR2=9;//ratio
+Beta2=1/(R1BYR2+1);//unitless
+Beta=Beta1:Beta2;//Range of Beta
+//For fmin
+Tmax=2*log((1+Beta1)/(1-Beta1));//ms
+fmin=1000/Tmax;//Hz
+//For fmax
+Tmin=2*log((1+Beta2)/(1-Beta2));//ms
+fmax=1/Tmin;//kHz
+disp("Frequency range is "+string(fmin)+" Hz to "+string(fmax)+" kHz");
diff --git a/2582/CH5/EX5.2/Ex5_2.sce b/2582/CH5/EX5.2/Ex5_2.sce new file mode 100755 index 000000000..7baf3c452 --- /dev/null +++ b/2582/CH5/EX5.2/Ex5_2.sce @@ -0,0 +1,8 @@ +//Ex 5.2
+clc;clear;close;
+Rf=100;//kohm
+C=0.1;//micro F
+T=2*Rf*1000*C*10^-6;//s
+disp(T*10^3,"Time period(ms)");
+f=1/T;//Hz
+disp(f,"Frequency(Hz) : ");
diff --git a/2582/CH5/EX5.3/Ex5_3.sce b/2582/CH5/EX5.3/Ex5_3.sce new file mode 100755 index 000000000..aafbc21a7 --- /dev/null +++ b/2582/CH5/EX5.3/Ex5_3.sce @@ -0,0 +1,6 @@ +//Ex 5.3
+clc;clear;close;
+R=100;//kohm
+C=0.01;//micro F
+f=1/(2*R*10^3*C*10^-6);//Hz
+disp(f,"Frequency(Hz) : ");
diff --git a/2582/CH5/EX5.4/Ex5_4.sce b/2582/CH5/EX5.4/Ex5_4.sce new file mode 100755 index 000000000..97510c92a --- /dev/null +++ b/2582/CH5/EX5.4/Ex5_4.sce @@ -0,0 +1,9 @@ +//Ex 5.4
+clc;clear;close;
+f=1*1000;//HZ
+Vs=15;//V
+C=0.1;//micro F(Assumed)
+R=1/(2*f*C*10^-6);//Hz
+disp(R/1000,"For the required design value of R(kohm) : ");
+disp("R1 & R2 can be choosen as 10 kohm");
+///Answer in the book is wrong
diff --git a/2582/CH5/EX5.5/Ex5_5.sce b/2582/CH5/EX5.5/Ex5_5.sce new file mode 100755 index 000000000..492ef326e --- /dev/null +++ b/2582/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,10 @@ +//Ex 5.5
+clc;clear;close;
+Vo=0.7;//V
+Vsat=12;//V
+R1=10;//kohm
+R2=60;//kohm
+Vth=R1/(R1+R2)*Vo;//V
+iDmax=(Vsat-Vo)/R1-Vo/(R1+R2);//mA
+disp(iDmax,"Maximum current(mA) : ");
+
diff --git a/2582/CH5/EX5.7/Ex5_7.sce b/2582/CH5/EX5.7/Ex5_7.sce new file mode 100755 index 000000000..cb6ec350e --- /dev/null +++ b/2582/CH5/EX5.7/Ex5_7.sce @@ -0,0 +1,11 @@ +//Ex 5.7
+clc;clear;close;
+format('v',6);
+R1=10;//kohm
+R2=16;//kohm
+C=10;//nF
+R=62;//kohm
+Beta=R1/(R1+R2);//unitless
+T=2*R*1000*C*10^-9*log((1+Beta)/(1-Beta));//seconds
+f=1/T;//Hz
+disp(f,"Frequency of oscillations(Hz) : ");
diff --git a/2582/CH5/EX5.8/Ex5_8.sce b/2582/CH5/EX5.8/Ex5_8.sce new file mode 100755 index 000000000..84407b966 --- /dev/null +++ b/2582/CH5/EX5.8/Ex5_8.sce @@ -0,0 +1,11 @@ +//Ex 5.8
+clc;clear;close;
+format('v',5);
+//vo/v1=1+R2/R1;//
+//For v2/v1 i.e. gain=2, R1 & R2 should be equal
+Vpp=10;//V
+R1=10;//kohm
+R2=10;//kohm
+//Avg=1/T*integrate('Vpp*sin(2*%pi*t/T)','t',0,T/2);
+Avg=-Vpp/(2*%pi)*[cos(%pi)-cos(0)];
+disp(Avg,"Average output voltage(V) : ");
diff --git a/2582/CH5/EX5.9/Ex5_9.sce b/2582/CH5/EX5.9/Ex5_9.sce new file mode 100755 index 000000000..0d2444a66 --- /dev/null +++ b/2582/CH5/EX5.9/Ex5_9.sce @@ -0,0 +1,10 @@ +//Ex 5.9
+clc;clear;close;
+format('v',5);
+//vo/v1=-2;//Gain for -ve inputs
+voBYvi=-2;//Gain for -ve inputs
+//vo/v1=0;//Gain for non -ve inputs
+Rin=100;//kohm
+R1=100;//kohm(R1=Rin)
+R2=-R1*voBYvi;//kohm
+disp(R2,R1,"Values of R1 & R2(kohm) are : ");
|