diff options
Diffstat (limited to '3682/CH5/EX5.3/Ex5_3.sce')
-rw-r--r-- | 3682/CH5/EX5.3/Ex5_3.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/3682/CH5/EX5.3/Ex5_3.sce b/3682/CH5/EX5.3/Ex5_3.sce new file mode 100644 index 000000000..360ede9a5 --- /dev/null +++ b/3682/CH5/EX5.3/Ex5_3.sce @@ -0,0 +1,33 @@ +// Exa 5.3
+
+clc;
+clear;
+
+// Given data
+
+// A Schmitt trigger as shown in fig. 5.9- circuit for example 5.3
+
+VUT=0; // Upper threshold(V)
+VH=0.2; // Hysteresis width(V)
+F=1000; // Hz
+Vpp=4; // peak to peak voltage(V)
+
+// Solution
+
+// Since VH=VUT-VLT
+VLT=VUT-VH;
+
+// From fig. 5.9, the angle θ can be calculated as
+// VLT = (Vpp/2)* sin(%pi+ θ);
+// Rearranging above equation
+Theta = asin(VLT/-(Vpp/2)); // in radians
+T= 1/F; // Time period(sec)
+
+// wTθ = 2*%pi*F*Tθ = 0.1
+// Rearranging
+Ttheta= Theta/(2*%pi*F);
+
+T1=T/2 + Ttheta;
+T2=T/2 - Ttheta;
+
+printf('The duration of positive pulse(T1) = %.3f msec and duration of negative pulse(T2) = %.3f msec. \n ',T1*1000,T2*1000);
|