summaryrefslogtreecommitdiff
path: root/863/CH15/EX15.2/Ex15_2.txt
blob: 02d1bfae4f622d4a311f177e40efee10fd774e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Caption:Determine capacitance and minimum acquisition time
//Ex15.2
clc;
clear;
close;
Vs=1//Supply voltage(in volts)
a=0.25//Accuracy(in %)
t=500//Holding time(in micro sec)
Ib=500//Maximum base current(in nA)
Rd=30//Drain Resistance(in ohm)
v=Vs*0.1/100
C=Ib*t*10^(-9)/v
T=7*C*Rd
disp(T,C,'Required capacitance(in micro farad) and acquisition time(in micro sec)=')