summaryrefslogtreecommitdiff
path: root/3682/CH5/EX5.2/Ex5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3682/CH5/EX5.2/Ex5_2.sce')
-rw-r--r--3682/CH5/EX5.2/Ex5_2.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3682/CH5/EX5.2/Ex5_2.sce b/3682/CH5/EX5.2/Ex5_2.sce
new file mode 100644
index 000000000..71777492e
--- /dev/null
+++ b/3682/CH5/EX5.2/Ex5_2.sce
@@ -0,0 +1,22 @@
+// Exa 5.2
+
+clc;
+clear;
+
+// Given data
+
+// Circuit of Schmitt trigger
+
+R2=100; // Ohms
+R1=50*10^3; // Ohms
+Vref=0; //Volts
+Vi=1; // peak to peak(Volts)
+Vsat=14;// sSaturation voltage (Volts)
+
+// Solution
+
+printf('Using Equations (5.1) and (5.2), we get calculated values as follows -\n ' );
+Vut=(R2*Vsat)/(R1+R2);
+printf(' Upper threshold voltage (VUT) = %d mV. \n ',round(Vut*1000));
+Vlt=(R2*-Vsat)/(R1+R2);
+printf(' Lower threshold voltage (VLT) = %d mV. \n ',round(Vlt*1000));