blob: 4125b5f06ec1436b5381d4064ba9c6894df0c331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Caption:Determine required capacitance
//Ex4.9
clc;
clear;
close;
E=4//Input voltage(in volts)
Pw=1//Pulse width(in ms)
Rs=1//Source resistance(in kilo ohm)
Vce=0.2//Saturated Collector emitter voltage(in volts)
Rc=1//Collector resistance(in kilo ohm)
Vcc=10//Collector voltage(in volts)
hfe=100
Vbe=0.7//Base emitter voltage(in volts)
Rb=10//Base resistance(in kilo ohm)
Ic=(Vcc-Vce)/Rc
Ib=Ic*1000/hfe
Irb=Vbe*1000/Rb
ic=Ib+Irb
I=(E-Vbe)/Rs
C=Pw/(Rs*(log(I*1000/ic)))
disp(C,'Required capacitance(in micro farad)=')
|