summaryrefslogtreecommitdiff
path: root/53/CH9
diff options
context:
space:
mode:
Diffstat (limited to '53/CH9')
-rwxr-xr-x53/CH9/EX9.1/example_1.sce21
-rwxr-xr-x53/CH9/EX9.2/example_2.sce31
-rwxr-xr-x53/CH9/EX9.3/example_3.sce19
3 files changed, 71 insertions, 0 deletions
diff --git a/53/CH9/EX9.1/example_1.sce b/53/CH9/EX9.1/example_1.sce
new file mode 100755
index 000000000..66163481b
--- /dev/null
+++ b/53/CH9/EX9.1/example_1.sce
@@ -0,0 +1,21 @@
+//caption:Design of phase shifter
+//example9.1
+disp("Given frequency fo=10 KHz,Vrms=5 V,phi=10 degrees\n");
+disp("Taking A=C3*R4\n");
+phi=10;//in degrees
+fo=1000;//in Hz
+disp("phi=180-2(atan(2*%pi*f*A))");
+A=tan((180-10)*%pi/(180*2))/(2*fo*%pi);
+printf("Therefore A=C3*R4=%f sec.\n",A);
+R4=10000;//let (in ohms)
+printf("C3 and R4 values are selected such that their product equals or greater than %f, The above values are preferable for low cost and bias compensation",A);
+C3=A/R4;
+printf("\nC3=%f uF",C3*10^6);
+disp("To lower the cost of design,the preferred value is C31=0.22uF");
+C31=0.22;//let Such that C31>C3
+disp("since,C31*R4>A,C31 can be preferred")
+printf("Similarly, R1 and R2 values should be of Good matching to obtain accurate unity gain modulus ");
+printf("RESULTS:\n");
+printf("(i)Resistors, R1=R2=10Kohms\n");
+printf("(iii)R4=%d Kohms\n",R4/1000);//divided by 1000 to display in Kohms
+printf("(iii)Capacitor, C3=%1.2f uF\n",C31);
diff --git a/53/CH9/EX9.2/example_2.sce b/53/CH9/EX9.2/example_2.sce
new file mode 100755
index 000000000..c441ded15
--- /dev/null
+++ b/53/CH9/EX9.2/example_2.sce
@@ -0,0 +1,31 @@
+//caption:design of non inverting amplifier
+//to design a non inverting amplifier
+//mid-band gain Av
+Av=100;
+//input impedance Zin
+Zin=1000000;//in ohms
+//cut-off frequencies fl1 and fl2
+fl1=10;//in Hz
+fl2=10;//in Hz
+//From problem it follows
+R3=Zin;
+disp('fl2=1/(2*%pi*C2*R3)');
+disp('C2=1/(2*%pi*fl2*R3)');
+C2=1/(2*%pi*fl2*R3);
+disp('Av=1+(R2/R1)');
+disp('Bias compensation can also be obtained by taking R2=R3=1MHz');
+R2=R3;
+disp('R1=1/(Av-1)*R2');
+R1=1/(Av-1)*R2;
+printf('R1=%1.1f Kohms, preferred and standard value is 10Kohms\n',R1/1000);
+R=R1;
+R1=10000;//in ohms
+disp('fl1=1/(2*%pi*C1*R3)');
+disp('C1=1/(2*%pi*fl1*R3)');
+C1=1/(2*%pi*fl1*R1);
+printf('RESULTS: Design summary\n');
+printf('R1=%1.1f Kohms, preferred and standard value is 10Kohms\n',R/1000);
+printf('R2=R3=%d Mohm\n',R3/10**6);//divided by 10^6 to convert to Mohms
+printf('C1=%1.2f uF but standard and preferred value is 2.2 uF\n',C1*(10**6));
+printf('C2=%2.1f nF but standard and preferred value is 22 uF\n',C2*(10**9));
+
diff --git a/53/CH9/EX9.3/example_3.sce b/53/CH9/EX9.3/example_3.sce
new file mode 100755
index 000000000..abd94c9b1
--- /dev/null
+++ b/53/CH9/EX9.3/example_3.sce
@@ -0,0 +1,19 @@
+//caption:low pass second order filter
+//to design a low pass second order filter
+//since it is butterworth filter
+Q=1/sqrt(2);
+Wo=100;//in rad/sec.
+H=-2;
+bo=H;
+a1=1/(Q*Wo);
+a2=1/(Wo**2);
+printf("It is convenient to choose R=100Kohms\n");
+R=100;//in Kohms
+R3=R;
+R4=R;
+R1=R4/(-bo);
+a3=R3+R4+((R3*R4)/R1);
+C5=(a1/a3)*(10**6);//in uF
+C2=a2/(R3*R4*C5)*(10**9);//in nF
+printf("RESULTS:\n");
+printf("R=%dKohms,\nR1=%dKohms,\nR3=%dKohms,\nR4=%dKohms,\nC2=%1.3f nF,\nC5=%2.1fuF",R,R1,R3,R4,C2,C5); \ No newline at end of file