The present invention concerns an apparatus comprising a first circuit and a
second circuit. The first circuit may be configured to generate a reference output
voltage in response to a plurality of reference voltages. The second circuit may
be configured to generate an output voltage in response to the reference output
voltage and an unknown voltage. The output voltage may comprise accurately controlled hysteresis.