summaryrefslogtreecommitdiff
path: root/863/CH7/EX7.2/Ex7_2.sce
blob: b933534c59cd9fb749452d3597854e19d3b09dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Caption:Find capacitance
//Ex7.2
clc;
clear;
close;
t=250//Pulse width(in micro sec)
E=9//Input voltage(in volts)
Vbe=0.7//Base emitter voltage(in volts)
Vd=0.7//Diode forward voltage(in volts)
Rb=180//Base resistor(in kilo ohm)
Eo=-(E-Vbe-Vd)
C=t*1000/(Rb*log((E-Eo)/E))
disp(C,'Required capacitance(in pF)=')