summaryrefslogtreecommitdiff
path: root/863/CH2/EX2.5/Ex2_5.sce
blob: 521d918e4257c3e0d4eb32be8b11ce6f0ea68638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Caption:Calculate Rise time,time for capacitor to charge to required amount and time required for complete charging
//Ex2.5
clc;
clear;
close;
V=5//Voltage source(in volts)
r=39//Resistor(in kilo ohm)
c=500//Capacitance of capacitor(in pf)
tr=2.2*r*c*10^(-3)
t=r*c*10^(-3)
tc=5*r*c*10^(-3)
disp(tc,t,tr,'Rise time,time for  63.2% charging and time required for complete charging(in micro sec)=')