blob: 52b265985748d28cdcbf0251be4ce3f25dc5c1cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//Example6.27 // to determine the hysteresis width of a schmitt trigger
clc;
clear;
close;
R1 = 25*10^3 ; // ohm
R2 = 75*10^3 ; // ohm
VTH = 4 ; // V
VTL = -4 ; // 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' );
|