summaryrefslogtreecommitdiff
path: root/863/CH14/EX14.1/Ex14_1.sce
blob: daadc4311f753e9817aa887230ab0a35b081c7da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Caption:Determine Resistors Rc and Rb
//Ex14.1
clc;
clear;
close;
Vcc=5//Collector voltage(in volts)
Vi=5//Input voltage(in volts)
Vf=1.2//Diode forward voltage(in volts)
hfe=100
I=20//Diode minimum forward current(in mA)
Vce=0.2//Collector emitter saturated voltage(in volts)
Vbe=0.7//Base emitter voltage(in volts)
Rc=(Vcc-Vf-Vce)*1000/I
Ib=I*1000/hfe
Rb=(Vi-Vbe)*1000/Ib
disp(Rb,Rc,'Resistors are Rc and Rb(in kilo ohm)=')