ANALOG-TO-DIGITAL CONVERTER

20230132135 · 2023-04-27

Assignee

Inventors

Cpc classification

International classification

Abstract

An analog-to-digital converter is disclosed that converts an input analog potential to a digital conversion value. An analog-to-digital converter according to one or more embodiments may include a comparator that compares the input analog potential with a reference potential; and a conversion circuit that measures comparison operation time from a start to an end of a comparison operation by the comparator and outputs the digital conversion value according to the measured comparison operation time and a comparison result by the comparator.

Claims

1. An analog-to-digital converter that converts an input analog potential to a digital conversion value comprising: a comparator that compares the input analog potential with a reference potential; and a conversion circuit that measures comparison operation time from a start to an end of a comparison operation by the comparator and outputs the digital conversion value according to the measured comparison operation time and a comparison result by the comparator.

2. The conversion circuit according to claim 1, wherein the digital conversion value is calculated from the comparison operation time based on correlation characteristics of a potential difference between the input analog potential and the reference potential and the comparison operation time of the comparator.

3. An analog-to-digital converter that converts an input analog potential to a digital conversion value comprising: comparators that compare the input analog potential with different reference potentials, respectively; and a conversion circuit that outputs the digital conversion value according to comparison operation time from a start to an end of a comparison operation by a comparator identified among the comparators.

4. The conversion circuit according to claim 3, wherein respective correlation characteristics of a potential difference between the input analog potential and the reference potential and the comparison operation time of the comparators are stored, and the digital conversion value is calculated from the comparison operation time based on the correlation characteristics of the identified comparator.

5. The analog-to-digital converter according to claim 3, wherein the conversion circuit identifies the comparator based on the comparison operation time.

6. The analog-to-digital converter according to claim 3, wherein the conversion circuit identifies the comparator based on comparison results of the comparators.

7. The analog-to-digital converter according to claim 3, further comprising: an intermediate potential comparator that compares the input analog potential with an intermediate potential of the reference potentials, wherein the conversion circuit identifies the comparator based on a comparison result of the intermediate potential comparator.

8. The analog-to-digital converter according to claim 7, wherein the comparators comprise a combination of different types of comparators, and the conversion circuit identifies the comparator of the identified type based on a comparison result of the intermediate potential comparator.

Description

BRIEF DESCRIPTION OF DRAWINGS

[0018] FIG. 1 is a configuration diagram illustrating a configuration of an AD converter according to a first embodiment;

[0019] FIG. 2 is a circuit diagram illustrating a configuration example of a comparator illustrated such as in FIG. 1;

[0020] FIGS. 3A, 3B, and 3C are waveform diagrams illustrating operations of the comparator and an end detection circuit illustrated such as in FIG. 1;

[0021] FIG. 4 is a diagram illustrating an example of correlation characteristics of the comparator illustrated such as in FIG. 1;

[0022] FIGS. 5A, 5B, and 5C are diagrams illustrating examples of calculations of an input analog potential from the comparison operation time in a time measuring circuit illustrated such as in FIG. 1;

[0023] FIG. 6 is a configuration diagram illustrating a configuration of an AD converter according to a second embodiment;

[0024] FIG. 7 is a diagram illustrating an example of correlation characteristics of a comparator illustrated such as in FIG. 6;

[0025] FIG. 8 is a configuration diagram illustrating a configuration of an AD converter according to a third embodiment;

[0026] FIG. 9 is a diagram illustrating an example of correlation characteristics of a comparator illustrated such as in FIG. 8;

[0027] FIG. 10 is a configuration diagram illustrating a configuration of an AD converter according to a fourth embodiment;

[0028] FIG. 11 is a diagram illustrating an example of correlation characteristics of a comparator illustrated such as in FIG. 10;

[0029] FIG. 12 is a configuration diagram illustrating a configuration of an AD converter according to a fifth embodiment;

[0030] FIG. 13 is a circuit diagram illustrating an example of a configuration of a different type of comparator illustrated such as in FIG. 12; and

[0031] FIG. 14 is a diagram illustrating an example of correlation characteristics of a comparator illustrated such as in FIG. 12.

DETAILED DESCRIPTION

[0032] AD converters according to one or more embodiments are explained with referring to drawings. In the respective drawings referenced herein, the same constituents are designated by the same reference numerals and duplicate explanation concerning the same constituents may be omitted. All of the drawings are provided to illustrate the respective examples only. No dimensional proportions in the drawings shall impose a restriction on the embodiments. For this reason, specific dimensions and the like should be interpreted with the following descriptions taken into consideration. In addition, the drawings include parts whose dimensional relationships and ratios are different from one drawing to another. Asterisks“*” in the specification mean wildcards, which may refer to any single or multiple elements, numbers, symbols, or strings, etc. that may be applicable.

First Embodiment

[0033] Referring to FIG. 1, an analog-to-digital converter 1 according to a first embodiment (hereinafter referred to as an AD converter 1) comprises a comparator 2 that compares an input analog potential A.sub.in input as an analog signal with a reference potential V.sub.ref, an end detection circuit 3 that detects the end of a comparison operation by the comparator 2, a time measuring circuit 4 (hereinafter referred to as a TDC circuit 4) that measures comparison operation time from the start to the end of the comparison operation by the comparator 2 and that outputs a digital conversion value CODE according to the measured comparison operation time and a comparison result Q conducted by the comparator 2.

[0034] The comparator 2 comprises a first input terminal to which the input analog potential A.sub.in of a lower limit reference potential V.sub.REFL to an upper limit reference potential V.sub.REFH is input, a second input terminal to which the reference potential V.sub.ref set to a potential between the lower limit reference potential V.sub.REFL and the upper limit reference potential V.sub.REFH (a potential in the center of the lower limit reference potential V.sub.REFL and the upper limit reference potential V.sub.REFH in the disclosure) is input, an output terminal that outputs the comparison result Q of the input analog potential A.sub.in and the reference potential V.sub.ref, an inverted output terminal that outputs an inverted output Q of the comparison result Q, and a start signal input terminal to which a start signal START is input.

[0035] In the comparator 2, the start signal START input to the start signal input terminal is a comparison start instruction signal that instructs the comparator 2 to start the comparison, and when the start signal START transitions from a high level Hi to a low level Low, the comparator 2 starts a comparison operation of the input analog potential A.sub.in input to the first input terminal and the reference potential V.sub.ref input to the second input terminal. The comparator 2 outputs “1” (high level Hi) as the comparison result Q from the output terminal when the input analog potential A.sub.in>the reference potential V.sub.ref, and outputs “0” (low level Low) as the comparison result Q from the output terminal when the input analog potential A.sub.in<the reference potential V.sub.ref.

[0036] As illustrated in FIG. 2, for example, the comparator 2 may be configured with a circuit in which a P-channel MOS transistor P0 functioning as a power switch 22 is added to a memory cell 21 of a general CMOS type SRAM. The gate of the P-channel MOS transistor P0 serves as the start signal input terminal of the comparator 2 to which the start signal START is input.

[0037] The memory cell 21 includes P-channel MOS transistors P1 and P2, and N-channel MOS transistors N1, N2, N3, and N4.

[0038] The P-channel MOS transistor P1 and the N-channel MOS transistor N1 comprise a first CMOS inverter. The source of the P-channel MOS transistor P1 is connected to a power supply voltage Vcc via the power switch 22, and the drain of the P-channel MOS transistor P1 is connected to the drain of the N-channel MOS transistor N1. The source of the N-channel MOS transistor N1 is connected to a ground voltage Vss.

[0039] The P-channel MOS transistor P2 and the N-channel MOS transistor N2 comprise a second CMOS inverter. The source of the P-channel MOS transistor P2 is connected to the power supply voltage Vcc via the power switch 22, and the drain of the P-channel MOS transistor P2 is connected to the drain of the N-channel MOS transistor N2. The source of the N-channel MOS transistor N2 is connected to the ground voltage Vss.

[0040] The input of the first CMOS inverter, that is, the gate of the P-channel MOS transistor P1 and the gate of the N-channel MOS transistor N1, is the output of the second CMOS inverter, that is, being connected to the connection point of the drain of the P-channel MOS transistor P1 and the drain of the N-channel MOS transistor N1, and becoming the inverted output terminal of the comparator 2, which outputs the inverted output Q of the comparison result Q.

[0041] The input of the second CMOS inverter, that is, the gate of the P-channel MOS transistor P2 and the gate of the N-channel MOS transistor N2, is the output of the first CMOS inverter, that is, being connected to the connection point of the drain of the P-channel MOS transistor P2 and the drain of the N-channel MOS transistor N2, and becoming the output terminal of the comparator 2, which outputs the comparison result Q.

[0042] The N-channel MOS transistor N3 is connected in parallel with the N-channel MOS transistor N1, and the gate of the N-channel MOS transistor N3 is the second input terminal of the comparator 2 to which the reference potential V.sub.ref is input.

[0043] The N-channel MOS transistor N4 is connected in parallel with the N-channel MOS transistor N2, and the gate of the N-channel MOS transistor N4 is the first input terminal of the comparator 2 to which the input analog potential A.sub.in is input.

[0044] Referring to FIGS. 3A to 3C, when the start signal START is at a high level Hi, the P-channel MOS transistor P0, which is the power switch 22, is turned off, and the comparison result Q and the inverted output Q are both “0” (low level Low) regardless of the potentials of the input analog potential A.sub.in and the reference potential V.sub.ref. FIG. 3A illustrates a waveform of the start signal START, FIG. 3B illustrates an output waveform of the comparator 2, and FIG. 3C illustrates an output waveform of the end detection circuit 3.

[0045] When the start signal START transitions to the low level low, the P-channel MOS transistor P0, which is the power switch 22, is turned on, the power supply voltage Vcc is applied to the memory cell 21, and the comparison operation of the comparator 2 starts. In other words, the time at which the start signal START input to the start signal input terminal of the comparator 2 transitions from the high level Hi to the low level Low is the operation start time at which the comparator 2 starts the comparison operation.

[0046] The memory cell 21 to which the power supply voltage Vcc is applied attempts to change from an unstable state in which the comparison result Q=the inverted output Q to a stable state in which the comparison result Q≠inverted output Q. At this time, if the input analog potential A.sub.in>the reference potential V.sub.ref, since the current flowing to the ground voltage Vss is larger in the N-channel MOS transistor N4 than in the N-channel MOS transistor N3, the unstable state of the comparison result Q=inverted output Q is gradually settled, and the comparison result Q becomes “1” (high level Hi) and the inverted output Q becomes “0” (low level Low), which leads to the stable state.

[0047] The end detection circuit 3 is a circuit for detecting the end time of the operation of the comparator 2 based on the output of the comparator 2 (comparison result Q and inverted output Q). The end detection circuit 3 is configured with an exclusive OR circuit, which outputs “0” (low level Low) when the comparison result Q and the inverted output Q are equal and “1” (high level Hi) when the comparison result Q and the inverted output Q are different, for example. In the example illustrated in FIGS. 3A, 3B and 3C, the time at which an output V.sub.time of the end detection circuit 3 transitions from the low level Low to the high level Hi is the operation end time at which the comparison operation of the comparator 2 ends.

[0048] The comparison operation time of the comparator 2 is from the time of the comparator 2 starting the comparison operation to the time of the comparator 2 ending the comparison operation. The comparison operation time of the comparator 2 is correlated with a potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref, as illustrated in FIG. 4. The comparison operation time becomes longer as the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref is smaller and becomes shorter as the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref is bigger. In other words, the comparator 2 whose comparison operation time correlates with the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref is used.

[0049] The fact that there is a correlation between the comparison operation time and the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref, which are compared to each other, in a comparator is a feature that may also be seen in a general comparator with an operational amplifier type, etc., for example. Therefore, the comparator 2 according to one or more embodiments is not limited to the configuration illustrated in FIG. 2, as long as there is a correlation between the comparison operation time and the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref, which are compared to each other.

[0050] The TDC circuit 4 is provided with functions for measuring the comparison operation time of the comparator 2 and for calculating the digital conversion value CODE of the input analog potential A.sub.in using the measured comparison operation time and the comparison result Q.

[0051] The TDC circuit 4 measures the time from the operation start time of the comparator 2 when the start signal START transitions from the high level Hi to the low level Low to the operation end time of the comparator 2 when the output V.sub.time of the end detection circuit 3 transitions from the low level Low to the high level Hi as the comparison operation time.

[0052] The TDC circuit 4 stores correlation characteristics of the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref and the comparison operation time, and calculates the digital conversion value CODE of the input analog potential A.sub.in using the correlation characteristics.

[0053] When the comparison result Q=“1” (high level Hi), the TDC circuit 4 uses the correlation characteristics in the area where the input analog potential A.sub.in is greater than the reference potential V.sub.ref (area X illustrated in FIG. 4) to obtain the input analog potential A.sub.in corresponding to the measured comparison operation time, and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0054] When the comparison result Q=“0” (low level Low), the TDC circuit 4 uses the correlation characteristics in the area where the input analog potential A.sub.in is smaller than the reference potential V.sub.ref (area Y illustrated in FIG. 4) to obtain the input analog potential A.sub.in corresponding to the measured comparison operation time, and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0055] For example, when the comparison result Q=“0” and the measured comparison operation time is “Ta”, the TDC circuit 4 uses the correlation characteristics in the area Y to obtain the input analog potential A.sub.in=“Va” corresponding to the measured comparison operation time=“Ta”, and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in=“Va” to output.

[0056] In the TDC circuit 4, the method of obtaining the input analog potential A.sub.in from the measured comparison operation time may be achieved by storing the correlation characteristics of the comparison operation time and the input analog potential A.sub.in as a look-up table or function illustrated in FIG. 5A. When storing the correlation characteristics as a function, a linear approximation divided by some threshold values may be used as illustrated in FIG. 5B, or a logarithmic approximation divided by some threshold values may be used as illustrated in FIG. 5C.

[0057] In the case of the comparator 2 illustrated in FIG. 2, if the circuit is designed to be excessively fast, the change in the comparison operation time with respect to the input analog potential A.sub.in becomes small, and the resolution during AD conversion becomes rough. Therefore, in order to achieve fine resolution, the comparator 2 may be designed to have the moderately long comparison operation time. The comparison operation time of the comparator 2 may be lengthened by reducing a drain current Ids with N-channel MOS transistors N3 and N4 (reducing W of a shape ratio W/L and increasing L). The comparison operation time of the comparator 2 may also be lengthened by uniformly reducing the drain current Ids between the P-channel MOS transistors P1 and P2 and the N-channel MOS transistors N1, N2, N3 and N4, or by adding capacitance to nodes of the output terminal and the inverted output terminal.

[0058] In the case of the comparator 2 illustrated in FIG. 2, the smaller the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref becomes, the larger the change in the comparison operation time for the input analog potential A.sub.in becomes. The larger the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref becomes, the smaller the change in the comparison operation time for the input analog potential A.sub.in becomes. Accordingly, the AD converter 1 has the problem that the AD converter 1 is difficult to use unless the change in comparison operation time for the input analog potential A.sub.in is large and the input analog potential A.sub.in is in the vicinity of the reference potential V.sub.ref. The second embodiment described below solves this problem.

Second Embodiment

[0059] Referring to FIG. 6, an AD converter 1A of a second embodiment comprises: a voltage divider 5A that generates reference potentials V.sub.ref0 to V.sub.ref3, which differ between the lower limit reference potential V.sub.REFL and the upper limit reference potential V.sub.REFH; comparators 2.sub.0 to 2.sub.3 that compare the input analog potential A.sub.in with each of the reference potentials V.sub.ref0 to V.sub.ref3; end detection circuits 3.sub.0 to 3.sub.3 that detect the end of each of the comparison operations by comparators 2.sub.0 to 2.sub.3; timers 6.sub.0 to 6.sub.3 that measure the comparison operation time of each of the comparators 2.sub.0 to 2.sub.3; and a decoder circuit 7A that outputs the digital conversion value CODE of the input analog potential A.sub.in calculated based on a measured value count* selected from measured values count.sub.0 to count.sub.3 of the respective timers 6.sub.0 to 6.sub.3 (hereinafter, * indicates one of the choices) and a comparison result Q* of a comparator 2* specified among comparison results Q.sub.0 to Q.sub.3 of the comparators 2.sub.0 to 2.sub.3.

[0060] Referring to FIG. 7, the comparison operation time (measured value) of the comparators 2.sub.0 to 2.sub.3 correlates with the respective potential differences between the input analog potential A.sub.in and the reference potentials V.sub.ref0 to V.sub.ref3. The smaller each of the potential differences between the input analog potential A.sub.in and the reference potentials V.sub.ref0 to V.sub.ref3 becomes, the larger the change in the comparison operation time (measured value) for the input analog potential A.sub.in becomes. The voltage divider 5A generates the reference potentials V.sub.ref0 to V.sub.ref3 to make the areas, where the change in the comparison operation time for the input analog potential A.sub.in in the respective correlation characteristics of the comparators 2.sub.0 to 2.sub.3 is sufficiently large, overlap.

[0061] Therefore, the entire measurement range of the AD converter 1A (the lower limit reference potential V.sub.REFL to the upper limit reference potential V.sub.REFH) may be an area where the change in the comparison operation time for the input analog potential A.sub.in is sufficiently large. The number of the reference potential V.sub.ref, the comparator 2, and the end detection circuit 3 may be set as appropriate according to the measurement range, the required accuracy, etc.

[0062] The voltage divider 5A may be configured with a divider resistor, but the resistor may be an element with a large variation and a large layout size. Therefore, it may be suitable for the voltage divider 5A to be configured with a MOS element or a diode element so as to have high accuracy and a reduced layout size.

[0063] The timers 6.sub.0 to 6.sub.3 are input with outputs V.sub.time0 to V.sub.time3 of the respective outputs of the end detection circuits 3.sub.0 to 3.sub.3, the start signal START, and a clock signal CK. The timers 6.sub.0 to 6.sub.3 calculate the measured values count.sub.0 to count.sub.3 from the operation start time of the comparators 6.sub.0 to 6.sub.3 when the start signal START transitions from the high level Hi to the low level Low to the operation end time when the outputs V.sub.time0 to V.sub.time3 of the respective end detection circuits 3.sub.0 to 3.sub.3 transition from the low level Low to the high level Hi as the comparison operation time of each of the comparators 2.sub.0 to 2.sub.3, and output to the decoder circuit 7A.

[0064] As illustrated in FIG. 7, the decoder circuit 7A stores the correlation characteristics of the potential differences between the input analog potential A.sub.in and each of the reference potentials V.sub.ref0 to V.sub.ref3 and the comparison operation time (measured value) of the comparators 2.sub.0 to 2.sub.3, respectively. The decoder circuit 7A selects the largest measured value count* among the measured values count.sub.0 to count.sub.3 and identifies the comparator 2* with the largest comparison operation time. The decoder circuit 7A calculates the digital conversion value CODE of the input analog potential A.sub.in based on the comparison result Q* of the identified comparator 2* and the selected measured value count* by using the correlation characteristics of the identified comparator 2*.

[0065] For example, when the unknown input analog potential A.sub.in is Vb illustrated in FIG. 7, the output V.sub.time2 of the end detection circuit 3.sub.2 transitions from the latest low level Low to the high level Hi, and the decoder circuit 7A selects the measured value count.sub.2=Tb measured by the timer 6.sub.2. The decoder circuit 7A also specifies the comparator 2.sub.2 with the largest comparison operation time.

[0066] When the comparison result Q* of the specified comparator 2*=“1” (high level Hi), the decoder circuit 7A uses the correlation characteristics in the area where the input analog potential A.sub.in of the specified comparator 2* is greater than the reference potential V.sub.ref* (area X* illustrated in FIG. 7) to obtain the input analog potential A.sub.in corresponding to the selected comparison operation time (measured value) and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0067] When the comparison result Q* of the specified comparator 2*=“0” (low level Low), the decoder circuit 7A uses the correlation characteristics in the area where the input analog potential A.sub.in of the specified comparator 2* is smaller than the reference potential V.sub.ref* (area Y* illustrated in FIG. 7) to obtain the input analog potential A.sub.in corresponding to the selected comparison operation time (measured value) and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0068] For example, when the comparison result Q.sub.2 of the identified comparator 2*=“0” and the selected maximum comparison operation time (measured value count.sub.2) is “Tb”, the decoder circuit 7A uses the correlation characteristics in the area Y2 to obtain the input analog potential A.sub.in=“Vb” corresponding to the measured comparison operation time=“Tb” and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in=“Vb” to output.

Third Embodiment

[0069] Referring to FIG. 8, an AD converter 1B according to a third embodiment comprises: a voltage divider 5B that generates different reference potentials V.sub.ref0 to V.sub.ref3, an intermediate potential V.sub.ref(0-1) of reference potentials V.sub.ref0-V.sub.ref1, an intermediate potential V.sub.ref(1-2) of reference potentials V.sub.ref1-V.sub.ref2, and an intermediate potential V.sub.ref(2-3) of reference potentials V.sub.ref2-V.sub.ref3 between the lower limit reference potential V.sub.REFL and the upper limit reference potential V.sub.REFH; the comparators 2.sub.0 to 2.sub.3 that compare the input analog potential A.sub.in with each of the reference potentials V.sub.ref0 to V.sub.ref3, comparators 2.sub.A0 to 2.sub.A2 that compare the input analog potential A.sub.in with the intermediate potential V.sub.ref(0-1), V.sub.ref(1-2), and V.sub.ref(2-3), respectively; end detection circuits 3.sub.0 to 3.sub.3 that detect the end of the comparison operation time of the respective comparators 2.sub.0 to 2.sub.3; a selection circuit 8B that selects one of the comparators 2.sub.0 to 2.sub.3; the timer 6 that measures the comparison operation time of the comparator 2* selected by the selection circuit 8B; and a decoder circuit 7B that outputs the digital conversion value CODE of the input analog potential A.sub.in calculated based on the measured value, count, of the timer 6 and the comparison result Q* of the comparator 2* specified among the comparators 2.sub.0 to 2.sub.3.

[0070] The selection circuit 8B selects one of the comparators 2.sub.0 to 2.sub.3 based on the comparison results Q.sub.A0 to Q.sub.A2 of the comparators 2.sub.A0 to 2.sub.A2. The selection circuit 8B is provided with AND circuits AND.sub.0 to AND.sub.3 and an OR circuit OR.

[0071] Any structure may be applied to the comparators 2.sub.A0 to 2.sub.A2, but a structure that operates at higher speed than comparators 2.sub.0 to 2.sub.3 may be used.

[0072] In the AND circuit AND.sub.0, the comparison result Q.sub.A0 of the comparator 2.sub.A0 is input as a selection signal for the output V.sub.time0 of the end detection circuit 3.sub.0. When the comparison result Q.sub.A0 of the comparator 2.sub.A0 is “1”, the output V.sub.time0 of the end detection circuit 3.sub.0 is input to the timer 6 via the OR circuit OR.

[0073] In the AND circuit AND.sub.1, the signal which becomes “1” with the comparison result Q.sub.A1 of the comparator 2.sub.A1=“1” and the comparison result Q.sub.A0 of the comparator 2.sub.A0=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time1 of the end detection circuit 3.sub.1. When the comparison result Q.sub.A1 of the comparator 2.sub.A1=“1” and the comparison result Q.sub.A0 of the comparator 2.sub.A0=“0”, the output V.sub.time1 of the end detection circuit 3.sub.1 is input to the timer 6 via the OR circuit OR.

[0074] In the AND circuit AND.sub.2, the signal which becomes “1” with the comparison result Q.sub.A2 of the comparator 2.sub.A2=“1” and the comparison result Q.sub.A1 of the comparator 2.sub.A1=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time2 of the end detection circuit 3.sub.2. When the comparison result Q.sub.A2 of the comparator 2.sub.A2=“1” and the comparison result Q.sub.A1 of the comparator 2.sub.A1=“0”, the output V.sub.time2 of the end detection circuit 3.sub.2 is input to the timer 6 via the OR circuit OR.

[0075] In the AND circuit AND.sub.3, a signal inverted from the comparison result Q.sub.A2 of the comparator 2.sub.A2 is input as a selection signal for the output V.sub.time3 of the end detection circuit 3.sub.3. When the comparison result Q.sub.A0 of the comparator 2.sub.A0 is “0”, the output V.sub.time3 of the end detection circuit 3.sub.3 is input to the timer 6 via the OR circuit OR.

[0076] Thus, when the input analog potential A.sub.in exceeds the intermediate potential V.sub.ref(0-1), the selection circuit 8B selects the comparator 2.sub.0, and the comparison operation time of the comparator 2.sub.0 is measured by the timer 6. When the input analog potential A.sub.in is between the intermediate potentials V.sub.ref(0-1) and V.sub.ref(1-2), the selection circuit 8B selects the comparator 2.sub.1, and the comparison operation time of the comparator 2.sub.1 is measured by the timer 6. When the input analog potential A.sub.in is between the intermediate potentials V.sub.ref(1-2) and V.sub.ref(2-3), the selection circuit 8B selects the comparator 2.sub.2, and the comparison operation time of the comparator 2.sub.2 is measured by the timer 6. When the input analog potential A.sub.in is below the intermediate potential V.sub.ref(2-3), the selection circuit 8B selects the comparator 2.sub.3, and the comparison operation time of the comparator 2.sub.3 is measured by the timer 6.

[0077] As illustrated in FIG. 9, the decoder circuit 7B stores the correlation characteristics of the potential differences between the input analog potential A.sub.in and the respective reference potentials V.sub.ref0 to V.sub.ref3 and the comparison operation time (measured value) in the comparators 2.sub.0 to 2.sub.3, respectively. The decoder circuit 7B uses the correlation characteristics of the comparator 2* identified by the same logic as the selection circuit 8B to output the digital conversion value CODE of the input analog potential A.sub.in calculated based on the comparison result Q* of the identified comparator 2* and the measured value, count, of the timer 6.

Fourth Embodiment

[0078] Referring to FIG. 10, an AD converter 1C according to a fourth embodiment comprises: a voltage divider 5C that generates different reference potentials V.sub.ref0 to V.sub.ref7 between the lower limit reference potential V.sub.REFL and the upper limit reference potential V.sub.REFH; comparators 2.sub.0 to 2.sub.7 that compare the input analog potential A.sub.in with each of the reference potentials V.sub.ref0 to V.sub.ref7; end detection circuits 3.sub.0 to 3.sub.7 that detect the end of the respective comparison operations by the comparators 2.sub.0 to 2.sub.7; a selection circuit 8C that selects one of the comparators 2.sub.0 to 2.sub.7; the timer 6 that measures the comparison operation time selected by the selection circuit 8C; and a decoder circuit 7C that outputs the digital conversion value CODE of the input analog potential A.sub.in calculated based on the measured value, count, of the timer 6 and the comparison result Q* of the comparator 2* identified among the comparators 2.sub.0 to 2.sub.7.

[0079] The selection circuit 8C selects one of the comparators 2.sub.0 to 2.sub.7 based on the comparison results Q.sub.0 to Q.sub.7 of the comparators 2.sub.0 to 2.sub.7. The selection circuit 8C is provided with AND circuits AND.sub.0 to AND.sub.7 and an OR circuit OR.

[0080] In the AND circuit AND.sub.0, the comparison result Q.sub.0 of the comparator 2.sub.0 is input as a selection signal for the output V.sub.time0 of the end detection circuit 3.sub.0. When the comparison result Q.sub.0 of the comparator 2.sub.0 is “1”, the output V.sub.time0 of the end detection circuit 3.sub.0 is input to the timer 6 via the OR circuit OR.

[0081] In the AND circuit AND.sub.1, the signal that becomes “1” with the comparison result Q.sub.1 of the comparator 2.sub.1=“1” and the comparison result Q.sub.0 of the comparator 2.sub.0=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time1 of the end detection circuit 3.sub.1. When the comparison result Q.sub.1 of the comparator 2.sub.1=“1” and the comparison result Q.sub.0 of the comparator 2.sub.0=“0”, the output V.sub.time1 of the end detection circuit 3.sub.1 is input to the timer 6 via the OR circuit OR.

[0082] In the AND circuit AND.sub.2, the signal that becomes “1” with the comparison result Q.sub.2 of the comparator 2.sub.2=“1” and the comparison result Q.sub.1 of the comparator 2.sub.1=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time2 of the end detection circuit 3.sub.2. When the comparison result Q.sub.2 of the comparator 2.sub.2=“1” and the comparison result Q.sub.1 of the comparator 2.sub.1=“0”, the output V.sub.time2 of the end detection circuit 3.sub.2 is input to the timer 6 via the OR circuit OR.

[0083] In the AND circuit AND.sub.5, the signal that becomes “1” with the comparison result Q.sub.3 of the comparator 2.sub.3=“1” and the comparison result Q.sub.2 of the comparator 2.sub.2=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time3 of the end detection circuit 3.sub.3. When the comparison result Q.sub.3 of the comparator 2.sub.3=“1” and the comparison result Q.sub.2 of the comparator 2.sub.2=“0”, the output V.sub.time3 of the end detection circuit 3.sub.3 is input to the timer 6 via the OR circuit OR.

[0084] In the AND circuit AND.sub.4, the signal that becomes “1” with the comparison result Q.sub.4 of the comparator 2.sub.4=“1” and the comparison result Q.sub.3 of the comparator 2.sub.3=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time4 of the end detection circuit 3.sub.4. When the comparison result Q.sub.4 of the comparator 2.sub.4=“1” and the comparison result Q.sub.3 of the comparator 2.sub.3=“0”, the output V.sub.time4 of the end detection circuit 3.sub.4 is input to the timer 6 via the OR circuit OR.

[0085] In the AND circuit AND.sub.5, the signal that becomes “1” with the comparison result Q.sub.5 of the comparator 2.sub.5=“1” and the comparison result Q.sub.4 of the comparator 2.sub.4=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time5 of the end detection circuit 3.sub.5. When the comparison result Q.sub.5 of the comparator 2.sub.5=“1” and the comparison result Q.sub.4 of the comparator 2.sub.4=“0”, the output V.sub.time5 of the end detection circuit 3.sub.6 is input to the timer 6 via the OR circuit OR.

[0086] In the AND circuit AND.sub.5, the signal that becomes “1” with the comparison result Q.sub.6 of the comparator 2.sub.6=“1” and the comparison result Q.sub.6 of the comparator 2.sub.5=“0” (other combinations become “0”) is input as a selection signal for the output V.sub.time6 of the end detection circuit 3.sub.6. When the comparison result Q.sub.6 of the comparator 2.sub.6=“1” and the comparison result Q.sub.6 of the comparator 2.sub.5=“0”, the output V.sub.time6 of the end detection circuit 3.sub.6 is input to the timer 6 via the OR circuit OR.

[0087] In the AND circuit AND.sub.5, a signal inverted from the comparison result Q.sub.6 of the comparator 2.sub.6 is input as a selection signal for the output V.sub.time7 of the end detection circuit 3.sub.7. When the comparison result Q.sub.7 of the comparator 2.sub.7 is “0”, the output V.sub.time7 of the end detection circuit 3.sub.7 is input to the timer 6 via the OR circuit OR.

[0088] Thus, when the input analog potential A.sub.in exceeds the reference potential V.sub.ref0, the selection circuit 8C selects the comparator 2.sub.0, and the comparison operation time of the comparator 2.sub.0 is measured by the timer 6. When the input analog potential A.sub.in is between the reference potential V.sub.ref0 and V.sub.ref1, the selection circuit 8C selects the comparator 2.sub.1, and the comparison operation time of the comparator 2.sub.1 is measured by the timer 6. When the input analog potential A.sub.in is between the reference potential V.sub.ref1 and V.sub.ref2, the selection circuit 8C selects the comparator 2.sub.2, and the comparison operation time of the comparator 2.sub.2 is measured by the timer 6. When the input analog potential A.sub.in is between the reference potential V.sub.ref2 and V.sub.ref3, the selection circuit 8C selects the comparator 2.sub.3, and the comparison operation time of the comparator 2.sub.3 is measured by the timer 6. When the input analog potential A.sub.in is between the reference potential V.sub.ref3 and V.sub.ref4, the selection circuit 8C selects the comparator 24, and the comparison operation time of the comparator 24 is measured by the timer 6. When the input analog potential A.sub.in is between the reference potential V.sub.ref4 and V.sub.ref5, the selection circuit 8C selects the comparator 2.sub.5, and the comparison operation time of the comparator 2.sub.5 is measured by the timer 6. When the input analog potential A.sub.in is between the reference potential V.sub.ref5 and V.sub.ref6, the selection circuit 8C selects the comparator 2.sub.6, and the comparison operation time of the comparator 2.sub.6 is measured by the timer 6. When the input analog potential A.sub.in is below the reference potential V.sub.ref6, the selection circuit 8C selects the comparator 2.sub.7, and the comparison operation time of the comparator 2.sub.7 is measured by the timer 6.

[0089] As illustrated in FIG. 11, the decoder circuit 7C stores the respective correlation characteristics of the potential differences between the input analog potential A.sub.in and each of the reference potentials V.sub.ref0 to V.sub.ref7 and the comparison operation time (measured value) in the comparators 2.sub.0 to 2.sub.7. The decoder circuit 7C uses the correlation characteristics of the comparator 2* identified by the same logic as the selection circuit 8C to output the digital conversion value CODE of the input analog potential A.sub.in calculated based on the measured value, count, of the timer 6.

[0090] As illustrated in FIG. 11, the decoder circuit 7C uses only the correlation characteristics in the area where the input analog potential A.sub.in is greater than the reference potential V.sub.ref* (region X* illustrated in FIG. 7). In this case, after the comparator 2* is identified, the digital conversion value CODE may be calculated based on the measured value, count, of the timer 6 without using the comparison result Q.sub.B*. Only the correlation characteristics in the area where the input analog potential A.sub.in is smaller than the reference potential V.sub.ref* (area Y* shown in FIG. 7) may also be used.

Fifth Embodiment

[0091] Referring to FIG. 12, an AD converter 1D according to a fifth embodiment comprises: a voltage divider 5D that generates different reference potentials V.sub.ref0 to V.sub.ref3 and an intermediate potential V.sub.ref(1-2) of the reference potentials V.sub.ref1 and V.sub.ref2 between the lower limit reference potential V.sub.REFL and the upper limit reference potential V.sub.REFH; comparators 2.sub.0 to 2.sub.1 that compare the input analog potential A.sub.in with each of the reference potentials V.sub.ref0 to V.sub.ref1; a comparator 2.sub.A that compares the input analog potential A.sub.in with the intermediate potential V.sub.ref(1-2); comparators 2.sub.B0 to 2.sub.B1 that compare the input analog potential A.sub.in with each of the reference potentials V.sub.ref2 to V.sub.ref3; end detection circuits 3.sub.0 to 3.sub.3 that detect the end of the respective comparison operations by each of the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1; timers 6.sub.0 to 6.sub.3 that measure the comparison operation time of each of the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1; and a decoder circuit 7D that outputs the digital conversion value CODE based on the comparator 2.sub.A, the count* selected from the measured values count.sub.0 to count.sub.3 of the timers 6.sub.0 to 6.sub.3, and the comparison result Q* of the comparator 2* identified among the comparison results Q.sub.0 to Q.sub.1 of the comparators 2.sub.0 to 2.sub.1 and the comparison results Q.sub.B0 to Q.sub.B1 of the comparators 2.sub.B0 to 2.sub.B1.

[0092] As in the AD converter 1A according to a second embodiment, in the condition of the comparators 2.sub.0 to 2.sub.3 having the structure of a CMOS-type SRAM and the power supply (power supply voltage Vcc and ground voltage Vss) being a single power supply identical to the reference power supply of the AD conversion (upper limit reference potential V.sub.REFH and lower limit reference potential V.sub.REFL), when both the input analog potential A.sub.in and the reference potential V.sub.ref3 are low, the P channel MOS transistors P1 and P2 may not be able to be turned on sufficiently, and the circuit becomes unstable.

[0093] Therefore, the AD converter 1D uses the comparators 2.sub.B0 to 2.sub.B1 having the structure of the PMOS-type SRAM for AD conversion in the area where the input analog potential A.sub.in is low.

[0094] As illustrated in FIG. 13, a comparator 2.sub.B* comprises a circuit in which an N-channel MOS transistor NTO that functions as a power switch 24 is added to a memory cell 23 of a general PMOS type SRAM. The gate of the N-channel MOS transistor NTO is a start signal input terminal of the comparator 2.sub.B* to which a start signal START is input.

[0095] The memory cell 23 includes N-channel MOS transistors NT1 and NT2, and P-channel MOS transistors PT1, PT2, PT3, and PT4.

[0096] The P-channel MOS transistor PT1 and the N-channel MOS transistor NT1 comprise a first CMOS inverter. The source of the N-channel MOS transistor NT1 is connected to the ground voltage Vss via the power switch 24, and the drain of the N-channel MOS transistor NT1 is connected to the drain of the P-channel MOS transistor PT1. The source of the P-channel MOS transistor PT1 is connected to the power supply voltage Vcc.

[0097] The P-channel MOS transistor PT2 and the N-channel MOS transistor NT2 comprise a second CMOS inverter. The source of the N-channel MOS transistor NT2 is connected to the ground voltage Vss via the power switch 24, and the drain of the N-channel MOS transistor NT2 is connected to the drain of the P-channel MOS transistor PT2. The source of the P-channel MOS transistor PT2 is connected to the power supply voltage Vcc.

[0098] The input of the first CMOS inverter, that is, the gate of the P-channel MOS transistor PT1 and the gate of the N-channel MOS transistor NT1, are the output of the second CMOS inverter, that is, being connected to the connection point of the drain of the P-channel MOS transistor PT1 and the drain of the N-channel MOS transistor NT1, and becoming an inverted output terminal of the comparator 2.sub.B* which outputs an inverted output Q.sub.B* of the comparison result QB.

[0099] The input of the second CMOS inverter, that is, the gate of the P-channel MOS transistor PT2 and the gate of the N-channel MOS transistor NT2, are the output of the first CMOS inverter, that is, being connected to the connection point of the drain of the P-channel MOS transistor PT2 and the drain of the N-channel MOS transistor NT2, and becoming an output terminal of the comparator 2.sub.B* which outputs the comparison result Q.sub.B*.

[0100] The P-channel MOS transistor PT3 is connected in parallel with the P-channel MOS transistor PT1, and the gate of the P-channel MOS transistor PT3 becomes a second input terminal of the comparator 2.sub.B* to which the reference potential V.sub.ref* is input.

[0101] The P-channel MOS transistor PT4 is connected in parallel with the P-channel MOS transistor PT2, and the gate of the P-channel MOS transistor PT4 becomes a first input terminal of the comparator 2.sub.B* to which the input analog potential A.sub.in is input.

[0102] Referring to FIG. 14, the comparison operation time of the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1 correlates with the respective potential differences between the input analog potential A.sub.in and the reference potentials V.sub.ref0 to V.sub.ref3. The smaller each of the respective potential differences between the input analog potential A.sub.in and the reference potentials V.sub.ref0 to V.sub.ref3 becomes, the larger the change in the comparison operation time for the input analog potential A.sub.in becomes. The voltage divider 5D generates the reference potentials V.sub.ref0 to V.sub.ref3 make the areas, where the change in the comparison operation time for the input analog potential A.sub.in is sufficiently large in the respective correlation characteristics of the comparators 2.sub.0 to 2.sub.3, overlap.

[0103] In the condition of which all comparators are configured with the comparator 2.sub.B*, when both the input analog potential A.sub.in and the reference potential V.sub.ref0 are high, the N-channel MOS transistors NT1 and NT2 may not be able to be turned on sufficiently, and the circuit becomes unstable.

[0104] As illustrated in FIG. 14, the correlation characteristics of the comparison operation time and the potential differences are different between the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1. Therefore, the decoder circuit 7D selects one of the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1 based on the comparison result Q.sub.A output from the comparator 2.sub.A, which compares the input analog potential A.sub.in with the intermediate potential V.sub.ref(1-2).

[0105] When the comparison result Q.sub.A of the comparator 2.sub.A=“1” (high level Hi), the decoder circuit 7D selects the largest measured value count* among the measured values count.sub.0 to count.sub.3 of the comparison operation time of the comparators 2.sub.0 to 2.sub.1 and identifies the comparator 2* with the largest comparison operation time. The decoder circuit 7D uses the correlation characteristics of the identified comparator 2* and calculates the digital conversion value CODE of the input analog potential A.sub.in based on the comparison result Q* of the identified comparator 2* and the selected measured value count*.

[0106] When the comparison result Q* of the identified comparator 2*=“1” (high level Hi), the decoder circuit 7D uses the correlation characteristics in the area where the input analog potential A.sub.in of the identified comparator 2* is greater than the reference potential V.sub.ref* (area X* shown in FIG. 14) to obtain the input analog potential A.sub.in corresponding to the selected comparison operation time (measured value) and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0107] When the comparison result Q* of the identified comparator 2*=“0” (low level Low), the decoder circuit 7 uses the correlation characteristics in the area where the input analog potential A.sub.in of the identified comparator 2* is smaller than the reference potential V.sub.ref* (area Y* shown in FIG. 14) to obtain the input analog potential A.sub.in corresponding to the selected comparison operation time (measured value) and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0108] When the comparison result Q.sub.A of the comparator 2.sub.A=“0” (low level Low), the decoder circuit 7D selects the largest measured value count* among the measured values count.sub.2 to count.sub.3 of the comparison operation time of the comparators 2.sub.B0 to 2.sub.B1 and identifies the comparator 2.sub.B* with the largest comparison operation time. The decoder circuit 7D uses the correlation characteristics of the identified comparator 2.sub.B* and calculates the digital conversion value CODE of the input analog potential A.sub.in based on the comparison result Q.sub.B* of the identified comparator 2.sub.B* and the selected measured value count*.

[0109] When the comparison result Q.sub.B* of the identified comparator 2.sub.B*=“1” (high level Hi), the decoder circuit 7D uses the correlation characteristics in the area where the input analog potential A.sub.in of the identified comparator 2.sub.B* is greater than the reference potential V.sub.ref* (area X.sub.B* illustrated in FIG. 14) to obtain the input analog potential A.sub.in corresponding to the selected comparison operation time (measured value) and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0110] When the comparison result Q.sub.B* of the identified comparator 2.sub.B*=“0” (low level Low), the decoder circuit 7 uses the correlation characteristics in the area where the input analog potential A.sub.in of the identified comparator 2.sub.B* is smaller than the reference potential V.sub.ref* (area Y.sub.B* shown in FIG. 14) to obtain the input analog potential A.sub.in corresponding to the selected comparison operation time (measured value) and calculates the digital conversion value CODE of the obtained input analog potential A.sub.in to output.

[0111] Any structure may be applied to the comparator 2.sub.A, but a structure may be preferable to operate at higher speed than the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1 so that the operation time of the comparator 2.sub.A does not become a bottleneck.

[0112] The AD converter 1D uses different types (characteristics) of comparators, such as comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1. Thus, when comparators 2 with different types are used, it is necessary to select which type of comparator 2 is used to perform the AD conversion. In this case, as in the AD converter 1B, the selection may be made based on the input analog potential A.sub.in, or the combination of the comparison result Q and the comparison operation time of each comparator 2.

[0113] In the above-described one or more embodiments, one comparator 2* is specified, and the digital conversion value CODE is calculated based on the comparison operation time of the specified comparator 2*. However, it may also be possible to specify comparators 2* and calculate the digital conversion value CODE based on the comparison operation time of the comparators 2*.

[0114] As explained above, according to one or more embodiments, the AD converter 1 converts the input analog potential A.sub.in into the digital conversion value CODE and comprises the comparator 2 that compares the input analog potential A.sub.in with the reference potential V.sub.ref and the conversion circuit (TDC circuit 4) that measures the comparison operation time from the start to the end of the comparison operation by the comparator 2 and outputs the digital conversion value CODE according to the measured comparison operation time and the comparison result Q by the comparator 2. With this configuration, the AD conversion may be completed by one comparison operation and arithmetic processing of the result using one comparator 2; therefore, a high-speed and small-sized AD converter 1 may be provided. The AD converter 1 requires only comparator 2 and a reference potential, instead of requiring (2.sup.n−1) comparators and (2.sup.n−1) reference potentials for n-bit resolution in a flash type AD converter, thereby greatly reducing the circuit area. In addition, the AD converter 1 does not need a large capacitive element for sample and hold or CDAC as in a successive approximation type AD converter, which greatly reduces the circuit area and eliminates the problem of current leakage of a MOS transistor. Furthermore, the AD converter 1 may be provided with a MOS transistor and a diode element as the main components and may benefit from process miniaturization.

[0115] According to one or more embodiments, the conversion circuit calculates the digital conversion value CODE from the comparison operation time based on the correlation characteristics of the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref and the comparison operation time of the comparator 2. With this configuration, the AD conversion may be executed with high accuracy by using the comparator 2 of the type whose comparison operation time is correlated with the potential difference between the input analog potential A.sub.in and the reference potential V.sub.ref.

[0116] According to one or more embodiments, the AD converter 1A converts the input analog potential A.sub.in into the digital conversion value CODE, comprising the comparators 2.sub.0 to 2.sub.3 that compare the input analog potential A.sub.in with each of the different reference potentials V.sub.ref0 to V.sub.ref3, and the conversion circuit (decoder circuit 7A) that outputs the digital conversion value CODE according to the comparison operation time from the start to the end of the comparison operation by the specified comparator 2* among the comparators 2.sub.0 to 2.sub.3. With this configuration, since the AD conversion may be completed with one comparison operation and arithmetic processing of the result using a small number of comparators 2*, a high-speed and small-sized AD converter 1 may be provided.

[0117] According to one or more embodiments, the conversion circuit stores the respective correlation characteristics of the potential differences between the input analog potential A.sub.in and each of the reference potentials V.sub.ref0 to V.sub.ref3 and the comparison operation time of the comparators 2.sub.0 to 2.sub.3, and calculates the digital conversion value CODE from the comparison operation time based on the correlation characteristics of the identified comparators 2*. This configuration allows the use of the correlation characteristics in the area where the comparison operation time varies greatly with respect to the input analog potential A.sub.in, and the AD conversion may be performed with high accuracy.

[0118] According to one or more embodiments, the conversion circuit identifies the comparator 2* based on the comparison operation time. With this configuration, by identifying the comparator 2* with the largest measured value count*, the correlation characteristics of the area where the change in comparison operation time is large in relation to the input analog potential A.sub.in may be used, and the AD conversion may be performed with high accuracy.

[0119] According to one or more embodiments, the conversion circuit (decoder circuit 7C) identifies the comparator 2* based on the comparison results of the comparators 2.sub.0 to 2.sub.7. This configuration allows the comparator 2* to be quickly identified with a simple configuration.

[0120] According to one or more embodiments, the comparators 2.sub.A0 to 2.sub.A2, which function as intermediate potential comparators to compare the input analog potential A.sub.in with intermediate potentials V.sub.ref(0-1), V.sub.ref(1-2), V.sub.ref(2-3) of the reference potentials V.sub.ref0 to V.sub.ref3, are provided, and the conversion circuit (decoder circuit 7B) identifies the comparator based on the comparison results of the comparators 2.sub.A0 to 2.sub.A2. This configuration allows the comparator 2* to be quickly identified with a simple configuration.

[0121] According to one or more embodiments, the comparators 2.sub.0 to 2.sub.1 and the comparators 2.sub.B0 to 2.sub.B1 consist of a combination of different types. The conversion circuit (decoder circuit 7D) identifies the comparator 2* or 2.sub.B* of the selected type (comparators 2.sub.0 to 2.sub.1 or comparators 2.sub.B0 to 2.sub.B1) based on the comparison result of the comparator 2.sub.A that functions as an intermediate potential comparator. With this configuration, since different types of comparators 2 may be used, use of the comparator 2 in an unstable area (potential) may be prevented, and the AD conversion may be executed with high accuracy.

[0122] As described above, an AD converter according to one or more embodiments may be possible to complete AD conversion with a single comparison operation and arithmetic processing of the result using a small number of comparators 2. As a result, it may be possible to provide an AD converter 1 that is fast and small in size.

[0123] While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only and not limitation. Numerous changes to the disclosed embodiments can be made in accordance with the disclosure herein without departing from the spirit or scope of the invention. Thus, the breadth and scope of the present invention should not be limited by any of the above-described embodiments. Rather, the scope of the invention should be defined in accordance with the following claims and their equivalents.

EXPLANATION OF THE SIGN

[0124] 1, 1A, 1B, 1C, 1D: Analog-to-digital converter (AD converter)

[0125] 2, 2.sub.0 to 2.sub.7, 2.sub.A, 2.sub.A0 to 2.sub.A2, 2.sub.B0 to 2.sub.B1: Comparator

[0126] 3, 3.sub.0 to 3.sub.7: End detection circuit

[0127] 4: Time measurement circuit (TDC circuit)

[0128] 5A, 5B, 5C, 5D: Voltage divider

[0129] 6, 6.sub.0 to 6.sub.3: Timer

[0130] 7A, 7B, 7C, 7D: Decoder circuit

[0131] 8B, 8C: Selection circuit

[0132] 21, 23: Memory cell

[0133] 22, 24: Power switch

[0134] N1 to N4, NTO to NT2: N-channel MOS transistor

[0135] P1 to P4, PT1 to PT4: P-channel MOS transistor