summaryrefslogtreecommitdiff
path: root/863/CH4/EX4.5/Ex4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '863/CH4/EX4.5/Ex4_5.sce')
-rw-r--r--863/CH4/EX4.5/Ex4_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/863/CH4/EX4.5/Ex4_5.sce b/863/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..96dfa4dcf
--- /dev/null
+++ b/863/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,15 @@
+//Caption:Calculate Rc and Rb
+//Ex4.5
+clc;
+clear;
+close;
+Vcc=12//Collector voltage(in volts)
+V=3//Input voltage(in volts)
+Ic=1//collector current(in mA)
+Vce=0.2//Saturated collector emitter voltage(in volts)
+hfe=70
+Vbe=0.7//Base emitter voltage(in volts)
+Rc=(Vcc-Vce)/Ic
+Ib=Ic*1000/hfe
+Rb=(V-Vbe)*1000/Ib
+disp(Rb,Rc,'Rc and Rb(in kilo ohm)=') \ No newline at end of file