summaryrefslogtreecommitdiff
path: root/863/CH14/EX14.6/Ex14_6.txt
blob: 42952c43d90dd1137e130765db87bd02dcd77800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Caption:Determine required current
//Ex14.6
clc;
clear;
close;
c=1280//Input wave clock cycles
f=200//Output frequency(in khz)
p=1000//Pulses during t2
V=1//Input voltage(in volts)
R=10//Resistance(in kilo ohm)
C=0.1//Capacitance(in micro farad)
I=V*1000/R
T=1000/f
t1=T*c
vo=(I*t1)/(C*1000)
t2=T*p
Ir=C*vo*1000/t2
disp(Ir,'Required current(in micro ampere)=')