Patent ID: 7884651

Claim:
An electronic device for comparing a first voltage with a first reference voltage and a second reference voltage higher than the first reference voltage, the electronic device comprising: a comparator having a first input receiving the first voltage, a second input receiving a selected reference voltage one of the first reference voltage and the second reference voltage and an output providing an output signal based on a comparison of the first input and the second input; a control stage having an input connected to the output of the comparator generating a control signal based on the output signal from the comparator; wherein the control stage controls the comparator to apply either the first reference voltage or the second reference voltage as the selected reference voltage to the comparator in response to the control signal to compare the first voltage with the selected reference voltage; and wherein the control stage switches the selected reference voltage from the first reference voltage to the second reference voltage following reset if said comparator indicates said first voltage is greater than said first reference voltage for longer than a wait state, the wait state chosen corresponding to a settling time of the comparator.