summaryrefslogtreecommitdiff
path: root/275/CH3/EX3.3.72/Ch3_3_72.sce
diff options
context:
space:
mode:
Diffstat (limited to '275/CH3/EX3.3.72/Ch3_3_72.sce')
-rwxr-xr-x275/CH3/EX3.3.72/Ch3_3_72.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/275/CH3/EX3.3.72/Ch3_3_72.sce b/275/CH3/EX3.3.72/Ch3_3_72.sce
new file mode 100755
index 000000000..9b7b82e98
--- /dev/null
+++ b/275/CH3/EX3.3.72/Ch3_3_72.sce
@@ -0,0 +1,33 @@
+clc
+disp("Example 3.72")
+printf("\n")
+disp("Draw a DC load line for Voltage divider circuit")
+printf("Given\n")
+//given
+Vcc=15
+Rc=2.7*10^3
+Re=2.2*10^3
+R1=22*10^3
+R2=12*10^3
+Vbe=0.7
+//base voltage
+Vb=(Vcc*R2)/(R1+R2)
+//emitter voltage
+Ve=Vb-Vbe
+//emitter current
+Ie=Ve/Re
+//collector current
+Icq=Ie
+//collector to emitter voltage
+Vceq=Vcc-(Icq*(Rc+Re))
+//collector voltage
+Vc=Vce+Ve
+//to draw DC load line
+Ic1=Vcc/(Rc+Re)
+Vce=[Vcc Vceq 0]
+Ic=[0 Icq Ic1]
+printf("Q(%f volt,%f ampere)\n",Vceq,Icq)
+plot2d(Vce, Ic)
+xlabel("Vce in volt")
+ylabel("Ic in ampere")
+xtitle("DC load line for base bias circuit")