CPC G01R 19/10 (2013.01) [G01R 19/16576 (2013.01); G01R 19/2506 (2013.01)] | 20 Claims |
1. A device to compare voltages, the device comprising:
analog comparator circuitry having a first input configured to couple to an input voltage and a second input configured to couple to a reference voltage, the analog comparator circuitry configured to output a digital value corresponding to a difference between the input voltage and the reference voltage;
output sampler circuitry configured to:
produce a plurality of samples of the difference; and
count a number of the plurality of samples in which the input voltage is greater than the reference voltage; and
reference adaption circuitry configured to:
determine, based on the count, whether to adjust the reference voltage;
responsive to a determination to adjust the reference voltage, determine, based on the count, an amount of adjustment; and
responsive to a determination not to adjust the reference voltage, provide an indication of the reference voltage to processor circuitry.
|