JPH0613899A - Input correcting method for analog/digital converter - Google Patents

Input correcting method for analog/digital converter

Info

Publication number
JPH0613899A
JPH0613899A JP14223191A JP14223191A JPH0613899A JP H0613899 A JPH0613899 A JP H0613899A JP 14223191 A JP14223191 A JP 14223191A JP 14223191 A JP14223191 A JP 14223191A JP H0613899 A JPH0613899 A JP H0613899A
Authority
JP
Japan
Prior art keywords
converter
input
microcomputer
correction
analog
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
JP14223191A
Other languages
Japanese (ja)
Inventor
Hirobumi Uchino
博文 内野
Masahiro Niida
正浩 新居田
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.)
MEIDEN ENG KK
Original Assignee
MEIDEN ENG KK
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 MEIDEN ENG KK filed Critical MEIDEN ENG KK
Priority to JP14223191A priority Critical patent/JPH0613899A/en
Publication of JPH0613899A publication Critical patent/JPH0613899A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Analogue/Digital Conversion (AREA)
  • Feedback Control In General (AREA)

Abstract

PURPOSE:To provide an input correction method for an A/D converter with which correction is facilitated with high performance by preparing a correction relation based on the input data value of the A/D converter and the reference value of input data. CONSTITUTION:At the time of correction, a microcomputer supplies an instruction through an interface 19 to a reference value generator 9 and supplies several values to be inputted to an analog input channel 11. The imparted values pass through an operation amplifier part 12, are converted to digital data at the A/D converter 7 and are inputted to the microcomputer 15. The microcomputer 15 stores the value generated by the reference value generator 9 and the digital data at a memory device 16. When measurement at all scheduled points is completed, the microcomputer 15 forms functions to be corrected based on the data stored in the memory device 16.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はアナログ/ディジタル変
換器の入力校正方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input calibration method for an analog / digital converter.

【0002】[0002]

【従来の技術】機器によっては、アナログ量を適切なデ
ィジタル量に変換する場合において、アナログ入力部分
の校正が必要になる。一般に、アナログ量をディジタル
量に変換する場合、アナログ入力データを演算増幅器に
より所望の形に演算増幅し、アナログ/ディジタル変換
器(A/D変換器)に入力する。この演算増幅器は可変
抵抗器による校正作業(オフセット調整,スパン調整な
ど)が必要である。
2. Description of the Related Art Some devices require calibration of an analog input portion when converting an analog amount into an appropriate digital amount. Generally, in the case of converting an analog amount into a digital amount, analog input data is arithmetically amplified in a desired form by an operational amplifier and input to an analog / digital converter (A / D converter). This operational amplifier requires calibration work using a variable resistor (offset adjustment, span adjustment, etc.).

【0003】図5は従来のA/D変換器の入力校正方法
の一例を示すもので、演算増幅器3,4,6で構成する
電流/電圧変換回路の例である。
FIG. 5 shows an example of a conventional input calibration method for an A / D converter, which is an example of a current / voltage conversion circuit composed of operational amplifiers 3, 4, and 6.

【0004】図5の校正方法によれば、アナログ入力チ
ャンネル1に流れる電流はスパン調整用可変抵抗器2に
より電流/電圧変換される。また、スパン調整用可変抵
抗器2は電流/電圧変換率の調整(スパン調整)も兼ね
ている。電流/電圧変換されたアナログデータは演算増
幅器3および4のバッファアンプを通して演算増幅器6
で増幅され、A/D変換器7へ出力される。オフセット
調整用可変抵抗器5はアナログ入力チャンネル1に流れ
る電流が0の時にA/D変換器7の入力端子8での電圧
が0となるように調整を行う。
According to the calibration method of FIG. 5, the current flowing through the analog input channel 1 is converted into current / voltage by the span adjusting variable resistor 2. The span adjustment variable resistor 2 also serves as the adjustment of the current / voltage conversion rate (span adjustment). The current / voltage converted analog data is passed through the buffer amplifiers of the operational amplifiers 3 and 4 to the operational amplifier 6
Is amplified by and output to the A / D converter 7. The offset adjustment variable resistor 5 performs adjustment so that the voltage at the input terminal 8 of the A / D converter 7 becomes 0 when the current flowing through the analog input channel 1 is 0.

【0005】図6に図5の回路のアナログ入力チャンネ
ル1に流れる電流とA/D変換器7の入力端子8に出力
される電圧の関係を示す。図6において、直線Cはスパ
ン調整およびオフセット調整が理想的な状態となった場
合を示す。また、直線Aはオフセット調整は良いがスパ
ン調整が不良(スパン量が多い)の場合を示し、直線E
はオフセット調整は良いがスパン調整が不良(オフセッ
ト量が少ない)場合を示し、直線Bはスパン調整は良い
がオフセット調整が不良(オフセット量が多い)場合、
直線Dはスパン調整は良いがオフセット調整が不良(オ
フセット量が少ない)場合を示している。
FIG. 6 shows the relationship between the current flowing in the analog input channel 1 of the circuit of FIG. 5 and the voltage output to the input terminal 8 of the A / D converter 7. In FIG. 6, a straight line C indicates a case where the span adjustment and the offset adjustment are in the ideal state. The straight line A shows the case where the offset adjustment is good but the span adjustment is bad (the span amount is large).
Shows the case where the offset adjustment is good but the span adjustment is bad (the offset amount is small), and the straight line B shows the case where the span adjustment is good but the offset adjustment is bad (the offset amount is large).
The straight line D shows the case where the span adjustment is good but the offset adjustment is bad (the offset amount is small).

【0006】[0006]

【発明が解決しようとする課題】アナログ入力チャンネ
ルの多い機器では多数の校正点が存在するため校正作業
の繁雑化と校正品位の低下等の問題があった。また校正
が容易となる位置に可変抵抗器を配置する必要があるの
でプリント板のデザインやモジュール化を行う場合に制
約があった。
In a device having many analog input channels, since there are many calibration points, there have been problems such as complicated calibration work and deterioration of calibration quality. Further, since it is necessary to dispose the variable resistor at a position where calibration is easy, there are restrictions in designing the printed board and modularizing it.

【0007】本発明は上述の問題点に鑑みてなされたも
ので、その目的は上述の問題点を解決した高性能にして
校正が容易なA/D変換器の入力校正方法を提供するこ
とである。
The present invention has been made in view of the above problems, and an object of the present invention is to provide an input calibration method for an A / D converter which solves the above problems and has a high performance and is easy to calibrate. is there.

【0008】[0008]

【課題を解決するための手段】本発明は、上述の目的を
達成するために、A/D変換器の入力データ値と該A/
D変換器の入力データの基準値を基に補正関数を作成
し、該補正関数を基に前記A/D変換器の入力データを
校正する。
In order to achieve the above-mentioned object, the present invention provides an input data value of an A / D converter and the A / D converter.
A correction function is created based on the reference value of the input data of the D converter, and the input data of the A / D converter is calibrated based on the correction function.

【0009】[0009]

【作用】スパン調整用およびオフセット調整用の可変抵
抗器を固定抵抗に変更する必要があるが、固定抵抗とす
るとオフセットやスパンのずれが生じた場合の対応がで
きなくなる。しかし、オフセットやスパンのずれを把握
することができれば、A/D変換器後のデータをマイク
ロコンピュータで補正することが可能となる。
The variable resistors for span adjustment and offset adjustment need to be changed to fixed resistors. However, if fixed resistors are used, it becomes impossible to deal with offset and span deviations. However, if the offset and the shift of the span can be grasped, the data after the A / D converter can be corrected by the microcomputer.

【0010】[0010]

【実施例】以下に本発明の実施例を図1〜図4を参照し
ながら説明する。
Embodiments of the present invention will be described below with reference to FIGS.

【0011】図1はアナログ入力を自動的に校正するた
めのシステム構成図であって、同図において9は基準値
発生器、10はスイッチ、11はアナログ入力チャンネ
ル、12は演算増幅器、13はオフセット調整用の固定
抵抗、14はスパン調整用の固定抵抗である。15はA
/D変換器7からのディジタルデータを入力とする演算
処理部(CPU)であるマイクロコンピュータ、16は
メモリ装置、17は出力装置、18はキーボード等の入
力装置、19はインタフェースである。
FIG. 1 is a system configuration diagram for automatically calibrating an analog input. In FIG. 1, 9 is a reference value generator, 10 is a switch, 11 is an analog input channel, 12 is an operational amplifier, and 13 is A fixed resistor for offset adjustment, and a fixed resistor 14 for span adjustment. 15 is A
A microcomputer that is an arithmetic processing unit (CPU) that receives digital data from the / D converter 7, 16 is a memory device, 17 is an output device, 18 is an input device such as a keyboard, and 19 is an interface.

【0012】図1のシステムにおいて、基準値発生器9
は、校正時のみ用いるものであり、通常は基準値発生器
9を除くシステム構成でアナログ入力チャンネル11に
入力されるアナログデータを処理している機器である。
この機器の校正を行う場合は、アナログ入力チャンネル
11に基準値発生器9を接続し、さらにマイクロコンピ
ュータ15と基準値発生器9をインタフェース19で接
続する。接続完了後、入力装置17から自動校正を実行
する旨の指示を与えることにより校正が行われる。
In the system of FIG. 1, the reference value generator 9
Is used only at the time of calibration and is usually a device that processes analog data input to the analog input channel 11 with a system configuration excluding the reference value generator 9.
When calibrating this device, the reference value generator 9 is connected to the analog input channel 11, and the microcomputer 15 and the reference value generator 9 are connected by the interface 19. After the connection is completed, calibration is performed by giving an instruction from the input device 17 to execute automatic calibration.

【0013】校正はマイクロコンピュータ15がインタ
フェース19を通して基準値発生器9に指示を与え、ア
ナログ入力チャンネル11に入力する値を図3のOから
Dまでの範囲で数点与える。与えられた値は演算増幅部
12を通りA/D変換器7でディジタルデータに変換さ
れ、マイクロコンピュータ15に入力される。マイクロ
コンピュータ15は、基準値発生器9が発生した値とデ
ィジタルデータをメモリ装置16に記憶する。予定した
すべての点での測定が完了したら、マイクロコンピュー
タ15はメモリ装置16に記憶したデータを基に補正す
る関数を作成する。
For the calibration, the microcomputer 15 gives an instruction to the reference value generator 9 through the interface 19 and gives a value to be inputted to the analog input channel 11 at several points in the range from O to D in FIG. The given value passes through the operational amplifier 12 and is converted into digital data by the A / D converter 7 and input to the microcomputer 15. The microcomputer 15 stores the value generated by the reference value generator 9 and the digital data in the memory device 16. When the measurement at all the scheduled points is completed, the microcomputer 15 creates a correction function based on the data stored in the memory device 16.

【0014】スパン調整用およびオフセット調整用の可
変抵抗器を固定抵抗に変更する必要があるが、固定抵抗
とするとオフセットやスパンのずれが生じた場合の対応
ができなくなる。しかし、オフセットやスパンのずれを
把握することができれば、A/D変換器後のデータをマ
イクロコンピュータで補正することが可能となる。
It is necessary to change the variable resistors for span adjustment and offset adjustment to fixed resistors, but if fixed resistors are used, it becomes impossible to deal with offset or span deviation. However, if the offset and the shift of the span can be grasped, the data after the A / D converter can be corrected by the microcomputer.

【0015】図2は図1のシステムにおけるマイクロコ
ンピュータ15の動作フローチャートを示すもので、ま
ずステップS1で自動校正を行い、ステップS2でイン
タフェース19を介して基準値を発生する。ステップS
3でA/D変換器7からの値を読み込み、ステップS4
に進む。ステップS4では、A/D変換器7の示す値と
基準値をメモリ装置16に格納する。次にステップS5
に進み、全ての基準値を発生したか否かを判断する。全
ての基準値が発生しておれば、ステップS6に進み、補
正関数を求める。全ての補正関数が発生されていなけれ
ば、ステップS2からS4の動作を繰り返す。
FIG. 2 is a flowchart showing the operation of the microcomputer 15 in the system of FIG. 1. First, automatic calibration is performed in step S1 and a reference value is generated via the interface 19 in step S2. Step S
The value from the A / D converter 7 is read in step 3, and step S4
Proceed to. In step S4, the value indicated by the A / D converter 7 and the reference value are stored in the memory device 16. Then step S5
Then, it is determined whether all the reference values have been generated. If all the reference values have been generated, the process proceeds to step S6 and the correction function is obtained. If all the correction functions have not been generated, the operations of steps S2 to S4 are repeated.

【0016】ステップS6において補正関数が求まる
と、ステップS7に進み、補正量が規定値よりも大きい
か否かを判断する。補正量が規定値よりも大きくなけれ
ば、ステップS8に進み、補正関数をメモリ装置16に
格納する。また、ステップS7において補正量が規定値
よりも大きい場合は、ステップS10に進み補正不能と
判断する。この場合、オフセット抵抗13やスパン抵抗
14を最適な抵抗値のものに選定する。
When the correction function is obtained in step S6, the process proceeds to step S7, and it is determined whether the correction amount is larger than a specified value. If the correction amount is not larger than the specified value, the process proceeds to step S8 and the correction function is stored in the memory device 16. If the correction amount is larger than the specified value in step S7, the process proceeds to step S10 and it is determined that the correction is impossible. In this case, the offset resistance 13 and the span resistance 14 are selected to have optimum resistance values.

【0017】上記動作フローにおける補正関数の作成お
よび補正例としては図4に示すように実行される。図4
において直線L1は補正目標(y′=αx+β)を示
し、曲線L2は実測値(基準値x0からx8を入力とした
場合のA/D変換器出力)を示す。L1の補正目標値は
自由に設定でき、L2の実測値はメモリ装置16に記憶
されている。補正は区間ごとに行い、補正関数も区間ご
とに用意する。
The correction function in the above operation flow is created and an example of correction is executed as shown in FIG. Figure 4
In, the straight line L1 shows the correction target (y ′ = αx + β), and the curve L2 shows the actual measurement value (A / D converter output when the reference values x 0 to x 8 are input). The correction target value of L1 can be set freely, and the actually measured value of L2 is stored in the memory device 16. The correction is performed for each section, and the correction function is also prepared for each section.

【0018】y軸上の区間はyn−yn+1(n=0,1,
2,3,…)である。yn〜yn+1の区間の補正関数は、
補正目標をy′=αx+βとしたとき、 y′=α・{[(y−yn)・(xn+1−yn)/(yn+1−yn)]+xn}+β …(1) である。但し、yn<y<yn+1,y≠y0である。
The section on the y-axis is y n -y n + 1 (n = 0, 1,
2, 3, ...). The correction function in the interval from y n to y n + 1 is
'When the = αx + β, y' corrected target y = α · {[(y -y n) · (x n + 1 -y n) / (y n + 1 -y n)] + x n} + β ... (1) However, y n <y <y n + 1 and y ≠ y 0 .

【0019】一例として、図4のA点をA′点に補正す
る場合、A点はA/D変換器7の出力値でy=14、y
5〜y6はA点が含まれる区間で、y5=12,y6=16
とする。x5〜x6はy軸に対応するx軸上の値で、x5
=15,x6=18とし、A′点は補正後のA点の値
で、y′=A′とする。この場合、y′=αx+βは補
正目標の関数で、α=0.5,β=0とすると、y5
6の区間の補正関数は、 y′=α・{[(y−y5)・(x6−x5)/(y6−y5)]+β…(2) となり、上記の各値を代入すると、 y′={0.5×[(14−12)×(18−15)/(16−12)]+1 5}+0=0.5×[(6/4)×15]=8.25=A′…(3) となる。よってA点=14の補正後の値はA′点=8.
25となる。
As an example, when point A in FIG. 4 is corrected to point A ', point A is the output value of the A / D converter 7 and y = 14, y.
5 to y 6 are sections including point A, y 5 = 12, y 6 = 16
And x 5 to x 6 are values on the x axis corresponding to the y axis, and x 5
= 15, x 6 = 18, point A ′ is the corrected value of point A, and y ′ = A ′. In this case, y ′ = αx + β is a function of the correction target, and if α = 0.5 and β = 0, then y 5 ~
The correction function in the interval of y 6 is y ′ = α · {[(y−y 5 ) · (x 6 −x 5 ) / (y 6 −y 5 )] + β (2), and the above values , Y ′ = {0.5 × [(14-12) × (18-15) / (16-12)] + 1 5} + 0 = 0.5 × [(6/4) × 15] = 8.25 = A '... (3) Therefore, the corrected value of A point = 14 is A ′ point = 8.
25.

【0020】[0020]

【発明の効果】本発明は上述の如くであって、校正が自
動的に行われるため、多数の校正点を有する機器におい
ても校正作業は基準値発生器の接続のみとなるので、校
正作業時間の短縮が図れる。
The present invention is as described above, and since the calibration is automatically performed, even in an apparatus having a large number of calibration points, the calibration work can be performed only by connecting the reference value generator. Can be shortened.

【0021】また、校正作業に関する知識も不要となる
ので校正要員の教育が不要となる。さらに、校正用の可
変抵抗を省略できるので機器の小型化,モジュール化を
行いやすいと共に、メンテナンス時も基準発生器を接続
するだけで済み、保守が簡単である。
Further, since the knowledge about the calibration work is not required, the training of the calibration staff is also unnecessary. Further, since the variable resistor for calibration can be omitted, it is easy to downsize and modularize the equipment, and at the time of maintenance, it is only necessary to connect the reference generator and maintenance is easy.

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

【図1】本発明の実施例によるアナログ/ディジタル変
換器の入力校正方法を実行するためのシステム図。
FIG. 1 is a system diagram for performing an input calibration method for an analog / digital converter according to an embodiment of the present invention.

【図2】図1のシステムの動作フローチャート。2 is an operation flowchart of the system of FIG.

【図3】A/D変換器の入出力特性図。FIG. 3 is an input / output characteristic diagram of an A / D converter.

【図4】A/D変換器の入力データと出力データの校正
特性図。
FIG. 4 is a calibration characteristic diagram of input data and output data of the A / D converter.

【図5】従来のA/D変換器の入力校正方法を示すシス
テムの回路図。
FIG. 5 is a circuit diagram of a system showing an input calibration method for a conventional A / D converter.

【図6】図5のシステムの特性図。FIG. 6 is a characteristic diagram of the system of FIG.

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

7…A/D変換器、9…基準値発生器、10…スイッ
チ、11…アナログ入力チャンネル、12…演算増幅
部、13…オフセット用固定抵抗、14…スパン調整用
固定抵抗、15…マイクロコンピュータ、16…メモリ
装置、17…出力装置、18…入出力装置、19…イン
タフェース。
7 ... A / D converter, 9 ... Reference value generator, 10 ... Switch, 11 ... Analog input channel, 12 ... Operation amplification part, 13 ... Fixed resistor for offset, 14 ... Fixed resistor for span adjustment, 15 ... Microcomputer , 16 ... Memory device, 17 ... Output device, 18 ... Input / output device, 19 ... Interface.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 A/D変換器の入力データ値と該A/D
変換器の入力データの基準値を基に補正関数を作成し、
該補正関数を基に前記A/D変換器の入力データを校正
することを特徴とするアナログ/ディジタル変換器の入
力校正方法。
1. An input data value of an A / D converter and the A / D
Create a correction function based on the reference value of the input data of the converter,
An input calibration method for an analog / digital converter, characterized in that the input data of the A / D converter is calibrated based on the correction function.
JP14223191A 1991-06-14 1991-06-14 Input correcting method for analog/digital converter Pending JPH0613899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14223191A JPH0613899A (en) 1991-06-14 1991-06-14 Input correcting method for analog/digital converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14223191A JPH0613899A (en) 1991-06-14 1991-06-14 Input correcting method for analog/digital converter

Publications (1)

Publication Number Publication Date
JPH0613899A true JPH0613899A (en) 1994-01-21

Family

ID=15310477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14223191A Pending JPH0613899A (en) 1991-06-14 1991-06-14 Input correcting method for analog/digital converter

Country Status (1)

Country Link
JP (1) JPH0613899A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4851147A (en) * 1987-02-26 1989-07-25 Finetex, Inc. Transparent combination soap-synthetic detergent bar
JP2007198958A (en) * 2006-01-27 2007-08-09 Mitsubishi Electric Corp Circuit for calibrating adjusting variable resistor of radar system
JP2010141807A (en) * 2008-12-15 2010-06-24 Mitsubishi Electric Corp Electronic control apparatus with analog input signal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4851147A (en) * 1987-02-26 1989-07-25 Finetex, Inc. Transparent combination soap-synthetic detergent bar
JP2007198958A (en) * 2006-01-27 2007-08-09 Mitsubishi Electric Corp Circuit for calibrating adjusting variable resistor of radar system
JP2010141807A (en) * 2008-12-15 2010-06-24 Mitsubishi Electric Corp Electronic control apparatus with analog input signal
JP4592796B2 (en) * 2008-12-15 2010-12-08 三菱電機株式会社 Electronic control unit with analog input signal

Similar Documents

Publication Publication Date Title
JPH10145231A (en) Data correcting method for a/d conversion device and d/a conversion device
JP2000295102A (en) Digital calibration method and system for a/d converter or d/a converter
JPH0613899A (en) Input correcting method for analog/digital converter
US5072358A (en) Process controller
JPH1144736A (en) Calibration device for programmable comparator
JP2001174489A (en) Digital voltmeter
JPH08101074A (en) Temperature measuring circuit
JPH08122166A (en) Method and instrument for measuring temperature
JP2003042870A (en) Temperature characteristics correcting circuit apparatus for sensor and sensor temperature characteristics correcting method
JP2940321B2 (en) Temperature compensation device for operational amplifier
JP2624920B2 (en) Vertical amplifier calibration system for multi-phenomenon oscilloscope
JPH05322941A (en) Adjusting method for ac measuring apparatus
JPH0682267A (en) Sensor with temperature drift compensation function
JP2003273673A (en) Offset control device for variable gain amplifier
JPH0915272A (en) Voltage measuring circuit
JPS63121320A (en) Da converter with error correcting circuit
JP2000083318A (en) Digital relay
JP2001133488A (en) Ac voltage-measuring device and method
JP2626100B2 (en) Multi-point measuring device
KR100211057B1 (en) Temperature compensating circuit for satellite repeater
JPH10253795A (en) Circuit for adjusting output of nuclear instrumentation device
JPH0868696A (en) Temperature measuring apparatus
JP2004320553A (en) Compensating circuit
JPH08330958A (en) Analog output board and method for conversion table generation
JPH088743A (en) Analog/digital signal converter