summaryrefslogtreecommitdiff
path: root/2210/CH6/EX6.3
diff options
context:
space:
mode:
Diffstat (limited to '2210/CH6/EX6.3')
-rwxr-xr-x2210/CH6/EX6.3/6_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2210/CH6/EX6.3/6_3.sce b/2210/CH6/EX6.3/6_3.sce
new file mode 100755
index 000000000..49d792e12
--- /dev/null
+++ b/2210/CH6/EX6.3/6_3.sce
@@ -0,0 +1,19 @@
+//Chapter 6, Problem 3
+clc
+vbe=0.7 //base to emitter voltage
+vcc=20 //supply voltage
+vc=10 //collector voltage
+ic=5e-3 //collector current
+hfe=150 //dc current gain
+vbb=2
+ibb=1e-3
+
+//calculating the biasing resistors
+ib=ic/hfe
+rb=(vbb-vbe)/ib
+r1=vbb/ibb
+rf=((vc-vbb)/(ibb+ib))
+rc=((vcc-vc)/(ic+ib+ibb))
+
+disp("Biasing resistors is given by")
+printf("R1 = %d Kohm\nRb = %.2f Kohm\nRc = %.2f Kohm\nRf = %.2f Kohm",r1/1000,rb/1000,rc/1000,rf/1000)