1. A comparator circuit comprising: an amplifier configured to compare a first input signal with a second input signal and to provide an output signal at an output of the amplifier based upon the comparison; a positive feedback circuit operatively connected to the output of the amplifier and configured to generate a positive feedback signal, the positive feedback circuit including a MOSFET with a gate operatively connected to the output of the amplifier, the MOSFET being configured to generate the positive feedback signal; and a capacitor in direct electrical communication with either a source of the MOSFET, which is not directly electrically connected to electrical ground, or between a drain of the MOSFET and electrical ground, the capacitor attenuating the positive feedback signal generated by the MOSFET.