The invention discloses a
hysteresis comparator circuit capable of externally setting a threshold value, which comprises an input
voltage ui, a positive and negative
threshold voltage preset circuit, comparators A1, A2 and A3 and an A3 in-phase end
voltage bias circuit, an output
voltage uo, + / -Vcc and + Vcc are connected with-Vcc through a
resistor R1, potentiometers P1 and P2 which are connected in parallel, a
resistor R2 and form the positive and negative
threshold voltage preset circuit, the sliding end of P1 is connected with the anti-phase end of A1, and the sliding end of P2 is connected with the anti-phase end of A3. The sliding end of the P2 is connected with the anti-phase end of the A2, the voltage ui is connected with the in-phase ends of the
operational amplifier A1 and the
operational amplifier A2 at the same time, the output end of the A1 is connected with the in-phase end of the
operational amplifier A3 through the R3, the output end of the operational
amplifier A2 is connected with the in-phase input end of the operational
amplifier A3 through the
resistor R4, the anti-phase input end of the operational
amplifier A3 is connected with the working ground, and the output end of the operational amplifier A3 is connected with the in-phase input end of the operational amplifier A3 through the resistor R5. And the output end of the operational amplifier A3 outputs the output voltage uo.