JPH08162952A - Ad conversion value correction device for ad converter - Google Patents

Ad conversion value correction device for ad converter

Info

Publication number
JPH08162952A
JPH08162952A JP29725394A JP29725394A JPH08162952A JP H08162952 A JPH08162952 A JP H08162952A JP 29725394 A JP29725394 A JP 29725394A JP 29725394 A JP29725394 A JP 29725394A JP H08162952 A JPH08162952 A JP H08162952A
Authority
JP
Japan
Prior art keywords
converter
conversion value
correction
voltage
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
JP29725394A
Other languages
Japanese (ja)
Inventor
Kazuhiro Sugiyama
和弘 杉山
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.)
Nohmi Bosai Ltd
Original Assignee
Nohmi Bosai 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 Nohmi Bosai Ltd filed Critical Nohmi Bosai Ltd
Priority to JP29725394A priority Critical patent/JPH08162952A/en
Publication of JPH08162952A publication Critical patent/JPH08162952A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE: To eliminate the error of an AD conversion value by obtaining a correction factor from the AD conversion value of a correction power supply voltage converted in an AD converter to which a desired reference voltage or the reference voltage is supplied. CONSTITUTION: By the AD converter 1 to which the desired reference voltage Vref* is supplied from a transistor 2, the AD conversion value Do of a voltage Vs for correction is obtained beforehand and stored in a microcomputer (MPU) 5A. Then, by the converter 1 to which the reference voltage Vref is supplied, the correction factor KH is obtained from the AD conversion value Ds of the voltage Vs for the correction of a power supply 9 for the correction connected by a switching circuit 10 and the AD conversion value Do. Then, the AD conversion value DH corrected by multiplying the factor KH with the AD conversion value DA of the analog voltage VA of an analog circuit 8 connected by the circuit 10 is obtained. The AD conversion value DH matches with the AD conversion value at the time of the voltage Vref = the voltage Vref* and the error of the AD conversion value is eliminated.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、AD変換器、特にそ
の基準電圧がトランジスタによって供給されるタイプの
AD変換器のAD変換値補正装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an AD converter, and more particularly to an AD conversion value correcting device for an AD converter of a type in which its reference voltage is supplied by a transistor.

【0002】[0002]

【従来の技術】従来、AD変換器を使用する場合、その
消費電流を少なくする等の理由によりトランジスタを用
いてAD変換器へ基準電圧を供給する方式が多くみられ
た。図4はこのような従来方式を一部回路図で示すブロ
ック図である。図において、1は入力されたアナログ値
をデジタル値に変換して出力するAD変換器である。2
はトランジスタ例えばpnp型トランジスタであって、
そのコレクタがAD変換器1の基準電圧Vrefの供給さ
れる端子に接続され、そのエミッタが所望の基準電圧V
ref*を供給する端子に接続され、エミッタとベースの
間に抵抗3が接続され、そしてベースがまた他の抵抗4
を介して制御装置例えばMPU5の制御端子VRCに接
続されている。MPU5は、その入力端子DinがAD変
換器1の出力側に接続されている。なお、このAD変換
器1の入力側には、測定した物理量例えば煙濃度や温度
を表すアナログ電圧VAを供給するアナログ回路8例え
ば煙式火災感知器の煙検出部や熱式火災感知器のサーミ
スタを有する熱検出部が接続されている。
2. Description of the Related Art Conventionally, when an AD converter is used, a method of supplying a reference voltage to the AD converter by using a transistor has been often used for the reason of reducing current consumption. FIG. 4 is a block diagram showing a partial circuit diagram of such a conventional method. In the figure, reference numeral 1 is an AD converter that converts an input analog value into a digital value and outputs the digital value. Two
Is a transistor, for example, a pnp type transistor,
Its collector is connected to the terminal of the AD converter 1 to which the reference voltage Vref is supplied, and its emitter is connected to the desired reference voltage Vref.
It is connected to the terminal that supplies ref *, resistor 3 is connected between the emitter and base, and the base is another resistor 4
It is connected to the control terminal VRC of the control device, for example, MPU5 via. The input terminal Din of the MPU 5 is connected to the output side of the AD converter 1. An analog circuit 8 for supplying an analog voltage V A representing a measured physical quantity such as smoke concentration or temperature to the input side of the AD converter 1 such as a smoke detecting section of a smoke type fire detector or a thermal type fire detector. A heat detector having a thermistor is connected.

【0003】従来方式は上述したように構成されてお
り、MPU5がその制御端子VRCから抵抗4を通して
Lレベルの信号をトランジスタ2のベースに供給し、も
ってこのトランジスタ2をターンオンすることによりA
D変換器1に基準電圧Vrefを供給していた。その後、
アナログ回路8のアナログ電圧VAをAD変換器1に入
力してAD変換した。
The conventional system is constructed as described above, and the MPU 5 supplies an L level signal from its control terminal VRC through the resistor 4 to the base of the transistor 2 and thereby turns on the transistor 2.
The reference voltage Vref was supplied to the D converter 1. afterwards,
The analog voltage V A of the analog circuit 8 is input to the AD converter 1 and AD-converted.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、AD変
換器1に実際に入力される基準電圧Vrefは、所望の基
準電圧Vref*からトランジスタ2のエミッタ・コレク
タ電圧VEC(0V〜0.3V程度)を引いた電圧(つま
り、Vref=Vref*−VEC)になる。そのため、基準電
圧Vrefは、VECの大小によって異なり、所望の基準電
圧Vref*に対して差が生じてしまい、従って基準電圧
VrefでのAD変換値と所望の基準電圧Vref*でのAD
変換値との間にも誤差が生じてしまう。また、AD変換
器1に入力される基準電圧Vrefの値が小さい程、誤差
は大きくなる。このように、従来方式では誤差を含んだ
AD変換値でしか判断できず、特に微小変化をとらえる
ことはできないという課題があった。
However, the reference voltage Vref actually input to the AD converter 1 is the emitter-collector voltage V EC (about 0V to 0.3V) of the transistor 2 from the desired reference voltage Vref *. Becomes (ie, Vref = Vref * −V EC ). Therefore, the reference voltage Vref differs depending on the magnitude of V EC , and a difference occurs with respect to the desired reference voltage Vref *. Therefore, the AD conversion value at the reference voltage Vref and the AD at the desired reference voltage Vref * are generated.
An error also occurs with the converted value. Further, the smaller the value of the reference voltage Vref input to the AD converter 1, the larger the error. As described above, the conventional method has a problem in that it is possible to make a determination only with an AD conversion value including an error, and it is not possible to catch a minute change.

【0005】そこで、この発明は、このような課題を解
決するためになされたものであって、AD変換器のAD
変換値を補正して誤差を失くすAD変換値補正装置を得
ることを目的とする。
Therefore, the present invention has been made in order to solve such a problem, and the AD of the AD converter is used.
It is an object of the present invention to obtain an AD conversion value correction device that corrects a conversion value and loses an error.

【0006】[0006]

【課題を解決するための手段】この発明に係るAD変換
器のAD変換値補正装置は、AD変換器と、このAD変
換器に接続されてその基準電圧を供給するトランジスタ
と、測定した物理量を表すアナログ電圧を供給するアナ
ログ回路及び所定の補正用電圧を供給する補正用電源
と、これらアナログ回路と補正用電源を前記AD変換器
へ切り換えて接続する切換手段と、前記AD変換器、前
記トランジスタ及び前記切換手段を制御する制御装置と
を備えたものである。
An AD conversion value correction apparatus for an AD converter according to the present invention includes an AD converter, a transistor connected to the AD converter for supplying a reference voltage thereof, and a measured physical quantity. An analog circuit for supplying an analog voltage to be represented and a correction power supply for supplying a predetermined correction voltage, a switching means for switching and connecting the analog circuit and the correction power supply to the AD converter, the AD converter, and the transistor. And a control device for controlling the switching means.

【0007】[0007]

【作用】この発明によれば所望の基準電圧が供給されて
いるAD変換器により、補正用電圧をAD変換したAD
変換値DOを予め求めておき、基準電圧が供給されてい
る前記AD変換器により、接続された補正用電源の補正
用電圧をAD変換したAD変換値DSと前記AD変換値
Oから補正関数KHを求め、そして前記基準電圧が供
給されている前記AD変換器により、接続されたアナロ
グ回路のアナログ電圧をAD変換したAD変換値DA
前記補正係数KHを乗じて補正したAD変換値DHを求
めるのである。
According to the present invention, the AD for which the correction voltage is AD-converted by the AD converter to which the desired reference voltage is supplied.
A conversion value D O is obtained in advance, and the AD conversion value D S obtained by AD converting the correction voltage of the connected correction power supply by the AD converter to which the reference voltage is supplied and the AD conversion value D O are obtained. A correction function KH is obtained, and AD conversion is performed by multiplying the AD conversion value D A obtained by AD conversion of the analog voltage of the connected analog circuit by the correction coefficient KH by the AD converter to which the reference voltage is supplied. The value D H is obtained.

【0008】[0008]

【実施例】以下、この発明を添付図面に示した一実施例
について詳しく説明する。図1はこの発明に係るAD変
換器のAD変換値補正装置の一実施例を一部回路図で示
すブロック図である。図において、1〜4、及び6〜8
は図4に示したものと同じであるので、こゝでは詳しく
説明しない。9は所定の補正用電圧VS(このVSは所望
の基準電圧Vref*からトランジスタ2の最大VECを引
いた電圧より小さく設定する。)を供給する補正用電源
であり、10はアナログ回路8と補正用電源9をAD変
換器1の入力側へ切り換えて接続する切換手段例えば切
換回路、切換スイッチ等であり、そして5Aはこの切換
回路10を切り換える信号を供給する制御端子SWを有
したMPU(マイクロコンピュータ)であり、MPU5
Aの入力端子Dcntが抵抗6を介して電源Vccに接続さ
れ且つスイッチ7を介してアースされている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention shown in the accompanying drawings will be described in detail below. FIG. 1 is a block diagram showing a partial circuit diagram of an embodiment of an AD conversion value correction device for an AD converter according to the present invention. In the figure, 1 to 4 and 6 to 8
Is the same as that shown in FIG. 4, and will not be described in detail here. Reference numeral 9 is a correction power source for supplying a predetermined correction voltage V S (this V S is set to be smaller than a voltage obtained by subtracting the maximum V EC of the transistor 2 from a desired reference voltage Vref *), and 10 is an analog circuit. 8 and a correction power source 9 are switching means for switching and connecting to the input side of the AD converter 1, such as a switching circuit and a switching switch, and 5A has a control terminal SW for supplying a signal for switching the switching circuit 10. MPU (microcomputer), MPU5
The input terminal D cnt of A is connected to the power supply V cc via the resistor 6 and grounded via the switch 7.

【0009】アナログ回路8は例えば火災感知器の場合
では火災現象を検出してそのアナログ量を出力する火災
現象検出回路、工作機器の場合では加工する材料の位置
を検出してそのアナログ量を出力する位置検出回路、流
量測定器の場合では流量を測定してそのアナログ量を出
力する流量測定回路である。また、スイッチ7はアナロ
グ電圧を同一の補正係数で補正するか、その都度補正係
数を求めて補正するかを決定するスイッチで、前者はス
イッチ7がオフ、つまりMPU5AのDcnt入力がHレ
ベルの時で、後者はスイッチ7がオン、つまりDcnt
力がLレベルの時である。さらに、前者はその都度補正
係数を求める必要がない場合、例えばトランジスタ2の
エミッタ・コレクタ間電圧VECが変化しない短時間でア
ナログ電圧VAを取り込んでAD変換する場合であり、
後者はアナログ電圧VAを取り込む時にこのエミッタ・
コレクタ電圧VECが変化するか変化することが予想され
る時、例えばアナログ電圧VAの取り込みを1日の内で
一番温度差のある夜明け前と午後2時頃に行う場合、ま
たは長期間測定するためにこのエミッタ・コレクタ電圧
ECがどのように変化するのか予測が付かず、補正係数
を求めるとともに電圧VECを取り込んでAD変換し、確
実にAD変換値を補正したい場合である。補正を前者と
後者のいずれで行うかは測定条件例えば測定の間隔や測
定期間で測定を始める前に予め決めておき、それにした
がってスイッチ7をオンまたはオフにしておく。
For example, in the case of a fire detector, the analog circuit 8 detects a fire phenomenon and outputs an analog amount thereof. In the case of a machine tool, the analog circuit 8 detects the position of a material to be processed and outputs the analog amount. In the case of the position detecting circuit and the flow rate measuring device, the flow rate measuring circuit measures the flow rate and outputs the analog amount. The switch 7 is a switch that determines whether to correct the analog voltage with the same correction coefficient or to calculate the correction coefficient each time. In the former case, the switch 7 is off, that is, the D cnt input of the MPU 5A is at the H level. The latter is when the switch 7 is on, that is, when the D cnt input is at the L level. Further, the former is a case where it is not necessary to obtain the correction coefficient each time, for example, when the analog voltage V A is taken in and AD-converted in a short time in which the emitter-collector voltage V EC of the transistor 2 does not change.
When the latter takes in the analog voltage V A , this emitter
When the collector voltage V EC changes or is expected to change, for example, when the analog voltage V A is taken in before dawn and 2:00 pm, which have the highest temperature difference in a day, or for a long period of time. This is a case in which it is not possible to predict how the emitter-collector voltage V EC will change for measurement, and it is necessary to obtain a correction coefficient and take in the voltage V EC to perform AD conversion to surely correct the AD conversion value. Whether the correction is performed by the former or the latter is determined in advance before measurement is started under measurement conditions such as measurement intervals or measurement periods, and the switch 7 is turned on or off accordingly.

【0010】次に、AD変換値補正装置の動作を、図2
に示したフローチャートに基づいて説明するまず、AD
変換器1に入力される基準電圧Vrefを所望の基準電圧
Vref*に等しくし、即ちVref=Vref*(従ってトラ
ンジスタ2のエミッタ・コレクタ電圧VEC=0)、補正
用電源9の補正用電圧VSを例えば8ビットのAD変換
器1でAD変換したAD変換値DOを下記の式(1)か
ら算出する。
Next, the operation of the AD conversion value correction apparatus will be described with reference to FIG.
First, AD will be described based on the flowchart shown in FIG.
The reference voltage Vref input to the converter 1 is made equal to the desired reference voltage Vref *, that is, Vref = Vref * (hence the emitter-collector voltage V EC = 0 of the transistor 2) and the correction voltage V of the correction power supply 9. An AD conversion value D O obtained by AD conversion of S by the 8-bit AD converter 1 is calculated from the following formula (1).

【0011】 DO=INT(VS/Vref*×28) ・・・(1)D O = INT (V S / Vref * × 2 8 ) (1)

【0012】たゞし、INTはカッコ内の数値の小数点
以下を切り捨てる整数化関数である。このようにして算
出し、MPU5A内のROM(図示しない)に記憶させ
ておいたAD変換値DoをMPU5A内の図示しないR
AMに呼び出す(ステップS1)。次に入力端子Dcnt
での入力レベルをMPU内部に読み込む(ステップS
2)。
However, INT is an integerizing function that truncates the numbers in parentheses after the decimal point. The AD conversion value D o calculated in this way and stored in the ROM (not shown) in the MPU 5A is stored in the R (not shown) in the MPU 5A.
Call to AM (step S1). Next, input terminal Dcnt
The input level at is read into the MPU (step S
2).

【0013】その後、MPU5Aの制御端子SWから切
換回路10へ信号を送ってAD変換器1にまず補正用電
源9を接続する(ステップS3)。MPU5Aの制御端
子VRCからトランジスタ2へLレベル信号を送ってト
ランジスタ2をオンにし、もって基準電圧VrefをAD
変換器1へ供給させる(ステップS4)。補正用電源9
から供給された補正用電圧VSをAD変換器1にて実際
にAD変換し、得られたAD変換値DSを入力端子Din
を通してMPU5A内部のRAM(図示しない)に記憶
させる(ステップS5)。MPU5AのRAMに記憶さ
れているAD変換値DOとRAMに記憶されているAD
変換値DSとを呼び出し、補正係数KHを下記の式
(2)から算出する。
Thereafter, a signal is sent from the control terminal SW of the MPU 5A to the switching circuit 10 to connect the correction power source 9 to the AD converter 1 (step S3). An L level signal is sent from the control terminal VRC of the MPU 5A to the transistor 2 to turn on the transistor 2, and the reference voltage Vref is AD
It is supplied to the converter 1 (step S4). Power source for correction 9
The correction voltage V S supplied from the AD converter 1 is actually AD-converted by the AD converter 1, and the obtained AD conversion value D S is input terminal Din.
The data is stored in the RAM (not shown) inside the MPU 5A through (step S5). AD conversion value D O stored in RAM of MPU 5A and AD stored in RAM
The conversion value D S is called and the correction coefficient KH is calculated from the following equation (2).

【0014】KH=DO/DS ・・・(2)KH = D O / D S (2)

【0015】このようにして算出された補正係数KHを
RAMに記憶させる(ステップS6)。
The correction coefficient KH thus calculated is stored in the RAM (step S6).

【0016】次に、MPU5Aの制御端子SWから切換
回路10へ信号を送ってAD変換器1にアナログ回路8
を接続する(ステップS7)。アナログ回路8から供給
されたアナログ電圧VAをAD変換器1にて実際にAD
変換し、得られたAD変換値DAをMPU5Aに入力さ
せる(ステップS8)。この入力されたAD変換値DA
にRAMから呼び出した補正係数KHを乗じて補正した
AD変換値DHを求める(ステップS9)。この補正し
たAD変換値DHをMPU5AのRAMに記憶させる
(ステップS10)。
Next, a signal is sent from the control terminal SW of the MPU 5A to the switching circuit 10 and the analog circuit 8 is sent to the AD converter 1.
Are connected (step S7). The analog voltage V A supplied from the analog circuit 8 is actually AD-converted by the AD converter 1.
The AD conversion value D A obtained by the conversion is input to the MPU 5A (step S8). This input AD conversion value D A
Is multiplied by the correction coefficient KH called from the RAM to obtain the corrected AD conversion value D H (step S9). The corrected AD conversion value D H is stored in the RAM of the MPU 5A (step S10).

【0017】その後、ステップS11にて、これで動作
が終了かどうかを判断し、もし終了ならステップS12
にてMPU5Aの制御端子VRCからトランジスタ2へ
Hレベル信号を送ってトランジスタ2をオフにし、そし
てステップS13にて終了となる。しかしながら、ステ
ップS11での判断が終了でないならば、ステップS1
4にてMPU5Aの入力端子Dcntでの入力レベルがH
レベル(“1”)であるか或はLレベル(“0”)であ
るかを判断し、前者ならばステップS8に戻ってアナロ
グ電圧VAをもう一度(連続して)取り込み、AD変換
し、同一の補正係数KHで補正することができる。後者
ならば、ステップS15にてトランジスタ2をオフにし
た後にステップS3に戻り、もう一度補正用電圧VS
取り込んでAD変換し、その都度求めた補正係数KHで
ステップS8にて求めたアナログ電圧のAD変換値VA
を補正することができる。
Then, in step S11, it is determined whether or not the operation is completed, and if it is completed, step S12.
Then, the H level signal is sent from the control terminal VRC of the MPU 5A to the transistor 2 to turn off the transistor 2, and the process ends at step S13. However, if the determination in step S11 is not completed, step S1
4, the input level at the input terminal Dcnt of MPU5A is H
It is determined whether it is the level (“1”) or the L level (“0”), and in the former case, the process returns to step S8 to capture the analog voltage V A once again (continuously) and AD-convert it. The correction can be made with the same correction coefficient KH. In the latter case, after the transistor 2 is turned off in step S15, the process returns to step S3, the correction voltage V S is again taken in and AD-converted, and the analog voltage calculated in step S8 is obtained with the correction coefficient KH calculated each time. AD conversion value V A
Can be corrected.

【0018】次に、AD変換値補正装置の動作を、図3
に示した実例に基づいて説明する。 A.所望の基準電圧Vref*=2.5V、最大エミッタ・
コレクタ電圧VEC=0.3Vそして補正用電圧VS=2.
0Vの場合にアナログ電圧VAを2.0V、1.5V、1.
0Vに変えた例についてまず説明する。AD変換値DO
は式(1)より2.0V/2.5V×256=204.8
→204となる。(なお、この時はVEC=0でVref=
Vref*である。) AD変換値DSは2.0V/(2.5V−0.3V)×25
6=232.7→232となる。そして補正係数KHは
式(2)より204/232となる。AD変換値DA
それぞれ2.0V/(2.5V−0.3V)×256=2
32.7→232、1.5V/(2.5V−0.3V)×2
56=174.5→174、1.0V/(2.5V−0.3
V)×256=116.3→116となる。これらAD
変換値DAに上述した補正係数KHを乗じると、それぞ
れ補正したAD変換値DH=204,153,102が
得られる。最後に、Vref=Vref*時の、アナログ電圧
AのAD変換値D*を求めると、それぞれ204,1
53,102となり、補正したAD変換値DHと一致
し、この補正が正確になされたことが分かる。
Next, the operation of the AD conversion value correction apparatus will be described with reference to FIG.
It will be explained based on the actual example shown in FIG. A. Desired reference voltage Vref * = 2.5V, maximum emitter
Collector voltage V EC = 0.3 V and correction voltage V S = 2.3.
In the case of 0V, the analog voltage V A is 2.0V, 1.5V, 1.
An example in which the voltage is changed to 0V will be described first. AD conversion value D O
Is 2.0V / 2.5V × 256 = 204.8 from the formula (1).
→ It becomes 204. (At this time, V EC = 0 and V ref =
Vref *. ) The AD conversion value D S is 2.0 V / (2.5 V-0.3 V) × 25
6 = 232.7 → 232. Then, the correction coefficient KH is 204/232 from the equation (2). The AD conversion value D A is 2.0 V / (2.5 V-0.3 V) × 256 = 2, respectively.
32.7 → 232, 1.5V / (2.5V-0.3V) × 2
56 = 174.5 → 174, 1.0V / (2.5V-0.3
V) × 256 = 116.3 → 116. These AD
By multiplying the conversion value D A by the above-mentioned correction coefficient KH, the corrected AD conversion values D H = 204, 153, 102 are obtained. Finally, when the AD conversion value D * of the analog voltage V A when Vref = Vref * is obtained, 204 and 1 respectively.
It becomes 53 and 102, which coincides with the corrected AD conversion value D H, and it can be seen that this correction was made accurately.

【0019】B.所望の基準電圧Vref*=1.5V、最
大エミッタ・コレクタ電圧VEC=0.3Vそして補正用
電圧VS=1.0Vの場合に、アナログ電圧VAを1.0
V、0.7V、0.5Vに変えた例を次に説明する。AD
変換値DOは式(1)より1.0V/1.5V×256=
170.6→170となる。(なお、この時はVEC=0
でVref=Vref*である。) AD変換値DSは1.0V/(1.5V−0.3V)×25
6=213.3→213となる。そして補正係数KHは
式(2)より170/213となる。AD変換値DA
それぞれ1.0V/(1.5V−0.3V)×256=2
13.3→213、0.7V/(1.5V−0.3V)×2
56=149.3→149、0.5V/(1.5V−0.3
V)×256=106.6→106となる。これらAD
変換値DAに上述した補正係数KHを乗じると、それぞ
れ補正したAD変換値DH=170,118,84が得
られる。最後に、Vref=Vref*時の、アナログ電圧V
AのAD変換値D*を求めると、それぞれ170,11
9,85となり、補正したAD変換値DHと良く一致
し、この補正が正確になされたことが分かる。
B. Desired reference voltage Vref * = 1.5V, if the maximum emitter-collector voltage V EC = 0.3V and correction voltage V S = 1.0 V, the analog voltage V A 1.0
An example in which the voltage is changed to V, 0.7V, and 0.5V will be described below. AD
From the formula (1), the converted value D O is 1.0 V / 1.5 V × 256 =
170.6 → 170. (At this time, V EC = 0
Therefore, Vref = Vref *. ) AD converted value D S is 1.0 V / (1.5 V-0.3 V) × 25
6 = 213.3 → 213. Then, the correction coefficient KH becomes 170/213 from the equation (2). The AD conversion value D A is 1.0 V / (1.5 V-0.3 V) × 256 = 2, respectively.
13.3 → 213, 0.7V / (1.5V-0.3V) × 2
56 = 149.3 → 149, 0.5V / (1.5V-0.3
V) × 256 = 106.6 → 106. These AD
By multiplying the conversion value D A by the above-described correction coefficient KH, the corrected AD conversion values D H = 170, 118, 84 are obtained. Finally, the analog voltage V when Vref = Vref *
When the AD conversion value D * of A is calculated, it is 170 and 11 respectively.
The value is 9,85, which is in good agreement with the corrected AD conversion value D H, and it can be seen that this correction was made accurately.

【0020】また、AD変換器1に入力される基準電圧
Vref=2.2V、アナログ電圧VA=1.0V時のAD変
換値DAとその補正したAD変換値DHとの差が14であ
るのに対し、Vref=1.2V、アナログ電圧VA=1.0
Vの時のDAとDHの差は22であって、これからVref
の値が小さい程誤差は大きくなることも分かる。なお、
本実施例ではAD変換器とMPUとを別個のものとして
用いたが、AD変換器内蔵のMPU(図示しない)を用
いてもよい。
The difference between the AD conversion value D A and the corrected AD conversion value D H when the reference voltage Vref = 2.2 V and the analog voltage V A = 1.0 V input to the AD converter 1 is 14. On the other hand, Vref = 1.2V, analog voltage V A = 1.0
The difference between D A and D H when V is 22 is Vref
It can also be seen that the smaller the value of, the larger the error. In addition,
Although the AD converter and the MPU are used separately in this embodiment, an MPU (not shown) with a built-in AD converter may be used.

【0021】[0021]

【発明の効果】この発明はAD変換器と、このAD変換
器に接続されてその基準電圧を供給するトランジスタ
と、測定した物理量を表すアナログ電圧を供給するアナ
ログ回路及び所定の補正用電圧を供給する補正用電源
と、これらアナログ回路と補正用電源を前記AD変換器
へ切り換えて接続する切換手段と、前記AD変換器、前
記トランジスタ及び前記切換手段を制御する制御装置と
を備え、この制御装置は、所望の基準電圧が供給されて
いる前記AD変換器により、前記補正用電圧をAD変換
したAD変換値DOを予め求めておく第1の制御手段
と、前記基準電圧が供給されている前記AD変換器によ
り、接続された前記補正用電源の補正用電圧をAD変換
したAD変換値DSと前記AD変換値DOから補正係数K
Hを求める第2の制御手段と、前記基準電圧が供給され
ている前記AD変換器により、接続された前記アナログ
回路のアナログ電圧をAD変換したAD変換値DAに前
記補正係数KHを乗じて補正したAD変換値DHを求め
る第3の制御手段とを含んでいるので、アナログ電圧の
補正したAD変換値DHがVref=Vref*時のAD変換
値D*に極めて良く一致し、誤差が全く無いと云っても
過言ではない。
The present invention provides an AD converter, a transistor which is connected to the AD converter and supplies a reference voltage thereof, an analog circuit which supplies an analog voltage representing a measured physical quantity, and a predetermined correction voltage. And a control device for controlling the AD converter, the transistor and the switching means, and a control device for controlling the AD converter, the analog circuit and the correction power source being switched to and connected to the AD converter. Is supplied with the reference voltage and first control means for previously obtaining an AD conversion value D O obtained by AD-converting the correction voltage by the AD converter to which a desired reference voltage is supplied. A correction coefficient K is calculated from the AD conversion value D S and the AD conversion value D O obtained by AD converting the correction voltage of the connected correction power source by the AD converter.
By the second control means for obtaining H and the AD converter to which the reference voltage is supplied, the AD conversion value D A obtained by AD converting the analog voltage of the connected analog circuit is multiplied by the correction coefficient KH. because it contains a third control means for determining a corrected AD conversion value D H, corrected AD conversion value D H of the analog voltage is very well matches the AD converted value D * when Vref = Vref *, the error It is no exaggeration to say that there is no such thing.

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

【図1】この発明の一実施例を一部回路図で示すブロッ
ク図である。
FIG. 1 is a block diagram showing a circuit diagram according to an embodiment of the present invention.

【図2】この発明の動作説明用フローチャートである。FIG. 2 is a flowchart for explaining the operation of the present invention.

【図3】この発明の実例を説明する図である。FIG. 3 is a diagram illustrating an example of the present invention.

【図4】従来方式を一部回路図で示すブロック図であるFIG. 4 is a block diagram showing a circuit diagram of a conventional method.

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

1 AD変換器 2 トランジスタ 5A MPU 8 アナログ回路 9 補正用電源 10 切換回路 1 AD converter 2 transistor 5A MPU 8 analog circuit 9 correction power supply 10 switching circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 AD変換器と、このAD変換器に接続さ
れてその基準電圧を供給するトランジスタと、測定した
物理量を表すアナログ電圧を供給するアナログ回路及び
所定の補正用電圧を供給する補正用電源と、これらアナ
ログ回路と補正用電源を前記AD変換器へ切り換えて接
続する切換手段と、前記AD変換器、前記トランジスタ
及び前記切換手段を制御する制御装置とを備え、 この制御装置は、 所望の基準電圧が供給されている前記AD変換器によ
り、前記補正用電圧をAD変換したAD変換値DOを予
め求めておく第1の制御手段と、 前記基準電圧が供給されている前記AD変換器により、
接続された前記補正用電源の補正用電圧をAD変換した
AD変換値DSと前記AD変換値DOから補正係数KHを
求める第2の制御手段と、 前記基準電圧が供給されている前記AD変換器により、
接続された前記アナログ回路のアナログ電圧をAD変換
したAD変換値DAに前記補正係数KHを乗じて補正し
たAD変換値DHを求める第3の制御手段と、を含むこ
とを特徴とするAD変換器のAD変換値補正装置。
1. An AD converter, a transistor which is connected to the AD converter and supplies a reference voltage thereof, an analog circuit which supplies an analog voltage representing a measured physical quantity, and a correction circuit which supplies a predetermined correction voltage. The control device includes a power supply, switching means for switching and connecting the analog circuit and the correction power supply to the AD converter, and a controller for controlling the AD converter, the transistor, and the switching means. First control means for previously obtaining an AD conversion value D O obtained by AD-converting the correction voltage by the AD converter to which the reference voltage is supplied; and the AD conversion to which the reference voltage is supplied. Depending on the vessel
Second control means for obtaining a correction coefficient KH from the AD conversion value D S obtained by AD converting the correction voltage of the connected correction power source and the AD conversion value D O, and the AD to which the reference voltage is supplied. With the converter,
AD, characterized in that it comprises a third control means for determining the connected AD conversion value D H to the analog voltage is corrected by multiplying the correction coefficient KH to AD conversion value D A which AD conversion of the analog circuit, the AD conversion value correction device of converter.
【請求項2】 前記AD変換値DOは、前記AD変換器
が8ビット変換器である場合に、式DO=INT(Vs
/Vref*×28)に基づいて算出される(たゞし、IN
Tはカッコ内の数値の小数点以下を切り捨てる整数化関
数であり、Vsは前記補正用電圧、そしてVref*は前
記所望の基準電圧である。)ことを特徴とする請求項1
のAD変換器のAD変換値補正装置。
2. The AD conversion value D O has the formula D O = INT (Vs when the AD converter is an 8-bit converter.
/ Vref * × 2 8 ) (calculated based on IN
T is an integer function that rounds off the number after the decimal point in parentheses, Vs is the correction voltage, and Vref * is the desired reference voltage. ) It is characterized by the above-mentioned.
AD conversion value correction device of the AD converter.
【請求項3】 前記補正係数は式KH=DO/DSに基づ
いて算出される(たゞし、DO及びDSは前記AD変換値
である。)ことを特徴とする請求項1のAD変換器のA
D変換値補正装置。
3. The correction coefficient is calculated based on the equation KH = D O / D S (where D O and D S are the AD conversion values). A of the AD converter
D conversion value correction device.
【請求項4】 前記制御装置は、前記アナログ電圧を次
々に取り込んでAD変換し、同一の補正係数KHで前記
AD変換値DAを補正する第4の制御手段を更に含むこ
とを特徴とする請求項1ないし3のいずれかのAD変換
器のAD変換値補正装置。
4. The control device further includes fourth control means for successively taking in the analog voltage, AD-converting the analog voltage, and correcting the AD conversion value D A with the same correction coefficient KH. An AD conversion value correction device for an AD converter according to claim 1.
【請求項5】 前記制御装置は、前記補正用電圧及び前
記アナログ電圧を交互に取り込んでAD変換し、その都
度求めた補正係数KHで前記アナログ電圧をAD変換し
た前記AD変換値DAを補正する第5の制御手段を更に
含むことを特徴とする請求項1ないし4のいずれかのA
D変換器のAD変換値補正装置。
5. The control device alternately takes in the correction voltage and the analog voltage, performs AD conversion, and corrects the AD conversion value D A obtained by AD-converting the analog voltage with a correction coefficient KH obtained each time. 5. The method according to claim 1, further comprising fifth control means for
AD conversion value correction device of D converter.
JP29725394A 1994-11-30 1994-11-30 Ad conversion value correction device for ad converter Pending JPH08162952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29725394A JPH08162952A (en) 1994-11-30 1994-11-30 Ad conversion value correction device for ad converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29725394A JPH08162952A (en) 1994-11-30 1994-11-30 Ad conversion value correction device for ad converter

Publications (1)

Publication Number Publication Date
JPH08162952A true JPH08162952A (en) 1996-06-21

Family

ID=17844144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29725394A Pending JPH08162952A (en) 1994-11-30 1994-11-30 Ad conversion value correction device for ad converter

Country Status (1)

Country Link
JP (1) JPH08162952A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007078465A (en) * 2005-09-13 2007-03-29 Seiko Epson Corp Voltage calculator
JP2007205725A (en) * 2006-01-30 2007-08-16 Fujitsu Ltd Portable information terminal device, voltage measuring device, voltage measuring method, and program
US9914472B2 (en) 2015-07-27 2018-03-13 Denso Corporation Motor controller and electric power steering device using same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007078465A (en) * 2005-09-13 2007-03-29 Seiko Epson Corp Voltage calculator
JP2007205725A (en) * 2006-01-30 2007-08-16 Fujitsu Ltd Portable information terminal device, voltage measuring device, voltage measuring method, and program
JP4733530B2 (en) * 2006-01-30 2011-07-27 富士通フロンテック株式会社 Portable information terminal device, voltage measuring device, voltage measuring method, and program
US9914472B2 (en) 2015-07-27 2018-03-13 Denso Corporation Motor controller and electric power steering device using same

Similar Documents

Publication Publication Date Title
US5764541A (en) Microprocessor controlled sensor signal conditioning circuit
JPS58210530A (en) Resistance thermometer
JP2005530148A (en) Apparatus and method for compensated sensor output
JPH08162952A (en) Ad conversion value correction device for ad converter
KR970058038A (en) Color coordinate correction device and control method according to luminance change
JPH08101074A (en) Temperature measuring circuit
JPH066218A (en) A/d converter with temperature compensating function
JP2001174489A (en) Digital voltmeter
JPH11118617A (en) Temperature controller
JPS63222516A (en) A/d conversion value correction method for a/d conversion circuit
JP2001255948A (en) Adjustment device for comparator reference voltage
JPH05322941A (en) Adjusting method for ac measuring apparatus
JPH0599961A (en) Measurement device
JPH04305168A (en) Method for correcting error and measuring quantity of electricity
JPH04323568A (en) Analogue measuring circuit
JPH04370769A (en) Correction method of voltage and current signal by using a/d converter
JPH10303753A (en) A/d converter, controller and lamp dimmer device
JP2001133488A (en) Ac voltage-measuring device and method
JP2626100B2 (en) Multi-point measuring device
JPH05282053A (en) Reference voltage detecting circuit
JPH05223611A (en) Air flowmeter
JPH04331475A (en) Inverter current detecting method
JPS63121320A (en) Da converter with error correcting circuit
JP2594915Y2 (en) Automatic balance adjustment device for amplifier circuit
JPH1188165A (en) Input device and input method for analog signal and recording medium