diff options
Diffstat (limited to '2075/CH6/EX6.6/pe6_6.sce')
-rwxr-xr-x | 2075/CH6/EX6.6/pe6_6.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2075/CH6/EX6.6/pe6_6.sce b/2075/CH6/EX6.6/pe6_6.sce new file mode 100755 index 000000000..9abb23779 --- /dev/null +++ b/2075/CH6/EX6.6/pe6_6.sce @@ -0,0 +1,20 @@ +//example 6.6
+clc; funcprot(0);
+clf()
+// Initialization of Variable
+Vol=0.7;
+Iol=40.0/1000;//current
+Epullup=28.0;
+Rpullup=(Epullup-Vol)/Iol;
+disp(Rpullup,"resistance in ohm")
+printf('pick up resistance=680 ohm');
+Rpullup=680.0;
+C=640;
+trise=2.2*Rpullup*C;
+disp(trise/1000,"rise time in ns");
+//for plotting
+x=[0 .1 1.9 4.1 5 5.1 5.3 5.6 6 9.3];
+y=[27.8 .1 .1 .1 .1 5 13.5 21 27 27.8];
+plot(x,y);
+xtitle('Vout vs time','time(mus)','Vout')
+clear()
|