JPH0831793B2 - Analog / digital (A / D) converter - Google Patents

Analog / digital (A / D) converter

Info

Publication number
JPH0831793B2
JPH0831793B2 JP2316604A JP31660490A JPH0831793B2 JP H0831793 B2 JPH0831793 B2 JP H0831793B2 JP 2316604 A JP2316604 A JP 2316604A JP 31660490 A JP31660490 A JP 31660490A JP H0831793 B2 JPH0831793 B2 JP H0831793B2
Authority
JP
Japan
Prior art keywords
conversion
operation command
converter
contents
conversion operation
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.)
Expired - Lifetime
Application number
JP2316604A
Other languages
Japanese (ja)
Other versions
JPH04185114A (en
Inventor
洋一 西依
蔵次 加藤
Original Assignee
日本電装株式会社
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 日本電装株式会社 filed Critical 日本電装株式会社
Priority to JP2316604A priority Critical patent/JPH0831793B2/en
Publication of JPH04185114A publication Critical patent/JPH04185114A/en
Publication of JPH0831793B2 publication Critical patent/JPH0831793B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、アナログ・デジタル変換装置(以下A/D変
換装置と略す)に関し、特にA/D変換装置に異常が発生
した場合に、誤動作を防止するフェイルセーフ機能を備
えたA/D変換装置に関する。
TECHNICAL FIELD The present invention relates to an analog / digital converter (hereinafter abbreviated as A / D converter), and particularly, when an abnormality occurs in the A / D converter, a malfunction occurs. The present invention relates to an A / D conversion device having a fail-safe function that prevents the

〔従来の技術〕[Conventional technology]

従来より、A/D変換器から出力されるA/D変換値と前回
A/D変換されたA/D変換値との偏差を求め、この偏差が所
定値以下の場合A/D変換が正常に行なわれたと判断し
て、A/D変換値を更新するフェイルセーフ機能を備えた
もの(例えば特開昭55-115102号公報)や、A/D変換器に
よりアナログの基準電圧をデジタル変換し、このデジタ
ル変換された基準電圧データと予め制御装置内部に記憶
しているデジタル基準電圧データとを比較し、A/D変換
器の異常を検出するもの(例えば特開平1-196919号公
報)がある。
Conventionally, the A / D conversion value output from the A / D converter and the previous time
A fail-safe function that finds the deviation from the A / D-converted value and judges that the A / D conversion was performed normally if this deviation is less than a predetermined value and updates the A / D-converted value. (For example, Japanese Patent Laid-Open No. 55-115102), or an analog reference voltage is digitally converted by an A / D converter, and the digitally converted reference voltage data is stored in advance in the control device. There is one that compares the digital reference voltage data and detects an abnormality in the A / D converter (for example, Japanese Patent Laid-Open No. 1-196919).

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

ところで、複数のアナログ信号が入力されA/D変換動
作命令に応じてアナログ信号を選択してA/D変換するA/D
変換器においては、例えばA/D変換中に優先順位の高い
処理系のA/D変換動作命令がA/D変換器に入力される場合
がある。この様な場合、今まで行なっていたA/D変換は
中断され優先順位の高い処理系のA/D変換終了後、復帰
する。しかしこのとき、今まで行なっていた優先順位の
低い処理系のA/D変換については優先順次の高い処理系
のA/D変換動作終了後再度、優先順位の低い処理系のA/D
変換を実行させない限り、優先順位の低い処理系に復帰
したときのA/D変換値は、優先順位の高い処理系で変換
された変換値となってしまう。この様なとき、先に入力
したA/D変換動作命令で選ばれたアナログ信号がA/D変換
されていないのにA/D変換されたものとして判断され、
更新されていないA/D変換値が更新されたものとして出
力されるため、変換データへの信頼性が低下するという
問題がある。
By the way, A / D that receives multiple analog signals and selects analog signals according to the A / D conversion operation command to perform A / D conversion
In the converter, for example, an A / D conversion operation command of a processing system having a high priority may be input to the A / D converter during A / D conversion. In such a case, the A / D conversion that has been performed up to now is interrupted, and the processing is resumed after the A / D conversion of the high-priority processing system is completed. However, at this time, regarding the A / D conversion of the low priority processing system, the A / D conversion of the low priority processing system is performed again after the A / D conversion operation of the high priority processing system is completed.
Unless conversion is executed, the A / D conversion value when returning to a processing system with a lower priority will be the conversion value converted by the processing system with a higher priority. In such a case, it is judged that the analog signal selected by the previously input A / D conversion operation command has been A / D converted even though it has not been A / D converted,
Since the A / D conversion value that has not been updated is output as an updated value, there is a problem that the reliability of the converted data is reduced.

本発明は上記問題に鑑みて、A/D変換前と後とでA/D変
換動作命令をチェックして変換データへの信頼性を向上
させることを目的とする。
In view of the above problems, it is an object of the present invention to check the A / D conversion operation command before and after A / D conversion to improve the reliability of converted data.

〔課題を解決するための手段〕[Means for solving the problem]

上記課題を解決する手段として本発明は、 入力された複数のアナログ信号をそれぞれ対応するデ
ジタルデータに変換し、このデジタルデータを出力する
変換手段と、 所定タイミング毎に実行される第一処理とこの第一処
理に対し割込む第二処理とを実行すると共に、前記第一
処理実行時には第一処理に必要なデジタルデータを選択
し、第二処理実行時には第二処理に必要なデジタルデー
タを選択するA/D変換動作命令を前記変換手段に対し送
信する送信手段と、 前記送信手段内に設けられており、実行される前記第
一処理または第二処理に対応して送信されるA/D変換動
作命令の内容を記憶するものであって、A/D変換動作命
令送信毎にこの記憶内容が更新される制御記憶手段と、
前記変換手段内に設けられており、前記送信手段から送
信されたA/D変換動作命令を受信してその内容を記憶す
るものであって、A/D変換動作命令受送信毎にこの記憶
内容が更新される記憶手段と、 前記変換手段によるデジタルデータへの変換後、前記
記憶手段に記憶されている最新のA/D変換動作命令の内
容と前記制御記憶手段に記憶されている最新のA/D変換
動作命令の内容とが一致しているか不一致かを判別する
判別手段と、 前記判別手段により不一致と判別された時、前記変換
手段より出力れた前記デジタルデータを無視して所定の
フェイルセーフ処理を実行するフェイルセーフ手段と を備えたことを特徴とするアナログ・デジタル(A/
D)変換装置を提案する。
As a means for solving the above problems, the present invention is to convert a plurality of input analog signals into corresponding digital data and output the digital data, a first process executed at predetermined timings, and A second process that interrupts the first process is executed, digital data required for the first process is selected when the first process is executed, and digital data required for the second process is selected when the second process is executed. A transmitting unit that transmits an A / D conversion operation command to the converting unit, and an A / D conversion that is provided in the transmitting unit and is transmitted in response to the first process or the second process to be executed. A storage unit for storing the content of the operation command, the storage content being updated every time the A / D conversion operation command is transmitted,
It is provided in the conversion means, receives the A / D conversion operation command transmitted from the transmission means, and stores the contents thereof, and this stored content is stored every time the A / D conversion operation command is received and transmitted. Is updated, and the contents of the latest A / D conversion operation command stored in the storage unit after conversion into digital data by the conversion unit and the latest A stored in the control storage unit. Discrimination means for discriminating whether the contents of the / D conversion operation command match or not, and when the discrimination means judges that they do not coincide, the digital data output from the conversion means is ignored and a predetermined fail Analog / digital (A /
D) Propose a converter.

〔作用〕[Action]

これにより、複数のアナログ信号が入力されているA/
D変換器は、A/D変換動作命令に基づき上記アナログ信号
をデジタルデータに変換し、出力する。また、A/D変換
器に入力される最新のA/D変換動作命令はA/D変換器内に
設けられている記憶手段に記憶される。
This allows A / P where multiple analog signals are input.
The D converter converts the analog signal into digital data based on the A / D conversion operation command and outputs it. The latest A / D conversion operation command input to the A / D converter is stored in the storage means provided in the A / D converter.

つまり、第一処理系によるA/D変換中に第二処理系が
割込み、第二処理系のA/D変換動作命令がA/D変換器に入
力された場合、第一処理系のA/D変換は中断され、A/D変
換器内に設けられている記憶手段に記憶されていた第一
処理系のA/D変換動作命令の内容は、第二処理系のA/D変
換動作命令の内容に更新されることになる。
That is, when the second processing system interrupts during A / D conversion by the first processing system and the A / D conversion operation command of the second processing system is input to the A / D converter, the A / D conversion of the first processing system is performed. The D conversion is interrupted, and the contents of the A / D conversion operation command of the first processing system stored in the storage means provided in the A / D converter is the A / D conversion operation command of the second processing system. Will be updated to the contents of.

従って、第二処理系のA/D変換から第一処理系のA/D変
換に復帰した場合、前記記憶手段の最新の記憶内容と第
一処理系のA/D変換開始時に前記記憶手段が記憶してい
た記憶内容とが異なり、本来第一処理系に合致したデジ
タルデータではないと判断され、このデジタルデータを
無視した所定のフェイルセーフ処理が実行される。
Therefore, when returning from the A / D conversion of the second processing system to the A / D conversion of the first processing system, the storage means is the latest storage content of the storage means and the A / D conversion of the first processing system when the storage means is started. Different from the stored content, it is determined that the digital data does not originally match the first processing system, and predetermined fail-safe processing is executed by ignoring the digital data.

〔発明の効果〕〔The invention's effect〕

本発明により、A/D変換開始前後でA/D変換動作命令に
変化がないかをチェックし変化がある場合、即ちA/D変
換処理で異常を検出した場合は異常と判別された時のデ
ジタルデータを無視した所定のフェイルセーフ処理を実
行するため、A/D変換器から出力される変換データへの
信頼性が向上するという優れた効果がある。
According to the present invention, when there is a change in the A / D conversion operation command before and after the A / D conversion is started and there is a change, that is, when an abnormality is detected in the A / D conversion processing, it is determined that the abnormality has occurred. Since a predetermined fail-safe process that ignores digital data is executed, there is an excellent effect that the reliability of converted data output from the A / D converter is improved.

〔実施例〕〔Example〕

本発明実施例を以下図面に基づいて説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明を採用した車両用電子制御装置(EC
U)の構成を示したブロック図である。1はセンサ群で
あって、例えば吸気センサ,冷却水温センサ,スロット
ル開度センサ等で構成されており、吸気量Q,冷却水温TH
W,スロットル開度TVO等のアナログ信号が各センサより
出力されている。2は上述のアナログ信号が入力される
入力回路であり、アナログ信号は入力回路2を通して8
チャンネルのアナログデジタル変換器3(以後A/D変換
器)の各チャンネル(CH1,CH2,CH3…CH8)に入力され
る。4は中央演算処理装置(以後CPU)、5及び6は周
知のROMとRAMであっておのおのはバス7で連絡されてい
る。CPU4はROM5とRAM6に記憶されたデータに基づいてA/
DE変換器3に変換動作命令を出力する。さらに、A/D変
換器3からの出力信号とROM5及びRAM6内のデータやプロ
グラムに基づいて運転状態に応じた燃料噴射量や点火時
期を演算し、出力回路8を通してインジェクタ9やイグ
ナイタ10等を制御する制御信号も出力する。
FIG. 1 shows a vehicle electronic control unit (EC
It is a block diagram showing the composition of U). Reference numeral 1 denotes a sensor group, which includes, for example, an intake sensor, a cooling water temperature sensor, a throttle opening sensor, etc., and has an intake air amount Q and a cooling water temperature TH.
Analog signals such as W and throttle opening TVO are output from each sensor. Reference numeral 2 is an input circuit to which the above-mentioned analog signal is input.
It is input to each channel (CH1, CH2, CH3 ... CH8) of the channel analog-digital converter 3 (hereinafter referred to as A / D converter). Reference numeral 4 is a central processing unit (hereinafter CPU), 5 and 6 are well-known ROMs and RAMs, each of which is connected by a bus 7. CPU4 is A / based on the data stored in ROM5 and RAM6
The conversion operation command is output to the DE converter 3. Further, based on the output signal from the A / D converter 3 and the data and programs in the ROM 5 and RAM 6, the fuel injection amount and the ignition timing according to the operating state are calculated, and the injector 9 and the igniter 10 are output through the output circuit 8. A control signal for controlling is also output.

また、上述のA/D変換器3は、CPU4からの変換動作命
令パラメータ(以下パラメータと略す)を記憶するレジ
スタ31を含み、A/D変換器3はこのレジスタ31に記憶さ
れたパラメータに応じたA/D変換を実行する。そしてA/D
変換が終了するとA/D変換器3はCPU4に終了信号を出力
する。また各チャンネル毎のA/D変換値を記憶するA/Dレ
ジスタ32〜39も含んでおり、このA/Dレジスタ32〜39の
記憶内容は各チャンネルCH1〜CH8に入力されるアナログ
信号がA/D変換されると、更新される。そしてCPU4から
のアクセス信号に応じて、A/Dレジスタ32〜39内に記憶
されたA/D変換値はCPU4へ転送される。
Further, the A / D converter 3 described above includes a register 31 for storing a conversion operation command parameter (hereinafter abbreviated as a parameter) from the CPU 4, and the A / D converter 3 responds to the parameter stored in the register 31. Perform A / D conversion. And A / D
When the conversion is completed, the A / D converter 3 outputs an end signal to the CPU 4. It also includes A / D registers 32-39 that store the A / D conversion values for each channel.The contents stored in these A / D registers 32-39 are the analog signals input to each channel CH1 to CH8. Updated when / D converted. Then, according to the access signal from the CPU 4, the A / D conversion values stored in the A / D registers 32-39 are transferred to the CPU 4.

次に第2図に基づいてECUにおけるA/D変換時の動作を
説明する。
Next, the operation of the ECU during A / D conversion will be described with reference to FIG.

まず、ステップ100で、RAM5に記憶されたA/D変換器3
へ出力されるパラメータや、A/D変換器3及び出力回路
8の動作の初期設定を行なう。
First, in step 100, the A / D converter 3 stored in the RAM 5
Parameters to be output to the A / D converter 3 and the operation of the output circuit 8 are initialized.

次にステップ200で、A/D変換タイミングであるか否か
の判別を行ない、A/D変換タイミングと判別されたとき
はステップ300に進んで後述のA/D変換処理を実行し、ス
テップ200に戻る。
Next, in step 200, it is determined whether or not it is the A / D conversion timing. When it is determined that the A / D conversion timing is reached, the process proceeds to step 300 to execute the A / D conversion processing described below, and the step 200 Return to.

ステップ200でA/D変換タイミングではないと判別され
たときは、A/D変換は行なわず、ステップ400に進んで他
の処理(例えば噴射量の演算等)を実行して、ステップ
200に戻る。
If it is determined in step 200 that it is not the A / D conversion timing, the A / D conversion is not performed, the process proceeds to step 400, and another process (for example, calculation of the injection amount) is executed, and the step
Return to 200.

以下第3図に基づいてステップ300におけるA/D変換処
理を説明する。
The A / D conversion process in step 300 will be described below with reference to FIG.

まずステップ301では、A/D変換器3にパラメータを送
出する。
First, in step 301, parameters are sent to the A / D converter 3.

ここでパラメータを第4図及び第5図に基づいて説明
する。上述のパラメータは8ビットデータでありビット
位置により命令項目が設定されている。
Here, the parameters will be described with reference to FIGS. 4 and 5. The above-mentioned parameter is 8-bit data, and the instruction item is set by the bit position.

ビット位置7はA/D変換動作の指定、ヒット位置6はA
/D変換する回数の指定、ビット位置5及びビット位置4
はA/D変換するチャンネル数の指定をそれぞれ行ない、
ビット位置3〜0はA/D変換を開始するアナログ信号入
力チャンネルNo.の指定を行なう。
Bit position 7 specifies A / D conversion operation, hit position 6 is A
Specifying the number of times / D conversion is performed, bit position 5 and bit position 4
Specifies the number of channels to be A / D converted,
Bit positions 3 to 0 specify the analog signal input channel number for starting A / D conversion.

例えばパラメータが“10010000"であるとき、このパ
ラメータはチャンネルCH1〜CH4を1回だけA/D変換する
という意味である。
For example, when the parameter is "10010000", this parameter means that the channels CH1 to CH4 are A / D converted only once.

第3図に戻って、ステップ302で上述のパラメータがA
/D変換器に送出されると、A/D変換器3は入力されたパ
ラメータをレジスタ31に記憶し、パラメータに応じたA/
D変換を開始する。また、CPU4は出力したパラメータを
レジスタ41にて記憶する。
Returning to FIG. 3, in step 302, the above-mentioned parameter is set to A.
When sent to the / D converter, the A / D converter 3 stores the input parameters in the register 31, and the A / D converter 3 according to the parameters.
Start D conversion. Further, the CPU 4 stores the output parameter in the register 41.

次にステップ302では、A/D変換に必要な待ち時間を利
用して他の処理(例えば噴射量の演算量)を実行し、ス
テップ303に進む。このときA/D変換器3はA/D変換を実
行し、A/D変換を終了すると終了信号をCPU41に出力す
る。
Next, at step 302, other processing (for example, the calculation amount of the injection amount) is executed using the waiting time required for A / D conversion, and the process proceeds to step 303. At this time, the A / D converter 3 executes A / D conversion and outputs an end signal to the CPU 41 when the A / D conversion is completed.

次にステップ303ではA/D変換が終了したか否かを上述
の終了信号によって判別し、変換終了時にはステップ30
4に進んでA/D変換動作命令であるパラメータが変換前後
において変化していないかチェックする。即ちCPU4内の
レジスタ41に記憶されたパラメータとA/D変換器3内の
レジスタ31に記憶されたパラメータとが一致しているか
否かを判別する。判別方法としては、レジスタ31内に記
憶されているパラメータをCPU4に転送して、レジスタ41
に記憶されているパラメータとの差をとる。そしてこの
差が0のとき2つのパラメータは一致としている。
Next, in step 303, it is determined whether or not the A / D conversion is completed by the above-mentioned end signal.
Proceed to step 4 and check if the parameters that are A / D conversion operation commands have changed before and after conversion. That is, it is determined whether or not the parameter stored in the register 41 in the CPU 4 and the parameter stored in the register 31 in the A / D converter 3 match. The determination method is to transfer the parameter stored in the register 31 to the CPU 4 and
Take the difference from the parameter stored in. When this difference is 0, the two parameters are in agreement.

上述の差が0であるとき即ち、2つのパラメータが一
致しているときA/D変換が正常に行なわれたものとし、
ステップ306でA/D変換器3にアクセス信号を送ってA/D
レジスタ32〜39からA/D変換値をCPU4に転送させる。A/D
変換値が転送されると、ステップ307でA/D変換値が正常
か否か判別する。この判別は今回のA/D変換値が予め設
定された所定範囲内にあるかどうかを判別し、A/D変換
値が所定値範囲内にあるとき正常とし、所定値範囲外に
あるとき異常とするものである。ステップ308で正常と
判別されると、RAM6上の所定の場所にA/D変換値を記憶
して本ルーチンを終了し、他の処理に移行して上記RAM6
上に記憶されたA/D変換値を用いて燃料噴射量や点火時
期等を演算する。
When the difference is 0, that is, when the two parameters match, it is assumed that the A / D conversion is normally performed.
In step 306, the access signal is sent to the A / D converter 3 and A / D is sent.
Transfer the A / D converted value from registers 32 to 39 to CPU4. A / D
When the converted value is transferred, it is determined in step 307 whether the A / D converted value is normal. This determination determines whether or not the A / D converted value this time is within a preset predetermined range.Normal when the A / D converted value is within the predetermined value range, abnormal when it is outside the predetermined value range. It is what If it is determined to be normal in step 308, the A / D conversion value is stored in a predetermined location on the RAM6, the present routine is terminated, and the process shifts to another process to the RAM6.
The fuel injection amount, ignition timing, etc. are calculated using the A / D conversion value stored above.

ステップ303でA/D変換が終了していないと判別される
と、ステップ303に戻ってA/D変換が終了するまで待機す
る。また、ステップ304でパラメータが一致しないと判
別されときはステップ305に進んで後述する異常と判別
された時のデジタルデータ、及び、パラメータを初期設
定するフェイルセーフ処理を実行する。
If it is determined in step 303 that the A / D conversion has not ended, the process returns to step 303 and waits until the A / D conversion ends. If it is determined in step 304 that the parameters do not match, the process proceeds to step 305, and the digital data when it is determined to be an abnormality, which will be described later, and fail-safe processing for initializing the parameters are executed.

また、ステップ307で異常と判別されたときは今回のA
/D変換値は、読み捨てられ、RAM6上の所定の場所に記憶
されずに本ルーチンを終了し、他の処理に移行する。こ
の場合、前回のA/D変換値を用いて燃料噴射量や点火時
期が演算される。
If it is determined to be abnormal in step 307, the current A
The / D conversion value is read out and discarded, the routine is terminated without being stored in a predetermined location on the RAM 6, and another processing is performed. In this case, the fuel injection amount and ignition timing are calculated using the previous A / D conversion value.

第6図は以上説明したA/D変換動作において、CPU4とA
/D変換器3とそれに入力されるアナログ入力信号(Q,TH
W,TVO等),パラメータ,A/D変換終了信号及びA/D変換値
の流れを示したブロック図である。
FIG. 6 shows the CPU 4 and A in the A / D conversion operation described above.
/ D converter 3 and analog input signal (Q, TH
(W, TVO, etc.), parameter, A / D conversion end signal, and A / D conversion value.

A/D変換器3にはCPU4からのパラメータが入力され、
このパラメータに応じてA/D変換器3はアナログ入力信
号をデジタル変換する。A/D変換が終了すると、A/D変換
器3は終了信号を出力するとともにCPU4からレジスタ31
に対してアクセス信号が出力されるとレジスタ31に記憶
されたパラメータも出力する。CPU4が出力したパラメー
タ(レジスタ41に記憶されたパラメータ)とレジスタ31
に記憶されたパラメータとが一致したとき、CPU4からの
アクセス信号に応じてA/D変換値がCPU4に送出される。
The parameters from the CPU4 are input to the A / D converter 3,
The A / D converter 3 digitally converts the analog input signal according to this parameter. When the A / D conversion is completed, the A / D converter 3 outputs an end signal and the CPU 4 registers 31
When the access signal is output to, the parameters stored in the register 31 are also output. Parameter output from CPU4 (parameter stored in register 41) and register 31
When it matches the parameter stored in, the A / D conversion value is sent to the CPU 4 in response to the access signal from the CPU 4.

次に、第3図のステップ305におけるフェイルセーフ
処理について説明する。
Next, the fail-safe processing in step 305 of FIG. 3 will be described.

フェイルセーフ処理を行なう時は、ステップ304でパ
ラメータが一致しない場合である。まずパラメータがど
のような時一致しないかを第7図に基づいて説明する。
The fail-safe processing is performed when the parameters do not match in step 304. First, when the parameters do not match will be described with reference to FIG.

第1の処理系とこの処理系より優先順位が高い第2の
処理系とがある場合を考える。なお、この2つの処理系
には、互いに異なるアナログ信号入力チャンネルのA/D
変換を実行する処理ルーチンが含まれているものとす
る。
Consider a case where there is a first processing system and a second processing system having a higher priority than this processing system. Note that these two processing systems have different A / D of analog signal input channels.
It is assumed that the processing routine for performing the conversion is included.

第1の処理系のステップS10ではA/D変換タイミングが
発生しパラメータをA/D変換器3に送出してA/D変換を実
行させる。その後、優先度が高い第2の処理系のステッ
プS20でA/D変換タイミングが発生し、パラメータを送出
すると第1の処理系のA/D変換は中断され、第2の処理
系のA/D変換が実行される。このときA/D変換器3内のレ
ジスタ31は第2の処理系のパラメータに書き替えられ
る。そして第2の処理系のA/D変換が終了すると、ステ
ップS21で第2の処理系のA/D変換値を取り出して第2の
処理系を終了する。
In step S10 of the first processing system, the A / D conversion timing is generated and the parameters are sent to the A / D converter 3 to execute the A / D conversion. After that, in step S20 of the second processing system with high priority, the A / D conversion timing occurs, and when the parameters are sent, the A / D conversion of the first processing system is interrupted and the A / D conversion of the second processing system is interrupted. D conversion is executed. At this time, the register 31 in the A / D converter 3 is rewritten with the parameters of the second processing system. When the A / D conversion of the second processing system is completed, the A / D conversion value of the second processing system is taken out and the second processing system is completed in step S21.

その後中断した第1の処理系を復帰させて、第1の処
理系のA/D変換処理ルーチンの続きを実行させるが、こ
のときレジスタ31には第2の処理系のパラメータが記憶
されている。その後第1の処理系のA/D変換の終了を検
出すると、ステップS11で第1の処理系でのCPU4から出
力されたレジスタ41に記憶されたパラメータとレジスタ
31に記憶されたパラメータとが一致するかチェックす
る。レジスタ31には第2の処理系で出されたパラメータ
が記憶されているため一致しない。即ち、A/D変換中に
他の処理系のA/D変換処理ルーチンの実行によってパラ
メータが入力したとき一致しない。
After that, the interrupted first processing system is restored and the continuation of the A / D conversion processing routine of the first processing system is executed. At this time, the register 31 stores the parameters of the second processing system. . After that, when the end of the A / D conversion of the first processing system is detected, the parameter stored in the register 41 output from the CPU 4 of the first processing system and the register
Check if the parameters stored in 31 match. The parameters issued by the second processing system are stored in the register 31 and do not match. That is, when the parameters are input by executing the A / D conversion processing routine of another processing system during the A / D conversion, they do not match.

また、パラメータが一致しない他の例としては、A/D
変換器3が故障してレジスタ31のパラメータを破壊して
しまった場合や、制御プログラムが暴走した場合が考え
られる。
Another example where the parameters do not match is A / D
It is possible that the converter 3 breaks down and destroys the parameters of the register 31, or the control program runs out of control.

以上の様にパラメータが一致しない場合は、A/D変換
が正常に行なわれていないため、A/D変換値を正常なデ
ータとして用いることはできない。そのためパラメータ
が一致しない場合はフェーイルセーフ処理する必要があ
る。
If the parameters do not match as described above, the A / D conversion is not performed normally, so the A / D converted value cannot be used as normal data. Therefore, if the parameters do not match, fail-safe processing is required.

フェイルセーフ処理としてはパラメータが一致しない
とき、CPU4に対してシステムリセット(再起動)をかけ
て第2図のステップ100に戻って初期設定を行なってい
る。
In the fail-safe process, when the parameters do not match, a system reset (restart) is performed on the CPU 4 and the process returns to step 100 in FIG. 2 to perform initial setting.

以上説明した実施例でのパラメータチェックでは8ビ
ットすべての値が一致しているかどうか判別していた
が、所定のビット位置だけ比較して一致すれば正常と判
断する様にしてもよい。
In the parameter check in the embodiment described above, it was determined whether or not all 8-bit values match, but it is also possible to compare only predetermined bit positions and determine that they are normal if they match.

例えば、ビット位置6のパラメータは1回のみ変換
か、複数回変換かを指令するものであるためビット位置
6か一致しなくても他のビット位置が一致していればA/
D変換値を正常な値として用いてもよい。
For example, the parameter at bit position 6 is for instructing whether to convert only once or multiple times, so even if bit position 6 does not match, if other bit positions match, A /
The D conversion value may be used as a normal value.

この場合の一致判定は、まずCPU4のレジスタ41に記憶
されたパラメータのビット位置6を0に書き換える。そ
してA/D変換器3内のレジスタ31からCPU4に転送された
パラメータのビット位置6を0に書き換える。次に以上
の様に書き換えられたおのおののパラメータの差をと
る。そしてこの差が0であれば一致と判定する。
In the match determination in this case, first, the bit position 6 of the parameter stored in the register 41 of the CPU 4 is rewritten to 0. Then, the bit position 6 of the parameter transferred to the CPU 4 from the register 31 in the A / D converter 3 is rewritten to 0. Next, take the difference between the respective parameters rewritten as above. If this difference is 0, it is determined that they match.

また、上記したフェイルセーフ処理のかわりに、A/D
変換器3に対して異常と判定されたアナログ信号入力の
A/D変換の再起動をかけたり、A/D変換値の更新を行なわ
ないようにしてもよい。
Also, instead of the fail-safe processing described above, A / D
Of the analog signal input that is determined to be abnormal to the converter 3
The A / D conversion may be restarted or the A / D conversion value may not be updated.

また本実施例では、A/D変換器3のレジスタ31は1つ
だけであるが、パラメータの設定項目数が大きいときは
複数のレジスタを設けてもよい。
In the present embodiment, the A / D converter 3 has only one register 31, but a plurality of registers may be provided when the number of parameter setting items is large.

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

第1図は本発明実施例の全体の構成を示したブロック
図、第2図,第3図及び第7図はCPU4及びA/D変換器3
の動作説明に供したフローチャート、第4図及び第5図
はパラメータの説明に供した説明図、第6図はA/D変換
器とCPU間のデータの通信を示したブロック図である。 3……A/D変換器,31……レジスタ,4……CPU,5……ROM,6
……RAM。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention, and FIGS. 2, 3, and 7 are CPU 4 and A / D converter 3.
FIG. 4 is a flow chart for explaining the operation of FIG. 4, FIGS. 4 and 5 are explanatory diagrams for explaining the parameters, and FIG. 6 is a block diagram showing data communication between the A / D converter and the CPU. 3 …… A / D converter, 31 …… Register, 4 …… CPU, 5 …… ROM, 6
……RAM.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】入力された複数のアナログ信号をそれぞれ
対応するデジタルデータに変換し、このデジタルデータ
を出力する変換手段と、 所定タイミング毎に実行される第一処理とこの第一処理
に対し割込む第二処理とを実行すると共に、前記第一処
理実行時には第一処理に必要なデジタルデータを選択
し、第二処理実行時には第二処理に必要なデジタルデー
タを選択するA/D変換動作命令を前記変換手段に対し送
信する送信手段と、 前記送信手段内に設けられており、実行される前記第一
処理または第二処理に対応して送信されるA/D変換動作
命令の内容を記憶するものであって、A/D変換動作命令
送信毎にこの記憶内容が更新される制御記憶手段と、前
記変換手段内に設けられており、前記送信手段から送信
されたA/D変換動作命令を受信してその内容を記憶する
ものであって、A/D変換動作命令受信毎にこの記憶内容
が更新される記憶手段と、 前記変換手段によるデジタルデータへの変換後、前記記
憶手段に記憶されている最新のA/D変換動作命令の内容
と前記制御記憶手段に記憶されている最新のA/D変換動
作命令の内容とが一致しているか不一致かを判別する判
別手段と、 前記判別手段により不一致と判別された時、前記変換手
段より出力れた前記デジタルデータを無視して所定のフ
ェイルセーフ処理を実行するフェイルセーフ手段と を備えたことを特徴とするアナログ・デジタル(A/D)
変換装置。
1. A conversion means for converting a plurality of input analog signals into corresponding digital data and outputting the digital data, a first process executed at a predetermined timing, and a ratio for the first process. A / D conversion operation command for selecting the digital data required for the first process when executing the first process and selecting the digital data required for the second process when executing the second process And transmitting means for transmitting to the conversion means, and stores the contents of an A / D conversion operation command which is provided in the transmission means and is transmitted in response to the first process or the second process to be executed. And a storage unit for updating the stored contents each time an A / D conversion operation command is transmitted, and an A / D conversion operation command transmitted from the transmission unit, provided in the conversion unit. To receive A storage unit for storing the contents, the storage contents being updated each time an A / D conversion operation command is received, and the latest data stored in the storage unit after conversion into digital data by the conversion unit. Discriminating means for discriminating whether or not the contents of the A / D conversion operation command and the contents of the latest A / D conversion operation command stored in the control storage means are coincident with each other; Analog / digital (A / D), characterized in that the digital data output from the conversion means is ignored and a predetermined failsafe processing is executed.
Conversion device.
【請求項2】前記A/D変換動作命令は複数のアナログ信
号のうちA/D変換するアナログ信号を選択するビットと
前記変換手段の動作を設定するビットを備える2進数デ
ータの形で送信されることを特徴とする請求項1記載の
アナログ・デジタル(A/D)変換装置。
2. The A / D conversion operation command is transmitted in the form of binary data having a bit for selecting an analog signal to be A / D converted among a plurality of analog signals and a bit for setting the operation of the conversion means. The analog / digital (A / D) conversion device according to claim 1, wherein
【請求項3】前記判別手段は、前記記憶手段に記憶され
ている最新のA/D変換動作命令と前記制御記憶手段に記
憶されている最新のA/D変換動作命令との所定ビットの
内容を比較し、この所定ビットの内容が一致しているか
判別することを特徴とする請求項2記載のアナログ・デ
ジタル(A/D)変換装置。
3. The content of predetermined bits of the latest A / D conversion operation instruction stored in the storage means and the latest A / D conversion operation instruction stored in the control storage means, 3. The analog-to-digital (A / D) conversion device according to claim 2, wherein the contents of the predetermined bits are compared with each other to determine whether they match.
JP2316604A 1990-11-20 1990-11-20 Analog / digital (A / D) converter Expired - Lifetime JPH0831793B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2316604A JPH0831793B2 (en) 1990-11-20 1990-11-20 Analog / digital (A / D) converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2316604A JPH0831793B2 (en) 1990-11-20 1990-11-20 Analog / digital (A / D) converter

Publications (2)

Publication Number Publication Date
JPH04185114A JPH04185114A (en) 1992-07-02
JPH0831793B2 true JPH0831793B2 (en) 1996-03-27

Family

ID=18078924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2316604A Expired - Lifetime JPH0831793B2 (en) 1990-11-20 1990-11-20 Analog / digital (A / D) converter

Country Status (1)

Country Link
JP (1) JPH0831793B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4409313B2 (en) * 2004-02-24 2010-02-03 株式会社デンソー Brushless motor drive device
DE102013216223A1 (en) 2013-08-15 2015-02-19 Robert Bosch Gmbh Universally applicable control and evaluation unit, in particular for operating a lambda probe

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59108938U (en) * 1983-01-05 1984-07-23 株式会社明電舎 data acquisition circuit
JP2654049B2 (en) * 1988-02-02 1997-09-17 株式会社東芝 Monitoring circuit for analog / digital converter
JPH0243812A (en) * 1988-08-03 1990-02-14 Toshiba Electric Appliance Co Ltd Fault detector for a/d converter

Also Published As

Publication number Publication date
JPH04185114A (en) 1992-07-02

Similar Documents

Publication Publication Date Title
EP0894975B1 (en) Vehicle electronic control using one A/D converter for time-synchronous and time-asynchronous A/D conversion
US6636989B1 (en) Electronic control apparatus and method for on-board rewriting of non-volatile memories
US6694241B2 (en) Shift control method and system for automatic transmission
US7248932B2 (en) Electronic control unit
EP0740059B1 (en) An A/D conversion control apparatus for an internal combustion engine
JPH0831793B2 (en) Analog / digital (A / D) converter
US6990404B2 (en) Vehicular controller
US20040254766A1 (en) Electronic system with a plurality of electronic units
US6502021B2 (en) Vehicle control computer apparatus having self-diagnosis function
JP3325040B2 (en) Electronic throttle control mechanism
US5531200A (en) Control apparatus for engine
US5737630A (en) Communication device for synchronized serial communication
US6349254B1 (en) Shift control method for automatic transmission
US7120913B2 (en) Processing execution apparatus having data reference limiting function
US20030224905A1 (en) Method and apparatus for controlling diesel engine
JP2000029710A (en) Electronic controller
JP2001195318A (en) Extension unit and electronic controller
US5829410A (en) Device for controlling ignition timing in an internal combustion engine
JPH0742609A (en) Memory checker for vehicle controller
JPH05240106A (en) Electronic control unit to be mounted on vehicle
JP3339763B2 (en) Analog / digital converter
JP2001273152A (en) Electronic controller
JP2004318672A (en) Processor
JP2000248990A (en) Engine control device
JPH05128065A (en) Data communication equipment