summaryrefslogtreecommitdiff
path: root/1757/CH13/EX13.1/EX13_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH13/EX13.1/EX13_1.sce')
-rwxr-xr-x1757/CH13/EX13.1/EX13_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1757/CH13/EX13.1/EX13_1.sce b/1757/CH13/EX13.1/EX13_1.sce
new file mode 100755
index 000000000..7859c5e43
--- /dev/null
+++ b/1757/CH13/EX13.1/EX13_1.sce
@@ -0,0 +1,20 @@
+//Example13.1 // to design RC phase shift oscillator for the oscillation frequency f = 1 KHz
+clc;
+clear;
+close;
+f =1 ; // KHz
+C = 0.01 ; // uF
+
+// The oscillation frequency of practical RC phase shift oscillator is defined as
+//w = 1/(sqrt(6)*R*C);
+
+// gain of practical RC phase shift oscillator is
+//A = R1/R = 29 equation 1
+// the frequency selective element resistor
+//R = 1/(sqrt(6)*w*C);
+R = 1/(sqrt(6)*2*%pi*f*C);
+disp('the frequency selective element resistor is = '+string(R)+ ' K ohm ');
+
+// The feedback resistance
+R1 = 29*R ; // from equation 1
+disp('The feedback resistance is = '+string(R1)+ ' K ohm');