JP2000315950A - A/d converter and controller using it - Google Patents

A/d converter and controller using it

Info

Publication number
JP2000315950A
JP2000315950A JP11125730A JP12573099A JP2000315950A JP 2000315950 A JP2000315950 A JP 2000315950A JP 11125730 A JP11125730 A JP 11125730A JP 12573099 A JP12573099 A JP 12573099A JP 2000315950 A JP2000315950 A JP 2000315950A
Authority
JP
Japan
Prior art keywords
disconnection
sensor
conversion
sensors
detected
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.)
Pending
Application number
JP11125730A
Other languages
Japanese (ja)
Inventor
Takeshi Ishizu
石津  健
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP11125730A priority Critical patent/JP2000315950A/en
Publication of JP2000315950A publication Critical patent/JP2000315950A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an A/D converter that corrects an error given to an A/D conversion value of other sensor even when the wiring of a sensor connected to an amplifier circuit is broken and to provide a controller using it. SOLUTION: An amplifier circuit 70 is connected to at least one of a plurality of sensors, an output of sensors not connected to the amplifier circuit 70 or an output of the amplifier circuit 70 is selected and given to an input terminal for A/D conversion. In this case, a broken wire of a sensor 90 connected to the amplifier circuit 70 is detected and when the broken wire of the sensor is detected, as to other sensors 91 to 97 than the sensor 90 whose broken wire is detected, the A/D converter value after the broken wire is corrected on the basis of the A/D converter value before the broken wire for each sensor.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、増幅回路を介して
入力されるセンサ入力信号および増幅回路を介さずに入
力されるセンサ入力信号をA/D変換するA/D変換装
置およびそのA/D変換装置を使用する制御装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an A / D converter for A / D converting a sensor input signal input via an amplifier circuit and a sensor input signal input without passing through an amplifier circuit, and an A / D converter for the A / D converter. The present invention relates to a control device using a D conversion device.

【0002】[0002]

【従来の技術】A/D変換装置に、増幅回路を介して接
続されたセンサと、増幅回路を介さずに接続されたセン
サとがある場合の例として、例えば、図3に示すような
回路が考えられる。
2. Description of the Related Art As an example in which an A / D converter has a sensor connected via an amplifier circuit and a sensor connected without an amplifier circuit, for example, a circuit as shown in FIG. Can be considered.

【0003】処理装置10内には、CPU40、A/D
変換器20を備え、A/D変換器20内には、マルチプ
レクサ30とA/D変換処理部50とを備えている。C
PU40によって、マルチプレクサ30のトランジスタ
Tr0,Tr1,…,Tr7のいずれかを導通状態とす
ることによって、A/D変換処理部50には、ポートA
N0,AN1,…,AN7を介してセンサ90,91,
…,97からの信号のいずれかが入力され、A/D変換
された後、CPU40にて、所定の処理が実行される。
[0003] In the processing device 10, a CPU 40, an A / D
The A / D converter 20 includes a multiplexer 30 and an A / D conversion processing unit 50. C
The PU 40 turns on any of the transistors Tr0, Tr1,..., Tr7 of the multiplexer 30 so that the A / D conversion processing unit 50
N0, AN1,..., AN7, sensors 90, 91,
, 97 are input and A / D converted, and then the CPU 40 executes a predetermined process.

【0004】なお、増幅回路70は、センサ90とポー
トAN0との間に接続されている。また、ダイオードD
0,D1は、高電圧がポートAN0に印加されないよう
にするためのリミッタである。
[0004] The amplifier circuit 70 is connected between the sensor 90 and the port AN0. The diode D
0 and D1 are limiters for preventing a high voltage from being applied to the port AN0.

【0005】[0005]

【発明が解決しようとする課題】上記のような構成をと
った場合に、センサ90が断線した場合の処理装置10
の入力ポートAN0の電圧Vin0は、 Vin0=(0−Vcc/2)×(−Amp)+Vcc/2 =Vcc×(Amp+1) …(1) となる。Q1の増幅率Ampが、Amp>1であるた
め、 Vin0>Vcc …(2) となる。このとき、ダイオードD0,D1の降下電圧を
Vf(約0.7[V])とすると、Tr0のエミッタ電
圧Ve0は、 Ve0=Vcc+Vf …(3) となる。センサ90が断線した状態でセンサ91の出力
信号Vsens1のA/D変換を実行するとVd0=V
ccとしてTr0をオフ状態としようとしてもTr0の
ベース−エミッタ間電圧Vbe0は、 Vbe0=Ve0−Vb0=Vcc+Vf−Vcc=Vf …(4) となり、Tr0もオン状態となる。このとき、Vc0と
Vc1に電位差が生じ(Vc0≒Vcc+VfよりVc
0>Vc1)、AN0からAN1に電流がまわりこむ。
したがって、ポートAN1の電圧Vin1は、センサ9
1の出力電圧にポートAN0に発生している電圧が加え
られた電圧となってしまい、A/D変換した場合に誤差
が生じることになる。センサ92のA/D変換値も同様
に誤差が生じてしまう。
When the sensor 90 is disconnected in the above configuration, the processing unit 10
Vin0 = (0−Vcc / 2) × (−Amp) + Vcc / 2 = Vcc × (Amp + 1) (1) Since the amplification factor Amp of Q1 is Amp> 1, Vin0> Vcc (2). At this time, assuming that the voltage drop of the diodes D0 and D1 is Vf (about 0.7 [V]), the emitter voltage Ve0 of Tr0 is as follows: Ve0 = Vcc + Vf (3) When the A / D conversion of the output signal Vsens1 of the sensor 91 is performed with the sensor 90 disconnected, Vd0 = V
Even if Tr0 is turned off as cc, the base-emitter voltage Vbe0 of Tr0 becomes Vbe0 = Ve0-Vb0 = Vcc + Vf-Vcc = Vf (4), and Tr0 is also turned on. At this time, a potential difference occurs between Vc0 and Vc1 (from Vc0 ≒ Vcc + Vf, Vc0
0> Vc1), and the current flows from AN0 to AN1.
Therefore, the voltage Vin1 of the port AN1 is
The output voltage of 1 is the voltage obtained by adding the voltage generated at the port AN0, and an error occurs when A / D conversion is performed. Similarly, an error occurs in the A / D conversion value of the sensor 92.

【0006】本発明は、このような従来の問題点に着目
してなされたもので、増幅回路が接続されたセンサが断
線した場合に、他のセンサのA/D変換値に与える誤差
を補正することができるA/D変換装置およびこれを使
用する制御装置を提供することを目的とする。
The present invention has been made in view of such a conventional problem, and corrects an error given to an A / D conversion value of another sensor when a sensor connected to an amplifier circuit is disconnected. It is an object of the present invention to provide an A / D conversion device capable of performing the above-mentioned operation and a control device using the same.

【0007】[0007]

【課題を解決するための手段】本発明は上述の課題を解
決するために、請求項1に記載の第1の発明は、複数の
センサと、該複数のセンサの少なくとも1つに接続さ
れ、センサ出力信号の増幅を行なう少なくとも1つの増
幅回路と、1つの入力端を有し、前記増幅回路に接続さ
れていない前記センサの出力と前記増幅回路の出力のい
ずれか1つを選択して前記入力端に接続してアナログ/
デジタル変換を行なうA/D変換手段と、前記増幅回路
に接続された前記センサの断線検知を行なう断線検知手
段と、断線検知された場合、断線が検出されたセンサ以
外のセンサについて、センサ毎の断線前のA/D変換値
に基づいて断線後のA/D変換値を補正する補正手段と
を有するA/D変換装置とする。
According to a first aspect of the present invention, a plurality of sensors are connected to at least one of the plurality of sensors. At least one amplifying circuit for amplifying a sensor output signal and one input terminal, and selecting any one of the output of the sensor and the output of the amplifying circuit which is not connected to the amplifying circuit, and Connect analog /
A / D conversion means for performing digital conversion, disconnection detection means for detecting disconnection of the sensor connected to the amplifier circuit, and, if disconnection is detected, for each sensor other than the sensor for which disconnection is detected, An A / D converter having correction means for correcting the A / D conversion value after disconnection based on the A / D conversion value before disconnection.

【0008】請求項2に記載の第2の発明は、第1の発
明によるA/D変換装置において、前記補正手段は、断
線検知された場合、断線が検出されたセンサ以外のセン
サについて、センサ毎の断線前後のA/D変換値の差を
演出し、算出された差に基づいて断線後のA/D変換値
を補正することを特徴とする。
According to a second aspect of the present invention, in the A / D converter according to the first aspect, when the disconnection is detected, the correction means detects a sensor other than the sensor that detected the disconnection. A difference between A / D conversion values before and after each disconnection is produced, and the A / D conversion value after the disconnection is corrected based on the calculated difference.

【0009】請求項3に記載の第3の発明は、複数のセ
ンサと、前記複数のセンサの少なくとも1つに接続さ
れ、センサ出力信号の増幅を行なう少なくとも1つの増
幅回路と、1つの入力端を有し、前記増幅回路に接続さ
れていない前記センサの出力と前記増幅回路の出力のい
ずれか1つを選択して前記入力端に接続してアナログ/
デジタル変換を行なうA/D変換手段と、前記A/D変
換値を、センサの種類に対応づけて記憶する記憶手段
と、変換された前記A/D変換値に基づき所定の演算を
行なう処理手段と、前記増幅回路に接続された前記セン
サの断線検知を行なう断線検知手段と、断線検知された
場合、断線が検出されたセンサ以外のセンサについて、
センサ毎の断線前のA/D変換値に基づいて断線後のA
/D変換値を補正する補正手段とを有する制御装置とす
る。
According to a third aspect of the present invention, a plurality of sensors, at least one amplifier circuit connected to at least one of the plurality of sensors and amplifying a sensor output signal, and one input terminal are provided. And selecting one of the output of the sensor and the output of the amplifier circuit that is not connected to the amplifier circuit and connecting the selected one to the input terminal,
A / D conversion means for performing digital conversion, storage means for storing the A / D conversion value in association with the type of sensor, and processing means for performing a predetermined operation based on the converted A / D conversion value And a disconnection detecting means for detecting disconnection of the sensor connected to the amplifier circuit, and when disconnection is detected, for sensors other than the sensor for which disconnection is detected,
A after disconnection based on the A / D conversion value before disconnection for each sensor
And a correction unit for correcting the / D conversion value.

【0010】請求項4に記載の第4の発明は、第3の発
明による制御装置において、前記補正手段は、断線検知
された場合、断線が検出されたセンサ以外のセンサにつ
いて、センサ毎に記憶された断線前後のA/D変換値の
差を演出し、算出された差に基づいてA/D変換値の誤
差を補正することを特徴とする。
According to a fourth aspect of the present invention, in the control device according to the third aspect, when the disconnection is detected, the correction means stores, for each sensor, a sensor other than the sensor in which the disconnection is detected. The difference between the A / D conversion values before and after the disconnection is produced, and the error of the A / D conversion value is corrected based on the calculated difference.

【0011】請求項5に記載の第5の発明は、第1乃至
第4の発明のいずれかによる装置において、前記断線検
出手段は、前記増幅回路に接続されたセンサが複数ある
場合、該センサの内のいずれか1つについて、断線を検
出することを特徴とする。
According to a fifth aspect of the present invention, in the apparatus according to any one of the first to fourth aspects, the disconnection detecting means is provided when there are a plurality of sensors connected to the amplifier circuit. For any one of the above, disconnection is detected.

【0012】請求項6に記載の第6の発明は、第2また
は第4の発明による装置において、前記補正手段は、所
定周期毎に、断線後のA/D変換値から、前記算出され
た差を所定数で割った値を減じることを特徴とする。
According to a sixth aspect of the present invention, in the device according to the second or fourth aspect, the correction means calculates the calculated value from the A / D conversion value after the disconnection at predetermined intervals. It is characterized in that a value obtained by dividing the difference by a predetermined number is reduced.

【0013】[0013]

【発明の実施の形態】以下、本発明によるA/D変換装
置およびこれを使用する制御装置の実施の形態を添付図
面を参照して詳細に説明する。図1は、本発明によるA
/D変換装置およびこれを使用する制御装置の一実施の
形態の構成図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an A / D converter according to the present invention and a control device using the same will be described in detail with reference to the accompanying drawings. FIG. 1 shows A according to the invention.
1 is a configuration diagram of an embodiment of a / D conversion device and a control device using the same.

【0014】まず、構成を説明する。制御装置は、処理
装置10、センサ90,91,…,97、増幅回路70
および断線検知回路80を有している。
First, the configuration will be described. The control device includes a processing device 10, sensors 90, 91,.
And a disconnection detection circuit 80.

【0015】処理装置10は、CPU40、A/D変換
器20および記憶装置(メモリ)60を有している。
The processing device 10 has a CPU 40, an A / D converter 20, and a storage device (memory) 60.

【0016】A/D変換器20は、マルチプレクサ30
およびA/D変換処理部50を有し、マルチプレクサ3
0は、処理装置10の入力ポート(AN0,AN1,
…,AN7)の数と同じ数のトランジスタを有し、各ポ
ートに対応してスイッチングトランジスタTr0,Tr
1,…,Tr7が接続されている。これらのトランジス
タのベースには、CPU40から通常電源電圧Vcc
(例えば5[V])が印加されていて、トランジスタは
非導通状態にあるが、例えば、センサ91の出力電圧を
A/D変換する場合、CPU40からトランジスタTr
0のベースにほぼ0[V]の電圧を印加することでトラ
ンジスタTr0のみが導通状態になり、A/D変換処理
部50にてA/D変換される。
The A / D converter 20 includes a multiplexer 30
And an A / D conversion processing unit 50,
0 is the input port (AN0, AN1,
, AN7), and the switching transistors Tr0, Tr corresponding to each port.
,..., Tr7 are connected. Normal power supply voltage Vcc is supplied from CPU 40 to the base of these transistors.
(For example, 5 [V]) is applied and the transistor is in a non-conductive state. For example, when the output voltage of the sensor 91 is A / D-converted, the CPU 40
When a voltage of approximately 0 [V] is applied to the base of 0, only the transistor Tr0 becomes conductive, and the A / D conversion processing unit 50 performs A / D conversion.

【0017】なお、CPU40は、各トランジスタを順
番に1つずつ導通状態とし、かつ、所定の周期でTr
0,Tr1,…,Tr7について繰り返すようにプログ
ラムされている。
The CPU 40 turns on each transistor one by one in order, and sets the Tr in a predetermined cycle.
It is programmed to repeat for 0, Tr1,..., Tr7.

【0018】そして、A/D変換処理部50にてA/D
変換されたA/D変換値は、CPU40に送られるとと
もに、各センサに対応させて記憶装置60に記憶され
る。
The A / D conversion processing section 50 performs A / D conversion.
The converted A / D conversion value is sent to CPU 40 and stored in storage device 60 in association with each sensor.

【0019】CPU40では、A/D変換値を使用して
所定の処理を実行する。CPU40は、記憶装置60に
記憶された値と、A/D変換処理部50のバッファ/レ
ジスタに記憶された値を入力する。
The CPU 40 executes a predetermined process using the A / D converted value. The CPU 40 inputs the value stored in the storage device 60 and the value stored in the buffer / register of the A / D conversion processing unit 50.

【0020】センサ90の出力電圧をVsens0、オ
ペアンプQ1の増幅率をAmp(=R4/R2)とする
と、処理装置10の入力ポートAN0に入力される電圧
Vin0、A/D変換された電圧Vad0は、 Vin0=Vad0 =(Vsens0−Vcc/2)×(−Amp)+Vcc/2 …(5) で表わされる。また、センサ91の出力電圧をVsen
s1、センサ92の出力電圧をVsens2とすると、
入力ポートAN1,AN2の入力電圧Vin1,Vin
2とA/D変換されたVad1,Vad2は、それぞ
れ、 Vin1=Vad1=Vsens1 …(6) Vin2=Vad2=Vsens2 …(7) である。
Assuming that the output voltage of the sensor 90 is Vsens0 and the amplification factor of the operational amplifier Q1 is Amp (= R4 / R2), the voltage Vin0 input to the input port AN0 of the processing device 10 and the A / D converted voltage Vad0 are Vin0 = Vad0 = (Vsens0−Vcc / 2) × (−Amp) + Vcc / 2 (5) Further, the output voltage of the sensor 91 is set to Vsen.
s1, and the output voltage of the sensor 92 is Vsens2,
Input voltages Vin1 and Vin of input ports AN1 and AN2
2 and A / D converted Vad1 and Vad2 are respectively Vin1 = Vad1 = Vsens1 (6) Vin2 = Vad2 = Vsens2 (7)

【0021】次に、断線検知回路80について説明す
る。断線検知回路80の抵抗R6の一端は、センサ90
の出力端に接続されている。抵抗R6から入力されたセ
ンサ出力は、オペアンプQ2の反転入力端子に接続され
ている。そして、非反転入力端子は、電源電圧Vccに
接続されている。そして、オペアンプQ2の出力端子
は、CPU40に接続されている。
Next, the disconnection detecting circuit 80 will be described. One end of the resistor R6 of the disconnection detection circuit 80 is connected to the sensor 90.
Connected to the output end of the The sensor output input from the resistor R6 is connected to the inverting input terminal of the operational amplifier Q2. The non-inverting input terminal is connected to the power supply voltage Vcc. The output terminal of the operational amplifier Q2 is connected to the CPU 40.

【0022】次に、図2に基づいて、本実施の形態の作
用を説明する。CPU40は、まず電源が立ち上がった
ことを検出した場合に、1回のみ、異常判断処理カウン
タCnt_Ijoをクリアする(Cnt_Ijo=0と
する)(ステップS1参照)。
Next, the operation of the present embodiment will be described with reference to FIG. First, when detecting that the power has been turned on, the CPU 40 clears the abnormality determination processing counter Cnt_Ijo only once (sets Cnt_Ijo = 0) (see step S1).

【0023】次に、処理装置10への入力電圧Vin0
〜Vin7に対してA/D変換器20により、A/D変
換を行ない、A/D変換値Vad0〜Vad7を得る
(ステップS2参照)。
Next, the input voltage Vin0 to the processing device 10
A / D converter 20 performs A / D conversion on A to D Vin7 to obtain A / D converted values Vad0 to Vad7 (see step S2).

【0024】次に、CPU40は、センサ90の断線判
断を行なう。断線検知回路80の出力電圧Vopen=
Vccの場合、CPU40は、センサ90が正常である
と判断する(ステップS3:No)。センサ90が正常
と判定された場合、A/D変換値Vad0〜Vad7の
値を記憶装置60に格納する(ステップS4参照)。
Next, the CPU 40 determines whether the sensor 90 is disconnected. Output voltage Vopen of disconnection detection circuit 80 =
In the case of Vcc, the CPU 40 determines that the sensor 90 is normal (step S3: No). When it is determined that the sensor 90 is normal, the values of the A / D conversion values Vad0 to Vad7 are stored in the storage device 60 (see step S4).

【0025】断線検知回路80の出力電圧Vopen=
0の場合、CPU40は、センサ90が断線したと判断
する(ステップS3:Yes)。今回の処理で初めて断
線と判断した場合は、Cnt_Ijo==0であるため
(ステップS5:Yes)、下記のように、センサ90
の断線によって生じる他のセンサ91〜97のA/D変
換値Vad1〜Vad7の変化量d_Vad1〜d_V
ad7を算出する(ステップS6参照)。 d_Vad1=Vad1−Vad1_1 d_Vad2=Vad2−Vad2_1 : d_Vad7=Vad7−Vad7_1 …(8)
The output voltage Vopen of the disconnection detecting circuit 80 =
If the value is 0, the CPU 40 determines that the sensor 90 is disconnected (step S3: Yes). When the disconnection is determined for the first time in this process, since Cnt_Ijo == 0 (step S5: Yes), the sensor 90 is determined as follows.
Of the A / D conversion values Vad1 to Vad7 of the other sensors 91 to 97 caused by the disconnection of d_Vad1 to d_V
ad7 is calculated (see step S6). d_Vad1 = Vad1-Vad1_1 d_Vad2 = Vad2-Vad2_1: d_Vad7 = Vad7-Vad7_1 (8)

【0026】次に、異常判断処理カウンタに対して、 Cnt_Ijo=Cnt_Ijo+1 …(9) と1を加算する(ステップS7参照)。Next, Cnt_Ijo = Cnt_Ijo + 1 (9) and 1 are added to the abnormality determination processing counter (see step S7).

【0027】今回の断線時処理が2回目以降の場合は、
Cnt_Ijo>1となるため、Cnt_Ijo=10
0となるまで、次のステップS10の処理を繰り返す
(ステップS8,S9参照)。
If the current disconnection processing is the second or subsequent processing,
Since Cnt_Ijo> 1, Cnt_Ijo = 10
Until the value becomes 0, the process of the next step S10 is repeated (see steps S8 and S9).

【0028】そして、ステップS10において、下記の
ように、センサ90の断線によって他のセンサ91,9
2,…,97に生じた変化量を補正する。 Vad1=Vad1−d_Vad1×Cnt_Ijo/100 Vad2=Vad2−d_Vad2×Cnt_Ijo/100 : Vad7=Vad7−d_Vad7×Cnt_Ijo/100 …(10)
In step S10, the other sensors 91 and 9 are disconnected by disconnection of the sensor 90 as described below.
, 97 are corrected. Vad1 = Vad1-d_Vad1 × Cnt_Ijo / 100 Vad2 = Vad2-d_Vad2 × Cnt_Ijo / 100: Vad7 = Vad7−d_Vad7 × Cnt_Ijo / 100 (10)

【0029】以上、説明したとおり、本実施の形態で
は、1つのA/D変換処理部50の入力をマルチプレク
サ30により切り換えて1つ1つA/D変換する場合で
あって、かつ、増幅回路70を介して接続されたセンサ
90と増幅回路70を介さずに接続されたセンサ91〜
97を有する場合には、増幅回路20が接続されたセン
サ90の断線を検出し、増幅回路70を介さないセンサ
91〜97について断線前後のA/D変換値の差を算出
し、断線後のA/D変換値からその差を引くようにした
ため、増幅回路70が接続されたセンサ90が断線した
場合に他のセンサ91〜97のA/D変換値に与える誤
差を補正することができる、という効果がある。また、
ステップS8,S9によって、変化量を徐々に補正する
ようにしたため、A/D変換値を使用して実行する所定
の処理や制御が補正によって急変することがない。
As described above, in this embodiment, the input of one A / D conversion processing unit 50 is switched by the multiplexer 30 to perform A / D conversion one by one, and the amplification circuit is used. 70 connected to the sensor 90 via the sensor 70 and sensors 91 to 91 connected without the amplifier 70
In the case of having the amplifier 97, the disconnection of the sensor 90 to which the amplifier circuit 20 is connected is detected, and the difference between A / D conversion values before and after the disconnection is calculated for the sensors 91 to 97 that do not pass through the amplifier circuit 70. Since the difference is subtracted from the A / D conversion value, it is possible to correct an error given to the A / D conversion values of the other sensors 91 to 97 when the sensor 90 to which the amplifier circuit 70 is connected is disconnected. This has the effect. Also,
Since the amount of change is gradually corrected in steps S8 and S9, a predetermined process or control executed using the A / D conversion value does not suddenly change due to the correction.

【0030】また、上記実施の形態では、増幅回路70
に接続されたセンサは、センサ90の1つのみである
が、これに限るものではなく、増幅回路に接続されたセ
ンサが複数あってもよい。この場合、断線検知回路は1
つでよく、増幅回路に接続されたセンサのいずれか1つ
に設けられていればよい。
In the above embodiment, the amplification circuit 70
Is connected to only one of the sensors 90, but is not limited to this, and a plurality of sensors may be connected to the amplifier circuit. In this case, the disconnection detection circuit is 1
And it may be provided in any one of the sensors connected to the amplifier circuit.

【0031】[0031]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、増幅回路が、複数のセンサの内の少なくとも1
つに接続され、かつ、増幅回路に接続されていないセン
サの出力と増幅回路の出力のいずれか1つを選択して入
力端に接続してアナログ/デジタル変換を行なう場合
に、増幅回路に接続されたセンサの断線検知を行なうと
ともに、断線検知された場合には、断線が検知されたセ
ンサ以外のセンサについて、センサ毎の断線前のA/D
変換値に基づいて断線後のA/D変換値を補正するよう
にしたため、増幅回路が接続されたセンサが断線した場
合に、他のセンサのA/D変換値に与える誤差を補正す
ることができる、という効果がある。
As described in detail above, according to the present invention, the amplifier circuit includes at least one of the plurality of sensors.
When one of the output of the sensor and the output of the amplifier circuit that is connected to one and not connected to the amplifier circuit is selected and connected to the input terminal to perform analog / digital conversion, the connection to the amplifier circuit is performed. When the disconnection is detected, the A / D of each sensor other than the sensor for which the disconnection was detected before disconnection is performed.
Since the A / D conversion value after disconnection is corrected based on the conversion value, it is possible to correct an error given to the A / D conversion value of another sensor when the sensor connected to the amplifier circuit is disconnected. There is an effect that it can be done.

【0032】また、補正をする際、所定周期毎に断線後
のA/D変換値から算出された差を所定数で割った値を
減じるようにしたため、A/D変換値を使用して実行す
る所定の処理や制御が補正によって急変することがな
い。
When the correction is performed, the value obtained by dividing the difference calculated from the A / D conversion value after the disconnection by a predetermined number at every predetermined period is reduced, so that the correction is performed using the A / D conversion value. The predetermined processing and control to be performed are not suddenly changed by the correction.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明によるA/D変換装置およびこれを使用
する制御装置の一実施の形態の構成図である。
FIG. 1 is a configuration diagram of an embodiment of an A / D converter and a control device using the same according to the present invention.

【図2】本実施の形態の作用を説明するためのフローチ
ャートである。
FIG. 2 is a flowchart for explaining the operation of the present embodiment.

【図3】従来技術によるA/D変換装置およびこれを使
用する制御装置の一実施の形態の構成図である。
FIG. 3 is a configuration diagram of an embodiment of an A / D converter and a control device using the A / D converter according to the related art.

【符号の説明】[Explanation of symbols]

10 処理装置 20 A/D変換器 30 マルチプレクサ 40 CPU 50 A/D変換処理部 60 記憶装置(メモリ) 70 増幅回路 80 断線検知回路 90,91,92,93,94,95,96,97
センサ AN0,AN1,AN2,AN3,AN4,AN5,A
N6,AN7ポート D0,D1 ダイオード Q1,Q2 オペアンプ R1,R2,R3,R4,R5,R6,R7 抵抗 Tr0,Tr1,Tr2,Tr3,Tr4,Tr5,T
r6,Tr7スイッチングトランジスタ
Reference Signs List 10 processing device 20 A / D converter 30 multiplexer 40 CPU 50 A / D conversion processing unit 60 storage device (memory) 70 amplifying circuit 80 disconnection detecting circuit 90, 91, 92, 93, 94, 95, 96, 97
Sensors AN0, AN1, AN2, AN3, AN4, AN5, A
N6, AN7 port D0, D1 Diode Q1, Q2 Operational amplifier R1, R2, R3, R4, R5, R6, R7 Resistance Tr0, Tr1, Tr2, Tr3, Tr4, Tr5, T
r6, Tr7 switching transistor

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数のセンサと、 前記複数のセンサの少なくとも1つに接続され、センサ
出力信号の増幅を行なう少なくとも1つの増幅回路と、 1つの入力端を有し、前記増幅回路に接続されていない
前記センサの出力と前記増幅回路の出力のいずれか1つ
を選択して前記入力端に接続してアナログ/デジタル変
換を行なうA/D変換手段と、 前記増幅回路に接続された前記センサの断線検知を行な
う断線検知手段と、 断線検知された場合、断線が検出されたセンサ以外のセ
ンサについて、センサ毎の断線前のA/D変換値に基づ
いて断線後のA/D変換値を補正する補正手段と、 を有することを特徴とするA/D変換装置。
1. A plurality of sensors, at least one amplifying circuit connected to at least one of the plurality of sensors and amplifying a sensor output signal, and one input terminal, the plurality of sensors being connected to the amplifying circuit. A / D conversion means for selecting one of the output of the sensor and the output of the amplifier circuit and connecting to the input terminal to perform analog / digital conversion, and the sensor connected to the amplifier circuit A disconnection detecting means for detecting disconnection of the sensor, and, if a disconnection is detected, an A / D conversion value after the disconnection based on the A / D conversion value before disconnection for each sensor other than the sensor for which the disconnection is detected. An A / D conversion device, comprising: a correction unit configured to perform correction.
【請求項2】 請求項1に記載のA/D変換装置におい
て、 前記補正手段は、断線検知された場合、断線が検出され
たセンサ以外のセンサについて、センサ毎の断線前後の
A/D変換値の差を演出し、算出された差に基づいて断
線後のA/D変換値を補正することを特徴とするA/D
変換装置。
2. The A / D converter according to claim 1, wherein, when a disconnection is detected, the correction unit performs A / D conversion before and after the disconnection for each sensor other than the sensor for which the disconnection is detected. A / D which produces a value difference and corrects the A / D conversion value after disconnection based on the calculated difference.
Conversion device.
【請求項3】 複数のセンサと、 前記複数のセンサの少なくとも1つに接続され、センサ
出力信号の増幅を行なう少なくとも1つの増幅回路と、 1つの入力端を有し、前記増幅回路に接続されていない
前記センサの出力と前記増幅回路の出力のいずれか1つ
を選択して前記入力端に接続してアナログ/デジタル変
換を行なうA/D変換手段と、 前記A/D変換値を、センサの種類に対応づけて記憶す
る記憶手段と、 変換された前記A/D変換値に基づき所定の演算を行な
う処理手段と、 前記増幅回路に接続された前記センサの断線検知を行な
う断線検知手段と、 断線検知された場合、断線が検出されたセンサ以外のセ
ンサについて、センサ毎の断線前のA/D変換値に基づ
いて断線後のA/D変換値を補正する補正手段と、 を有することを特徴とする制御装置。
3. A plurality of sensors, at least one amplifying circuit connected to at least one of the plurality of sensors and amplifying a sensor output signal, and one input terminal, the plurality of sensors being connected to the amplifying circuit. A / D conversion means for selecting one of the output of the sensor and the output of the amplifier circuit and connecting to the input terminal to perform analog / digital conversion, and converting the A / D conversion value into a sensor. Storage means for storing the A / D converted value in association with the type of processing; processing means for performing a predetermined operation based on the converted A / D conversion value; and disconnection detection means for detecting disconnection of the sensor connected to the amplifier circuit. Correction means for correcting an A / D conversion value after disconnection based on an A / D conversion value before disconnection for each sensor other than the sensor for which disconnection is detected when disconnection is detected; Control device according to claim.
【請求項4】 請求項3に記載の制御装置において、 前記補正手段は、断線検知された場合、断線が検出され
たセンサ以外のセンサについて、センサ毎に記憶された
断線前後のA/D変換値の差を演出し、算出された差に
基づいてA/D変換値の誤差を補正することを特徴とす
る制御装置。
4. The control device according to claim 3, wherein, when a disconnection is detected, the correction unit performs A / D conversion before and after the disconnection stored for each sensor other than the sensor in which the disconnection is detected. A control device for producing a value difference and correcting an error of an A / D conversion value based on the calculated difference.
【請求項5】 請求項1乃至4のいずれかに記載の装置
において、 前記断線検出手段は、前記増幅回路に接続されたセンサ
が複数ある場合、該センサの内のいずれか1つについ
て、断線を検出することを特徴とする装置。
5. The apparatus according to claim 1, wherein said disconnection detecting means, when there are a plurality of sensors connected to said amplifier circuit, disconnects one of said sensors. An apparatus for detecting
【請求項6】 請求項2または4に記載の装置におい
て、 前記補正手段は、所定周期毎に、断線後のA/D変換値
から、前記算出された差を所定数で割った値を減じるこ
とを特徴とする装置。
6. The apparatus according to claim 2, wherein the correction unit subtracts a value obtained by dividing the calculated difference by a predetermined number from the A / D conversion value after the disconnection at predetermined intervals. An apparatus characterized in that:
JP11125730A 1999-05-06 1999-05-06 A/d converter and controller using it Pending JP2000315950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11125730A JP2000315950A (en) 1999-05-06 1999-05-06 A/d converter and controller using it

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11125730A JP2000315950A (en) 1999-05-06 1999-05-06 A/d converter and controller using it

Publications (1)

Publication Number Publication Date
JP2000315950A true JP2000315950A (en) 2000-11-14

Family

ID=14917374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11125730A Pending JP2000315950A (en) 1999-05-06 1999-05-06 A/d converter and controller using it

Country Status (1)

Country Link
JP (1) JP2000315950A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150079247A (en) * 2013-12-31 2015-07-08 엘지디스플레이 주식회사 Organic light emitting display device and method of driving the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150079247A (en) * 2013-12-31 2015-07-08 엘지디스플레이 주식회사 Organic light emitting display device and method of driving the same
KR102104254B1 (en) 2013-12-31 2020-04-24 엘지디스플레이 주식회사 Organic light emitting display device and method of driving the same

Similar Documents

Publication Publication Date Title
US7731417B2 (en) Temperature detection circuit
JP4736508B2 (en) Physical quantity detection method and sensor device
JP5517777B2 (en) System having disconnection detection circuit and disconnection detection means for bridge circuit
US10268226B1 (en) Voltage generating device and calibrating method thereof
EP1840526A2 (en) Temperature characteristic correction method and sensor amplification circuit
US8139385B2 (en) Inverter control circuit and control method thereof
US9103695B2 (en) Detection circuit for detecting signals produced by bridge circuit sensor
JP4641164B2 (en) Overheat detection circuit
JP2004138548A (en) Sensor and output characteristic switchover method for same
JP2000315950A (en) A/d converter and controller using it
JP4255632B2 (en) Electrical load disconnection detector
JPH1144585A (en) Sensor apparatus
JP2002310735A (en) Sensing device for semiconductor physical quantity
JP2018045583A (en) Signal processing device
US7345536B2 (en) Amplifier circuit and control method thereof
JP6838589B2 (en) Circuit abnormality detection device
JPH08278110A (en) Optical sensor
JP4824230B2 (en) Temperature detection circuit
JP2008066970A (en) Auto range current mirror circuit
JP2018147931A (en) Semiconductor device
US20230036211A1 (en) Control circuit and method for calibrating signal converter, and signal conversion system using the same
JP2009200978A (en) Comparison circuit apparatus, serial interface circuit apparatus, and electronic device
JP6358133B2 (en) Gas concentration sensor signal processing device
JP3798718B2 (en) Overcurrent detection circuit
JP6390451B2 (en) Battery block discharge control device