JPH11298327A - A/d conversion method and device, and correction data generation method for controller and device - Google Patents

A/d conversion method and device, and correction data generation method for controller and device

Info

Publication number
JPH11298327A
JPH11298327A JP10102823A JP10282398A JPH11298327A JP H11298327 A JPH11298327 A JP H11298327A JP 10102823 A JP10102823 A JP 10102823A JP 10282398 A JP10282398 A JP 10282398A JP H11298327 A JPH11298327 A JP H11298327A
Authority
JP
Japan
Prior art keywords
converter
control
target
digital data
conversion
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.)
Granted
Application number
JP10102823A
Other languages
Japanese (ja)
Other versions
JP3539199B2 (en
Inventor
Tetsuya Otaki
哲也 大瀧
Takeshi Amano
雄 天野
Atsushi Sugimura
敦司 杉村
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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP10282398A priority Critical patent/JP3539199B2/en
Publication of JPH11298327A publication Critical patent/JPH11298327A/en
Application granted granted Critical
Publication of JP3539199B2 publication Critical patent/JP3539199B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PROBLEM TO BE SOLVED: To A/D convert detection signals with accuracy higher than A/D conversion accuracy decided by the bit number of an A/D converter and to improve control accuracy with respect to an controller for digitally computing a controlled variable by using digital data for which the detection signals are A/D converted. SOLUTION: Relating to this device for fetching the detection signals from a detection resistor R0 for detecting a solenoid current Ic through an n-bit A/D converter 20 as a detection voltage Vm (digital value) and PWM controlling the current Ic so as to turn it to a target voltage, in order to prevent the decline of the control accuracy by the dispersion of a current detection system from the detection resistor R0 to the A/D converter 20, a known current is made to flow to the detection resistor R0, the detection voltage Vm obtained through the A/D converter 20 at the time is sampled for 2<m> times and the total sum is stored in an EEP-ROM 24 as voltage data for setting the target voltage. As a result, the voltage data become almost equivalent to the value A/D converted in the A/D converter of (n+m) bits, the target voltage is highly accurately set and further, the control accuracy is improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、制御対象の動作状
態を表すアナログの検出信号をA/D変換したデジタル
データを用いて制御対象の制御量をデジタル演算し制御
対象を制御する制御装置において、制御対象の制御精度
を向上するのに好適なA/D変換方法及び装置並びに補
正データの生成方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control apparatus for controlling a control target by digitally calculating a control amount of the control target by using digital data obtained by A / D conversion of an analog detection signal representing an operation state of the control target. The present invention relates to an A / D conversion method and apparatus suitable for improving control accuracy of a control target, and a method and apparatus for generating correction data.

【0002】[0002]

【従来の技術】従来より、制御対象の動作状態をセンサ
等を用いて検出し、その検出した動作状態と目標状態と
の偏差に基づき、制御対象を目標状態に制御するための
制御量を算出し、この算出した制御量に従い制御対象を
駆動制御する制御装置が知られている。また、この種の
制御装置の内、制御量を、マイクロコンピュータ等を用
いてデジタル演算するようにした装置では、センサから
の検出信号(アナログ信号)をA/D変換器を用いてデ
ジタルデータに変換するようにされている。
2. Description of the Related Art Conventionally, an operation state of a control target is detected by using a sensor or the like, and a control amount for controlling the control target to a target state is calculated based on a deviation between the detected operation state and the target state. A control device that drives and controls a control target in accordance with the calculated control amount is known. In this type of control device, in a device in which a control amount is digitally calculated using a microcomputer or the like, a detection signal (analog signal) from a sensor is converted into digital data using an A / D converter. The conversion has been made.

【0003】ところで、このようにA/D変換器を用い
て検出信号をA/D変換する制御装置では、A/D変換
器による検出信号のA/D変換精度が制御精度に大きな
影響を与えることから、A/D変換器にはできるだけ分
解能の高い(換言すればビット数の大きい)A/D変換
器を用いることが望ましい。しかし、A/D変換器の分
解能を上げると、その分、制御装置の製造コストが高く
なってしまう。
By the way, in such a control device that A / D converts a detection signal using an A / D converter, the accuracy of A / D conversion of the detection signal by the A / D converter greatly affects the control accuracy. Therefore, it is desirable to use an A / D converter with the highest possible resolution (in other words, a large number of bits) for the A / D converter. However, when the resolution of the A / D converter is increased, the manufacturing cost of the control device increases accordingly.

【0004】また、このようにA/D変換器を用いて検
出信号をA/D変換する制御装置では、A/D変換後の
デジタルデータが、A/D変換器自体のばらつきや、検
出信号を発生する検出装置からA/D変換器に至る信号
入力系のばらつき等によって、設計時のデータ値からず
れることがあるため、A/D変換器による検出信号のA
/D変換精度を高めるだけでは、制御精度が低下するこ
ともある。
In such a control device that A / D-converts a detection signal using an A / D converter, the digital data after the A / D conversion may cause variations in the A / D converter itself or the detection signal. May vary from the data value at the time of design due to variations in the signal input system from the detection device that generates the A / D converter to the A / D converter.
Simply increasing the / D conversion accuracy may decrease control accuracy.

【0005】そこで、従来では、例えば、特開平3−1
53980号公報に開示されているように、分解能の低
いA/D変換器を用いて、制御精度を向上するために、
A/D変換すべき検出信号の電圧範囲に応じて、A/D
変換器のダイナミックレンジを切り替えるようにすると
か、或いは、特開平9−172745号公報に開示され
ているように、制御装置の出荷時に、A/D変換器を実
際に動作させて所定の検出信号をA/D変換したデジタ
ルデータを取り込み、これを補正用のデータとして、E
EP−ROM等のメモリに記憶しておく、といったこと
が提案されている。
Therefore, conventionally, for example, Japanese Patent Laid-Open No.
As disclosed in JP-A-53980, in order to improve control accuracy by using an A / D converter having a low resolution,
A / D conversion is performed according to the voltage range of the detection signal to be A / D converted.
The dynamic range of the converter may be switched, or, as disclosed in Japanese Patent Application Laid-Open No. 9-172745, the A / D converter is actually operated at the time of shipment of the control device and a predetermined detection signal is output. A / D-converted digital data is taken in, and this is used as correction data.
It has been proposed to store it in a memory such as an EP-ROM.

【0006】即ち、特開平3−153980号にて提案
された装置では、一つのA/D変換器を用いて複数の入
力信号をA/D変換するようにし、各入力信号の電圧変
動幅に応じて、A/D変換器側の基準電圧を切り替える
ことにより、A/D変換器にてA/D変換可能な入力信
号の電圧範囲(ダイナミックレンジ)を切り替える。こ
の結果、各入力信号に応じて、A/D変換により得られ
るデジタルデータ1ビット当たりの電圧変化量を切り替
えることができ、A/D変換器を全ての入力信号をA/
D変換できるように一定の基準電圧で動作させた場合に
比べて、電圧変動幅の小さい入力信号のA/D変換精度
を、分解能の高いA/D変換器を用いてA/D変換した
場合と同等の精度にすることが可能になる。
That is, in the device proposed in Japanese Patent Application Laid-Open No. 3-153980, a plurality of input signals are A / D-converted using one A / D converter, and the voltage fluctuation width of each input signal is controlled. Accordingly, the voltage range (dynamic range) of the input signal that can be A / D converted by the A / D converter is switched by switching the reference voltage on the A / D converter side. As a result, the amount of voltage change per bit of digital data obtained by A / D conversion can be switched in accordance with each input signal, and the A / D converter converts all input signals to A / D.
When the A / D conversion accuracy of an input signal having a small voltage fluctuation width is converted by using an A / D converter having a high resolution as compared with the case where the operation is performed at a constant reference voltage so that D conversion can be performed. It is possible to achieve the same accuracy as.

【0007】一方、特開平9−172745号にて提案
された装置では、出荷時に、制御対象を予め設定された
動作状態で動作させた際に得られる検出信号をA/D変
換器を用いて実際にA/D変換させ、このA/D変換に
て得られたデジタルデータを制御対象の動作状態と関連
づけてメモリに記憶しておくことで、出荷後に実際に制
御対象を制御する際には、このメモリに記憶された補正
データを用いて、A/D変換器を介して得られたデジタ
ルデータを制御対象の実際の動作状態に対応したデータ
値(設計理論値)に補正し、その補正後のデジタルデー
タを用いて制御量を算出することで、センサからの検出
信号をA/D変換して取り込むA/D変換部分のばらつ
きに影響されることなく、制御対象を高精度に制御でき
るようにしている。
On the other hand, in an apparatus proposed in Japanese Patent Application Laid-Open No. 9-172745, a detection signal obtained when a controlled object is operated in a preset operation state at the time of shipment is determined by using an A / D converter. By actually performing A / D conversion and storing the digital data obtained by the A / D conversion in a memory in association with the operation state of the control target, when the control target is actually controlled after shipment, Using the correction data stored in the memory, the digital data obtained through the A / D converter is corrected to a data value (design theoretical value) corresponding to the actual operation state of the control target, and the correction is performed. By calculating the control amount using the subsequent digital data, it is possible to control the control target with high accuracy without being affected by the variation in the A / D conversion part that A / D converts the detection signal from the sensor. I am doing

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記前
者の装置では、A/D変換器にてA/D変換する入力信
号を切り替える度に、A/D変換器の基準電圧を切り替
えることから、そのための回路が必要であり、装置構成
が複雑になるという問題がある。また、複数の入力信号
を時分割でA/D変換することから、制御のために各入
力信号のA/D変換値(デジタルデータ)を同時若しく
は短時間で取り込む必要がある制御装置には、適用でき
ないという問題がある。また更に、A/D変換精度を上
げることができるのは、A/D変換器のダイナミックレ
ンジを最大にしたときの入力信号の電圧範囲よりも小さ
い電圧変動幅で変動する入力信号だけであり、電圧変動
幅の大きな入力信号のA/D変換精度を高めることはで
きないという問題もある。
However, in the former device, the reference voltage of the A / D converter is switched every time the input signal to be A / D converted by the A / D converter is switched. And the circuit configuration is complicated. In addition, since a plurality of input signals are A / D-converted in a time-division manner, a control device that needs to take in A / D conversion values (digital data) of each input signal simultaneously or in a short time for control includes: There is a problem that it cannot be applied. Further, the A / D conversion accuracy can be improved only by an input signal that fluctuates with a voltage fluctuation width smaller than the voltage range of the input signal when the dynamic range of the A / D converter is maximized. There is also a problem that the A / D conversion accuracy of an input signal having a large voltage fluctuation width cannot be improved.

【0009】一方、上記後者の装置では、出荷時にメモ
リに記憶した補正データを用いて、検出信号のA/D変
換部分の特性のばらつきに伴う制御精度の低下を防止す
ることはできるが、その補正データの精度は、制御装置
に設けられたA/D変換器の精度によって一義的に定ま
ることから、制御精度を高めるには、A/D変換器に分
解能の高い高価なA/D変換器を用いなければならない
という問題がある。
On the other hand, in the latter device, although the correction data stored in the memory at the time of shipment can be used to prevent the control accuracy from being lowered due to the variation in the characteristics of the A / D conversion portion of the detection signal, it is possible to prevent this. Since the accuracy of the correction data is uniquely determined by the accuracy of the A / D converter provided in the control device, to increase the control accuracy, an expensive A / D converter having a high resolution is required for the A / D converter. There is a problem that must be used.

【0010】本発明は、こうした問題に鑑みなされたも
のであり、検出信号をA/D変換したデジタルデータを
用いて制御対象の制御量をデジタル演算することにより
制御対象をフィードバック制御する制御装置において、
検出信号のA/D変換に実際に使用するA/D変換器よ
りも高分解能のA/D変換器を用いて検出信号をA/D
変換した場合と同じ制御精度を実現し得るようにするこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and a control apparatus for performing a digital operation of a control amount of a control target using digital data obtained by A / D-converting a detection signal to perform feedback control of the control target. ,
The detection signal is A / D converted using an A / D converter having a higher resolution than the A / D converter actually used for A / D conversion of the detection signal.
It is an object of the present invention to realize the same control accuracy as in the case of conversion.

【0011】[0011]

【課題を解決するための手段】かかる目的を達成するた
めになされた請求項1に記載の発明は、制御対象の動作
状態に対応したアナログの検出信号を発生する検出手段
を備え、この検出手段から出力された検出信号をA/D
変換したデジタルデータに基づき、制御対象の制御量を
デジタル演算する制御装置において、検出手段から出力
される検出信号をnビットのA/D変換器を用いてデジ
タルデータに変換する際のA/D変換方法に関するもの
である。
According to a first aspect of the present invention, there is provided a detecting means for generating an analog detection signal corresponding to an operation state of a controlled object. A / D
An A / D converter for converting a detection signal output from a detection unit into digital data using an n-bit A / D converter in a control device that digitally calculates a control amount of a control target based on the converted digital data. It relates to a conversion method.

【0012】そして、このA/D変換方法では、検出手
段から制御対象の同一動作状態での検出信号が出力され
ているときに、A/D変換器を少なくとも2m 回(但し
mは整数)以上繰り返し動作させ、このA/D変換器の
動作により得られる2m 個のデジタルデータの総和を算
出する。
In this A / D conversion method, the A / D converter is operated at least 2 m times (where m is an integer) when the detection means outputs a detection signal of the control object in the same operation state. The above operation is repeated, and the total sum of 2 m digital data obtained by the operation of the A / D converter is calculated.

【0013】この結果、本発明方法によれば、nビット
のA/D変換器を用いて、これより分解能の高い、(n
+m)ビットのA/D変換器を用いた場合と同等の精度
のデジタルデータが得られるようになる。従って、本発
明方法を用いれば、制御対象をフィードバック制御する
制御装置において、A/D変換器の分解能を高めること
なく、制御対象の制御精度を向上することが可能にな
り、高精度な制御を実現し得る制御装置を安価に実現で
きることになる。
As a result, according to the method of the present invention, using an n-bit A / D converter, (n)
Digital data with the same accuracy as that obtained when the A / D converter of (+ m) bits is used can be obtained. Therefore, by using the method of the present invention, it is possible to improve the control accuracy of the control target without increasing the resolution of the A / D converter in the control device for performing the feedback control of the control target, thereby achieving high-precision control. A control device that can be realized can be realized at low cost.

【0014】尚、A/D変換器のA/D変換動作により
得られた2m 個のデジタルデータの総和から、(n+
m)ビットのA/D変換器を用いた場合と同等のデジタ
ルデータが得られる理由は、以下の通りである。即ち、
制御装置において検出手段から出力される検出信号は、
たとえ制御対象の動作状態が一定であっても、微妙に変
動しており、A/D変換器を介して得られるデジタルデ
ータの下位ビット(少なくとも最下位ビット)では変動
が生じる。従って、A/D変換器を介して得られる2m
個のデジタルデータの下位ビットはばらつき、その総和
を算出すれば、各デジタルデータの変動分を加算平均し
た値となる。従って、2m 個のデジタルデータの総和の
下位mビット分は、その平均値の小数点以下の値に対応
することになり、その総和は、(n+m)ビットのA/
D変換器を用いて検出信号をA/D変換した値と同等の
デジタルデータになるのである。
Note that, from the sum of 2 m digital data obtained by the A / D conversion operation of the A / D converter, (n +
The reason why digital data equivalent to the case of using the m) -bit A / D converter is obtained is as follows. That is,
The detection signal output from the detection means in the control device is:
Even if the operation state of the control target is constant, it fluctuates delicately, and fluctuation occurs in the lower bits (at least the least significant bits) of the digital data obtained via the A / D converter. Therefore, 2 m obtained via the A / D converter
The lower bits of the pieces of digital data vary, and if the sum is calculated, a value obtained by adding and averaging the variation of each digital data is obtained. Therefore, the lower m bits of the total sum of the 2 m digital data correspond to the value after the decimal point of the average value, and the total sum is (n + m) bits of A / A
It becomes digital data equivalent to a value obtained by A / D converting the detection signal using the D converter.

【0015】また、検出信号をA/D変換した2m 個の
デジタルデータを取り込むために、A/D変換器を動作
させる回数としては、単に2m 回にしてもよく、2m
よりも多い回数にしてもよい。そして、例えば、2m
よりも多い(2m +α)回に設定した場合には、A/D
変換器の誤動作等によって異常なデジタルデータが得ら
れた際に、その異常なデジタルデータを除くデジタルデ
ータの中から、2m 個分のデジタルデータを取り込み、
その総和を算出できるので、A/D変換結果として得ら
れる総和(デジタルデータ)の精度をより向上できる。
また例えば、A/D変換器によるA/D変換の回数を、
(m+1) 回にして、その総和を算出し、総和の値を2で
割る(具体的には、総和を表すデジタルデータの下位1
ビットを除去する)ことによって、検出信号のA/D変
換値として、(n+m)ビットのデジタルデータを得る
ようにしてもよい。
In order to take in 2 m digital data obtained by A / D conversion of the detection signal, the number of times the A / D converter is operated may be simply 2 m times, and may be more than 2 m times. A larger number may be used. For example, when the number of times is set to be more than 2 m times (2 m + α), the A / D
When abnormal digital data is obtained due to converter malfunction, etc., 2 m digital data is fetched from the digital data excluding the abnormal digital data.
Since the sum can be calculated, the accuracy of the sum (digital data) obtained as an A / D conversion result can be further improved.
Also, for example, the number of A / D conversions by the A / D converter is
2 (m + 1) times, calculate the sum, and divide the sum by 2 (specifically, the lower one of the digital data representing the sum)
By removing the bits), (n + m) -bit digital data may be obtained as an A / D conversion value of the detection signal.

【0016】次に、請求項2に記載の発明は、上記請求
項1に記載のA/D変換方法を実現するために前記制御
装置に設けられるA/D変換装置に関するものである。
そして、このA/D変換装置では、外部から検出信号の
A/D変換指令を受けると、A/D変換制御手段が、n
ビットのA/D変換器を少なくとも2m 回以上繰り返し
動作させ、総和算出手段が、A/D変換器の動作によっ
て得られる2m 回個のデジタルデータの総和を算出し、
この算出2m 個のデジタルデータの総和を、検出信号を
A/D変換したデジタルデータとして出力するように構
成される。
Next, the invention according to a second aspect relates to an A / D conversion device provided in the control device for realizing the A / D conversion method according to the first aspect.
In this A / D converter, when an A / D conversion command of the detection signal is received from the outside, the A / D conversion control means sets n
The bit A / D converter is repeatedly operated at least 2 m times or more, and the sum calculating means calculates the sum of 2 m digital data obtained by the operation of the A / D converter,
The sum of the calculated 2 m digital data is output as digital data obtained by A / D converting the detection signal.

【0017】このため、請求項2に記載のA/D変換装
置によれば、請求項1に記載のA/D変換方法を実現で
き、このA/D変換装置を上述の制御装置に設けること
により、制御装置の制御精度を向上できる。そして、A
/D変換装置が設けられる制御装置が、制御量の演算の
ためにマイクロコンピュータを備えている場合には、当
該A/D変換装置を構成するA/D変換制御手段及び総
和算出手段についても、このマイクロコンピュータが実
行するプログラムにて簡単に実現することができること
から、制御装置に極めて簡単に組み込むことができるこ
とになり、制御精度を向上するために、制御装置の構成
が複雑になってコストアップを招く、といったこともな
い。
Therefore, according to the A / D converter according to the second aspect, the A / D conversion method according to the first aspect can be realized, and the A / D converter is provided in the control device. Thereby, the control accuracy of the control device can be improved. And A
When the control device provided with the / D conversion device includes a microcomputer for calculating the control amount, the A / D conversion control means and the sum calculation means constituting the A / D conversion device also include: Since it can be easily realized by the program executed by the microcomputer, it can be incorporated into the control device very easily. In order to improve the control accuracy, the configuration of the control device becomes complicated and cost increases. There is no such thing as inviting.

【0018】一方、請求項3に記載の発明は、前述の特
開平9−172745号公報に開示された装置のよう
に、検出信号をA/D変換器を介して取り込むA/D変
換部分の特性のばらつきによる制御精度の低下を防止す
るために予め補正データ記憶手段に補正データを記憶し
ておき、実際に制御を行う際には、その補正データを用
いてA/D変換器により得られたデジタルデータ又は制
御目標を表す目標データを補正するようにした制御装置
において、請求項1に記載のA/D変換方法を利用し
て、補正データ記憶手段に格納する補正データを生成す
る方法に関するものである。
On the other hand, the invention according to claim 3 is an A / D conversion part which takes in a detection signal via an A / D converter as in the device disclosed in the above-mentioned Japanese Patent Application Laid-Open No. 9-172745. Correction data is stored in advance in correction data storage means in order to prevent a decrease in control accuracy due to variations in characteristics, and when control is actually performed, the correction data is obtained by an A / D converter using the correction data. In a control device for correcting target digital data or target data representing a control target, a method for generating correction data to be stored in correction data storage means using the A / D conversion method according to claim 1. Things.

【0019】即ち、まず本発明方法が適用される制御装
置には、A/D変換器により得られるデジタルデータと
制御対象の実際の動作状態との関係を表す補正データが
予め記憶された補正データ記憶手段が備えられ、データ
補正手段が、制御量算出手段が制御量を算出するのに使
用するデジタルデータ及び目標データのいずれかを、補
正データ記憶手段に記憶された補正データに基づき補正
し、各データ間で生じる制御対象の実際の動作状態に対
するずれを相殺する。
That is, first, a control device to which the method of the present invention is applied has correction data in which correction data representing a relationship between digital data obtained by an A / D converter and an actual operation state of a control object are stored in advance. A storage unit is provided, and the data correction unit corrects any of the digital data and the target data used by the control amount calculation unit to calculate the control amount based on the correction data stored in the correction data storage unit, The deviation from the actual operation state of the control object between the respective data is canceled.

【0020】つまり、制御量算出手段は、A/D変換器
にて得られたデジタルデータは制御対象の動作状態を正
確に表しているものとして制御量を算出するが、制御量
算出手段に取り込まれるデジタルデータは、A/D変換
器自体のばらつきや検出手段からA/D変換器に至る検
出信号の入力経路のばらつきの影響を受けて、設計理論
値からずれることがある。
That is, the control amount calculating means calculates the control amount on the assumption that the digital data obtained by the A / D converter accurately represents the operation state of the control object. Digital data may be deviated from the design theoretical value due to the influence of variations in the A / D converter itself and variations in the input path of the detection signal from the detection means to the A / D converter.

【0021】そこで、この制御装置では、A/D変換器
により得られるデジタルデータの設計理論値からのずれ
による制御精度の低下を防止するために、A/D変換器
により得られるデジタルデータと制御対象の実際の動作
状態との関係を表す補正データを補正データ記憶手段に
記憶しておき、制御対象を実際に制御する際には、デー
タ補正手段により、制御量算出手段が制御量の演算に用
いるデジタルデータ及び目標データのいずれかを、補正
データ記憶素段に記憶した補正データを用いて補正する
ことにより、デジタルデータと目標データとの間で生じ
る制御対象の実際の動作状態に対するずれを相殺するの
である。
Therefore, in this control device, in order to prevent a decrease in control accuracy due to a deviation of the digital data obtained by the A / D converter from the design theoretical value, the digital data obtained by the A / D converter and the control data are controlled. Correction data representing the relationship with the actual operating state of the target is stored in the correction data storage means, and when the control target is actually controlled, the data correction means causes the control amount calculation means to calculate the control amount. Either the digital data to be used or the target data is corrected using the correction data stored in the correction data storage element, thereby offsetting a shift between the digital data and the target data from the actual operation state of the control target. You do it.

【0022】そして、このような制御装置では、補正デ
ータ記憶手段に、A/D変換器を用いて実際にA/D変
換したデジタルデータを、そのときの制御対象の動作状
態に関連づけて記憶させる必要があるが、この場合、A
/D変換器によるA/D変換結果をそのまま補正データ
記憶手段に格納するようにすると、補正データの精度
が、A/D変換器の精度によって一義的に定まり、制御
対象の制御精度は、使用するA/D変換器の分解能にて
固定されてしまう。
In such a control device, the correction data storage means stores the digital data actually A / D converted using the A / D converter in association with the operation state of the control object at that time. But in this case, A
If the result of the A / D conversion by the A / D converter is stored in the correction data storage means as it is, the accuracy of the correction data is uniquely determined by the accuracy of the A / D converter, and the control accuracy of the control object is not used. Is fixed at the resolution of the A / D converter.

【0023】そこで、本発明方法では、補正データ記憶
手段に格納する補正データを生成するに当たって、ま
ず、制御対象を予め設定された特定動作状態で動作させ
た際の検出信号を前記検出手段から出力させると共に、
A/D変換器を少なくとも2m回以上繰り返し動作させ
る。そして、このA/D変換器の動作によって得られる
m 個のデジタルデータの総和を、制御対象の特定動作
状態に対応した補正データとして算出し、その算出結果
を補正データ記憶手段に格納するのである。
Therefore, in the method of the present invention, when generating correction data to be stored in the correction data storage means, first, a detection signal when the control target is operated in a predetermined specific operation state is output from the detection means. Let me
The A / D converter is repeatedly operated at least 2 m times or more. Then, the sum of 2 m digital data obtained by the operation of the A / D converter is calculated as correction data corresponding to the specific operation state of the control target, and the calculation result is stored in the correction data storage means. is there.

【0024】この結果、本発明方法によれば、制御装置
の補正データ記憶手段に格納される補正データの精度
を、検出信号を実際にA/D変換するA/D変換器の精
度よりも高くすることができ、制御装置が実際に制御対
象を制御した際には、制御量算出手段が制御量の演算に
用いるデジタルデータ若しくは目標データを高精度に補
正することが可能になる。よって、本発明方法によれ
ば、制御装置のA/D変換部分の特性のばらつきによ
り、A/D変換器により得られたデジタルデータが設計
理論値からずれていても、制御量を演算する際に用いら
れるデジタルデータと目標データとの間の制御対象の実
際の動作状態に対するずれを高精度に相殺させることが
可能になり、前述の特開平9−172745号公報に開
示された従来装置に比べ、制御対象の制御精度を向上す
ることができる。
As a result, according to the method of the present invention, the accuracy of the correction data stored in the correction data storage means of the control device is higher than the accuracy of the A / D converter for actually A / D converting the detection signal. When the control device actually controls the control target, the control amount calculating means can correct digital data or target data used for calculating the control amount with high accuracy. Therefore, according to the method of the present invention, even when the digital data obtained by the A / D converter deviates from the design theoretical value due to the variation in the characteristics of the A / D conversion part of the control device, the control amount is calculated. It is possible to offset the deviation between the actual operation state of the controlled object between the digital data used for the target data and the target data with high accuracy, as compared with the conventional apparatus disclosed in the above-mentioned Japanese Patent Application Laid-Open No. 9-172745. Thus, the control accuracy of the control target can be improved.

【0025】尚、本発明方法により補正データを生成す
るには、検出手段から、制御対象を予め設定された特定
動作状態で動作させた際の検出信号を出力させる必要が
あるが、このためには、制御対象を実際に特定動作状態
で動作させて、その動作状態を検出手段に検出させるよ
うにしてもよく、或いは、検出手段を擬似的に動作させ
て、検出手段から、制御対象を特定動作状態で動作させ
たときと同等の検出信号を擬似的に出力させるようにし
てもよい。
In order to generate correction data by the method of the present invention, it is necessary to output a detection signal when the control target is operated in a predetermined specific operation state from the detection means. May be such that the control target is actually operated in the specific operation state and the operation state is detected by the detection unit, or the detection unit is pseudo-operated to specify the control target from the detection unit. A detection signal equivalent to that when operating in the operating state may be output in a pseudo manner.

【0026】次に、請求項4に記載の発明は、請求項3
に記載の補正データ生成方法を実現するために、上述の
制御装置に設けられる補正データ生成装置に関するもの
である。そして、この補正データ生成装置においては、
外部から制御対象の特定動作状態に対応した補正データ
の生成指令が入力されると、A/D変換制御手段が、A
/D変換器を少なくとも2m 回以上繰り返し動作させ、
総和算出手段が、A/D変換器の動作によって得られる
m 個のデジタルデータの総和を算出し、補正データ格
納手段が、その算出された2m 個のデジタルデータの総
和を、制御対象の特定動作状態に対応した補正データと
して補正データ記憶手段に格納する。
Next, a fourth aspect of the present invention is directed to the third aspect.
The present invention relates to a correction data generation device provided in the control device described above in order to realize the correction data generation method described in (1). And in this correction data generation device,
When a command to generate correction data corresponding to the specific operation state of the control target is input from outside, the A / D conversion control means
Operating the / D converter at least 2 m times or more,
The sum calculation means calculates the sum of 2 m digital data obtained by the operation of the A / D converter, and the correction data storage means calculates the sum of the calculated 2 m digital data as a control target. The correction data corresponding to the specific operation state is stored in the correction data storage unit.

【0027】このため、請求項4に記載の補正データ生
成装置によれば、制御対象を実際に動作させるか、或い
は検出手段を擬似的に動作させることにより、検出手段
から制御対象を予め設定された特定動作状態で動作させ
た際の検出信号を出力させた状態で、A/D変換制御手
段に対して、補正データの生成指令を入力すれば、請求
項3に記載の補正データ生成方法に従い、補正データが
自動で生成されて、制御装置の補正データ記憶手段に格
納されることになり、制御装置の制御精度を向上するこ
とが可能になる。
Therefore, according to the correction data generation device of the present invention, the control target is set in advance by the detection means by actually operating the control target or by simulating the detection means. The correction data generation method according to claim 3, wherein a correction data generation command is input to the A / D conversion control means in a state where the detection signal when the operation is performed in the specific operation state is output. The correction data is automatically generated and stored in the correction data storage means of the control device, so that the control accuracy of the control device can be improved.

【0028】そして、A/D変換装置が設けられる制御
装置が、制御量の演算のためにマイクロコンピュータを
備えている場合には、当該補正データ生成装置を構成す
るA/D変換制御手段,総和算出手段,及び補正データ
格納手段についても、このマイクロコンピュータが実行
するプログラムにて簡単に実現することができることか
ら、制御装置に極めて簡単に組み込むことができること
になり、制御精度を向上するために、制御装置の構成が
複雑になってコストアップを招く、といったこともな
い。
If the control device provided with the A / D conversion device includes a microcomputer for calculating the control amount, the A / D conversion control means constituting the correction data generating device, The calculation means and the correction data storage means can also be easily realized by the program executed by the microcomputer, so that they can be incorporated into the control device very easily. It does not mean that the configuration of the control device becomes complicated and causes an increase in cost.

【0029】[0029]

【発明の実施の形態】以下に、本発明の実施例を図面と
共に説明する。図1は、本発明が適用された自動車用電
子制御装置(以下ECUという)2の概略構成を表す構
成図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram showing a schematic configuration of an electronic control unit for a vehicle (hereinafter referred to as an ECU) 2 to which the present invention is applied.

【0030】ECU2は、自動車に搭載された自動変速
機の変速段やロックアップ等を制御する自動変速機制御
(AT制御)用の制御装置であり、AT制御のための各
種演算処理を実行する制御回路10として、CPU,R
OM,RAM等からなるマイクロコンピュータを備えて
いる。この制御回路10には、図示しない車速センサ,
シフト位置センサ等の各種センサからの検出信号やエン
ジン制御装置からのエンジン状態信号(回転数,スロッ
トル開度等を表す信号)等が入力される。そして、制御
回路10は、予めROMに記憶された制御プログラムに
従い、これら入力信号に基づきAT制御のための各種演
算処理を実行し、その演算結果に基づき自動変速機に設
けられたソレノイド等の各種アクチュエータをフィード
バック制御する。
The ECU 2 is a control device for automatic transmission control (AT control) for controlling the gear position and lock-up of the automatic transmission mounted on the vehicle, and executes various arithmetic processes for AT control. As the control circuit 10, CPU, R
A microcomputer including an OM, a RAM, and the like is provided. The control circuit 10 includes a vehicle speed sensor (not shown),
Detection signals from various sensors such as a shift position sensor and an engine state signal (a signal indicating a rotation speed, a throttle opening, etc.) from an engine control device are input. The control circuit 10 executes various arithmetic processes for AT control based on these input signals in accordance with a control program stored in the ROM in advance, and based on the arithmetic results, various types of solenoids and the like provided in the automatic transmission. Feedback control of the actuator.

【0031】そこで、本実施例では、制御回路10が実
行するフィードバック制御の一例として、自動変速機の
ライン圧(油圧)制御のために、ライン圧制御用ソレノ
イド(以下単にソレノイドという)12に流れるソレノ
イド電流Icをフィードバック制御する場合について説
明する。
Therefore, in the present embodiment, as an example of the feedback control executed by the control circuit 10, a line pressure control solenoid (hereinafter simply referred to as a solenoid) 12 for controlling the line pressure (hydraulic pressure) of the automatic transmission is used. A case where feedback control of the solenoid current Ic is performed will be described.

【0032】図1に示す如く、制御対象であるソレノイ
ド12の一端には、バッテリ電圧VBTが印加されてお
り、ECU2には、ソレノイド12の他端をグランドラ
インに接地するか否かを切り換えるスイッチング用のト
ランジスタ14が設けられ、更に、トランジスタ14か
らグランドラインに至る電流経路には、検出手段とし
て、ソレノイド電流Icを電圧値として検出するための
検出抵抗R0が設けられている。
As shown in FIG. 1, a battery voltage VBT is applied to one end of a solenoid 12 to be controlled, and a switching operation is performed by the ECU 2 to switch whether or not the other end of the solenoid 12 is grounded to a ground line. Further, a detection resistor R0 for detecting the solenoid current Ic as a voltage value is provided in a current path from the transistor 14 to the ground line.

【0033】そして、この検出抵抗R0の両端は、夫
々、抵抗R1,R2を介して、オペアンプ16の非反転
入力端子(+)及び反転入力端子(−)に接続されてい
る。オペアンプ16は、非反転入力端子(+)と出力端
子とを抵抗R3を介して接続することにより、差動増幅
器として動作するよう構成されており、検出抵抗R0の
両端電圧(つまりソレノイド電流Icの検出信号)は、
オペアンプ16にて増幅される。そして、オペアンプ1
6で増幅された検出信号は、抵抗R4と一端がグランド
ラインに接地されたコンデンサC4とからなる平滑回路
(換言すれば積分回路)18にて平滑された後、抵抗R
5を介して、制御回路10に入力される。
Both ends of the detection resistor R0 are connected to the non-inverting input terminal (+) and the inverting input terminal (-) of the operational amplifier 16 via the resistors R1 and R2, respectively. The operational amplifier 16 is configured to operate as a differential amplifier by connecting a non-inverting input terminal (+) and an output terminal via a resistor R3, and operates as a voltage across the detection resistor R0 (that is, the voltage of the solenoid current Ic). Detection signal)
The signal is amplified by the operational amplifier 16. And the operational amplifier 1
The detection signal amplified at 6 is smoothed by a smoothing circuit (in other words, an integrating circuit) 18 including a resistor R4 and a capacitor C4 having one end grounded to the ground line, and then the resistance R
5, and is input to the control circuit 10.

【0034】尚、トランジスタ14は、コレクタがソレ
ノイド12に接続され、エミッタが検出抵抗R0を介し
てグランドラインに接地されたNPNトランジスタにて
構成されている。また、実際には、トランジスタ14及
び検出抵抗R0が設けられるソレノイド12の通電経路
には、トランジスタ14がターンオフした際にソレノイ
ド12に蓄積されたエネルギにより発生する高電圧をバ
ッテリ側に戻し、ソレノイド12に電流を流し続けるた
めのダイオードや、このときソレノイド12に流れる電
流を検出してオペアンプ16に入力するための電流検出
用抵抗等も設けられるが、こうした駆動系の構成は従来
より周知であり、また本発明の主要部でもないので、本
実施例では、説明を簡単にするために、駆動系の構成は
図1に示す如くなっているものとする。
The transistor 14 is composed of an NPN transistor whose collector is connected to the solenoid 12 and whose emitter is grounded to the ground line via the detection resistor R0. Also, in practice, a high voltage generated by energy accumulated in the solenoid 12 when the transistor 14 is turned off is returned to the battery side in an energizing path of the solenoid 12 provided with the transistor 14 and the detection resistor R0. And a current detecting resistor for detecting the current flowing through the solenoid 12 and inputting the current to the operational amplifier 16 are provided. The configuration of such a driving system is conventionally known. In addition, since it is not a main part of the present invention, in this embodiment, it is assumed that the configuration of the drive system is as shown in FIG.

【0035】一方、制御回路10は、抵抗R5を介して
入力される検出信号(アナログ電圧信号)をA/D変換
するA/D変換器20を内蔵しており、A/D変換器2
0を介して入力されたデジタルデータ(以下単に検出電
圧という)Vmからソレノイド電流Icを検知して、こ
のソレノイド電流Icがライン圧制御に必要な目標電流
Itgとなるように、トランジスタ14をオン・オフさせ
る。
On the other hand, the control circuit 10 has a built-in A / D converter 20 for A / D converting a detection signal (analog voltage signal) input via the resistor R5.
The solenoid 14 detects the solenoid current Ic from the digital data (hereinafter simply referred to as detection voltage) Vm input through the transistor 0, and turns on the transistor 14 so that the solenoid current Ic becomes the target current Itg necessary for the line pressure control. Turn off.

【0036】即ち、制御回路10には、トランジスタ1
4を、デューティ比を制御したパルス幅変調信号(PW
M信号)にて周期的にオン・オフさせることにより、ソ
レノイド電流Icを制御するために、PWM信号出力回
路22が設けられている。そして、制御回路10は、図
2に示す如く、PWM信号出力回路22から出力される
PWM信号のデューティ比(換言すればパルス幅)を、
ソレノイド電流Icを表す検出電圧Vmと、自動変速機
のライン圧を目標油圧に制御するのに必要な目標電流I
tgから設定した目標電圧Vtgとの偏差に応じて増・減さ
せることにより、ソレノイド電流Icを目標電流Itgに
制御する。
That is, the control circuit 10 includes the transistor 1
4 is a pulse width modulation signal (PW
A PWM signal output circuit 22 is provided to control the solenoid current Ic by periodically turning on and off with the M signal). Then, as shown in FIG. 2, the control circuit 10 sets the duty ratio (in other words, the pulse width) of the PWM signal output from the PWM signal output circuit 22 to
A detection voltage Vm representing the solenoid current Ic and a target current I necessary for controlling the line pressure of the automatic transmission to a target oil pressure.
The solenoid current Ic is controlled to the target current Itg by increasing / decreasing according to the deviation from the target voltage Vtg from the target voltage Vtg.

【0037】また、ECU2には、制御回路10が目標
電流Itgから目標電圧Vtgを設定する際に、この目標電
圧Vtgとソレノイド電流Icとの対応関係が、A/D変
換器20を介して得られる検出電圧Vmとソレノイド電
流Icとの対応関係と一致し、検出電圧Vmと目標電圧
Vtgとの偏差(本実施例ではその大小関係)から、PW
M信号のデューティ比(換言すればソレノイド電流I
c)を正確に制御できるようにするための電圧データが
予め格納されたEEP−ROM24が設けられている。
尚、このEEP−ROM24は、請求項3,4に記載の
補正データ格納手段に相当し、内部に格納された電圧デ
ータは、請求項3,4に記載の補正データに相当する。
When the control circuit 10 sets the target voltage Vtg from the target current Itg, the ECU 2 obtains, via the A / D converter 20, the correspondence between the target voltage Vtg and the solenoid current Ic. And the deviation between the detected voltage Vm and the target voltage Vtg (the magnitude relationship in the present embodiment), the PW
M signal duty ratio (in other words, solenoid current I
An EEP-ROM 24 in which voltage data for accurately controlling c) is stored is provided.
The EEP-ROM 24 corresponds to the correction data storage means according to the third and fourth aspects, and the voltage data stored therein corresponds to the correction data according to the third and fourth aspects.

【0038】以下、このようにソレノイド電流Icを制
御するために制御回路10において実行される制御量演
算処理を説明する。この制御量演算処理は、例えば、P
WM信号出力回路22がPWM信号を出力する周期に同
期して、一定時間毎に実行される処理であり、図3に示
す如く、この処理が開始されると、まずS110(Sは
ステップを表す)にて、図示しないセンサから入力され
た自動車の運転状態に基づき、自動変速機のライン圧の
目標油圧Ptgを算出する。そして、続くS120では、
この目標油圧Ptgから、図4に例示する目標電流算出用
マップを用いて、ソレノイド12に流す目標電流Itgを
算出し、続くS130にて、この算出した目標電流Itg
から、A/D変換器20を介して得られる検出電圧Vm
に対応した目標電圧Vtgを算出する。
Hereinafter, a control amount calculation process executed in the control circuit 10 to control the solenoid current Ic will be described. This control amount calculation process is performed by, for example, P
This process is executed at regular intervals in synchronization with the cycle in which the WM signal output circuit 22 outputs the PWM signal. As shown in FIG. 3, when this process is started, first, S110 (S represents a step) ), The target hydraulic pressure Ptg of the line pressure of the automatic transmission is calculated based on the driving state of the vehicle input from a sensor (not shown). Then, in the following S120,
From the target oil pressure Ptg, a target current Itg to be supplied to the solenoid 12 is calculated using a target current calculation map illustrated in FIG. 4, and in S130, the calculated target current Itg is calculated.
From the detection voltage Vm obtained through the A / D converter 20
Is calculated for the target voltage Vtg.

【0039】目標電圧Vtgの算出には、EEP−ROM
24に格納された電圧データが使用されるが、ソレノイ
ド電流Icと検出電圧Vmとは比例し、目標電流Itgか
ら目標電圧Vtgを設定する際にも、目標電流Itgに比例
するように目標電圧Vtgを設定すればよいため、EEP
−ROM34には、電圧データとして、図5に示す如
く、検出抵抗R0に第1基準電流Ist1 を流したときに
A/D変換器20を介して得られたデジタルデータ(第
1基準電圧VST1 )と、検出抵抗R0に第2基準電流I
st2 を流したときにA/D変換器20を介して得られた
デジタルデータ(第2基準電圧VST2 )との、2種類の
基準電圧Vst1 ,VST2 が格納されている。
To calculate the target voltage Vtg, an EEP-ROM
24, the solenoid current Ic is proportional to the detection voltage Vm, and when setting the target voltage Vtg from the target current Itg, the target voltage Vtg is proportional to the target current Itg. EEP
In the ROM 34, as shown in FIG. 5, digital data (first reference voltage VST1) obtained through the A / D converter 20 when the first reference current Ist1 is supplied to the detection resistor R0, as shown in FIG. And the second reference current I
Two types of reference voltages Vst1 and VST2, which are digital data (second reference voltage VST2) obtained through A / D converter 20 when st2 flows, are stored.

【0040】そして、S130では、この第1及び第2
基準電圧Vst1 ,VST2 と第1及び第2基準電流Ist1
,IST2 とから得られるソレノイド電流Icと検出電
圧Vmとの相対関係から、目標電流Itgに対応した目標
電圧Vtgを求める。具体的には、図5に示す各検出点P
1,P2を結ぶ直線を表す一次関数を演算式(Vtg=a
×Itg+b)として設定し、この演算式に目標電流Itg
を代入することにより、目標電圧Vtgを算出するとか、
或いは、図5に示す各検出点P1,P2から目標電流It
gに対応する点を補間計算することにより、目標電流It
gに対応する目標電圧Vtgを算出する、といった手順
で、目標電圧Vtgを求める。尚、本実施例では、このS
130の処理が、請求項3に記載のデータ補正手段に相
当する。
Then, in S130, the first and second
Reference voltages Vst1, VST2 and first and second reference currents Ist1
, IST2, the target voltage Vtg corresponding to the target current Itg is obtained from the relative relationship between the solenoid current Ic and the detection voltage Vm. Specifically, each detection point P shown in FIG.
A linear function representing a straight line connecting P1 and P2 is calculated by an arithmetic expression (Vtg = a
× Itg + b), and the target current Itg
To calculate the target voltage Vtg,
Alternatively, the target current It from each of the detection points P1 and P2 shown in FIG.
By interpolating and calculating the point corresponding to g, the target current It
The target voltage Vtg is determined by a procedure such as calculating the target voltage Vtg corresponding to g. In this embodiment, this S
The processing at 130 corresponds to the data correcting means according to the third aspect.

【0041】次に、このように目標電圧Vtgが算出され
ると、今度は、S140に移行して、A/D変換器20
を介して読み込んだ検出電圧Vmが目標電圧Vtgよりも
大きいか否かを判断し、検出電圧Vmが目標電圧Vtgよ
りも大きい場合には、ソレノイド電流Icを減少させる
べく、S150に移行して、PWM信号出力回路22か
ら出力されるPWM信号のパルス幅(換言すればデュー
ティ比)を予め設定された所定時間幅△tだけ減少させ
て、当該処理を一旦終了する。
Next, after the target voltage Vtg is calculated in this way, the process proceeds to S140, and the A / D converter 20
It is determined whether or not the detection voltage Vm read via the control circuit is higher than the target voltage Vtg. If the detection voltage Vm is higher than the target voltage Vtg, the process proceeds to S150 to decrease the solenoid current Ic. The pulse width (in other words, the duty ratio) of the PWM signal output from the PWM signal output circuit 22 is reduced by a predetermined time width Δt, and the process is temporarily terminated.

【0042】一方、S140にて、検出電圧Vmは目標
電圧Vtgよりも大きくないと判断されると、S160に
移行して、今度は、検出電圧Vmが目標電圧Vtgよりも
小さいか否かを判断する。そして、検出電圧Vmが目標
電圧Vtgよりも小さい場合には、ソレノイド電流Icを
増加させるべく、S170に移行して、PWM信号出力
回路22から出力されるPWM信号のパルス幅を予め設
定された所定時間幅△tだけ増加させて、当該処理を一
旦終了する。
On the other hand, if it is determined in S140 that the detected voltage Vm is not higher than the target voltage Vtg, the process proceeds to S160, and it is determined whether the detected voltage Vm is lower than the target voltage Vtg. I do. If the detection voltage Vm is lower than the target voltage Vtg, the process proceeds to S170 to increase the solenoid current Ic, and the pulse width of the PWM signal output from the PWM signal output circuit 22 is set to a predetermined value. The time width Δt is increased and the process is temporarily terminated.

【0043】また、逆に、S160にて、検出電圧Vm
は目標電圧Vtgよりも小さくないと判断された場合(つ
まり、検出電圧Vmと目標電圧Vtgとが一致している場
合)には、ソレノイド電流Icを増・減する必要はない
ので、S180にて、PWM信号出力回路22から出力
されるPWM信号のパルス幅を現在のパルス幅に保持さ
せ、当該処理を一旦終了する。尚、本実施例では、S1
40〜S180の処理が、請求項3に記載の制御量算出
手段に相当する。
Conversely, at S160, the detection voltage Vm
Is not smaller than the target voltage Vtg (that is, if the detected voltage Vm and the target voltage Vtg match), it is not necessary to increase or decrease the solenoid current Ic. , The pulse width of the PWM signal output from the PWM signal output circuit 22 is held at the current pulse width, and the process is temporarily terminated. In this embodiment, S1
The processing of steps 40 to S180 corresponds to the control amount calculating means according to the third aspect.

【0044】このように、本実施例では、ソレノイド1
2に流す目標電流Itgから目標電圧Vtgを設定する際
に、予めEEP−ROM24内に格納された電圧データ
を使用することから、検出抵抗R0からA/D変換器2
0に至る電流検出系の回路素子のばらつきにより、ソレ
ノイド電流Icと検出電圧Vmとの関係が、図6に一点
鎖線で示す制御系設計時のIc−Vm理論特性からずれ
たとしても、目標電圧Vtgを、図6に実線で示す実際の
Ic−Vm特性に対応して設定できるようになり、目標
電圧VtgをIc−Vm理論特性に従い設定するようにし
た場合に比べて、ソレノイド電流Icを目標電流Itgに
精度よく制御することが可能になる。
As described above, in this embodiment, the solenoid 1
When the target voltage Vtg is set from the target current Itg flowing through the A / D converter 2, the voltage data previously stored in the EEP-ROM 24 is used.
Even if the relationship between the solenoid current Ic and the detection voltage Vm deviates from the theoretical Ic-Vm characteristic at the time of control system design shown by the dashed line in FIG. Vtg can be set corresponding to the actual Ic-Vm characteristic shown by the solid line in FIG. 6, and the solenoid current Ic can be set to the target voltage Vtg in comparison with the case where the target voltage Vtg is set according to the Ic-Vm theoretical characteristic. It is possible to accurately control the current Itg.

【0045】つまり、Ic−Vm特性の理論特性からの
ずれのうち、傾きのずれに関しては、電流検出を行う検
出抵抗R0、及び、検出信号を増幅する際のゲインを決
定する抵抗R1,R2,R3のばらつき(設計値に対す
る誤差)によるものが大きく、オフセットのずれに関し
ては、オペアンプ16のオフセット電圧の誤差によるも
のが大きい。従って、Ic−Vm特性の理論特性からの
ずれは、電流検出系の製造上のばらつきによる初期特性
誤差によるものが殆どであり、温度特性や経年変化によ
るものは、初期特性誤差に比べるとほとんど無視できる
レベルである。このため、ECU2の製造直後に、実際
のIc−Vm特性を測定して、これを電圧データ(換言
すれば補正データ)としてEEP−ROM24に格納し
ておき、ソレノイド電流Icを実際にフィードバック制
御する際には、本実施例のように、EEP−ROM24
に記憶された電圧データを用いて目標電圧Vtgを設定す
るようにすれば、ソレノイド電流Icを常に精度よく制
御することが可能になる。
That is, among the deviations of the Ic-Vm characteristic from the theoretical characteristics, the deviation of the slope is determined by the detection resistance R0 for detecting the current and the resistances R1, R2 and R2 for determining the gain when amplifying the detection signal. The deviation due to the variation in R3 (error with respect to the design value) is large, and the offset deviation is largely due to the error in the offset voltage of the operational amplifier 16. Therefore, most of the deviation of the Ic-Vm characteristic from the theoretical characteristic is due to an initial characteristic error due to manufacturing variations of the current detection system, and the deviation due to the temperature characteristic and aging is almost ignored compared to the initial characteristic error. It is a level that can be done. Therefore, immediately after the ECU 2 is manufactured, the actual Ic-Vm characteristic is measured and stored in the EEP-ROM 24 as voltage data (in other words, correction data), and the solenoid current Ic is actually feedback-controlled. In this case, as in this embodiment, the EEP-ROM 24
If the target voltage Vtg is set by using the voltage data stored in the memory, the solenoid current Ic can always be controlled with high accuracy.

【0046】ところで、EEP−ROM24にIc−V
m特性を表すデータとして格納する電圧データとして
は、前述したように、検出抵抗R0に、ソレノイド電流
Icとして第1基準電流Ist1 及び第2基準電流Ist2
を流し、そのときA/D変換器20を介して得られる2
種類の検出電圧Vmを測定し、各電圧値を、第1基準電
圧Vst1 及び第2基準電圧Vst2 として、EEP−RO
M24に格納すればよいのであるが、これら各基準電圧
Vst1 及びVst2 をA/D変換器20を介して取り込む
際のA/D変換精度が低いと、その後、制御の際に設定
される目標電圧Vtgが、アナログ信号状態でのIc−V
m特性からずれてしまい、制御誤差が生じることにな
る。
The Ic-V is stored in the EEP-ROM 24.
As described above, the voltage data to be stored as the data representing the m characteristic includes the first reference current Ist1 and the second reference current Ist2 as the solenoid current Ic in the detection resistor R0.
And then 2 obtained through the A / D converter 20
The types of detection voltages Vm are measured, and the respective voltage values are defined as a first reference voltage Vst1 and a second reference voltage Vst2, and the EEP-RO
If the A / D conversion accuracy at the time when these reference voltages Vst1 and Vst2 are fetched via the A / D converter 20 is low, the target voltage set at the time of control may be set. Vtg is Ic-V in an analog signal state.
It deviates from the m-characteristics, causing a control error.

【0047】つまり、A/D変換器20により得られる
デジタルデータ(検出電圧Vm)は、A/D変換器20
に実際に入力された検出信号(アナログ電圧信号)に対
し、最小ビット(LSB)単位で階段状に変化する。例
えば、A/D変換器20のビット数が10ビットで、A
/D変換可能な電圧範囲が0〜5Vである場合、検出電
圧Vmは、図7(a)に示すように、約4.88mVの
幅で階段状に変化し、実際に入力された検出信号に対し
て約4.88mVの幅をもつ。
That is, the digital data (detection voltage Vm) obtained by the A / D converter 20 is
Of the detection signal (analog voltage signal) that is actually input in steps of a minimum bit (LSB). For example, when the number of bits of the A / D converter 20 is 10 bits,
When the voltage range in which the / D conversion can be performed is 0 to 5 V, the detection voltage Vm changes stepwise with a width of about 4.88 mV as shown in FIG. Has a width of about 4.88 mV.

【0048】そして、この幅が検出電圧VmのA/D変
換誤差となるため、上記のように検出抵抗R0に基準電
流Ist1 ,Ist2 を流し、そのときA/D変換器20に
入力された検出信号Vst1a,Vst2aをA/D変換して得
られる検出電圧Vmを基準電圧Vst1(10) ,Vst2(10)
としてEEP−ROM24に格納するようにしても、E
EP−ROM24に格納された基準電圧Vst1(10) ,V
st2(10) から得られるIc−Vm特性は、上記A/D変
換誤差によって、アナログ信号状態での実際のIc−V
m特性からずれることになり、目標電圧Vtgを実際のI
c−Vm特性に対応して設定することができなくなって
しまう。
Since this width becomes an A / D conversion error of the detection voltage Vm, the reference currents Ist1 and Ist2 flow through the detection resistor R0 as described above, and the detection current input to the A / D converter 20 at that time is output. The detection voltages Vm obtained by A / D converting the signals Vst1a and Vst2a are used as reference voltages Vst1 (10) and Vst2 (10).
Is stored in the EEP-ROM 24 as
The reference voltages Vst1 (10), Vst1 stored in the EP-ROM 24
The Ic-Vm characteristic obtained from st2 (10) indicates the actual Ic-Vm in an analog signal state due to the A / D conversion error.
m characteristic, and the target voltage Vtg is changed to the actual I
It cannot be set in accordance with the c-Vm characteristic.

【0049】一方、この問題は、A/D変換器20のビ
ット数を増やし、A/D変換精度を上げれば解決でき
る。例えば、A/D変換器20を、10ビットA/D変
換器から12ビットA/D変換器に変更した場合、図7
(b)に示すように、A/D変換可能な電圧範囲が上記
と同じ0〜5Vであれば、検出電圧Vmは、約1.22
mVの幅で変化することになるため、A/D変換誤差は
1/4になる。従って、12ビットA/D変換器を用い
て基準電圧Vst1(12) ,Vst2(12) を測定するようにす
れば、図8に示すように、10ビットA/D変換器を用
いた場合に比べて、目標電圧Vtgの設定誤差を、△V(1
0)から△V(12)へとを充分小さくすることができる。
On the other hand, this problem can be solved by increasing the number of bits of the A / D converter 20 and increasing the A / D conversion accuracy. For example, when the A / D converter 20 is changed from a 10-bit A / D converter to a 12-bit A / D converter, FIG.
As shown in (b), if the voltage range in which the A / D conversion can be performed is 0 to 5 V, which is the same as the above, the detection voltage Vm is about 1.22.
Since the A / D conversion error changes in a width of mV, the A / D conversion error becomes 1/4. Therefore, if the reference voltages Vst1 (12) and Vst2 (12) are measured using a 12-bit A / D converter, as shown in FIG. 8, when the 10-bit A / D converter is used. In comparison, the setting error of the target voltage Vtg is ΔV (1
0) to ΔV (12) can be made sufficiently small.

【0050】しかし、A/D変換精度を向上するために
A/D変換器20のビット数を増やすと、ECU2のコ
ストアップを招くことから、現実には高精度なA/D変
換器を使うことはできない。そこで本実施例では、A/
D変換器20に10ビットA/D変換器を使いつつ、E
EP−ROM24に電圧データとして格納する基準電圧
Vst1 ,Vst2 については、15ビットA/D変換器を
用いた場合と同等の精度に設定するようにしている。
However, if the number of bits of the A / D converter 20 is increased in order to improve the A / D conversion accuracy, the cost of the ECU 2 is increased, so that a highly accurate A / D converter is actually used. It is not possible. Therefore, in this embodiment, A /
While using a 10-bit A / D converter for the D converter 20,
The reference voltages Vst1 and Vst2 stored as voltage data in the EP-ROM 24 are set to the same accuracy as in the case where a 15-bit A / D converter is used.

【0051】以下、このように各基準電圧Vst1 ,Vst
2 を設定してEEP−ROM24に格納するために制御
回路10にて実行される電圧データ演算処理について、
図9に示すフローチャートに沿って説明する。この電圧
データ演算処理は、ECU2の出荷前の調整段階で、E
CU2を電圧設定用の治具に装着して、制御回路10を
電圧設定モードで動作させることにより実行される処理
である。尚、電圧設定用の治具は、ECU2に設けられ
たソレノイド接続端子にソレノイド12に代えて定電流
源を接続し、外部操作によって、この定電流源から基準
電流Ist1 及びIst2 を選択的に供給し、且つ、その電
流供給を表す指令信号を制御回路10に入力できるよう
に構成されている。
Hereinafter, the reference voltages Vst1, Vst
2 is set in the EEP-ROM 24 and stored in the EEP-ROM 24.
This will be described with reference to the flowchart shown in FIG. This voltage data calculation processing is performed during the adjustment stage before shipment of the ECU 2.
This is a process executed by attaching the CU 2 to a voltage setting jig and operating the control circuit 10 in the voltage setting mode. The voltage setting jig connects a constant current source to the solenoid connection terminal provided in the ECU 2 instead of the solenoid 12, and selectively supplies the reference currents Ist1 and Ist2 from this constant current source by an external operation. In addition, a command signal indicating the current supply can be input to the control circuit 10.

【0052】そして、この電圧データ演算処理が開始さ
れると、S210にて、上記治具から第1基準電流Ist
1 の供給中を表す指令信号が入力されているか否かによ
って、第1基準電流Ist1 での検出電圧取込条件が成立
したか否かを判断し、第1基準電流Ist1 での検出電圧
取込条件が成立している場合には、S220に移行す
る。
When the voltage data calculation process is started, in S210, the first reference current Ist
It is determined whether or not the detection voltage capture condition at the first reference current Ist1 is satisfied, based on whether or not a command signal indicating that the supply of the reference voltage 1 is being supplied is performed, and the detection voltage capture at the first reference current Ist1 is determined. If the condition is satisfied, the process moves to S220.

【0053】次に、S220では、トランジスタ14を
オンして、検出抵抗R0に定電流源から供給された第1
基準電流Ist1 を流し、その状態でA/D変換器20を
介して得られる検出電圧Vmをi回(例えば32回)サ
ンプリングする。そして、続くS230では、S220
でサンプリングしたi個の検出電圧Vmの総和を、第1
基準電圧Vst1 として算出し、S240にて、その算出
した第1基準電圧Vst1 をEEP−ROM24に格納
し、当該処理を一旦終了する。
Next, in S220, the transistor 14 is turned on, and the first resistor supplied from the constant current source to the detection resistor R0 is turned on.
The reference current Ist1 is supplied, and the detection voltage Vm obtained through the A / D converter 20 is sampled i times (for example, 32 times) in that state. Then, in subsequent S230, S220
The sum of the i detection voltages Vm sampled at
It is calculated as the reference voltage Vst1, and in S240, the calculated first reference voltage Vst1 is stored in the EEP-ROM 24, and the process ends once.

【0054】一方、S210にて第1基準電流Ist1 で
の検出電圧取込条件が成立していないと判断された場合
には、S250に移行して、上記治具から第2基準電流
Ist2 の供給中を表す指令信号が入力されているか否か
によって、第2基準電流Ist2 での検出電圧取込条件が
成立したか否かを判断する。そして、第2基準電流Ist
2 での検出電圧取込条件が成立していなければ、当該処
理を一旦終了し、逆に第2基準電流Ist2 での検出電圧
取込条件が成立していれば、S260に移行する。
On the other hand, if it is determined in S210 that the condition for taking in the detected voltage with the first reference current Ist1 is not satisfied, the flow shifts to S250 to supply the second reference current Ist2 from the jig. It is determined whether or not the condition for taking in the detected voltage with the second reference current Ist2 is satisfied based on whether or not the command signal indicating the inside is input. Then, the second reference current Ist
If the detected voltage capturing condition at 2 is not satisfied, the process is temporarily terminated. Conversely, if the detected voltage capturing condition at the second reference current Ist2 is satisfied, the process proceeds to S260.

【0055】S260では、上記S220と同様、トラ
ンジスタ14をオンして、検出抵抗R0に定電流源から
供給された第2基準電流Ist2 を流し、その状態でA/
D変換器20を介して得られる検出電圧Vmをi回(例
えば32回)サンプリングする。そして、続くS270
では、S260でサンプリングしたi個の検出電圧Vm
の総和を、第2基準電圧Vst2 として算出し、S280
にて、その算出した第2基準電圧Vst2 をEEP−RO
M24に格納し、当該処理を一旦終了する。
In S260, as in S220, the transistor 14 is turned on, and the second reference current Ist2 supplied from the constant current source flows to the detection resistor R0.
The detection voltage Vm obtained via the D converter 20 is sampled i times (for example, 32 times). And the following S270
Then, the i detection voltages Vm sampled in S260
Is calculated as the second reference voltage Vst2, and S280
, The calculated second reference voltage Vst2 is converted to EEP-RO
M24, and the process is temporarily terminated.

【0056】尚、本実施例においては、上記S220,
S260の処理が、請求項2,4に記載のA/D変換制
御手段に相当し、S230,S270の処理が、請求項
2,4に記載の総和算出手段に相当し、S240,S2
80の処理が、請求項4に記載の補正データ格納手段に
相当する。
It should be noted that in the present embodiment, the above S220,
The processing of S260 corresponds to the A / D conversion control means according to claims 2 and 4, and the processing of S230 and S270 corresponds to the sum calculation means according to claims 2 and 4, and S240 and S2.
The process 80 corresponds to a correction data storage unit.

【0057】このように、本実施例では、EEP−RO
M24に電圧データとして格納する第1及び第2基準電
圧Vst1 ,Vst2 を生成する際には、検出抵抗R0に第
1及び第2基準電流Ist1 ,Ist2 を夫々流し、そのと
きA/D変換器20を介して得られるデジタルデータ
(検出電圧Vm)を32回サンプリングし、そのサンプ
リングした32個の検出電圧Vmの総和を、第1及び第
2基準電圧Vst1 ,Vst2 として設定するようにしてい
る。
As described above, in this embodiment, the EEP-RO
When generating the first and second reference voltages Vst1 and Vst2 to be stored as voltage data in M24, the first and second reference currents Ist1 and Ist2 are supplied to the detection resistor R0, and the A / D converter 20 The digital data (detection voltage Vm) obtained through the above is sampled 32 times, and the sum of the sampled 32 detection voltages Vm is set as the first and second reference voltages Vst1 and Vst2.

【0058】このため、10ビットA/D変換器20を
用いて検出電圧Vmをサンプリングしているにもかかわ
らず、EEP−ROM24に格納される第1及び第2基
準電圧Vst1 ,Vst2 は、15ビットA/D変換器を用
いて検出電圧Vmを測定した場合と略同等の精度とな
り、各基準電圧Vst1 ,Vst2 設定時のA/D変換誤差
に伴う制御精度の低下を抑制することが可能になる。
Therefore, even though the detection voltage Vm is sampled using the 10-bit A / D converter 20, the first and second reference voltages Vst1 and Vst2 stored in the EEP-ROM 24 are 15 The accuracy is almost the same as when the detection voltage Vm is measured using a bit A / D converter, and it is possible to suppress a decrease in control accuracy due to an A / D conversion error when each of the reference voltages Vst1 and Vst2 is set. Become.

【0059】以下、この理由について説明する。まず、
S220,S260による検出電圧Vmのサンプリング
時には、検出抵抗R0に、定電流源から供給される第1
基準電流Ist1 又は第2基準電流Ist2が流れるが、こ
れら各電流Ist1 ,Ist2 は、定電流源側での電流制御
動作によって微少ではあるが脈動する。このため、A/
D変換器20に入力される検出信号(アナログ電圧信
号)も、数mV程度の幅で脈動する。
Hereinafter, the reason will be described. First,
At the time of sampling the detection voltage Vm in S220 and S260, the first resistor supplied from the constant current source to the detection resistor R0.
The reference current Ist1 or the second reference current Ist2 flows, and each of these currents Ist1 and Ist2 pulsates, though slightly, due to the current control operation on the constant current source side. Therefore, A /
The detection signal (analog voltage signal) input to the D converter 20 also pulsates with a width of about several mV.

【0060】このため、S220,S260でサンプリ
ングされる検出電圧Vmも、一定とはならず、少なくと
も最下位ビットで変動する。従って、S230,S27
0で算出される25 (=32)個の検出電圧Vmの総和
は、A/D変換器20に入力された検出信号の平均電圧
に対応した(10+5)ビットのデジタルデータとな
り、S240,S280でEEP−ROM24に格納さ
れる各基準電圧Vst1 ,Vst2 は、15ビットのA/D
変換器を用いて検出信号をA/D変換した検出電圧と略
同等になるのである。
For this reason, the detection voltage Vm sampled in S220 and S260 is not constant but fluctuates at least in the least significant bit. Therefore, S230, S27
The total sum of the 2 5 (= 32) detection voltages Vm calculated by 0 becomes (10 + 5) bits of digital data corresponding to the average voltage of the detection signal input to the A / D converter 20, and S240, S280 Each of the reference voltages Vst1 and Vst2 stored in the EEP-ROM 24 is a 15-bit A / D
This is substantially equal to the detection voltage obtained by A / D converting the detection signal using the converter.

【0061】つまり、例えば、A/D変換可能な電圧範
囲が0〜5Vの10ビットA/D変換器(LSB=4.
88mV)において、1.0V入力時のA/D変換結果
は、 (1.0/5)×1024=204.8=0CC(16
進数) となり、このA/D変換結果「0CC(16進数)」を
逆算して電圧に戻すと、 0CC(16進数)/1024×5=0.99609V となり、「−3.91mV」の誤差が生じる。
That is, for example, a 10-bit A / D converter (LSB = 4.
At 88 mV), the A / D conversion result at the time of 1.0 V input is (1.0 / 5) × 1024 = 204.8 = 0 CC (16
When the A / D conversion result "0CC (hexadecimal)" is back calculated and returned to the voltage, it becomes 0CC (hexadecimal) /1024*5=0.96909V, and the error of "-3.91mV" is obtained. Occurs.

【0062】しかし、同じ10ビットA/D変換器を用
いた1.0V入力時の2回のA/D変換結果が、「0C
C(16進数)」と「0CD(16進数)」であった場
合、これらの和「199(16進数)」を11ビットの
A/D変換結果(LSB=2.44mV)とみなせば、
A/D変換誤差は、「−1.47mV」となる。つま
り、11ビットのA/D変換結果としてみなした「19
9(16進数)」を、逆算により電圧に戻すと、 199(16進数)/2048×5=0.99853V となるため、この場合のA/D変換誤差は「−1.47
mV」となる。
However, two A / D conversion results at the time of 1.0 V input using the same 10-bit A / D converter are "0C
C (hexadecimal number) "and" 0CD (hexadecimal number) ", the sum" 199 (hexadecimal number) "can be regarded as an 11-bit A / D conversion result (LSB = 2.44 mV).
The A / D conversion error is “−1.47 mV”. That is, "19" which is regarded as the result of the 11-bit A / D conversion
When "9 (hexadecimal)" is converted back to a voltage by back calculation, 199 (hexadecimal) / 2048 x 5 = 0.99853V, and the A / D conversion error in this case is "-1.47".
mV ".

【0063】従って、本実施例のように、A/D変換可
能な電圧範囲が0〜5Vの10ビットA/D変換器20
を用いて、検出信号をi回A/D変換し、そのA/D変
換結果Vm(1) ,Vm(2) …Vm(i) の総和を、検出信
号のA/D変換値として算出するようにすれば、下記の
表1に示すように、A/D変換結果のサンプリング数i
を増やせば増やす程、得られるA/D変換値(総和)の
誤差(LSB)を小さくして、A/D変換精度を向上す
ることができるようになるのである。
Therefore, as in the present embodiment, the 10-bit A / D converter 20 whose A / D convertible voltage range is 0 to 5 V
, A / D conversion of the detection signal is performed i times, and the sum of the A / D conversion results Vm (1), Vm (2)... Vm (i) is calculated as the A / D conversion value of the detection signal. Then, as shown in Table 1 below, the sampling number i of the A / D conversion result
Is increased, the error (LSB) of the obtained A / D conversion value (sum) can be reduced, and the A / D conversion accuracy can be improved.

【0064】[0064]

【表1】 [Table 1]

【0065】このため、本実施例によれば、A/D変換
器20のA/D変換精度が低くても、EEP−ROM2
4に格納される目標電圧Vtg設定用の電圧データ(基準
電圧Vst1 ,Vst2 )を、そのA/D変換精度に影響さ
れることなく、高精度に設定することが可能になり、延
いては、ソレノイド電流Icの制御精度を向上すること
ができる。
Therefore, according to the present embodiment, even if the A / D conversion accuracy of the A / D converter 20 is low, the EEP-ROM 2
4, the voltage data (reference voltages Vst1, Vst2) for setting the target voltage Vtg can be set with high accuracy without being affected by the A / D conversion accuracy. The control accuracy of the solenoid current Ic can be improved.

【0066】以上、本発明の一実施例について説明した
が、本発明は上記実施例に限定されるものではなく、種
々の態様を採ることができる。例えば、上記実施例で
は、EEP−ROM24に格納する基準電圧Vst1 ,V
st2 を設定する際、10ビットA/D変換器20による
A/D変換を32回行い、その結果得られた32個の検
出電圧Vmを足し合わせることで、15ビットのA/D
変換結果を得るようにしたが、これと同様に15ビット
のA/D変換結果を得る場合であっても、例えば、検出
電圧Vmのサンプリングは64(26 )回行い、これによ
り得られた64個の検出電圧Vmの総和を、2(=21 =
6 −25)で除算するようにしてもよい。そしてこのよ
うにすれば、検出電圧Vmのサンプリング回数が多い
分、得られるA/D変換結果(15ビット)の精度を向
上できる。
As described above, one embodiment of the present invention has been described. However, the present invention is not limited to the above-described embodiment, and various embodiments can be adopted. For example, in the above embodiment, the reference voltages Vst1 and Vst1 stored in the EEPROM 24 are used.
When setting st2, A / D conversion by the 10-bit A / D converter 20 is performed 32 times, and the 32 detection voltages Vm obtained as a result are added to obtain a 15-bit A / D converter.
Although the conversion result is obtained, even when the 15-bit A / D conversion result is obtained in the same manner, for example, the detection voltage Vm is sampled 64 (2 6 ) times, and this is obtained. The sum of the 64 detection voltages Vm is represented by 2 (= 2 1 =
2 6-2 5) may be divided by. By doing so, the accuracy of the obtained A / D conversion result (15 bits) can be improved because the number of times of sampling the detection voltage Vm is large.

【0067】また、上記実施例では、EEP−ROM2
4に格納する目標電圧Vtg設定用の電圧データを生成す
る際に、本発明のA/D変換方法を利用するものとして
説明したが、A/D変換器20によるA/D変換時間が
制御量の演算周期に比べて充分短く、制御量を1回演算
する間にA/D変換を何度も行える場合には、A/D変
換器20を介して検出信号を取り込む際に、A/D変換
値を多数サンプリングして、その総和をソレノイド電流
Icを表す検出電圧とするようにしてもよい。そして、
このようにすれば、ソレノイド電流Icの制御精度をよ
り向上できるのはいうまでもない。
In the above embodiment, the EEP-ROM 2
4 has been described as using the A / D conversion method of the present invention when generating the voltage data for setting the target voltage Vtg stored in the A / D converter 4, the A / D conversion time by the A / D converter 20 is controlled by the control amount. If the A / D conversion can be performed many times while the control amount is calculated once, the A / D conversion is performed when the detection signal is fetched via the A / D converter 20. A large number of converted values may be sampled, and the sum of the converted values may be used as the detection voltage representing the solenoid current Ic. And
By doing so, it goes without saying that the control accuracy of the solenoid current Ic can be further improved.

【0068】また、上記実施例では、本発明を、自動変
速機のライン圧制御用のソレノイド12を通電制御する
装置に適用した場合について説明したが、本発明は、ソ
レノイド等の誘導性負荷を通電制御する装置に限らず、
A/D変換器を利用して検出信号を取り込み、制御量を
デジタル演算する装置であれば、上記実施例と同様に適
用して、同様の効果を得ることができる。
Further, in the above-described embodiment, the case where the present invention is applied to the device for controlling the energization of the solenoid 12 for controlling the line pressure of the automatic transmission has been described. Not only for the device that controls the energization,
Any device that takes in a detection signal using an A / D converter and digitally calculates a control amount can be applied in the same manner as in the above-described embodiment, and the same effect can be obtained.

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

【図1】 実施例のECUの概略構成を表す構成図であ
る。
FIG. 1 is a configuration diagram illustrating a schematic configuration of an ECU according to an embodiment.

【図2】 実施例の制御回路にて実行されるフィードバ
ック制御の動作を説明するタイムチャートである。
FIG. 2 is a time chart illustrating an operation of feedback control performed by the control circuit according to the embodiment.

【図3】 制御回路にて実行される制御量演算処理を表
すフローチャートである。
FIG. 3 is a flowchart illustrating a control amount calculation process executed by a control circuit.

【図4】 制御量演算処理の実行時に用いられる目標電
流算出用マップの特性を表す説明図である。
FIG. 4 is an explanatory diagram showing characteristics of a target current calculation map used when executing a control amount calculation process.

【図5】 制御量演算処理の実行時に用いられるEEP
−ROMに格納された電圧データを説明する説明図であ
る。
FIG. 5 is an EEP used when executing a control amount calculation process.
FIG. 4 is an explanatory diagram illustrating voltage data stored in a ROM.

【図6】 ソレノイド電流とその検出電圧(デジタルデ
ータ)との相対関係を表す理論特性及び実際の特性を説
明する説明図である。
FIG. 6 is an explanatory diagram illustrating theoretical characteristics and actual characteristics representing a relative relationship between a solenoid current and a detection voltage (digital data) thereof.

【図7】 A/D変換の精度によって変化する電圧デー
タの誤差を説明する説明図である。
FIG. 7 is an explanatory diagram illustrating an error in voltage data that changes depending on the accuracy of A / D conversion.

【図8】 電圧データ生成時のA/D変換の精度によっ
て生じる目標電圧Vtgの設定誤差を説明する説明図であ
る。
FIG. 8 is an explanatory diagram illustrating a setting error of a target voltage Vtg caused by the accuracy of A / D conversion when generating voltage data.

【図9】 制御回路にて電圧データを生成する際に実行
される電圧データ演算処理を表すフローチャートであ
る。
FIG. 9 is a flowchart illustrating a voltage data calculation process executed when the control circuit generates voltage data.

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

2…ECU、10…制御回路、12…ソレノイド、14
…トランジスタ、16…オペアンプ、18…平滑回路、
20…A/D変換器、22…PWM信号出力回路、24
…EEP−ROM、R0…検出抵抗。
2 ECU, 10 control circuit, 12 solenoid, 14
... Transistors, 16 ... Op amps, 18 ... Smoothing circuits,
Reference numeral 20: A / D converter, 22: PWM signal output circuit, 24
... EEP-ROM, R0 ... Detection resistor.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 制御対象の動作状態に対応したアナログ
の検出信号を発生する検出手段を備え、該検出手段から
出力された検出信号をA/D変換したデジタルデータに
基づき、前記制御対象の制御量をデジタル演算する制御
装置において、前記検出手段から出力される検出信号を
nビットのA/D変換器を用いてデジタルデータに変換
するA/D変換方法であって、 前記検出手段から前記制御対象の同一動作状態での検出
信号が出力されているとき、前記A/D変換器を少なく
とも2m 回(但しmは整数)以上繰り返し動作させ、該
A/D変換器の動作により得られる2m 個のデジタルデ
ータの総和を算出することにより、(n+m)ビットの
A/D変換器を用いて得られるデジタルデータと同等の
デジタルデータを得ることを特徴とするA/D変換方
法。
A detecting means for generating an analog detection signal corresponding to an operation state of the control target; and controlling the control target based on digital data obtained by A / D conversion of the detection signal output from the detection means. In a control device for digitally calculating an amount, an A / D conversion method for converting a detection signal output from said detection means into digital data using an n-bit A / D converter, When the detection signal is output in the same operation state of the target, the A / D converter is repeatedly operated at least 2 m times (where m is an integer) or more, and 2 obtained by the operation of the A / D converter. by calculating the sum of m digital data, characterized by obtaining the digital data equivalent digital data obtained using (n + m) bits a / D converter a / Conversion method.
【請求項2】 請求項1に記載のA/D変換方法を実現
するために前記制御装置に設けられるA/D変換装置で
あって、 外部から前記検出信号のA/D変換指令を受けると、前
記A/D変換器を少なくとも2m 回以上繰り返し動作さ
せるA/D変換制御手段と、 該A/D変換制御手段が前記A/D変換器を動作させる
ことにより得られる2 m 回個のデジタルデータの総和を
算出する総和算出手段と、 を備え、該総和算出手段により得られた前記2m 個のデ
ジタルデータの総和を、前記検出信号をA/D変換した
デジタルデータとして出力することを特徴とするA/D
変換装置。
2. An A / D conversion method according to claim 1 is realized.
A / D converter provided in the control device to perform
When an A / D conversion command of the detection signal is received from outside,
At least two A / D convertersmRepeated operation more than once
A / D conversion control means for causing the A / D converter to operate
2 obtained by mSum of digital data
And a sum calculating means for calculating the sum.mPieces
A / D converted the detection signal to the sum of digital data
A / D characterized by outputting as digital data
Conversion device.
【請求項3】 制御対象の動作状態に対応したアナログ
の検出信号を発生する検出手段と、 該検出手段から出力された検出信号をデジタルデータに
変換するnビットのA/D変換器と、 該A/D変換器にて得られたデジタルデータと前記制御
対象の目標状態を表す目標データとの偏差に基づき、前
記制御対象を目標状態に制御するための制御量をデジタ
ル演算する制御量算出手段と、 前記A/D変換器により得られる前記デジタルデータと
前記制御対象の実際の動作状態との関係を表す補正デー
タが予め記憶された補正データ記憶手段と、 前記制御量算出手段が前記制御量を算出するのに使用す
る前記デジタルデータ及び前記目標データのいずれか
を、前記補正データ記憶手段に記憶された補正データに
基づき補正し、各データ間で生じる前記制御対象の実際
の動作状態に対するずれを相殺するデータ補正手段と、 を備えた制御装置において、前記補正データを生成する
ための補正データ生成方法であって、 前記制御対象を予め設定された特定動作状態で動作させ
た際の検出信号を前記検出手段から出力させると同時
に、前記A/D変換器を少なくとも2m 回以上繰り返し
動作させ、該A/D変換器の動作によって得られる2m
個のデジタルデータの総和を、前記制御対象の上記特定
動作状態に対応した補正データとして算出し、該算出結
果を前記補正データ記憶手段に格納することを特徴とす
る制御装置の補正データ生成方法。
A detecting means for generating an analog detection signal corresponding to an operation state of a control target; an n-bit A / D converter for converting a detection signal output from the detection means into digital data; Control amount calculating means for digitally calculating a control amount for controlling the control target to the target state based on a deviation between the digital data obtained by the A / D converter and target data representing the target state of the control target. Correction data storage means in which correction data indicating the relationship between the digital data obtained by the A / D converter and the actual operation state of the control target is stored in advance; Is corrected based on the correction data stored in the correction data storage means, and any of the digital data and the target data used to calculate A data correction means for offsetting a deviation of the controlled object from the actual operating state, wherein the control device includes: a correction data generating method for generating the corrected data; At the same time as outputting a detection signal from the detection means when operating in the operating state, the A / D converter is repeatedly operated at least 2 m times or more, and 2 m obtained by the operation of the A / D converter is obtained.
A correction data generation method for a control device, comprising: calculating a sum of digital data as correction data corresponding to the specific operation state of the control target; and storing the calculation result in the correction data storage unit.
【請求項4】 請求項3に記載の補正データ生成方法を
実現するために前記制御装置に設けられる補正データ生
成装置であって、 外部から前記制御対象の特定動作状態に対応した補正デ
ータの生成指令が入力されると、前記A/D変換器を少
なくとも2m 回以上繰り返し動作させるA/D変換制御
手段と、 該A/D変換制御手段が前記A/D変換器を動作させる
ことにより得られる2 m 個のデジタルデータの総和を算
出する総和算出手段と、 該総和算出手段にて算出された2m 個のデジタルデータ
の総和を、前記制御対象の特定動作状態に対応した補正
データとして、前記補正データ記憶手段に格納する補正
データ格納手段と、 を備えたことを特徴とする制御装置の補正データ生成装
置。
4. The correction data generation method according to claim 3,
A correction data generator provided in the control device for realizing
A correction data corresponding to a specific operation state of the control object from outside.
When a data generation command is input, the A / D converter is reduced.
At least 2mA / D conversion control to operate more than once
Means, and the A / D conversion control means operates the A / D converter.
2 obtained by mCalculate the sum of digital data
Sum calculation means to output, and 2 calculated by the sum calculation meansmDigital data
Is corrected according to the specific operation state of the controlled object.
Correction stored in the correction data storage means as data
Correction data generation device for a control device, comprising: a data storage unit;
Place.
JP10282398A 1998-04-14 1998-04-14 Method and apparatus for generating correction data for control device Expired - Fee Related JP3539199B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10282398A JP3539199B2 (en) 1998-04-14 1998-04-14 Method and apparatus for generating correction data for control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10282398A JP3539199B2 (en) 1998-04-14 1998-04-14 Method and apparatus for generating correction data for control device

Publications (2)

Publication Number Publication Date
JPH11298327A true JPH11298327A (en) 1999-10-29
JP3539199B2 JP3539199B2 (en) 2004-07-07

Family

ID=14337753

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10282398A Expired - Fee Related JP3539199B2 (en) 1998-04-14 1998-04-14 Method and apparatus for generating correction data for control device

Country Status (1)

Country Link
JP (1) JP3539199B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001048364A1 (en) * 1999-12-28 2001-07-05 Mikuni Corporation Intake pressure sensing device for internal combustion engine
US7310575B2 (en) 2005-12-26 2007-12-18 Denso Corporation Apparatus for processing sensor signal from knock sensor of internal combustion engine
US7834307B2 (en) 2007-01-24 2010-11-16 Denso Corporation Pulse width modulation output type sensor circuit for outputting a pulse having a width associated with a physical quantity
JP2017046093A (en) * 2015-08-25 2017-03-02 株式会社デンソー Electric control device
JP2017106837A (en) * 2015-12-10 2017-06-15 株式会社東芝 Thickness measurement device which reduces noise of a/d converter in detection signal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001048364A1 (en) * 1999-12-28 2001-07-05 Mikuni Corporation Intake pressure sensing device for internal combustion engine
US7310575B2 (en) 2005-12-26 2007-12-18 Denso Corporation Apparatus for processing sensor signal from knock sensor of internal combustion engine
US7834307B2 (en) 2007-01-24 2010-11-16 Denso Corporation Pulse width modulation output type sensor circuit for outputting a pulse having a width associated with a physical quantity
JP2017046093A (en) * 2015-08-25 2017-03-02 株式会社デンソー Electric control device
JP2017106837A (en) * 2015-12-10 2017-06-15 株式会社東芝 Thickness measurement device which reduces noise of a/d converter in detection signal

Also Published As

Publication number Publication date
JP3539199B2 (en) 2004-07-07

Similar Documents

Publication Publication Date Title
US10935396B2 (en) Rotation detecting device
US8421441B2 (en) Current-controlled semiconductor device and control unit using the same
US7222694B2 (en) Control unit for electric power steering
JP4274252B2 (en) PWM output type sensor circuit
JPH11298327A (en) A/d conversion method and device, and correction data generation method for controller and device
JP2002533706A (en) Sensor signal conditioner with calibration
JPH0757111B2 (en) Magnetic disk servo circuit
US6212447B1 (en) Control device for automobiles
US6647958B2 (en) Throttle control apparatus for internal combustion engine
JP6485375B2 (en) Current correction circuit
JP2000214029A (en) Pressure sensor circuit
JP2000151409A (en) A/d converter and regulator for grade amplifier
JP4075257B2 (en) Inductive load drive
JP2000013227A (en) A/d converter
JPS63222516A (en) A/d conversion value correction method for a/d conversion circuit
JP3736430B2 (en) Oxygen concentration detector
JP2000018989A (en) Ratiometric output-type heating resistor-type air flowmeter
JPH10225179A (en) Control method and control device for linear solenoid
JP2017118314A (en) Electronic control device
JP2006082579A (en) Power steering controlling device, and method
KR100305001B1 (en) Control device for automobiles
JP4743791B2 (en) Control device for proportional solenoid valve
JP4159233B2 (en) A / D conversion circuit
JP2953070B2 (en) A / D converter
JP4439314B2 (en) Throttle opening control device and throttle opening control method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040130

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: 20040302

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040315

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100402

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110402

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120402

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120402

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130402

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130402

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140402

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees