JP6879189B2 - A / D converter - Google Patents

A / D converter Download PDF

Info

Publication number
JP6879189B2
JP6879189B2 JP2017243030A JP2017243030A JP6879189B2 JP 6879189 B2 JP6879189 B2 JP 6879189B2 JP 2017243030 A JP2017243030 A JP 2017243030A JP 2017243030 A JP2017243030 A JP 2017243030A JP 6879189 B2 JP6879189 B2 JP 6879189B2
Authority
JP
Japan
Prior art keywords
pair
converter
conversion
analog voltage
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017243030A
Other languages
Japanese (ja)
Other versions
JP2019110472A (en
Inventor
英俊 森下
英俊 森下
渡辺 光
光 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2017243030A priority Critical patent/JP6879189B2/en
Publication of JP2019110472A publication Critical patent/JP2019110472A/en
Application granted granted Critical
Publication of JP6879189B2 publication Critical patent/JP6879189B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)

Description

本明細書が開示する技術は、アナログ電圧をデジタル信号へA/D(Analog-to-Digital)変換するA/D変換装置に関する。 The technology disclosed herein relates to an A / D converter that A / D (Analog-to-Digital) converts an analog voltage into a digital signal.

特許文献1に、アナログ電圧をデジタル信号に変換するA/D変換装置が開示されている。この装置では、測定対象のアナログ電圧をA/D変換する前に、当該アナログ電圧とは異なる第2のアナログ電圧のA/D変換を事前に行う。そして、二つのA/D変換値が実質的に同一であるときに、測定対象のアナログ電圧を入力する回路に異常が生じていると判断する。測定対象のアナログ電圧が正しく入力されないときは、サンプリングキャパシタの電圧が第2のアナログ電圧に維持されて、二つのA/D変換値が同じ値になるためである。 Patent Document 1 discloses an A / D converter that converts an analog voltage into a digital signal. In this apparatus, before A / D conversion of the analog voltage to be measured, A / D conversion of a second analog voltage different from the analog voltage is performed in advance. Then, when the two A / D conversion values are substantially the same, it is determined that an abnormality has occurred in the circuit that inputs the analog voltage to be measured. This is because when the analog voltage to be measured is not input correctly, the voltage of the sampling capacitor is maintained at the second analog voltage and the two A / D conversion values become the same value.

特開2001−244813号公報Japanese Unexamined Patent Publication No. 2001-244813

上記したA/D変換装置では、異常の検出に用いる第2のアナログ電圧を、測定対象のアナログ電圧とは異なる値に設定する必要があるので、測定し得るアナログ電圧の範囲が制限されるという問題がある。そのことから、本明細書では、そのような制限を受けることなく、異常を検出し得る技術を提供する。 In the above-mentioned A / D converter, since it is necessary to set the second analog voltage used for detecting an abnormality to a value different from the analog voltage to be measured, the range of the analog voltage that can be measured is limited. There's a problem. Therefore, the present specification provides a technique capable of detecting anomalies without being subject to such restrictions.

本明細書が開示するA/D変換装置は、アナログ電圧が差動入力される一対の入力端子と、一対の入力端子に入力されたアナログ電圧をA/D変換するA/D変換器と、一対の入力端子とA/D変換器との間に設けられており、一対の入力端子に対してA/D変換器が接続される極性の向きを切り替え可能な切替回路と、A/D変換器の出力値を処理する処理装置とを備える。A/D変換器は、切替回路による極性の切り替えを挟んで二度のA/D変換を実施するとともに、それぞれのA/D変換ではサンプリングキャパシタをゼロボルトでないリセット電圧でリセットするように構成されている。そして、処理装置は、二度のA/D変換による二つの出力値の和又はそれに対応する指標に基づいて、異常の有無を判定するように構成されている。 The A / D converter disclosed in the present specification includes a pair of input terminals for which analog voltage is differentially input, an A / D converter for A / D conversion of analog voltage input to the pair of input terminals, and an A / D converter. A switching circuit that is provided between the pair of input terminals and the A / D converter and can switch the direction of the polarity to which the A / D converter is connected to the pair of input terminals, and A / D conversion. It is equipped with a processing device that processes the output value of the device. The A / D converter is configured to perform two A / D conversions with the polarity switched by the switching circuit, and to reset the sampling capacitor with a reset voltage other than zero volt in each A / D conversion. There is. Then, the processing apparatus is configured to determine the presence or absence of an abnormality based on the sum of the two output values obtained by the two A / D conversions or the corresponding index.

上記した構成では、切替回路による極性の切り替えを挟んで、二度のA/D変換を実施するとともに、それぞれのA/D変換では、サンプリングキャパシタをゼロボルトでないリセット電圧でリセットするように構成されている。このような構成によると、入力されたアナログ電圧や、リセット電圧の値にかかわらず、正常時であれば、二度のA/D変換による二つの出力値の和を演算すると、その値は実質的にゼロボルトとなる。それに対して、例えばアナログ電圧が正しく入力されていないときは、ゼロボルトでないリセット電圧の影響を受けて、当該二つの出力値の和がゼロボルトとは異なる値を示す。この原理を利用することで、処理装置は、当該二つの出力値の和又はそれに対応する指標(例えば、二つの出力値の平均値)に基づいて、異常の有無を判定する。このA/D変換装置によると、測定対象のアナログ電圧がリセット電圧と等しい場合でも、異常の有無を正しく判定することができるので、変換し得るアナログ電圧の範囲が無用に制限されることがない。 In the above configuration, the A / D conversion is performed twice with the polarity switched by the switching circuit, and each A / D conversion is configured to reset the sampling capacitor with a reset voltage other than zero volt. There is. According to such a configuration, regardless of the input analog voltage or reset voltage value, if the sum of the two output values by the two A / D conversions is calculated under normal conditions, the value will be effective. It becomes zero volt. On the other hand, for example, when the analog voltage is not input correctly, the sum of the two output values shows a value different from zero volt due to the influence of the reset voltage which is not zero volt. By utilizing this principle, the processing apparatus determines the presence or absence of an abnormality based on the sum of the two output values or the corresponding index (for example, the average value of the two output values). According to this A / D converter, even when the analog voltage to be measured is equal to the reset voltage, the presence or absence of an abnormality can be correctly determined, so that the range of analog voltage that can be converted is not unnecessarily limited. ..

実施例のA/D変換装置10の構成を模式的に示す図。The figure which shows typically the structure of the A / D conversion apparatus 10 of an Example. A/D変換器16の内部構造の一例を模式的に示す図。The figure which shows an example of the internal structure of the A / D converter 16 schematically. A/D変換器16の内部構造の他の一例を模式的に示す図。The figure which shows another example of the internal structure of the A / D converter 16 schematically. 正常時におけるリセット電圧、アナログ電圧Vin、二度のA/D変換の出力値out1、out2、最終的なA/D変換値out、及び異常検出電圧out’の関係を示す図。The figure which shows the relationship of the reset voltage in the normal state, the analog voltage Vin, the output values out1 and out2 of two A / D conversions, the final A / D conversion value outs, and the abnormality detection voltage out'. 異常時(両方の入力端子IN+、IN−の断線時)におけるリセット電圧、アナログ電圧Vin、二度のA/D変換の出力値out1、out2、最終的なA/D変換値out、及び異常検出電圧out’の関係を示す図。Reset voltage, analog voltage Vin, output values out1 and out2 of two A / D conversions, final A / D conversion value out, and abnormality detection at the time of abnormality (when both input terminals IN + and IN- are disconnected) The figure which shows the relationship of voltage out'. 異常時(第1の入力端子IN+の断線時)におけるリセット電圧、アナログ電圧Vin、二度のA/D変換の出力値out1、out2、最終的なA/D変換値out、及び異常検出電圧out’の関係を示す図。Reset voltage, analog voltage Vin, output values out1 and out2 of two A / D conversions, final A / D conversion value out, and abnormality detection voltage out at the time of abnormality (when the first input terminal IN + is disconnected) The figure which shows the relationship of'. 異常時(第2の入力端子IN+の断線時)におけるリセット電圧、アナログ電圧Vin、二度のA/D変換の出力値out1、out2、最終的なA/D変換値out、及び異常検出電圧out’の関係を示す図。Reset voltage, analog voltage Vin, output values out1 and out2 of two A / D conversions, final A / D conversion value out, and abnormality detection voltage out at the time of abnormality (when the second input terminal IN + is disconnected) The figure which shows the relationship of'.

図面を参照して、実施例のA/D変換装置10について説明する。図1に示すように、A/D変換装置10は、センサ類(例えばシャント抵抗2)が出力するアナログ電圧Vinを、デジタル信号に変換する装置である。A/D変換装置10は、回路ユニット4又はその他のユニットに内蔵されることができるが、他の実施形態として、A/D変換装置10は他の装置とは独立して構成されてもよい。 The A / D conversion device 10 of the embodiment will be described with reference to the drawings. As shown in FIG. 1, the A / D conversion device 10 is a device that converts an analog voltage Vin output by sensors (for example, a shunt resistor 2) into a digital signal. The A / D conversion device 10 can be incorporated in the circuit unit 4 or other units, but as another embodiment, the A / D conversion device 10 may be configured independently of the other devices. ..

A/D変換装置10は、一対の入力端子12と、切替回路14と、A/D変換器16と、処理装置18とを備える。一対の入力端子12は、第1の入力端子IN+と、第2の入力端子IN−とを有し、アナログ電圧Vinが差動入力されるように構成されている。切替回路14は、一対の入力端子12とA/D変換器16との間に設けられており、一対の入力端子12に対して、A/D変換器16が接続される極性の向きを切り替えることができる。即ち、一対の入力端子12へアナログ電圧Vinが入力されたときに、A/D変換器16へ入力される電圧をそのままVinとすることもできるし、極性を反転させて−Vinとすることもできる。 The A / D converter 10 includes a pair of input terminals 12, a switching circuit 14, an A / D converter 16, and a processing device 18. The pair of input terminals 12 have a first input terminal IN + and a second input terminal IN−, and are configured so that an analog voltage Vin is differentially input. The switching circuit 14 is provided between the pair of input terminals 12 and the A / D converter 16, and switches the direction of the polarity to which the A / D converter 16 is connected to the pair of input terminals 12. be able to. That is, when the analog voltage Vin is input to the pair of input terminals 12, the voltage input to the A / D converter 16 can be used as it is, or the polarity can be inverted to make it -Vin. it can.

A/D変換器16は、一対のA/D入力端子Vadin+、Vadin−を有する。一対のA/D入力端子Vadin+、Vadin−には、切替回路14を介してアナログ電圧Vinが差動入力される。A/D変換器16は、一対のA/D入力端子Vadin+、Vadin−に差動入力されたアナログ電圧Vinを、デジタル信号へ変換するように構成されている。以下では、一対のA/D入力端子Vadin+、Vadin−の一方を、第1のA/D入力端子Vadin+と称し、他方を第2のA/D入力端子Vadin−と称して、互いに区別することがある。処理装置18は、A/D変換器16に接続されており、A/D変換器16の出力値(A/D変換値)を用いて、アナログ電圧Vinの正確なA/D変換値を決定する処理や、異常の有無を判定する処理を実行することができる。この点については、後段で詳細に説明する。 The A / D converter 16 has a pair of A / D input terminals Vadin + and Vadin−. An analog voltage Vin is differentially input to the pair of A / D input terminals Vadin + and Vadin− via the switching circuit 14. The A / D converter 16 is configured to convert an analog voltage Vin differentially input to the pair of A / D input terminals Vadin + and Vadin− into a digital signal. In the following, one of the pair of A / D input terminals Vadin + and Vadin− will be referred to as a first A / D input terminal Vadin +, and the other will be referred to as a second A / D input terminal Vadin− to distinguish them from each other. There is. The processing device 18 is connected to the A / D converter 16, and the output value (A / D conversion value) of the A / D converter 16 is used to determine an accurate A / D conversion value of the analog voltage Vin. Processing and processing for determining the presence or absence of an abnormality can be executed. This point will be described in detail later.

切替回路14の具体的な構成は特に限定されない。一例ではあるが、本実施例における切替回路14は、二つの非反転スイッチswAと、二つの反転スイッチswBとを有する。二つの非反転スイッチswAは、第1の入力端子IN+と第1のA/D入力端子Vadin+との間、及び、第2の入力端子IN−と第2のA/D入力端子Vadin−との間に、それぞれ設けられている。一方、二つの反転スイッチswBは、第1の入力端子IN+と第2のA/D入力端子Vadin−との間、及び、第2の入力端子IN−と第1のA/D入力端子Vadin+との間に、それぞれ設けられている。これにより、二つの非反転スイッチswAがターンオンされるとともに、二つの反転スイッチswBがターンオフされると、A/D変換器16は、一対の入力端子12に対して非反転の極性で接続される。一方、二つの非反転スイッチswAがターンオフされるとともに、二つの反転スイッチswBがターンオンされると、A/D変換器16は、一対の入力端子12に対して反転された極性で接続される。即ち、A/D変換器16には、極性を反転させたアナログ電圧Vin(即ち、−Vin)が入力される。 The specific configuration of the switching circuit 14 is not particularly limited. As an example, the changeover circuit 14 in this embodiment has two non-inverting switches swA and two inverting switches swB. The two non-inverting switches swA are located between the first input terminal IN + and the first A / D input terminal Vadin +, and between the second input terminal IN- and the second A / D input terminal Vadin-. Each is provided in between. On the other hand, the two inverting switches swB are located between the first input terminal IN + and the second A / D input terminal Vadin-, and the second input terminal IN- and the first A / D input terminal Vadin +. Each is provided between. As a result, when the two non-inverting switches swA are turned on and the two inverting switches swB are turned off, the A / D converter 16 is connected to the pair of input terminals 12 with non-inverting polarity. .. On the other hand, when the two non-inverting switches swA are turned off and the two inverting switches swB are turned on, the A / D converter 16 is connected to the pair of input terminals 12 with inverted polarities. That is, an analog voltage Vin (that is, −Vin) whose polarity is reversed is input to the A / D converter 16.

図2を参照して、A/D変換器16の内部構造について説明する。図2に示すように、A/D変換器16は、概して、サンプルホールド回路20と、A/D変換回路22とを有する。なお、図2ではA/D変換回路22の一部が図示省略されているが、A/D変換回路22には、公知の構成を適宜採用することができる。サンプルホールド回路20は、一対のサンプリングキャパシタCs+、Cs−を有する。一対のサンプリングキャパシタCs+、Cs−は、一対のA/D入力端子Vadin+、Vadin−にそれぞれ接続されており、一対のA/D入力端子Vadin+、Vadin−に入力されたアナログ電圧Vin(又は−Vin。以下同じ)を保持するように構成されている。一対のサンプリングキャパシタCs+、Cs−に保持されたアナログ電圧Vinは、A/D変換回路22に入力され、A/D変換回路22おいてデジタル信号に変換された後に、処理装置18へ出力される。また、一対のサンプリングキャパシタCs+、Cs−は、アナログ電圧Vinが入力される前に、ゼロとは異なるリセット電圧によってリセットされるように構成されている。一例ではあるが、本実施例におけるサンプルホールド回路20では、リセット電圧が5ボルトに設定されている。 The internal structure of the A / D converter 16 will be described with reference to FIG. As shown in FIG. 2, the A / D converter 16 generally includes a sample hold circuit 20 and an A / D conversion circuit 22. Although a part of the A / D conversion circuit 22 is not shown in FIG. 2, a known configuration can be appropriately adopted for the A / D conversion circuit 22. The sample hold circuit 20 has a pair of sampling capacitors Cs + and Cs−. The pair of sampling capacitors Cs + and Cs- are connected to the pair of A / D input terminals Vadin + and Vadin-, respectively, and the analog voltage Vin (or -Vin) input to the pair of A / D input terminals Vadin + and Vadin- It is configured to hold (the same applies hereinafter). The analog voltage Vin held in the pair of sampling capacitors Cs + and Cs- is input to the A / D conversion circuit 22, converted into a digital signal by the A / D conversion circuit 22, and then output to the processing device 18. .. Further, the pair of sampling capacitors Cs + and Cs- are configured to be reset by a reset voltage different from zero before the analog voltage Vin is input. As an example, in the sample hold circuit 20 in this embodiment, the reset voltage is set to 5 volts.

サンプルホールド回路20の具体的な構成は特に限定されない。一例ではあるが、本実施例におけるサンプルホールド回路20では、一対のサンプリングキャパシタCs+、Cs−の各一端が、一対の第1スイッチsw1を介して、一対のA/D入力端子Vadin+、Vadin−にそれぞれ接続されている。また、一対のサンプリングキャパシタCs+、Cs−の各一端は、一対の第2スイッチsw2を介して、一対の参照電圧Vref+、Vref−にそれぞれ接続されている。なお、一対の参照電圧Vref+、Vref−の間の電位差(例えば5ボルト)が、一対のサンプリングキャパシタCs+、Cs−のリセット電圧として機能する。さらに、一対のサンプリングキャパシタCs+、Cs−の各一端は、第3スイッチsw3を介して互いに接続されている。一方、一対のサンプリングキャパシタCs+、Cs−の各他端は、一対の第4スイッチsw4を介して、コモンモード電圧Vcmに接続されている。また、一対のサンプリングキャパシタCs+、Cs−の各他端は、一対の第5スイッチsw5を介して、A/D変換回路22に接続されている。 The specific configuration of the sample hold circuit 20 is not particularly limited. As an example, in the sample hold circuit 20 in this embodiment, each end of the pair of sampling capacitors Cs + and Cs− is connected to the pair of A / D input terminals Vadin + and Vadin− via the pair of first switches sw1. Each is connected. Further, each end of the pair of sampling capacitors Cs + and Cs− is connected to the pair of reference voltages Vref + and Vref− via the pair of second switches sw2, respectively. The potential difference (for example, 5 volts) between the pair of reference voltages Vref + and Vref− functions as the reset voltage of the pair of sampling capacitors Cs + and Cs−. Further, each end of the pair of sampling capacitors Cs + and Cs− is connected to each other via a third switch sw3. On the other hand, the other ends of the pair of sampling capacitors Cs + and Cs− are connected to the common mode voltage Vcm via the pair of fourth switches sw4. Further, the other ends of the pair of sampling capacitors Cs + and Cs− are connected to the A / D conversion circuit 22 via the pair of fifth switches sw5.

サンプルホールド回路20の構成は、図3に示すように変更することもできる。図3に示す変形例では、一対のサンプリングキャパシタCs+、Cs−に対して、一対の参照電圧Vref+、Vref−が反転して接続されている。このような構成によると、一対のサンプリングキャパシタCs+、Cs−は、負のリセット電圧(例えば−5ボルト)によってリセットされる。このように、リセット電圧は、正の値であってもよいし、負の値であってもよく、ゼロボルトでなければよい。 The configuration of the sample hold circuit 20 can also be changed as shown in FIG. In the modified example shown in FIG. 3, a pair of reference voltages Vref + and Vref− are inverted and connected to the pair of sampling capacitors Cs + and Cs−. According to such a configuration, the pair of sampling capacitors Cs + and Cs− are reset by a negative reset voltage (for example, −5 volt). Thus, the reset voltage may be a positive value, a negative value, or not zero volts.

続いて、A/D変換装置10の動作について説明する。なお、初期状態として、全てのスイッチswA、swB、sw1−sw5は、ターンオフされているとする。先ず、A/D変換装置10は、サンプリングキャパシタCs+、Cs−のリセットを実行する。具体的には、一対の第2スイッチsw2及び一対の第4スイッチsw4がターンオンされる。これにより、一対の参照電圧Vref+、Vref−の間に、一対のサンプリングキャパシタCs+、Cs−が直列に接続され、一対のサンプリングキャパシタCs+、Cs−にリセット電圧(例えば5ボルト又は−5ボルト)が印加される。 Subsequently, the operation of the A / D conversion device 10 will be described. As an initial state, it is assumed that all the switches swA, swB, and sw1-sw5 are turned off. First, the A / D converter 10 resets the sampling capacitors Cs + and Cs−. Specifically, the pair of second switches sw2 and the pair of fourth switches sw4 are turned on. As a result, a pair of sampling capacitors Cs + and Cs- are connected in series between the pair of reference voltages Vref + and Vref-, and a reset voltage (for example, 5 volt or -5 volt) is applied to the pair of sampling capacitors Cs + and Cs-. It is applied.

次に、A/D変換装置10は、第1のサンプリングを実行する。この第1のサンプリングでは、切替回路14において、二つの非反転スイッチswAがターンオンされるとともに、二つの反転スイッチswBがターンオフされる。また、A/D変換器16では、一対の第2スイッチsw2がターンオフされるとともに、一対の第1スイッチsw1及び一対の第4スイッチsw4がターンオンされる。これにより、入力端子12に入力されたアナログ電圧Vinが、そのままの極性でA/D変換器16に入力され、一対のサンプリングキャパシタCs+、Cs−に印加される。一対のサンプリングキャパシタCs+、Cs−には、アナログ電圧Vinに応じた電荷が蓄積される。 Next, the A / D converter 10 executes the first sampling. In this first sampling, in the changeover circuit 14, the two non-inverting switches swA are turned on and the two inverting switches swB are turned off. Further, in the A / D converter 16, the pair of second switches sw2 are turned off, and the pair of first switches sw1 and the pair of fourth switches sw4 are turned on. As a result, the analog voltage Vin input to the input terminal 12 is input to the A / D converter 16 with the same polarity, and is applied to the pair of sampling capacitors Cs + and Cs−. Charges corresponding to the analog voltage Vin are accumulated in the pair of sampling capacitors Cs + and Cs−.

次に、A/D変換装置10は、第1のA/D変換を実施する。この第1のA/D変換では、一対の第1スイッチsw1及び一対の第4スイッチsw4がターンオフされるとともに、第3スイッチsw3及び一対の第5スイッチsw5がターンオンされる。これにより、一対のサンプリングキャパシタCs+、Cs−が、A/D変換回路22に対して直列に接続され、A/D変換回路22においてアナログ電圧VinのA/D変換が実行される。このときのA/D変換値をout1とすると、out1=Vin+Vosとなる。ここでいうVosは、A/D変換器16に存在するオフセット電圧(誤差)である。A/D変換値out1は、処理装置18へ入力される。なお、A/D変換値out1の値は、正常時であれば、リセット電圧の値にかかわらず、アナログ電圧Vinに応じて一義に定まる。 Next, the A / D conversion device 10 performs the first A / D conversion. In this first A / D conversion, the pair of first switch sw1 and the pair of fourth switch sw4 are turned off, and the third switch sw3 and the pair of fifth switch sw5 are turned on. As a result, the pair of sampling capacitors Cs + and Cs− are connected in series to the A / D conversion circuit 22, and the A / D conversion of the analog voltage Vin is executed in the A / D conversion circuit 22. Assuming that the A / D conversion value at this time is out1, out1 = Vin + Vos. Vos here is an offset voltage (error) existing in the A / D converter 16. The A / D conversion value out1 is input to the processing device 18. In the normal state, the value of the A / D conversion value out1 is uniquely determined according to the analog voltage Vin regardless of the reset voltage value.

次に、A/D変換装置10は、サンプリングキャパシタCs+、Cs−のリセットを再度実行する。具体的には、第3スイッチsw3及び一対の第5スイッチsw5がターンオフされるとともに、一対の第2スイッチsw2及び一対の第4スイッチsw4がターンオンされる。これにより、一対の参照電圧Vref+、Vref−の間に、一対のサンプリングキャパシタCs+、Cs−が直列に接続され、一対のサンプリングキャパシタCs+、Cs−にリセット電圧(例えば5ボルト又は−5ボルト)が印加される。 Next, the A / D converter 10 resets the sampling capacitors Cs + and Cs− again. Specifically, the third switch sw3 and the pair of fifth switches sw5 are turned off, and the pair of second switches sw2 and the pair of fourth switches sw4 are turned on. As a result, a pair of sampling capacitors Cs + and Cs- are connected in series between the pair of reference voltages Vref + and Vref-, and a reset voltage (for example, 5 volt or -5 volt) is applied to the pair of sampling capacitors Cs + and Cs-. It is applied.

次に、A/D変換装置10は、第2のサンプリングを実行する。この第2のサンプリングでは、切替回路14において、二つの非反転スイッチswAがターンオフされるとともに、二つの反転スイッチswBがターンオフされる。また、A/D変換器16では、一対の第2スイッチsw2がターンオフされるとともに、一対の第1スイッチsw1及び一対の第4スイッチsw4がターンオンされる。これにより、入力端子12に入力されたアナログ電圧Vinが、反転された極性でA/D変換器16に入力され、一対のサンプリングキャパシタCs+、Cs−に印加される。その結果、一対のサンプリングキャパシタCs+、Cs−には、アナログ電圧Vinを反転させたアナログ電圧−Vinに応じた電荷が蓄積される。 Next, the A / D converter 10 executes a second sampling. In this second sampling, in the changeover circuit 14, the two non-inverting switches swA are turned off and the two inverting switches swB are turned off. Further, in the A / D converter 16, the pair of second switches sw2 are turned off, and the pair of first switches sw1 and the pair of fourth switches sw4 are turned on. As a result, the analog voltage Vin input to the input terminal 12 is input to the A / D converter 16 with the reversed polarity and applied to the pair of sampling capacitors Cs + and Cs−. As a result, charges corresponding to the analog voltage −Vin, which is the inverted analog voltage Vin, are accumulated in the pair of sampling capacitors Cs + and Cs−.

次に、A/D変換装置10は、第2のA/D変換を実施する。この第2のA/D変換では、一対の第1スイッチsw1及び一対の第4スイッチsw4がターンオフされるとともに、第3スイッチsw3及び一対の第5スイッチsw5がターンオンされる。これにより、一対のサンプリングキャパシタCs+、Cs−が、A/D変換回路22に対して直列に接続され、A/D変換回路22においてアナログ電圧−VinのA/D変換が実行される。このときのA/D変換値をout2とすると、out2=−Vin+Vosとなる。このA/D変換値out2についても、処理装置18へ入力される。なお、A/D変換値out2の値は、正常時であれば、リセット電圧の値にかかわらず、アナログ電圧−Vinに応じて一義に定まる。 Next, the A / D conversion device 10 performs the second A / D conversion. In this second A / D conversion, the pair of first switch sw1 and the pair of fourth switch sw4 are turned off, and the third switch sw3 and the pair of fifth switch sw5 are turned on. As a result, the pair of sampling capacitors Cs + and Cs- are connected in series with the A / D conversion circuit 22, and the A / D conversion of the analog voltage-Vin is executed in the A / D conversion circuit 22. Assuming that the A / D conversion value at this time is out2, out2 = −Vin + Vos. The A / D conversion value out2 is also input to the processing device 18. In the normal state, the value of the A / D conversion value out2 is uniquely determined according to the analog voltage − Vin regardless of the reset voltage value.

次に、A/D変換装置10は、処理装置18において、アナログ電圧Vinの正確なA/D変換値outを演算する。このA/D変換値outは、二度のA/D変換による二つの出力値out1、out2を用いて、out=(out1−out2)/2の式により演算される。即ち、二つの出力値の差の半分が、アナログ電圧Vinの最終的なA/D変換値outとされる。前述したように、out1=Vin+Vosであり、out2=−Vin+Vosであるので、out=(out1−out2)/2=Vinとなる。即ち、演算されたA/D変換値outでは、オフセット電圧Vosが相殺されているので、アナログ電圧Vinの正確なA/D変換値を得ることができる。 Next, the A / D conversion device 10 calculates the accurate A / D conversion value out of the analog voltage Vin in the processing device 18. This A / D conversion value out is calculated by the formula out = (out1-out2) / 2 using the two output values out1 and out2 obtained by the two A / D conversions. That is, half of the difference between the two output values is the final A / D conversion value out of the analog voltage Vin. As described above, since out1 = Vin + Vos and out2 = −Vin + Vos, out = (out1-out2) / 2 = Vin. That is, since the offset voltage Vos is canceled in the calculated A / D conversion value out, an accurate A / D conversion value of the analog voltage Vin can be obtained.

上記と同時、又は前後して、処理装置18は、異常の有無を判定する処理を実行する。この処理は、二度のA/D変換による二つの出力値out1、out2を用いて実行される。具体的に、処理装置18は、異常検出電圧out’を、out’=(out1+out2)/2の式により演算する。即ち、異常検出電圧out’は、二度のA/D変換による二つの出力値out1、out2の平均値である。仮に、第1のA/D変換による出力値out1が、アナログ電圧Vinに対する正しい変換値Vin+Vosであり、第2のA/D変換による出力値out2が、アナログ電圧−Vinに対する正しい変換値−Vin+Vosであれば、out’=Vosとなる。ここで、オフセット電圧Vosは、通常、数ミリボルトであることから、正常時における異常検出電圧out’は実質的にゼロボルトに等しくなる。この点については、図4に示すように、リセット電圧の値によらず、また、アナログ電圧Vinの値にもよらない。 Simultaneously with or before and after the above, the processing device 18 executes a process of determining the presence or absence of an abnormality. This process is executed using two output values out1 and out2 obtained by two A / D conversions. Specifically, the processing device 18 calculates the abnormality detection voltage out'by the formula out'= (out1 + out2) / 2. That is, the abnormality detection voltage out'is the average value of the two output values out1 and out2 obtained by the two A / D conversions. Suppose that the output value out1 by the first A / D conversion is the correct conversion value Vin + Vos for the analog voltage Vin, and the output value out2 by the second A / D conversion is the correct conversion value −Vin + Vos for the analog voltage −Vin. If so, out'= Vos. Here, since the offset voltage Vos is usually several millivolts, the abnormality detection voltage out'in the normal state is substantially equal to zero volt. In this regard, as shown in FIG. 4, it does not depend on the value of the reset voltage and also does not depend on the value of the analog voltage Vin.

上記に対して、図5−図7に示すように、例えば入力端子12の少なくとも一方が断線していると、第1のA/D変換による出力値out1や、第2のA/D変換による出力値out2は、入力されたアナログ電圧Vinの値に反して、リセット電圧に起因する異常値を示す。この場合、異常検出電圧out’=(out1+out2)/2は、数ボルトの値を示すこととなり、正常時の略ゼロボルトとは大幅に相違する。そのことから、処理装置18は、異常検出電圧out’がゼロボルト近傍の正常範囲にないときは、異常が生じていると判定することができる。ここで、異常時における異常検出電圧out’は、リセット電圧に応じて定まることから、異常の有無を判定するための正常範囲についても、リセット電圧に応じて定めることができる。なお、リセット電圧がゼロボルトであると、異常時における異常検出電圧out’も実質的にゼロボルトとなることから、リセット電圧はゼロボルトとは異なる値に設定する必要がある。その一方で、入力されるアナログ電圧Vinが、リセット電圧の値と等しくてもよいことから、リセット電圧の値に応じて変換可能なアナログ電圧Vinの範囲が制限されることはない。 On the other hand, as shown in FIGS. 5 to 7, for example, when at least one of the input terminals 12 is disconnected, the output value out1 by the first A / D conversion and the second A / D conversion are performed. The output value out2 indicates an abnormal value due to the reset voltage, contrary to the value of the input analog voltage Vin. In this case, the abnormality detection voltage out'= (out1 + out2) / 2 indicates a value of several volts, which is significantly different from the substantially zero volt in the normal state. Therefore, the processing device 18 can determine that an abnormality has occurred when the abnormality detection voltage out'is not in the normal range near zero volt. Here, since the abnormality detection voltage out'at the time of abnormality is determined according to the reset voltage, the normal range for determining the presence or absence of abnormality can also be determined according to the reset voltage. If the reset voltage is zero volt, the abnormality detection voltage out'at the time of abnormality is also substantially zero volt, so that the reset voltage needs to be set to a value different from zero volt. On the other hand, since the input analog voltage Vin may be equal to the value of the reset voltage, the range of the analog voltage Vin that can be converted is not limited according to the value of the reset voltage.

以上、いくつかの具体例を詳細に説明したが、これらは例示に過ぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。本明細書又は図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものである。 Although some specific examples have been described in detail above, these are merely examples and do not limit the scope of claims. The techniques described in the claims include various modifications and modifications of the specific examples illustrated above. The technical elements described herein or in the drawings exhibit their technical usefulness alone or in various combinations.

2:シャント抵抗
4:回路ユニット
10:A/D変換装置
12:入力端子(IN+、IN−)
14:切替回路
16:A/D変換器
18:処理装置
20:A/D変換器のサンプルホールド回路
22:A/D変換器のA/D変換回路
Vadin+、Vadin−:A/D入力端子
Vin:アナログ電圧
Vos:オフセット電圧
swA:切替回路16の非反転スイッチ
swB:切替回路16の反転スイッチ
sw1−sw5:サンプルホールド回路20のスイッチ
2: Shunt resistor 4: Circuit unit 10: A / D converter 12: Input terminal (IN +, IN-)
14: Switching circuit 16: A / D converter 18: Processing device 20: Sample hold circuit of A / D converter 22: A / D conversion circuit of A / D converter Vadin +, Vadin-: A / D input terminal Vin : Analog voltage Vos: Offset voltage swA: Non-inverting switch swB of switching circuit 16: Reverse switch sw1-sw5 of switching circuit 16: Switch of sample hold circuit 20

Claims (1)

A/D変換装置であって、
アナログ電圧が差動入力される一対の入力端子と、
前記一対の入力端子に入力された前記アナログ電圧をA/D変換するA/D変換器と、
前記一対の入力端子と前記A/D変換器との間に設けられており、前記一対の入力端子に対して前記A/D変換器が接続される極性の向きを切り替え可能な切替回路と、
前記A/D変換器の出力値を処理する処理装置と、を備え、
前記A/D変換器は、前記切替回路による極性の切り替えを挟んで二度のA/D変換を実施するとともに、それぞれのA/D変換ではサンプリングキャパシタをゼロボルトでないリセット電圧でリセットし、
前記処理装置は、前記二度のA/D変換による二つの出力値の和又は前記二つの出力値の平均値が、前記リセット電圧に応じて定められた、ゼロボルトを含む正常範囲内にあるのか否かに基づいて、異常の有無を判定する、
A/D変換装置。
It is an A / D converter
A pair of input terminals to which analog voltage is differentially input, and
An A / D converter that A / D-converts the analog voltage input to the pair of input terminals,
A switching circuit provided between the pair of input terminals and the A / D converter and capable of switching the direction of the polarity to which the A / D converter is connected to the pair of input terminals.
A processing device for processing the output value of the A / D converter is provided.
The A / D converter performs two A / D conversions with the polarity switched by the switching circuit, and resets the sampling capacitor with a reset voltage other than zero volt in each A / D conversion.
In the processing apparatus, is the sum of the two output values obtained by the two A / D conversions or the average value of the two output values within the normal range including zero volt determined according to the reset voltage? Judging the presence or absence of abnormality based on whether or not
A / D converter.
JP2017243030A 2017-12-19 2017-12-19 A / D converter Active JP6879189B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017243030A JP6879189B2 (en) 2017-12-19 2017-12-19 A / D converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017243030A JP6879189B2 (en) 2017-12-19 2017-12-19 A / D converter

Publications (2)

Publication Number Publication Date
JP2019110472A JP2019110472A (en) 2019-07-04
JP6879189B2 true JP6879189B2 (en) 2021-06-02

Family

ID=67180307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017243030A Active JP6879189B2 (en) 2017-12-19 2017-12-19 A / D converter

Country Status (1)

Country Link
JP (1) JP6879189B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56156020A (en) * 1980-04-22 1981-12-02 Mitsubishi Electric Corp Arithmetic processor
JP2000201074A (en) * 1999-01-08 2000-07-18 Yokogawa Electric Corp A/d converting circuit
JP3505119B2 (en) * 2000-02-28 2004-03-08 株式会社日立製作所 Input circuit
JP5062293B2 (en) * 2010-05-14 2012-10-31 トヨタ自動車株式会社 Sample hold circuit and A / D converter
JP5769130B2 (en) * 2011-06-16 2015-08-26 横河電機株式会社 Diagnostic method and apparatus for signal input circuit
JP6195543B2 (en) * 2014-06-27 2017-09-13 ルネサスエレクトロニクス株式会社 Semiconductor device

Also Published As

Publication number Publication date
JP2019110472A (en) 2019-07-04

Similar Documents

Publication Publication Date Title
US9407839B2 (en) Solid-state imaging device
US10274544B2 (en) Route switching circuit and voltage detection device
JP6228865B2 (en) Sensor device inspection method and sensor device
US9939493B2 (en) Apparatus for monitoring voltage across any unit battery in battery pack
JP5018920B2 (en) A / D converter
US8223059B2 (en) Switched-capacitor input circuit and analog-to-digital converter including the same
WO2011114392A1 (en) Offset correction device of comparator
WO2011142036A1 (en) Sample-and-hold circuit and a/d conversion device
JP5588407B2 (en) AD converter and DC-DC converter
JP5338493B2 (en) Switched capacitor circuit and pipelined AD conversion circuit having the same
TW201141076A (en) A-D convert apparatus and control method
CN101512907B (en) Analog-digital converter
JP6879189B2 (en) A / D converter
JP2002243771A (en) Battery voltage detecting circuit
CN108712620B (en) Motion detection circuit and motion detection method
US20140000364A1 (en) Hybrid analog to digital converter and sensing apparatus using the same
JP2007306289A (en) Disconnection detecting device and disconnection detecting method for multiplex communication bus
JP2004080581A (en) Voltage comparator, analog/digital converter, and analog/digital conversion circuit
EP3130894B1 (en) Abnormality detection device for sensor and sensor device
WO2021205962A1 (en) Integrated circuit
WO2021205939A1 (en) Signal processing circuit
TWI763498B (en) Pipeline analog to digital converter and signal conversion method
WO2023189429A1 (en) Temperature sensor and sensor device
US20170160312A1 (en) Measuring device
JP6638494B2 (en) Short circuit detection circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200526

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210310

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210330

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210412

R151 Written notification of patent or utility model registration

Ref document number: 6879189

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151