This is one of the many hysteresis comparator circuits the reader may find in this section and on this site. This is from a Motorola manual that manufactures the used integrated circuit, but it can be applied to almost any operational. The power supply must be symmetrical.
![](/images/stories/cir/225512552023_142455_0001.gif)