summaryrefslogtreecommitdiff
path: root/1850/CH8/EX8.8/exa_8_8.sce
blob: 3414eab9b774b869a74f431191687ad79cb4ae75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Exa 8.8
clc;
clear;
close;
//given data
V_UT= 5;// in V
V_LT= -5;// in V
V_sat= 10;// in V (Assume)
// V_UT= (R1/(R1+R2))*V_sat = 5
// V_LT= (-R1/(R1+R2))*V_sat = -5
// 10*R1/(R+R2)= 5
V_hy= V_UT-V_LT;// in volt
disp(V_hy,"Hysteresis voltage in volt")