JPH02271719A - Analog/digital converter - Google Patents

Analog/digital converter

Info

Publication number
JPH02271719A
JPH02271719A JP9381989A JP9381989A JPH02271719A JP H02271719 A JPH02271719 A JP H02271719A JP 9381989 A JP9381989 A JP 9381989A JP 9381989 A JP9381989 A JP 9381989A JP H02271719 A JPH02271719 A JP H02271719A
Authority
JP
Japan
Prior art keywords
signal
command signal
circuit
analog
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9381989A
Other languages
Japanese (ja)
Inventor
Seigo Tanaka
誠吾 田中
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 Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP9381989A priority Critical patent/JPH02271719A/en
Publication of JPH02271719A publication Critical patent/JPH02271719A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To attain optimum control by providing a switch selecting plural analog signals, an A/D converter, a memory, a circuit leading a signal for each time interval and a circuit introducing a signal at each time interval different from the former time interval. CONSTITUTION:A 1st command signal M1 is supplied from a processing circuit 7 to a changeover switch 2 and an A/D converter circuit 6 for each predetermined time interval W3. A signal of the time period system is fed to channels 3b-3f, the signal is converted by the A/D converter 6 and supplied to the circuit 7. While a signal M1 is stored in a memory 15, when a 2nd command signal is introduced, the content of the memory 15 is rewritten from the signal M1 into the signal M2. When the signal M1 is introduced while the signal M2 is stored, the content of the memory is not rewritten. Thus, the A/D conversion of the output from a peak hold circuit 14 being a signal of a crank angle period system based on the signal M2 is surely executed without being neglected.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、アナログ/デジタル変換装置に関し、特に詳
しくは、1つのアナログ/デジタル変換回路において並
行に異なるタイミングで導出される信号に対してアナロ
グ/デジタル変換を行うi%会であって、前記変換する
タイミングを優先すべき信号が存在する際に好適に実施
することができるアナログ/デジタル変換装置に間する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an analog/digital conversion device, and more particularly, the present invention relates to an analog/digital conversion device for analog/digital conversion of signals derived in parallel at different timings in one analog/digital conversion circuit. The analog/digital converter is an analog/digital converter that performs the conversion and can suitably perform the conversion when there is a signal that should be prioritized.

従来の技術 たとえば、自動車の内燃機関の燃料噴射制御装置などに
おいては、従来から1つのアナログ/デジタル変換(以
下、rA/D変換」という、)回路で、複数のセンサか
らのアナログ信号を順次的にデジタル値に変換し、処理
回路へ与え、燃料噴射弁の開閉制御などを行っている。
Conventional technology For example, in fuel injection control devices for internal combustion engines in automobiles, analog signals from multiple sensors are sequentially converted using a single analog/digital conversion (hereinafter referred to as rA/D conversion) circuit. The data is converted into a digital value and sent to a processing circuit to control the opening and closing of fuel injection valves.

前記A/D変換回路へ与えられるアナログ信号には、た
とえば1m5ecの予め定められる時間間隔毎に順次的
に選択されて与えられる信号と、クランク角に同期して
順次的に与えられる信号とがある。前者は時間周期系の
信号であり、たとえば吸入空気圧センナの出力PM、水
温センサの出力THW、さらにスロットル弁開度上ンサ
の出力TAなどがあげられる。一方、後者はクランク角
周期系の信号であり、たとえばノッキングセンサからの
信号をピークホールド回路に介した出力Nがあげられる
The analog signals given to the A/D conversion circuit include signals that are sequentially selected and given at predetermined time intervals of, for example, 1 m5ec, and signals that are given sequentially in synchronization with the crank angle. . The former are time-periodic signals, such as the output PM of an intake air pressure sensor, the output THW of a water temperature sensor, and the output TA of a throttle valve opening sensor. On the other hand, the latter is a crank angle periodic signal, such as an output N obtained by passing a signal from a knocking sensor through a peak hold circuit.

前記具なるタイミングで導出されるアナログ信号を1つ
のA/D変換回路によって順次的にデジタル値に変換す
る4会には、従来は以下の手順で行っている。
Conventionally, the following procedure is used to sequentially convert analog signals derived at specific timings into digital values by one A/D conversion circuit.

前記時間周期系の信号、すなわち、各センサからの出力
は、A/D変換回路へ接続される切換スイッチの各チャ
ネルに個別に与えられる。処理回路は1m5ec毎に、
時間周期系の信号を変換するために切換えるべきチャネ
ルを指示する第1指令信号M1を切換スイッチへ与え、
順次的に切換えられるチャネルに与えられるセンナから
の出力をA/D変換回路に読込む、たとえば第9112
1<1>においては、1m5ecの期間W1毎の時刻t
o。
The time periodic signal, ie, the output from each sensor, is individually given to each channel of a changeover switch connected to an A/D conversion circuit. Processing circuit every 1m5ec,
Applying a first command signal M1 to the changeover switch to instruct the channel to be switched in order to convert the time periodic signal;
For example, the 9112th sensor reads the output from the sensor given to the sequentially switched channels into the A/D conversion circuit.
1<1>, time t for each period W1 of 1m5ec
o.

tl、t2において切換スイッチのチャネルを切換え、
それぞれ各センナからの出力PM、THW。
Switch the channel of the changeover switch at tl and t2,
Output PM and THW from each senna, respectively.

TAを前記切換スイッチを介してA/D変換回路へ順次
的に読込み、変換後に処理回路へ与えるタイミングを示
している。各@l’lW 1は、それぞれ読込まれるア
ナログ信号をA/D変換回路においてデジタル値に変換
し、処理回路へ与えて、演算処理などを行う、すなわち
A/D変換動作を行う実行期間Wllと、前記実行期間
終了後に続いてA/D変換回路で時間周期系の信号の読
込みを開始するまでの時期期間W12とから成る。なお
、前記実行期間は、読込まれる各出力において同一時間
間隔とは限らない。
The figure shows the timing at which TA is sequentially read into the A/D conversion circuit via the changeover switch and applied to the processing circuit after conversion. Each @l'lW 1 is an execution period Wll in which the analog signal read in is converted into a digital value in an A/D conversion circuit, and is given to a processing circuit to perform arithmetic processing, etc., in other words, performs A/D conversion operation. and a timing period W12 from the end of the execution period until the A/D conversion circuit starts reading time periodic signals. Note that the execution period is not necessarily the same time interval for each read output.

また、前記クランク角周期系の信号、すなわちノッキン
グセンサを経たピークホールド回路からの出力は、前記
切換スイッチの残余のチャネルに与えられる。処理回路
は、前記第1指令信号M1の他に、クランク角センサか
らの出力に基づいて予め定められる期%fl W 2毎
に、クランク角周期系の信号を変換するために切換える
べきチャネルを指示する第2指令信号M2を切換スイッ
チへ与え、切換えられるチャネルに与えられるピークホ
ールド回路からの出力をA/D変換回路に読込む。
Further, the crank angle periodic signal, that is, the output from the peak hold circuit that has passed through the knocking sensor, is given to the remaining channels of the changeover switch. In addition to the first command signal M1, the processing circuit also instructs the channel to be switched in order to convert the crank angle periodic signal every predetermined period %flW2 based on the output from the crank angle sensor. A second command signal M2 is applied to the changeover switch, and the output from the peak hold circuit applied to the channel to be changed is read into the A/D conversion circuit.

たとえば4サイクル4気筒火花点火内燃機間では、各気
筒の上死点TDCはクランク角にして180°CA毎に
ある。ノッキングセンナは気筒近傍に設けられており、
前記気筒における上死点TDC以後の振動量を検知し、
ピークホールド回路にて最大振幅を検出する。したがっ
て、ピークホールド回路からの出力をA/D変換すべき
タイミングは各気筒の上死点TDC後のクランク角にし
て90°CA程度毎になる。第9図(2)には、前記第
9図(1)のタイミングチャートと時間配分を一致させ
て、第1気筒に対するノッキングセンサからのピークホ
ールド回路を経た出力N1のA/D変換動作を行うべき
タイミングを示している。なお、第9図(2)において
、期間W2は第3気筒の上死点TDC(3)後のクラン
ク角にして90” CAまでの期間である。
For example, in a 4-cycle, 4-cylinder spark-ignition internal combustion engine, the top dead center TDC of each cylinder is located every 180° CA in terms of crank angle. The knocking senna is installed near the cylinder.
detecting the amount of vibration after top dead center TDC in the cylinder;
Detect the maximum amplitude with the peak hold circuit. Therefore, the timing at which the output from the peak hold circuit is A/D converted is every approximately 90° CA of the crank angle after the top dead center TDC of each cylinder. In FIG. 9(2), the A/D conversion operation of the output N1 from the knocking sensor for the first cylinder via the peak hold circuit is performed with the time distribution matching the timing chart of FIG. 9(1). It shows the right timing. Note that in FIG. 9(2), period W2 is a period from the top dead center of the third cylinder TDC(3) to a crank angle of 90'' CA.

第9図〈1)において前記待機期rWIW12の間は、
時間周期系の信号に対してはA/D変換を行っていない
、したがって、前記待機期間W12中の時刻t3におい
て、第9図(2)に示されるようにクランク角周期系の
信号、第2指令信号M2が切換スイッチへ与えられると
、切換スイッチのチャネルは時間周期系の信号が与えら
れるチャネルから切換えられ、前記ピークホールド回路
からの信号がA/D変換回路へ読込まれ、A / D変
換動作が行われる。
In FIG. 9 (1), during the waiting period rWIW12,
A/D conversion is not performed on the time periodic signal. Therefore, at time t3 during the waiting period W12, as shown in FIG. 9(2), the crank angle periodic signal, the second When the command signal M2 is applied to the changeover switch, the channel of the changeover switch is switched from the channel to which the time periodic signal is applied, and the signal from the peak hold circuit is read into the A/D conversion circuit and A/D conversion is performed. An action is taken.

前記待機期間にクランク角周期系の信号のA/D変換動
作が開始すると、時間周期系の信号を変換すべき時刻で
あるにもかかわらず、クランク角周期系の信号のA/D
変換動作が継続中であって、前記時間周期系の信号のA
/D変換動作を開始できない場合が起こり得る。たとえ
ば第9図(1)。
When the A/D conversion operation of the crank angle periodic signal is started during the waiting period, the A/D conversion operation of the crank angle periodic signal is started even though it is the time when the time periodic signal should be converted.
While the conversion operation is continuing, A of the time periodic signal is
/D conversion operation may not be started. For example, Figure 9 (1).

(2)に示すように、時刻t1では、前記時刻t1以前
の時刻t3においてクランク角周期系の信号であるピー
クホールド回路からの出力N1のA/D変換動作が継続
しており、時間周期系の信号である水温センナからの出
力T)IWはA/D変換動作を開始すべきタイミングで
あるにもかかわらず、開始できない。
As shown in (2), at time t1, the A/D conversion operation of the output N1 from the peak hold circuit, which is a crank angle periodic signal at time t3 before the time t1, continues; Even though the output T)IW from the water temperature sensor, which is the signal of , is the timing to start the A/D conversion operation, the A/D conversion operation cannot be started.

第9図(3)には、第9図(1)、(2)のようにA/
D変換動作が要求された際に、A/D変換回路にて処理
される信号のタイミングチャートが示されている。前記
場合を想定して、処理回路内には予めメモリが設けられ
る。すなわち、時間周期系の信号を変換すべきタイミン
グであっても、クランク角周期系の信号のA/D変換動
作が継続中であるならば、変換すべきであった時間周期
系の信号が与えられているチャネルを示す第1指令信号
M1を前記メモリ内にストアする。その後、前記クラン
ク角周期系の信号のA/D変換動作が終了した後に、前
記メモリ内から第1指令信号M1を読出し、切換スイッ
チのチャネルを前記指令信号に基づいて切換え、時間周
期系の信号の出力THWのA/D変換動作を開始する。
Figure 9 (3) shows the A/
A timing chart of signals processed by the A/D conversion circuit when a D conversion operation is requested is shown. Assuming the above case, a memory is provided in advance in the processing circuit. In other words, even if it is the timing to convert the time periodic signal, if the A/D conversion operation of the crank angle periodic signal is ongoing, the time periodic signal that should have been converted will not be given. A first command signal M1 indicating the channel being assigned is stored in said memory. Thereafter, after the A/D conversion operation of the crank angle periodic signal is completed, the first command signal M1 is read out from the memory, the channel of the changeover switch is switched based on the command signal, and the time periodic signal is The A/D conversion operation of the output THW is started.

すなわち、第9図(3)において時刻t4から水温セン
サの出力THWのA/D変換動作が開始する。その後、
第9図(3)に示すように前記時間周期系の信号の周期
、すなわち期間W1のタイミングに復帰し、時刻t2に
おいて、続く時間周期系の信号を読取るために切換スイ
ッチのチャネルを切換えて、以後A/D変換動作が行わ
れる。
That is, in FIG. 9(3), the A/D conversion operation of the output THW of the water temperature sensor starts from time t4. after that,
As shown in FIG. 9(3), the cycle of the time-periodic signal, that is, the timing of period W1 is restored, and at time t2, the channel of the changeover switch is changed in order to read the following time-periodic signal, Thereafter, an A/D conversion operation is performed.

前記メモリの活用は、クランク角周期系の信号のA/D
変換動作中における時間周期系の信号のA/D変換動作
の割込みに対して行われているけれども、反対に時間周
期系の信号のA/D変換動作中にクランク角周期系の信
号のA/D変換動作の割込みが要求された場合にも、同
様に前記メモリが活用される。なお、メモリ内にストア
されていた指令信号に基づいて変換動作が開始すると、
メモリ内のストア内容は消去される。
Utilization of the memory is for A/D of crank angle periodic signals.
This is done in response to an interruption of A/D conversion of a time-periodic signal during a conversion operation, but conversely, the A/D conversion of a crank angle periodic signal is performed during an A/D conversion of a time-periodic signal. The memory is similarly utilized when an interrupt for a D conversion operation is requested. Furthermore, when the conversion operation starts based on the command signal stored in the memory,
The stored contents in memory are erased.

第10因は、待機期rfRW1:2中に行われる制御動
作を説明するためのフローチャートである。まず、ステ
ップs1では、A/D変換されたデジタル値に基づいて
処理回路において演算処理などの処理動作が行われ、ス
テップs2において前記メモリ内に続いて切換えるべき
チャネルを示す指令信号がストアされているが否かが判
断される。指令信号がストアされていなければ、処理は
他の処理へ進み、処理回路内における以後の処理が行わ
れる。
The tenth factor is a flowchart for explaining the control operation performed during the standby period rfRW1:2. First, in step s1, a processing operation such as arithmetic processing is performed in the processing circuit based on the A/D converted digital value, and in step s2, a command signal indicating a channel to be subsequently switched is stored in the memory. It is determined whether there is or not. If the command signal is not stored, processing proceeds to other processing and subsequent processing within the processing circuit is performed.

一方、前記ステップs2においてメモリ内に指令信号が
ストアされているならば、まだ以前のA/D変換動作が
継続中であると判断し、処理はステップs3へ進み、以
前から継続中であったA/D変換動作終了後、直ちに切
換スイッチのチャネルを切換えて、続<A/D変換動作
を開始し、ステップS4において前記ストアされていた
指令信号を消去し、他の処理へ進む。
On the other hand, if the command signal is stored in the memory in step s2, it is determined that the previous A/D conversion operation is still continuing, and the process proceeds to step s3, where the previous A/D conversion operation is continued. Immediately after the A/D conversion operation is completed, the channel of the changeover switch is changed to start the continuation A/D conversion operation, the stored command signal is erased in step S4, and the process proceeds to other processing.

発明が解決しようとする課題 上述の構成によれば、いずれか一方の周期系の信号のA
/D変換動作中であっても、メモリを活用することによ
って前記A/D変換動作終了後直ちに続<:A/D変換
動作を開始することができるけれども、以下のような問
運点が生じる。
Problems to be Solved by the Invention According to the above configuration, the A of one of the periodic signals is
Even during the /D conversion operation, it is possible to start the next A/D conversion operation immediately after the end of the A/D conversion operation by utilizing memory, but the following problems occur. .

たとえば、時刻10において、時間周期系の信号のA/
D変換動作が開始したにも拘わらず、処理回路に他の処
理動作の割込みが生じ、A/D変換回路から変換された
デジタル値を処理回路内へ与えることができず、第9因
(1’)における実行期間Witに相当する期間が延長
し、時間周期系の信号の切換え要求タイミングである時
刻t1においてもなお、前記A/D変換動作が継続中と
なるような場合がある。前記場合には、前述のように前
記時刻t1において前記メモリを活用して、続いてA/
D変換動作を行うために切換えるべきチャネルを示す指
令信号を前記メモリ内にストアする。第11(J(1)
を参照すると、時刻t1においてメモリ内には水温セン
サの出力THWが与えられるチャネルを示す第1指令信
号M 1がストアされる。前記時刻tl後の時刻t5に
おいて、継続中であった吸入空気圧の出力p MのA/
Dg:換動作が終了すると、続いて前記水温センサの出
力THWのA/D変換動作が開始する。
For example, at time 10, A/
Even though the D conversion operation has started, the processing circuit is interrupted by another processing operation, and the converted digital value cannot be given to the processing circuit from the A/D conversion circuit. There is a case where the period corresponding to the execution period Wit in ') is extended, and the A/D conversion operation is still continuing even at time t1, which is the switching request timing of the time periodic signal. In the above case, as described above, the memory is utilized at the time t1, and then A/
A command signal indicating the channel to be switched to in order to perform a D-conversion operation is stored in the memory. 11th (J(1)
Referring to , at time t1, a first command signal M1 indicating the channel to which the output THW of the water temperature sensor is applied is stored in the memory. At time t5 after the above-mentioned time tl, the ongoing intake air pressure output p M is A/
When the Dg: conversion operation is completed, the A/D conversion operation of the output THW of the water temperature sensor starts.

ところで、第111!!l (2>に示されるように、
前述の時刻t1から時刻t5までの期間W5内の時刻t
6において、クランク角周期系の信号であるピークホー
ルド回路からの信号のA/D変換動作を開始するように
切換スイッチのチャネルを切換えを要求する第2指令信
号M2が導出されても、既に前記メモリ内には第1指令
信号M1がストアされているので、前記第2指令信号M
2をストアすることはできない、すなわち、第11[!
i?I(3)に示されるように、前記期間W5中に要求
されたクランク角周期系の信号のA/D変換動作は実行
することができず、無視されることになる。したがって
、第1111Pにおいては水i墨センサからの出力TH
WのA/D変換動作が終了した後には、待機期間を経て
時刻t2からスロットル弁開度センサの出力TAのA/
D変換動作が開始し、ノッキングセンサからピークホー
ルド回路を介した出力N1のA/D変換動作は行われな
い。
By the way, the 111th! ! As shown in l (2>,
Time t within the period W5 from the aforementioned time t1 to time t5
6, even if the second command signal M2 requesting switching of the channel of the changeover switch is derived to start the A/D conversion operation of the signal from the peak hold circuit, which is a crank angle periodic signal, the above-mentioned signal has already been derived. Since the first command signal M1 is stored in the memory, the second command signal M
2 cannot be stored, i.e. the 11th [!
i? As shown in I(3), the A/D conversion operation of the crank angle periodic signal requested during the period W5 cannot be performed and is ignored. Therefore, in the 1111P, the output TH from the ink sensor
After the A/D conversion operation of W is completed, the A/D conversion of the output TA of the throttle valve opening sensor starts from time t2 after a waiting period.
The D conversion operation starts, and the A/D conversion operation of the output N1 from the knocking sensor via the peak hold circuit is not performed.

一般に、前述のようにノッキングセンサからの出力は内
燃機関へ与えられる振動などの程度を表している。した
がって、過度のノッキングでは、バルブ、点火プラグ、
さらにピストンなどの損傷にまで至ることがあり、前記
ノッキングセンサからの出力は、前記出力に応答して燃
料噴射弁の開閉角度などを適度に制御しなければならな
い重要な信号である。一方、前記時間周期系の信号は、
多少無視されてもノッキングセンサからの出力に比べて
余り制御上支障が生じることはない。すなわち、クラン
ク角周期系の信号のA/D変換動作は、時間周期系の信
号のA/D変換動作に対して優先的に行われなければな
らないと考えることができる。けれども、前述の従来の
構成では、前述のように時間周期系の信号のA/D変換
動作が予め定められる時間以上継続されてしまうと、あ
るタイミングで要求されたクランク角周期系の信号のA
/D変換動f?が無視されてしまうというl?!ff題
点が生じる。
Generally, as described above, the output from the knocking sensor represents the degree of vibration, etc. applied to the internal combustion engine. Therefore, with excessive knocking, the valve, spark plug,
Furthermore, it may even lead to damage to the piston, etc., and the output from the knocking sensor is an important signal that requires appropriate control of the opening/closing angle of the fuel injection valve in response to the output. On the other hand, the time periodic signal is
Even if it is ignored to some extent, it will not cause much trouble in control compared to the output from the knocking sensor. That is, it can be considered that the A/D conversion operation of the crank angle periodic signal must be performed preferentially over the A/D conversion operation of the time periodic signal. However, in the conventional configuration described above, if the A/D conversion operation of the time periodic signal is continued for more than a predetermined time as described above, the A/D conversion operation of the crank angle periodic signal requested at a certain timing is
/D conversion dynamic f? Is it true that things are ignored? ! ff problem arises.

本発明の目的は、第2時間間隔毎に要求されるアナログ
/デジタル変換すべき第2指令信号に基づくアナログ/
デジタル変換動作を無視することなく、確実に実行する
ことができるアナログ/デジタル変換装置を提供するこ
とにある。
It is an object of the present invention to provide an analog/digital conversion based on a second command signal to be converted from analog to digital, which is required every second time interval.
An object of the present invention is to provide an analog/digital conversion device that can reliably execute digital conversion operations without neglecting them.

課題を解決するための手段 本発明は、複数のアナログ信号を1つずつ選択する切換
スイッチと、 前記切換スイッチの出力をデジタル値に変換するアナロ
グ/デジタル変換回路と、 前記切換スイッチによって切換えるべきチャネルを示す
指令信号をストアするメモリと、予め定める第1時間間
隔毎に、アナログ/デジタル変換すべき第1指令信号を
導出する第1指令回路と、 前記第1時間間隔と異なる予め定める第2時間間隔毎に
、アナログ/デジタル変換すべき第2指令信号を導出す
る第2指令回路と、 前記アナログ/デジタル変換回路によるアナログ/デジ
タル変換および/または、前記アナログ/デジタル変換
に基づく演算処理の継続動作中に、前記第1指令回路か
ら第1指令信号が導出されたとき、前記第1指令信号を
前記メモリにストアする第1制御手段と、 前記メモリに第1指令信号がストアされている状態で、
前記第2指令回路から第2指令信号が導出されたとき、
前記メモリのストア内容を第2指令信号へ書換える第2
制御手段と、 前記継続動作終了後に、前記メモリにストアされている
第1指令信号または第2指令信号に基づいて、前記切換
スイッチのチャネルを切換える第3制御手段とを含むこ
とを特徴とするアナログ/デジタル変換装置である。
Means for Solving the Problems The present invention provides: a changeover switch that selects a plurality of analog signals one by one; an analog/digital conversion circuit that converts the output of the changeover switch into a digital value; and a channel to be switched by the changeover switch. a first command circuit that derives a first command signal to be converted from analog to digital at each predetermined first time interval; and a predetermined second time different from the first time interval. a second command circuit that derives a second command signal to be converted from analog to digital at intervals; and a continuous operation of analog/digital conversion by the analog/digital conversion circuit and/or arithmetic processing based on the analog/digital conversion. a first control means for storing the first command signal in the memory when the first command signal is derived from the first command circuit; and with the first command signal being stored in the memory; ,
When a second command signal is derived from the second command circuit,
a second command signal for rewriting the stored contents of the memory into a second command signal;
An analog device characterized by comprising: a control means; and a third control means for switching the channel of the changeover switch based on a first command signal or a second command signal stored in the memory after the completion of the continuous operation. /Digital conversion device.

作  用 本発明のアナログ/デジタル変換装置によれば、複数の
アナログ信号は、1つずつ選択されて切換スイッチへ与
えられ、前記切換スイッチの出力がアナログ/デジタル
変換回路によってデジタル値に変換される。前記切換ス
イッチとアナログ/デジタル変換回路とには、第1指令
回路から予め定められる第1時間間隔毎にアナログ/デ
ジタル変換するために、前記切換スイッチによって切換
えるべきチャネルを示す第1指令信号が与えられ、また
、第2指令回路からは前記第1時間間隔と異なる予め定
める第2時間間隔毎にアナログ/デジタル変換するため
に、前記切換スイッチによって切換えるべきチャネルを
示す第2指令信号が与えられる。前記アナログ/デジタ
ル変換回路によるアナログ/デジタル変換および/また
は前記アナログ/デジタル変換に基づく演算処理の継続
動作中に、前記第1指令回路から第1指令信号が導出さ
れたときには、第1制御手段によって前記第1指令信号
は予め設けられるメモリ内にストアされる。前記継続動
作終了−後に、前記メモリにストアされている第1指令
信号に基づいて、第3制御手段によって前記切換スイッ
チのチャネルは切換えられ、アナログ/デジタル変換が
開始する。一方、前記メモリに第1指令信号がストアさ
れている状等で、前記第2指令回路から第2指令信号が
導出されたときには、第2制御手段によって前記メモリ
のストア内容は第2指令信号へ書換えられる。
According to the analog/digital conversion device of the present invention, a plurality of analog signals are selected one by one and applied to the changeover switch, and the output of the changeover switch is converted into a digital value by the analog/digital conversion circuit. . The changeover switch and the analog/digital conversion circuit are provided with a first command signal indicating a channel to be switched by the changeover switch in order to perform analog/digital conversion at each predetermined first time interval from a first command circuit. Further, a second command signal indicating a channel to be switched by the changeover switch is given from a second command circuit in order to perform analog/digital conversion at every predetermined second time interval different from the first time interval. When a first command signal is derived from the first command circuit during the continuous operation of analog/digital conversion by the analog/digital conversion circuit and/or arithmetic processing based on the analog/digital conversion, the first control means The first command signal is stored in a pre-provided memory. After the continuous operation is completed, the channel of the changeover switch is changed by the third control means based on the first command signal stored in the memory, and analog/digital conversion is started. On the other hand, when a second command signal is derived from the second command circuit while the first command signal is stored in the memory, the contents stored in the memory are transferred to the second command signal by the second control means. Can be rewritten.

したがって、前記継続動作終了後には、前記メモリにス
トアされている第2指令信号に基づいて、前記切換スイ
ッチのチャネルは第3制御手段によって切換えられ、ア
ナログ/デジタル変換が開始する。
Therefore, after the continuous operation is completed, the channel of the changeover switch is switched by the third control means based on the second command signal stored in the memory, and analog/digital conversion is started.

したがって、第2指令信号に基づいて切換えられるチャ
ネルからアナログ/デジタル変換回路へ与えられる信号
のアナログ/デジタル変換動fFは確実に無視されるこ
とがなく実行することができる。したがって、前記第2
指令信号に基づいて変換すべき信号がノッキングセンサ
からの出力である場合には、確実に前記出力に応答して
燃料噴射弁の開閉制御などを行うことができ、内燃機関
を損傷するようなことが回避できる。
Therefore, the analog/digital conversion fF of the signal given to the analog/digital conversion circuit from the channel switched based on the second command signal can be executed without being ignored. Therefore, the second
If the signal to be converted based on the command signal is the output from the knocking sensor, it is possible to reliably control the opening and closing of the fuel injection valve in response to the output, thereby preventing damage to the internal combustion engine. can be avoided.

実施例 第1図は、本発明の一実施例であるアナログ/デジタル
変換装置の簡略化した構成を示すブロック図である。第
1図を参照して、アナログ/デジタル変換装置1の構成
を説明する。
Embodiment FIG. 1 is a block diagram showing a simplified configuration of an analog/digital converter that is an embodiment of the present invention. The configuration of the analog/digital converter 1 will be explained with reference to FIG.

切換スイッチ2には、複数のチャネル3が設けられてお
り、各チャネル3a〜3fにはそれぞれ個別に各種セン
サなどからの出力が与えられる。
The changeover switch 2 is provided with a plurality of channels 3, and outputs from various sensors and the like are individually given to each of the channels 3a to 3f.

なお、個々のチャネル3 tt〜3fを総称するときに
は参照符3とする。各チャネル3と出力端4との間が連
結片5によって連結されると、連結されたチャネルへ与
えられるアナログ信号がA/D変換回路6を経てデジタ
ル値へ変換され、処理回路7へ与えられ演算処理される
。前記処理回路7で処理された演算結果は、入出力回路
16を介して出力され、燃料噴射弁17の開閉制御や点
火−次回路のスイッチ18の制御などが行われる。
Note that the individual channels 3tt to 3f are collectively referred to as reference numeral 3. When each channel 3 and the output end 4 are connected by the connecting piece 5, the analog signal applied to the connected channels is converted to a digital value via the A/D conversion circuit 6, and is applied to the processing circuit 7. Processed. The calculation results processed by the processing circuit 7 are outputted via the input/output circuit 16, and the opening/closing control of the fuel injection valve 17 and the control of the switch 18 of the ignition-next circuit are performed.

前記各チャネル3には、予め定められる第1時間間隔毎
、たとえば1m5ec毎のタイミングで変換されるべき
出力と、クランク角の周期毎に変換されるべき出力とが
与えられている。前者は、時間周期系の信号として吸入
空気圧センサ8の出力PM、水温センサ9の出力THW
、吸気温上ンサ10の出力THA、バッテリ11の起電
圧B、さらにスロットル弁開度上ンサ12の出力TAな
どがあげられ一前記各七ンサの出力は第1図の各チャネ
ル3b〜3fに個別に与えられる。また、後者は、クラ
ンク角周期系の信号として、各気筒の近傍に配置される
ノッキングセンサ13からピークホールド回路14を介
した出力Nがあげられる。なお、本実施例においては、
4サイクル4気筒火花点火内燃機閏を想定しており、気
筒近傍に配置されるノッキングセンサ13およびノッキ
ングセンサからの出力が与えられるピークホールド回路
14は、1組で4気筒分の処理を行う、したがって前記
ピークホールド回路14からは4気筒分の出力N1〜N
4が個別に導出され、前記切換スイッチ2のチャネル3
aに与えられる。
Each channel 3 is provided with an output to be converted at a timing of every predetermined first time interval, for example every 1 m5ec, and an output to be converted at every period of the crank angle. The former includes the output PM of the intake air pressure sensor 8 and the output THW of the water temperature sensor 9 as time periodic signals.
, the output THA of the intake air temperature increaser 10, the electromotive force B of the battery 11, and the output TA of the throttle valve opening increaser 12. given separately. The latter includes an output N from a knocking sensor 13 disposed near each cylinder via a peak hold circuit 14 as a crank angle periodic signal. In addition, in this example,
A 4-stroke, 4-cylinder, spark-ignition internal combustion engine is assumed, and the knocking sensor 13 placed near the cylinder and the peak hold circuit 14 to which the output from the knocking sensor is given perform processing for 4 cylinders in one set. The peak hold circuit 14 outputs outputs N1 to N for four cylinders.
4 are individually derived, and channel 3 of said changeover switch 2
given to a.

処理回路7からは、予め定められる時間間隔W3毎に第
1指令信号がラインS11を介して切換スイッチ2およ
びA/D変換回路6へ与えられ、前記時間周期系の信号
が与えられるチャネル3b〜3fへ切換えられ、順次的
にA/D変換回路6においてA/D変換動作が行われ、
処理回路7へ与えられる。
From the processing circuit 7, a first command signal is given to the changeover switch 2 and the A/D conversion circuit 6 via the line S11 at every predetermined time interval W3, and the channels 3b to 3b to which the time periodic signals are given are given. 3f, and the A/D conversion operation is sequentially performed in the A/D conversion circuit 6.
The signal is applied to the processing circuit 7.

第2回は時間周期系の信号のA/D変換動作のタイミン
グを示すタイミングチャートであり、前記第2時間間隔
W3毎に第1指令信号M1に基づいて切換スイッチのチ
ャネルが切換えられ、各センサからの出力が順次的にA
/D変換動作されることを示している。前記第1時間間
隔W3は、A/D変換を行うとともに、処理回路7へ前
記変換の終了した信号を与え、演算処理などを行う、す
なわちA/D変換動作を行う実行期間W31と、前記実
行期間終了後続いて変換動作が開始するまでの待機期間
W32とから成り、各期間W31゜WB2は、各センサ
8〜12からの情報量によって異なる。切換スイッチ2
におけるチャネルの切換順は、−例として、たとえば第
2図に示される順序で行われる。
The second time is a timing chart showing the timing of the A/D conversion operation of a time periodic signal, in which the channel of the changeover switch is changed based on the first command signal M1 every second time interval W3, and each sensor The output from A
/D conversion operation is performed. The first time interval W3 is an execution period W31 during which A/D conversion is performed, a signal indicating the completion of the conversion is given to the processing circuit 7, and arithmetic processing is performed, that is, an A/D conversion operation is performed; It consists of a waiting period W32 from the end of the period until the conversion operation starts, and each period W31°WB2 differs depending on the amount of information from each sensor 8-12. Changeover switch 2
The order in which the channels are switched is, for example, as shown in FIG.

また、処理回路7からは前記第1時間間隔W3とは異な
る第2時間間隔、すなわちクランク角に同期する時間間
隔毎に前記信号ラインsZ1を介して第2指令信号が切
換スイッチ2およびA/D変換回路6へ与えられ、前記
クランク角周期系の信号が与えられるチャネル3aへ切
換えられ、ノッキングセンサ13からピークホールド回
路14を介する出力が順次的にA/D変換回路6におい
てA/D変換動作され、処理回路7へ与えられる。
Further, a second command signal is sent from the processing circuit 7 to the changeover switch 2 and the A/D via the signal line sZ1 at a second time interval different from the first time interval W3, that is, at a time interval synchronized with the crank angle. The signal of the crank angle periodic system is applied to the conversion circuit 6 and switched to the channel 3a to which the signal of the crank angle periodic system is applied, and the output from the knocking sensor 13 via the peak hold circuit 14 is sequentially applied to the A/D conversion circuit 6 for A/D conversion operation. and provided to the processing circuit 7.

第3図は、クランク角を示す図である1本実施例におい
ては4気筒を想定しているので、各気筒の上死点TDC
はクランク角にして180″CA毎にあるように構成さ
れる。ノッキングは、前記上死点TDCから予めクラン
ク角が進行した期間までにおいて生じやすい、したがっ
て、気筒の近傍に配置される前記ノッキングセンサ13
の出力がピークホールド回路14を経て、A/D変換回
路へ読込まれるべきタイミングは、各気筒の上死点TD
Cからクランク角にして90°CA程度経た時期になる
ように設定される。第3図において、第1気筒および第
4気筒の上死点TDCを最上位点と想定すると、第2気
筒および第3気筒の上死点TDCは最下位点となる。さ
らに各気筒に対応するピークホールド回路からの出力N
1〜N4は、各気筒の上死点TDCからクランク角にし
て90”CA経た時点でA/D変換動作が要求される。
FIG. 3 is a diagram showing the crank angle. In this embodiment, four cylinders are assumed, so the top dead center TDC of each cylinder is
is configured to be present every 180"CA in terms of crank angle. Knocking is likely to occur during a period in which the crank angle has progressed from the top dead center TDC. Therefore, the knocking sensor disposed near the cylinder 13
The timing at which the output should be read into the A/D conversion circuit through the peak hold circuit 14 is at the top dead center TD of each cylinder.
The timing is set so that the crank angle is approximately 90° CA from C. In FIG. 3, assuming that the top dead centers TDC of the first and fourth cylinders are the highest points, the top dead centers TDC of the second and third cylinders are the lowest points. Furthermore, the output N from the peak hold circuit corresponding to each cylinder
1 to N4, the A/D conversion operation is required at the time when 90"CA of crank angle has passed from the top dead center TDC of each cylinder.

なお、第2指令信号M2を導出するために必要なりラン
ク角の検出は、第1図においてクランク角センサ19に
よって行われ、検出された信号は入出力回路16を経て
処理回路7へ与えられる。
Incidentally, detection of the rank angle necessary for deriving the second command signal M2 is performed by the crank angle sensor 19 in FIG. 1, and the detected signal is provided to the processing circuit 7 via the input/output circuit 16.

第4回は、クランク角周期系の信号のA/D変換動作の
タイミングを示すタイミングチャートである。前述のよ
うにクランク角周期系の信号のA/ D ’2換動作の
タイミングは、クランク角にして180″″CANに訪
ずれ、前記180°CAをクランクシャフトが回転する
ために必要とする時間が前記第2時間間隔W4である。
The fourth time is a timing chart showing the timing of A/D conversion operation of a crank angle periodic signal. As mentioned above, the timing of the A/D '2 conversion operation of the crank angle periodic signal is the time required for the crank angle to reach 180'' CAN and for the crankshaft to rotate through the 180° CA. is the second time interval W4.

前記第2時間間隔W4は、ノッキングセンサからの出力
をピークホールド回路にて演算する演算期間W41と、
前記ピークホールド回路からの出力NをA/D変換回路
6へ与え、A/D変換動作を実行する実行期間W42と
、さらに前記実行終了後の待機時間W43とから成る。
The second time interval W4 is a calculation period W41 in which the output from the knocking sensor is calculated in a peak hold circuit;
It consists of an execution period W42 in which the output N from the peak hold circuit is given to the A/D conversion circuit 6 and an A/D conversion operation is performed, and a waiting time W43 after the execution is completed.

なお、前記実行期間W42の経過後、処理回路7からは
ラインs12を介して各ピークホールド回路14ヘリセ
ツト信号が与えられ、前記ピークホールド回路14が初
期化される。
After the execution period W42 has elapsed, the processing circuit 7 supplies a reset signal to each peak hold circuit 14 via the line s12, and the peak hold circuit 14 is initialized.

したがって、処理回路7においては、前記第1時閉間隔
W3毎に第1指令信号M1が導出されるとともに、第1
時間間隔W4毎に第2指令信号M2が導出され1.各指
令信号は切換スイッチ2およびA/D変換回路6へ与え
られる。導出される各指令信号に基づいて切換スイッチ
がいずれかのチャネル3a〜3fに切換えられて、A/
D変換回路6へ導出されたアナログ信号がデジタル値へ
変換され、処理回路7へ与えられる。
Therefore, in the processing circuit 7, the first command signal M1 is derived every first time closing interval W3, and the first
A second command signal M2 is derived every time interval W4, and 1. Each command signal is given to the changeover switch 2 and the A/D conversion circuit 6. Based on each command signal derived, the changeover switch is switched to any of the channels 3a to 3f, and the A/
The analog signal led to the D conversion circuit 6 is converted into a digital value and provided to the processing circuit 7.

また、上述のように1つのA/D変換回路によって、並
行に処理される複数(本実施例では2種類)のタイミン
グ毎に切換スイッチ2が切換えられる場合には、たとえ
ば時間周期系の信号もしくはクランク角周期系の信号の
一方の周期系の信号のA/D変換動作の実行期間中に、
他方のA/D変換動作の実行が要求される場きがある。
In addition, when the changeover switch 2 is switched at each timing of a plurality of (two types in this embodiment) processed in parallel by one A/D conversion circuit as described above, for example, when a time periodic signal or During the execution period of the A/D conversion operation of one of the periodic signals of the crank angle periodic system,
There are times when it is required to perform the other A/D conversion operation.

前記場会には、要求された切換えるべきチャネルを示す
指令信号を処理回路7内に予め設けられるメモリ15内
に一旦スドアする。その後、前記継続中であった実行期
間終了後、前記メモリ15内にストアされていた指令信
号に基づいて切換スイッチ2のチャネルを切換え、切換
えられたチャネルに与えられる信号のA/D変換動作を
開始する。なお、前記メモリ15にストアされていた指
令信号が読出された後には、前記メモリ15のストア内
容は消去される。
At this time, a command signal indicating the requested channel to be switched is temporarily stored in the memory 15 provided in the processing circuit 7 in advance. Thereafter, after the ongoing execution period ends, the channel of the changeover switch 2 is switched based on the command signal stored in the memory 15, and the A/D conversion operation of the signal given to the switched channel is performed. Start. Note that after the command signal stored in the memory 15 is read out, the contents stored in the memory 15 are erased.

また、本実施例においては、前記メモリ15内に第1指
令信号M1がストアされている状態で、第2指令信号M
2が導出された場合には、前記メモリ15のストア内容
は第1指令信号M1から第2指令信号M2へ書換えられ
る。また、第2指令信号M2がストアされている状態で
第1指令信号M1が導出された堝きには、前記メモリの
ストア内容は書換えられることはない、したがって、第
2指令信号M2に基づくクランク角周期系の信号である
ピークホールド回路14からの出力のA/D変換動作は
無視されることなく、確実に実行される。
Further, in this embodiment, while the first command signal M1 is stored in the memory 15, the second command signal M1 is stored in the memory 15.
2 is derived, the contents stored in the memory 15 are rewritten from the first command signal M1 to the second command signal M2. Furthermore, when the first command signal M1 is derived while the second command signal M2 is stored, the stored contents of the memory are not rewritten. The A/D conversion operation of the output from the peak hold circuit 14, which is an angular periodic signal, is not ignored and is reliably executed.

第5図は、本実施例における制御動作を説明するための
タイミングチャートである。第5図(1)には、第1時
間間隔W3毎に時間周期系の信号のA/D変換動作を要
求する第1指令信号M1が導出されている状態が、また
第5図(2)には、第2時間間隔W4毎にクランク角周
期系の信号のA/D変換動作を要求する第2指令信号M
2の導出されている状態が、さらに第5図(3)には、
前記要求に基づいてA/D変換回路6においてA/D変
換動作が行われている状態が同一時間経過を想定して示
されている。
FIG. 5 is a timing chart for explaining the control operation in this embodiment. FIG. 5(1) shows a state in which a first command signal M1 requesting an A/D conversion operation of a time periodic signal is derived every first time interval W3, and FIG. 5(2) , a second command signal M requests an A/D conversion operation of a crank angle periodic signal at every second time interval W4.
The derived state of 2 is further shown in Figure 5 (3).
The state in which the A/D conversion operation is performed in the A/D conversion circuit 6 based on the request is shown assuming that the same time elapses.

たとえば、第5図に示されるように、時刻t10におい
て、吸入空気圧センサ8からの出力P MのA/D変換
動作が開始したにも拘わらず、処理回路7への他の処理
の割込みのために、前記実行期間が延長し、続いてA/
D変換動作を行うべき第1指令信号M1が導出される時
刻tllになっても、前記実行期間が継続中である場合
を想定する。前記i%かには、続いて変換されるべき水
温センサ9の出力THWが与えられるチャネルへ切換ス
イッチを切換えることを示す第1指令信号八11をメモ
リ15内にストアする。その後、第2指令信号M2が導
出されることなく、前記継続中であった実行期間が終了
したときには、前記メモリ15にストアしである第1指
令信号M1に基づいて、水温センサ9の出力THWが与
えられるチャネルへ切換スイッチは切換えられ、A/D
変換動作が開始する。
For example, as shown in FIG. 5, at time t10, even though the A/D conversion operation of the output P M from the intake air pressure sensor 8 has started, due to an interruption of other processing to the processing circuit 7. , said execution period is extended, and then A/
Assume that the execution period is still continuing even at time tll when the first command signal M1 for performing the D conversion operation is derived. In the i% range, a first command signal 811 is stored in the memory 15 indicating that the changeover switch is to be switched to the channel to which the output THW of the water temperature sensor 9 to be subsequently converted is applied. Thereafter, when the ongoing execution period ends without the second command signal M2 being derived, the output THW of the water temperature sensor 9 is determined based on the first command signal M1 stored in the memory 15. The selector switch is switched to the channel where the A/D is given.
Conversion operation begins.

一方、たとえば前記時刻t 11 gkであって、前記
実行期間の継続中である時刻t12において、ノッキン
グセンサ13からピークホールド回路14を介する出力
Nl(第1気筒に対する出力)が与えられるチャネルを
示す第2指令信号M2が導出された4きを想定する。本
実施例においては、前記P4会には、メモリ15内に既
にストアされていた水温センサ9の出力THWが与えら
れるチャネルへの切換信号を示す第1指令信号M1を消
去して、前記第2指令信号M2にg換える。したがつて
、前記吸入空気圧センサ8の出力P MのA/D変換動
作終了後、前記メモリ15にストアされてた第2指令信
号M2に基づいて前記ピークホールド回路14からの出
力N1のA/D変換変換動ジャ始する。すなわち、前記
−旦スドアされた水温センサ9の出力THWが与えられ
るチャネルを示す第1指令信号M1は無視されることに
なる。第5図においては、前記第2指令信号M2に基づ
くA/D変換動作終了後、時刻t13から第1指令信号
M1に基づいてスロットル弁開度センサ12の出力TA
のA/D変換動作が開始する。
On the other hand, for example, at the time t12, which is the time t11gk and is during the continuation of the execution period, the channel 12 indicating the channel to which the output Nl (output to the first cylinder) from the knocking sensor 13 via the peak hold circuit 14 is given. Assume that the second command signal M2 is derived. In this embodiment, in the P4 session, the first command signal M1 indicating the switching signal to the channel to which the output THW of the water temperature sensor 9, which has already been stored in the memory 15, is given is erased, and the second command signal M1 is deleted. Change g to command signal M2. Therefore, after the A/D conversion operation of the output P M of the intake air pressure sensor 8 is completed, the A/D conversion of the output N1 from the peak hold circuit 14 is performed based on the second command signal M2 stored in the memory 15. Start D conversion conversion operation. That is, the first command signal M1 indicating the channel to which the output THW of the water temperature sensor 9 that has been previously set is ignored. In FIG. 5, after the A/D conversion operation based on the second command signal M2 is completed, the output TA of the throttle valve opening sensor 12 is changed based on the first command signal M1 from time t13.
A/D conversion operation starts.

上述の構成によれば、各クランク角周期系の信号のA/
D変換動作は無視されることなく、確実に実行される0
本実施例においては、過度のノッキングなどの不所望な
状態を確実に検出することができ、前記検出信号に基づ
いて、適切に燃料噴射弁の開閉制御を行うことができ、
その結果、内燃機関の損傷などを回避することができる
。また、前記クランク角周期系の信号のA/D変換動作
を時間周期系の信号のA/D変喚変化動作して優先的に
実行するために、時間周期系の信号のA/D変換動作が
無視される4会があっても、内燃機関の制御には殆ど支
障は生じない。
According to the above-described configuration, A/ of each crank angle periodic signal is
0 The D conversion operation is not ignored and is executed reliably.
In this embodiment, it is possible to reliably detect an undesirable state such as excessive knocking, and to appropriately control the opening and closing of the fuel injection valve based on the detection signal.
As a result, damage to the internal combustion engine can be avoided. Further, in order to preferentially execute the A/D conversion operation of the crank angle periodic signal as an A/D transformation change operation of the time periodic signal, the A/D conversion operation of the time periodic signal is performed. Even if there are four events that are ignored, there is almost no problem in controlling the internal combustion engine.

第6図は時間周期系の信号のA/D変換動作を説明する
ためのフローチャート、第7図はクランク角周期系の信
号のA/D変換動作を説明するためのフローチャート、
さらに第8図は待機判断処理における判断動作を説明す
るためのフローチャー)−である、第6図および第7図
に示されるプログラムは、処理回路7内において並行に
処理されている。
FIG. 6 is a flowchart for explaining the A/D conversion operation of time periodic signals, FIG. 7 is a flowchart for explaining the A/D conversion operation of crank angle periodic signals,
Furthermore, the programs shown in FIGS. 6 and 7, in which FIG. 8 is a flowchart for explaining the judgment operation in the standby judgment process, are processed in parallel in the processing circuit 7.

第6図のプログラムは、処理回路7がら第1指令信号M
1が導出されると開始する。まずステップm1において
、第1指令信号M1に基づいて切換スイッチのチャネル
を切換えて、ステップm2において第8図に示される待
機判断処理のプログラムが開始する。
The program shown in FIG.
It starts when 1 is derived. First, in step m1, the channel of the changeover switch is changed based on the first command signal M1, and in step m2, the standby determination processing program shown in FIG. 8 is started.

待機判断処理のプログラムが開始すると、第8図に示さ
れるように、まずステップn1においてA/D変換動作
が実行中であるか百かが判断される。実行中でなければ
、処理はステップn2へ進み、A/D変換動作を開始し
、前記第6図に示されるプログラムへ帰還する。一方、
前記ステップn1において、A/D変填動作の実行中で
あると判断されると処理はステップn 3へ進み、メモ
リ15内に指令信号がストアされているか否かが判断さ
れる。また、いずれの指令信号もストアされていなけれ
ば、処理はステップr14へ進み、前記メモリ内へ前記
導出された第1指令信号をストアし、その後第6図に示
されるプログラムへ復帰する。
When the program for the standby determination process starts, as shown in FIG. 8, it is first determined in step n1 whether the A/D conversion operation is being executed or not. If it is not being executed, the process proceeds to step n2, starts an A/D conversion operation, and returns to the program shown in FIG. 6. on the other hand,
If it is determined in step n1 that the A/D changing operation is being executed, the process proceeds to step n3, where it is determined whether or not a command signal is stored in the memory 15. If no command signal is stored, the process proceeds to step r14, stores the derived first command signal in the memory, and then returns to the program shown in FIG.

前記ステップn3において、メモリ15内には既にいず
れかの指令信号が存在しているものと判断されると処理
はステップn5へ進み、前記導出された指令信号が、ク
ランク角周期系の信号の切換えを示す第2指令信号M2
であったか否かが判断される。第6図のプログラムは、
第1指令信号の導出とともに開始しているので、処理は
ステップn5から第6図のプログラムへ復帰して、他の
処理へ進む、すなわち、上述の判断動作によれば、予め
メモリ内に指令信号がストアされている場合には、たと
え第1指令信号M1が導出されても、前記導出された第
1指令信号M1ヘメモリ内のストア内容を書換えること
はない、したがって、たとえばメモリ内に既に続いて実
行すべき第2指令信号M2がストアされている渇きには
、新たに導出された第1指令信号M1によってストア内
容が書換られてしまうようなことがなく、確実に第2指
令信号M2に基づいてクランク角周期系の信号のA/D
変換動作が実行される。
In step n3, if it is determined that some command signal already exists in the memory 15, the process proceeds to step n5, in which the derived command signal switches the crank angle periodic signal. A second command signal M2 indicating
It is determined whether or not it was. The program in Figure 6 is
Since the process starts with the derivation of the first command signal, the process returns from step n5 to the program shown in FIG. is stored, even if the first command signal M1 is derived, the contents stored in the memory will not be rewritten to the derived first command signal M1. Therefore, for example, if the first command signal M1 is When the second command signal M2 to be executed is stored, the stored contents are not rewritten by the newly derived first command signal M1, and the second command signal M2 is reliably executed. A/D of crank angle periodic signal based on
A conversion operation is performed.

第7図のプログラムは、処理回路7がら第2指令信号M
2が導出された際に開始する。前記プログラムが開始す
ると、ステップに1において第8目に示される待機判断
処理で進み、前述と同様の処理が繰返される。この場合
、前述のようにステップr15へ進んだ処理は、前記判
断動作が第2指令信号M2の導出に伴って開始されたこ
とがら、ステップn 6へ進み、予めストアされている
いずれかの信号に代わって前記導出された第2指令信号
M2/″−,書換え、処理は第7図のプログラムに復帰
し、他の処理へ進む、したがって、第2指令信号M2が
導出された際には、第1指令信号M1に基づく時間周期
系の信号のA/D変換動作の実行を無視して確実にクラ
ンク角周期系の信号のA/D2換動作動作行することに
なる。
The program shown in FIG.
2 is derived. When the program starts, it proceeds to step 1 with a standby determination process shown in the eighth line, and the same process as described above is repeated. In this case, as described above, the process that proceeded to step r15 proceeds to step n6 because the judgment operation was started with the derivation of the second command signal M2, and the process proceeds to step n6, where one of the signals stored in advance is Instead, the derived second command signal M2/''- is rewritten, and the processing returns to the program of FIG. 7 and proceeds to other processing. Therefore, when the second command signal M2 is derived, This ensures that the A/D conversion operation of the crank angle periodic signal is performed while ignoring the execution of the A/D conversion operation of the time periodic signal based on the first command signal M1.

したがって、本実施例によれば、クランク角周期系の信
号のA/D変換動作を無視することなく確実に実行する
ことができ、内燃機関における燃料噴射弁の開閉制御な
どを最適に行うことができる。また、内燃機関における
損傷にまで至らしめる過度のノッキング出力を確実に検
出することができるので、前記検出に対応し内燃機関を
適度に制御することができ、内燃機関の損傷を回避する
ことができる。
Therefore, according to this embodiment, the A/D conversion operation of the crank angle periodic signal can be reliably executed without being ignored, and the opening/closing control of the fuel injection valve in the internal combustion engine can be optimally performed. can. In addition, it is possible to reliably detect excessive knocking output that can lead to damage in the internal combustion engine, so the internal combustion engine can be appropriately controlled in response to the detection, and damage to the internal combustion engine can be avoided. .

本実施例においては、クランク角周期系の信号としてノ
ッキングセンサからの出力に関連して説明しているけれ
ども、このことは制限されることではない。また、第2
指令信号としてクランク角に同期する信号であることは
制限されることではない。
Although this embodiment is described in relation to the output from the knocking sensor as a crank angle periodic signal, this is not a limitation. Also, the second
The command signal is not limited to a signal synchronized with the crank angle.

発明の効果 本発明に従えば、第2指令信号に基づいて変換すべきア
ナログ信号を確実に無視することなく、デジタル値に変
換し、処理することができる。したがって、前記第2指
令信号が、クランク角周期系の信号のアナログ/デジタ
ル変換を行うように切換えるべきチャネルを指定する信
号である場かには、内燃機関における燃料噴射制御など
を1&適な状態に制御することができ、さらには内燃機
関の損傷を回避することができる。
Effects of the Invention According to the present invention, the analog signal to be converted based on the second command signal can be converted into a digital value and processed without being ignored. Therefore, if the second command signal is a signal that specifies a channel to be switched to perform analog/digital conversion of a crank angle periodic signal, the fuel injection control in the internal combustion engine may be controlled in the 1&appropriate state. control, and furthermore, damage to the internal combustion engine can be avoided.

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

第1図は本発明の一実施例であるアナログ/デジタル変
換装置の簡略化した構成を示すブロック図、第2図は時
間周期系の信号のA/D変換動作のタイミングを示すタ
イミングチャート、第3図はクランク角を示す図、第4
図はクランク角周期系の信号のA/D変換動作のタイミ
ングを示すタイミングチャート、第5[!lは本実施例
における制御動作を説明するためのタイミングチャート
、第6図は時間周期系の信号のA/D変換動作を説明す
るためのフローチャート、第70はクランク角周期系の
信号のA / D g:動作作を説明するためのフロー
チャート、第8図は待機判断処理における判断動作を説
明するためのフローチャート、第9図は従来のアナログ
/デジタル変換装置の制御動作を説明するためのタイミ
ングチャート、第10図は従来のアナログ/デジタル変
換装置の判断動作を説明するためのフローチャート、第
11図は従来の問題点を説明するためのタイミングチャ
ートである。 1・・・アナログ/デジタル変換装置、2・・・切換ス
イッチ、3・・・チャネル、6・・・アナログ/デジタ
ル変換回路、7・・・処理回路、8・・・吸入空気圧セ
ンサ、9・・・水温センサ、10・−・吸気温センサ、
11・・・バッテリ、12・・・スロットル弁開度セン
サ、13・・・ノッキングセンサ、14・・・ピークホ
ールド回路、15・・−メモリ、17・・・燃料噴射弁
、18・・・点火−次回路のスイッチ、19・・・クラ
ンク角センサ、Ml・・・第1指令信号、M2・・・第
2指令信号、W3・・・第1時間間隔、W4・・・第2
時間間隔、w31.w42・・・実行期間、WB2.W
43・・・待機期間第 1 図
FIG. 1 is a block diagram showing a simplified configuration of an analog/digital converter that is an embodiment of the present invention, FIG. 2 is a timing chart showing the timing of A/D conversion operation of a time periodic signal, and FIG. Figure 3 is a diagram showing the crank angle, Figure 4
The figure is a timing chart showing the timing of A/D conversion operation of a crank angle periodic signal, No. 5 [! 1 is a timing chart for explaining the control operation in this embodiment, FIG. 6 is a flowchart for explaining the A/D conversion operation of a time periodic signal, and 70th is a timing chart for explaining the A/D conversion operation of a time periodic signal. Dg: Flowchart for explaining operation operations, FIG. 8 is a flowchart for explaining judgment operations in standby judgment processing, and FIG. 9 is a timing chart for explaining control operations of a conventional analog/digital converter. , FIG. 10 is a flow chart for explaining the judgment operation of the conventional analog/digital converter, and FIG. 11 is a timing chart for explaining the problems of the conventional method. DESCRIPTION OF SYMBOLS 1... Analog/digital conversion device, 2... Changeover switch, 3... Channel, 6... Analog/digital conversion circuit, 7... Processing circuit, 8... Intake air pressure sensor, 9...・・Water temperature sensor, 10・−・Intake temperature sensor,
DESCRIPTION OF SYMBOLS 11...Battery, 12...Throttle valve opening sensor, 13...Knocking sensor, 14...Peak hold circuit, 15...-Memory, 17...Fuel injection valve, 18...Ignition - Next circuit switch, 19...Crank angle sensor, Ml...First command signal, M2...Second command signal, W3...First time interval, W4...Second
Time interval, w31. w42...Execution period, WB2. W
43...Waiting period Figure 1

Claims (1)

【特許請求の範囲】 複数のアナログ信号を1つずつ選択する切換スイッチと
、 前記切換スイッチの出力をデジタル値に変換するアナロ
グ/デジタル変換回路と、 前記切換スイッチによつて切換えるべきチャネルを示す
指令信号をストアするメモリと、 予め定める第1時間間隔毎に、アナログ/デジタル変換
すべき第1指令信号を導出する第1指令回路と、 前記第1時間間隔と異なる予め定める第2時間間隔毎に
、アナログ/デジタル変換すべき第2指令信号を導出す
る第2指令回路と、 前記アナログ/デジタル変換回路によるアナログ/デジ
タル変換および/または、前記アナログ/デジタル変換
に基づく演算処理の継続動作中に、前記第1指令回路か
ら第1指令信号が導出されたとき、前記第1指令信号を
前記メモリにストアする第1制御手段と、 前記メモリに第1指令信号がストアされている状態で、
前記第2指令回路から第2指令信号が導出されたとき、
前記メモリのストア内容を第2指令信号へ書換える第2
制御手段と、 前記継続動作終了後に、前記メモリにストアされている
第1指令信号または第2指令信号に基づいて、前記切換
スイッチのチャネルを切換える第3制御手段とを含むこ
とを特徴とするアナログ/デジタル変換装置。
[Scope of Claims] A changeover switch that selects a plurality of analog signals one by one; an analog/digital conversion circuit that converts the output of the changeover switch into a digital value; and a command that indicates a channel to be switched by the changeover switch. a memory for storing signals; a first command circuit for deriving a first command signal to be converted from analog to digital at each predetermined first time interval; and at each predetermined second time interval different from the first time interval. , a second command circuit that derives a second command signal to be converted from analog to digital; and during the continued operation of analog/digital conversion by the analog/digital conversion circuit and/or arithmetic processing based on the analog/digital conversion, a first control means for storing the first command signal in the memory when the first command signal is derived from the first command circuit; and with the first command signal being stored in the memory;
When a second command signal is derived from the second command circuit,
a second command signal for rewriting the stored contents of the memory into a second command signal;
An analog device characterized by comprising: a control means; and a third control means for switching the channel of the changeover switch based on a first command signal or a second command signal stored in the memory after the completion of the continuous operation. /Digital conversion device.
JP9381989A 1989-04-12 1989-04-12 Analog/digital converter Pending JPH02271719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9381989A JPH02271719A (en) 1989-04-12 1989-04-12 Analog/digital converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9381989A JPH02271719A (en) 1989-04-12 1989-04-12 Analog/digital converter

Publications (1)

Publication Number Publication Date
JPH02271719A true JPH02271719A (en) 1990-11-06

Family

ID=14093007

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9381989A Pending JPH02271719A (en) 1989-04-12 1989-04-12 Analog/digital converter

Country Status (1)

Country Link
JP (1) JPH02271719A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5541601A (en) * 1993-03-19 1996-07-30 Nippondenso Co., Ltd. A/D conversion control apparatus for an internal combustion engine
US6433716B2 (en) 2000-02-25 2002-08-13 Denso Corporation Data conversion device having mediator for determining data conversion order
JP2013247570A (en) * 2012-05-28 2013-12-09 Denso Corp Ad conversion device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5541601A (en) * 1993-03-19 1996-07-30 Nippondenso Co., Ltd. A/D conversion control apparatus for an internal combustion engine
US6433716B2 (en) 2000-02-25 2002-08-13 Denso Corporation Data conversion device having mediator for determining data conversion order
JP2013247570A (en) * 2012-05-28 2013-12-09 Denso Corp Ad conversion device

Similar Documents

Publication Publication Date Title
JP3578082B2 (en) Processing execution device and recording medium
JPS5918248A (en) Fuel injection controlling method for internal combustion engine
JP3538867B2 (en) A / D conversion control device for internal combustion engine
JPH1144250A (en) Control device for vehicle
JPH02271719A (en) Analog/digital converter
JPH05252033A (en) A/d converter
US5983868A (en) Fuel injection controller apparatus in starting an internal combustion engine
JPS603448A (en) Method of controlling operating condition of internal-combustion engine
JP2011185117A (en) Control device for internal combustion engine
JPH07310587A (en) Controller for internal combustion engine in vehicle
US5506777A (en) Electronic engine controller with automatic hardware initiated A/D conversion of critical engine control parameters
JP2021173168A (en) Engine control device
JP2003243985A (en) A/d converter
JPH04309871A (en) Method device for signal processing
JPH05173935A (en) Data transfer method
JPS6155610B2 (en)
JP3241607B2 (en) Analog / digital converter
JPH08180031A (en) Data communication equipment
JPH1068338A (en) Control device for cylinder fuel injection engine
JPH0714931Y2 (en) IC test equipment
JPS6363550U (en)
JPS5833750A (en) Input number extending method for one-chip microprocessor
JPS6055694B2 (en) Engine fuel injection control device
JPS61126338A (en) Fuel injection quantity control unit for internal-combustion engine
JPH08214018A (en) Data communication system