summaryrefslogtreecommitdiff
path: root/863/CH4/EX4.8/Ex4_8.sce
blob: a122d419ab9108285414cf3852c4a58194881b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Caption:Calculate Rc,Rb,and Cc
//Ex4.8
clc;
clear;
close;
Vcc=10//Collector voltage(in volts)
Vce=0.2//Saturated collector emitter voltage(in volts)
Ic=10//Collector current(in mA)
Vbe=0.7//Base emitter voltage(in volts)
hfe=100
Pw=1//Pulse width(in ms)
Vi=4//Input voltage(in volts)
Rc=(Vcc-Vce)*1000/Ic
Ib=Ic*1000/hfe
Rb=(Vcc-Vbe)*1000/Ib
Vb=Vi-Vbe-0.5
I=(Vcc+Vi)/Rb
Cc=I*Pw/Vb
disp(Cc,Rb,Rc,'Rc(in ohm),Rb(in kilo ohm),Cc(in micro farad)=')