diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1757/CH6/EX6.28/EX6_28.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1757/CH6/EX6.28/EX6_28.sce')
-rwxr-xr-x | 1757/CH6/EX6.28/EX6_28.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1757/CH6/EX6.28/EX6_28.sce b/1757/CH6/EX6.28/EX6_28.sce new file mode 100755 index 000000000..f8a62bb14 --- /dev/null +++ b/1757/CH6/EX6.28/EX6_28.sce @@ -0,0 +1,20 @@ +//Example6.28 // to determine the hysteresis width of a schmitt trigger
+clc;
+clear;
+close;
+R1 = 15*10^3 ; // ohm
+R2 = 90*10^3 ; // ohm
+VTH = 10 ; // V
+VTL = -10 ; // V
+
+// the upper crossover voltage of schmitt trigger is defined as
+VU = (R1/(R1+R2))*VTH;
+disp('the upper crossover voltage of schmitt trigger is = '+string(VU)+' V' );
+
+// the lower crossover voltage of schmitt trigger is defined as
+VL = (R1/(R1+R2))*VTL;
+disp('the lower crossover voltage of schmitt trigger is = '+string(VL)+' V' );
+
+// the hysteresis width of schmitt trigger is
+HW = VU-VL ;
+disp('the hysteresis width HW of schmitt trigger is = '+string(HW)+' V' );
|