Analog-to-digital converter and method for analog-to-digital conversion
20230163776 · 2023-05-25
Inventors
Cpc classification
H03M1/368
ELECTRICITY
H03M1/42
ELECTRICITY
International classification
Abstract
An analog-to-digital converter is provided which is configured to output an n-bit signal in response to an analog input signal. n is greater than 1. The converter comprises n comparators, where each comparator is configured to output one bit of the n-bit signal and comprising a first input and a second input. A first comparator is configured to receive the analog input signal at its first input and a reference value at its second input and to output the first, most significant bit of the n-bit signal. For the remaining comparators, an i-th comparator, is configured to output an i-th bit, the analog-to-digital converter comprises a respective i-th input device. The i-th input device is configured to selectively provide one of 2.sup.i−1 reference values to one of the first or second input of the i-th comparator and the analog input signal to the other one of the first or second input of the i-th comparator, such that the n-bit signal is a Gray code representation of the analog input signal.
Claims
1. An analog-to-digital converter configured to output an n-bit signal in response to an analog input signal, where n is greater than 1, the analog-to-digital converter comprising: n comparators, each comparator configured to output one bit of the n-bit signal and comprising a first input and a second input, wherein a first comparator is configured to receive a reference value at its first input and the analog input signal at its second input and to output the first, most significant bit of the n bit signal, wherein for an i-th comparator, where i=2 . . . n, configured to output an i-th bit, the analog-to-digital converter comprises a respective i-th input device configured to selectively provide one of 2.sup.i−1 reference values to one of the first or second input of the i-th comparator and the analog input signal to the other one of the first or second input of the i-th comparator such that the n-bit signal is a Gray code representation of the analog input signal.
2. The analog-to-digital converter of claim 1, wherein each i-th input device, i=2 . . . n, is configured to be controlled by a logic combination of output signals of the first through (i−1)-th comparators.
3. The analog-to-digital converter of claim 2, wherein the i-th input device is configured to switch the providing of the one of 2.sup.i−1 reference values and the analog input signal between the first and second inputs of the i-th comparator based on an XOR combination of the output signals of the first through (i−1)-th comparators.
4. The analog-to-digital converter of claim 3, wherein the input device of the i-th comparator, i=2 . . . n, comprises a switch device, which is configured to couple in a first position the first input of the i-th comparator to a first reference set and the second input of the i-th comparator to the analog input signal and to couple in a second position the second input of the i-th comparator to a second reference set and the first input of the i-th comparator to the analog input signal.
5. The analog-to-digital converter of claim 4, wherein for the i-th comparator, i=2 . . . n, the first reference set is configured to provide one of first 2.sup.i−2 reference values based on a logic combination of the outputs of the first through (i−2)-th comparators and wherein the second reference set is configured to provide one of second 2.sup.i−2 reference values different from the first 2.sup.i−2 reference values based on the logic combination.
6. The analog-to-digital converter of claim 1, wherein for providing one of 2.sup.i−1 reference values the analog-to-digital converter includes a digital-to-analog converter.
7. The analog-to-digital converter of claim 1, wherein the analog-to-digital converter is configured to operate independently from a clock signal.
8. The analog-to-digital converter of claim 1, further comprising a peak detection logic coupled to receive the n-bit signal and to determine a peak value of the n-bit signal over time.
9. The analog-to-digital converter of claim 8, wherein the peak detection logic is configured to operate independently from a clock signal.
10. The analog-to-digital converter of claim 9, wherein the peak detection logic, for each i-th bit, i=1−n, comprises an i-th latch configured to receive the 1-th bit, wherein the peak detection logic is configured such that of the n latches at most one latch, the k-th latch, is switched to transparent providing its input to its output at a given time, wherein the k-th latch is selected from the first to n-th latch with decreasing priority as the latch where for the first to k−1 latches the input corresponds to the output and for the k-th bit the decoded Gray code indicates a higher value of the k-th bit than stored in the k-th latch when the peak detection logic is a maximum peak detection logic, or indicates a lower value of the k-th bit than stored in the k-th latch when the peak detection logic is a minimum peak detection logic.
11. An analog-to-digital conversion method for outputting an n-bit signal in response to an analog input signal, where n is greater than 1, the analog-to-digital conversion method comprising: n comparators (11), each comparator configured to output one bit of the n-bit signal and comprising a first input and a second input, providing a reference value to a first input of a first comparator and the analog input signal to a second input of the first comparator, and obtaining the 1.sup.st, most significant bit of the n bit signal, at the output of the first comparator, and, for each i-th bit, where i=2 . . . n: selectively providing one of 2.sup.i−1 reference values to one of the first or second input of a respective i-th comparator and the analog input signal to the other one of the first or second input of the i-th comparator, and obtaining the i-th bit of the n bit signal at the output of the i-th comparator, such that the n-bit signal is a Gray code representation of the analog input signal.
12. The method of claim 11, wherein the selectively providing for the i-th bit is based on a logic combination of output signals of the first through (i−1)-th comparators.
13. The method of claim 12, wherein, for the i-th bit, the selectively providing comprises switching the providing of the one of 2.sup.i−1 reference values and the analog input signal between the first and second inputs of the i-th comparator based on an XOR combination of the output signals of the first through (i−1)-th comparators.
14. The method of claim 13, further comprising compensating delays caused by the XOR combinations.
15. The method of claim 11 further comprising: detecting a peak in the n-bit signal over time.
16. An analog-to-digital converter comprising: a first comparator operative to receive an analog input signal and a first reference value, the first comparator operative to output a first bit value of a multi-bit signal based on a comparison of the analog input signal to the first reference value; a second comparator operative to receive the analog input signal and a second reference value, the second comparator operative to output a second bit value of the multi-bit signal based on a comparison of the analog input signal to the second reference value; and signal path switch circuitry operative to control selection of inputting the analog input signal to a first input or a second input of the second comparator.
17. The analog-to-digital converter as in claim 16, wherein the signal path switch circuitry includes: first switch circuitry operative to control input of the analog input signal to the first input of the second comparator or the second input of the second comparator; and second switch circuitry operative to control input of the second reference value to the first input of the second comparator and input of a third reference value to the second input of the second comparator.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Various embodiments will be described referring to the attached drawings, wherein:
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
DETAILED DESCRIPTION
[0026] In the following, various embodiments will be described referring to the attached drawings. These embodiments are to be taken as examples only and are not to be construed as limiting in any way. For example, while embodiments may be described including a plurality of features (components, elements, devices, acts, events, steps or the like), in other embodiments some of these features may be omitted or replaced by alternative features. In addition to the features explicitly shown and described, further features may be provided, for example features used in conventional analog-to-digital converters. Features from different embodiments may be combined to form further embodiments. Variations, modifications or details described with respect to one of the embodiments may also be applied to other embodiments and will therefore not be described repeatedly.
[0027] Connections or couplings described with respect to the figures refer to electrical connections or couplings. Such connections or couplings may be modified, for example by additional intervening elements or by removing elements, as long as the general purpose of the connection or coupling, for example to provide a certain signal, to supply a voltage or a current etc. is essentially maintained.
[0028] In the following, n-bit analog-to-digital converters will be described. For ease of explanation, the most significant bit (MSB) will be referred to as bit 1, followed by the next most significant bit as bit 2, and so on, until bit n, which is the least significant bit. This somewhat differs from the naming convention most frequently used, where the least significant bit is referred to as bit 0, but facilitates explanation of the operation of analog-to-digital converters described herein. As a matter of course, changing the naming convention does not change the function of the analog-to-digital converter per se.
[0029] Turning now to the figures,
[0030] Comparator 11_1 receives the analog input signal anin at a positive input thereof and a reference value received from a reference value generation circuit 13 at a negative input thereof. Typically, the reference value for comparator 11_1 will be half of the full scale of signal anin. For example, if anin has a range from 0 to 10 V, the reference value provided to the negative input of comparator 11_1 would be about 5 V.
[0031] Furthermore, each comparator 11_i, i=2 . . . n (in case of n=2 to be understood as only the second comparator 11_2), has a respective input device 12_i assigned thereto. The input device 12_i receives the analog input signal anin and 2.sup.i−1 reference values (for example two reference values for input device 12_2, four reference values for input device 12_3 etc.). The reference values provided to input device 12_i may be set to a value between the reference values provided to the previous input device 12_i−1 (or the reference value provided to comparator 11_1 for i=2), zero and full scale. For example, as for comparator 11_1 the reference value may be half of full scale, for input device 12_2 the reference values are between zero and half of full scale (e.g. 1/4 full scale) and between half of full scale and full scale (e.g. 3/4 full scale). For input device 12_3, the reference values would then be arranged between the reference values of the previous comparators, zero and full scale, for example at 1/8, 3/8, 5/8 and 7/8 of full scale for input device 12_3.
[0032] The respective input device provides the analog input signal anin selectively to either the positive or the negative input of the respective comparator and provides a selected reference value of the assigned 2.sup.i−1 reference values to the other one of the positive or negative input of the i-th comparator. The selections which reference value is provided and to which of the respective inputs of the i-th comparator the selected reference value and the analog input signal anin are provided, are made based on output signals of the comparator for the previous (more significant) bits, i.e. based on the output signals of comparator 11_1 to 11_i−1 for each i-th input device 12_i, as illustrated by corresponding connections in
[0033]
[0034] The reference values of the first and second reference set differ from each other and may be interleaved with each other, such that starting from zero up to full scale the reference values are alternatingly assigned to first reference set 21 or second reference set 22. The selection of the reference value in each reference set, and the selection from which reference set a reference value is used, depends on output signals of previous (higher bit) comparators, as explained with reference to
[0035]
[0036] Reference values are indicated in
[0037] Comparator 11_1, at a positive input thereof, receives analog input signal anin, and at a negative input thereof receives a reference value “1/2”, i.e. 1/2 of full scale. The output of comparator 11_1 is output as most significant bit, bit 1, of the Gray code, which is 1 if anin exceeds 1/2 full scale and 0 otherwise.
[0038] Comparator 11_2 has a switch device 31_2 assigned thereto, the function of which corresponds to switch device 20 of
[0039] Switch devices corresponding to switch device 31_2 are provided to comparators 11_3 and 11_4, as switch devices 31_3 and 31_4, respectively. Switch device 31_3 is controlled via an XOR combination of the output signals of comparators 11_1, 11_2 provided by an XOR gate 30_2, and switch device 31_4 is controlled by an XOR combination of the output signals of comparators 11_1, 11_2, 11_3 provided by XOR gate 30_2 and a further XOR gate 30_3, as shown.
[0040] Furthermore, the reference values provided to switch devices 31_3, 31_4 are selected, i.e. here the first reference set 21 and the second reference set 22 comprise more than one reference value, which are selected. For switch device 31_3, a switch stage 32_3 controlled by the output signal of comparator 11_1 selects, on the one hand, one of reference values “1/8” and “5/8” for providing to switch device 31_3 (first reference set) and on the other hand one of reference values “3/8” and “7/8” (second reference set). For switch device 31_4, two switch stages 32_4a and 32_4b are provided as shown, where stage 32_4a is controlled by the output signal of comparator 11_1, and stage 32_4b is controlled by the output signal of comparator 11_2. A first reference value of a first reference set is therefore selected from “1/16”, “13/16”, “5/16” and “9/16” to be provided to switch device 31_4, and from a second reference set including “3/16”, “15/16”, “7/16” and “11/16” also a second reference value is selected to be provided to switch device 31_4.
[0041] It should be noted that the switch logic of
[0042] To further illustrate the operation of embodiments, example signals are shown in
[0043] In
[0044]
[0045]
[0046] As shown in
[0047] This has the consequence that as soon as the analog input signal exceeds the reference value of “3/4”, bit 2 toggles again and goes from high to low, as can be seen by curve 44 in
[0048]
[0049] Finally,
[0050] For transitions of the input signal anin, as can be seen in
[0051] The Gray code may be converted to a conventional binary code using a series of exclusive OR gates, as known to a skilled person. Such a binary code may then, if needed for a certain application, be converted again to analog using a conventional digital-to-analog converter like an R/2R digital-to-analog converter. Furthermore, a Gray code digital signal if needed may be converted directly back to analog using a resistive string and a cascade of switches, also in a conventional manner.
[0052] Next, variations and additions to the above embodiments will be described.
[0053] The XOR gates 30_2, 30_3 have a certain propagation delay, for example in case of implementation in CMOS technology of a few nanoseconds, while comparators have a propagation delay in the order of 100 nanoseconds. Therefore, in many implementations the propagation delays of the XOR gate do not adversely affect the operation of the comparators, the effect may be negligible.
[0054] Nevertheless, to mitigate the influence of this delay further,
[0055] As mentioned, reference values may be provided for example by a resistive divider, and then may be selected via switches as shown in
[0056] As mentioned above referring to
[0057] However, other comparator implementations may also be used.
[0058] The output bits of the analog-to-digital converter may be stored and held for example by a set of latches or registers. Latching or registering Gray code data requires no setup or hold times, as only one bit changes at a time and the stored result represents either the state before the bit change or the state after the bit change, but no other combination corresponding to a completely different level, unlike binary code that must not be stored or latched without applying setup and hold times.
[0059] One example for further processing the resulting Gray code is to detect a maximum value of the output over time. A corresponding embodiment of an asynchronous maximum detector is shown in
[0060] In particular, for the latch of the most significant bit 1, latch 80_1, one logic gate is used to switch it to transparent or hold. This series of XOR gates is similar to the generation of the Gray code illustrated in
[0063]
[0064] At 90, for a bit 1, the most significant bit, the method comprises providing an analog input signal to a first input (positive input in case of
[0065] Some embodiments are defined by the following examples.
[0066] Example 1. An analog-to-digital converter configured to output an n-bit signal in response to an analog input signal, where n is greater than 1, comprising: [0067] n comparators, each comparator configured to output one bit of the n-bit signal and comprising a first input and a second input, [0068] wherein a first comparator is configured to receive a reference value at its first input and the analog input signal at its second input and to output the first, most significant bit of the n bit signal, [0069] wherein for an i-th comparator, i=2 . . . n, configured to output an i-th bit, the analog-to-digital converter comprises a respective i-th input device configured to selectively provide one of 2.sup.i−1 reference values to one of the first or second input of the i-th comparator and the analog input signal to the other one of the first or 20 second input of the i-th comparator such that the n-bit signal is a Gray code representation of the analog input signal.
[0070] Example 2. The analog-to-digital converter of example 1, wherein each i-th input device, i=2 . . . n, is configured to be controlled by a logic combination of output signals of the first through (i−1)-th comparators.
[0071] Example 3. The analog-to-digital converter of example 2, wherein the i-th input device is configured to switch the providing of the one of 2.sup.i−1 reference values and the analog input signal between the first and second inputs of the i-th comparator based on an XOR combination of the output signals of the first through -th comparators.
[0072] Example 4. The analog-to-digital converter of example 3, wherein the input device of the i-th comparator, i=2 . . . n, comprises a switch device, which is configured to couple in a first position the first input of the i-th comparator to a first reference set and the second input of the i-th comparator to the analog input signal and to couple in a second position the second input of the i-th comparator to a second reference set and the first input of the i-th comparator to the analog input signal.
[0073] Example 5. The analog-to-digital converter of example 4, wherein for the i-th comparator, i=2 . . . n, the first reference set is configured to provide one of first 2.sup.i−2 reference values based on a logic combination of the outputs of the first through (i−2)-th comparators and wherein the second reference set is configured to provide one of second 2.sup.i−2 reference values different from the first 2.sup.i−2 reference values based on the logic combination. For i=2 this means no logic combination (and therefore always the same reference value), as i-2=0 in this case.
[0074] Example 6. The analog-to-digital converter of any one of examples 3 to 5, further comprising delay compensation elements to mitigate differences in switching times of different stages by compensating delays caused by the XOR combinations.
[0075] Example 7. The analog-to-digital converter of any one of examples 1 to 6, wherein for providing one of 2.sup.i−1 reference values the analog-to-digital converter includes a digital-to-analog converter.
[0076] Example 8. The analog-to-digital converter of any one of examples 1 to 7, wherein the analog-to-digital converter is configured to operate independently from a clock signal.
[0077] Example 9. The analog-to-digital converter of any one of examples 1 to 8, further comprising a peak detection logic coupled to receive the n-bit signal and to determine a peak value of the n-bit signal over time.
[0078] Example 10. The analog-to-digital converter of example 9, wherein the peak detection logic is configured to operate independently from a clock signal.
[0079] Example 11. The analog-to-digital converter of example 9 or 10, wherein the peak detection logic, for each i-th bit, i=1−n, comprises an i-th latch configured to receive the 1-th bit, wherein the peak detection logic is configured such that of the n latches at most one latch, the k-th latch, is switched to transparent providing its input to its output at a given time, wherein the k-th latch is selected from the first to n-th latch with decreasing priority as the latch where for the first to k−1 latches the input corresponds to the output and for the k-th bit the decoded Gray code [0080] indicates a higher value of the k-th bit than stored in the k-th latch when the peak detection logic is a maximum peak detection logic, or [0081] indicates a lower value of the k-th bit than stored in the k-th latch when the peak detection logic is a minimum peak detection logic.
[0082] Example 12. An analog-to-digital conversion method for outputting an n-bit signal in response to an analog input signal, where n is greater than 1, comprising: [0083] n comparators, each comparator configured to output one bit of the n-bit signal and comprising a first input and a second input, [0084] providing a reference value to a first input of a first comparator and the analog input signal to a second input of the first comparator, and obtaining the 1st, most significant bit of the n bit signal, at the output of the first comparator, [0085] and, for each i-th bit, i=2 . . . n: [0086] selectively providing one of 2.sup.i−1 reference values to one of the first or second input of a respective i-th comparator and the analog input signal to the other one of the first or second input of the i-th comparator, and obtaining the i-th bit of the n bit signal at the output of the i-th comparator, such that the n-bit signal is a Gray code representation of the analog input signal.
[0087] Example 13. The method of example 12, wherein the selectively providing for the i-th bit is based on a logic combination of output signals of the first through (i−1)-th comparators.
[0088] Example 14. The method of example 13, wherein, for the i-th bit, the selectively providing comprises switching the providing of the one of 2.sup.i−1 reference values and the analog input signal between the first and second inputs of the i-th comparator based on an XOR combination of the output signals of the first through (i−1)-th comparators.
[0089] Example 15. The method of example 14, further comprising compensating delays caused by the XOR combinations.
[0090] Example 16. The method of any one of examples 12 to 15, further comprises detecting a peak in the n-bit signal over time.
[0091] Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that a variety of alternate and/or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the present invention. This application is intended to cover any adaptations or variations of the specific embodiments discussed herein. Therefore, it is intended that this invention be limited only by the claims and the equivalents thereof.