summaryrefslogtreecommitdiff
path: root/1583/CH7/EX7.2/Oscillators_Ex_7_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1583/CH7/EX7.2/Oscillators_Ex_7_2.sce')
-rwxr-xr-x1583/CH7/EX7.2/Oscillators_Ex_7_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1583/CH7/EX7.2/Oscillators_Ex_7_2.sce b/1583/CH7/EX7.2/Oscillators_Ex_7_2.sce
new file mode 100755
index 000000000..643bf35d9
--- /dev/null
+++ b/1583/CH7/EX7.2/Oscillators_Ex_7_2.sce
@@ -0,0 +1,17 @@
+clc
+//Chapter 7:Conditions for Oscillation
+//example 7.2 page no 251
+//given
+B=100
+f=5*10^6//oscillator frequency
+L=10*10^-6//inductor
+X=(L*(2*%pi*f)^2)^-1//Taking X=C1'*C2/(C1'+C2)
+r=3.14//series resistance of inductor
+C1=200*10^-12//first capacitor(asumming values of capacitors)
+C2=200*10^-12//second capacitor
+Y=(1+B)/(((2*%pi*f)^2)*C1*C2)
+Z=L/C1
+rpi=(Y-Z)*r^-1//resistance
+gm=rpi^-1//transconductance
+I=gm/40//bias current
+mprintf('the equivalent capacitance is %3.2e pF \n the resistance value is %3.2e ohm \n the bias current is %3.2e A',X,rpi,I)