A/D conversion device having input level shift and output correction function

In an A/D conversion device, one level shift circuit shifts an input voltage to the low potential side by Vt1, and another level shift circuit shifts the input voltage to the high potential side by Vt2. A multiplexer selects either of the shifted voltages to an A/D converter. In a correction mode, a correction data holding circuit holds values of reference voltages that are also A/D converted after being passed through the one level shift circuit and values of reference voltages that are A/D converted by being passed through the other level shift circuit, as correction values. A correction control circuit corrects the A/D converted value using the correction values.

CROSS REFERENCE TO RELATED APPLICATION

This application is based on and incorporates herein by reference Japanese Patent Application No. 2004-23300 filed on Jan. 30, 2004.

FIELD OF THE INVENTION

The present invention relates to an A/D conversion device suitable for both single channel configuration and multi-channel configuration.

BACKGROUND OF THE INVENTION

FIG. 9shows one example of a multi-channel A/D conversion device, which is so configured that a voltage of each input terminal2is selected by an analog multiplexer1and the selected input voltage is given to an A/D converter4through a common line3. A parasitic capacitor Cf generally exists in the analog multiplexer1as shown by a broken line in the figure. As a result, the input voltage of the channel selected last time remains in the parasitic capacitor Cf, and an A/D conversion error arises due to its effect. Therefore, the input part of each channel is equipped with a buffer amplifier5.

In the A/D conversion device shown inFIG. 9, a conversion reference voltage Vref of the A/D converter4is often set equal to the power supply voltage Vdd. In this case, when the voltage of the input terminal2becomes close to either Vdd that is the full scale or 0 V that is a zero point, an offset voltage increases because of a characteristic of the buffer amplifier5, which produces an A/D conversion error. Moreover, if the voltage of the input terminal2exceeds the power supply voltage Vdd or falls below 0 V due to floating ground potential etc., it is impossible to obtain an A/D converted value corresponding to the input voltage.

On the other hand,FIG. 10shows the configuration of a multi-channel A/D conversion device disclosed in JP 2001-111424A. In this device, the common line3is configured to be connectable to the ground line through a switching circuit6. That is, the A/D conversion device is so configured that the influence of the residual voltage in the capacitor Cf is eliminated by turning on the switching circuit6and initializing the common line3to discharge the stored charge of the parasitic capacitor Cf.

However, the parasitic capacitor Cf of the analog multiplexer1still exists. As a result, a current flows from the input terminal2of the selected channel into the parasitic capacitor Cf, which is now at the ground potential, producing an error arising from delay in stabilizing the voltage of the common line3. Therefore, it is necessary to connect a capacitor C1having a capacitance sufficiently large to the parasitic capacitor Cf externally to each input terminal2. This capacitor C1with a resistor R1also functions as a filter circuit7.

In addition, the necessity of setting the electrostatic capacity of the capacitor C1constituting the filter circuit7to a large value will add cost of the filter circuit7that is an external part. Further, an area for its installation on a substrate will be enlarged.

JP 2001-223586A discloses another multi-channel A/D conversion device equipped with a holding capacitor in front of an A/D converter. This holding capacitor is charged up to a reference voltage that is set to an intermediate level in the possible voltage range of an analog signal before a sampling circuit starts sampling.

Further, JP 2003-031415A discloses a still another A/D conversion device. In this device, first and second level shift circuits take in terminal voltages of the high and low voltage sides of a current detection resistor, respectively, and output voltages higher than the input voltage by fixed voltages, respectively. The difference of A/D converted values provided by passing them through the respective level shift circuits is detected as a current value. This detected value is corrected.

SUMMARY OF THE INVENTION

The object of the present invention is to provide an A/D conversion device that can reduce a conversion error arising from capacitance components existing in an input line from an input terminal to an A/D converter.

According to the present invention, when a voltage to be converted (conversion object voltage) applied to an input line of an A/D converter is equal to or more than a predetermined threshold, a selection circuit selects a first level shift circuit. This first level shift circuit gives to the A/D converter a voltage that is shifted to the low potential side by a first offset voltage with respect to the conversion object voltage. On the other hand, when the conversion object voltage is less than the predetermined threshold, the selection circuit selects a second level shift circuit. This second level shift circuit gives to the A/D converter a voltage that is shifted to the high potential side by a second offset voltage with respect to the conversion object voltage. The A/D converted value outputted from the A/D converter is corrected according to a selection state of the selection circuit, becoming a final A/D converted value.

Generally, the level shift circuit has a function as an impedance conversion circuit of high input impedance and low output impedance, as well as a function of a level translation circuit, and is typically made up of a source follower circuit. By using the impedance conversion characteristic positively, the input line of the A/D converter in which capacitance components (parasitic capacitor and holding capacitor) exist can be driven with low output impedance, and consequently a settling time of the input voltage of the A/D converter in response to a change in an input signal voltage can be shortened. As a result, a conversion error arising from the capacitance components can be reduced.

By thus reducing the influence of the capacitance components existing in the input line of the A/D converter, it becomes unnecessary to add such a capacitor for eliminating the influence of the capacitance components as was used in the conventional technology. As a result, the A/D conversion device becomes advantageous in reduction of the cost, reduction of the substrate area, etc. However, it may still be necessary to provide a filter circuit including a capacitor is provided to suppress external noises.

Moreover, the conversion object voltage equal to or more than the predetermined threshold is shifted to the low potential side, and the conversion object voltage less than the predetermined threshold is shifted to the high potential side. It is therefore advantageous that the input voltage range of the A/D conversion device is expanded from the input voltage range of the A/D converter itself. As a result, even if the input signal voltage from the outside exceeds the input voltage range of the A/D converter itself due to floating ground potential etc., it is possible to provide the A/D converted value and achieve an effect equivalent to improving resolution of an A/D converter.

Preferably, in the correction mode, reference voltages are applied to the input line and A/D converted. Then, the A/D converted values outputted from the A/D converter are held in the holding circuit as correction values. In the normal mode, the signal voltage from the outside is applied to the input line, and is A/D converted. The A/D converted value outputted from the A/D converter is corrected using the correction values according to the selection state of the selection circuit.

This correction is a process in which the A/D converted value is shifted only by an amount corresponding to the shift voltage of the level shift circuit to rebuild the A/D converted value. Even if the shift voltage of the level shift circuit may vary from product to product, the correction corresponding to the shift voltage is performed for each product, so that a high-accuracy A/D converted value can be provided. If two or more reference voltages are used, even in the case where the shift voltage of the level shift circuit varies depending on the input signal voltage, it becomes possible to correct the shift characteristic. Furthermore, if two or more reference voltages are used, even in the case where the transfer function of the A/D converter is not linear, it becomes possible to correct the nonlinearity.

Preferably, in the correction mode, one or more correction values can be provided in both the input voltage range in which the first level shift circuit is selected and the input voltage range in which the second level shift circuit is selected. For this reason, in the normal mode, whether the conversion object voltage is not less than the predetermined threshold or is less than the predetermined threshold, the A/D converted values can be corrected using at least one correction value.

Preferably, the selection circuit, using the center value of the input voltage range of the A/D converter as the predetermined threshold, selects the output voltage of the first level shift circuit when the conversion object voltage is equal to or more than the predetermined threshold, and selects the output voltage of the second level shift circuit when it is less than the predetermined threshold.

Accordingly, when the shift voltage (shift quantity) of the first level shift circuit and the shift voltage (shift quantity) of the second level shift circuit are almost equal, the input voltage range handled by the first level shift circuit and the input voltage range handled by the second level shift circuit become almost equal. Thus, a well-balanced A/D converter such that the high potential side and the low potential side are symmetric can be configured.

Preferably, in the input voltage range handled by the first level shift circuit, the correction is performed at two points, that is, the maximum value and the center value of the input voltage range of the A/D converter. In the input voltage range handled by the second level shift circuit, the correction is performed at two points, that is, the center value and the minimum value of the input voltage range of the A/D converter. As a result, it becomes possible to correct the shift characteristic of the level shift circuit, and to correct the nonlinearity of the A/D converter, as described above.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

A first embodiment of an A/D conversion device in a single channel configuration will be described referring toFIGS. 1 to 5.

As shown inFIG. 1, an A/D conversion device11is constructed as an IC (semiconductor integrated circuit device) that uses the MOS semiconductor manufacture process, and is incorporated as a peripheral of, for example, a one-chip microcomputer. The A/D conversion device11has a normal mode, in which a signal voltage Vin inputted from the outside of the IC is A/D converted. It also has a correction mode, in which predetermined reference voltages Vr1, Vr2and Vr3are A/D converted to acquire correction values serving as correction references (correction data).

An input terminal12through which a signal voltage Vin is inputted from the outside of the IC is connected to two level shift circuits14,15through an input line13. The level shift circuit14shifts an input voltage V0given to the input line13(the signal voltage Vin or the reference voltages Vr1, Vr2and Vr3) to the low potential side by Vt1(corresponding to a first offset voltage) and outputs the shifted voltage as V1. The level shift circuit15shifts the input voltage V0to the high potential side by Vt2(corresponding to a second offset voltage) and outputs the shifted voltage as V2. These level shift circuits14,15are constructed using source follower circuits, respectively, as will be described later.

A multiplexer (MPX)16selects either the output voltage V1of the level shift circuit14or the output voltage V2of the level shift circuit15according to a control signal S1, and outputs a selected voltage V3to an A/D converter17.

The A/D converter17converts the output voltage V3of the multiplexer16to an A/D converted value with predetermined resolution (e.g., eight bits), and outputs it. The A/D converter17may operate in any one of the successive comparison system, the parallel system, the series-parallel system, the integration system, the ΔΣ system, etc. The A/D converter17operates with the power supply voltage Vdd supplied from the power supply line. A reference voltage Vref defining its input voltage range from 0 to Vref (range [0 to Vref] for simplicity) is set equal to the power supply voltage Vdd.

A correction control circuit18is a circuit for performing correction control of the A/D converted value outputted from the A/D converter17. The correction control circuit18is configured to control, in the correction mode, the selection of the reference voltages Vr1, Vr2and Vr3using control signals S2, S3and S4and the selection of the level shift circuits14,15by the multiplexer16and store the correction values that are the A/D converted values in a correction data holding circuit19. The correction data holding circuit19may be a RAM or registers.

On the other hand, the correction control circuit18is configured to digitally correct, in the normal mode, the A/D converted value outputted from the A/D converter17using the control signal S1and the correction values stored in the correction data holding circuit19in advance to obtain a final A/D converted value (after correction) of the inputted signal voltage Vin. This correction control circuit18may be constructed of hardware. However, for example, if a CPU is loaded on the IC, the CPU may perform software processing in place of the hardware.

A level determination circuit20constitutes a selection circuit21with the multiplexer16, and outputs the control signal S1commanding to select either of the level shift circuits14,15to the multiplexer16. The level determination circuit20is configured to perform an operation shown inFIG. 3according to the control signals S2, S3outputted from the correction control circuit18. That is, it outputs the control signal S1(i.e., 1) commanding to select the level shift circuit14to the multiplexer16in the case of (S2, S3)=(1, 0), and outputs the control signal S1(i.e., 0) commanding to select the level shift circuit15to the multiplexer16in the case of (S2, S3)=(*, 1). Here, “0” represents the L level, “1” the H level, and “*” represents either the L level or the H level.

In the case of (S2, S3)=(0, 0), the level determination circuit20compares the input voltage V0and the predetermined threshold voltage Vh, and determines the control signal S1according to the result of the magnitude comparison. The predetermined threshold voltage Vh is set equal to the center value Vref/2 of the input voltage range [0 to Vref] of the A/D converter17.

The level determination circuit20is configured to operate as follows. When the input voltage V0is equal to or more than the predetermined threshold voltage Vh, it outputs a control signal S1commanding to select the level shift circuit14(i.e., V1) to the multiplexer16. When the input voltage V0is less than the predetermined threshold voltage Vh, it outputs the control signal S1commanding to select the level shift circuit15(i.e., V2) to the multiplexer16.

A reference voltage generation circuit22is for generating the reference voltages Vr1, Vr2and Vr3to be used in the correction mode and the predetermined threshold voltage Vh to be used in the normal mode. The reference voltages Vr1, Vr2and Vr3are set equal to the maximum value Vref, the center value Vref/2 and the minimum value 0 V of the input voltage range [0 to Vref] of the A/D converter17, respectively. The power supply voltage Vdd (=Vref) and the ground potential are used for the reference voltages Vr1and Vr3, respectively. The reference voltage Vr2and the predetermined threshold voltage Vh are formed by dividing the power supply voltage Vdd by resistors R11and R12of equal resistance.

An input switching circuit23is constructed with four switching circuits (analog switches)24–27whose opening and closing are controlled by the control signal S4outputted from the correction control circuit18. The switching circuit24is provided on the halfway of the input line13from the input terminal12to the level shift circuits14,15. The switching circuit25is provided between a connection node of the switching circuit24and the level shift circuits14,15and the power supply line. The switching circuit26is provided between the connection node and the potential dividing point of the resistors R11, R12. The switching circuit27is provided between the connection node and the ground line.

Next, referring toFIG. 2, a circuit configuration of the level shift circuits14,15, the multiplexer16, and the level determination circuit20will be described. The level shift circuit14is a source follower circuit using an N-channel type transistor Q11. The source of the transistor Q11is connected to the ground line through an N-channel type transistor Q12operating as a constant current circuit. The gate of the transistor Q11is connected to the input line13, and the drain thereof is connected to the power supply line. The shift voltage Vt1is equal to the gate-source voltage VGS1of the transistor Q11. Thus, the output voltage V1of the level shift circuit14becomes V0−Vt1.

Similarly, the level shift circuit15is a source follower circuit using a P-channel type transistor Q13. The source of the transistor Q13is connected to the power supply line through a P-channel type transistor Q14operating as a constant current circuit. The gate of the transistor Q13is connected to the input line13, and the drain thereof is connected to the ground line. The shift voltage Vt2is equal to the gate-source voltage VGS2of the transistor Q13. Thus, the output voltage V2of the level shift circuit15becomes V0+Vt2.

A constant current generation circuit28is for generating a reference constant current used to make the transistors Q12, Q14operate as constant current circuits. That is, between the power supply line and the ground line, a p-channel type transistor Q15and a resistor R13, and a P-channel type transistor Q16and an N-channel type transistor Q17are connected in series, respectively. The transistors Q15, Q16, and the transistors Q15, Q14constitute current mirror circuits, respectively. The transistors Q17and Q12also constitute a current mirror circuit.

The multiplexer16is constructed with an analog switch29provided between an output terminal of the level shift circuit14(the source of the transistor Q11) and an input terminal of the A/D converter17, an analog switch30provided between an output terminal of the level shift circuit15(the source of the transistor Q13) and the input terminal of the A/D converter17, and an inverter31. The control signal S1from the level determination circuit20is given to the analog switches29,30directly or through the inverter31. When the control signal S1is unity (“1”), the analog switch29is turned on and the analog switch30is turned off. When the control signal S1is zero (“0”), the analog switch29is turned off and the analog switch30is turned on.

The level determination circuit20is equipped with a comparator32for comparing the voltage V0of the input line13and the predetermined threshold voltage Vh. An output signal of the comparator32is inputted into an AND gate34through an OR gate33. The control signal S2is inputted into the other input terminal of the OR gate33, and the control signal S3is inputted into the other input terminal of the AND gate34through an inverter35.

The operation of this embodiment will be described referring toFIGS. 4 and 5.

The A/D conversion device11is switched to the correction mode when the power is supplied, or at predetermined intervals after that, or when needed. In this correction mode, the switching circuit24is turned off, and the reference voltages Vr1, Vr2and Vr3are A/D converted serially to acquire the correction values (corrected data). After completing acquisition of the correction values, the A/D conversion device11shifts to the normal mode, becoming capable of A/D converting the signal voltage Vin from the outside of the IC.

First, the operation of the correction mode will now be described.

In the correction mode, the correction control circuit18turns off the switching circuit24, and turns on only the switching circuit25among the switching circuits25–27. As a result, the reference signal Vr1, i.e., Vref, is applied to the input line13. Then, the control signals (S2, S3) are set to (1, 0), and consequently the multiplexer16is made to select the output voltage V1of the level shift circuit14. In this switched state, the input voltage V3of the A/D converter17becomes Vref−Vt1. The A/D converter17A/D converts this voltage, and the correction control circuit18stores the A/D converted value ADL1(Vref) in the correction data holding circuit19.

Subsequently, the correction control circuit18turns on only the switching circuit26among the switching circuits25–27, with the switching circuit24turned off. As a result, the reference signal Vr2, i.e., Vref/2, is applied to the input line13. The control signals (S2, S3) maintain (1, 0), respectively. In this switched state, the input voltage V3of the A/D converter17becomes Vref/2−Vt1. The A/D converter17A/D converts this voltage, and the correction control circuit18stores the A/D converted value ADL1(Vref/2) in the correction data holding circuit19.

Then, the correction control circuit18sets the control signals (S2, S3) to either (0, 1) or (1, 1), while keeping the state of the switching circuits24–27. The multiplexer16is made to select the output voltage V2of the level shift circuit15. In this switched state, the input voltage V3of the A/D converter17becomes Vref/2+Vt2. The A/D converter17A/D converts this voltage, and the correction control circuit18stores the A/D converted value ADL2(Vref/2) in the correction data holding circuit19.

Moreover, the correction control circuit18turns on only the switching circuit27among the switching circuits25–27, with the switching circuit24turned off. As a result, the reference signal Vr3, i.e., 0 V, is applied to the input line13. The control signals (S2, S3) maintain either (0, 1) or (1, 1). In this switched state, the input voltage V3of the A/D converter17becomes Vt2. The A/D converter17A/D converts this voltage, and the correction control circuit18stores the A/D converted value ADL2(0) in the correction data holding circuit19.

FIG. 4shows the characteristic of the A/D converted value (before correction) as a function of the input voltage V0. It is assumed that the A/D converter17has a resolution of eight bits, and its transfer function is linear. The horizontal axis of the figure represents the input voltage V0, and the vertical axis represents the A/D converted value (before correction). The straight line C in the figure indicates the conversion characteristic of the A/D converter17itself.

The straight line A indicates the conversion characteristic when the level shift circuit14is selected, and the straight line B indicates the conversion characteristic when the level shift circuit15is selected. The A/D converted values ADL1(Vref) and ADL1(Vref/2) are defined by the straight lines A and C, respectively, and the A/D converted values ADL2(Vref/2) and ADL2(0) are defined by the straight lines B and C, respectively.

That is, the correction values ADL1(Vref) and ADL1(Vref/2) show the correspondence between the input voltage V0and the A/D converted value (before correction) when the level shift circuit14is selected. The correction values ADL2(Vref/2) and ADL2(0) show the correspondence between the input voltage V0and the A/D converted value (before correction) when the level shift circuit15is selected.

The correction values signify not only correction information representing the shift voltages Vt1, Vt2of the level shift circuits14,15but also correction information representing the voltage dependence of the shift voltages Vt1, Vt2on the input voltage V0and the conversion characteristic (nonlinearity) of the A/D converter17that will be found by obtaining the correction values at two points for each of the level shift circuits14,15.

The operation of the normal mode will be described.

When the A/D conversion device11is placed in the normal mode, generally the correction control circuit18turns on the switching circuit24and turns off all of the other switching circuits25–27. As s result, the signal voltage Vin is applied to the input line13from the outside through the input terminal12. At the same time, the control signals (S2, S3) are set to (0, 0). In this embodiment, the predetermined threshold voltage Vh is set equal to Vref/2.

The multiplexer16selects the output voltage V1of the level shift circuit14when the input voltage V0is equal to or more than Vref/2, and selects the output voltage V2of the level shift circuit14when the input voltage V0is less than Vref/2. By this voltage shift control, the input voltage range of the signal voltage Vin is expanded to a range [−Vt2to Vref+Vt1] from the range [0 to Vref] of the A/D converter17itself.

FIG. 5shows a characteristic of the A/D converted value (after correction) as a function of the input voltage V0after the correction has been performed by the correction control circuit18. Since the input voltage range is expanded, the A/D converted values (after correction) is expressed with 9-bits by expansion of 1-bit using a complement number of “2” such that 000H is assigned as the A/D converted value (after correction) when the input voltage V0is equal to Vref/2. The voltage shift control does not reduce resolution. It assigns 07FH as the A/D converted value (after correction) when the input voltage V0is equal to Vref, and assigns 181H as the A/D converted value (after correction) when the input voltage V0is equal to 0 V.

The correction control circuit18recognizes the selection of the level shift circuits14,15based on the control signal S1outputted from the level determination circuit20. When the input voltage V0is in the range [Vref/2 to Vref+Vt1] and hence the level shift circuit14is being selected, digital correction processing is performed using the correction values ADL1(Vref) and ADL1(Vref/2). That is, when the A/D converted value outputted from the A/D converter17is ADL1(Vref), the A/D converted value (after correction) is set to 07FH. When it is ADL1(Vref/2), the A/D converted value (after correction) is set to 000H. For other A/D converted values, the A/D converted values (after correction) are provided by performing interpolation with a linear function.

Similarly, when the input voltage V0is in the range [−Vt2to Vref/2] and hence the level shift circuit15is selected, digital correction processing is performed using the correction values ADL2(Vref/2) and ADL2(0). That is, when the A/D converted value outputted from the A/D converter17is ADL2(Vref/2), the A/D converted value (after correction) is set to 000H. When it is ADL2(0), the A/D converted value (after correction) is set to 181H. For other A/D converted values, the A/D converted values (after correction) are provided by processing interpolation with a linear function.

As a result of this correction control, when the transfer function of the A/D converter17is linear, the A/D converted value (after correction) based on the linear conversion characteristic is provided in the input voltage range [−Vt2to Vref+Vt1].

As described above, in the A/D conversion device11of this embodiment, when the signal voltage Vin is equal to or more than the predetermined threshold voltage Vh, the signal voltage Vin is shifted to the low potential side and inputted into the A/D converter17. When the signal voltage Vin is less than the predetermined threshold voltage Vh, the signal voltage Vin is shifted to the high potential side and inputted into the A/D converter17. Thus, the input voltage range of the signal voltage Vin can be expanded to the range [−Vt2to Vref+Vt1].

Although the voltage value for one LSB is the same as that of the conventional configuration, the effect equivalent to substantially increasing resolution of the A/D converter can be achieved because the input voltage range was expanded. As a result of this, even if the signal voltage Vin exceeds the input voltage range [0 to Vref] of the A/D converter17itself due to, e.g., floating ground potential etc., the A/D converted value can be provided.

Each of the level shift circuits14,15is made up of a source follower circuit consisting of the transistor Q11(Q13). Since the source follower circuit has a characteristic of high input impedance and low output impedance as an impedance conversion circuit, it has a high capability of driving the input lines (parasitic capacitor Cf being distributed) from the level shift circuits14,15to the A/D converter17through the multiplexer16. That is, it brings the same effect as that when the buffer amplifier (FIG. 9) is provided.

Therefore, even when the signal voltage Vin changes abruptly, the settling time of the input voltage V3of the A/D converter17becomes short and hence the conversion error due to the parasitic capacitor Cf can be reduced. Moreover, it becomes unnecessary to add the capacitor (FIG. 10) for eliminating the influence of the parasitic capacitor Cf that has been used in the conventional device, and the cost and the area of the substrate can be reduced. In addition, any problem related to the offset voltage close to the power supply voltage or 0 V does not arise when using the buffer amplifier.

The A/D conversion device is so configured that, in the correction mode prior to the normal mode or in the correction mode entered in process of the normal mode, the A/D converted values each provided with one of the reference voltages Vr1, Vr2and Vr3being set to the input voltage V0are held as the correction values. In the normal mode, the A/D converted value outputted from the A/D converter17is corrected using the correction values. By this scheme, even if the shift voltages Vt1, Vt2of the level shift circuits14,15may vary from product to product, a high-accuracy A/D converted value (after correction) can be provided because the shift voltages Vt1, Vt2are corrected by the correction control.

The correction values are provided both in the input voltage range [Vref/2 to Vref+Vt1] handled by the level shift circuit14and in the input voltage range [−Vt2to Vref/2] handled by the level shift circuit15using the reference voltages at both ends or near at both ends thereof, respectively. Therefore, linear approximation is used to correct the voltage dependency of the shift voltages Vt1and Vt2on the input voltage V0, as well as the typical shift voltages Vt1(typ), Vt2(typ) of the level shift circuits14,15.

The predetermined threshold voltage Vh used by the level determination circuit20is set equal to the center value Vref/2 of the input voltage range [0 to Vref] of the A/D converter17, and the shift voltage Vt1is nearly equal to the shift voltage Vt2. Therefore, the input voltage range handled by the level shift circuit14becomes almost equal to the input voltage range handled by the level shift circuit15, and hence the A/D convert11whose high potential side and low potential side are well-balanced symmetrically can be made up.

FIG. 6shows an A/D conversion device36according to the second embodiment. This A/D conversion device36differs from the A/D conversion device11shown inFIG. 1in the configuration of level shift circuits37,38. In this embodiment, the acquisition of the correction values using the reference voltage Vr2(=Vref/2) becomes unnecessary in the correction mode. Accordingly, an input switching circuit39is not equipped with the switching circuit26of the first embodiment.

FIG. 7shows a circuit configuration of the level shift circuits37,38. The gate and the drain of the level shift circuit37are coupled through an operational amplifier40having a connection mode of a voltage follower. The gate and the drain of the level shift circuit38are coupled through an operational amplifier41having a connection mode of a voltage follower. The rest of the configuration is the same as that of the level shift circuits14,15of the first embodiment.

According to this configuration, since voltages between the drains and the sources of the transistors Q11, Q13can be maintained constant, respectively, voltages between the gates and the sources of the respective transistors Q11, Q13, namely, the shift voltages Vt1, Vt2can be fixed regardless of the magnitude of the input voltage V0.

As a result, as long as the transfer function of the A/D converter17is linear, once the correction value ADL1(Vref) at the reference voltage Vr1is provided in the input voltage range [Vref/2 to Vref+Vt1] handled by the level shift circuit37and the correction value ADL2(0) at the reference voltage 0 V is provided in the input voltage range [−Vt2to Vref/2] handled by the level shift circuit38, the correction becomes possible for any input voltage V0other than Vr1and 0 V. Therefore, according to this second embodiment, acquisition processing of the correction values in the correction mode becomes easier.

An A/D converter circuit device42according to a third embodiment is constructed in a multi-channel configuration as shown inFIG. 8.

This A/D conversion device42is similar to the A/D conversion device11of the first embodiment, but the number of channels is increased to eight. Each of channel0through channel7needs the input terminal12, the input switching circuit23, and the level shift circuits14,15. In the figure, portions surrounded by broken lines are of the same configuration, so the whole configuration is shown therein with channel1through channel7omitted.

Between the level shift circuits14,15and the multiplexer16of each channel, a multiplexer43is provided for selecting output voltages V1, V2of the level shift circuits14,15of any one of the channels. This multiplexer43is so configured that switching thereof is controlled by a control signal S5outputted from the correction control circuit18.

Like the A/D conversion device11of the first embodiment, this A/D conversion device42is switched to the correction mode when the power is supplied, or at predetermined intervals after that, or when needed. In this correction mode, the correction values are acquired for channel0through channel7sequentially.

The method for acquiring the correction values of each channel is the same as that of the A/D conversion device11in a single channel configuration of the first embodiment. Consequently, the correction data holding circuit19stores the correction values ADL1(Vref), ADL1(Vref/2), ADL2(Vref/2) and ADL2(0) for channel0through channel7, respectively. It is not necessary to acquire correction values for channels that are not in use.

After completing the acquisition of the correction values, the A/D conversion device42shifts to the normal mode, becoming capable of A/D converting signal voltages Vin0to Vin7inputted into respective channels from the outside of the IC. At the time of A/D conversion of each channel, correction processing is performed using the correction values ADL1(Vref), ADL1(Vref/2), ADL2(Vref/2) and ADL2(0) acquired for that channel. The method of the correction processing is the same as that of the A/D conversion device11.

Since the A/D conversion device42of this third embodiment is in a multi-channel configuration, the parasitic capacitor Cf distributed along the input line from the level shift circuits14,15to the A/D converter17of each channel through the multiplexers43,16becomes large. However, since each pair of the level shift circuits14,15is constructed with the source follower circuits, the input line can be driven with low output impedance and hence the A/D conversion error arising from the parasitic capacitor Cf can be reduced. In addition, it has the same operations and effects as the first embodiment.

The present invention is not limited to the disclosed embodiments, and can be modified or expanded as follows.

In each embodiment, no external capacitors shown inFIG. 10is provided for eliminating the influence of the parasitic capacitors Cf of the input lines. However, it is possible to use such external filtering capacitors for reducing external noises.

In the present invention, acquisition control of the correction values in the correction mode and the circuit configuration therefor (input switching circuit23etc.) are not necessarily required. In the case where the shift voltages Vt1, Vt2of the level shift circuits14,15,37and38are provided with high accuracy in the manufacture, the correction values can be provided in advance. Therefore, these correction values may be stored permanently in the correction control circuit18or the correction data holding circuit19to be used to perform correction processing in the normal mode. In this case, a plurality of correction values may be used appropriately according to the input voltage V0.

In the first and third embodiments, two correction values are acquired in each of the input voltage range handled by the level shift circuit14and the input voltage range handled by the level shift circuit15. However, a configuration in which the reference voltages are increased in number and more correction values are provided may be employed. With such a scheme, even if the shift voltages Vt1, Vt2of the level shift circuits14,15have nonlinear characteristics to the input voltage V0, or even if the transfer function of the A/D converter17has nonlinearity, an A/D converted value of the further higher accuracy (after correction) can be acquired.

In the second embodiment, a configuration in which the switching circuit26is provided to obtain the correction values ADL2(Vref/2) and ADL2(0) for the reference voltage Vr2and the correction is performed in the same way as the first embodiment may be employed. As described above, a configuration in which the reference voltages are increased in number and more correction values are provided may be employed. By this modification, even if the transfer function of the A/D converter17has nonlinearity, an A/D converted value of the further higher accuracy (after correction) can be provided.

In the case where a plurality of reference voltages are used to perform the correction, a preferable embodiment will become one in which these reference voltages are set at almost equal intervals in the input voltage ranges handled by the level shift circuits14,15,37and38, respectively.

The predetermined threshold voltage Vh may be a different voltage other than the center value Vref/2 of the input voltage range [0 to Vref] of the A/D converter17.

In the third embodiment, the A/D conversion device may be in a multi-channel configuration using the A/D conversion device36of the second embodiment.

The present invention is also suitable for a circuit to which a holding capacitor (capacitance component) is added.