diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2210/CH6/EX6.4/6_4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2210/CH6/EX6.4/6_4.sce')
-rwxr-xr-x | 2210/CH6/EX6.4/6_4.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2210/CH6/EX6.4/6_4.sce b/2210/CH6/EX6.4/6_4.sce new file mode 100755 index 000000000..01e9810e1 --- /dev/null +++ b/2210/CH6/EX6.4/6_4.sce @@ -0,0 +1,22 @@ +//Chapter 6, Problem 4
+clc
+vbe=0.7 //base to emitter voltage
+ic=1e-3 //collector current
+vc=6 //collector voltage
+hf1=100 //dc current gain
+hf2=250 //dc current gain
+vcc=12 //supply voltage
+vbb=1.5
+ibb=0.5e-3
+
+//calculating the biasing resistors
+hfe=sqrt(hf1*hf2)
+ib=ic/hfe
+rb=((vbb-vbe)/ib)
+r1=vbb/ibb
+rf=((vc-vbb)/(ibb+ib))
+rc=((vcc-vc)/(ic+ib+ibb))
+
+disp("Biasing resistor is given by\n")
+printf("R1 = %d Kohm\nRb = %.2f Kohm\nRc = %.2f Kohm\nRf = %.2f Kohm",r1/1000,rb/1000,rc/1000,rf/1000)
+
|