The circuit in Figure 1 is a single-supply version of a programmable Schmitt trigger, or a comparator with hysteresis. A comparator, A1, and a digitally programmable potentiometer (DPP1) are used for the function. The lower (V LL ) and upper (V UL ...