JPS6152485B2 - - Google Patents
Info
- Publication number
- JPS6152485B2 JPS6152485B2 JP54035819A JP3581979A JPS6152485B2 JP S6152485 B2 JPS6152485 B2 JP S6152485B2 JP 54035819 A JP54035819 A JP 54035819A JP 3581979 A JP3581979 A JP 3581979A JP S6152485 B2 JPS6152485 B2 JP S6152485B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- circuit
- level
- angle
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 238000000034 method Methods 0.000 claims description 28
- 230000008569 process Effects 0.000 claims description 25
- 238000006243 chemical reaction Methods 0.000 description 66
- 238000001514 detection method Methods 0.000 description 44
- 239000003990 capacitor Substances 0.000 description 36
- 238000004364 calculation method Methods 0.000 description 34
- 230000008929 regeneration Effects 0.000 description 18
- 238000011069 regeneration method Methods 0.000 description 18
- 230000002093 peripheral effect Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 230000001360 synchronised effect Effects 0.000 description 8
- 238000009429 electrical wiring Methods 0.000 description 5
- 238000007599 discharging Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000000630 rising effect Effects 0.000 description 3
- 230000001052 transient effect Effects 0.000 description 3
- 230000010354 integration Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003252 repetitive effect Effects 0.000 description 2
- 238000007493 shaping process Methods 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000002485 combustion reaction Methods 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 239000000498 cooling water Substances 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007858 starting material Substances 0.000 description 1
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F02—COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
- F02P—IGNITION, OTHER THAN COMPRESSION IGNITION, FOR INTERNAL-COMBUSTION ENGINES; TESTING OF IGNITION TIMING IN COMPRESSION-IGNITION ENGINES
- F02P5/00—Advancing or retarding ignition; Control therefor
- F02P5/04—Advancing or retarding ignition; Control therefor automatically, as a function of the working conditions of the engine or vehicle or of the atmospheric conditions
- F02P5/145—Advancing or retarding ignition; Control therefor automatically, as a function of the working conditions of the engine or vehicle or of the atmospheric conditions using electrical means
- F02P5/15—Digital data processing
- F02P5/1502—Digital data processing using one central computing unit
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Ignition Installations For Internal Combustion Engines (AREA)
- Electrical Control Of Ignition Timing (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
- Control By Computers (AREA)
Description
【発明の詳細な説明】
本発明は処理装置を含む制御システムにおい
て、処理装置の作動状態を外囲条件により切換え
られる2値信号の状態によつて変化させることに
よつて、システムの機能設定を変更するようにし
た制御条件を設定する装置に関する。DETAILED DESCRIPTION OF THE INVENTION In a control system including a processing device, the present invention changes the operating state of the processing device according to the state of a binary signal that is switched depending on the surrounding conditions, thereby changing the function settings of the system. The present invention relates to a device for setting control conditions to be changed.
近年、いわゆるマイクロコンピユータと称され
る制御用デジタルコンピユータを用いて各種制御
システムを構成することが行なわれているが(例
えば、特願昭53−88257号参照)、このような制御
システムにおいてその制御機能を変更する必要が
ある場合も生じている。 In recent years, various control systems have been configured using digital control computers called microcomputers (see, for example, Japanese Patent Application No. 1988-88257). There are also cases where it is necessary to change functionality.
本発明はこの要求に鑑みて、制御条件の変更を
簡単に行ない得るようにした制御条件設定装置を
提供することを目的とする。 In view of this demand, it is an object of the present invention to provide a control condition setting device that allows control conditions to be easily changed.
詳述すれば本発明は処理装置の入出力信号線を
兼用して前記制御条件を決定する2値信号を設定
することにより、処理装置を一体の集積回路例え
ばLSI(大規模集積回路)として製作するときの
入出力ピン数を減らし、回路体の物理的大きさを
小さくするとともに製作時の組立工数および部品
数の削減をすることを可能ならしめようとするも
のである。本発明によると、処理装置はその起動
時に同期して入出力信号線を介して与えられる2
値信号を記憶し、これによつて自己の信号処理機
能を変更するので、処理機能変更が容易に行なえ
ると共に変更後は処理装置の入出力信号線は本来
の信号伝送用として何ら支障なく使用される。 More specifically, the present invention allows the processing device to be manufactured as an integrated circuit, such as an LSI (Large-Scale Integrated Circuit), by setting a binary signal that determines the control conditions by also using the input/output signal line of the processing device. The purpose is to reduce the number of input/output pins when manufacturing the circuit, reduce the physical size of the circuit body, and reduce the number of assembly steps and parts during manufacturing. According to the present invention, when the processing device is activated, the two
Since the value signal is stored and the own signal processing function is changed using this, the processing function can be easily changed, and after the change, the input/output signal line of the processing device can be used for original signal transmission without any problems. be done.
以下本発明を添付図面に示す実施例に従つて説
明する。この実施例では通常用いられる多気筒機
関のうち4気筒ガソリンエンジンにおける点火コ
イルの通電開始時期と通電遮断時期(点火時期)
を制御する点火制御装置について、特に通電開始
時期を制御する数値データ/タイミング変換にお
ける時間制御モードと角度制御モードとの切換を
設定する部分に本発明を適用している。 The present invention will be described below with reference to embodiments shown in the accompanying drawings. In this example, the ignition coil energization start timing and energization cutoff timing (ignition timing) in a four-cylinder gasoline engine among commonly used multi-cylinder engines
The present invention is particularly applied to the ignition control device that controls the ignition control device, particularly to the part that sets the switching between the time control mode and the angle control mode in the numerical data/timing conversion that controls the energization start timing.
電気制御系の全体構成を示す第1図において、
100はデジタルコンピユータとして用いるマイク
ロコンピユータであり、各種のエンジン制御パラ
メータに基いてエンジンの点火における点火コイ
ルの通電開始時期と通電遮断時期を規定する数値
データを算定する演算過程、この点火制御装置に
おいて前記各種パラメータを入力する入力過程、
前記数値データと所定のクロツク信号の計数値が
前記数値データに達するのに要する時間データと
の変換を行なう変換過程、およびこの変換過程に
おける変換の開始をエンジンのクランク回転角に
同期させる同期過程とをメモリ120の制御プロ
グラムのもとに統合的に制御する役割を有する。
マイクロコンピユータ100は一般にプロセツサ
とかCPUと称されるもので、この実施例で用い
たマイクロコンピユータはRCA社のCDP1802CD
であり、付随する周辺装置もこの系列の市販のも
のを使用してある。以下単に「コンピユータ」と
称する。 In Figure 1 showing the overall configuration of the electrical control system,
Reference numeral 100 denotes a microcomputer used as a digital computer, which performs a calculation process for calculating numerical data that defines the energization start timing and energization cutoff timing of the ignition coil in engine ignition based on various engine control parameters, and the above-mentioned in this ignition control device. Input process of inputting various parameters,
a conversion process for converting the numerical data and time data required for the count value of a predetermined clock signal to reach the numerical data; and a synchronization process for synchronizing the start of conversion in this conversion process with the crank rotation angle of the engine. It has the role of integrally controlling the following based on the control program of the memory 120.
The microcomputer 100 is generally referred to as a processor or CPU, and the microcomputer used in this embodiment is an RCA CDP1802CD.
The accompanying peripheral devices are also commercially available from this series. Hereinafter, it will be simply referred to as a "computer".
110は8ビツトの双方向データバスで、コン
ピユータ100から周辺装置の動作を指令する信
号および前記数値データをなす2進信号を出力す
るとともに、後述するメモリ120からは命令お
よび各種データを、計数回路150からは時刻デ
ータを入力する線路の役割を有する。130はア
ドレスバスでメモリ120の読出番地を指定する
アドレスデータをメモリ120に送る。前記メモ
リ120は、コンピユータ100における各種処
理の命令を実行順に設定した制御プログラムおよ
び演算に使用する定数等のデータを記憶した読み
出し専用メモリ(ROM)、演算途中のデータを記
憶したり読み出したりする読み出し書き込可能メ
モリ(RAM)、およびアドレスバス130から送
られてくる8ビツトのアドレスを直列化して、16
ビツトのアドレスとしてROMまたはRAMに与え
るアドレスラツチを内蔵している。コンピユータ
100からメモリ120に送られる信号TPA,
TPB,,はアドレスラツチ、ROMお
よびRAMからの命令およびデータの読み出し、
RAMへのデータの書き込みを制御する信号を示
す。なお、コンピユータ100における入出力端
子の機能とその取扱いについてはRCA社発行の
取り扱い説明書に記載されているので、ここでは
特に詳しく説明しない。 Reference numeral 110 denotes an 8-bit bidirectional data bus, through which the computer 100 outputs signals instructing the operation of peripheral devices and binary signals forming the numerical data, and also outputs commands and various data from a memory 120, which will be described later, to a counting circuit. The line from 150 has the role of a line for inputting time data. 130 sends address data specifying a read address of the memory 120 to the memory 120 through an address bus. The memory 120 includes a read-only memory (ROM) that stores control programs that set instructions for various processes in the computer 100 in the order of execution, constants and other data used in calculations, and a read-only memory (ROM) that stores and reads data during calculations. The 8-bit addresses sent from the writable memory (RAM) and the address bus 130 are serialized to 16
It has a built-in address latch that provides a bit address to ROM or RAM. A signal TPA sent from the computer 100 to the memory 120,
TPB, , is the address latch, reading instructions and data from ROM and RAM,
Shows the signals that control writing data to RAM. Note that the functions of the input/output terminals of the computer 100 and their handling are described in the instruction manual published by RCA, so they will not be explained in detail here.
140はラツチ機能を持たないI/Oデコーダ
で、例えばRCA社製CDP1853を使用でき、コン
ピユータ100のピンN1,N2,N3から送ら
れてくる並列2進化信号を解読して短かいパルス
状の択一信号141〜148(この明細書では導
電的な接続と信号とを同一符号で説明する)を発
生しコンピユータ100の周辺装置に作動信号を
与える。前記計数回路150はコンピユータ10
0の外部クロツク出力端子CLOCKから送られて
くる4μsのクロツクパルスを16ビツトにて分周
し計数して時々刻々と変化する時刻データをタイ
マバス151に出力する。152はスイツチ回路
で、I/Oデコーダからの択一信号141,14
8もしくは後述するパルス発生回路160から
DMA進行信号161が印加されたときタイマバ
ス151上の時刻データをデータバス110に送
出する。ここで択一信号141またはDMA進行
信号161が印加されたときはタイマバス151
上の下位8ビツトの時刻データがデータバスに送
出され択一信号148が印加されたときは上位8
ビツトが送出される。前記パルス発生回路160
はコンピユータ100の出力端子SC1,SC2の
信号に従つてDMA進行信号161および割込処
理の受付を示す認知信号162をパルスとして出
力する。 140 is an I/O decoder without a latch function, which can use, for example, CDP1853 manufactured by RCA, and decodes the parallel binary coded signals sent from pins N1, N2, and N3 of the computer 100 and converts them into short pulse-like selections. 141-148 (conductive connections and signals are referred to herein with the same reference numerals) to provide activation signals to peripheral devices of computer 100. The counting circuit 150 is connected to the computer 10
The clock pulse of 4 μs sent from the external clock output terminal CLOCK 0 is divided into 16 bits, counted, and outputted to the timer bus 151 as time data that changes moment by moment. 152 is a switch circuit that receives selection signals 141 and 14 from the I/O decoder.
8 or from the pulse generation circuit 160 described later.
When the DMA progress signal 161 is applied, the time data on the timer bus 151 is sent to the data bus 110. When the selection signal 141 or the DMA progress signal 161 is applied here, the timer bus 151
When the time data of the upper lower 8 bits is sent to the data bus and the selection signal 148 is applied, the upper 8 bits of time data are sent to the data bus.
A bit is sent out. The pulse generation circuit 160
outputs a DMA progress signal 161 and a recognition signal 162 indicating acceptance of interrupt processing as pulses in accordance with signals from output terminals SC1 and SC2 of the computer 100.
アナログ信号として検出されるエンジン制御パ
ラメータをコンピユータ100に入力するための
入力周辺装置として、ラツチ回路200、アナロ
グマルチプレクサ(MPX)210、アナログ―
デジタル変換回路(A/D変換回路)220が用
いてある。MPX210には点火時期(点火コイ
ルの通電遮断時期)ひいては通電開始時期を規定
するのに参考となる各種のアナログ信号210a
〜210n(エンジンの負荷状態を示す吸入空気
量、エンジンの冷却水温度等の信号を利用するこ
とおよびその検出装置は公知である)が入力さ
れ、ラツチ回路200の出力信号によつてそのう
ちの1つを選択的に通過させる。ラツチ回路20
0はI/Oデコーダ140からの択一信号142
に同期してデータバス110上に表われた選択デ
ータをラツチすることによりコンピユータ100
が入力しようとするアナログ信号のみMPX21
0に対して指定する。MPX210を通過した1
つのアナログ信号21はA/D変換回路220に
てデジタルデータとしてメモリ120のRAMの
所定番地に書き込まれる。 A latch circuit 200, an analog multiplexer (MPX) 210, and an analog multiplexer (MPX) 210 are used as input peripheral devices for inputting engine control parameters detected as analog signals to the computer 100.
A digital conversion circuit (A/D conversion circuit) 220 is used. The MPX210 includes various analog signals 210a that serve as a reference for specifying the ignition timing (the timing of cutting off the energization of the ignition coil) and the timing of starting the energization.
~210n (using signals such as intake air amount, engine cooling water temperature, etc. indicating the engine load condition and detection devices thereof are known), and one of them is determined by the output signal of the latch circuit 200. selectively pass one. Latch circuit 20
0 is the selection signal 142 from the I/O decoder 140
computer 100 by latching selected data appearing on data bus 110 in synchronization with
Only the analog signal to be input is MPX21
Specify for 0. 1 passed MPX210
The two analog signals 21 are written in a predetermined location of the RAM of the memory 120 as digital data by the A/D conversion circuit 220.
すなわち1つのアナログ信号211が選択され
たあと、A/D変換回路220はコンピユータ1
10の指令によりI/Oデコーダ140から択一
信号143を受けて一次積分形のA/D変換を開
始する。なお択一信号143が発せられる直前に
スイツチ回路152に択一信号141が与えられ
てA/D変換の開始時点の時刻データ(下位8ビ
ツト)がメモリ120のRAMの所定番地に書き
込まれている。そしてA/D変換の終了によつて
生じる終了信号221がコンピユータ100に
DMA要求信号として入力され、コンピユータ1
00がこれを認知すると、DMA進行信号161
が出力されてスイツチ回路152を開き、その結
果A/D変換終了時の時刻データ(下位8ビツ
ト)がマイクロコンピユータ100の内蔵する
DMA機能によつてタイマバス151からデータ
バス110を介してメモリ120のRAMに直接
書き込まれる。従つて、アナログ信号211の
A/D変換されたデジタルデータはRAMに書き
込まれたA/D変換の開始時の時刻データと終了
時の時刻データとの差を算定することにより表わ
される。 That is, after one analog signal 211 is selected, the A/D conversion circuit 220
In response to the command 10, the selection signal 143 is received from the I/O decoder 140, and linear integral type A/D conversion is started. Note that immediately before the selection signal 143 is issued, the selection signal 141 is applied to the switch circuit 152, and the time data (lower 8 bits) at the start of A/D conversion is written to a predetermined location in the RAM of the memory 120. . Then, a termination signal 221 generated by the termination of the A/D conversion is sent to the computer 100.
It is input as a DMA request signal and sent to computer 1.
When 00 recognizes this, the DMA progress signal 161
is output and opens the switch circuit 152, and as a result, the time data (lower 8 bits) at the end of A/D conversion is stored in the microcomputer 100.
The data is written directly from the timer bus 151 to the RAM of the memory 120 via the data bus 110 by the DMA function. Therefore, the A/D converted digital data of the analog signal 211 is expressed by calculating the difference between the time data at the start and end of the A/D conversion written in the RAM.
一次積分形のA/D変換回路220は一定周波
数のクロツクパルスを計数する計数器と、この計
数器の出力をD/A変換する回路と、このD/A
変換された電圧信号をアナログ信号211と比較
する比較器とで構成することもできるが、第2図
に示す回路を用いることもできる。 The first-order integral type A/D conversion circuit 220 includes a counter that counts clock pulses of a constant frequency, a circuit that converts the output of this counter into a D/A, and a circuit that converts the output of this counter into a D/A.
Although it may be constructed with a comparator that compares the converted voltage signal with the analog signal 211, the circuit shown in FIG. 2 may also be used.
第2図において、アナログ入力信号211は抵
抗212を介して比較器213の非反転入力端子
に接続され、この比較器213は抵抗214によ
りヒステリシスを与えられる。5Vは基準電圧に
対し抵抗215、コンデンサ216は直列に接続
された充電回路が構成され、コンデンサ216と
抵抗215との接続点は比較器213の反転入力
端子に接続される。スイツチ手段をなすアナログ
スイツチ217はコンデンサ216と並列に接続
され、フリツプフロツプ218の端子より出力
される1ビツトのA/D変換指令信号により開閉
され、コンデンサ216を充放電する。219は
A/D変換の停止指令信号をフリツプフロツプ2
18に与えるオア回路である。次にこの構成にな
るA/D変換回路の作動について第3図を用いて
説明する。入力アナログ信号211の電圧VIと
電源電圧VCC(+5V)との間にはVCC>VI>0
という関係を成立させている。初期化時、フリツ
プフロツプ218はリセツトされアナログスイツ
チ217は閉成されていてコンデンサ216は放
電されている。このとき比較器213の非反転入
力端子にあるレベルのアナログ入力信号211が
印加されていると、比較器213の出力端子は
“1”レベルである。 In FIG. 2, analog input signal 211 is connected via resistor 212 to the non-inverting input terminal of comparator 213, which is provided with hysteresis by resistor 214. A charging circuit is constructed in which a resistor 215 and a capacitor 216 are connected in series with respect to the reference voltage of 5V, and the connection point between the capacitor 216 and the resistor 215 is connected to the inverting input terminal of the comparator 213. An analog switch 217 serving as a switching means is connected in parallel with the capacitor 216, and is opened and closed by a 1-bit A/D conversion command signal output from a terminal of a flip-flop 218, thereby charging and discharging the capacitor 216. 219 sends the A/D conversion stop command signal to flip-flop 2.
This is an OR circuit given to 18. Next, the operation of the A/D conversion circuit having this configuration will be explained using FIG. 3. The relationship between the voltage V I of the input analog signal 211 and the power supply voltage V CC (+5V) is V CC >V I >0.
This relationship has been established. During initialization, flip-flop 218 is reset, analog switch 217 is closed, and capacitor 216 is discharged. At this time, if the analog input signal 211 of a certain level is applied to the non-inverting input terminal of the comparator 213, the output terminal of the comparator 213 is at the "1" level.
いまコンピユータ100がその制御プログラム
に従つて択一信号141をI/Oデコーダから出
力して時刻データを書き込んだあと、t1時点で第
3図bに示すA/D変換の開始を指令する択一信
号143を出力すると、フリツプフロツプ218
はセツトされ第3図cに示す端子の出力は
“0”レベルになつてアナログスイツチ217を
開放する。これにより、第3図aの実線に示すコ
ンデンサ216の端子電圧は指数関数的に上昇す
る。時点t2になるとこの反転入力端子の電位は入
力アナログ信号211の電圧V1が導かれ非反転
入力端子の電位(第3図a水平破線)よりも大き
くなり、出力端子は“0”レベルになり第3図d
に示すDMA要求信号221がコンピユータ10
0に入力される。コンピユータ100がこれを入
力すると第3図eに示すDMA進行信号161を
発生してフリツプフロツプ218をリセツトさ
せ、アナログスイツチ217を閉成する。 Now, after the computer 100 outputs the selection signal 141 from the I/O decoder according to the control program and writes time data, the computer 100 outputs the selection signal 141 from the I/O decoder and writes the time data, and then at time t1 , it issues a selection signal 141 to command the start of A/D conversion as shown in FIG. 3b. When one signal 143 is output, the flip-flop 218
is set, and the output of the terminal shown in FIG. 3c goes to the "0" level, opening the analog switch 217. As a result, the terminal voltage of the capacitor 216 shown by the solid line in FIG. 3a increases exponentially. At time t2 , the voltage V1 of the input analog signal 211 is introduced into the potential of this inverting input terminal, which becomes higher than the potential of the non-inverting input terminal (horizontal broken line in Figure 3a), and the output terminal goes to the "0" level. Figure 3 d
The DMA request signal 221 shown in
It is input to 0. When computer 100 receives this input, it generates DMA progress signal 161 shown in FIG. 3e to reset flip-flop 218 and close analog switch 217.
なお、第2図および第3図に示したA/D変換
回路では非線形の一次積分を行なうため、デジタ
ル変換された値をメモリのROMに予め設定して
正規化データと置き換えることにより、入力アナ
ログ信号211に正しい比例関係をもつたデジタ
ルデータを得ることができる。 Note that since the A/D conversion circuits shown in Figs. 2 and 3 perform nonlinear linear integration, the input analog Digital data having a correct proportional relationship to the signal 211 can be obtained.
次に装置の電源部とコンピユータ100の初期
化(イニシヤライズ)について説明する。170
は公知の安定化電源回路で、車載バツテリ電源1
からイグニツシヨンキースイツチ2を介して供給
される通常+12Vの電圧を+5Vを安定電圧に変換
する。この安定電圧は第1図中の特に指示のない
すべての論理ブロツクに供給され、それぞれの作
動に用いられる。 Next, initialization of the power supply section of the apparatus and the computer 100 will be explained. 170
is a well-known stabilized power supply circuit, and the on-board battery power supply 1
Converts the normally +12V voltage supplied from the ignition key switch 2 to +5V into a stable voltage. This stable voltage is supplied to all logic blocks not otherwise specified in FIG. 1 and used for their respective operations.
180は電圧検出回路で、バツテリ1の電圧が
予め定めた値より低くなると検出信号181を発
生する。190は初期化回路で、装置特にコンピ
ユータ100の誤動作を防止するために、コンピ
ユータ100に初期化(制御プログラムを始めか
ら再スタートする)の指令信号を与える。初期化
はバツテリ電圧を表わす検出信号181が低レベ
ルのとき、および直流再生回路191においてコ
ンピユータ100の動作異常が検出されたときの
いずれかによつてなされる。 A voltage detection circuit 180 generates a detection signal 181 when the voltage of the battery 1 becomes lower than a predetermined value. 190 is an initialization circuit which provides a command signal for initialization (restarting the control program from the beginning) to the computer 100 in order to prevent the device, particularly the computer 100, from malfunctioning. Initialization is performed either when the detection signal 181 representing the battery voltage is at a low level or when an abnormal operation of the computer 100 is detected in the DC regeneration circuit 191.
第4図は電圧検出回路180の詳細を示すもの
で、a枠で示す時定数回路とb枠で示す比較回路
からなる。第5図は第4図に示す電圧検出回路の
作動タイムチヤートである。時定数回路aはキー
スイツチ2の閉成により電圧信号2aを印加さ
れ、電圧信号2aの立ち上がり時(例えば第5図
t1時点)にはコンデンサ182と抵抗183で決
まる時定数で立ち上がり、電圧信号2aの立ち下
がり時(例えば第5図t3時点)にはダイオード1
84を通してコンデンサ182の充電電荷が放出
されるため急峻に立ち下がる電圧信号185を生
じる。この電圧信号185は時定数回路a中の符
号の示していない抵抗によつて分圧され、この分
圧電圧186は比較回路bにおいて基準電圧18
7(例えば4V)と比較される。比較回路bでは
この比較を正帰還結合された2個のトランジスタ
からなるスイツチング回路によつて行ない、電圧
信号2aの立ち上がりにより、t2時点で分圧電圧
186が基準電圧187を越えるとスイツチング
出力188は電圧信号2aとほぼ等しい電位にな
り、またエンジン起動用のスタータモータの回転
等の負荷時には、t3−t4に示すように分圧電圧1
86が基準電圧187より低下するとスイツチン
グ出力188は接地と等しい電位になる。前記時
定数回路aの役割は電圧信号2aにインパルス性
のノイズが重量された場合充分な時間幅の初期化
信号がコンピユータ100に与えられるようにす
ることである。抵抗189はバツテリ電圧レベル
のスイツチング出力188を論理レベル(5V程
度)に変換するためのものである。 FIG. 4 shows details of the voltage detection circuit 180, which consists of a time constant circuit shown in frame a and a comparison circuit shown in frame b. FIG. 5 is an operation time chart of the voltage detection circuit shown in FIG. 4. A voltage signal 2a is applied to the time constant circuit a when the key switch 2 is closed, and when the voltage signal 2a rises (for example, as shown in FIG.
When the voltage signal 2a falls (for example, at the time t3 in Fig. 5 ), the diode 1 rises with a time constant determined by the capacitor 182 and the resistor 183.
The charge stored in the capacitor 182 is discharged through the capacitor 84, resulting in a voltage signal 185 that falls sharply. This voltage signal 185 is divided by a resistor (not shown) in the time constant circuit a, and this divided voltage 186 is applied to the reference voltage 18 in the comparator circuit b.
7 (e.g. 4V). Comparison circuit b performs this comparison using a switching circuit consisting of two transistors coupled with positive feedback, and when the divided voltage 186 exceeds the reference voltage 187 at time t 2 due to the rise of the voltage signal 2a, the switching output 188 is output. becomes almost the same potential as the voltage signal 2a, and during loads such as rotation of the starter motor for starting the engine, the divided voltage 1 becomes as shown in t 3 - t 4 .
When 86 falls below reference voltage 187, switching output 188 is at a potential equal to ground. The role of the time constant circuit a is to provide an initialization signal with a sufficient time width to the computer 100 when impulse noise is added to the voltage signal 2a. The resistor 189 is for converting the switching output 188 at the battery voltage level to a logic level (about 5V).
初期化回路190は、電圧検出回路180の検
出信号181か直流再生回路191の再生出力信
号192のいずれか一方がスレツシヨルドレベル
以下になると、出力信号194を“1”レベルに
するシユミツトナンド回路193と、論理レベル
を反転して“0”レベルの初期化信号をコンピユ
ータ100に印加するインバータ195と、シユ
ミツトナンド回路193の出力信号194を直流
再生回路191に帰還する抵抗196と、第6図
に一例を示す直流再生回路191とから構成され
ている。 The initialization circuit 190 includes a Schmitt NAND circuit 193 that sets the output signal 194 to the "1" level when either the detection signal 181 of the voltage detection circuit 180 or the reproduction output signal 192 of the DC reproduction circuit 191 becomes below a threshold level. , an inverter 195 that inverts the logic level and applies an initialization signal of "0" level to the computer 100, and a resistor 196 that feeds back the output signal 194 of the Schmidt Nand circuit 193 to the DC regeneration circuit 191, an example of which is shown in FIG. A DC regeneration circuit 191 shown in FIG.
第6図において、説明を簡単にするため、コン
デンサ191aとコンデンサ191bの値を同一
の容量C0とし、直流再生回路191に供給され
るくり返しパルス信号422の“1”レベルを
Vhボルト(通常+5V)とし、この“1”レベル
の期間は、コンデンサの充電時定数よりも充分長
いとする。またはじめに帰還抵抗196を無視し
て説明する。最初コンデンサ191aとコンデン
サ191bに充電されている電荷は零である。今
第7図aに示すようにt1時点で信号422が一回
目の“1”レベルになつたとする。この時充電電
流はコンデンサ191aからダイオード191d
へ、そしてコンデンサ191bを通つてアースへ
ぬける。またダイオード191cはこの充電電流
に対して逆方向になるので、このダイオードを通
してアースへは電流は流れない。このコンデンサ
直流充電回路を流れて、各々のコンデンサへ蓄積
された電荷Q1を求める。ダイオード251の順
方向抵抗をRとすると、
Rdq/dt+1q/Co+1q/Co=Vで示され
る過渡方程式よ
り、Q1=CoV/2の解が得られる。したがつて、信
号192の電位は信号422の電位の1/2すなわち
Vh/2になる。 In FIG. 6, in order to simplify the explanation, the capacitors 191a and 191b are assumed to have the same capacitance C 0 , and the "1" level of the repeated pulse signal 422 supplied to the DC regeneration circuit 191 is
Vh volts (usually +5V), and the period of this "1" level is sufficiently longer than the charging time constant of the capacitor. Also, the explanation will be given first while ignoring the feedback resistor 196. Initially, the charges charged in capacitor 191a and capacitor 191b are zero. Assume that the signal 422 reaches the "1" level for the first time at time t1, as shown in FIG. 7a . At this time, the charging current flows from the capacitor 191a to the diode 191d.
to ground through capacitor 191b. Further, since the diode 191c has a direction opposite to this charging current, no current flows to the ground through this diode. Find the charge Q 1 that flows through this capacitor DC charging circuit and accumulates in each capacitor. Assuming that the forward resistance of the diode 251 is R, a solution of Q 1 =CoV/2 is obtained from the transient equation expressed as Rdq/dt+1q/Co+1q/Co=V. Therefore, the potential of the signal 192 becomes 1/2 of the potential of the signal 422, that is, Vh/2.
次にt2時点で信号422が“0”レベルになる
と、コンデンサ191aに充電されていたQ1=
CoVh/2電荷は、ダイオード191cを通して短絡
され消滅する。しかし、コンデンサ191bに蓄
積されている電荷はダイオード191dによつて
流出を阻止されている。この結果、端子191e
の電位は零ボルト、信号192の電位はVh/2ボル
トになる。こうして1回目のサイクルを終える。 Next, when the signal 422 becomes "0" level at time t 2 , Q 1 =
The CoVh/2 charge is short-circuited through the diode 191c and disappears. However, the charge accumulated in the capacitor 191b is prevented from flowing out by the diode 191d. As a result, terminal 191e
The potential of signal 192 is zero volts, and the potential of signal 192 is Vh/2 volts. This completes the first cycle.
次に2回目に信号422が“1”レベルになる
と、同様にコンデンサ直列充電回路を通して電荷
Q2が流れようとする。しかし、1回目と違う点
はコンデンサ191bにQ1=CoVh/2の電荷がすで
に存在する点である。したがつて、今度はRdq/dt
+1/Coq+1/Co(q+Q1)=Vで示される過渡
方程
式よりこの回路を流れた電荷Q2を求めなければ
ならない。よつて、Q2=CoVh−Q1/2=CoVh
/2−
CoVh/4が得られる。すなわちコンデンサ191a
には、CoVh/2−CoVh/4の電荷が蓄積され、
コンデン
サ191bにはCoVh/2+CoVh/4の電荷が蓄
積され
る。その結果、信号192は(V/2+V/4)ボルト
に
なる。引き続きくり返しパルス信号422のレベ
ル反転によつて上記の過程がくりかえされ、信号
192は(V/2+V/4+V/8+……)となり、つ
いにV
ボルトに達する。 Next, when the signal 422 becomes "1" level for the second time, a charge is similarly passed through the capacitor series charging circuit.
Q 2 is about to flow. However, the difference from the first time is that a charge of Q 1 =CoVh/2 already exists in the capacitor 191b. Therefore, it is now necessary to find the charge Q 2 flowing through this circuit from the transient equation expressed as Rdq/dt +1/Coq+1/Co (q+Q 1 )=V. Therefore, Q 2 = CoVh - Q 1 /2 = CoVh
/2- CoVh/4 is obtained. In other words, the capacitor 191a accumulates a charge of CoVh/2-CoVh/4,
A charge of CoVh/2+CoVh/4 is accumulated in the capacitor 191b. As a result, signal 192 will be (V/2+V/4) volts. Subsequently, the above process is repeated by repeatedly inverting the level of the pulse signal 422, and the signal 192 becomes (V/2+V/4+V/8+...) and finally reaches V volts.
ところが実際には直流再生回路191の出力端
とシユミツトナンド回路193の出力端との間に
は帰還抵抗196が接続されており、シユミツト
ナンド回路193の出力信号194のレベルによ
つて帰還抵抗196が充電用、放電用として使用
される。説明上シユミツトナンド回路193を第
6図のようにスイツチ193aとして表わす。バ
ツテリ電圧が異常低下し検出信号181が“0”
レベルであるとすると、シユミツトナンド回路1
93の出力信号194は“1”レベル(コンピユ
ータ100は初期化される)となつてコンデンサ
191bは帰還抵抗196を介して充電される。 However, in reality, a feedback resistor 196 is connected between the output terminal of the DC regeneration circuit 191 and the output terminal of the Schmitt-Nand circuit 193, and depending on the level of the output signal 194 of the Schmitt-Nand circuit 193, the feedback resistor 196 is connected for charging. , used for discharge. For the sake of explanation, the Schmidt NAND circuit 193 is represented as a switch 193a as shown in FIG. Battery voltage drops abnormally and detection signal 181 becomes “0”
level, then Schmitt Nand circuit 1
The output signal 194 of 93 becomes "1" level (the computer 100 is initialized), and the capacitor 191b is charged via the feedback resistor 196.
バツテリ電圧が+5Vの安定化電圧を得るに充
分な通常のレベルにあり、検出信号181が
“1”レベルにあると、コンデンサ191bの電
荷は帰還抵抗196を介して徐々に放電される。
従つてもし直流再生回路191にくり返しパルス
信号422が印加されなくなるとコンデンサ19
1bの電荷はやがて放電される。よつてくり返し
パルス信号422をコンピユータ100の制御プ
ログラムの正常な進行によつて発生するように構
成することにより、制御プログラムの暴走により
くり返しパルス信号422が消滅(“0”レベル
に保持)し、コンデンサ191bの電荷すなわち
信号192の電圧レベルがシユミツトナンド回路
193のスレツシヨルドレベル以下になると、信
号194は初期化のための“1”レベルとなる。 When the battery voltage is at a normal level sufficient to obtain a stabilized voltage of +5V and the detection signal 181 is at the "1" level, the charge in the capacitor 191b is gradually discharged via the feedback resistor 196.
Therefore, if the repeated pulse signal 422 is no longer applied to the DC regeneration circuit 191, the capacitor 19
The charge on 1b will eventually be discharged. By configuring the repetitive pulse signal 422 to be generated by the normal progress of the control program of the computer 100, the repetitive pulse signal 422 disappears (maintains at "0" level) due to runaway of the control program, and the capacitor When the charge on 191b, that is, the voltage level of signal 192, becomes lower than the threshold level of Schmitt NAND circuit 193, signal 194 becomes "1" level for initialization.
信号194が“1”レベルになると、コンデン
サ191bは逆に抵抗196によつて充電され、
信号192の電圧レベルがシユミツトナンド回路
193のスレツシヨルドレベル以上になると信号
194は“0”レベルとなり初期化を終了する。
初期化によつてコンピユータ100は制御プログ
ラムを初期状態に戻して再スタートする。この動
作は第8図のタイムチヤートのt3時点以後に示さ
れている。 When the signal 194 becomes "1" level, the capacitor 191b is charged by the resistor 196,
When the voltage level of the signal 192 becomes equal to or higher than the threshold level of the Schmitt NAND circuit 193, the signal 194 becomes the "0" level and the initialization is completed.
By initialization, the computer 100 returns the control program to its initial state and restarts it. This operation is shown after time t3 in the time chart of FIG.
第8図はキースイツチ2を閉成したがコンピユ
ータ100もしくは関連回路の障害のために、く
り返しパルス信号422が直流再生回路191に
印加されない場合の初期化回路190の作動を示
している。第8図のt1時点でキースイツチ2を閉
成すると、安定化電源回路170より第8図aに
示す+5Vの安定化電圧が装置の論理ブロツクに
印加される。バツテリ電圧2aが定めた基準電圧
より高ければ電圧検出回路180はt1時点より若
干遅れてt2時点にて検出信号181を“1”レベ
ル(もちろんシユミツトナンド回路193のスレ
ツシヨルドレベルより高い)にする。t2時点では
直流再生回路191の再生出力は“0”レベルで
あり、従つてシユミツトナンド回路193の出力
194は第8図dのt1〜t3間において“1”レベ
ルである。このため、直流再生回路191のコン
デンサ191bはくり返しパルス信号422が印
加されないのに係わらず帰還抵抗196を介して
充電されていく。充電により直流再生回路191
の再生出力(電圧)192は徐々に上昇してい
き、t3時点で第8図Cに示すシユミツトナンド回
路193のスレツシヨルドレベルに達すると、シ
ユミツトナンド回路193の出力194は“0”
レベルに反転する。よつてコンデンサ191bは
t4時点で第3図dに示すシユミツトナンド回路1
93のスレツシヨルドレベルに達するまで徐々に
放電する。このようにして直流再生回路191の
コンデンサ191bは、くり返しパルス信号42
2が発生しない限り、帰還抵抗196およびシユ
ミツトナンド回路193とで発振作用をなし、t1
〜t3間、t4〜t5間、t6〜t7間……とくり返してコン
ピユータ100の初期化信号を発生する。 FIG. 8 illustrates the operation of initialization circuit 190 when key switch 2 is closed but repeat pulse signal 422 is not applied to DC regeneration circuit 191 due to a failure in computer 100 or related circuitry. When the key switch 2 is closed at time t1 in FIG. 8, a stabilized voltage of +5 V shown in FIG. 8a is applied from the stabilized power supply circuit 170 to the logic block of the device. If the battery voltage 2a is higher than the predetermined reference voltage, the voltage detection circuit 180 sets the detection signal 181 to the "1" level (of course higher than the threshold level of the Schmidt Nand circuit 193) at time t2 , slightly later than time t1. do. At time t2 , the reproduction output of the DC reproduction circuit 191 is at the "0" level, and therefore the output 194 of the Schmidt NAND circuit 193 is at the "1" level between t1 and t3 in FIG. 8d. Therefore, the capacitor 191b of the DC regeneration circuit 191 is charged via the feedback resistor 196 even though the repeated pulse signal 422 is not applied. DC regeneration circuit 191 by charging
The reproduction output (voltage) 192 gradually rises, and when it reaches the threshold level of the Schmitt NAND circuit 193 shown in FIG. 8C at time t3 , the output 194 of the Schmitt NAND circuit 193 becomes "0"
Flip to level. Therefore, the capacitor 191b is
At time t 4 , Schmitt Nand circuit 1 shown in Figure 3d
The voltage is gradually discharged until the threshold level of 93 is reached. In this way, the capacitor 191b of the DC regeneration circuit 191 receives the repeated pulse signal 42.
Unless t 2 occurs, the feedback resistor 196 and the Schmitt-Nand circuit 193 perform an oscillating action, and t 1
The initialization signal for the computer 100 is repeatedly generated between t3 and t3 , between t4 and t5 , between t6 and t7, and so on.
なお、初期化回路190においては1個の帰還
抵抗196によつて、直流再生回路191のコン
デンサ191bの充放電の時定数を一定としてい
るが、2個の抵抗を用いて個別に充電と放電の時
定数を決めてもよい。例えば、抵抗値の小さい抵
抗を、シユミツトナンド回路193の出力端子か
らコンデンサ191bに向かつて充電電流のみを
流すダイオードと直列にして抵抗196の位置に
接続し、さらにこの直列回路と並列に抵抗値の大
きい抵抗を、コンデンサ191bからシユミツト
ナンド回路193の出力端子に向かつて放電電流
のみを流すダイオードと直列にして接続すればよ
い。これにより、イグニツシヨンキースイツチ2
の投入後電圧検出回路180の検出信号181が
立ち上がつたとき、速やかにコンデンサ191b
を充電することができ、コンピユータ100を速
やかに動作状態にすることができる。 In the initialization circuit 190, the time constant for charging and discharging the capacitor 191b of the DC regeneration circuit 191 is kept constant by one feedback resistor 196, but the time constant for charging and discharging the capacitor 191b of the DC regeneration circuit 191 is kept constant using two resistors. A time constant may be determined. For example, a resistor with a small resistance value is connected in series with a diode that allows only charging current to flow from the output terminal of the Schmidt Nand circuit 193 toward the capacitor 191b, and connected to the position of the resistor 196, and then connected in parallel with this series circuit with a resistor with a large resistance value. The resistor may be connected in series with a diode that allows only the discharge current to flow from the capacitor 191b toward the output terminal of the Schmitt-Nand circuit 193. This will cause the ignition key switch 2 to
When the detection signal 181 of the voltage detection circuit 180 rises after turning on the capacitor 191b, the capacitor 191b is immediately turned on.
can be charged, and the computer 100 can be quickly put into operation.
次にコンピユータ100における点火演算の制
御パラメータの1つとしてのエンジン回転速度を
入力し、また演算結果の数値データを点火制御タ
イミングに変換させるために同期をとるための周
辺装置について説明する。300はクランク回転
角すなわちエンジンの回転角度を検出する公知の
角度検出器でエンジンのクランクシヤフトと同期
して回転するように機械的に連結された歯車と、
この回転歯車に対して相対的に固定された電磁ピ
ツクアツプの出力信号を矩形波パルスに波形整形
する波形整形回路とから構成されるものである。
角度検出器300はこれら回転歯車、電磁ピツク
アツプ、波形整形回路からなる検出器を2組有
し、1つはエンジン回転角度の基準位置例えば上
死点付近のときに基準パルス301を発生し、も
う1つはエンジン回転角度の所定間隔毎に角度パ
ルス302を発生するものである。角度検出器3
00の構造および電気回路は周知であるため詳細
説明は省略する。もちろん電磁ピツクアツプを用
いない他の形式の角度検出器を用いることもでき
る。 Next, a description will be given of peripheral devices for inputting the engine rotation speed as one of the control parameters for ignition calculation in the computer 100 and synchronizing the numerical data of the calculation result to convert it into ignition control timing. 300 is a known angle detector for detecting the crank rotation angle, that is, the rotation angle of the engine, and a gear mechanically connected to rotate in synchronization with the engine crankshaft;
It is comprised of a waveform shaping circuit that shapes the output signal of an electromagnetic pickup, which is fixed relative to the rotating gear, into rectangular wave pulses.
The angle detector 300 has two sets of detectors each consisting of a rotating gear, an electromagnetic pickup, and a waveform shaping circuit. One generates a reference pulse 301 at a reference position of the engine rotation angle, for example, near top dead center, and the other One is to generate an angle pulse 302 at every predetermined interval of the engine rotation angle. Angle detector 3
Since the structure and electric circuit of 00 are well known, detailed explanation will be omitted. Of course, other types of angle detectors that do not use electromagnetic pickups can also be used.
本装置の利点は、この角度検出器として角度パ
ルスを油出するエンジン回転角度の角度間隔が、
1゜とか2゜の角度計数タイプ用でも、あるいは
30゜とか60゜の時間計数タイプ用でも、いずれを
用いてもエンジンにおけるエネルギ変換過程のタ
イミングを予定のエンジン回転角度に正確に一致
させることができるハードウエアの統合化であ
る。ただし、この制御装置に角度計数タイプ用と
時間計数タイプ用のいずれかの角度検出器が接続
されているかを外的に指示させることが必要であ
る。もちろん、角度検出器300から送られてく
る基準パルス301の1サイクル中に角度パルス
302が何個生じたかを判別して自動的に指示す
るような電気的装置を付設することも可能ではあ
ろうが、それのみの装置を設けることは不経済で
ありあまり望ましくない。また角度計数タイプ
(モード)と時間計数タイプ(モード)とでは制
御プログラムが異なるが、これは角度検出器30
0のタイプを変えるときに制御プログラムを内蔵
したメモリ120中のROMのみ交換すればよ
い。このROMを上記の電気的装置によつて自動
的に切換えるような構成も実現可能ではあろう
が、2つもの制御プログラムを装置に組込むこと
および切換装置を付設することは不経済でありあ
まり望ましくない。従つてこの実施例では制御装
置が角度計数タイプを構成している(角度計数モ
ード)か時間計数タイプを構成している(時間計
数モード)かによつて制御プログラムをROMご
と交換するものとする。 The advantage of this device is that the angle interval of the engine rotation angle that outputs the angle pulse as this angle detector is
For angle counting type of 1° or 2°, or
Whether it is a 30° or 60° time counting type, it is an integration of hardware that allows the timing of the energy conversion process in the engine to precisely match the planned engine rotation angle. However, it is necessary to externally indicate to this control device whether an angle detector of the angle counting type or the time counting type is connected. Of course, it would also be possible to attach an electrical device that determines how many angle pulses 302 occur during one cycle of the reference pulse 301 sent from the angle detector 300 and automatically issues an instruction. However, it is uneconomical and not very desirable to provide such a device. Also, the control program is different between the angle counting type (mode) and the time counting type (mode), but this is based on the angle detector 30.
When changing the type of 0, only the ROM in the memory 120 containing the control program needs to be replaced. Although it would be possible to implement a configuration in which this ROM is automatically switched by the above-mentioned electrical device, it is uneconomical to incorporate two control programs into the device and to attach a switching device, so it is not desirable. do not have. Therefore, in this embodiment, the control program is replaced with the ROM depending on whether the control device is configured as an angle counting type (angle counting mode) or a time counting type (time counting mode). .
310はモード切換回路で、角度計数モードで
あるか時間計数モードであるかを外囲条件によつ
て指定するためのものである。320はラツチ回
路で、モード切換回路310によつて指定された
モード信号311をコンピユータ100の初期化
のタイミングでラツチしコンピユータ100の初
期化終了後モード信号を保持する。330は角度
信号処理回路で、角度検出器300からの基準パ
ルス301および角度パルス302を、ラツチ回
路320に保持されたモード信号321,322
に従つて処理しコンピユータ100に入力させ
る。 Reference numeral 310 denotes a mode switching circuit for specifying whether the mode is angle counting mode or time counting mode based on the surrounding conditions. A latch circuit 320 latches the mode signal 311 specified by the mode switching circuit 310 at the timing of initializing the computer 100, and holds the mode signal after the initialization of the computer 100 is completed. 330 is an angle signal processing circuit which converts the reference pulse 301 and angle pulse 302 from the angle detector 300 into mode signals 321 and 322 held in the latch circuit 320.
The information is processed and inputted to the computer 100 according to the following.
第9図はモード切換回路310およびラツチ回
路320の構成例を示すものである。320aは
単体のラツチ回路をなす集積回路で、この実施例
ではRCA社製CD4042BEである。ラツチ回路32
0aは、信号194がコンピユータ100の初期
化を示す“1”レベルのとき、非反転出力端子
Q1には入力端子D1の信号311のレベルと同一
レベルの出力信号321反転出力端子1には反
転レベルの出力信号322を生じる。また初期化
が解除されて信号194が“0”レベルになる
と、“0”レベルになる直前の入力信号311と
同一レベルおよび反転レベルの出力信号321,
322を生じる。モード切換回路310は端子3
13と+5Vの電源線もしくは接地線と選択的に
接続される抵抗312,314によつて構成され
る。この例では抵抗312もしくは314の選択
的な接続をもつてスイツチ要素となし、実線に示
す抵抗312が接続されると入力端子D1に
“1”レベル信号が加えられ、破線に示す抵抗3
14が接続されると“0”レベル信号が加えられ
る。ここで入力信号311が“0”レベル(抵抗
314を接続した状態)のとき角度計数モード、
入力信号311が“1”レベル(抵抗312を接
続した状態)のときを時間計数モードとする端子
313はコンピユータ100とその周辺装置との
接続を示し、例えばラツチ回路320、角度信号
処理回路330を含む周辺装置をLSI(大規模集
積回路)化した1個の回路素子とした場合のピン
をなすものである。従つてこの構成によればLSI
化した回路素子のピンをモード切換のために追加
する必要がない。このピン端子313は抵抗31
2もしくは抵抗314が設けられているために初
期化後(ラツチ状態)はコンピユータ100と周
辺装置との間で通常の論理レベルの信号の授受が
可能である。この実施例では角度信号処理回路3
30の出力信号333を端子313を介してコン
ピユータ100のフラグ入力端子EF4に入力す
ることができる。これに限らず、他の信号線に抵
抗を接続しその信号線をラツチ回路の制御入力の
伝送用に共用することができる。なお図示しない
が、端子313をモード切換用とコンピユータ、
周辺装置接続用とに兼用せずに、それぞれ独立し
て設けても実施は可能である。 FIG. 9 shows an example of the configuration of the mode switching circuit 310 and the latch circuit 320. 320a is an integrated circuit forming a single latch circuit, which in this embodiment is a CD4042BE made by RCA. Latch circuit 32
0a is a non-inverting output terminal when the signal 194 is at "1" level indicating initialization of the computer 100.
At Q1 , an output signal 322 having the same level as the signal 311 at the input terminal D1 is generated, and at the inverted output terminal 1 , an output signal 322 at an inverted level is generated. Further, when the initialization is canceled and the signal 194 goes to the "0" level, the output signal 321 is at the same level as the input signal 311 immediately before going to the "0" level, and the inverted level.
322 results. The mode switching circuit 310 is connected to terminal 3.
13 and resistors 312 and 314 selectively connected to the +5V power line or ground line. In this example, the resistor 312 or 314 is selectively connected as a switch element, and when the resistor 312 shown by the solid line is connected, a "1" level signal is applied to the input terminal D1 , and the resistor 3 shown by the broken line is connected.
When 14 is connected, a "0" level signal is applied. Here, when the input signal 311 is at "0" level (with the resistor 314 connected), the angle counting mode is activated.
The terminal 313, which sets the time counting mode when the input signal 311 is at the "1" level (with the resistor 312 connected), indicates the connection between the computer 100 and its peripheral devices, such as the latch circuit 320 and the angle signal processing circuit 330. It forms a pin when the peripheral devices it contains are integrated into a single LSI (Large Scale Integrated Circuit) circuit element. Therefore, according to this configuration, LS I
There is no need to add pins to the converted circuit elements for mode switching. This pin terminal 313 is connected to the resistor 31
Since the resistor 2 or resistor 314 is provided, signals at normal logic levels can be exchanged between the computer 100 and peripheral devices after initialization (latched state). In this embodiment, the angle signal processing circuit 3
The output signal 333 of 30 can be input to the flag input terminal EF4 of the computer 100 via the terminal 313. However, the present invention is not limited to this, and it is also possible to connect a resistor to another signal line and use that signal line for transmitting the control input of the latch circuit. Although not shown, the terminal 313 is used for mode switching and for the computer.
It is also possible to implement it by providing each of them independently without using them for connecting peripheral devices.
角度信号処理回路330の詳細を第10図に示
す。角度信号処理回路330は角度計数モードと
時間計数モードとに兼用される部分とモード毎に
専門に使用される部分とモード切替信号によつて
選択される部分とからなる。角度検出器300か
ら入力される基準パルス301および角度パルス
302は、それぞれシユミツトナンド回路36と
インバータ337、およびシユミツトナンド回路
338、インバータ339によつて、論理レベル
(+5V)の基準信号341、および角度信号34
2,343に変換して入力される。エンジン制御
装置が角度計数モードで作動するときには、分周
回路340によつて所定のエンジン回転角度(ク
ランク回転角)毎に割込用分周パルス344が出
力される。 Details of the angle signal processing circuit 330 are shown in FIG. The angle signal processing circuit 330 consists of a part used for both the angle counting mode and the time counting mode, a part used exclusively for each mode, and a part selected by the mode switching signal. A reference pulse 301 and an angle pulse 302 inputted from the angle detector 300 are converted into a reference signal 341 at a logic level (+5V) and an angle signal 34 by a Schmitt NAND circuit 36 and an inverter 337, and a Schmitt NAND circuit 338 and an inverter 339, respectively.
It is converted to 2,343 and input. When the engine control device operates in the angle counting mode, the frequency division circuit 340 outputs an interrupt frequency division pulse 344 at every predetermined engine rotation angle (crank rotation angle).
分周回路340は角度計数モードのときの割込
用処理回路をなし、角度信号342の入力制御用
ナンド回路345、デイケードカウンタ346、
347、インバータ348,349、フリツプフ
ロツプをなすナンド回路350,351、および
ノア回路352からなる。この分周回路340の
作動を第11図のタイミングチヤートを参照して
説明する。この実施例では角度計数モードのとき
の基準パルス301(基準信号341)および角
度パルス30(角度信号342)を第11図aお
よびcに示すように、それぞれ2゜間隔および
360゜間隔に定めている。また基準信号341の
“1”レベルのパルス値は60゜としてその立ち下
がりの近傍位置(例として立下がりから8゜回転
した位置)にある気筒の上死点が位置し、角度信
号342の“1”レベルのパルス幅は1゜とし、
かつ基準信号341の立ち上がりと角度信号の立
ち上がりとが同期するように角度検出器が開整さ
れているものとする。 The frequency dividing circuit 340 constitutes an interrupt processing circuit when in the angle counting mode, and includes a NAND circuit 345 for input control of the angle signal 342, a decade counter 346,
347, inverters 348 and 349, NAND circuits 350 and 351 forming flip-flops, and a NOR circuit 352. The operation of this frequency dividing circuit 340 will be explained with reference to the timing chart of FIG. In this embodiment, the reference pulse 301 (reference signal 341) and the angle pulse 30 (angle signal 342) in the angle counting mode are spaced at 2° intervals and
It is set at 360° intervals. Furthermore, the pulse value of the "1" level of the reference signal 341 is assumed to be 60 degrees, and the top dead center of the cylinder is located at a position near the trailing edge (for example, a position rotated 8 degrees from the trailing edge), and the "1" level pulse value of the angle signal 342 is The pulse width of the 1” level is 1°,
It is also assumed that the angle detector is adjusted so that the rise of the reference signal 341 and the rise of the angle signal are synchronized.
いま基準信号341が“1”レベルになると、
カウンタ346,347はリセツトされ、カウン
タ346のキヤリーアウト信号CO353は
“1”レベルおよびカウンタ347の第11図d
に示す第6出力信号354、第11図eに示す第
9出力信号355は“0”レベルである。第9出
力信号355が“0”レベルとなると、インバー
タ349による反転信号356は“1”レベルと
なり、従つて第11図bに示すナンド回路345
の出力信号357は角度信号342の論理反転出
力としてカウンタ346に入力される。しかしカ
ウンタ346には基準信号341により60゜の間
はリセツト状態にあるため計数作動はしない。エ
ンジンが60゜回転して基準信号341が“0”レ
ベルになると、カウンタ346,347は計数状
態になり、カウンタ346は角度信号342を10
個計数する毎に1個の、つまりエンジン回転角度
の20゜毎に1個のキヤリーアウト信号353を出
力し、カウンタ347はこのキヤリーアウト信号
の6個目を計数したときに“1”レベルとなる第
6出力信号354(第11図d)を発生し、9個
目を計数するときに“1”レベルに立ち上がる第
9出力信号355(第11図e)を発生する。従
つて第6出力信号354および第9出力信号35
5の論理反転信号によつてフリツプフロツプ35
0,351はセツト、リセツトされ、第11図C
に示す基準信号341の立ち上がりから180゜回
転したあと第11図fに示す60゜幅のパルス信号
357を生じる。また180゜回転すると第9出力
信号355の論理反転信号356が“0”レベル
になるため、ナンド回路345は第11図bに示
すように出力信号357を“1”レベルに固定す
る。よつて、これ以後は基準信号347が新たに
立ち上がるまで計数を中止した状態態にある。ノ
ア回路352は基準信号341とフリツプフロツ
プの出力信号357との否定論理和に従つて第1
1図gに示す180゜間隔で“0”レベルとなる割
込用分周パルス344を発生する。 Now, when the reference signal 341 reaches the “1” level,
The counters 346 and 347 are reset, and the carry-out signal CO353 of the counter 346 is set to "1" level and the counter 347 is set to the "1" level as shown in FIG.
The sixth output signal 354 shown in FIG. 11 and the ninth output signal 355 shown in FIG. 11e are at the "0" level. When the ninth output signal 355 becomes "0" level, the inverted signal 356 by the inverter 349 becomes "1" level, and therefore the NAND circuit 345 shown in FIG.
The output signal 357 is input to the counter 346 as a logical inversion output of the angle signal 342. However, since the counter 346 is in a reset state during 60 degrees due to the reference signal 341, no counting operation is performed. When the engine rotates 60 degrees and the reference signal 341 reaches the "0" level, the counters 346 and 347 enter the counting state, and the counter 346 converts the angle signal 342 into 10
The counter 347 outputs one carry-out signal 353 each time it counts, that is, one carry-out signal 353 for every 20 degrees of engine rotation angle, and the counter 347 reaches the "1" level when it counts the sixth carry-out signal. A sixth output signal 354 (FIG. 11d) is generated, and a ninth output signal 355 (FIG. 11e) which rises to the "1" level when counting the ninth one is generated. Therefore, the sixth output signal 354 and the ninth output signal 35
The flip-flop 35 is activated by the logic inversion signal of 5.
0,351 is set and reset, Figure 11C
After rotating 180 degrees from the rising edge of the reference signal 341 shown in FIG. 11, a pulse signal 357 having a width of 60 degrees shown in FIG. Further, when the rotation is 180 degrees, the logically inverted signal 356 of the ninth output signal 355 goes to the "0" level, so the NAND circuit 345 fixes the output signal 357 to the "1" level as shown in FIG. 11B. Therefore, from this point on, counting is suspended until the reference signal 347 rises again. The NOR circuit 352 outputs the first signal according to the NOR of the reference signal 341 and the flip-flop output signal 357.
Interrupt frequency division pulses 344 that go to the "0" level at 180° intervals as shown in FIG. 1g are generated.
358は計数用クロツク発生回路で、エンジン
制御装置が角度計数モードで作動するときに角度
パルス302(角度信号342,343)を計数
用クロツク信号として使用するときのみ利用す
る。計数用クロツク発生回路358は角度信号3
42,343をコンピユータ100の動作クロツ
ク101(この実施例では周期4μs)と同期化
して、エンジン回転角度の1゜毎に1個のクロツ
ク信号334、さらに2゜毎に1個のクロツク信
号335として生じる。 Reference numeral 358 denotes a counting clock generation circuit, which is used only when the engine control device operates in the angle counting mode and uses the angle pulse 302 (angle signals 342, 343) as a counting clock signal. The counting clock generating circuit 358 receives the angle signal 3.
42 and 343 are synchronized with the operating clock 101 of the computer 100 (in this embodiment, the period is 4 μs), so that one clock signal 334 is generated for every 1 degree of engine rotation angle, and one clock signal 335 is generated for every 2 degrees of engine rotation angle. arise.
計数用クロツク発生回路358は、クロツク入
力(端子CL)の立ち上がりで入力信号(端子
D)のレベルを保持するとDタイプのフリツプフ
ロツプ359,360,361と排他的オア回路
362とからなり、その作動における各部の信号
レベルの変化を第12図に示す。フリツプフロツ
プ359は角度信号342をコンピユータ100
の動作クロツク信号101の立ち上がり時点でレ
ベルが反転する2゜毎の同期化クロツク信号33
5に変換する。第112図に示すようにフリツプ
フロツプ360は第12図aに示す非同期の角度
信号343を第12図bに示すコンピユータ10
0の動作クロツク信号の立ち上がり時点でレベル
が反転する第112図c,dに示す同期化クロツ
ク信号363,364に変換する。さらに一方の
同期化クロツク信号363をフリツプフロツプ3
61によつて再同期化することにより、第12図
eに示すように1クロツク分だけ遅れた再同期化
クロツク信号365が得られる。そして排他的オ
ア回路362により同期化クロツク信号364と
再同期化クロツク信号365との不一致部を抽出
することにより、第12図fに示す1゜毎の同期
化クロツク信号335が得られる。フリツプフロ
ツプ259と360の作動は実際上同等であり、
フリツプフロツプ360の同期化クロツク信号3
64を2゜毎のクロツク信号として端子335か
ら出力してもよい。 The counting clock generation circuit 358 is composed of D-type flip-flops 359, 360, 361 and an exclusive OR circuit 362, and when the clock input (terminal CL) rises, the level of the input signal (terminal D) is maintained. FIG. 12 shows changes in signal levels at each part. Flip-flop 359 transfers angle signal 342 to computer 100.
A synchronized clock signal 33 whose level is inverted every 2° at the rising edge of the operating clock signal 101.
Convert to 5. As shown in FIG. 112, a flip-flop 360 transmits the asynchronous angle signal 343 shown in FIG. 12a to the computer 10 shown in FIG. 12b.
It is converted into synchronized clock signals 363 and 364 shown in FIGS. 112c and 112d, in which the level is inverted at the rising edge of the 0 operating clock signal. Furthermore, one synchronization clock signal 363 is transferred to the flip-flop 3.
61 results in a resynchronized clock signal 365 delayed by one clock as shown in FIG. 12e. By extracting the mismatch between the synchronized clock signal 364 and the resynchronized clock signal 365 using the exclusive OR circuit 362, a synchronized clock signal 335 of every 1° as shown in FIG. 12f is obtained. The operation of flip-flops 259 and 360 is practically equivalent;
Synchronization clock signal 3 of flip-flop 360
64 may be outputted from the terminal 335 as a clock signal every 2 degrees.
366は時間計数モードのときの割込用処理回
路であり、基準パルス301(基準信号341)
をラツチするDタイプのフリツプフロツプ36
7、角度パルス302(角度信号342)をラツ
チする同じくDタイプのフリツプフロツプ36
8、およびノア回路369からなり、基準信号3
41と角度信号342のいずれかが“1”レベル
になるとノア回路369から“0”レベルの割込
用パルス370が発生する。エンジン制御装置が
時間計数モードであるときは、割込用パルス37
0がコンピユータ100で認知されるとパルス発
生回路160より割込認知信号162が出力さ
れ、フリツプフロツプ167,168がリセツト
する。これによつて時間計数モードではエンジン
回転角の基準位置および所定の(30゜もしくは60
゜の)間隔で100に割込がかけられる。この実
施例における時間計数モードでは、エンジン回転
角度の30゜毎もしくは60゜毎の間隔で数値デー
タ/タイミング変換の開始タイミングを作成して
いるが、割込の時期と点火における通電開始およ
び通電遮断(点火)の時期との関連については、
角度モードとともに後述する全体作動のタイムチ
ヤートで明らかにする。 366 is an interrupt processing circuit in the time counting mode, and the reference pulse 301 (reference signal 341)
D-type flip-flop 36 that latches
7. Flip-flop 36, also of type D, which latches the angle pulse 302 (angle signal 342).
8, and a NOR circuit 369, the reference signal 3
When either the angle signal 41 or the angle signal 342 reaches the "1" level, the NOR circuit 369 generates an interrupt pulse 370 of the "0" level. When the engine control device is in the time counting mode, the interrupt pulse 37
When 0 is recognized by the computer 100, the pulse generation circuit 160 outputs an interrupt recognition signal 162, and the flip-flops 167 and 168 are reset. As a result, in time counting mode, the reference position of the engine rotation angle and the predetermined (30° or 60°
100 is interrupted at intervals of 100°. In the time counting mode in this embodiment, the start timing of numerical data/timing conversion is created at intervals of every 30° or 60° of the engine rotation angle, but the timing of the interrupt, the start of energization at ignition, and the interruption of energization. Regarding the relationship with (ignition) timing,
This will be clarified in the time chart of the overall operation, which will be explained later along with the angle mode.
371は選択回路で、角度計数モードと時間計
数モードとで割込用パルス344,370を切換
える選択回路372、および基準信号341と角
度信号342と分周信号357とを切換えるマル
チプレクサ373からなる。選択回路372は
RCA社製CD4019BEのアンド/オア選択回路を用
いることができ、それぞれ制御入力端子aに
“1”レベル、bに“0”レベルの、つまり時間
計数モードを意味するようにモード信号321,
322がラツチ回路320から入力されると、角
度計数モードの割込用パルス370が割込要求信
号331としてコンピユータ100の割込端子
INTに入力される。またアンド/オア選択回路3
72の制御入力端子aに“0”レベル、“b”に
“1”レベルの、つまり角度計数モードを意味す
るようにモード信号321,322が入力される
と、時間計数モードの割込用分周パルス344が
割込要求信号331としてコンピユータ100に
入力される。 A selection circuit 371 includes a selection circuit 372 that switches the interrupt pulses 344 and 370 between the angle counting mode and the time counting mode, and a multiplexer 373 that switches between the reference signal 341, the angle signal 342, and the frequency division signal 357. The selection circuit 372
The AND/OR selection circuit of RCA CD4019BE can be used, and the mode signals 321,
322 is input from the latch circuit 320, the angle counting mode interrupt pulse 370 is sent to the interrupt terminal of the computer 100 as the interrupt request signal 331.
Input to INT. Also, AND/OR selection circuit 3
When the mode signals 321 and 322 are input to the control input terminal a of 72 at the "0" level and the control input terminal "b" to the "1" level, meaning the angle counting mode, the interrupt signal for the time counting mode is input. The frequency pulse 344 is input to the computer 100 as an interrupt request signal 331.
マルチプレクサ373はRCA社製CD4053BEを
用いてあり、インヒビツト入力端子に“0”レベ
ル信号が印加された状態で、モード信号321の
レベルによつて入力端axとay、およびbxとbyの
信号を選択して出力端aとbに生じる。そしてモ
ード信号321が“1”レベルつまり時間計数モ
ードのときは、入力端ay,byがそれぞれ出力端
a,bと結合状態になり、よつて角度信号342
と基準信号341とがコンピユータ100のフラ
グ入力信号332,333として出力される。時
間計数モードにおいてコンピユータ100は割込
要求信号331が入力されたときそのフラグ入力
端子1,2に入力されている信号332,
333のレベルを調べることにより、エンジン回
転角が基準位置であるかまた基準位置から何個目
の角度位置であるかを認知することができる。モ
ード信号321が“0”レベルつまり角度計数モ
ードのときは、マルチプレクサ373の入力端
ax,bxがそれぞれ出方端a,bと結合状態にな
り、よつて基準信号341とフリツプフロツプ3
50,351の出力信号(基準信号341に対し
て180゜遅れた信号)357とがフラグ入力信号
332,333としてコンピユータ100に入力
される。角度計数モードにおいてコンピユータ1
00は、割込要求信号331が入力されたときそ
のフラグ入力端子の信号レベルから、エンジン回
転角度が基準位置であるかまた基準位置から180
゜の位置であるかを認知することができる。イン
バータ374,375は“1”レベルの初期化信
号194を論理レベルのインヒビツト信号として
マルチプレクサ373に入力するためのもので、
初期化信号194の“1”レベルのときは出力端
a,bはオープンレベル(FLOAT)となり、信
号線333をモード切換回路310およびラツチ
回路320の結合のために使用できるようにして
いる。角度信号処理回路330からコンピユータ
100に入力される信号331,332,333
は、またエンジンの回転速度を入力するためにも
利用されるが詳細は後述する。 The multiplexer 373 uses RCA's CD4053BE, and when a "0" level signal is applied to the inhibit input terminal, the signals at the input terminals ax and ay, and bx and by are selected according to the level of the mode signal 321. and occurs at output terminals a and b. When the mode signal 321 is at the "1" level, that is, in the time counting mode, the input terminals ay and by are connected to the output terminals a and b, respectively, and therefore the angle signal 342
and reference signal 341 are output as flag input signals 332 and 333 of computer 100. In the time counting mode, when the computer 100 receives the interrupt request signal 331, the signal 332, which is input to the flag input terminals 1 and 2,
By checking the level of 333, it is possible to recognize whether the engine rotation angle is at the reference position or at what angular position from the reference position. When the mode signal 321 is at "0" level, that is, in the angle counting mode, the input terminal of the multiplexer 373
ax and bx are coupled to the output terminals a and b, respectively, so that the reference signal 341 and the flip-flop 3
50 and 351 (a signal delayed by 180 degrees with respect to the reference signal 341) 357 are input to the computer 100 as flag input signals 332 and 333. Computer 1 in angle counting mode
00 means that the engine rotation angle is at the reference position or 180 degrees from the reference position based on the signal level of the flag input terminal when the interrupt request signal 331 is input.
It is possible to recognize whether the camera is in the ゜ position. The inverters 374 and 375 are for inputting the "1" level initialization signal 194 to the multiplexer 373 as a logic level inhibit signal.
When the initialization signal 194 is at the "1" level, the output terminals a and b are at an open level (FLOAT), so that the signal line 333 can be used for coupling the mode switching circuit 310 and the latch circuit 320. Signals 331, 332, 333 input from the angle signal processing circuit 330 to the computer 100
is also used to input the engine rotational speed, which will be described in detail later.
第1図において380はクロツク信号切換回路
で、モード信号321のレベルに従つて後述する
数値データ/時間データ変換におけるクロツク信
号381を切換える。クロツク信号切換回路38
0は角度信号処理回路330からの2゜毎の同期
化クロツク信号335もしくは計数回路150か
らの128μs毎の一定周期のクロツク信号153
をそれぞれモード信号321のレベルの“0”,
“1”によつて選択する。このクロツク信号切換
回路380は角度信号処理回路330中のマルチ
プレクサ373と同一の切換条件を利用するもの
であり、マルチプレクサ373と併合してもよ
い。128μsのクロツク信号153は、16ビツト
計数回路150においてコンピユータ100から
の4μsのクロツク信号を分周して得られる5ビ
ツト目の計数出力として取出すことができる。 In FIG. 1, 380 is a clock signal switching circuit which switches a clock signal 381 in numerical data/time data conversion, which will be described later, according to the level of a mode signal 321. Clock signal switching circuit 38
0 is a synchronized clock signal 335 every 2 degrees from the angle signal processing circuit 330 or a clock signal 153 with a constant cycle every 128 μs from the counting circuit 150.
respectively, the level of the mode signal 321 is “0”,
Select by “1”. This clock signal switching circuit 380 utilizes the same switching conditions as the multiplexer 373 in the angle signal processing circuit 330, and may be combined with the multiplexer 373. The 128 .mu.s clock signal 153 can be taken out as the 5th bit count output obtained by dividing the 4 .mu.s clock signal from the computer 100 in the 16-bit counting circuit 150.
ここでエンジンの点火における点火コイルの通
電遮断時期を(ひいては通電開始時期も)算定す
るのに用いられる制御パラメータの1つである。
エンジンの回転速度を入力する過程について説明
する。前述のようにコンピユータ100は角度信
号処理回路330からの割込要求信号331によ
り割込処理を行ない、フラグ入力信号332,3
33の信号レベルによりエンジン回転角度が数値
データ/タイミング変換の開始位置であるか否か
を判定して、開始位置であるならば変換を開始さ
せる。また所定のエンジン回転角度例えば基準位
置が到来したときは、スイツチ回路152にI/
Oデコーダ140を介して択一信号141,14
8を印加し、その時点の時刻データをメモリ12
0のRAMの所定番地に書き込む。従つてその後
の演算過程において、前回の時刻データと前々回
の時刻データとの時間差を求めることによりエン
ジンの一回転あたりの時間が判明する。この時間
差はエンジン回転速度の逆数である。なお択一信
号141と148の発生における時間差のため時
刻データの下位8ビツトの入力時と上位8ビツト
の入力時とでは時刻データに差を生じるが、択一
信号141と148の発生間隔は制御プログラム
によつて固定されているから、前記時間差を求め
る演算過程において正規化される。 Here, it is one of the control parameters used to calculate the timing of cutting off the energization of the ignition coil (and also the timing of starting energization) when igniting the engine.
The process of inputting the engine rotation speed will be explained. As mentioned above, the computer 100 performs interrupt processing in response to the interrupt request signal 331 from the angle signal processing circuit 330, and outputs the flag input signals 332, 3.
It is determined whether the engine rotation angle is at the start position of numerical data/timing conversion based on the signal level of 33, and if it is at the start position, the conversion is started. Further, when a predetermined engine rotation angle, for example, a reference position, is reached, the switch circuit 152 is connected to the I/O
Alternative signals 141, 14 via O decoder 140
8 is applied, and the time data at that point is stored in the memory 12.
Write to the specified location in RAM 0. Therefore, in the subsequent calculation process, the time per revolution of the engine can be determined by determining the time difference between the previous time data and the time data from the time before the previous time. This time difference is the reciprocal of the engine rotation speed. Note that due to the time difference in the generation of the alternative signals 141 and 148, a difference occurs in the time data when the lower 8 bits of time data are input and when the upper 8 bits are input, but the generation interval of the alternative signals 141 and 148 is controlled. Since it is fixed by the program, it is normalized in the calculation process for calculating the time difference.
次に数値データ/タイミング変換について説明
する。第1図において、400および410はハ
ードウエアにて構成された変換回路で、デジタル
コンピユータ100から与えられる点火用通電開
始時期もしくは通電遮断時期を規定する数値デー
タを、クロツク信号切換回路380からのクロツ
ク信号381もしくは角度信号処理回路330か
らのクロツク信号334でダウンカウントし、ダ
ウンカウントの終了をもつて上記点火の各タイミ
ングを指定する信号を発生する。この種の変換回
路は特開昭50−90826号公報「エンジン制御方法
および装置」あるいは特開昭53−8434号公報「内
燃機関の点火時期制御方法」等にも類似のものが
開示されている。 Next, numerical data/timing conversion will be explained. In FIG. 1, reference numerals 400 and 410 are converter circuits constructed of hardware, which convert numerical data specifying the ignition energization start timing or energization cutoff timing given from the digital computer 100 to a clock signal from the clock signal switching circuit 380. A signal 381 or a clock signal 334 from the angle signal processing circuit 330 is used to count down, and at the end of the down-count, a signal specifying each timing of the ignition is generated. Similar conversion circuits of this type are also disclosed in JP-A No. 50-90826 ``Engine Control Method and Apparatus'' and JP-A 53-8434 ``Ignition Timing Control Method for Internal Combustion Engine.'' .
変換回路400は角度計数モードおよび時間計
数モードの両方において通電開始時期を決めるも
のに兼用され、プリセツタブルダウンカウンタ4
01およびナンド回路402からなる。プリセツ
タブルダウンカウンタ401は例えばRCA社製
CD40103BEを用いて構成することができ、コン
ピユータ100からI/Oデコーダ140を介し
て指令信号144が印加されると、これに同期し
てデータバス110上の通電開始時期を規定する
2進数値データをブリセツトし、プリセツトと同
時に零検出信号(ZERO DETECT)403を
“1”レベルにする(ただし2進数値データは零
より大であるものとする)。よつてナンド回路4
02はクロツク信号381に対して“開いた”状
態になり、カウンタ401にダウンカウント用ク
ロツク信号404を与える。カウンタ401にお
けるはじめのブリセツト数値がダウンカウント
(計数)によつて消滅すると、零検出信号403
は“0”レベルになり、ナンド回路402を“閉
じた”状態にして計数を終了する。零検出信号4
03は論理回路としてのナンド回路405を介し
て点火用増幅回路3に与えられ、零検出信号40
3の“1”レベルから“0”レベルへの反転タイ
ミングにて通電開始時期を規定する。前述のよう
に角度計数モードと時間計数モードとの切換によ
つて計数用のクロツク信号381は2゜毎のエン
ジン回転角度を示すクロツク信号335と128μ
sの一定周期のクロツク信号153とのいずれか
が選択されるから、変換回路400は角度計数モ
ードにおける数値データ/タイミング変換と時間
計数モードにおける変換とを、外部から指令信号
を与えることなしに兼用することができる。 The conversion circuit 400 is also used to determine when to start energization in both the angle counting mode and the time counting mode, and the presettable down counter 4
01 and a NAND circuit 402. The presettable down counter 401 is manufactured by RCA, for example.
When a command signal 144 is applied from the computer 100 via the I/O decoder 140, binary value data that specifies the timing to start energization on the data bus 110 is synchronized with this. At the same time as the presetting, the zero detection signal (ZERO DETECT) 403 is set to the "1" level (provided that the binary value data is greater than zero). Yotsute Nando circuit 4
02 becomes "open" to the clock signal 381 and provides the counter 401 with a clock signal 404 for down counting. When the initial preset value in the counter 401 disappears due to down counting (counting), the zero detection signal 403
becomes the "0" level, causing the NAND circuit 402 to be "closed" and ending counting. Zero detection signal 4
03 is given to the ignition amplifier circuit 3 via a NAND circuit 405 as a logic circuit, and the zero detection signal 40
The timing of starting energization is defined by the timing of reversal from the "1" level to the "0" level in No. 3. As mentioned above, by switching between the angle counting mode and the time counting mode, the clock signal 381 for counting is changed to the clock signal 335 indicating the engine rotation angle every 2 degrees and 128μ.
s is selected, the conversion circuit 400 can perform both numerical data/timing conversion in the angle counting mode and conversion in the time counting mode without applying an external command signal. can do.
変換回路410は角度計数モードにおいて通電
遮断時期を決めるために使用され、変換回路40
0と同様にプリセツタブルダウンカウンタ411
およびナンド回路421からなる。そして、コン
ピユータ100からI/Oデコーダ140を介し
て択一信号145が印加されると、カウンタ41
1はこれに同期してデータバス110上の通電遮
断時期を規定する2進数値データをプリセツト
し、同時に零検出信号413を“1”レベルにす
る。よつてナンド回路412はクロツク信号33
4に対して“開いた”状態になり、カウンタ41
1にダウンカウント用クロツク信号414を与え
る。カウンタ411におけるはじめのプリセツト
数値がダウンカウントによつて消滅すると、零検
出信号413は“0”レベルになり、ナンド回路
412を“閉じた”状態にして計数を終了する。
零検出信号413はコンピユータ100のフラグ
入力端子の1つEF2に接続されている。コンピ
ユータ100は変換回路410に所定のエンジン
回転角度のときに択一信号145をもつて変換を
開始させると、零検出信号413のレベルを監視
することにより一旦“1”レベルになつた零検出
信号413が“0”レベルに反転することをもつ
て通電遮断時期すなわち点火時期であることを認
知する。 The conversion circuit 410 is used to determine when to cut off the current in the angle counting mode, and the conversion circuit 410
Presettable down counter 411 similar to 0
and a NAND circuit 421. Then, when the selection signal 145 is applied from the computer 100 via the I/O decoder 140, the counter 41
1 presets the binary value data that defines the power cutoff timing on the data bus 110 in synchronization with this, and at the same time sets the zero detection signal 413 to the "1" level. Therefore, the NAND circuit 412 receives the clock signal 33.
The counter 41 becomes “open” for 4.
A clock signal 414 for down-counting is applied to the clock signal 414. When the first preset value in the counter 411 disappears due to down-counting, the zero detection signal 413 goes to the "0" level, causing the NAND circuit 412 to be in the "closed" state and ending counting.
The zero detection signal 413 is connected to one of the flag input terminals EF2 of the computer 100. When the computer 100 causes the conversion circuit 410 to start conversion using the selection signal 145 at a predetermined engine rotation angle, the computer 100 monitors the level of the zero detection signal 413 and detects the zero detection signal once at the "1" level. When 413 is inverted to the "0" level, it is recognized that it is the current cutoff timing, that is, the ignition timing.
この実施例における角度変換回路410の計数
終了によりコンピユータ100が変換回路400
の計数開始を指令するように制御プログラムが設
定されている。角度信号処理回路330より所定
のエンジン回転角度で割込要求信号331がコン
ピユータ100に印加されると、コンピユータ1
00はデータバス110に通電遮断時期を規定す
る数値データを出力すると同時にI/Oデコーダ
140から択一信号145を出力して、変換回路
410において変換を開始させる。コンピユータ
100はこの変換作動中ずつと零検出信号413
を監視し、変換の終了によつて零検出信号413
が“0”レベルになると、データバス110に通
電開始時期を規定する数値データを出力すると同
時にI/Oデコーダ140から択一信号144を
出力して変換回路400において変換を開始させ
る。そして零検出信号403がこの変換中を示す
“1”レベルになつている間、ノア回路405の
出力信号406は“0”レベルとなり、この出力
信号406が“0”レベルになつた時点で点火コ
イル4の一次コイル4aへの通電が遮断されて二
次コイル4bに点火用高電圧が誘起され、変換終
了によつて出力信号406が“1”レベルになる
と一次コイル4aへの通電が開始される。 In this embodiment, when the angle conversion circuit 410 completes counting, the computer 100
The control program is set to command the start of counting. When the angle signal processing circuit 330 applies the interrupt request signal 331 to the computer 100 at a predetermined engine rotation angle, the computer 1
00 outputs numerical data defining the power-off timing to the data bus 110, and at the same time outputs the selection signal 145 from the I/O decoder 140, causing the conversion circuit 410 to start conversion. During this conversion operation, the computer 100 outputs a zero detection signal 413.
is monitored, and a zero detection signal 413 is generated upon completion of conversion.
When it reaches the "0" level, numerical data specifying the start time of energization is outputted to the data bus 110, and at the same time, the selection signal 144 is outputted from the I/O decoder 140 to cause the conversion circuit 400 to start conversion. While the zero detection signal 403 is at the "1" level indicating that this conversion is in progress, the output signal 406 of the NOR circuit 405 is at the "0" level, and when this output signal 406 reaches the "0" level, the ignition starts. The energization to the primary coil 4a of the coil 4 is cut off, a high voltage for ignition is induced in the secondary coil 4b, and when the output signal 406 reaches the "1" level due to the completion of conversion, energization to the primary coil 4a is started. Ru.
420はラツチ回路で、変換回路400と共同
して通電開始時期および通電遮断時期を示す信号
を発生して論理回路としてのノア回路405を制
御する信号421を発生する機能、および制御プ
ログラムの進行に応じて直流再生回路191にく
り返しパルス信号422を与える機能を有する。
ラツチ回路420はI/Oデコーダ140の択一
信号146に同期してデータバス110の所定ビ
ツトを介してコンピユータ100から送られる2
値信号をラツチすることにより上記の制御信号4
21およびくり返しパルス信号422を得る。前
述のようにこの実施例で示される点火制御装置が
角度計数モードで運転されるときは、結果的に1
つの変換回路400の出力信号にて通電開始時期
および通電遮断時期のタイミングを得ることがで
きるため、ラツチ回路420の制御信号421は
常に“0”レベルに固定され、ノア回路405の
出力信号406をカウンタ401の零検出信号4
03に依存させるものである。 Reference numeral 420 denotes a latch circuit, which has the function of generating a signal 421 for controlling the NOR circuit 405 as a logic circuit by cooperating with the conversion circuit 400 to generate a signal indicating the energization start time and the energization cutoff time, and for the progress of the control program. It has a function of repeatedly giving a pulse signal 422 to the DC regeneration circuit 191 in accordance with the request.
The latch circuit 420 synchronizes with the selection signal 146 of the I/O decoder 140 and receives a signal from the computer 100 via a predetermined bit of the data bus 110.
By latching the value signal, the above control signal 4
21 and a repeated pulse signal 422 are obtained. As mentioned above, when the ignition control device shown in this embodiment is operated in the angle counting mode, the result is 1
Since the timing of the energization start time and the energization cutoff time can be obtained from the output signals of the two conversion circuits 400, the control signal 421 of the latch circuit 420 is always fixed at the "0" level, and the output signal 406 of the NOR circuit 405 is Zero detection signal 4 of counter 401
03.
一方、通電計数モードにおいては、この実施例
では通電開始時期のタイミングを変換回路400
で発生し、通電遮断時期のタイミングをコンピユ
ータ100におけるソフトウエアの変換にて発生
しており、ラツチ回路420とノア回路405と
で両タイミングを統合し、“0”レベルで遮断し
“1”レベルで通電する点火制御信号406を得
るようにしている。 On the other hand, in the energization counting mode, in this embodiment, the timing of the energization start time is set by the conversion circuit 400.
This occurs due to the software conversion in the computer 100, and the latch circuit 420 and NOR circuit 405 integrate both timings to shut off the power at the "0" level and turn off the current at the "1" level. An ignition control signal 406 for energizing is obtained.
点火作動系は公知のものを使用している。点火
用増幅回路3はノア回路405の出力信号406
を増幅して増幅信号3bにより半導体スイツチン
グ素子3aをオンオフする。これにより点火コイ
ル4の一次コイル4aの通電、遮断が行なわれ、
電流遮断時に二次コイル4bに点火用高電圧を発
生する。点火用高電圧はエンジンによつて同期的
に回転させる図示しない公知の分配器を介して各
気筒の点火プラグに供給され着火する。 A known ignition system is used. The ignition amplifier circuit 3 receives the output signal 406 of the NOR circuit 405.
is amplified and the semiconductor switching element 3a is turned on and off by the amplified signal 3b. As a result, the primary coil 4a of the ignition coil 4 is energized and cut off.
When the current is cut off, a high voltage for ignition is generated in the secondary coil 4b. A high voltage for ignition is supplied to the spark plugs of each cylinder through a known distributor (not shown) which is rotated synchronously by the engine, and ignites the cylinders.
この点火制御装置では、二次コイル4bに誘起
される点火用高電圧が十分なエネルギレベルにな
るように、一次コイル4aを理れる遮断直前の電
流値を確保するように一次コイル4aの通電時間
を決定し、通電開始時期を定めている。このため
に電流検出回路470と時刻データのラツチ回路
480が設けられ、一次コイル4aに通電が開始
され基準の電流値となつてから通電が遮断される
までの時間を測定し、その次に通電開始時期を算
定する制御パラメータとしてメモリ120の
RAMに記憶する。電流検出回路470は一次コ
イル4aの通電通路に挿入された微小抵抗を有す
る抵抗471と、一次電流によつてこの抵抗47
1に生じる電圧を基準電圧472の発生電圧と比
較する電圧比較器473とで構成され、一次電流
の増大によつて抵抗471の電圧降下が基準電圧
に達すると電圧比較器473から検出信号474
(“1”レベル)が発生する。 In this ignition control device, the energization time of the primary coil 4a is set such that the current value immediately before the interruption of the primary coil 4a is ensured so that the high voltage for ignition induced in the secondary coil 4b has a sufficient energy level. and determines when to start energizing. For this purpose, a current detection circuit 470 and a time data latch circuit 480 are provided to measure the time from when the primary coil 4a starts energizing and reaches a reference current value until the energization is cut off. The memory 120 is used as a control parameter to calculate the start time.
Store in RAM. The current detection circuit 470 includes a resistor 471 having a minute resistance inserted into the current-carrying path of the primary coil 4a, and a resistor 471 that is
The voltage comparator 473 compares the voltage generated at the resistor 471 with the voltage generated by the reference voltage 472. When the voltage drop across the resistor 471 reaches the reference voltage due to an increase in the primary current, the voltage comparator 473 outputs a detection signal 474.
(“1” level) occurs.
ラツチ回路480は例えばRCA社製
CDP1852CD(I/Oポート)を用いることがで
き、この実施例では入力ポート専用として使用す
る。そして、ラツチ回路480は検出信号474
の発生のタイミング(“0”レベル→“1”レベ
ル)でタイマバス151上の時刻データをラツチ
し、これと同時にラツチ状態を示すサービスリク
エスト信号()481をコンピユータ100
のフラグ入力として発生する。コンピユータ10
0からメモリ120(RAM)の書き込み信号
()102とI/Oデコーダ140を介して
の択一信号147とが印加されたとき(ともに
“1”レベルのとき)に、ラツチしたデータをデ
ータバス110上に送出してメモリ120
(RAM)に書き込む。一方、一次コイル4aの通
電を遮断した瞬間に(プログラム上微少の時間差
をもつて)コンピユータ100はスイツチ回路1
52にI/Oデコーダ140を介して指令信号1
41を印加し、その時点の時刻データをタイマバ
ス151よりメモリ120(RAM)に書き込
む。そしてソフトウエア上の処理によつて、スイ
ツチ回路152を介して得た時刻データからラツ
チ回路480から得た時刻データを減算すること
により、点火一次コイル4aにおける基準通電流
値以上の持続時間を測定することができる。 The latch circuit 480 is manufactured by RCA, for example.
A CDP1852CD (I/O port) can be used and is used exclusively as an input port in this embodiment. The latch circuit 480 then outputs the detection signal 474.
The time data on the timer bus 151 is latched at the timing of occurrence (from "0" level to "1" level), and at the same time, a service request signal ( ) 481 indicating the latched state is sent to the computer 100.
occurs as a flag input. computer 10
When the write signal ( ) 102 from 0 to the memory 120 (RAM) and the selection signal 147 via the I/O decoder 140 are applied (both at the "1" level), the latched data is transferred to the data bus. 110 and memory 120
Write to (RAM). On the other hand, at the moment when the primary coil 4a is de-energized (with a slight time difference in the program), the computer 100 switches the switch circuit 1.
52 through the I/O decoder 140.
41 is applied, and the time data at that point is written from the timer bus 151 to the memory 120 (RAM). Then, through software processing, the time data obtained from the latch circuit 480 is subtracted from the time data obtained via the switch circuit 152, thereby measuring the duration of the current flowing in the ignition primary coil 4a at or above the reference current value. can do.
第13図はコンピユータ100がメモリ120
(ROM)の制御プログラムに従つて行なう処理の
うち、通電開始時期の算定に係わる処理を示すも
のである。この通電開始時期制御は大きく分けて
次の4条件を満足するようにプログラムされてい
る。 In FIG. 13, the computer 100 is connected to the memory 120.
Among the processes performed according to the control program of the (ROM), the process related to calculating the timing to start energization is shown. This energization start timing control is roughly divided into programs that satisfy the following four conditions.
(1) 基準電流の持続時間の測定値を次の通電時間
を決定するために負帰還として帰還すること。(1) Feed back the measured value of the duration of the reference current as negative feedback to determine the next energization time.
(2) 通電時間の算定値を、基準電流の持続時間の
期待値(点火コイルの加熱特性、点火エネルギ
の書積特性、および過渡状態を補うための余裕
度の兼ね合いにより予め決定される)に追従さ
せること。(2) Set the calculated value of the energization time to the expected value of the reference current duration (determined in advance based on the heating characteristics of the ignition coil, the volume characteristics of the ignition energy, and the margin for compensating for transient conditions). to be followed.
(3) 基準電流の持続時間の測定値と、その前回の
測定値との偏差に応じて通電時間の算定値を補
正すること。(3) Correct the calculated value of the energization time according to the deviation between the measured value of the reference current duration and the previous measured value.
(4) エンジンの高速回転時等において、通電の遮
断による点火エネルギの放出に要する最小の遮
断時間を確保するように通電開始時期を修正す
ること。(4) When the engine is rotating at high speed, etc., the timing of starting energization should be adjusted to ensure the minimum cut-off time required for the release of ignition energy by cutting off the energization.
コンピユータ100は通電開始時期を算定する
(通電時間を算定する)のに、その点火コイル4
について予め実験等によつて決定した基礎閉時間
B(通電開始から基準電流になるまでの時間、周
囲温度等によつてソフトウエアにて補正するよう
になつていても良い)と、基準電流の持続時間の
期待値0と、算定しようとする対象の通電(時
間)の前回になされた通電における基準電流の持
続時間Tと、その前々回になされた基準電流の計
算結果Fの記憶値Mとを図示極性で加算する。加
算結果の通電時間をなす計算値Aは、点火時期の
計算値Pに対して、角度計数モードの場合は通電
を開始するクランク回転角度としての、また時間
計数モードの場合は所定のクランク回転角度から
の通電開始時期までの実時間としての数値データ
Dに変換修正される。また、このとき上記(4)の修
正をするために数値データDを点火時期の計算値
P(前回のもの)に基いて小さくする修正を加え
てもよい。 The computer 100 calculates the timing to start energization (calculates the energization time), and the ignition coil 4
The basic closing time B (the time from the start of energization to the reference current, which may be corrected by software depending on the ambient temperature, etc.) determined in advance through experiments etc., and the reference current. The expected value 0 of the duration, the duration T of the reference current in the previous energization of the target energization (time) to be calculated, and the stored value M of the calculation result F of the reference current made two times before that. Add using the polarity shown. The calculated value A, which constitutes the energization time as a result of the addition, is calculated as the crank rotation angle at which energization starts in the case of angle counting mode, or as the predetermined crank rotation angle in the case of time counting mode, with respect to the calculated value P of the ignition timing. It is converted and corrected into numerical data D representing the actual time from the time to the start of energization. Further, at this time, in order to correct the above (4), the numerical data D may be corrected to be smaller based on the calculated value P of the ignition timing (previous value).
最終的に得られる数値データDはコンピユータ
100から前述の数値データ/期間データ(タイ
ミング)変換回路400に入力され、指令信号1
44により変換を開始し、点火制御における点火
コイル4の通電開始時期を規定する。通電により
一次コイル4aの電流が基準電流を超えると、電
流検出信号470の検出信号474が“1”レベ
ルとなりその時点の時刻データがラツチ回路48
0に記憶され、同時にサービスリクエスト信号4
81が基準電流到達を示す“0”レベルにある。
数値データ/期間データ変換回路410の零検出
信号413の発生(この実施例では角度計数モー
ド)、もしくはコンピユータ100のソフトウエ
ア処理による計数終了により、コンピユータ10
0は通電の遮断を信号144もしくは421によ
つて指令し、さらにコンピユータ100はフラグ
入力3を調べてサービスリクエスト信号48
1が基準電流到達を示す“0”レベルにある
(YES)か否か(NO)かを判定する。YESのと
きは通電遮断時期の時刻データからラツチ回路4
80にラツチされた時刻データを減算して、基準
電流以上の持続時間Tを求める。またフラグ入力
3が“1”レベルのままであれば基準電流の
持続時間Tは無しと判断する。 The finally obtained numerical data D is input from the computer 100 to the aforementioned numerical data/period data (timing) conversion circuit 400, and the command signal 1
44, the conversion is started and the timing for starting energization of the ignition coil 4 in ignition control is defined. When the current in the primary coil 4a exceeds the reference current due to energization, the detection signal 474 of the current detection signal 470 goes to the "1" level, and the time data at that point is transferred to the latch circuit 48.
0 and at the same time the service request signal 4
81 is at the "0" level indicating that the reference current has been reached.
When the zero detection signal 413 of the numerical data/period data conversion circuit 410 is generated (angle counting mode in this embodiment), or when counting is completed by software processing of the computer 100, the computer 10
0 issues a command to cut off the current through the signal 144 or 421, and further, the computer 100 checks the flag input 3 and issues a service request signal 48.
1 is at the "0" level indicating that the reference current has been reached (YES) or not (NO). When YES, the latch circuit 4 is
By subtracting the latched time data from 80, the duration T of the reference current or more is determined. Further, if the flag input 3 remains at the "1" level, it is determined that the duration T of the reference current is absent.
第13図の第1の加算Xは、計測した基準電流
の持続時間Tとその前回の加算力における記憶値
Mとの偏差によつて、基準電流の持続時間の期待
値Oを補正することを示し、第2の加算yは第1
の加算力による計算値Fと基礎閉時間Bとを加算
することを意味する。 The first addition X in FIG. 13 corrects the expected value O of the duration of the reference current by the deviation between the measured duration T of the reference current and the stored value M at the previous addition force. and the second addition y is the first
This means adding the calculated value F based on the addition force and the basic closing time B.
以上第1図を中心にマイクロコンピユータ10
0、およびそれと作動的に結合された入出力周辺
回路に関して、その個々の役割の特徴的な部分を
中心にして説明したが、次に角度計数モードおよ
び時間計数モードにおける点火制御装置としての
作動について制御プログラムのフローチヤートお
よびタイミングチヤートを参照して説明する。 The microcomputer 10 is mainly shown in Figure 1 above.
0 and the input/output peripheral circuits operatively connected to it, focusing on the characteristic parts of their individual roles.Next, we will discuss the operation as an ignition control device in angle counting mode and time counting mode. This will be explained with reference to a flowchart and a timing chart of the control program.
第14図および第15図は角度計数モードにお
ける制御プログラムおよび制御出力のタイミング
を示している。制御プログラムは大きく分けて、
初期化ルーチンA、メイン計算ルーチンB、およ
び割込処理ルーチンCから組み立てられている。 14 and 15 show the control program and the timing of control output in the angle counting mode. Control programs can be broadly divided into
It is assembled from an initialization routine A, a main calculation routine B, and an interrupt processing routine C.
初期化ルーチンAは、初期化回路190からの
初期化信号194によつて実行されるもので、イ
グニツシヨンキースイツチ2の投入されたときお
よびコンピユータ100の不調等により直流再生
回路191にくり返しパルス422が印加されな
くなつたとき、制御プログラムによつてコンピユ
ータ内のレジスタおよび周辺装置を全て初期の状
態に一旦改め、処理を再スタートするものであ
る。また初期化信号が消滅するときラツチ回路3
20は点火制御の動作モードをラツチする。 The initialization routine A is executed by the initialization signal 194 from the initialization circuit 190, and repeatedly pulses the DC regeneration circuit 191 when the ignition key switch 2 is turned on or when the computer 100 malfunctions. When 422 is no longer applied, the control program once changes all the registers and peripheral devices in the computer to their initial states and restarts the process. Also, when the initialization signal disappears, the latch circuit 3
20 latches the operating mode of ignition control.
初期化ルーチンの終了とともにコンピユータ1
00への割込禁止状態が解かれ、メイン計算ルー
チンBへ移行する。メイン計算ルーチンBでは各
種のエンジン制御パラメータを入力して点火時期
(角度)および通電開始角の計算を行ない、それ
ぞれ一回の計算を終了するとくり返しパルスを出
力する処理を経て再び点火時期および通電開始角
の計算をくり返す。これらの計算手法は第13図
に例を示したほかは全て公知の手法を採用するこ
とができるのでここでは特に詳述しない。計算に
必要なエンジン制御パラメータのうちアナログ入
力信号210a〜210nについてはコンピユー
タ100の指令のもとにラツチ回路200、
MPX210、A/D変換回路220およびDMA
機能を用いることによりエンジン回転速度につい
ては角度信号処理回路330からの角度信号に基
いてスイツチ回路152を制御することにより、
また点火コイル4の通電における基準電流の持続
時間についてはスイツチ回路152とラツチ回路
480を利用することにより、メモリ120
(RAM)の所定の番地に書き込むことができる。
計算はメモリ120(RAM)から遂次、必要な
制御パラメータを読出して予め定められた計算手
法に沿つて行なわれる。 At the end of the initialization routine, computer 1
The state where interrupts to 00 are prohibited is released and the process moves to main calculation routine B. In the main calculation routine B, various engine control parameters are input and the ignition timing (angle) and energization start angle are calculated. When each calculation is completed, the ignition timing and energization are started again after a process of outputting a repeated pulse. Repeat the angle calculation. All of these calculation methods, except for the example shown in FIG. 13, can be adopted as known methods, so they will not be described in detail here. Among the engine control parameters necessary for calculation, analog input signals 210a to 210n are processed by a latch circuit 200,
MPX210, A/D conversion circuit 220 and DMA
By using the function, the engine rotation speed is controlled by controlling the switch circuit 152 based on the angle signal from the angle signal processing circuit 330.
Furthermore, the duration of the reference current when energizing the ignition coil 4 can be determined by using the switch circuit 152 and the latch circuit 480 in the memory 120.
(RAM) can be written to a predetermined address.
Calculations are performed in accordance with a predetermined calculation method by successively reading out necessary control parameters from the memory 120 (RAM).
初期化後において直ちに点火時期および通電開
始角を計算しようとする場合、制御パラメータの
一つであるエンジン回転速度の入力処理は点火作
動と関連する割込処理ルーチンに基いてなされる
ので、計算を終了するのが実際に必要とされる点
火作動に間に合わないことが生じる。従つて初期
化ルーチンAにおいて固定された点火時期(例え
ばBTDC8゜)および通電開始角(例えば
BTDC68゜)が一旦設定され、計算が間に合わな
い場合はこの固定の数値データにより点火作動を
可能とする。メイン計算ルーチンBは高速で(数
ms)でくり返されるため、くり返しパルス42
2の信号レベルの反転は、メイン計算ルーチンB
のくり返しの数回乃至数十回毎に一回行なわれる
ようにプログラムされ、直流再生回路191およ
び抵抗196による充放電の時定数とマツチング
させている。 If you want to calculate the ignition timing and energization start angle immediately after initialization, the input process for the engine speed, which is one of the control parameters, is done based on the interrupt processing routine related to ignition operation, so it is difficult to calculate the ignition timing and energization start angle. It may occur that the ignition operation is not completed in time for the actually required ignition operation. Therefore, in the initialization routine A, if the ignition timing is fixed (e.g. BTDC8°) and the energization start angle (e.g.
BTDC68°) is set once, and if the calculation cannot be done in time, ignition operation can be performed using this fixed numerical data. Main calculation routine B is fast (number
ms), the repeated pulse 42
The inversion of the signal level in step 2 is performed using the main calculation routine B.
It is programmed to be performed once every several to several tens of repetitions, and is matched with the charging/discharging time constant of the DC regeneration circuit 191 and resistor 196.
割込処理ルーチンCは角度信号処理回路330
からの割込要求信号331が“0”レベルになる
と、コンピユータ100がメイン計算ルーチンB
の処理を一時中断して、コンピユータ100の制
御のもとに変換回路400,410において数値
データ/期間データ変換を指令する処理、および
エンジンの回転速度を入力する処理を行なう。 The interrupt processing routine C is executed by the angle signal processing circuit 330.
When the interrupt request signal 331 from
The processing is temporarily interrupted, and under the control of the computer 100, processing for commanding numerical data/period data conversion in the conversion circuits 400 and 410 and processing for inputting the rotational speed of the engine are performed.
第15図においてaは角度信号処理回路330
からの割込要求信号331を示しており、角度計
数モードでは第10図の信号344と同じであ
る。角度検出器300の調整により割込要求信号
331はエンジン回転角度のBTCC68゜から
BTDC8゜までと、BTDC248゜とBTDC188゜ま
での間“0”レベルとなる。また、制御に供され
るエンジンに要求される点火時期(点火角)は圧
縮工程の死点前68゜から8゜までとする。
BTDC68゜もしくはBTDC248゜で割込要求信号
aが“1”レベルから“0”レベルに反転する
と、コンピユータ100はメイン計算ルーチンB
において実行中の1つの命令処理サイクルを終了
すると直ちに割込処理ルーチンCに移り、メイン
処理ルーチンBを待避させる。次にデータバス1
10を通じて、点火時期を示す数値データ(通電
遮断をするエンジン回転角度で、BTDC68゜から
の2゜単位の角度で表わされる)を指令信号14
5によつて変換回路410のカウンタ411にプ
リセツトさせる。カウンタ411はエンジン回転
角度2゜毎の角度クロツク信号334にて直ちに
ダウンカウントを開始し、カウント中は第7図b
に示すように零検出信号413を“1”レベルと
し、カウント終了のタイミングで“0”レベルに
反転させる。このカウントによつて得られる期間
データT1はプリセツトされた数値データに対応
し、コンピユータ100のメイン計算ルーチンB
にて算定した点火時期を規定する。 In FIG. 15, a is the angle signal processing circuit 330.
10, which is the same as signal 344 in FIG. 10 in angle counting mode. By adjusting the angle detector 300, the interrupt request signal 331 changes from the engine rotation angle of BTCC68°.
The level is “0” up to BTDC8°, and between BTDC248° and BTDC188°. The ignition timing (ignition angle) required for the engine to be controlled is from 68 degrees to 8 degrees before the dead center of the compression process.
When the interrupt request signal a is inverted from the "1" level to the "0" level at BTDC68° or BTDC248°, the computer 100 starts the main calculation routine B.
Immediately after completing one instruction processing cycle being executed in , the interrupt processing routine C is entered, and the main processing routine B is saved. Next, data bus 1
10, numerical data indicating the ignition timing (engine rotation angle at which power is cut off, expressed in 2° increments from BTDC 68°) is sent as a command signal 14.
5 causes the counter 411 of the conversion circuit 410 to be preset. The counter 411 immediately starts counting down in response to the angle clock signal 334 every 2 degrees of engine rotation angle, and during counting, the counter 411 is shown in FIG.
As shown in the figure, the zero detection signal 413 is set to "1" level, and is inverted to "0" level at the timing of the end of counting. The period data T1 obtained by this count corresponds to preset numerical data, and is executed by the main calculation routine B of the computer 100.
Specify the ignition timing calculated by
コンピユータ100は数値データのプリセツト
後、指令信号141をスイツチ回路152に与え
て時刻データをメモリ120(RAM)に書き込
み、続いてフラグ入力端子3に入力される零
検出信号413に監視し続け、零検出信号413
が“0”になると点火時期である(YES)と判
定して、変換回路400のカウンタ401にデー
タバス110を介して通電開始時期を示す数値デ
ータ(通電遮断角度から通電開始角度までの1゜
単位の角度で表わされる)を指令信号144によ
つてプリセツトさせる。これによりカウンタ40
1は1゜毎の角度クロツク信号335にて直ちに
ダウンカウントを開始し、カウント中は第7図c
に示すように零検出信号403“1”レベルと
し、カウント終了のタイミングで“0”レベルに
反転させる。ラツチ回路420の出力信号421
は“0”レベルのまま変化しない(コンピユータ
100によつて随時“0”レベルをセツトしても
よい)から、点火制御信号406は零検出信号4
03に依存してレベルが決まる。カウンタ401
のカウントによつて得らる期間データT2はプリ
セツトされた数値データに対応し、所望の点火エ
ネルギ(通電持続時間)を得るに必要な通電開始
時期を規定する。点火制御信号406は点火用増
幅回路3で増幅され第7図eに示す増幅信号3b
としてスイツチング素子3aに印加され、点火作
動を行なわせる。なお、t1およびt3は点火時期を
示し、t1−t2間は通電遮断、t2−t3は通電を示して
いる。 After presetting the numerical data, the computer 100 sends a command signal 141 to the switch circuit 152 to write time data into the memory 120 (RAM), and then continues to monitor the zero detection signal 413 input to the flag input terminal 3 to detect zero. Detection signal 413
When it becomes "0", it is determined that it is the ignition timing (YES), and numerical data indicating the energization start timing is sent to the counter 401 of the conversion circuit 400 via the data bus 110 (1 degree from the energization cutoff angle to the energization start angle). (expressed in units of angle) is preset by command signal 144. As a result, the counter 40
1 immediately starts counting down with the angle clock signal 335 every 1 degree, and during counting, the clock signal 335 shown in FIG.
As shown in , the zero detection signal 403 is set to "1" level, and is inverted to "0" level at the timing of the end of counting. Output signal 421 of latch circuit 420
Since the ignition control signal 406 remains at the "0" level and does not change (the "0" level may be set at any time by the computer 100), the ignition control signal 406 is equal to the zero detection signal 4.
The level is determined depending on 03. counter 401
The period data T2 obtained by counting corresponds to the preset numerical data, and defines the energization start timing necessary to obtain the desired ignition energy (current energization duration). The ignition control signal 406 is amplified by the ignition amplifier circuit 3 and becomes an amplified signal 3b shown in FIG. 7e.
is applied to the switching element 3a to cause the ignition to take place. Note that t 1 and t 3 indicate ignition timing, t 1 - t 2 indicates energization is cut off, and t 2 - t 3 indicates energization.
コンピユータ100は指令信号144によつて
通電遮断を指令すると、通電における基準電流の
持続時間を計算する(メイン計算ルーチンB)た
めに直ちにスイツチ回路152に指令信号141
を与えて時刻データをメモリ120(RAM)に
書き込む。これを終えるとコンピユータ100は
BTDC8゜もしくはBTDC188゜まで待機する。
BTDC8゜もしくはBTDC188゜に達すると、コン
ピユータ100から指令信号141がスイツチ回
路152に与えられ時刻データがメモリ120
(RAM)に書き込まれる。従つてメイン処理ルー
チンBでエンジン回転速度を求めるには、
BTDC68゜からBTDC8゜までもしくはBTDC248
゜からBTDC188゜までの新しい方の時間差を減
算によつて求めればよいのである。 When the computer 100 commands de-energization by the command signal 144, it immediately sends the command signal 141 to the switch circuit 152 in order to calculate the duration of the reference current in the energization (main calculation routine B).
is given and the time data is written into the memory 120 (RAM). After completing this, the computer 100
Wait until BTDC8° or BTDC188°.
When BTDC8° or BTDC188° is reached, a command signal 141 is given from the computer 100 to the switch circuit 152, and the time data is stored in the memory 120.
(RAM). Therefore, to find the engine rotation speed in main processing routine B,
From BTDC68° to BTDC8° or BTDC248
All you have to do is find the newer time difference from ° to BTDC188 ° by subtraction.
BTDC8゜もしくはBTDC188゜が過ぎ、時刻デ
ータの入力を終了すると、コンピユータ100は
一時中断したメイン計算ルーチンBを中断した位
置に戻し、メイン計算ルーチンBを割込がかかる
までくり返す。なお、BTDC68゜からBTDC8゜
までの間は角度信号処理回路330の出力信号3
32が“1”レベル、BTDC248゜からBTDC188
゜までの間は出力信号333が“1”レベルとな
るため、コンピユータ100はフラグ入力端子
1と4とを調べることによつてそれぞれ区
別することができる。従つていずれか一方、つま
りエンジンの一回転に一回だけエンジン回転速度
を求めることもできる。 When BTDC8° or BTDC188° has passed and input of time data is completed, the computer 100 returns the temporarily interrupted main calculation routine B to the interrupted position and repeats the main calculation routine B until an interrupt occurs. In addition, from BTDC68° to BTDC8°, the output signal 3 of the angle signal processing circuit 330
32 is “1” level, BTDC248° to BTDC188
Since the output signal 333 is at the "1" level until this point, the computer 100 can distinguish between the flag input terminals 1 and 4 by checking the flag input terminals 1 and 4. Therefore, it is also possible to obtain the engine rotational speed only once in one rotation of the engine.
次に時間計数モードにおける点火制御装置の作
動について述べる。ここでは時間計数モードのう
ちエンジン回転角度の1個の基準位置および30゜
毎の角度間隔で角度パルスを得るようにした角度
検出器を用いた場合について説明するが、とくに
30゜毎の角度間隔が制御上の絶対的な条件ではな
く、45゜あるいは60゜の間隔でもソフトウエアの
変更のみで対応できる。また制御上必要なエンジ
ン回転角度を基準位置との関係で特定できれば良
いため、角度位置の間隔はどこでも一定というよ
うに規定されていなくても良いのである。 Next, the operation of the ignition control device in the time counting mode will be described. Here, we will explain the time counting mode using an angle detector that obtains angle pulses at one reference position of the engine rotation angle and at angular intervals of 30 degrees.
Angular intervals of 30° are not an absolute requirement for control, and 45° or 60° intervals can be accommodated by simply changing the software. Furthermore, since it is sufficient to specify the engine rotation angle necessary for control in relation to the reference position, the interval between the angular positions does not have to be constant everywhere.
第16図は時間計数モードにおける角度信号処
理回路330の作動状態およびコンピユータ10
0による点火制御のタイミングを示すものであ
る。角度信号処理回路330は角度検出器300
からの基準パルス301に同期して第16図bに
示す出力信号333を生じ、また角度パルス30
2に同期して第16図aに示す出力信号332を
生じ、それぞれコンピユータ100のフラグ入力
端子4,1に印加する。図示するように、
角度を示す出力信号332はエンジン回転角度の
30゜毎の間隔をもち、この装置で制御しようとす
る点火時期の範囲、ほぼBTDC68゜からBTDC8
゜までの範囲、の一つ前の角度位置BTDC98゜と
BTDC68゜との間に基準位置を示す出力信号33
3が“1”レベルとなつて到来する。出力信号3
32,333の発生タイミングばかりでなくパル
ス幅も角度検出器300の機械的な構成によつて
制限される。この実施例ではパルス幅がエンジン
回転角度のほぼ10゜程度となるようにしている。 FIG. 16 shows the operating state of the angle signal processing circuit 330 and the computer 10 in the time counting mode.
This shows the timing of ignition control based on 0. The angle signal processing circuit 330 is the angle detector 300
produces an output signal 333 shown in FIG. 16b in synchronization with the reference pulse 301 from the angle pulse 30.
2, an output signal 332 shown in FIG. 16a is generated and applied to the flag input terminals 4 and 1 of the computer 100, respectively. As shown,
The output signal 332 indicating the angle is the engine rotation angle.
The ignition timing range to be controlled by this device is approximately BTDC68° to BTDC8, with intervals of 30°.
Range up to 98°, previous angular position BTDC98°
Output signal 33 indicating the reference position between BTDC68°
3 arrives at the "1" level. Output signal 3
32 and 333 as well as their pulse widths are limited by the mechanical configuration of the angle detector 300. In this embodiment, the pulse width is set to approximately 10 degrees of the engine rotation angle.
第16図cに示される割込要求信号331
(“0”レベル)は割込処理回路366(第10図
参照)によつて基準パルス301および角度パル
ス302が発生する毎に生じる。コンピユータ1
00が割込処理を受け付けると割込認知信号16
2を発生するので、割込要求信号331は“1”
レベルになり待機する。 Interrupt request signal 331 shown in FIG. 16c
(“0” level) is generated by the interrupt processing circuit 366 (see FIG. 10) every time the reference pulse 301 and the angle pulse 302 are generated. computer 1
When 00 accepts interrupt processing, interrupt recognition signal 16
2, the interrupt request signal 331 is “1”.
Get to the level and wait.
時間計数モードにおける制御プログラムを第1
7図に示す。初期化ルーチンAおよびメイン計算
ルーチンBは角度計数モードのときと大体同じで
ある。ただ、点火時期計算および通電開始時期計
算の結果得られる数値データが一旦エンジンの回
転角度として算定された後時間を表わす値に換算
した値である点で異なるだけである。そしてこの
時間を表わす数値データのうち、点火時期を表わ
す数値データはBTDC68゜を起点とする時間に相
当し、通電開始時期を表わす数値データは
BTDC338゜,308゜,278゜のいずれか一点を起
点とする時間に相当する。そして通電開始時期を
表わす場合BTDC338゜,308゜,278゜のいずれ
を起点としているかを計算結果により同時に特定
する。 The first control program in time counting mode
It is shown in Figure 7. The initialization routine A and the main calculation routine B are roughly the same as in the angle counting mode. The only difference is that the numerical data obtained as a result of the ignition timing calculation and the energization start timing calculation is a value that is once calculated as the rotation angle of the engine and then converted into a value representing time. Of the numerical data representing this time, the numerical data representing the ignition timing corresponds to the time starting from BTDC68°, and the numerical data representing the energization start time is
It corresponds to the time starting from any one of BTDC 338°, 308°, or 278°. When representing the start time of energization, it is simultaneously specified based on the calculation result whether the starting point is 338°, 308°, or 278° BTDC.
割込処理ルーチンCでは、メインルーチン待避
後エンジン回転角度がどの位置にあるかを、フラ
グ入力端子EF1,EF4の信号レベルによつて判
定し、それに基いて処理を選択する。BTDC83゜
で基準位置の割込がかかると、コンピユータ10
0は角度位置の割込の内部カウント値を一旦零と
し、次にBTDC68゜,38゜,8゜…を割込がかけ
られるとカウントによつて順に1回目の割込、2
回目の割込、3回目の割込…というように、割込
位置を順々に特定して判定する。 In the interrupt processing routine C, the position of the engine rotation angle after the main routine evacuation is determined based on the signal levels of the flag input terminals EF1 and EF4, and processing is selected based on this. When the reference position interrupt occurs at BTDC83°, the computer 10
0 temporarily sets the internal count value of the angular position interrupt to zero, and then when interrupts are applied to BTDC68°, 38°, 8°, etc., the first interrupt, 2nd interrupt, etc.
The interrupt positions are sequentially identified and determined, such as the second interrupt, the third interrupt, and so on.
BTDC68゜(あるいは248゜)で割込がかかる
と、コンピユータ100はメモリ120
(RAM)の所定番地N(複数番地にわたつて使用
することにより16ビツト、24ビツトの数値データ
をセツトし、コンピユータ100による16μs周
期の命令サイクルにより、セツトされた数値デー
タをくり返しダウンカウントする。“1”のダウ
ンカウントが終了する毎に、数値データが零にな
つたか否かの判定をし、零になるまでくり返す。
第16図eの時間T1はコンピユータ100によ
るカウントの過程を示す。カウント結果が零にな
つたタイミングが、点火時期計算によつて算定さ
れた結果としての実際の点火タイミングである。
カウント結果が零になると、コンピユータ100
はデータバス110と指令信号146を制御して
第16図fに示すラツチ回路420の出力信号4
21を“1”レベルに反転させる。このとき変換
回路400は、既に変換を終了しているから
BTDC403は“0”レベルであり、従つて出力
信号421が“1”レベルに反転したタイミング
で点火制御信号406(第16図h参照)が
“0”レベルに反転する。 When an interrupt occurs at BTDC 68° (or 248°), the computer 100 stores memory 120.
(RAM), 16-bit and 24-bit numerical data is set by using the specified address N (multiple addresses), and the set numerical data is repeatedly down-counted by the command cycle of 16 μs period by the computer 100. Every time the down count of "1" is completed, it is determined whether the numerical data has reached zero or not, and the process is repeated until the numerical data reaches zero.
Time T 1 in FIG. 16e shows the counting process by the computer 100. The timing at which the count result becomes zero is the actual ignition timing as a result of the ignition timing calculation.
When the count result becomes zero, the computer 100
controls data bus 110 and command signal 146 to output signal 4 of latch circuit 420 shown in FIG. 16f.
21 is inverted to "1" level. At this time, the conversion circuit 400 has already completed the conversion.
The BTDC 403 is at the "0" level, so the ignition control signal 406 (see FIG. 16h) is inverted to the "0" level at the timing when the output signal 421 is inverted to the "1" level.
コンピユータ100自身による数値データ/タ
イミング変換の過程でBTDC38゜の割込要求が生
じることもある。この場合、変換が一時中断する
が、ソフトウエア上の処理によつてBTDC38゜の
割込があつたかなかつたかで点火指令を遅延させ
ることによりその支障を避けることができる。例
えば通電遮断を規定する数値データを、予め点火
指令を遅延させる分だけ見込で小さい値として算
定し、数値データ/タイミングの変換余中に割込
があつたときは点火指令を遅延し、割込がないと
きは遅延をしないようなプログラムを設ければよ
い。なお、角度検出器300において、BTDC38
゜の角度パルス302が発生しない構造にしても
よい。 An interrupt request of 38° BTDC may occur in the process of numerical data/timing conversion by the computer 100 itself. In this case, the conversion will be temporarily interrupted, but this problem can be avoided by using software processing to delay the ignition command depending on whether the BTDC38° interrupt occurs or not. For example, the numerical data that specifies de-energization is calculated in advance as a smaller value by the amount that will delay the ignition command, and if an interrupt occurs during the conversion of the numerical data/timing, the ignition command is delayed and the If you don't have one, you can create a program that doesn't cause delays. In addition, in the angle detector 300, BTDC38
A structure may be adopted in which the angle pulse 302 of .degree. is not generated.
点火(通電遮断)の後、BTDC8゜,338゜,
308゜,278゜……と割込がかかると、コンピユー
タ100はメイン計算ルーチンBにおける通電開
始時期計算の結果により、その割込角度が通電開
始のための数値データ/期間データ変換の起点で
ある(YES)か否か(NNO)か(通電開始制御
を行なうのか否か)を判定する。いま通電遮断タ
イミングt4に対して通電開始時期をt3とする計算
結果が得られ、起点をBTDC308゜と決定され、
時間に換算するとBTDC308゜からT2後の時点が
数値データによつて規定されているとする。コン
ピユータ100はBTDC308゜で割込がかかる
と、期間T2を規定する数値データバス110を
通じて指令信号144のタイミングにより変換回
路400に設定する。カウンタ401は直ちに
128μsのクロツク信号153によりダウンカウ
ントを開始し、零検出信号403は第16図gに
示すように“1”レベルに反転する。次にコンピ
ユータ100はデータバスを用いて指令信号14
5によつてラツチ回路420の出力信号421を
“0”レベルに反転し、ノア回路405の出力信
号である点火制御信号406が零検出信号403
に依存するようにする。つまり、出力信号421
が“0”レベルに反転転すると、変換回路400
の変換終了のタイミングで零検出信号403が
“0”レベルに反転したとき点火制御信号406
は“1”レベルに反転する。この実施例における
エンジンは4気筒であつて、エンジン回転角度の
ほぼ180゜毎に点火を行なうから、角度パルス3
02に対応した所定の割込位置で通電開始、通電
遮断を行なうように制御プログラムを準備してお
けばよい。 After ignition (cut off current), BTDC8°, 338°,
When an interrupt occurs at 308°, 278°, etc., the computer 100 determines that the interrupt angle is the starting point for converting numerical data/period data for starting energization, based on the result of the energization start timing calculation in main calculation routine B. (YES) or not (NNO) (whether or not energization start control is performed). Now, we have obtained the calculation result that the energization start time is t 3 with respect to the energization cutoff timing t 4 , and the starting point is determined to be BTDC308°,
Suppose that the time point after T 2 from BTDC308° is defined by numerical data when converted to time. When the computer 100 is interrupted at 308° BTDC, it sets the conversion circuit 400 according to the timing of the command signal 144 via the numerical data bus 110 that defines the period T 2 . The counter 401 immediately
A down count is started by the 128 μs clock signal 153, and the zero detection signal 403 is inverted to the "1" level as shown in FIG. 16g. Computer 100 then uses the data bus to send command signal 14.
5, the output signal 421 of the latch circuit 420 is inverted to the "0" level, and the ignition control signal 406, which is the output signal of the NOR circuit 405, becomes the zero detection signal 403.
make it dependent on In other words, the output signal 421
When the voltage is inverted to “0” level, the conversion circuit 400
When the zero detection signal 403 inverts to the "0" level at the timing of the end of the conversion, the ignition control signal 406
is inverted to "1" level. The engine in this embodiment has four cylinders, and ignition is performed approximately every 180 degrees of engine rotation angle, so the angle pulse is 3.
A control program may be prepared so as to start energization and cut off energization at a predetermined interrupt position corresponding to 02.
点火制御信号406の増幅信号3bにおいて、
“1”レベルへの反転時点t1,t3は通電の開始、
“0”レベルへの反転時点t2,t4は通電の遮断を示
す。 In the amplified signal 3b of the ignition control signal 406,
At the time of reversal to “1” level t 1 and t 3 , energization starts,
The time points t 2 and t 4 of reversal to the “0” level indicate the interruption of energization.
角度パルス302に基く割込において、通電開
始もしくは通電遮断の制御をするエンジン回転角
度でないときは、メイン計算ルーチンBに戻つて
その処理をくり返す。 In the interrupt based on the angle pulse 302, if the engine rotation angle is not suitable for controlling the start or cut off of energization, the process returns to main calculation routine B and repeats the process.
なお、この実施例においては、時間計数モード
において通電遮断に関する数値データ/期間デー
タ変換をコンピユータ100自身のソフトウエア
での時間計数機能を利用して行なつているが、ハ
ードウエアの変換回路によつて行なうように変形
してもよい。例えば、角度計数モードでのみ使用
している変換回路410の構成を変換回路400
のように兼用タイプの構成にし、角度計数モード
における計数用パルスもしくは所定周波数のクロ
ツク信号をクロツク信号切換回路380と同様に
して選択するようにしてもよい。 Note that in this embodiment, in the time counting mode, the numerical data/period data regarding power cutoff is converted using the time counting function of the computer 100's own software. It may also be modified to do so. For example, the configuration of the conversion circuit 410 used only in the angle counting mode may be changed to the configuration of the conversion circuit 400.
It is also possible to adopt a dual-purpose configuration as shown in FIG. 3, and select the counting pulse or the clock signal of a predetermined frequency in the angle counting mode in the same way as the clock signal switching circuit 380.
処理装置の入出力信号線に切換操作により2値
信号を生じさせる抵抗と、起動時に同期してこの
2値信号を記憶する記憶回路を備えることによつ
て、処理機能変更が容易に行なえると共に、前記
入出力信号線は本来の信号伝送用として使用でき
所期の目的を達成できるものである。 By equipping the input/output signal line of the processing device with a resistor that generates a binary signal through a switching operation and a memory circuit that stores this binary signal in synchronization with startup, processing functions can be easily changed. , the input/output signal line can be used for original signal transmission and can achieve the intended purpose.
第1図は本発明を点火制御装置に適用した一実
施例の全体構成を示すブロツク線図、第2図は第
1図中A/D変換回路220の詳細を示す電気結
線図、第3図は第2図のA/D変換回路の作動説
明に供するタイムチヤート図、第4図は第1図中
電圧検出回路180の詳細を示す電気結線図、第
5図は第4図の電圧検出回路の作動説明に供する
タイムチヤート図、第6図は第1図中直流再生回
路191の詳細を示す電気結線図、第7図は第6
図の直流再生回路の作動原理説明に供するタイム
チヤート図、第8図は第6図の直流再生回路の装
置障害時の作動説明に供するタイムチヤート図、
第9図は第1図中モード切換回路310およびラ
ツチ回路320の詳細を示す電気結線図、第10
図は第1図中角度信号処理回路330の詳細を示
す電気結線図、第11図は第10図の角度信号処
理回路中分周回路340の作動説明に供するタイ
ムチヤート図、第12図は第10図の角度信号処
理回路中計数用クロツク発生回路358の作動説
明に供するタイムチヤート図、第13図は第1図
中コンピユータ100が制御プログラムに従つて
行なう処理のうち、点火制御における通電開始時
期の算定に係わる処理を示す計算チヤート図、第
14図はコンピユータ100が角度計数モードを
制御するときの制御プログラムの流れを示すフロ
ーチヤート図、第15図は第1図の点火制御装置
の角度計数モードでの作動説明に供するタイムチ
ヤート図、第16図は点火制御装置の時間計数モ
ードでの作動説明に供するタイムチヤート図、第
17図はコンピユータ100が時間計数モードを
制御するときの制御プログラムの流れを示すフロ
ーチヤート図である。
100…デジタルコンピユータ、190…初期
化回路、194…初期化タイミング信号線、31
0…切換回路としてのモード切換回路、312,
314…抵抗、320…記憶回路としてのラツチ
回路、321,322…制御入力信号線、330
…信号処理回路としての角度信号処理回路、33
3(311)…信号線。
FIG. 1 is a block diagram showing the overall configuration of an embodiment in which the present invention is applied to an ignition control device, FIG. 2 is an electrical wiring diagram showing details of the A/D conversion circuit 220 in FIG. 1, and FIG. is a time chart for explaining the operation of the A/D conversion circuit in FIG. 2, FIG. 4 is an electrical wiring diagram showing details of the voltage detection circuit 180 in FIG. 1, and FIG. 5 is the voltage detection circuit in FIG. 4. FIG. 6 is an electrical wiring diagram showing details of the DC regeneration circuit 191 in FIG. 1, and FIG.
FIG. 8 is a time chart for explaining the operation principle of the DC regeneration circuit shown in FIG. 6, and FIG. 8 is a time chart for explaining the operation of the DC regeneration circuit shown in FIG.
FIG. 9 is an electrical wiring diagram showing details of the mode switching circuit 310 and latch circuit 320 in FIG.
The diagrams are electrical wiring diagrams showing details of the angle signal processing circuit 330 in FIG. FIG. 10 is a time chart for explaining the operation of the counting clock generation circuit 358 in the angle signal processing circuit, and FIG. 13 is a time chart showing the energization start timing in ignition control among the processes performed by the computer 100 in FIG. 1 according to the control program. FIG. 14 is a flowchart showing the flow of the control program when the computer 100 controls the angle counting mode, and FIG. 15 is the angle counting process of the ignition control device in FIG. 1. FIG. 16 is a time chart diagram for explaining the operation of the ignition control device in the time counting mode. FIG. 17 is a time chart diagram for explaining the operation of the ignition control device in the time counting mode. It is a flowchart diagram showing a flow. 100... Digital computer, 190... Initialization circuit, 194... Initialization timing signal line, 31
0...Mode switching circuit as a switching circuit, 312,
314...Resistor, 320...Latch circuit as a memory circuit, 321, 322...Control input signal line, 330
...Angle signal processing circuit as a signal processing circuit, 33
3 (311)...Signal line.
Claims (1)
て構成される第1の手段と、 この第1の手段の出力信号をその出力端子より
受けて所定の作動を行なう第2の手段と、 外囲条件により操作される接続手段を含みこの
接続手段の切換操作により前記出力端子に抵抗を
介して2値信号を生じさせる第3の手段とを備
え、 前記第1の手段は、起動時に同期して前記第3
の手段よりの2値信号を前記出力端子より入力し
て記憶する記憶手段を含み、この記憶値に応じて
前記所定の処理を行なうようにしたことを特徴と
する制御条件設定装置。[Claims] 1. A first means constituted as an integrated circuit body that selects and performs a predetermined process, and a second means that receives an output signal of the first means from its output terminal and performs a predetermined operation. and a third means for generating a binary signal at the output terminal via a resistor by a switching operation of the connecting means, the first means comprising a connecting means operated according to the surrounding conditions, and a binary signal is generated at the output terminal via a resistance. , synchronously at startup, the third
A control condition setting device comprising a storage means for inputting and storing a binary signal from the means through the output terminal, and performing the predetermined processing according to the stored value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3581979A JPS5572203A (en) | 1979-03-26 | 1979-03-26 | Control condition setter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3581979A JPS5572203A (en) | 1979-03-26 | 1979-03-26 | Control condition setter |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14487478A Division JPS5572653A (en) | 1978-11-22 | 1978-11-22 | Engine control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5572203A JPS5572203A (en) | 1980-05-30 |
| JPS6152485B2 true JPS6152485B2 (en) | 1986-11-13 |
Family
ID=12452545
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3581979A Granted JPS5572203A (en) | 1979-03-26 | 1979-03-26 | Control condition setter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5572203A (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE3009822C2 (en) * | 1980-03-14 | 1986-09-25 | Robert Bosch Gmbh, 7000 Stuttgart | Ignition system for internal combustion engines |
| JPS5823271A (en) * | 1981-08-04 | 1983-02-10 | Nippon Denso Co Ltd | Electronic advance device of ignition unit for internal combustion engine |
| GB8319694D0 (en) * | 1983-07-21 | 1983-08-24 | Lucas Ind Plc | Ic engine coil-type ignition control |
| US4625704A (en) * | 1985-06-28 | 1986-12-02 | Teledyne Industries, Inc. | Electronic ignition system |
-
1979
- 1979-03-26 JP JP3581979A patent/JPS5572203A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5572203A (en) | 1980-05-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0238791B2 (en) | ||
| US4649888A (en) | Ignition control apparatus for internal combustion engines | |
| US6636989B1 (en) | Electronic control apparatus and method for on-board rewriting of non-volatile memories | |
| JPS6019220A (en) | Microcomputer | |
| JPH0751936B2 (en) | Engine controller | |
| US4372274A (en) | Digital control system for internal combustion engine | |
| KR100671182B1 (en) | Ignition Control Device and Ignition Control Method | |
| US20070260865A1 (en) | Boot control apparatus and method | |
| JPS6152485B2 (en) | ||
| JP6911627B2 (en) | AD conversion processing device | |
| EP0369470B1 (en) | Data processing apparatus for producing in sequence pulses having variable width at output ports | |
| JPS6060022B2 (en) | Internal combustion engine control device | |
| RU2445673C1 (en) | Device to control data output | |
| JP3331880B2 (en) | Control device using microcomputer | |
| US5119381A (en) | Program execution malfunction detecting method for an automobile controlling device | |
| JPS6211184B2 (en) | ||
| JPS6243390Y2 (en) | ||
| JPS6017270A (en) | Ignition timing control system for internal-combustion engine | |
| JPH01267364A (en) | Ignition device for internal combustion engine | |
| JPS582468A (en) | Engine ignition control device | |
| JP2684462B2 (en) | Vehicle control device | |
| JP2001273274A (en) | Semiconductor integrated circuit and test mode setting circuit thereof | |
| JPS6253712B2 (en) | ||
| JPS6242154B2 (en) | ||
| JPH0161255B2 (en) |