Newbie level 3
I have designed this comparator for 0.2V and 1V hysteresis and it works fine for 0.2V but for 1V it output is not correct. The supply voltage for opamp is (12,0). The ref voltage is 5.1V in both cases. Value of R1 is 1K and Rf is 56.4k for 0.2V hysteresis and 10.5k for 1V hysteresis. The thresholds are 5.2-5.0 V and 5.2-4.2V. but in case of 1V hysteresis the output switches b/w 5.64-4.64. Is smthng wrong with my calculations and do I have to change ref voltage as I change hysteresis?