A method for coding a digital to analog converter of a successive
approximation register analog to digital converter includes the steps of
first switching capacitors associated with a bit from ground to a
reference voltage. Next, a determination is made of whether a logical
value of the bit is a first or a second value. If the logical value is
the first value, capacitors associated with a next bit are switched from
ground to a reference voltage. If the logical value is the second value,
one half of the capacitors associated with the bit currently connected
are switched from the reference voltage to ground.