JP5425288B2 - Analog unit - Google Patents
Analog unit Download PDFInfo
- Publication number
- JP5425288B2 JP5425288B2 JP2012235063A JP2012235063A JP5425288B2 JP 5425288 B2 JP5425288 B2 JP 5425288B2 JP 2012235063 A JP2012235063 A JP 2012235063A JP 2012235063 A JP2012235063 A JP 2012235063A JP 5425288 B2 JP5425288 B2 JP 5425288B2
- Authority
- JP
- Japan
- Prior art keywords
- value
- user
- unit
- input
- 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.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 claims description 154
- 238000004364 calculation method Methods 0.000 description 40
- 238000005259 measurement Methods 0.000 description 36
- 238000000034 method Methods 0.000 description 33
- 238000010586 diagram Methods 0.000 description 26
- 238000004519 manufacturing process Methods 0.000 description 7
- 230000007423 decrease Effects 0.000 description 1
Images
Landscapes
- Analogue/Digital Conversion (AREA)
Description
本発明はアナログユニットに関し、特に、アナログユニットの出力値の校正方法に関する。 The present invention relates to an analog unit, and more particularly to a method for calibrating an output value of an analog unit.
アナログユニットでは、チャンネルごとの変換特性のバラツキを補正するため、アナログユニットの出力値の校正が行われている。このアナログユニットの出力値の校正では、オフセット値およびゲイン値の2点分の計測を行い、この2点間を直線で近似することが一般的に行われている。 In the analog unit, the output value of the analog unit is calibrated in order to correct variation in conversion characteristics for each channel. In calibration of the output value of the analog unit, it is generally performed to measure two points of an offset value and a gain value and approximate the two points with a straight line.
また、特許文献1には、A/D変換時の非直線性を補償するために、A/D変換装置への入力電圧範囲Vmin〜Vmaxを、中心電圧Vcを境界にして領域1と領域2に2等分割し、領域1においては近似直線L11に、領域2においては近似直線L12にそれぞれ近似する方法が開示されている。 Further, in Patent Document 1, in order to compensate for non-linearity at the time of A / D conversion, the input voltage range Vmin to Vmax to the A / D converter is divided into a region 1 and a region 2 with the center voltage Vc as a boundary. And a method of approximating the approximate straight line L11 in the region 1 and approximating the approximate straight line L12 in the region 2 is disclosed.
また、特許文献2には、A/D変換ユニットのそのチャンネルにあったユーザオフセット値を、継承元の工場オフセット値、工場ゲイン値およびユーザオフセット値、不揮発性メモリに格納されている工場オフセット値および工場ゲイン値から補正算出することで、オフセット値およびゲイン値の計測を行うことなく、アナログユニットの出力値を校正する方法が開示されている。 Further, Patent Document 2 discloses a user offset value corresponding to the channel of the A / D conversion unit, an inheritance factory offset value, a factory gain value and a user offset value, and a factory offset value stored in a nonvolatile memory. In addition, there is disclosed a method of calibrating the output value of the analog unit by performing correction calculation from the factory gain value without measuring the offset value and the gain value.
また、特許文献3には、基準アナログ信号をA/D変換部により変換された基準ディジタル値を用いて、出力すべきディジタル値に対応したA/D変換値をディジタル値毎に予め算出し、このA/D変換値と、A/D変換部によりアナログ信号から変換された生ディジタル信号と比較する方法が開示されている。 In Patent Document 3, an A / D conversion value corresponding to a digital value to be output is calculated in advance for each digital value using a reference digital value obtained by converting a reference analog signal by an A / D conversion unit, A method of comparing the A / D conversion value with a raw digital signal converted from an analog signal by an A / D conversion unit is disclosed.
しかしながら、オフセット値およびゲイン値の2点間を直線で近似する方法では、オフセット値およびゲイン値の2点分を計測する必要があり、工数がかかるという問題があった。 However, the method of approximating the two points of the offset value and the gain value with a straight line has a problem in that it is necessary to measure the two points of the offset value and the gain value, which requires man-hours.
また、特許文献1に開示された方法では、領域1においては近似直線L11に、領域2においては近似直線L12にそれぞれ近似するため、オフセット値およびゲイン値の3点分を計測する必要があり、工数がかかるだけでなく、校正精度のバラツキが大きいという問題があった。 Further, in the method disclosed in Patent Document 1, it is necessary to measure three points of the offset value and the gain value in order to approximate the approximate line L11 in the region 1 and the approximate straight line L12 in the region 2, There is a problem that not only man-hours are required, but also variations in calibration accuracy are large.
また、特許文献2に開示された方法では、アナログ信号とADCコードとの関係が直線で表される場合には、高い校正精度が得られるが、アナログ信号とADCコードとの関係が直線で表わすことができない場合には、校正精度が低下するという問題があった。 Further, in the method disclosed in Patent Document 2, when the relationship between the analog signal and the ADC code is represented by a straight line, high calibration accuracy can be obtained, but the relationship between the analog signal and the ADC code is represented by a straight line. If this is not possible, there is a problem that the calibration accuracy decreases.
また、特許文献3に開示された方法では、温度ドリフトなどに対する出力値の補正方法として有効であるが、A/D変換値をアドレスがディジタル値に相当する形式で格納したデータテーブルや、A/D変換部によりアナログ信号から変換された生ディジタル信号とデータテーブルにおけるA/D変換値とを比較する比較回路が必要となり、コストアップを招くという問題があった。 In addition, the method disclosed in Patent Document 3 is effective as a method for correcting an output value against temperature drift or the like, but a data table in which A / D conversion values are stored in a format in which addresses correspond to digital values, or A / D A comparison circuit for comparing the raw digital signal converted from the analog signal by the D conversion unit with the A / D conversion value in the data table is required, resulting in an increase in cost.
本発明は、上記に鑑みてなされたものであって、アナログ信号とADCコードとの関係が非直線性を示す場合においても、測定にかかる工数の増大を抑制しつつ、出力値を校正することが可能なアナログユニットを得ることを第1の目的とする。 The present invention has been made in view of the above, and calibrates an output value while suppressing an increase in man-hours required for measurement even when the relationship between an analog signal and an ADC code exhibits non-linearity. It is a first object to obtain an analog unit capable of
本発明は、アナログ信号とADCコードとの関係が非直線性を示す場合においても、校正精度のバラツキを低減することが可能なアナログユニットを得ることを第2の目的とする。 A second object of the present invention is to obtain an analog unit capable of reducing variations in calibration accuracy even when the relationship between an analog signal and an ADC code exhibits nonlinearity.
本発明は、コストアップを抑制しつつ、温度ドリフトに対する出力値を補正することが可能なアナログユニットを得ることを第3の目的とする。 A third object of the present invention is to obtain an analog unit capable of correcting an output value against temperature drift while suppressing an increase in cost.
上述した課題を解決し、目的を達成するために、本発明のアナログユニットは、入力値を出力値に変換する変換回路と、前記変換回路の温度が初期状態から定常状態に至る間の2つの時点における前記入力値と出力値との関係を示す設定値を記憶する記憶部と、前記記憶部に記憶された設定値に基づいて、前記変換回路の出力値を校正する校正部とを備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the analog unit of the present invention includes a conversion circuit that converts an input value into an output value, and two conversion circuits between the initial state and the steady state. A storage unit that stores a setting value indicating a relationship between the input value and the output value at a time point; and a calibration unit that calibrates the output value of the conversion circuit based on the setting value stored in the storage unit. It is characterized by.
この発明によれば、コストアップを抑制しつつ、温度ドリフトに対する出力値を補正することが可能なアナログユニットを得ることが可能という効果を奏する。 According to the present invention, it is possible to obtain an analog unit capable of correcting an output value with respect to a temperature drift while suppressing an increase in cost.
以下に、本発明に係るアナログユニットの実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。また、アナログユニットには、A/D変換ユニットとD/A変換ユニットとがあり、以下の説明では、主にA/D変換ユニットを例にとって説明するが、A/D変換ユニットに限定されるものではない。 Embodiments of an analog unit according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments. The analog unit includes an A / D conversion unit and a D / A conversion unit. In the following description, the A / D conversion unit will be mainly described as an example, but the analog unit is limited to the A / D conversion unit. It is not a thing.
実施の形態1.
図1は、本発明に係るアナログユニットの実施の形態1の概略構成を示すブロック図である。図1において、A/D変換ユニット11には、A/D変換回路12、スケーリング部13、不揮発性メモリ14、ユーザ設定値計算部15および一時記憶メモリ16が設けられている。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a schematic configuration of an analog unit according to Embodiment 1 of the present invention. In FIG. 1, the A /
ここで、A/D変換回路12は、アナログ入力値SaをADCコード(ディジタル変換値)Cdに変換することができる。なお、1つのA/D変換ユニット11には、例えば、4〜8チャンネル分のA/D変換回路12を搭載することができる。チャンネルとは、1つのA/D変換ユニット11中にある複数のA/D変換回路12のうちの1機能単位のことを言う。
Here, the A /
スケーリング部13は、ADCコードCdをユーザレンジに対応したディジタル出力値Doに圧縮伸長することができる。また、スケーリング部13では、チャンネルごとにA/D変換特性のバラツキを補償するため、A/D変換ユニット11の校正を行うことができる。なお、A/D変換ユニット11の校正とは、電圧または電流などのアナログ入力値Saが入力された時に、所望のディジタル出力値Doが出力されるように調整することを言う。また、スケーリング部13は、A/D変換ユニット11の校正を行う場合、不揮発性メモリ14に記憶されているユーザオフセット値Uoおよびユーザゲイン値Ugを参照することができる。
The
不揮発性メモリ14は、2点分の工場設定値および2点分のユーザ設定値をユーザレンジR1〜Rmごとに記憶することができる。なお、工場設定値は、アナログ入力値SaとADCコードCd(すなわち、校正前のディジタル出力値Do)との関係を示すことができる。また、2点分の工場設定値としては、工場オフセット値Foおよび工場ゲイン値Fgを与えることができる。
The
また、ユーザ設定値は、アナログ入力値Saとディジタル出力値Doとの関係を示すことができる。また、2点分のユーザ設定値としては、ユーザオフセット値Uoおよびユーザゲイン値Ugを与えることができる。 The user set value can indicate the relationship between the analog input value Sa and the digital output value Do. As the user setting values for two points, a user offset value Uo and a user gain value Ug can be given.
ここで、工場オフセット値Foおよび工場ゲイン値Fgは、A/D変換ユニット11の生産時に工場で設定することができる。この工場オフセット値Foは、スケーリングする際に用いる仕様上最も低いオフセット電圧を生産工場で印加した際に出力するADCコードである。また、工場ゲイン値Fgは、スケーリングする際に用いる仕様上最も高いゲイン電圧を生産工場で印加した際に出力するADCコードである。
Here, the factory offset value Fo and the factory gain value Fg can be set at the factory when the A /
また、ユーザオフセット値Uoおよびユーザゲイン値Ugは、A/D変換ユニット11をユーザが使用する現場で設定することができる。このユーザオフセット値Uoは、スケーリングする際に用いる仕様上最も低いオフセット電圧を使用現場で印加した際に出力するADCコードである。ユーザゲイン値Ugは、スケーリングする際に用いる仕様上最も高いゲイン電圧を使用現場で印加した際に出力するADCコードである。
Further, the user offset value Uo and the user gain value Ug can be set at the site where the user uses the A /
また、オフセット電圧とは、A/D変換ユニット11の特定のチャンネルにおいて、アナログ入力値Saとして入力される電圧の一番低い値で、その入力電圧値に対応してディジタル出力値Doとして最低の値、例えば0〜4000にスケーリングされる場合にディジタル出力値Doとして0が出力される入力電圧のことである。ゲイン電圧とは、A/D変換ユニット11の特定のチャンネルにおいて、アナログ入力値Saとして入力される一番高い電圧の値で、その入力電圧値に対応してディジタル出力値Doとして最高の値、例えば0〜4000にスケーリングされる場合にディジタル出力値Doとして4000が出力される入力電圧のことである。すなわち、アナログ入力値Saとして入力される電圧の範囲が0〜5Vの場合、オフセット電圧は0V、ゲイン電圧は5Vとなる。
The offset voltage is the lowest value of the voltage input as the analog input value Sa in a specific channel of the A /
ユーザ設定値計算部15は、1点分のユーザ計測値uP1、工場オフセット値Foおよび工場ゲイン値Fgに基づいて、ユーザオフセット値Uoおよびユーザゲイン値Ugを計算し、不揮発性メモリ14に記憶させることができる。なお、ユーザ計測値uP1は、A/D変換ユニット11をユーザが使用する現場で計測することができる。また、ユーザ計測値uP1は、アナログ入力値SaとADCコードCd(すなわち、校正前のディジタル出力値Do)との関係を示すことができる。
The user set value calculation unit 15 calculates the user offset value Uo and the user gain value Ug based on the user measurement value u P1 for one point, the factory offset value Fo, and the factory gain value Fg, and stores them in the
一時記憶メモリ16は、A/D変換ユニット11をユーザが使用する現場で計測された1点分のユーザ計測値uP1を記憶することができる。なお、スケーリング部13、不揮発性メモリ14、ユーザ設定値計算部15および一時記憶メモリ16は、マイクロコンピュータにて実現することができる。
そして、A/D変換ユニット11の生産工場において、アナログ入力値SaをA/D変換回路12に入力した時のADCコードCdを計測することで、工場オフセット値Foおよび工場ゲイン値Fgが測定され、不揮発性メモリ14に記憶される。例えば、A/D変換ユニット11に0V〜10Vの電圧がアナログ入力値Saとして入力されるものとすると、0Vの電圧がアナログ入力値Saとして入力された時のADCコードCdが工場オフセット値Foとして不揮発性メモリ14に記憶されるとともに、10Vの電圧がアナログ入力値Saとして入力された時のADCコードCdが工場ゲイン値Fgとして不揮発性メモリ14に記憶される。
Then, in the production factory of the A /
次に、A/D変換ユニット11の使用現場において、アナログ入力値SaをA/D変換回路12に入力した時のADCコードCdを計測することで、ユーザ計測値uP1が測定され、一時記憶メモリ16に記憶される。例えば、5Vの電圧がアナログ入力値Saとして入力された時のADCコードCdがユーザ計測値uP1として一時記憶メモリ16に記憶される。
Next, at the site where the A /
そして、ユーザ計測値uP1が一時記憶メモリ16に記憶されると、ユーザ設定値計算部15において、ユーザ計測値uP1、工場オフセット値Foおよび工場ゲイン値Fgに基づいて、ユーザオフセット値Uoおよびユーザゲイン値Ugが計算され、不揮発性メモリ14に記憶される。
When the user measurement value u P1 is stored in the
そして、アナログ入力値SaがA/D変換回路12に入力されると、ADCコードCdに変換され、スケーリング部13に入力される。そして、ADCコードCdがスケーリング部13に入力されると、不揮発性メモリ14に記憶されたユーザオフセット値Uoおよびユーザゲイン値Ugが参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
When the analog input value Sa is input to the A /
例えば、アナログ入力値Saが1〜5Vの電圧でディジタル出力値Doを0〜4000の範囲で出力させるものとすると、オフセット電圧が1Vの時のADCコードCdと、ゲイン電圧が5Vの時のADCコードCdと、現在入力されている電圧のADCコードCdとから、現在入力されている電圧に相当するディジタル出力値Doを出力させることができる。 For example, if the analog input value Sa is 1 to 5 V and the digital output value Do is output in the range of 0 to 4000, the ADC code Cd when the offset voltage is 1 V and the ADC when the gain voltage is 5 V are used. A digital output value Do corresponding to the currently input voltage can be output from the code Cd and the ADC code Cd of the currently input voltage.
ここで、ADCコードCdをスケーリングして出力されるディジタル出力値Doの最低値をSo、最大値をSgとすると、ディジタル出力値Doは、以下の(1)式で求めることができる。
Do=(Cd−Uo)/(Ug−Uo)*Sg+So ・・・(1)
Here, if the minimum value of the digital output value Do output by scaling the ADC code Cd is So and the maximum value is Sg, the digital output value Do can be obtained by the following equation (1).
Do = (Cd−Uo) / (Ug−Uo) * Sg + So (1)
このスケーリング部13によるスケーリン処理によって、個々のA/D変換回路12が持つ特性上のバラツキを吸収させることができる。例えば、0Vの電圧がA/D変換回路12に入力された時にADCコードCd=100が出力され、10Vの電圧がA/D変換回路12に入力された時にADCコードCd=8000が出力されるチャンネルAと、0Vの電圧がA/D変換回路12に入力された時にADCコードCd=105が出力され、10Vの電圧がA/D変換回路12に入力された時にADCコードCd=8020が出力されるチャンネルBがあるものとする。この場合、チャンネルAのユーザオフセット値Uoを100、ユーザゲイン値Ugを8000とし、チャンネルBのユーザオフセット値Uoを105、ユーザゲイン値Ugを8020として、0〜4000のスケーリングを施すことにより、どちらのチャンネルA、Bでも、0Vの電圧がA/D変換回路12に入力されると、ディジタル出力値Do=0を出力させ、10Vの電圧がA/D変換回路12に入力されると、ディジタル出力値Do=4000を出力させることができる。
Variations in characteristics of individual A /
これにより、A/D変換ユニット11の使用現場において、1点分のユーザ計測値uP1を計測することで、A/D変換ユニット11を校正することができ、アナログ入力値SaとADCコードCdとの関係が非直線性を示す場合においても、測定にかかる工数の増大を抑制しつつ、A/D変換ユニット11の変換精度を向上させることが可能となる。
Thereby, the A /
図2は、図1のアナログユニットの校正方法を示すフローチャートである。図2において、アナログユニット(図1の例では、A/D変換ユニット11)の使用現場において、ユーザは、アナログユニットの1点校正モード移行を指示する(ステップS1)。
FIG. 2 is a flowchart showing a method for calibrating the analog unit of FIG. In FIG. 2, at the site where the analog unit (A /
次に、ユーザは、アナログユニットのアナログ入力値Saに対応するディジタル出力値Doを設定する(ステップS2)。例えば、ディジタル出力値Doを0〜4000のスケールのうち2000に設定することができる。 Next, the user sets a digital output value Do corresponding to the analog input value Sa of the analog unit (step S2). For example, the digital output value Do can be set to 2000 out of a scale of 0 to 4000.
次に、ユーザは、アナログユニットのアナログ入力値Saを設定する(ステップS3)。なお、アナログ入力値Saは、温度センサなどの各種センサから出力される値を用いることができ、電圧または電流のいずれでもよい。 Next, the user sets an analog input value Sa of the analog unit (step S3). The analog input value Sa may be a value output from various sensors such as a temperature sensor, and may be either voltage or current.
次に、ユーザは、1点校正の設定が完了したことをアナログユニットに指示する(ステップS4)。 Next, the user instructs the analog unit that the one-point calibration setting has been completed (step S4).
次に、ユーザ設定値計算部15は、不揮発性メモリ14に記憶された工場オフセット値Foおよび工場ゲイン値Fgを参照しつつ、ユーザにて設定されたアナログ入力値Sa、ディジタル出力値Doに基づいて、ユーザオフセット値Uoおよびユーザゲイン値Ugを計算する(ステップS5)。
Next, the user set value calculation unit 15 refers to the factory offset value Fo and the factory gain value Fg stored in the
次に、ユーザ設定値計算部15は、ユーザオフセット値Uoおよびユーザゲイン値Ugを不揮発性メモリ14に記憶させる(ステップS6)。 Next, the user set value calculation unit 15 stores the user offset value Uo and the user gain value Ug in the nonvolatile memory 14 (step S6).
次に、アナログユニットは、ユーザオフセット値Uoおよびユーザゲイン値Ugの設定が完了したことをユーザに知らせる(ステップS7)。 Next, the analog unit notifies the user that the setting of the user offset value Uo and the user gain value Ug has been completed (step S7).
次に、ユーザは、ユーザオフセット値Uoおよびユーザゲイン値Ugの設定の完了を確認し、別のチャンネルの設定の実施をアナログユニットに指示する(ステップS8)。 Next, the user confirms the completion of the setting of the user offset value Uo and the user gain value Ug, and instructs the analog unit to set another channel (step S8).
実施の形態2.
図3は、本発明に係るアナログユニットの実施の形態2の校正方法を示す図である。図3において、ADCコードCdの出力特性が曲線であるものとする。
Embodiment 2. FIG.
FIG. 3 is a diagram showing a calibration method according to the second embodiment of the analog unit according to the present invention. In FIG. 3, it is assumed that the output characteristic of the ADC code Cd is a curve.
そして、A/D変換ユニット11の生産工場において、オフセット電圧VminをA/D変換回路12に入力した時のADCコードDminが工場オフセット値Foとして計測され、ゲイン電圧VmaxをA/D変換回路12に入力した時のADCコードDmaxが工場ゲイン値Fgとして計測される。
Then, in the production factory of the A /
また、A/D変換ユニット11の使用現場において、入力電圧VcをA/D変換回路12に入力した時のADCコードDcがユーザ計測値uP1として計測され、図1の一時記憶メモリ16に記憶される。
Further, in the site of use of the A /
そして、ユーザ計測値uP1が一時記憶メモリ16に記憶されると、工場オフセット値Fo、工場ゲイン値Fgおよびユーザ計測値uP1との残差の2乗和が最小になる直線L2がユーザ設定値計算部15にて算出される。そして、ユーザオフセット値Uoおよびユーザゲイン値Ugが直線L2上に設定され、不揮発性メモリ14に記憶される。
When the user measured value u P1 is stored in the
これにより、A/D変換ユニット11の使用現場において、1点分のユーザ計測値uP1を計測することで、レンジ範囲内の全体に対して誤差幅を均等化することができ、測定にかかる工数の増大を抑制しつつ、A/D変換ユニット11の直線性の基準を緩和させることが可能となる。
Thus, in the site of use of the A /
実施の形態3.
図4は、本発明に係るアナログユニットの実施の形態3の校正方法を示す図である。図4において、ADCコードCdの出力特性が曲線であるものとする。
Embodiment 3 FIG.
FIG. 4 is a diagram showing a calibration method of Embodiment 3 of the analog unit according to the present invention. In FIG. 4, it is assumed that the output characteristic of the ADC code Cd is a curve.
そして、A/D変換ユニット11の生産工場において、オフセット電圧VminをA/D変換回路12に入力した時のADCコードDminが工場オフセット値Foとして計測され、ゲイン電圧VmaxをA/D変換回路12に入力した時のADCコードDmaxが工場ゲイン値Fgとして計測される。
Then, in the production factory of the A /
また、A/D変換ユニット11の使用現場において、入力電圧VcをA/D変換回路12に入力した時のADCコードDcがユーザ計測値uP1として計測され、図1の一時記憶メモリ16に記憶される。
Further, in the site of use of the A /
そして、ユーザ計測値uP1が一時記憶メモリ16に記憶されると、工場オフセット値Foおよび工場ゲイン値Fgを通る直線L1がユーザ設定値計算部15にて算出される。
When the user measurement value u P1 is stored in the
そして、工場オフセット値Foおよび工場ゲイン値Fgを通る直線L1が算出されると、直線L1に平行でユーザ計測値uP1を通る直線L3がユーザ設定値計算部15にて算出される。そして、ユーザオフセット値Uoおよびユーザゲイン値Ugが直線L3上に設定され、不揮発性メモリ14に記憶される。
When the straight line L1 passing through the factory offset value Fo and factory gain value Fg is computed, the line L3 passing through the user measured value u P1 parallel to the line L1 is calculated by the user set value calculator 15. Then, the user offset value Uo and the user gain value Ug are set on the straight line L3 and stored in the
これにより、A/D変換ユニット11の使用現場において、1点分のユーザ計測値uP1を計測することで、ユーザ計測値uP1をディジタル出力値Doと一致させることができ、測定にかかる工数の増大を抑制しつつ、ユーザにて指定されたエリア付近の変換精度を高めることが可能となる。
As a result, by measuring the user measurement value u P1 for one point at the site where the A /
実施の形態4.
図5は、本発明に係るアナログユニットの実施の形態4の概略構成を示すブロック図である。図5において、A/D変換ユニット21には、図1の不揮発性メモリ14、ユーザ設定値計算部15および一時記憶メモリ16の代わりに不揮発性メモリ24、ユーザ設定値計算部25および一時記憶メモリ26が設けられている。
Embodiment 4 FIG.
FIG. 5 is a block diagram showing a schematic configuration of an analog unit according to Embodiment 4 of the present invention. 5, the A /
ここで、不揮発性メモリ24は、2点分の工場設定値および2点分のユーザ設定値をユーザレンジR1〜Rmごとに記憶することができる。なお、2点分の工場設定値としては、工場オフセット値Foおよび工場ゲイン値Fgを与えることができる。また、2点分のユーザ設定値としては、ユーザオフセット値Uoおよびユーザゲイン値Ugを与えることができる。
Here, the
ユーザ設定値計算部25は、3点以上のユーザ計測値uP1〜uPn、工場オフセット値Foおよび工場ゲイン値Fgに基づいて、ユーザオフセット値Uoおよびユーザゲイン値Ugを計算し、不揮発性メモリ24に記憶させることができる。なお、ユーザ計測値uP1〜uPnは、A/D変換ユニット21をユーザが使用する現場で計測することができる。また、ユーザ計測値uP1〜uPnは、アナログ入力値SaとADCコードCd(すなわち、校正前のディジタル出力値Do)との関係を示すことができる。
The user set
一時記憶メモリ26は、A/D変換ユニット21をユーザが使用する現場で計測された3点以上のユーザ計測値uP1〜uPnを記憶することができる。
The
そして、A/D変換ユニット21の使用現場において、アナログ入力値SaをA/D変換回路12に入力した時のADCコードCdを計測することで、ユーザ計測値uP1〜uPnが測定され、一時記憶メモリ26に記憶される。
Then, at the site where the A /
そして、ユーザ計測値uP1〜uPnが一時記憶メモリ26に記憶されると、ユーザ設定値計算部25において、ユーザ計測値uP1〜uPn、工場オフセット値Foおよび工場ゲイン値Fgに基づいて、ユーザオフセット値Uoおよびユーザゲイン値Ugが計算され、不揮発性メモリ24に記憶される。
Then, when the user measurement values u P1 to u Pn are stored in the
そして、アナログ入力値SaがA/D変換回路12に入力されると、ADCコードCdに変換され、スケーリング部13に入力される。そして、ADCコードCdがスケーリング部13に入力されると、不揮発性メモリ24に記憶されたユーザオフセット値Uoおよびユーザゲイン値Ugが参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
When the analog input value Sa is input to the A /
これにより、A/D変換ユニット21の使用現場において、3点以上のユーザ計測値uP1〜uPnを計測することで、A/D変換ユニット21を校正することができ、アナログ入力値SaとADCコードCdとの関係が非直線性を示す場合においても、校正精度のバラツキを低減することが可能となる。
Thereby, the A /
実施の形態5.
図6は、本発明に係るアナログユニットの実施の形態5の校正方法を示す図である。図6において、ADCコードCdの出力特性が曲線であるものとする。
Embodiment 5 FIG.
FIG. 6 is a diagram showing a calibration method of Embodiment 5 of the analog unit according to the present invention. In FIG. 6, it is assumed that the output characteristic of the ADC code Cd is a curve.
そして、A/D変換ユニット21の生産工場において、オフセット電圧VminをA/D変換回路12に入力した時のADCコードDminが工場オフセット値Foとして計測され、ゲイン電圧VmaxをA/D変換回路12に入力した時のADCコードDmaxが工場ゲイン値Fgとして計測される。
Then, in the production factory of the A /
また、A/D変換ユニット21の使用現場において、入力電圧Vc1をA/D変換回路12に入力した時のADCコードDc1がユーザ計測値uP3として計測され、図5の一時記憶メモリ26に記憶される。また、A/D変換ユニット21の使用現場において、入力電圧Vc2をA/D変換回路12に入力した時のADCコードDc2がユーザ計測値uP4として計測され、図5の一時記憶メモリ26に記憶される。さらに、A/D変換ユニット21の使用現場において、入力電圧Vc3をA/D変換回路12に入力した時のADCコードDc3がユーザ計測値uP5として計測され、図5の一時記憶メモリ26に記憶される。
Further, in the site of use of the A /
そして、ユーザ計測値uP3〜uP5が一時記憶メモリ26に記憶されると、工場オフセット値Fo、工場ゲイン値Fgおよびユーザ計測値uP3〜uP5との残差の2乗和が最小になる直線L4がユーザ設定値計算部25にて算出される。そして、ユーザオフセット値Uoおよびユーザゲイン値Ugが直線L4上に設定され、不揮発性メモリ24に記憶される。
When the user measurement values u P3 to u P5 are stored in the
これにより、A/D変換ユニット21の使用現場において、3点以上のユーザ計測値uP3〜uP5を計測することで、レンジ範囲全体に対して誤差幅を小さくすることができ、アナログ入力値SaとADCコードCdとの関係が非直線性を示す場合においても、A/D変換ユニット21のレンジ範囲全体の変換精度を一定の基準に保つことができる。
Accordingly, by measuring three or more user measurement values u P3 to u P5 at the site where the A /
なお、図6の例では、工場オフセット値Fo、工場ゲイン値Fgおよび3点分のユーザ計測値uP3〜uP5との残差の2乗和が最小になる直線L4を求める方法について説明したが、工場オフセット値Fo、工場ゲイン値Fgおよび4点以上のユーザ計測値との残差の2乗和が最小になる直線を求めるようにしてもよい。 In the example of FIG. 6, the method for obtaining the straight line L4 that minimizes the sum of squares of the factory offset value Fo, the factory gain value Fg, and the user measurement values u P3 to u P5 for three points has been described. However, a straight line that minimizes the sum of squares of the residuals of the factory offset value Fo, the factory gain value Fg, and four or more user measurement values may be obtained.
実施の形態6.
図7は、本発明に係るアナログユニットの実施の形態6の校正方法を示す図である。図7において、ADCコードCdの出力特性が曲線であるものとする。
Embodiment 6 FIG.
FIG. 7 is a diagram showing a calibration method of an analog unit according to the sixth embodiment of the present invention. In FIG. 7, it is assumed that the output characteristic of the ADC code Cd is a curve.
そして、A/D変換ユニット21の生産工場において、オフセット電圧VminをA/D変換回路12に入力した時のADCコードDminが工場オフセット値Foとして計測され、ゲイン電圧VmaxをA/D変換回路12に入力した時のADCコードDmaxが工場ゲイン値Fgとして計測される。
Then, in the production factory of the A /
また、A/D変換ユニット21の使用現場において、入力電圧Vc6をA/D変換回路12に入力した時のADCコードDc6がユーザ計測値uP6として計測され、図5の一時記憶メモリ26に記憶される。また、A/D変換ユニット21の使用現場において、入力電圧Vc7をA/D変換回路12に入力した時のADCコードDc7がユーザ計測値uP7として計測され、図5の一時記憶メモリ26に記憶される。
Further, in the site of use of the A /
そして、ユーザ計測値uP6、uP7が一時記憶メモリ26に記憶されると、工場オフセット値Foおよび工場ゲイン値Fgを通る直線L1がユーザ設定値計算部25にて算出される。そして、工場オフセット値Foおよび工場ゲイン値Fgを通る直線L1が算出されると、直線L1に平行でユーザ計測値uP6を通る直線L6がユーザ設定値計算部25にて算出されるとともに、直線L1に平行でユーザ計測値uP7を通る直線L7がユーザ設定値計算部25にて算出される。そして、ユーザオフセット値Uoおよびユーザゲイン値Ugが直線L6、L7上に設定され、不揮発性メモリ24に記憶される。
When the user measurement values u P6 and u P7 are stored in the
そして、図5のスケーリング部13は、アナログ入力値Saに応じてユーザオフセット値Uoおよびユーザゲイン値Ugが設定された直線L6、L7を切り替えて校正に用いることができる。
The scaling
これにより、ユーザ計測値uP6、uP7をディジタル出力値Doと一致させることができ、ユーザにて指定されたエリア付近の変換精度を高めることが可能となる。 Thereby, the user measurement values u P6 and u P7 can be matched with the digital output value Do, and the conversion accuracy near the area designated by the user can be improved.
なお、図7の例では、2点分のユーザ計測値uP6、uP7をそれぞれ通る直線L6、L7を求め、アナログ入力値Saに応じて直線L6、L7を切り替えて校正に用いる方法について説明したが、3点以上のユーザ計測値をそれぞれ通る直線を求め、アナログ入力値Saに応じてこれらの直線を切り替えて校正に用いるようにしてもよい。 In the example of FIG. 7, a method is described in which straight lines L6 and L7 passing through the user measurement values u P6 and u P7 for two points are obtained and the straight lines L6 and L7 are switched according to the analog input value Sa and used for calibration. However, straight lines that respectively pass through three or more user measurement values may be obtained, and these straight lines may be switched according to the analog input value Sa and used for calibration.
実施の形態7.
図8は、本発明に係るアナログユニットの実施の形態7の概略構成を示すブロック図である。図8において、A/D変換ユニット31には、図5のユーザ設定値計算部25の代わりに複数のユーザ設定値計算部25a〜25cが設けられるとともに、不揮発性メモリ24にはパラメータPaが別途記憶されている。
Embodiment 7 FIG.
FIG. 8 is a block diagram showing a schematic configuration of an analog unit according to the seventh embodiment of the present invention. In FIG. 8, the A /
ここで、ユーザ設定値計算部25a〜25cは、1点以上のユーザ計測値uP1〜uPn、工場オフセット値Foおよび工場ゲイン値Fgに基づいて、互いに異なる計算方法を用いることでユーザオフセット値Uoおよびユーザゲイン値Ugを計算することができる。例えば、ユーザ設定値計算部25aは、図3の方法でユーザオフセット値Uoおよびユーザゲイン値Ugを計算し、ユーザ設定値計算部25bは、図6の方法でユーザオフセット値Uoおよびユーザゲイン値Ugを計算し、図7の方法でユーザオフセット値Uoおよびユーザゲイン値Ugを計算することができる。
Here, the user set
パラメータPaは、ユーザオフセット値Uoおよびユーザゲイン値Ugを計算するユーザ設定値計算部25a〜25cを指定することができる。
The parameter Pa can specify user setting
そして、パラメータPaにてユーザ設定値計算部25a〜25cが指定されると、ユーザ設定値計算部25a〜25cにてユーザオフセット値Uoおよびユーザゲイン値Ugが計算され、不揮発性メモリ24に記憶される。
When the user setting
これにより、パラメータPaを設定することで、測定にかかる工数を減らしたり、レンジ範囲内の全体に対して誤差幅を均等化したり、ユーザにて指定されたエリア付近の変換精度を高めたりすることができ、使用現場の状況に応じた多様な使用方法を実現することができる。 In this way, setting the parameter Pa reduces the number of man-hours for measurement, equalizes the error width over the entire range, or increases the conversion accuracy near the area specified by the user. It is possible to realize various usage methods according to the situation at the site of use.
実施の形態8.
図9は、本発明に係るアナログユニットの実施の形態8の概略構成を示すブロック図である。図9において、A/D変換ユニット31には、図1の不揮発性メモリ14、ユーザ設定値計算部15および一時記憶メモリ16の代わりに不揮発性メモリ34、設定値線形補間部35およびタイマ36が設けられている。
Embodiment 8 FIG.
FIG. 9 is a block diagram showing a schematic configuration of the eighth embodiment of the analog unit according to the present invention. 9, the A /
ここで、不揮発性メモリ34は、2点分の工場設定値および2点分のユーザ設定値をメモリ領域R11に記憶することができる。なお、メモリ領域R11に記憶される2点分の工場設定値としては、工場オフセット値Foおよび工場ゲイン値Fgを与えることができる。また、メモリ領域R11に記憶される2点分のユーザ設定値としては、ユーザオフセット値Uoおよびユーザゲイン値Ugを与えることができる。ここで、ユーザオフセット値Uoは、A/D変換回路12の温度が定常状態にある時にオフセット電圧を使用現場でA/D変換回路12に印加した際に出力されるADCコードを用いることができる。ユーザゲイン値Ugは、A/D変換回路12の温度が定常状態にある時にゲイン電圧を使用現場でA/D変換回路12に印加した際に出力されるADCコードを用いることができる。
Here, the
また、不揮発性メモリ34は、2点分のユーザ設定値をメモリ領域R12に記憶することができる。なお、メモリ領域R12に記憶される2点分のユーザ設定値としては、ユーザオフセット値Uo´およびユーザゲイン値Ug´を与えることができる。ここで、ユーザオフセット値Uo´は、A/D変換回路12の温度が初期状態にある時にオフセット電圧を使用現場でA/D変換回路12に印加した際に出力されるADCコードを用いることができる。ユーザゲイン値Ug´は、A/D変換回路12の温度が初期状態にある時にゲイン電圧を使用現場でA/D変換回路12に印加した際に出力されるADCコードを用いることができる。
Further, the
なお、A/D変換回路12の温度が初期状態にある時としては、例えば、A/D変換ユニット31の電源をオンした直後を挙げることができる。
An example of the time when the temperature of the A /
設定値線形補間部35は、タイマ36にて計時された時間の経過に基づいて、A/D変換回路12の温度が初期状態から定常状態に至る間のユーザ設定値を補間することができる。ここで、設定値線形補間部35には、オフセット値線形補間値計算部35aおよびゲイン値線形補間値計算部35bが設けられている。そして、オフセット値線形補間値計算部35aは、タイマ36にて計時された時間の経過に基づいて、ユーザオフセット値Uoとユーザオフセット値Uo´との間のユーザオフセット値Uo´´を線形補間することができる。ゲイン値線形補間値計算部35bは、タイマ36にて計時された時間の経過に基づいて、ユーザゲイン値Ugとユーザゲイン値Ug´との間のユーザゲイン値Ug´´を線形補間することができる。
The set value
タイマ36は、A/D変換ユニット31の電源がオンされた後の時間の経過を計時することができる。なお、スケーリング部13、不揮発性メモリ34、設定値線形補間部35およびタイマ36は、マイクロコンピュータにて実現することができる。
The
そして、時刻T1において、A/D変換ユニット31の電源がオンされると、アナログ入力値SaがA/D変換回路12にてADCコードCdに変換され、スケーリング部13に入力されるとともに、タイマ36にて計時動作が開始される。そして、時刻T1においては、オフセット値線形補間値計算部35aを介してユーザオフセット値Uo´がスケーリング部13に入力されるとともに、ゲイン値線形補間値計算部35bを介してユーザゲイン値Ug´がスケーリング部13に入力される。
At time T1, when the power of the A /
そして、時刻T1において、ADCコードCdがスケーリング部13に入力されると、ユーザオフセット値Uo´およびユーザゲイン値Ug´が参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
At time T1, when the ADC code Cd is input to the
そして、時刻T2において、タイマ36により計時動作が進むと、タイマ36にて計時された時間の経過に基づいて、ユーザオフセット値Uoとユーザオフセット値Uo´との間のユーザオフセット値Uo´´がオフセット値線形補間値計算部35aにて線形補間されるとともに、ユーザゲイン値Ugとユーザゲイン値Ug´との間のユーザゲイン値Ug´´がゲイン値線形補間値計算部35bにて線形補間され、スケーリング部13に入力される。
At time T2, when the time counting operation proceeds by the
そして、時刻T2において、ADCコードCdがスケーリング部13に入力されると、ユーザオフセット値Uo´´およびユーザゲイン値Ug´´が参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
When the ADC code Cd is input to the
そして、時刻T3において、タイマ36にて計時された時間の経過に基づいて、A/D変換回路12の温度が定常状態に達したと判断されると、オフセット値線形補間値計算部35aを介してユーザオフセット値Uoがスケーリング部13に入力されるとともに、ゲイン値線形補間値計算部35bを介してユーザゲイン値Ugがスケーリング部13に入力される。
At time T3, when it is determined that the temperature of the A /
そして、時刻T3において、ADCコードCdがスケーリング部13に入力されると、ユーザオフセット値Uoおよびユーザゲイン値Ugが参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
When the ADC code Cd is input to the
これにより、スケーリング部13、不揮発性メモリ34、設定値線形補間部35およびタイマ36をマイクロコンピュータにて実現した場合、部品を追加することなく、温度ドリフトに対するディジタル出力値Doを補正することが可能となり、A/D変換ユニット31のコストアップを抑制しつつ、A/D変換ユニット31のA/D変換精度を向上させることができる。
Thus, when the scaling
図10は、図9のアナログユニットの温度ドリフト補正方法を示す図である。図10において、直線L11は、ユーザオフセット値Uoとユーザゲイン値Ugを通り、直線L12は、ユーザオフセット値Uo´とユーザゲイン値Ug´を通るものとする。そして、A/D変換ユニット31の電源が時刻T1にオンされたものとする。そして、時刻T1において、入力電圧Vcに対してADCコードUc´がスケーリング部13に入力されると、ユーザオフセット値Uo´およびユーザゲイン値Ug´が参照されることにより、ADCコードUc´がスケーリングされる。
FIG. 10 is a diagram illustrating a temperature drift correction method for the analog unit of FIG. In FIG. 10, a straight line L11 passes through the user offset value Uo and the user gain value Ug, and a straight line L12 passes through the user offset value Uo ′ and the user gain value Ug ′. Then, it is assumed that the power source of the A /
また、時刻T2において、入力電圧Vcに対してADCコードUc´´がスケーリング部13に入力されると、タイマ36にて計時された時間の経過に基づいて、ユーザオフセット値Uoとユーザオフセット値Uo´との間のユーザオフセット値Uo´´が線形補間されるとともに、ユーザゲイン値Ugとユーザゲイン値Ug´との間のユーザゲイン値Ug´´が線形補間されることで、直線L11、L12の間の直線L13が求まる。
Further, when the ADC code Uc ″ is input to the
そして、スケーリング部13において、ユーザオフセット値Uo´´およびユーザゲイン値Ug´´が参照されることにより、ADCコードUc´´がスケーリングされる。
Then, the scaling
また、時刻T3において、入力電圧Vcに対してADCコードUcがスケーリング部13に入力されると、ユーザオフセット値Uoおよびユーザゲイン値Ugが参照されることにより、ADCコードUcがスケーリングされる。
At time T3, when the ADC code Uc is input to the
実施の形態9.
図11は、本発明に係るアナログユニットの実施の形態9の概略構成を示すブロック図である。図11において、A/D変換ユニット41には、図9の不揮発性メモリ34の代わりに不揮発性メモリ44が設けられるとともに、不揮発性メモリ44にはタイマ設定値Pbが別途記憶されている。
Embodiment 9 FIG.
FIG. 11 is a block diagram showing a schematic configuration of the analog unit according to the ninth embodiment of the present invention. In FIG. 11, the A /
ここで、タイマ設定値Pbは、A/D変換ユニット41の電源がオンされてからA/D変換回路12の温度が定常状態になるまでの時間を指定することができる。
Here, the timer set value Pb can specify the time from when the power of the A /
そして、タイマ設定値PbにてA/D変換回路12の温度が定常状態になるまでの時間が指定されると、タイマ36にて計時された時間がタイマ設定値Pbに達したかどうかが判断される。そして、タイマ36にて計時された時間がタイマ設定値Pbに達するまでは、タイマ36にて計時された時間の経過に基づいて、ユーザオフセット値Uoとユーザオフセット値Uo´との間のユーザオフセット値Uo´´がオフセット値線形補間値計算部35aにて線形補間されるとともに、ユーザゲイン値Ugとユーザゲイン値Ug´との間のユーザゲイン値Ug´´がゲイン値線形補間値計算部35bにて線形補間され、スケーリング部13に入力される。
When the time until the temperature of the A /
そして、タイマ36にて計時された時間がタイマ設定値Pbに達すると、オフセット値線形補間値計算部35aを介してユーザオフセット値Uoがスケーリング部13に入力されるとともに、ゲイン値線形補間値計算部35bを介してユーザゲイン値Ugがスケーリング部13に入力される。
When the time counted by the
これにより、A/D変換ユニット41の電源がオンされてからA/D変換回路12の温度が定常状態になるまでの時間が使用環境に応じて異なる場合においても、A/D変換回路12の温度が定常状態になったかどうかの判断を精度よく行わせることができ、温度ドリフトに対する補正精度を向上させることができる。
Thereby, even when the time from when the power supply of the A /
実施の形態10.
図12は、本発明に係るアナログユニットの実施の形態10の概略構成を示すブロック図である。図12において、A/D変換ユニット51には、図9の設定値線形補間部35の代わりに設定値選択部55が設けられている。
Embodiment 10 FIG.
FIG. 12 is a block diagram showing a schematic configuration of the tenth embodiment of the analog unit according to the present invention. In FIG. 12, the A /
この設定値選択部55は、タイマ36にて計時された時間の経過に基づいて、A/D変換回路12の温度が定常状態にある時のユーザ設定値またはA/D変換回路12の温度が初期状態にある時のユーザ設定値を選択することができる。ここで、設定値選択部55には、オフセット値選択部55aおよびゲイン値選択部55bが設けられている。そして、オフセット値選択部55aは、タイマ36にて計時された時間の経過に基づいて、A/D変換回路12の温度が定常状態にある時のユーザオフセット値UoまたはA/D変換回路12の温度が初期状態にある時のユーザオフセット値Uo´を選択することができる。また、ゲイン値選択部55bは、タイマ36にて計時された時間の経過に基づいて、A/D変換回路12の温度が定常状態にある時のユーザゲイン値UgまたはA/D変換回路12の温度が初期状態にある時のユーザゲイン値Ug´を選択することができる。
The set
そして、時刻T11において、A/D変換ユニット51の電源がオンされると、アナログ入力値SaがA/D変換回路12にてADCコードCdに変換され、スケーリング部13に入力されるとともに、タイマ36にて計時動作が開始される。そして、A/D変換回路12の温度が定常状態に達したと判断されるまでは、オフセット値選択部55aにてユーザオフセット値Uo´が選択され、スケーリング部13に入力されるとともに、ゲイン値選択部55bにてユーザゲイン値Ug´が選択され、スケーリング部13に入力される。
At time T11, when the power of the A /
そして、ADCコードCdがスケーリング部13に入力されると、A/D変換回路12の温度が定常状態に達したと判断されるまでは、ユーザオフセット値Uo´およびユーザゲイン値Ug´が参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
When the ADC code Cd is input to the
そして、時刻T12において、タイマ36にて計時された時間の経過に基づいて、A/D変換回路12の温度が定常状態に達したと判断されると、オフセット値選択部55aにてユーザオフセット値Uoが選択され、スケーリング部13に入力されるとともに、ゲイン値選択部55bにてユーザゲイン値Ugが選択され、スケーリング部13に入力される。
At time T12, when it is determined that the temperature of the A /
そして、ADCコードCdがスケーリング部13に入力されると、A/D変換回路12の温度が定常状態に達したと判断された後は、ユーザオフセット値Uoおよびユーザゲイン値Ugが参照されることにより、ADCコードCdがディジタル出力値Doにスケーリングされる。
When the ADC code Cd is input to the
これにより、スケーリング部13、不揮発性メモリ34、設定値選択部55およびタイマ36をマイクロコンピュータにて実現した場合、部品を追加することなく、温度ドリフトに対するディジタル出力値Doを補正することが可能となり、A/D変換ユニット51のコストアップを抑制しつつ、A/D変換ユニット51のA/D変換精度を向上させることができる。
As a result, when the scaling
図13は、図12のアナログユニットの温度ドリフト補正方法を示す図である。図13において、直線L21は、ユーザオフセット値Uoとユーザゲイン値Ugを通り、直線L22は、ユーザオフセット値Uo´とユーザゲイン値Ug´を通るものとする。そして、A/D変換ユニット51の電源が時刻T11にオンされたものとする。そして、時刻T11において、入力電圧Vcに対してADCコードUc´がスケーリング部13に入力されると、ユーザオフセット値Uo´およびユーザゲイン値Ug´が参照されることにより、ADCコードUc´がスケーリングされる。
FIG. 13 is a diagram showing a temperature drift correction method for the analog unit of FIG. In FIG. 13, a straight line L21 passes through the user offset value Uo and the user gain value Ug, and a straight line L22 passes through the user offset value Uo ′ and the user gain value Ug ′. Then, it is assumed that the power supply of the A /
また、時刻T12において、入力電圧Vcに対してADCコードUcがスケーリング部13に入力されると、ユーザオフセット値Uoおよびユーザゲイン値Ugが参照されることにより、ADCコードUcがスケーリングされる。
At time T12, when the ADC code Uc is input to the
なお、図12のA/D変換ユニット51においても、図11の実施の形態と同様にタイマ設定値Pbを不揮発性メモリリ44に記憶させ、A/D変換ユニット51の電源がオンされてからA/D変換回路12の温度が定常状態になるまでの時間を指定できるようにしてもよい。
In the A /
実施の形態11.
図14は、本発明に係るアナログユニットの実施の形態11の概略構成を示すブロック図である。図14において、A/D変換ユニット61には、図12のタイマ36の代わりに切り替え部62が設けられている。
FIG. 14 is a block diagram showing a schematic configuration of the analog unit according to the eleventh embodiment of the present invention. 14, the A /
この切り替え部62は、外部トリガに基づいて、ユーザオフセット値Uoまたはユーザオフセット値Uo´をオフセット値選択部55aに選択させるとともに、ユーザゲイン値Ugまたはユーザゲイン値Ug´をゲイン値選択部55bに選択させることができる。
The switching
そして、時刻T21において、A/D変換ユニット61の電源がオンされると、アナログ入力値SaがA/D変換回路12にてADCコードCdに変換され、スケーリング部13に入力される。そして、オフセット値選択部55aにてユーザオフセット値Uo´が選択され、スケーリング部13に入力されるとともに、ゲイン値選択部55bにてユーザゲイン値Ug´が選択され、スケーリング部13に入力される。
At
そして、時刻T22において、外部トリガが切り替え部62に入力されると、オフセット値選択部55aにてユーザオフセット値Uoが選択され、スケーリング部13に入力されるとともに、ゲイン値選択部55bにてユーザゲイン値Ugが選択され、スケーリング部13に入力される。
At time T22, when an external trigger is input to the
これにより、A/D変換ユニット61の温度が定常状態にある時にA/D変換ユニット61の再起動が行われた場合においても、A/D変換ユニット61の電源がオンされてから時間の経過を待つことなく、ユーザオフセット値Uoおよびユーザゲイン値Ugをスケーリング部13に入力させることができ、温度ドリフトに対する補正精度を向上させることができる。
As a result, even if the A /
実施の形態12.
図15は、本発明に係るアナログユニットの実施の形態12の校正方法を示すフローチャートである。図15において、アナログユニット(この例では、D/A変換ユニット)の使用現場において、ユーザは、アナログユニットの1点校正モード移行を指示する(ステップS11)。
FIG. 15 is a flowchart showing the calibration method of the twelfth embodiment of the analog unit according to the present invention. In FIG. 15, at the site where the analog unit (D / A conversion unit in this example) is used, the user instructs the analog unit to shift to the one-point calibration mode (step S11).
次に、ユーザは、アナログユニットのアナログ出力値に対応するディジタル入力値を設定する(ステップS12)。例えば、ディジタル入力値を0〜4000のスケールのうち2000に設定することができる。 Next, the user sets a digital input value corresponding to the analog output value of the analog unit (step S12). For example, the digital input value can be set to 2000 out of a scale of 0 to 4000.
次に、ユーザは、アナログユニットのアナログ出力値を設定する(ステップS13)。なお、アナログ出力値は、温度センサなどの各種センサから出力される値を用いることができ、電圧または電流のいずれでもよい。 Next, the user sets an analog output value of the analog unit (step S13). The analog output value may be a value output from various sensors such as a temperature sensor, and may be either voltage or current.
次に、ユーザは、1点校正の設定が完了したことをアナログユニットに指示する(ステップS14)。 Next, the user instructs the analog unit that the one-point calibration setting has been completed (step S14).
次に、アナログユニットは、不揮発性メモリに記憶された工場オフセット値および工場ゲイン値を参照しつつ、ユーザにて設定されたアナログ出力値、ディジタル入力値に基づいて、ユーザオフセット値およびユーザゲイン値を計算する(ステップS15)。 Next, the analog unit refers to the factory offset value and the factory gain value stored in the nonvolatile memory, and based on the analog output value and the digital input value set by the user, the user offset value and the user gain value. Is calculated (step S15).
次に、アナログユニットは、ユーザオフセット値およびユーザゲイン値を不揮発性メモリに記憶させる(ステップS16)。 Next, the analog unit stores the user offset value and the user gain value in the nonvolatile memory (step S16).
次に、アナログユニットは、ユーザオフセット値およびユーザゲイン値の設定が完了したことをユーザに知らせる(ステップS17)。 Next, the analog unit notifies the user that the setting of the user offset value and the user gain value has been completed (step S17).
次に、ユーザは、ユーザオフセット値およびユーザゲイン値の設定の完了を確認し、別のチャンネルの設定の実施をアナログユニットに指示する(ステップS18)。 Next, the user confirms the completion of the setting of the user offset value and the user gain value, and instructs the analog unit to set another channel (step S18).
これにより、アナログユニットとしてD/A変換ユニットを用いた場合においても、測定にかかる工数の増大を抑制しつつ、D/A変換ユニットの変換精度を向上させることが可能となる。 Thereby, even when a D / A conversion unit is used as an analog unit, it is possible to improve the conversion accuracy of the D / A conversion unit while suppressing an increase in the number of man-hours for measurement.
以上のように本発明に係るアナログユニットは、コストアップを抑制しつつ、温度ドリフトに対する出力値を補正することが可能なアナログユニットの出力値を校正する方法に適している。 As described above, the analog unit according to the present invention is suitable for a method of calibrating the output value of the analog unit capable of correcting the output value against the temperature drift while suppressing an increase in cost.
11,21,31,41,51,61 A/D変換ユニット、12 A/D変換回路、13 スケーリング部、14,24,44 不揮発性メモリ、15,25,25a〜25c ユーザ設定値計算部、16,26 一時記憶メモリ、35 設定値線形補間部、35a オフセット値線形補間値計算部、35b ゲイン値線形補間値計算部、36 タイマ、55 設定値選択部、55a オフセット値選択部、55b ゲイン値選択部、62 切り替え部。 11, 21, 31, 41, 51, 61 A / D conversion unit, 12 A / D conversion circuit, 13 scaling unit, 14, 24, 44 nonvolatile memory, 15, 25, 25a to 25c user set value calculation unit, 16, 26 Temporary storage memory, 35 set value linear interpolation unit, 35a offset value linear interpolation value calculation unit, 35b gain value linear interpolation value calculation unit, 36 timer, 55 set value selection unit, 55a offset value selection unit, 55b gain value Selection unit, 62 switching unit.
Claims (5)
前記変換回路の温度が初期状態から定常状態に至る間の2つの時点における前記入力値と出力値との関係を示す設定値を記憶する記憶部と、
前記記憶部に記憶された設定値に基づいて、前記変換回路の出力値を校正する校正部とを備えることを特徴とするアナログユニット。 A conversion circuit that converts input values to output values;
A storage unit for storing a setting value indicating a relationship between the input value and the output value at two points in time during which the temperature of the conversion circuit changes from an initial state to a steady state;
An analog unit comprising: a calibration unit that calibrates an output value of the conversion circuit based on a set value stored in the storage unit.
前記タイマにて計時された時間の経過に基づいて、前記記憶部に記憶された2つの時点における設定値を補間する設定値線形補間部とを備えることを特徴とする請求項1に記載のアナログユニット。 A timer for timing the passage of time after the power is turned on;
2. The analog according to claim 1, further comprising: a set value linear interpolation unit that interpolates set values at two time points stored in the storage unit based on a lapse of time counted by the timer. unit.
前記タイマにて計時された時間の経過に基づいて、前記記憶部に記憶された2つの時点における設定値の中から、前記校正に使用される設定値を選択する設定値選択部とを備えることを特徴とする請求項1に記載のアナログユニット。 A timer for timing the passage of time after the power is turned on;
A setting value selection unit that selects a setting value used for the calibration from the setting values at two time points stored in the storage unit based on the passage of time counted by the timer; The analog unit according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012235063A JP5425288B2 (en) | 2012-10-24 | 2012-10-24 | Analog unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012235063A JP5425288B2 (en) | 2012-10-24 | 2012-10-24 | Analog unit |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011515823A Division JP5159951B2 (en) | 2009-05-29 | 2009-05-29 | Analog unit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013048471A JP2013048471A (en) | 2013-03-07 |
JP5425288B2 true JP5425288B2 (en) | 2014-02-26 |
Family
ID=48011161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012235063A Active JP5425288B2 (en) | 2012-10-24 | 2012-10-24 | Analog unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5425288B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05259909A (en) * | 1992-03-16 | 1993-10-08 | Fujitsu Ltd | Automatic offset voltage correcting method |
JP2005244771A (en) * | 2004-02-27 | 2005-09-08 | Fuji Electric Holdings Co Ltd | A/d conversion circuit, current measurement circuit, charging/discharging amount measurement circuit, and error correction method |
JP2006135655A (en) * | 2004-11-05 | 2006-05-25 | Nec Electronics Corp | Semiconductor integrated circuit |
JP2008131298A (en) * | 2006-11-20 | 2008-06-05 | Fyuutorekku:Kk | Analog/digital conversion device, and analog/digital conversion correction method |
-
2012
- 2012-10-24 JP JP2012235063A patent/JP5425288B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2013048471A (en) | 2013-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5159951B2 (en) | Analog unit | |
JP4074823B2 (en) | A / D conversion output data non-linearity correction method and non-linearity correction apparatus | |
US9337858B2 (en) | Data processing system | |
US9857782B2 (en) | Output value correction method for physical quantity sensor apparatus, output correction method for physical quantity sensor, physical quantity sensor apparatus and output value correction apparatus for physical quantity sensor | |
KR20100015544A (en) | Analog-to-digital converter offset and gain calibration using internal voltage references | |
JP2007208969A (en) | Local clock correction method and circuit | |
CN106209105A (en) | The calibration of analog-digital converter equipment | |
KR20180127959A (en) | Time-based delay-line analog-to-digital converter | |
TWI580194B (en) | Chip having self-calibration mechanism and calibration method thereof | |
TW201442382A (en) | Protection device and calibration method thereof | |
CN115979324A (en) | Nonlinear calibration method and device for magnetic encoder | |
JP5425288B2 (en) | Analog unit | |
JP3403127B2 (en) | A / D conversion circuit | |
JP4751343B2 (en) | A / D converter | |
JP4613929B2 (en) | A / D conversion circuit | |
JP2007312084A (en) | Data correcting circuit for a/d converter | |
JP3877747B1 (en) | A / D converter | |
CN114826156A (en) | Method, device, equipment and storage medium for adjusting output frequency of oscillator circuit | |
JP6146372B2 (en) | AD converter | |
CN113940006B (en) | Analog-digital conversion device and control method of analog-digital conversion device | |
JP5091898B2 (en) | Power measurement system | |
JP6576666B2 (en) | Correction arithmetic circuit, signal processing device | |
JPH11118617A (en) | Temperature controller | |
JP4830866B2 (en) | Discrete conversion circuit | |
JP2005005913A (en) | Ad conversion method and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131022 |
|
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: 20131029 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131126 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5425288 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |