JPH08153052A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH08153052A
JPH08153052A JP6295201A JP29520194A JPH08153052A JP H08153052 A JPH08153052 A JP H08153052A JP 6295201 A JP6295201 A JP 6295201A JP 29520194 A JP29520194 A JP 29520194A JP H08153052 A JPH08153052 A JP H08153052A
Authority
JP
Japan
Prior art keywords
processing
data
instruction
trigger signal
input
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
JP6295201A
Other languages
Japanese (ja)
Inventor
Takehiro Abeta
健浩 阿部田
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
NipponDenso Co 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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP6295201A priority Critical patent/JPH08153052A/en
Publication of JPH08153052A publication Critical patent/JPH08153052A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE: To provide a data communication equipment without the fear of malfunction caused by noise and without the problem of a waiting time even though an expensive input port terminal is not provided. CONSTITUTION: At the time of A/D conversion processing, an internal-combustion engine control circuit being the data communication equipment starts-up interruption processing based on the edge of a trigger signal to transmit a transmission order to input IC and to receive A/D conversion data (step 62). At the time of reading simple port data, the circuit transmits the transmission order after passing a specified time from processing order(step 63 and 64) and receives port data from input IC (step 64). Thus, even though an inexpensive input port circuit is used,the internal-combustion engine control circuit does not make malfunction owing to noise. Besides, waiting time for receiving port data can satisfactorily be shortened and there is no influence on the responsiveness of control. In addition, A/D conversion data is also received by interruption processing so that unnecessary waiting time is not generated and control is not affected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ通信装置に関
し、特に、処理の種類に応じて、処理の前後に変化する
トリガー信号のエッジ間隔に差があるデータ処理装置へ
処理命令を送信した後に、上記データ処理装置から処理
結果を受信するデータ通信装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication device, and more particularly to a data communication device after transmitting a processing command to a data processing device having a difference in edge interval of a trigger signal which changes before and after the processing depending on the type of processing. , A data communication device for receiving a processing result from the data processing device.

【0002】[0002]

【従来の技術】複数のセンサからのアナログ信号をデジ
タル信号に変換するA/D変換器、あるいは、更に、複
数のスイッチからのオン・オフ信号を入力する入力バッ
ファ回路を備えた入力インターフェース回路が知られて
いる(特開昭57−109003号公報、特開昭58−
200054号公報、特開昭60−41122号公報、
特開昭63−164639号公報)。
2. Description of the Related Art An A / D converter for converting an analog signal from a plurality of sensors into a digital signal, or an input interface circuit having an input buffer circuit for inputting ON / OFF signals from a plurality of switches is provided. Known (JP-A-57-109003, JP-A-58-58)
200054, JP-A-60-41122,
JP-A-63-164639).

【0003】これらの入力インターフェース回路は、I
C等により構成され、外部、例えば内燃機関制御用コン
ピュータからの命令に応じて、A/D変換器または入力
バッファ回路からデータを読み込んだ後、割込用のトリ
ガー信号の変化、例えば立ち上がりのエッジにより、上
記内燃機関制御用コンピュータに割込を発生させて、デ
ータの送信命令を入力インターフェース回路に出力させ
ている。入力インターフェース回路はこの送信命令を受
けて、A/D変換器または入力バッファ回路から読み込
んだデータを送信している。
These input interface circuits are
After reading data from the A / D converter or the input buffer circuit according to a command from the outside, for example, a computer for controlling the internal combustion engine, a change in the trigger signal for interrupt, for example, a rising edge As a result, an interrupt is generated in the internal combustion engine control computer, and a data transmission command is output to the input interface circuit. The input interface circuit receives the transmission command and transmits the data read from the A / D converter or the input buffer circuit.

【0004】このことにより、コンピュータ側の入力ポ
ートの数が小さくても、多数のセンサやスイッチ類から
のデータを得ることができ、コンピュータが内燃機関制
御用であれば、内燃機関の諸種の運転条件を詳細に知る
ことができ、高精度な制御を行うことが可能となる。
As a result, even if the number of input ports on the computer side is small, it is possible to obtain data from a large number of sensors and switches, and if the computer is for controlling the internal combustion engine, various types of operation of the internal combustion engine are possible. The conditions can be known in detail, and highly accurate control can be performed.

【0005】[0005]

【発明が解決しようとする課題】しかし、上述したよう
なA/D変換器と入力バッファ回路とを有するごとき入
力インターフェース回路の場合には、次のような解決す
べき課題が存在した。すなわち、コンピュータが、A/
D変換器によらなければ得られない内燃機関温度のよう
なアナログデータを、入力インターフェース回路に要求
した場合、入力インターフェース回路に対して、まずA
/D変換器のいずれのチャンネルのデータを読み込めと
いう意味の処理信号を、入力インターフェース回路に送
信する。これを受けて、入力インターフェース回路は、
直ちにトリガー信号を立ち下げると共に、A/D変換処
理を行う。A/D変換処理が完了し内燃機関温度データ
の送信が可能となれば、入力インターフェース回路は、
トリガー信号を立ち上げる。このトリガー信号の立ち上
げ時のエッジにより、コンピュータ側には割込がかか
り、送信命令を入力インターフェース回路に送信して、
内燃機関温度データを送信させる。コンピュータは送信
されてきた内燃機関温度データを読み込み、その内燃機
関温度データを格納したり、演算処理等に用いる。
However, in the case of the input interface circuit having the A / D converter and the input buffer circuit as described above, there are the following problems to be solved. That is, the computer
When analog data such as the internal combustion engine temperature that cannot be obtained by the D converter is requested to the input interface circuit, first, A
A processing signal indicating that data of any channel of the / D converter can be read is transmitted to the input interface circuit. In response to this, the input interface circuit
Immediately, the trigger signal is lowered and A / D conversion processing is performed. When the A / D conversion process is completed and the internal combustion engine temperature data can be transmitted, the input interface circuit
Raise the trigger signal. Due to the edge at the time of rising of this trigger signal, an interrupt is applied to the computer side, a transmission command is transmitted to the input interface circuit,
Send internal combustion engine temperature data. The computer reads the transmitted internal combustion engine temperature data, stores the internal combustion engine temperature data, and uses it for arithmetic processing and the like.

【0006】また、コンピュータが、入力バッファ回路
にて得られるアイドルスイッチのオン・オフのようなデ
ータを、入力インターフェース回路に要求した場合、入
力インターフェース回路に対して、まず入力バッファ回
路のいずれのチャンネルのデータを読み込めという意味
の処理信号を、入力インターフェース回路に送信する。
入力インターフェース回路は、これを受けて、直ちにト
リガー信号を立ち下げると共に、入力バッファ回路から
の読み込み処理を行う。この読み込み作業が完了しアイ
ドルスイッチオン・オフデータの送信が可能となれば、
入力インターフェース回路は、トリガー信号を立ち上げ
る。このトリガー信号の立ち上げ時のエッジにより、コ
ンピュータ側には割込がかかり、送信命令を入力インタ
ーフェース回路に送信して、アイドルスイッチのオン・
オフデータを読み込み、そのオン・オフデータを格納し
たり、演算処理等に用いる。
When the computer requests the input interface circuit for data such as on / off of the idle switch obtained in the input buffer circuit, the input interface circuit first asks which channel of the input buffer circuit. The processed signal meaning that the data of (1) is read is transmitted to the input interface circuit.
In response to this, the input interface circuit immediately lowers the trigger signal and performs the reading process from the input buffer circuit. If this read operation is completed and the idle switch on / off data can be transmitted,
The input interface circuit raises the trigger signal. Due to the rising edge of this trigger signal, the computer side is interrupted, and a send command is sent to the input interface circuit to turn on / off the idle switch.
It is used to read off data, store the on / off data, and for arithmetic processing.

【0007】ところが、A/D変換処理に比較して、入
力バッファ回路から読み込む処理は極めて短い時間で完
了する。したがって、A/D変換にてデータを得る場合
には、トリガー信号の立ち下がりから立ち上がりまでの
時間が長い、すなわちエッジの間隔が長いが、入力バッ
ファ回路から読み込む場合は、トリガー信号の立ち下が
りから立ち上がりまでの時間が極めて短いものとなる。
However, compared with the A / D conversion process, the process of reading from the input buffer circuit is completed in an extremely short time. Therefore, when data is obtained by A / D conversion, the time from the falling edge to the rising edge of the trigger signal is long, that is, the edge interval is long, but when reading from the input buffer circuit, from the falling edge of the trigger signal. The time to rise is extremely short.

【0008】このため、入力バッファ回路から読み込む
場合に出力されるトリガー信号の変化は、ノイズによる
変化と極めて近似のものとなり、ノイズにより割込がか
かってしまう恐れがあった。したがって、通常は、ノイ
ズにより割込処理が実行されるのを防止するため、コン
ピュータ側に特別な入力ポート回路を設けて、ノイズと
実際のトリガー信号変化とを区別しているが、そのよう
な入力ポート回路が高価であるという問題点があった。
Therefore, the change in the trigger signal output when reading from the input buffer circuit is very similar to the change due to noise, and there is a risk that noise will cause an interrupt. Therefore, normally, in order to prevent the interrupt processing from being executed by noise, a special input port circuit is provided on the computer side to distinguish the noise from the actual trigger signal change. There is a problem that the port circuit is expensive.

【0009】また、割込処理を実行せずに、コンピュー
タ側が処理命令を送信した後、所定時間待つことも考え
られる。しかし、この場合は、特にA/D変換では、A
/D変換処理が終了すると推定できるまでの十分な時間
の間、常にコンピュータが待たされることになり、応答
性が低下して全体の制御処理に影響が出る恐れがある。
It is also conceivable that the computer waits for a predetermined time after transmitting the processing command without executing the interrupt processing. However, in this case, especially in A / D conversion, A
The computer is always kept waiting for a sufficient time until it can be estimated that the / D conversion processing is completed, which may reduce the responsiveness and affect the overall control processing.

【0010】本発明は、上述したデータ処理装置からデ
ータを受信する場合に、高価な入力ポート回路を設けず
とも、ノイズにより誤動作の恐れなく、かつ、待ち時間
も問題とならないデータ通信装置を提供することを目的
とする。
The present invention provides a data communication device which receives no data from the above-mentioned data processing device, does not have a risk of malfunction due to noise, and has no problem of waiting time, even without providing an expensive input port circuit. The purpose is to do.

【0011】[0011]

【課題を解決するための手段】請求項1記載の発明は、
図6に実線で例示するごとく、処理の前後に変化するト
リガー信号のエッジ間隔に処理の種類に応じて差がある
データ処理装置へ処理命令を送信した後に、上記データ
処理装置から処理結果を受信するデータ通信装置であっ
て、上記処理命令による処理が比較的長い処理時間の場
合には、上記データ処理装置の処理結果を処理完了後の
トリガー信号のエッジに基づくタイミングで受信し、上
記処理命令による処理が比較的短い処理時間の場合に
は、上記データ処理装置の処理結果を上記処理命令から
の時間経過に基づくタイミングで受信する受信タイミン
グ選択手段を備えたことを特徴とするデータ通信装置で
ある。
According to the first aspect of the present invention,
As illustrated by a solid line in FIG. 6, the processing result is received from the data processing apparatus after the processing command is transmitted to the data processing apparatus in which the edge interval of the trigger signal that changes before and after the processing differs depending on the type of processing. In the case of the data communication device, the processing command is received for a relatively long processing time, the processing result of the data processing device is received at a timing based on the edge of the trigger signal after the processing is completed, and the processing command is received. In the case of a relatively short processing time, the data communication device is provided with a reception timing selection means for receiving the processing result of the data processing device at a timing based on the passage of time from the processing command. is there.

【0012】請求項2記載の発明は、図6に点線で例示
するごとく、上記データ処理装置が、単数または複数の
センサからのアナログ信号をデジタル信号に変換するA
/D変換手段と、単数または複数のスイッチからのオン
・オフ信号を入力する入力手段と、外部から受信した処
理命令に従って、上記A/D変換手段および入力手段の
いずれかからデータを出力させて読み込むデータ読込手
段と、上記処理命令の受信後にトリガー信号を立ち下げ
または立ち上げ、上記処理命令の処理完了後にトリガー
信号を立ち上げまたは立ち下げるトリガー信号出力手段
と、上記データ読込手段にて読み込まれたデータを、外
部からの送信命令の受信タイミングで外部に送信するデ
ータ送信手段と、を有する請求項1記載のデータ通信装
置である。
According to a second aspect of the present invention, as illustrated by a dotted line in FIG. 6, the data processing device converts an analog signal from one or more sensors into a digital signal.
A / D conversion means, input means for inputting an ON / OFF signal from one or more switches, and output of data from either the A / D conversion means or the input means according to a processing command received from the outside. Data reading means for reading, trigger signal output means for raising or lowering the trigger signal after receiving the processing instruction and raising or lowering the trigger signal after completion of processing of the processing instruction, and read by the data reading means. 2. The data communication device according to claim 1, further comprising a data transmitting unit that transmits the data to the outside at a reception timing of a transmission command from the outside.

【0013】請求項3記載の発明は、上記受信タイミン
グ選択手段が、上記処理命令の内容が、上記A/D変換
手段からのデータを送信させる命令である場合には、上
記データ処理装置の処理結果を処理完了後のトリガー信
号のエッジに基づくタイミングで受信し、上記処理命令
の内容が、上記入力手段からのデータを送信させる命令
である場合には、上記データ処理装置の処理結果を上記
処理命令からの時間経過に基づくタイミングで受信する
請求項2記載のデータ通信装置である。
According to a third aspect of the present invention, when the content of the processing instruction is the instruction for causing the reception timing selecting means to transmit the data from the A / D converting means, the processing of the data processing device is performed. When the result is received at the timing based on the edge of the trigger signal after the processing is completed, and the content of the processing instruction is an instruction to transmit the data from the input means, the processing result of the data processing device is processed as described above. 3. The data communication device according to claim 2, wherein the data communication device receives at a timing based on the passage of time from the command.

【0014】請求項4記載の発明は、上記処理命令が、
上記送信命令を兼ねている請求項2または3記載のデー
タ通信装置である。請求項5記載の発明は、上記センサ
およびスイッチが、内燃機関の運転条件を検出するとと
もに、この運転条件データを受信して、上記内燃機関の
制御を実行する請求項2〜4のいずれか記載のデータ通
信装置である。
According to a fourth aspect of the present invention, the processing instruction is
4. The data communication device according to claim 2, which also serves as the transmission command. In the invention according to claim 5, the sensor and the switch detect the operating condition of the internal combustion engine and receive the operating condition data to execute the control of the internal combustion engine. Data communication device.

【0015】[0015]

【作用及び発明の効果】請求項1記載のデータ通信装置
は、その受信タイミング選択手段が、処理命令による処
理が比較的長い処理時間の場合には、データ処理装置の
処理結果を処理完了後のトリガー信号のエッジに基づく
タイミングで受信し、上記処理命令による処理が比較的
短い処理時間の場合には、上記データ処理装置の処理結
果を上記処理命令からの時間経過に基づくタイミングで
受信する。
In the data communication apparatus according to the first aspect of the present invention, when the reception timing selection means has a relatively long processing time for processing by the processing command, the processing result of the data processing apparatus after processing is completed is completed. When the processing by the processing command has a relatively short processing time, the processing result of the data processing device is received at the timing based on the time lapse from the processing command.

【0016】このため、トリガー信号が短くて、データ
通信装置の通常の入力ポート回路ではトリガー信号の立
ち上がり立ち下がりと、ノイズとの区別がつかなくて
も、このようなエッジ間隔の短いトリガー信号変化がな
されるような処理命令を送信した後には、処理完了のト
リガー信号のエッジを待たずに、そのようなエッジは無
視して、単に時間待ちし、その後、データ処理装置にデ
ータを送信させている。このため、データ通信装置は、
安価な入力ポート回路にても、ノイズにより誤動作する
こと無く、データ通信装置のポートの数以上の多種類の
データを入力して、制御に利用することができる。
Therefore, even if the trigger signal is short and the normal input port circuit of the data communication device cannot distinguish the rising and falling of the trigger signal from the noise, such a trigger signal change with a short edge interval is generated. After sending the processing instruction that causes the data to be processed, do not wait for the edge of the processing completion trigger signal, ignore such edge, just wait for a while, and then let the data processing device send the data. There is. Therefore, the data communication device
Even with an inexpensive input port circuit, it is possible to input various types of data more than the number of ports of the data communication device and use them for control without malfunctioning due to noise.

【0017】また、待ち時間は処理時間が短い場合に設
定されるので、処理の終了を最大限に見積もっても、処
理時間が長い場合に待ち時間を見積もって設定するのに
比較して、十分に短くて済み、このデータを利用する制
御の応答性に影響しない。更に処理時間が長い場合に
は、処理完了後のトリガー信号のエッジに基づくタイミ
ングで受信しているので、無用な待ち時間は発生せず、
この場合もこのデータを利用する処理に影響することは
ない。
Also, since the waiting time is set when the processing time is short, even if the end of the processing is estimated to the maximum, it is sufficient compared with the case where the waiting time is estimated and set when the processing time is long. It is short and does not affect the responsiveness of controls that use this data. Further, if the processing time is long, since it is received at the timing based on the edge of the trigger signal after the processing is completed, unnecessary waiting time does not occur,
In this case also, there is no influence on the processing that uses this data.

【0018】上記データ処理装置としては、より具体的
には、次のような構成のものが挙げられる。すなわち、
単数または複数のセンサからのアナログ信号をデジタル
信号に変換するA/D変換手段と、単数または複数のス
イッチからのオン・オフ信号を入力する入力手段と、外
部から受信した処理命令に従って、上記A/D変換手段
および入力手段のいずれかからデータを出力させて読み
込むデータ読込手段と、上記処理命令の受信後にトリガ
ー信号を立ち下げまたは立ち上げ、上記処理命令の処理
完了後にトリガー信号を立ち上げまたは立ち下げるトリ
ガー信号出力手段と、上記データ読込手段にて読み込ま
れたデータを、外部からの送信命令の受信タイミングで
外部に送信するデータ送信手段と、を有するものであ
る。この場合、A/D変換手段からデータを出力させて
読み込む処理が、比較的処理時間の長い処理に該当し、
入力手段からデータを出力させて読み込む処理が、比較
的処理時間の短い処理に該当する。
More specifically, the data processing device may have the following configuration. That is,
A / D conversion means for converting an analog signal from a single or a plurality of sensors into a digital signal, input means for inputting an on / off signal from a single or a plurality of switches, and the above-mentioned A according to a processing instruction received from the outside. A data reading means for outputting and reading data from either the D / D conversion means or the input means; and a trigger signal falling or rising after the processing instruction is received, and a trigger signal rising after the processing of the processing instruction is completed or It has a trigger signal output means for terminating and a data transmission means for transmitting the data read by the data reading means to the outside at the reception timing of a transmission command from the outside. In this case, the process of outputting and reading the data from the A / D conversion means corresponds to the process of relatively long processing time,
The process of outputting and reading the data from the input means corresponds to the process of relatively short processing time.

【0019】したがって、この場合、例えば、受信タイ
ミング選択手段は、上記処理命令の内容が、上記A/D
変換手段からのデータを送信させる命令である場合にデ
ータ処理装置の処理結果を処理完了後のトリガー信号の
エッジに基づくタイミングで受信し、上記処理命令の内
容が、上記入力手段からのデータを送信させる命令であ
る場合にデータ処理装置の処理結果を上記処理命令から
の時間経過に基づくタイミングで受信するよう構成され
る。
Therefore, in this case, for example, in the reception timing selection means, the content of the processing instruction is the A / D.
When the instruction to transmit the data from the conversion means receives the processing result of the data processing device at the timing based on the edge of the trigger signal after the processing is completed, the content of the processing instruction transmits the data from the input means. If it is the instruction to cause the processing instruction, the processing result of the data processing device is received at a timing based on the lapse of time from the processing instruction.

【0020】尚、上記処理命令は、上記送信命令を兼ね
ていてもよい。また、上記データ通信装置を内燃機関制
御に利用した場合には、上記センサおよびスイッチが、
内燃機関の運転条件を検出するとともに、この運転条件
データを受信して、上記データ通信装置が内燃機関の制
御を実行することになる。このことにより、内燃機関制
御回路においても、安価な入力ポート回路にても、ノイ
ズにより誤動作すること無く、内燃機関制御回路のポー
トの数以上の多種類の内燃機関運転条件データを入力し
て、制御に利用することができる。また、待ち時間は処
理時間が短い場合、例えばアイドルスイッチ等のオン・
オフデータの読み込み時に設定されるので、処理の終了
を最大限に見積もっても、処理時間が長い場合に待ち時
間を設定するのに比較して、十分に短くて済み、制御の
応答性に影響しない。更に処理時間が長い場合、例えば
内燃機関温度等のA/D変換を伴うアナログデータの読
み込み時には、処理完了後のトリガー信号のエッジに基
づくタイミングで受信しているので、無用な待ち時間は
発生せず、応答性に問題なく、内燃機関の制御に影響を
及ぼさない。
The processing instruction may also serve as the transmission instruction. When the data communication device is used for internal combustion engine control, the sensor and the switch are
When the operating condition of the internal combustion engine is detected and the operating condition data is received, the data communication device controls the internal combustion engine. As a result, even in an internal combustion engine control circuit, even in an inexpensive input port circuit, without causing malfunction due to noise, by inputting various types of internal combustion engine operating condition data equal to or more than the number of ports of the internal combustion engine control circuit, It can be used for control. If the processing time is short, the waiting time is
Since it is set when reading off data, even if the end of the process is estimated to the maximum, it is sufficiently short compared to setting the waiting time when the processing time is long, which affects control responsiveness. do not do. If the processing time is further longer, for example, when reading analog data with A / D conversion such as internal combustion engine temperature, since it is received at the timing based on the edge of the trigger signal after the processing is completed, unnecessary waiting time does not occur. Therefore, there is no problem in responsiveness and the control of the internal combustion engine is not affected.

【0021】[0021]

【実施例】図1に本発明の一実施例として、内燃機関制
御装置2を示す。内燃機関制御装置2は、内燃機関制御
回路4、入力IC6、パルス入力回路8および出力回路
10を備えている。
FIG. 1 shows an internal combustion engine controller 2 as an embodiment of the present invention. The internal combustion engine control device 2 includes an internal combustion engine control circuit 4, an input IC 6, a pulse input circuit 8 and an output circuit 10.

【0022】内燃機関制御回路4は、CPU、ROM、
RAM、I/O、バスライン等により、コンピュータと
して構成されて、各種センサ12,14やスイッチ16
から内燃機関の運転条件データを検出して、演算処理
し、演算処理の結果に応じて出力回路10を介して複数
の駆動装置18に駆動出力をすることにより、内燃機関
の運転を制御している。尚、アナログセンサ12および
スイッチ16については入力IC6を介してシリアル通
信にてデータを得ている。またパルスセンサ14につい
ては、パルス入力回路8を介してデータを得ている。ア
ナログセンサ12としては、例えば内燃機関の冷却水の
温度を検出する水温センサ、吸入空気の温度を検出する
吸気温センサ等である。パルスセンサ14としては、内
燃機関の回転数を検出する回転数センサ、車両の速度を
検出する車速センサ等である。スイッチ16としては、
アイドルスイッチ、スタータスイッチ等である。駆動装
置18としては、燃料噴射装置、点火装置等である。
The internal combustion engine control circuit 4 includes a CPU, a ROM,
A RAM, I / O, bus line, etc. constitute a computer, and various sensors 12, 14 and switches 16 are provided.
The operating condition data of the internal combustion engine is detected from the above, arithmetic processing is performed, and the driving of the internal combustion engine is controlled by outputting the driving output to the plurality of drive devices 18 via the output circuit 10 according to the result of the arithmetic processing. There is. The analog sensor 12 and the switch 16 obtain data by serial communication via the input IC 6. The pulse sensor 14 obtains data via the pulse input circuit 8. The analog sensor 12 is, for example, a water temperature sensor that detects the temperature of the cooling water of the internal combustion engine, an intake air temperature sensor that detects the temperature of intake air, or the like. The pulse sensor 14 is, for example, a rotation speed sensor that detects the rotation speed of the internal combustion engine or a vehicle speed sensor that detects the speed of the vehicle. As the switch 16,
Examples include idle switches and starter switches. The drive device 18 is a fuel injection device, an ignition device, or the like.

【0023】上記シリアル通信においては、内燃機関制
御回路4と入力IC6とは、内燃機関制御回路4はシリ
アル通信回路20を介して、入力IC6はシリアル通信
回路22を介して、相互にシリアル通信を実行してい
る。このシリアル通信回路20,22同士は、コマンド
信号ライン24、データ信号ライン26、トリガー信号
ライン28およびクロック信号ライン30にて接続され
ている。クロック信号ライン30にて内燃機関制御回路
4から入力IC6へ入力されるクロック信号は、シリア
ル通信の同期をとるためである。
In the serial communication, the internal combustion engine control circuit 4 and the input IC 6 mutually communicate with each other via the serial communication circuit 20 of the internal combustion engine control circuit 4 and the serial communication circuit 22 of the input IC 6. Running. The serial communication circuits 20 and 22 are connected to each other by a command signal line 24, a data signal line 26, a trigger signal line 28 and a clock signal line 30. This is because the clock signal input from the internal combustion engine control circuit 4 to the input IC 6 on the clock signal line 30 synchronizes the serial communication.

【0024】内燃機関制御回路4からは、処理命令や送
信命令がコマンドとしてコマンド信号ライン24を介し
て、入力IC6へ送信される。例えば、内燃機関制御回
路4が、アナログセンサ12の一つからアナログデータ
を得るためには、処理命令として、アナログセンサ12
を選択するためのチャンネル番号とA/D変換を指示す
る命令とを組み合わせたコマンドを生成して、コマンド
信号ライン24へ出力すれば、入力IC6はシリアル通
信回路22を介してそのコマンドを受信し、その内容を
解析して、備えているA/D変換器32にチャンネルを
指示して、A/D変換させる。入力IC6はこの受信の
際に、トリガー信号ライン28を立ち下げる。
From the internal combustion engine control circuit 4, processing commands and transmission commands are transmitted as commands to the input IC 6 via the command signal line 24. For example, in order for the internal combustion engine control circuit 4 to obtain analog data from one of the analog sensors 12, the analog sensor 12 is used as a processing command.
If a command is generated by combining a channel number for selecting and a command for instructing A / D conversion and output to the command signal line 24, the input IC 6 receives the command via the serial communication circuit 22. , The contents are analyzed, the channel is instructed to the A / D converter 32 provided, and the A / D conversion is performed. The input IC 6 causes the trigger signal line 28 to fall during this reception.

【0025】A/D変換器32の処理が終了すれば、A
/D変換データはシリアル通信回路22にセットされ
る。このタイミングで入力IC6は、トリガー信号を立
ち上げる。内燃機関制御回路4は、このトリガー信号の
立ち上げにより、割込が発生して、入力IC6のシリア
ル通信回路22にセットされているA/D変換データを
送信させ、それを受信する。
When the processing of the A / D converter 32 is completed, A
The / D conversion data is set in the serial communication circuit 22. At this timing, the input IC 6 raises the trigger signal. The internal combustion engine control circuit 4 causes an interrupt due to the rise of the trigger signal, causes the serial communication circuit 22 of the input IC 6 to transmit the A / D conversion data, and receives the A / D conversion data.

【0026】また、内燃機関制御回路4がスイッチ16
の一つからオン・オフデータ(以下ポートデータともい
う)を得るためには、処理命令として、スイッチ16を
選択するためのブロック番号と入力IC6に備えられた
入力バッファ回路34からの読み込みを指示する命令と
を組み合わせたコマンドを生成して、コマンド信号ライ
ン24へ出力する。このことにより、入力IC6はシリ
アル通信回路22を介してそのコマンドを受信し、その
内容を解析して、入力バッファ回路34の該当するブロ
ックからデータを読み込む。入力IC6はこの受信の際
に、トリガー信号ライン28を立ち下げ、データを入力
バッファ回路34から読み込んだ際に立ち上げる。
Further, the internal combustion engine control circuit 4 has a switch 16
In order to obtain ON / OFF data (hereinafter also referred to as port data) from one of the above, as a processing instruction, a block number for selecting the switch 16 and reading from the input buffer circuit 34 provided in the input IC 6 are instructed. Command is generated in combination with the command to be generated and output to the command signal line 24. As a result, the input IC 6 receives the command via the serial communication circuit 22, analyzes the content, and reads the data from the corresponding block of the input buffer circuit 34. The input IC 6 lowers the trigger signal line 28 during this reception and raises it when the data is read from the input buffer circuit 34.

【0027】内燃機関制御回路4は、このような入力バ
ッファ回路34から読み込む場合のごとく、短い間隔で
立ち下げから立ち上げへ(または立ち上げから立ち下げ
に)変化するトリガー信号に関しては、シリアル通信回
路20のポートに設けたフィルタ回路により、そのトリ
ガー信号の変化を除去している。したがって、内燃機関
制御回路4は、このトリガー信号の立ち上げには無関係
に、所定時間後に、入力IC6のシリアル通信回路22
にセットされているオン・オフデータを入力IC6に対
して送信させ、それを内燃機関制御回路4は受信する。
The internal combustion engine control circuit 4 serially communicates a trigger signal that changes from a fall to a rise (or a rise to a fall) at short intervals, as in the case of reading from the input buffer circuit 34. The filter circuit provided at the port of the circuit 20 removes the change in the trigger signal. Therefore, the internal combustion engine control circuit 4 receives the serial communication circuit 22 of the input IC 6 after a predetermined time regardless of the rising of the trigger signal.
The ON / OFF data set in the above is transmitted to the input IC 6, and the internal combustion engine control circuit 4 receives it.

【0028】このようにして、内燃機関制御回路4は、
入力IC6を介して複数のアナログセンサ12およびス
イッチ16から内燃機関運転条件を表す検出データを得
ているので、内燃機関制御回路4においてデータの入力
のためのポートが、アナログセンサ12およびスイッチ
16の数だけ設けなくても、入力IC6との通信のため
のポートのみの最小限のポートで、多くのデータを得る
ことが可能となる。
In this way, the internal combustion engine control circuit 4 is
Since the detection data representing the operating condition of the internal combustion engine is obtained from the plurality of analog sensors 12 and the switch 16 via the input IC 6, the port for inputting the data in the internal combustion engine control circuit 4 is the analog sensor 12 and the switch 16. It is possible to obtain a large amount of data with a minimum number of ports only for communication with the input IC 6 without providing only the number.

【0029】この処理の内、内燃機関制御回路4側にお
ける処理のフローチャートを図2,図3に示す。図2は
4msタイマー割込処理であり、4ms毎に割込実行さ
れる。処理が開始されると、A/D変換チャンネルが算
出される(ステップ50)。このチャンネルは、例えば
全てのアナログセンサ12の出力値を得るために、各ア
ナログセンサ12に該当するチャンネルを順に指示する
設定がなされる。
Of these processes, a flowchart of the process on the internal combustion engine control circuit 4 side is shown in FIGS. FIG. 2 shows a 4 ms timer interrupt process, which is executed every 4 ms. When the process is started, the A / D conversion channel is calculated (step 50). For this channel, for example, in order to obtain the output values of all the analog sensors 12, a setting is made to sequentially instruct the channels corresponding to each analog sensor 12.

【0030】次に、A/D変換用コマンド(処理命令:
送信命令も兼ねる。)を所定のフォーマットに従って作
成する(ステップ51)。例えば、コマンドが8ビット
のシリアル信号で表されるとすると、第0ビット〜第4
ビットまでがチャンネル番号を表し、第5ビットから第
7ビットまでがA/D変換器32側の出力を指示する命
令を表すものとする。
Next, an A / D conversion command (processing instruction:
Also serves as a transmission command. ) Is created according to a predetermined format (step 51). For example, if the command is represented by an 8-bit serial signal, the 0th bit to the 4th bit
It is assumed that bits up to the bit represent a channel number, and bits 5 to 7 represent an instruction to instruct the output from the A / D converter 32 side.

【0031】次に、このA/D変換用コマンドをコマン
ド信号ライン24を介して入力IC6へ送信する(ステ
ップ52)。ここまでが図4のタイミングチャートの時
刻t0〜t1に該当する。上記コマンドを受信した入力
IC6は、コマンドの内容を解析すると共にトリガー信
号を立ち下げる。そして、シリアル通信回路22からA
/D変換器32に対して、コマンドに記載されたチャン
ネルからアナログデータをA/D変換して出力させる指
示信号を出力する。
Next, this A / D conversion command is transmitted to the input IC 6 via the command signal line 24 (step 52). The processes up to this point correspond to times t0 to t1 in the timing chart of FIG. The input IC 6 receiving the command analyzes the content of the command and lowers the trigger signal. Then, from the serial communication circuit 22 to A
An instruction signal for A / D converting analog data from the channel described in the command and outputting the analog data is output to the / D converter 32.

【0032】A/D変換処理は比較的長時間必要であ
る。例えば、A/D変換処理に50μsが実際にかかっ
たとすると、このA/D変換処理結果の送信命令は、ト
リガー信号の立ち上がりによる図3に示す割込処理にて
実行される。したがって、内燃機関制御回路4は、ステ
ップ52の終了後は、直ちに他の処理に戻り、この50
μsの間に、他の処理を進めることが可能となる。
The A / D conversion process requires a relatively long time. For example, assuming that the A / D conversion process actually takes 50 μs, this transmission command of the A / D conversion process result is executed by the interrupt process shown in FIG. 3 due to the rise of the trigger signal. Therefore, the internal combustion engine control circuit 4 immediately returns to another processing after the end of step 52, and
It is possible to proceed with other processing during μs.

【0033】入力IC6にてA/D変換器32の処理が
終了し、A/D変換値がシリアル通信回路22に入力さ
れると、入力IC6は直ちにトリガー信号を立ち上げる
(時刻t2)。このトリガー信号の立ち上げにより、内
燃機関制御回路4では割込がかかり、図3の処理が開始
される。まず、入力IC6の入力バッファ回路34のポ
ートブロックが算出される(ステップ60)。この算出
処理は、例えば全てのスイッチ16のオン・オフ値を得
るために、各スイッチ16のブロックに該当するチャン
ネルを順に指示される設定がなされる。例えば、スイッ
チ16が24個あり、各ブロックの内容が8ビットの信
号で得られるとすると、各スイッチ16の状態は1ビッ
トで表すことができるので、全スイッチ16は、24ビ
ット/8ビット=3ブロックに別れていることになり、
この3ブロックを順にチャンネルにて指示することにな
る。
When the input IC 6 completes the processing of the A / D converter 32 and the A / D converted value is input to the serial communication circuit 22, the input IC 6 immediately raises the trigger signal (time t2). Due to the rise of this trigger signal, the internal combustion engine control circuit 4 is interrupted and the processing of FIG. 3 is started. First, the port block of the input buffer circuit 34 of the input IC 6 is calculated (step 60). In this calculation process, for example, in order to obtain the on / off values of all the switches 16, the channels corresponding to the blocks of each switch 16 are set in order. For example, if there are 24 switches 16 and the content of each block is obtained by a signal of 8 bits, the state of each switch 16 can be represented by 1 bit, so all the switches 16 have 24 bits / 8 bits = Will be divided into 3 blocks,
These three blocks will be sequentially designated on the channel.

【0034】次に、ポート用コマンド(処理命令:送信
命令も兼ねる。)を所定のフォーマットに従って作成す
る(ステップ61)。フォーマットは上述したA/D変
換用コマンドと同じであり、5ビットのチャンネル番号
と、3ビットの入力バッファ回路34側の出力を指示す
る命令とから構成されている。
Next, a port command (processing command: also serving as a transmission command) is created according to a predetermined format (step 61). The format is the same as the A / D conversion command described above, and is composed of a 5-bit channel number and a 3-bit instruction for instructing the output from the input buffer circuit 34 side.

【0035】次に、このポート用コマンドをコマンド信
号ライン24を介して入力IC6へ送信する(ステップ
62)。入力IC6にとっては、上述のごとく処理命令
のコマンドは、その前に処理されて結果が得られている
未送信のデータの送信命令をも兼ねているので、ステッ
プ62では送信と同時に、ステップ52にて送信された
A/D変換用コマンドに基づいて得られている未送信の
A/D変換データの受信処理に入る。
Next, this port command is transmitted to the input IC 6 via the command signal line 24 (step 62). For the input IC 6, the command of the processing instruction as described above also serves as the transmission instruction of the untransmitted data which has been processed and obtained the result, so in step 62, the command is sent to the step 52 at the same time as the transmission. Then, the process of receiving the untransmitted A / D conversion data obtained based on the A / D conversion command transmitted by the above process is started.

【0036】入力IC6では、ポート用コマンドを受信
すると、データ信号ライン26を介して、直ちにA/D
変換データを送信すると共に、トリガー信号を立ち下げ
る(時刻t3)。このポート用コマンドによる入力バッ
ファ回路34からのデータの読み込みは極めて短い処理
であるので、直ちに処理は完了して、入力IC6は、短
い間隔でトリガー信号を立ち上げる(時刻t4)。
When the input IC 6 receives the port command, it immediately receives the A / D signal via the data signal line 26.
The conversion data is transmitted and the trigger signal is turned off (time t3). Since the reading of data from the input buffer circuit 34 by this port command is an extremely short process, the process is completed immediately and the input IC 6 raises the trigger signal at short intervals (time t4).

【0037】この時、内燃機関制御回路4側では、トリ
ガー信号ライン28からのこのような短い間隔のトリガ
ー信号の立ち下げから立ち上げへの変化は、フィルタ回
路により除去されている。したがって、このポート用コ
マンド送信に伴うトリガー信号の立ち上げでは、割込は
かからない。
At this time, on the internal combustion engine control circuit 4 side, the change from the fall to the rise of the trigger signal from the trigger signal line 28 at such a short interval is removed by the filter circuit. Therefore, the rising of the trigger signal accompanying the command transmission for this port does not cause an interrupt.

【0038】ステップ62の次には入力IC6側の処理
が完了するに十分な時間待ちがなされる(ステップ6
3)。この時間は、入力バッファ回路34からのデータ
の読み込み処理自体が上述したごとく極めて短いため、
十分の待ち時間であっても、実際には、スイッチ16の
オン・オフ信号の変化に対する制御の応答性には影響な
いほど短いものである。例えば2μs程度あれば十分で
ある。尚、この間に内燃機関制御回路4は、他の処理を
実施しても良い。
After step 62, a waiting time sufficient for completing the processing on the input IC 6 side is made (step 6).
3). This time is extremely short because the process of reading the data from the input buffer circuit 34 is extremely short as described above.
Even a sufficient waiting time is actually short enough not to affect the responsiveness of the control to changes in the on / off signal of the switch 16. For example, about 2 μs is sufficient. The internal combustion engine control circuit 4 may perform other processing during this period.

【0039】次に、内燃機関制御回路4から、入力IC
6へ、スイッチ16からシリアル通信回路22に得られ
ているはずのポートデータを送信させるために、コマン
ドを送信し、同時にポートデータの受信を行う(ステッ
プ64)。このコマンドは、実際には、入力IC6に対
しては何等の処理も求めない無処理命令コマンドであ
る。
Next, from the internal combustion engine control circuit 4, the input IC
In order to transmit the port data that should have been obtained from the switch 16 to the serial communication circuit 22, the command is transmitted to the switch 6, and the port data is received at the same time (step 64). This command is actually a non-process command command that does not require the input IC 6 to perform any processing.

【0040】入力IC6では、この無処理命令コマンド
を受信して、ポートデータを送信すると共に、トリガー
信号を立ち下げる(時刻t5)が、処理がなされないの
で直ちにトリガー信号は立ち上げられる(時刻t6)。
内燃機関制御回路4は、ステップ64でポートデータを
受信した後、そのデータに基づく物理量の変換処理や時
間調整のためのディレイ処理等を実施し(ステップ6
5)、トリガー信号割込処理を終了する。
The input IC 6 receives the non-process command command, transmits the port data, and causes the trigger signal to fall (time t5), but since no processing is performed, the trigger signal is immediately raised (time t6). ).
After receiving the port data in step 64, the internal combustion engine control circuit 4 performs a physical quantity conversion process based on the port data, a delay process for time adjustment, and the like (step 6).
5), the trigger signal interrupt processing is ended.

【0041】以後、4msの次の周期となれば、図2の
処理が起動されて、上述した処理を繰り返す。本実施例
では、内燃機関制御回路4は、処理命令による処理が、
比較的長い時間となるA/D変換処理の場合には、処理
完了後のトリガー信号のエッジに基づいて割込処理を起
動し、その割込処理にて送信命令を入力IC6に送信し
て、入力IC6からA/D変換データを受信し、上記処
理命令による処理が比較的短い処理時間となる入力バッ
ファ回路34からの読み込み処理の場合には、上記処理
命令からの所定時間の経過後に送信命令を入力IC6に
送信して、入力IC6からポートデータを受信する。
Thereafter, when the next cycle of 4 ms is reached, the processing of FIG. 2 is started and the above-mentioned processing is repeated. In the present embodiment, the internal combustion engine control circuit 4 is
In the case of A / D conversion processing that takes a relatively long time, the interrupt processing is activated based on the edge of the trigger signal after the processing is completed, and a transmission command is transmitted to the input IC 6 by the interrupt processing, In the case of receiving the A / D converted data from the input IC 6 and reading from the input buffer circuit 34 in which the processing by the above processing instruction takes a relatively short processing time, a transmission instruction is issued after a predetermined time has elapsed from the above processing instruction. Is transmitted to the input IC 6 and the port data is received from the input IC 6.

【0042】このため、トリガー信号のエッジの間隔が
短いと、内燃機関制御回路4のシリアル通信回路20の
安価な入力ポート回路では、トリガー信号の立ち上がり
立ち下がりと、ノイズとの区別がつかず、フィルタ回路
にて除去してしまうが、内燃機関制御回路4は、このよ
うにエッジ間隔の短いトリガー信号変化がなされるよう
なポートデータの送信命令を入力IC6に送信した後に
は、単に時間待ちし、その後、入力IC6にデータの送
信命令を送信して、ポートデータを送信させて、それを
受信している。
Therefore, when the interval between the edges of the trigger signal is short, the inexpensive input port circuit of the serial communication circuit 20 of the internal combustion engine control circuit 4 cannot distinguish the rising and falling edges of the trigger signal from noise. Although it is removed by the filter circuit, the internal combustion engine control circuit 4 simply waits for a time after transmitting the port data transmission command to the input IC 6 such that the trigger signal with a short edge interval is changed. After that, the data transmission command is transmitted to the input IC 6, the port data is transmitted, and the data is received.

【0043】このため、内燃機関制御回路4のシリアル
通信回路20が安価な入力ポート回路を使用していて
も、ノイズにより誤動作すること無く、内燃機関制御回
路4のポートの数以上の多種類のデータを入力して、制
御に利用することができる。また、待ち時間は処理時間
が短いポートデータの読み込みの場合に設定されるの
で、そのポートデータ読み込み処理の完了を最大限に見
積もっても、処理時間が長いA/D変換処理の場合に待
ち時間を見積もって設定するのに比較して、十分に短く
て済み、制御の応答性に影響しない。更に処理時間が長
いA/D変換処理の場合には、処理完了後のトリガー信
号のエッジに基づいて割込処理にて受信しているので、
無用な待ち時間は発生せず、この場合も制御に影響する
ことはない。
For this reason, even if the serial communication circuit 20 of the internal combustion engine control circuit 4 uses an inexpensive input port circuit, it does not malfunction due to noise, and there are many types of internal combustion engine control circuit 4 or more. Data can be input and used for control. In addition, the waiting time is set when reading port data whose processing time is short. Therefore, even if the completion of the port data reading process is estimated to the maximum, the waiting time is set when the processing time is long. Is short enough compared to the case of estimating and setting, and does not affect the responsiveness of control. In the case of A / D conversion processing with a longer processing time, since it is received by the interrupt processing based on the edge of the trigger signal after the processing is completed,
There is no unnecessary waiting time, and in this case also control is not affected.

【0044】本実施例では、入力IC6がデータ処理装
置に該当し、内燃機関制御回路4がデータ通信装置に該
当する。また、A/D変換器32がA/D変換手段に該
当し、入力バッファ回路34が入力手段に該当し、シリ
アル通信回路22がデータ読込手段、トリガー信号出力
手段およびデータ送信手段に該当する。図3の処理が受
信タイミング選択手段としての処理に該当する。
In this embodiment, the input IC 6 corresponds to a data processing device, and the internal combustion engine control circuit 4 corresponds to a data communication device. The A / D converter 32 corresponds to A / D conversion means, the input buffer circuit 34 corresponds to input means, and the serial communication circuit 22 corresponds to data reading means, trigger signal output means, and data transmitting means. The process of FIG. 3 corresponds to the process as the reception timing selection means.

【0045】[その他]更に、4ms毎に、複数のチャ
ンネルに対してA/D変換させるには、図2の処理の
後、トリガー信号の立ち上がりにて、図5の割込処理
を、追加のチャンネル数だけ実行し、最後のトリガー信
号割込処理に図3のトリガー信号割込処理を実行すれば
良い。尚、図5のステップ70〜72は、図2のステッ
プ50〜52と同じ処理である。
[Others] Further, in order to perform A / D conversion for a plurality of channels every 4 ms, after the processing of FIG. 2, the interrupt processing of FIG. 5 is added at the rising edge of the trigger signal. It suffices to execute only the number of channels and execute the trigger signal interrupt process of FIG. 3 as the final trigger signal interrupt process. Note that steps 70 to 72 in FIG. 5 are the same processes as steps 50 to 52 in FIG.

【0046】また、4ms毎に複数のチャンネルに対し
て入力バッファ回路34から読み込むには、図3のトリ
ガー信号割込処理内にて、ステップ60〜63と同じ処
理を追加のチャンネル数だけ、ステップ63とステップ
64との間で実行すれば良い。
Further, in order to read from the input buffer circuit 34 for a plurality of channels every 4 ms, the same processing as steps 60 to 63 in the trigger signal interrupt processing of FIG. It may be executed between 63 and step 64.

【0047】4ms毎に、複数のチャンネルに対してA
/D変換させ、かつ複数のチャンネルに対して入力バッ
ファ回路34から読み込むには、上述した4ms毎に複
数のチャンネルに対してA/D変換させる場合と、4m
s毎に複数のチャンネルに対して入力バッファ回路34
から読み込む場合の処理を組み合わせば良い。
Every 4 ms, A for multiple channels
In order to perform A / D conversion and read from the input buffer circuit 34 for a plurality of channels, the case where A / D conversion is performed for a plurality of channels every 4 ms described above and 4 m
Input buffer circuit 34 for a plurality of channels for each s
You can combine the processing when reading from.

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

【図1】 実施例のブロック構成図である。FIG. 1 is a block configuration diagram of an embodiment.

【図2】 内燃機関制御回路で実行されるタイマー割込
処理のフローチャートである。
FIG. 2 is a flowchart of a timer interrupt process executed by an internal combustion engine control circuit.

【図3】 内燃機関制御回路で実行されるトリガー信号
割込処理のフローチャートである。
FIG. 3 is a flowchart of a trigger signal interrupt process executed by the internal combustion engine control circuit.

【図4】 上記処理のタイミングチャートである。FIG. 4 is a timing chart of the above processing.

【図5】 内燃機関制御回路で実行されるトリガー信号
割込処理の他の例の一部のフローチャートである。
FIG. 5 is a flowchart of a part of another example of the trigger signal interrupt processing executed by the internal combustion engine control circuit.

【図6】 本発明の構成例示図である。FIG. 6 is a structural example of the present invention.

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

2…内燃機関制御装置 4…内燃機関制御回路 6…入力IC 8…パルス入力回路 10…出力
回路 12…アナログセンサ 14…パルスセンサ 16…スイッチ 18…駆動装置 20,22…シリアル通信回路 24…コマンド信号
ライン 26…データ信号ライン 28…トリガー信号ライン 30…クロック信号ライン 32…A/D変換器 34…入力バッファ回路
2 ... Internal combustion engine control device 4 ... Internal combustion engine control circuit 6 ... Input IC 8 ... Pulse input circuit 10 ... Output circuit 12 ... Analog sensor 14 ... Pulse sensor 16 ... Switch 18 ... Drive device 20, 22 ... Serial communication circuit 24 ... Command Signal line 26 ... Data signal line 28 ... Trigger signal line 30 ... Clock signal line 32 ... A / D converter 34 ... Input buffer circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】処理の前後に変化するトリガー信号のエッ
ジ間隔に処理の種類に応じて差があるデータ処理装置へ
処理命令を送信した後に、上記データ処理装置から処理
結果を受信するデータ通信装置であって、 上記処理命令による処理が比較的長い処理時間の場合に
は、上記データ処理装置の処理結果を処理完了後のトリ
ガー信号のエッジに基づくタイミングで受信し、上記処
理命令による処理が比較的短い処理時間の場合には、上
記データ処理装置の処理結果を上記処理命令からの時間
経過に基づくタイミングで受信する受信タイミング選択
手段を備えたことを特徴とするデータ通信装置。
1. A data communication device for receiving a processing result from the data processing device after transmitting a processing command to a data processing device in which an edge interval of a trigger signal that changes before and after the processing differs depending on the type of processing. When the processing by the processing instruction has a relatively long processing time, the processing result of the data processing device is received at the timing based on the edge of the trigger signal after the processing is completed, and the processing by the processing instruction is compared. A data communication device comprising a reception timing selection means for receiving the processing result of the data processing device at a timing based on the passage of time from the processing command when the processing time is relatively short.
【請求項2】上記データ処理装置が、 単数または複数のセンサからのアナログ信号をデジタル
信号に変換するA/D変換手段と、 単数または複数のスイッチからのオン・オフ信号を入力
する入力手段と、 外部から受信した処理命令に従って、上記A/D変換手
段および入力手段のいずれかからデータを出力させて読
み込むデータ読込手段と、 上記処理命令の受信後にトリガー信号を立ち下げまたは
立ち上げ、上記処理命令の処理完了後にトリガー信号を
立ち上げまたは立ち下げるトリガー信号出力手段と、 上記データ読込手段にて読み込まれたデータを、外部か
らの送信命令の受信タイミングで外部に送信するデータ
送信手段と、 を有する請求項1記載のデータ通信装置。
2. The data processing device comprises: A / D conversion means for converting an analog signal from one or a plurality of sensors into a digital signal; and input means for inputting an on / off signal from a single or a plurality of switches. A data reading means for outputting and reading data from either the A / D conversion means or the input means according to a processing instruction received from the outside, and a trigger signal falling or rising after receiving the processing instruction, Trigger signal output means for raising or falling the trigger signal after the processing of the instruction is completed, and data transmission means for transmitting the data read by the data reading means to the outside at the reception timing of the transmission instruction from the outside. The data communication device according to claim 1, comprising.
【請求項3】上記受信タイミング選択手段が、 上記処理命令の内容が、上記A/D変換手段からのデー
タを送信させる命令である場合には、上記データ処理装
置の処理結果を処理完了後のトリガー信号のエッジに基
づくタイミングで受信し、上記処理命令の内容が、上記
入力手段からのデータを送信させる命令である場合に
は、上記データ処理装置の処理結果を上記処理命令から
の時間経過に基づくタイミングで受信する請求項2記載
のデータ通信装置。
3. When the content of the processing instruction is an instruction for transmitting data from the A / D conversion means, the reception timing selection means outputs the processing result of the data processing device after the processing is completed. When the processing instruction is received at the timing based on the edge of the trigger signal and the content of the processing instruction is an instruction to transmit the data from the input means, the processing result of the data processing device is set to the time elapsed from the processing instruction. The data communication device according to claim 2, wherein the data communication device receives at a timing based on the above.
【請求項4】上記処理命令が、上記送信命令を兼ねてい
る請求項2または3記載のデータ通信装置。
4. The data communication device according to claim 2, wherein the processing instruction also serves as the transmission instruction.
【請求項5】上記センサおよびスイッチが、内燃機関の
運転条件を検出するとともに、この運転条件データを受
信して、上記内燃機関の制御を実行する請求項2〜4の
いずれか記載のデータ通信装置。
5. The data communication according to claim 2, wherein the sensor and the switch detect the operating condition of the internal combustion engine and receive the operating condition data to execute the control of the internal combustion engine. apparatus.
JP6295201A 1994-11-29 1994-11-29 Data communication equipment Pending JPH08153052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6295201A JPH08153052A (en) 1994-11-29 1994-11-29 Data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6295201A JPH08153052A (en) 1994-11-29 1994-11-29 Data communication equipment

Publications (1)

Publication Number Publication Date
JPH08153052A true JPH08153052A (en) 1996-06-11

Family

ID=17817514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6295201A Pending JPH08153052A (en) 1994-11-29 1994-11-29 Data communication equipment

Country Status (1)

Country Link
JP (1) JPH08153052A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014154082A (en) * 2013-02-13 2014-08-25 Keihin Corp Interface device
JP2016109572A (en) * 2014-12-08 2016-06-20 アズビル株式会社 Method for testing electromagnetic flowmeter, and test system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014154082A (en) * 2013-02-13 2014-08-25 Keihin Corp Interface device
JP2016109572A (en) * 2014-12-08 2016-06-20 アズビル株式会社 Method for testing electromagnetic flowmeter, and test system

Similar Documents

Publication Publication Date Title
JP6125111B2 (en) In-vehicle electronic control unit
JPH06217373A (en) Aggregated wiring system
EP0740059B1 (en) An A/D conversion control apparatus for an internal combustion engine
CA2009856A1 (en) Method and apparatus for controlling ignition timing for marine engine
JPH08153052A (en) Data communication equipment
US5452422A (en) Bus competitive control apparatus
JPH07310587A (en) Controller for internal combustion engine in vehicle
JP3339763B2 (en) Analog / digital converter
US6218954B1 (en) Communication control device
JP3768544B2 (en) Electronic control unit for engine control
US7336209B2 (en) Method and device for data transmission
US5528760A (en) Data transmission/receive system and control method using dummy data to signify transmission/reception state and to detect transmission error
JP2833349B2 (en) Dynamic memory control method
JPH07279745A (en) On-vehicle control device and on-vehicle control system
JP2947667B2 (en) Pulse signal output control device
US20090070023A1 (en) Control Unit
JPH08328744A (en) Analog/digital converter
JPH07312627A (en) Data transfer method for serial communication between two cpus
JPH05302544A (en) Electronic control unit
JPH1168883A (en) Communication controller
JP2580146B2 (en) Vehicle communication control device
JPH062361Y2 (en) Balanced transmission device
JP2623814B2 (en) Control device for engine control
JPH0341542A (en) Peripheral controller
KR0166636B1 (en) Reset device and its method