1. In a flash analog-to-digital converter having plural comparators and a reference circuit with plural DC reference signals of different amplitudes, each of the comparators having an analog signal input, a reference signal input, and a logic signal output, the analog signal inputs receiving an analog signal, each of the reference signal inputs receiving a different one of the DC reference signals, and the output signal of each comparator defining one bit of a digital thermometer code which bit is in a first logic state whenever the amplitude of the analog signal is greater than that of the DC reference signal and is in a second logic state whenever the amplitude of the analog signal is less than that of the DC reference signal, a method of determining the presence of and correcting errors in the thermometer code, comprising: arranging the comparator outputs in an order that defines a digital thermometer code in which the outputs of comparators receiving DC reference signals of increasing amplitudes represent thermometer code bits of increasing order, the thermometer code having X number of bits in the first logic state and Y number of bits in the second logic state in response to the amplitude of the analog signal; determining whether there is more than one transition between the first and second logic states for adjacent bits in the thermometer code, the transition for adjacent bits of lowest order defining a lowest order transition; and upon detection of transitions other than the lowest order transition, providing a corrected digital thermometer code having X number of bits in the first logic state and Y number of bits in the second logic state but having only one transition between the first and second logic states.