summaryrefslogtreecommitdiff
path: root/1223/CH3/EX3.15/Ex3_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1223/CH3/EX3.15/Ex3_15.sce')
-rwxr-xr-x1223/CH3/EX3.15/Ex3_15.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/1223/CH3/EX3.15/Ex3_15.sce b/1223/CH3/EX3.15/Ex3_15.sce
new file mode 100755
index 000000000..f7c717c85
--- /dev/null
+++ b/1223/CH3/EX3.15/Ex3_15.sce
@@ -0,0 +1,27 @@
+clear;
+clc;
+//Example 3.15
+Vcc=5;
+Rc=1;//KOhm
+Vbe=0.7;
+b=120;
+Vceq=3;
+Re=.510;
+Icq=(Vcc-Vceq)/(Rc+Re);
+printf('\ncollector current=%.3f mA\n',Icq)
+Ibq=Icq/b;
+printf('\nbase current=%0.3f mA\n',Ibq)
+//for bias stable circuit
+Rth=0.1*(1+b)*Re;
+printf('\nThevenin rquivalent resistance=%.1f KOhm\n',Rth)
+//Ibq=(Vth-Vbe)/(Rth+(1+b)*Re)
+Vth=Ibq*(Rth+(1+b)*Re)+Vbe;
+printf('\nThevenin equivalent voltage=%.2f V\n',Vth)
+//Vth=(R2/(R1+R2))*Vcc
+//let x=(R2/(R1+R2))
+x=Vth/Vcc
+//Rth=6050=R1*x
+R1=6.05/x;
+printf('\nR1=%.1f KOhms\n',R1)
+R2=x*R1/(1-x);
+printf('\nR2=%.1f KOhms\',R2)