summaryrefslogtreecommitdiff
path: root/1223/CH3/EX3.14/Ex3_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '1223/CH3/EX3.14/Ex3_14.sce')
-rwxr-xr-x1223/CH3/EX3.14/Ex3_14.sce36
1 files changed, 36 insertions, 0 deletions
diff --git a/1223/CH3/EX3.14/Ex3_14.sce b/1223/CH3/EX3.14/Ex3_14.sce
new file mode 100755
index 000000000..2d681a7bf
--- /dev/null
+++ b/1223/CH3/EX3.14/Ex3_14.sce
@@ -0,0 +1,36 @@
+clear;
+clc;
+//Example 3.14
+R1=56;
+R2=12.2;
+Rc=2;
+Re=.4;
+Vcc=10;
+Vbe=0.7;
+b=100;
+//fig.3.53(b)
+Rth=R2*R1/(R1+R2);
+printf('\nThevenin rquivalent resistance=%0.1f KOhm\n',Rth)
+Vth=(R2/(R1+R2))*Vcc;
+printf('\nThevenin equivalent voltage=%0.2f V\n',Vth)
+Ibq=(Vth-Vbe)/(Rth+(1+b)*Re);
+printf('\nbase current=%f mA\n',Ibq)
+Icq=b*Ibq;
+printf('\ncollector current=%.3f mA\n',Icq)
+Ieq=(1+b)*Ibq;
+printf('\nemitter current=%.2f mA\n',Ieq)
+Vceq=Vcc-Icq*Rc-Ieq*Re;
+printf('\ncollector emitter voltage=%.3f V\n',Vceq)
+b=[50,100,150]
+for x=b
+Ibq=(Vth-Vbe)/(Rth+(1+x)*Re);
+disp("Ibeq,Iceq,Ieq,Vceq")
+disp(Ibq)
+Icq=x*Ibq;
+disp(Icq)
+Ieq=(1+x)*Ibq;
+disp(Ieq)
+Vceq=Vcc-Icq*Rc-Ieq*Re;
+disp(Vceq)
+disp("")
+end