JP3331880B2 - Control device using microcomputer - Google Patents

Control device using microcomputer

Info

Publication number
JP3331880B2
JP3331880B2 JP25620496A JP25620496A JP3331880B2 JP 3331880 B2 JP3331880 B2 JP 3331880B2 JP 25620496 A JP25620496 A JP 25620496A JP 25620496 A JP25620496 A JP 25620496A JP 3331880 B2 JP3331880 B2 JP 3331880B2
Authority
JP
Japan
Prior art keywords
communication
timing
external memory
control
stop timing
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 - Fee Related
Application number
JP25620496A
Other languages
Japanese (ja)
Other versions
JPH10103148A (en
Inventor
祥伸 荒川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kokusan Denki Co Ltd
Original Assignee
Kokusan Denki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kokusan Denki Co Ltd filed Critical Kokusan Denki Co Ltd
Priority to JP25620496A priority Critical patent/JP3331880B2/en
Publication of JPH10103148A publication Critical patent/JPH10103148A/en
Application granted granted Critical
Publication of JP3331880B2 publication Critical patent/JP3331880B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータを用いて特定の制御対象を制御する制御方法及び制
御装置に関し、特に、内燃機関用点火装置の点火時期
や、内燃機関用燃料噴射装置のインジェクタを制御する
のに好適な制御方法及び制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method and a control device for controlling a specific control object using a microcomputer, and more particularly to an ignition timing of an ignition device for an internal combustion engine and an injector of a fuel injection device for the internal combustion engine. The present invention relates to a control method and a control device suitable for controlling the control.

【0002】[0002]

【従来の技術】マイクロコンピュータを用いて内燃機関
の点火時期や燃料噴射装置のインジェクタを制御する場
合に、不揮発性メモリをマイクロプロセッサ内に備えた
マイクロコンピュータを用いると、機関の仕様の変更
や、要求特性の変更等に対処するためにプログラムや制
御データを変更することが必要になった場合に対応でき
ないため不便である。そこで、この種の制御装置におい
ては、制御に必要なプログラムや制御データを不揮発性
の外部メモリに記憶させて、外部メモリ(ROMまたは
EEPROM)とマイクロプロセッサとの間を信号線
(アドレス/データバス)を通して接続する構成をとっ
ている。このように構成しておけば、ROMを交換する
ことによりプログラム及び制御データを容易に変更する
ことができ、また外部メモリとしてEEPROMを用い
れば、プログラム及び制御データを容易に書き替えるこ
とができる。
2. Description of the Related Art When a microcomputer having a nonvolatile memory in a microprocessor is used to control the ignition timing of an internal combustion engine and the injector of a fuel injection device using the microcomputer, the specification of the engine can be changed, This is inconvenient because it is not possible to cope with a case where it is necessary to change a program or control data in order to cope with a change in required characteristics. Therefore, in this type of control device, a program and control data required for control are stored in a nonvolatile external memory, and a signal line (address / data bus) is connected between the external memory (ROM or EEPROM) and the microprocessor. ). With this configuration, the program and control data can be easily changed by replacing the ROM, and the program and control data can be easily rewritten by using an EEPROM as the external memory.

【0003】図4はマイクロコンピュータを用いた内燃
機関用制御装置1の構成例を示したもので、同図におい
て2はCPU、タイマ、内部RAM、割込みコントロー
ラ等を1チップにまとめたマイクロプロセッサ3と、プ
ログラム及び制御データを記憶したROM(読出し専用
メモリ)やEEPROM(書き換えが可能な不揮発性メ
モリ)等からなる外部メモリ4とからなるマイクロコン
ピュータである。マイクロプロセッサ3は図示しない回
路基板にコネクタを介して、または直接実装され、マイ
クロプロセッサ3と外部メモリ4との間は、回路基板に
形成された信号線(アドレス/データバスライン)5を
通して接続されている。
FIG. 4 shows an example of the configuration of a control device 1 for an internal combustion engine using a microcomputer. In FIG. 4, reference numeral 2 denotes a microprocessor 3 in which a CPU, a timer, an internal RAM, an interrupt controller and the like are integrated into one chip. And a external memory 4 such as a ROM (read only memory) storing programs and control data, an EEPROM (rewritable nonvolatile memory), and the like. The microprocessor 3 is mounted on a circuit board (not shown) via a connector or directly, and the microprocessor 3 and the external memory 4 are connected through a signal line (address / data bus line) 5 formed on the circuit board. ing.

【0004】制御装置1には、内燃機関用点火装置の出
力部を構成する点火コイル6と内燃機関に燃料を供給す
る燃料噴射装置のインジェクタ7のソレノイドコイル7
aと、バッテリ8から排気タイミング制御用バルブなど
を駆動するアクチュエータのモータ9に供給される電流
をオンオフする接点10aを有する電磁リレー10の励
磁コイル10bとが接続されている。
[0004] The control device 1 includes an ignition coil 6 constituting an output portion of an ignition device for an internal combustion engine and a solenoid coil 7 of an injector 7 of a fuel injection device for supplying fuel to the internal combustion engine.
and an exciting coil 10b of an electromagnetic relay 10 having a contact 10a for turning on and off a current supplied from a battery 8 to a motor 9 of an actuator for driving an exhaust timing control valve and the like.

【0005】制御装置1内には、点火コイル6の一次電
流を制御する点火回路11が設けられて、該点火回路1
1と点火コイル6とにより内燃機関用点火装置が構成さ
れている。点火回路11は、マイクロプロセッサ3から
点火信号Vi が与えられた時に点火コイル6の一次電流
に急激な変化を生じさせて点火コイルの二次コイルに点
火用の高電圧を誘起させる。この高電圧は機関の気筒に
取り付けられた点火プラグ12に印加されている。点火
回路11は、例えば、点火コイルの一次側に設けられて
図示しない電源により一方の極性に充電されるコンデン
サと、点火信号が与えられた時に導通して該コンデンサ
の電荷を点火コイル6の一次コイルを通して放電させる
スイッチ素子とを備えていて、コンデンサの電荷を点火
コイルの一次コイルを通して放電させることにより点火
コイルの二次コイルに点火用の高電圧を誘起させる。
[0005] An ignition circuit 11 for controlling the primary current of the ignition coil 6 is provided in the control device 1.
1 and an ignition coil 6 constitute an ignition device for an internal combustion engine. The ignition circuit 11 causes a sudden change in the primary current of the ignition coil 6 when the ignition signal Vi is given from the microprocessor 3 to induce a high voltage for ignition in the secondary coil of the ignition coil. This high voltage is applied to a spark plug 12 attached to a cylinder of the engine. The ignition circuit 11 is, for example, a capacitor provided on the primary side of the ignition coil and charged to one polarity by a power supply (not shown). A switch element for discharging through the coil, and discharging a charge of the capacitor through the primary coil of the ignition coil to induce a high voltage for ignition in the secondary coil of the ignition coil.

【0006】制御装置1内にはまた、インジェクタ7の
ソレノイドコイル7aに供給する通電電流をオンオフす
るインジェクタ駆動回路13と、リレー10の励磁コイ
ル10bに供給する励磁電流をオンオフするリレー駆動
回路14とが設けられている。
The control device 1 also includes an injector drive circuit 13 for turning on and off a current supplied to a solenoid coil 7a of the injector 7, and a relay drive circuit 14 for turning on and off an excitation current supplied to an exciting coil 10b of the relay 10. Is provided.

【0007】インクジェクタ駆動回路13は、マイクロ
プロセッサ3から矩形波状の駆動信号Vd が与えられて
いる間インジェクタ7のソレノイドコイル7aに駆動電
流を流す。駆動信号Vd の立上り時刻によりインジェク
タ7が燃料の噴射を開始するタイミングが決まり、駆動
信号Vd の信号幅によりインジェクタ7が燃料を噴射す
る時間(燃料の噴射量)が決まる。
The injector drive circuit 13 supplies a drive current to the solenoid coil 7a of the injector 7 while receiving the rectangular drive signal Vd from the microprocessor 3. The timing at which the injector 7 starts fuel injection is determined by the rise time of the drive signal Vd, and the time (fuel injection amount) during which the injector 7 injects fuel is determined by the signal width of the drive signal Vd.

【0008】またリレー駆動回路14は、マイクロプロ
セッサ3から与えられる制御信号に応じてリレーの励磁
コイル10bに励磁電流を流す。リレー10は、励磁電
流が与えられたときにその接点10aを閉じてモータ9
に通電する。
The relay driving circuit 14 supplies an exciting current to the exciting coil 10b of the relay according to a control signal given from the microprocessor 3. The relay 10 closes its contact 10a when an exciting current is applied, and
Turn on electricity.

【0009】[0009]

【発明が解決しようとする課題】上記のような制御装置
1においては、内燃機関の点火動作が行われる際に点火
コイルの二次コイルに放電電流が流れるため大きな電気
的ノイズ(点火ノイズ)が発生し、このノイズが回路基
板の接地回路などを通して制御装置1内に侵入して信号
線5に乗るおそれがある。
In the control device 1 as described above, a large electric noise (ignition noise) is generated because a discharge current flows through the secondary coil of the ignition coil when the internal combustion engine is ignited. Then, there is a possibility that this noise may enter the control device 1 through the ground circuit of the circuit board and get on the signal line 5.

【0010】またインジェクタ7のソレノイドコイル7
aに供給されていた駆動電流が遮断されると、該ソレノ
イドコイル7aに高いノイズ電圧が誘起し、このノイズ
電圧が接地回路や電源回路を通して制御装置内に侵入し
て信号線5に乗るおそれがある。
The solenoid coil 7 of the injector 7
When the drive current supplied to the control signal a is cut off, a high noise voltage is induced in the solenoid coil 7a, and this noise voltage may enter the control device through a ground circuit or a power supply circuit and get on the signal line 5. is there.

【0011】更にリレー10の励磁電流が遮断された際
にも励磁コイル10bに高いノイズ電圧が誘起するた
め、信号線5にノイズが侵入するおそれがある。
Further, even when the exciting current of the relay 10 is cut off, a high noise voltage is induced in the exciting coil 10b, so that noise may enter the signal line 5.

【0012】マイクロプロセッサ3と外部メモリ4とを
接続する信号線にノイズが乗ると、マイクロコンピュー
タが誤動作するおそれがあるため、従来は、マイクロプ
ロセッサ3及び外部メモリ4を実装する回路基板に設け
る信号線5の長さを極力短くしてノイズが信号線に乗り
難くしたり、回路基板に設ける接地回路のパターンや電
源回路のパターンに工夫を凝らすことによりノイズが信
号線に侵入し難くしたり、マイクロプロセッサ3を実装
する基板を多層化することによりノイズが侵入し難くし
たりする対策がとられていた。
If noise is applied to a signal line connecting the microprocessor 3 and the external memory 4, the microcomputer may malfunction. Conventionally, a signal provided on a circuit board on which the microprocessor 3 and the external memory 4 are mounted is provided. By making the length of the wire 5 as short as possible, it is difficult for the noise to ride on the signal line, or by devising the pattern of the ground circuit and the power supply circuit provided on the circuit board, the noise is hardly penetrated into the signal line, Measures have been taken to make it difficult for noise to enter by making the substrate on which the microprocessor 3 is mounted multi-layered.

【0013】また図5に示したように、信号線5に抵抗
R1 ,R2 ,…,Rn 及びコンデンサC1 ,C2 ,…,
Cn を接続して信号線のインピーダンスを低くすること
により信号線5に乗ったノイズを除去する方法も考えら
れている。
As shown in FIG. 5, the signal line 5 includes resistors R1, R2,..., Rn and capacitors C1, C2,.
A method of removing noise on the signal line 5 by connecting Cn to lower the impedance of the signal line has also been considered.

【0014】上記の対策のうち、信号線5を短くした
り、接地回路のパターンや電源回路のパターンに工夫を
凝らしたりする方法をとると、回路基板の設計の自由度
が低くなるため、回路基板の設計が難しくなってコスト
が高くなるという問題があり、また多層化基板は製造が
面倒で、著しいコスト高を招くため、実用性が乏しいと
いう問題があった。
If the method of shortening the signal line 5 or devising the pattern of the ground circuit and the pattern of the power supply circuit among the above measures is used, the degree of freedom in designing the circuit board is reduced. There is a problem in that the design of the substrate becomes difficult and the cost increases. In addition, there is a problem in that the production of the multilayered substrate is troublesome and the cost is remarkably increased.

【0015】更に、図5に示すように、抵抗やコンデン
サを接続して信号線のインピーダンスを低くする方法を
とると、回路部品を多く必要とするため、コストが高く
なるだけでなく、回路基板が大形化するという問題があ
った。
Further, as shown in FIG. 5, when a method of connecting a resistor or a capacitor to lower the impedance of a signal line is employed, a large number of circuit components are required, which not only increases the cost but also increases the cost of the circuit board. However, there was a problem that the size became large.

【0016】また上記のような対策を講じても、信号線
5にノイズが侵入するのを完全に防止することは困難で
あり、特に点火ノイズは非常に広範囲の周波数成分を含
むため、信号線に侵入するのを完全に防ぐことは困難で
あった。
Even if the above measures are taken, it is difficult to completely prevent noise from entering the signal line 5, and especially since ignition noise contains a very wide range of frequency components, It was difficult to completely prevent the intrusion into the city.

【0017】上記のような問題は、内燃機関用の制御装
置に特有のものではなく、マイクロプロセッサと、プロ
グラム及び制御データを記憶した不揮発性外部メモリー
との間を信号線により接続したマイクロコンピュータを
用いて、電気的ノイズが発生する特定の制御対象を制御
する場合に共通の問題である。
The above problem is not unique to a control device for an internal combustion engine, and a microcomputer in which a microprocessor and a nonvolatile external memory storing programs and control data are connected by a signal line. This is a common problem when controlling a specific control object in which electrical noise is generated by using the control signal.

【0018】本発明の目的は、マイクロプロセッサと外
部メモリとの間を接続する信号線に乗ったノイズの影響
を受けずに制御対象の制御を行うことができるようにし
制御装置を提供することにある。
An object of the present invention is to provide a control device capable of controlling a control target without being affected by noise on a signal line connecting a microprocessor and an external memory. It is in.

【0019】[0019]

【課題を解決するための手段】本発明は、マイクロプロ
セッサとプログラム及び制御データを記憶した不揮発性
外部メモリーとの間を信号線により接続したマイクロコ
ンピュータを用いて、電気的ノイズが発生する期間を予
測することができる特定の制御対象を制御する制御方法
に係わるもので、本発明においては、制御対象からノイ
ズが発生することが予想される期間マイクロプロセッサ
と外部メモリとの間の通信を停止させるようにした。
According to the present invention, a period in which electrical noise is generated using a microcomputer in which a microprocessor and a non-volatile external memory storing programs and control data are connected by a signal line. The present invention relates to a control method for controlling a specific control target that can be predicted. In the present invention, communication between a microprocessor and an external memory is stopped during a period in which noise is expected to be generated from the control target. I did it.

【0020】上記のように、制御対象がノイズを発生す
ることが予想される期間マイクロプロセッサと外部メモ
リとの間の通信を停止させて制御動作を中断するように
すると、信号線に乗ったノイズの影響を受けないため、
ノイズにより誤った制御動作が行われるのを防ぐことが
できる。また回路基板の回路パターンに工夫を凝らした
り、信号線のインピーダンスを低下させるための回路部
品を追加したりする必要がないため、コストの上昇を招
いたり、回路基板の大形化を招いたりするのを防ぐこと
ができる。
As described above, if the control operation is interrupted by stopping the communication between the microprocessor and the external memory during the period in which the control object is expected to generate noise, the noise on the signal line Is not affected by
An erroneous control operation due to noise can be prevented. In addition, since it is not necessary to devise a circuit pattern of a circuit board or to add a circuit component for lowering the impedance of a signal line, the cost is increased and the circuit board is enlarged. Can be prevented.

【0021】制御対象からノイズが発生することが予想
される期間マイクロプロセッサと外部メモリとの間の通
信を停止させるには、例えば、制御対象が電気的ノイズ
を発生するタイミングよりも僅かに早い時刻を通信停止
タイミングとして検出して、この通信停止タイミングが
検出された時にマイクロプロセッサと外部メモリとの間
の通信を禁止するとともに通信停止時間の計測を開始
し、該通信停止時間が計測された時にマイクロプロセッ
サと外部メモリとの間の通信を許可するようにすればよ
い。
To stop communication between the microprocessor and the external memory during a period in which noise is expected to be generated from the control target, for example, a time slightly earlier than the timing at which the control target generates electrical noise Is detected as the communication stop timing, and when the communication stop timing is detected, the communication between the microprocessor and the external memory is prohibited and the measurement of the communication stop time is started, and when the communication stop time is measured, Communication between the microprocessor and the external memory may be permitted.

【0022】上記の方法を実施するために用いる制御装
置は、CPUとタイマと内部RAMと割込みコントロー
ラとを有するマイクロプロセッサと、プログラム及び制
御データを記憶した不揮発性の外部メモリとを備えて、
CPUと外部メモリとの間を信号線により接続したマイ
クロコンピュータを用いて電気的ノイズが発生するタイ
ミングを予測することができる特定の制御対象を制御す
る制御装置であって、この制御装置は、制御対象が電気
的ノイズを発生するタイミングよりも僅かに早い時刻を
通信停止タイミングとして検出する通信停止タイミング
検出手段と、通信停止タイミング検出手段により通信停
止タイミングが検出された時に通信停止時間をタイマに
セットするタイマセット手段と、通信停止タイミングが
検出された時にマイクロプロセッサと外部メモリとの間
の通信を禁止し、タイマが通信停止時間の計時を完了し
た時にマイクロプロセッサと外部メモリとの間の通信を
許可する通信制御手段とを設けることにより構成するこ
とができる。
A control device used to carry out the above method includes a microprocessor having a CPU, a timer, an internal RAM, and an interrupt controller, and a non-volatile external memory storing programs and control data,
A control device for controlling a specific control target capable of predicting a timing at which electrical noise occurs using a microcomputer in which a CPU and an external memory are connected by a signal line, the control device comprising: Communication stop timing detection means that detects a time slightly earlier than the timing at which the target generates electrical noise as communication stop timing, and sets a communication stop time to a timer when the communication stop timing is detected by the communication stop timing detection means Timer setting means for performing communication between the microprocessor and the external memory when communication stop timing is detected, and prohibiting communication between the microprocessor and the external memory when the timer completes measuring the communication stop time. It can be configured by providing a permitted communication control means.

【0023】上記の制御装置はまた、マイクロコンピュ
ータが起動した後に一定回数だけ内部RAMに記憶され
たプログラムをループするループプログラムを内部RA
Mに書き込むループプログラム書き込み手段と、制御対
象が電気的ノイズを発生するタイミングよりも僅かに早
い時刻を通信停止タイミングとして検出する通信停止タ
イミング検出手段と、通信停止タイミング検出手段によ
り通信停止タイミングが検出された時にマイクロプロセ
ッサと外部メモリーとの間の通信を禁止した後ループプ
ログラムを実行させる通信停止タイミングループ処理手
段と、ループプログラムによる一定回数のループが終了
した時にマイクロプロセッサと外部メモリとの間の通信
を許可する通信許可手段とを設けることによっても構成
することができる。
The above-described control device also executes a loop program for looping a program stored in the internal RAM a certain number of times after the microcomputer is started up.
A loop program writing means for writing to M, a communication stop timing detecting means for detecting a time slightly earlier than a timing at which the control object generates electrical noise as a communication stop timing, and a communication stop timing detected by the communication stop timing detecting means A communication stop timing loop processing means for executing a loop program after prohibiting communication between the microprocessor and the external memory when the loop is executed, and a communication between the microprocessor and the external memory when a predetermined number of loops by the loop program are completed. It can also be configured by providing communication permission means for permitting communication.

【0024】上記制御対象は例えば内燃機関用点火装置
である。制御対象が内燃機関用点火装置である場合、電
気的ノイズが発生するタイミングは点火タイミングであ
る。また上記制御対象が内燃機関用燃料噴射装置のイン
ジェクタである場合、電気的ノイズが発生するタイミン
グは、インジェクタのソレノイドコイルへの通電を遮断
するタイミングである。
The control object is, for example, an ignition device for an internal combustion engine. When the control target is an ignition device for an internal combustion engine, the timing at which electric noise occurs is the ignition timing. Further, when the control target is the injector of the fuel injection device for an internal combustion engine, the timing at which the electrical noise occurs is the timing at which the energization to the solenoid coil of the injector is cut off.

【0025】上記の信号線は、回路基板に回路パターン
として形成されているものでもよく、回路基板にコネク
タを介して接続される信号ケーブルであってもよい。
The signal line may be formed as a circuit pattern on a circuit board, or may be a signal cable connected to the circuit board via a connector.

【0026】[0026]

【発明の実施の形態】図1は本発明に係わる制御装置の
うち、マイクロコンピュータの部分の構成を示したもの
で、同図において3はマイクロプロセッサ(マイクロチ
ップコンピュータ)、4は外部メモリである。この例で
は、図4に示した例と同様に、内燃機関用点火装置と内
燃機関用燃料噴射装置と排気タイミング調整用バルブな
どを駆動するアクチュエータのモータへの通電をオンオ
フするリレーとを制御対象として、これらの制御対象を
マイクロコンピュータにより制御するものとする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a configuration of a microcomputer part of a control device according to the present invention. In FIG. 1, reference numeral 3 denotes a microprocessor (microchip computer), and reference numeral 4 denotes an external memory. . In this example, similarly to the example shown in FIG. 4, the ignition device for the internal combustion engine, the fuel injection device for the internal combustion engine, and the relay for turning on and off the power supply to the motor of the actuator for driving the exhaust timing adjusting valve and the like are controlled. It is assumed that these control targets are controlled by a microcomputer.

【0027】図示のマイクロプロセッサ3は、CPU3
a、A/D変換器などを含む入出力インターフェース3
b、第1及び第2のタイマ3c及び3d、RAM3e、
割込みコントローラ3f等を1チップにまとめたものか
らなっていて、回路基板20にコネクタを介して、また
は直接取り付けられている。外部メモリ4は、ROMま
たはEEPROMとRAMとからなっていて、回路基板
20にコネクタを介して取り付けられている。マイクロ
プロセッサ3のCPU3aと外部メモリ4との間は回路
基板20に形成された信号線(アドレス/データバス)
5を通して接続されている。CPU3aには、制御に必
要な各種センサの出力と、内燃機関に取り付けられた信
号発電機内のパルサコイルが発生するパルス信号を波形
整形して得た位置検出信号とが入力されている。通常信
号発電機は誘導子形の発電機からなっていて、パルサコ
イルは、基準となる機関の第1の回転角度位置(基準位
置)で第1のパルス信号を発生し、第1の回転角度位置
よりも一定の角度遅れた第2の回転角度位置で第2のパ
ルス信号を発生する。これらのパルス信号は図示しない
波形整形回路により第1の回転角度位置及び第2の回転
角度位置でそれぞれレベルがステップ状に変化する第1
及び第2の位置検出信号Vp1及びVp2に変換されて、イ
ンターフェース3bを介してCPU3aに入力されてい
る。第1の回転角度位置は機関の上死点よりも進んだ位
置に設定されていて、第1の位置検出信号Vp1は点火時
期の計測を開始する時期を定めるために用いられる。ま
た第2の回転角度位置は、機関の上死点付近の一定の回
転角度位置(最小進角)に設定されていて、第2の位置
検出信号Vp2は、機関の低速時の点火時期を定めるため
に用いられる。
The illustrated microprocessor 3 has a CPU 3
a, input / output interface 3 including A / D converter, etc.
b, first and second timers 3c and 3d, RAM 3e,
The interrupt controller 3f and the like are integrated into one chip, and are attached to the circuit board 20 via a connector or directly. The external memory 4 includes a ROM or an EEPROM and a RAM, and is attached to the circuit board 20 via a connector. A signal line (address / data bus) formed on the circuit board 20 between the CPU 3a of the microprocessor 3 and the external memory 4.
5 are connected. The outputs of various sensors necessary for control and a position detection signal obtained by shaping a pulse signal generated by a pulsar coil in a signal generator mounted on the internal combustion engine are input to the CPU 3a. Usually, the signal generator comprises an inductor-type generator, and the pulsar coil generates a first pulse signal at a first rotation angle position (reference position) of a reference engine, and generates a first rotation angle position. A second pulse signal is generated at a second rotation angle position delayed by a certain angle. These pulse signals are changed by a waveform shaping circuit (not shown) in a first rotation angle position and a second rotation angle position.
And converted into second position detection signals Vp1 and Vp2, and input to the CPU 3a via the interface 3b. The first rotation angle position is set at a position advanced from the top dead center of the engine, and the first position detection signal Vp1 is used to determine the timing to start measuring the ignition timing. The second rotation angle position is set to a constant rotation angle position (minimum advance angle) near the top dead center of the engine, and the second position detection signal Vp2 determines the ignition timing of the engine at low speed. Used for

【0028】外部メモリ4のROMには、各制御対象を
制御するために必要なプログラムと、制御に必要な定
数、数式、演算用マップなどを含む制御データとが記憶
されている。またマイクロプロセッサ3内のRAM3e
には、マイクロコンピュータの起動後制御動作を開始さ
せる前に、外部メモリ4から割込みコントローラ3fを
制御するために必要なプログラムやCPUと外部メモリ
との間の通信を停止する際に必要な定数等が読み込まれ
る。CPU3aは割込みコントローラ3fにより外部メ
モリへの割込みが許可されているときに外部メモリに記
憶されたプログラムを読み出して実行することにより、
点火時期の演算や燃料噴射時間の演算などを行う。
The ROM of the external memory 4 stores a program necessary for controlling each control object and control data including constants, mathematical expressions, arithmetic maps, and the like necessary for control. The RAM 3e in the microprocessor 3
Before the control operation is started after the microcomputer is started, a program necessary for controlling the interrupt controller 3f from the external memory 4 and constants necessary for stopping communication between the CPU and the external memory are provided. Is read. The CPU 3a reads and executes a program stored in the external memory when the interrupt to the external memory is permitted by the interrupt controller 3f, thereby executing
Calculation of ignition timing, calculation of fuel injection time, and the like are performed.

【0029】マイクロコンピュータにより制御される制
御対象が電気ノイズを発生すると、そのノイズが信号線
5に乗ってCPUが読み取るプログラムの内容が変化し
たり、プログラムを読み取ることができなくなったりし
て、誤動作が生じたり、制御動作がロックしたりするお
それがある。
When a control target controlled by the microcomputer generates electric noise, the noise rides on the signal line 5 to change the contents of the program read by the CPU or to make it impossible to read the program. May occur or the control operation may be locked.

【0030】そこで本発明では、マイクロコンピュータ
により制御されている制御対象においてはノイズが発生
するタイミングを正確に予測できる点に着目して、各制
御対象がノイズを発生する期間CPUと外部メモリとの
間の通信を停止させることにより、ノイズの影響をなく
すようにした。
Therefore, the present invention focuses on the fact that the timing at which noise is generated can be accurately predicted in a controlled object controlled by a microcomputer. By stopping the communication between them, the influence of noise was eliminated.

【0031】例えば内燃機関用点火装置の場合には、点
火時期に点火コイル6(図4参照)の二次コイルに点火
用の高電圧が発生した際に点火ノイズが発生する。マイ
クロコンピュータにより点火時期を制御する場合には、
機関の各回転速度における点火時期を、その回転速度で
機関が基準位置から点火位置まで回転するのに要する時
間(点火時期計測用時間)Ti の形で演算し、図2
(A)に示すように機関の回転角度が基準位置に一致す
る時刻to で第1のパルス信号が発生したときに、既に
演算されている点火時期計測用時間Ti の計数値を第1
のタイマ3cにセットする。第1のタイマ3cは図2
(B)に示すようにクロックパルスPを計数していて、
時刻ti で演算された点火時期計測時間Ti の計数を完
了した時(点火時期)にCPU3aから点火信号を発生
させる。点火信号が発生すると、点火回路11(図4参
照)が点火コイル6の一次電流に急激な変化を生じさせ
るため、点火コイルの二次コイルに点火用の高電圧が発
生する。点火用の高電圧が発生すると点火プラグ12に
火花が生じるため、点火ノイズSn が発生する。この点
火ノイズSn が信号線5に乗るとCPU3aが読み取る
プログラムの内容に誤りが生じて誤動作が生じたり、プ
ログラムを読み取ることができなくなって制御動作がロ
ックしたりする。
For example, in the case of an ignition device for an internal combustion engine, ignition noise is generated when a high voltage for ignition is generated in the secondary coil of the ignition coil 6 (see FIG. 4) at the ignition timing. When the ignition timing is controlled by a microcomputer,
The ignition timing at each rotation speed of the engine is calculated in the form of the time (ignition timing measurement time) Ti required for the engine to rotate from the reference position to the ignition position at that rotation speed, and is calculated as shown in FIG.
As shown in (A), when the first pulse signal is generated at time to when the rotation angle of the engine coincides with the reference position, the count value of the ignition timing measurement time Ti that has already been calculated is calculated as the first count value.
Is set in the timer 3c. The first timer 3c is shown in FIG.
The clock pulse P is counted as shown in FIG.
When the counting of the ignition timing measurement time Ti calculated at the time ti is completed (ignition timing), the CPU 3a generates an ignition signal. When the ignition signal is generated, the ignition circuit 11 (see FIG. 4) causes a sudden change in the primary current of the ignition coil 6, so that a high voltage for ignition is generated in the secondary coil of the ignition coil. When a high voltage for ignition is generated, a spark is generated in the spark plug 12, so that ignition noise Sn is generated. If the ignition noise Sn is on the signal line 5, an error occurs in the contents of the program read by the CPU 3a, causing a malfunction, or the control operation cannot be read and the control operation is locked.

【0032】点火ノイズが発生する期間Tn はほぼ一定
であるので、点火ノイズが消滅する時刻ti ´を実測に
より求めて、点火ノイズが発生するタイミングti より
も僅かに前の時刻(例えば2〜3カウント前の時刻)t
1 から点火ノイズが消滅する時刻ti ´よりも僅かに後
の時刻(例えば2〜3カウント後の時刻)t2 までの期
間を通信停止期間Tncとして、この通信停止期間Tncの
間マイクロプロセッサ3と外部メモリ4との間の通信を
停止させるようにすれば、信号線5に乗る点火ノイズに
より誤動作が生じるのを確実に防ぐことができる。
Since the period Tn during which the ignition noise occurs is substantially constant, the time ti 'at which the ignition noise disappears is obtained by actual measurement, and the time ti' slightly before the timing ti at which the ignition noise occurs (for example, 2-3). Time before counting) t
The period from 1 to a time t2 slightly after the time ti 'at which the ignition noise disappears (for example, a time after a few counts) t2 is defined as a communication suspension period Tnc. If communication with the memory 4 is stopped, malfunctions due to ignition noise on the signal line 5 can be reliably prevented.

【0033】上記のように通信停止期間Tncの間マイク
ロプロセッサと外部メモリとの間の通信を停止させるた
めには、例えば次のような処理を行わせればよい。
In order to stop the communication between the microprocessor and the external memory during the communication stop period Tnc as described above, for example, the following processing may be performed.

【0034】即ち、時刻to で第1の位置検出信号Vp1
が発生した時に、図2(B)に示すように第1のタイマ
3cに点火時期計測時間Ti の計数値をセットすると同
時に、図2(D)に示すように第2のタイマ3dに点火
時期計測時間の計数値よりも数カウント少ない通信停止
タイミング計測用計数値Ti ´をセットしてそれぞれの
タイマに計数を開始させる。点火時期よりも僅かに前の
時刻t1 でタイマ3dが通信停止タイミング計測用計数
値Ti ´の計数を完了した時に、割込みコントローラ3
fが第2のタイマ3dによる割込み以外の他のすべての
割込みを受け付けることを禁止した後、外部メモリとの
通信を禁止する命令を実行することにより、マイクロプ
ロセッサ3と外部メモリ4との間の通信を禁止するとと
もに、図2(D)に示すように、第2のタイマ3dに通
信停止期間Tncの計数値をセットしてその計数を開始さ
せる。第2のタイマ3dが時刻t2 で通信停止期間Tnc
の計数を完了したときに第2のタイマ3dによる割込み
が入ると、通信命令の禁止が解除される。またその割込
み処理においては、すべての割込みの受付けが許可され
ることで、通常の制御が開始される。通信停止期間Tnc
の計数値は、予め実測により求めて、外部メモリ4に記
憶させておき、マイクロコンピュータを起動させた後制
御動作を開始させる前に、マイクロプロセッサ内のRA
M3eに読み込んでおく。
That is, at time to, the first position detection signal Vp1
Occurs, the count value of the ignition timing measurement time Ti is set in the first timer 3c as shown in FIG. 2B, and at the same time, the ignition timing is set in the second timer 3d as shown in FIG. The count value Ti 'for communication stop timing measurement, which is several counts smaller than the count value of the measurement time, is set, and each timer starts counting. When the timer 3d has completed counting the communication stop timing measurement count value Ti 'at a time t1 slightly before the ignition timing, the interrupt controller 3
After prohibiting f from accepting all other interrupts other than the interrupt by the second timer 3d, by executing an instruction for prohibiting communication with the external memory, the communication between the microprocessor 3 and the external memory 4 is performed. In addition to prohibiting the communication, as shown in FIG. 2D, the count value of the communication suspension period Tnc is set in the second timer 3d, and the counting is started. The second timer 3d sets the communication suspension period Tnc at time t2.
When the interruption by the second timer 3d is input when the counting of the above is completed, the prohibition of the communication command is released. In the interrupt processing, normal control is started by accepting all interrupts. Communication suspension period Tnc
Is obtained by actual measurement in advance and stored in the external memory 4. After the microcomputer is started, before the control operation is started, the RA in the microprocessor is determined.
It is read into M3e.

【0035】上記の例では、第2のタイマ3dと、該第
2のタイマに通信停止タイミング計測用計数値Ti ´を
セットする過程とにより、記制御対象が電気的ノイズを
発生するタイミングよりも僅かに早い時刻を通信停止タ
イミングとして検出する通信停止タイミング検出手段が
実現される。
In the above example, the second timer 3d and the step of setting the communication stop timing measurement count value Ti 'in the second timer 3d make the controlled object more likely to generate electrical noise. Communication stop timing detecting means for detecting a slightly earlier time as the communication stop timing is realized.

【0036】また、時刻t1 で第2のタイマ3dに通信
停止期間Tncの計数値をセットする過程により、通信停
止タイミング検出手段が通信停止タイミングを検出した
時に通信停止時間をタイマにセットするタイマセット手
段が実現される。
In the process of setting the count value of the communication stop period Tnc to the second timer 3d at the time t1, a timer set for setting the communication stop time to the timer when the communication stop timing detecting means detects the communication stop timing. Means are realized.

【0037】更に、第2のタイマ3dが通信停止タイミ
ング計測用計数値の計数を完了した時に、割込みコント
ローラ3fが第2のタイマ3dによる割込み以外の他の
すべての割込みを受け付けるのを禁止する過程と、通信
停止期間Tncの計数値の計数が完了した時に割込みコン
トローラがすべての割込みを受け付けることを許可する
過程とにより、通信停止タイミングが検出された時にマ
イクロプロセッサと外部メモリとの間の通信を禁止し、
タイマが通信停止時間の計時を完了した時にマイクロプ
ロセッサと外部メモリとの間の通信を許可する通信制御
手段が実現される。
Further, when the second timer 3d has completed counting the communication stop timing measurement count value, the interrupt controller 3f is prohibited from accepting all other interrupts other than the interrupt by the second timer 3d. And the step of permitting the interrupt controller to accept all interrupts when the counting of the count value of the communication suspension period Tnc is completed, so that the communication between the microprocessor and the external memory is performed when the communication suspension timing is detected. Ban,
Communication control means for permitting communication between the microprocessor and the external memory when the timer completes measuring the communication stop time is realized.

【0038】上記の例では、CPUの外部に設けられて
いるタイマ3dを用いて通信停止期間Tncを計数するよ
うにしたが、ソフトウェア上で通信停止期間を計測する
ようにしてもよい。この場合に用いるソフトウェアのア
ルゴリズムを示すフローチャートを図3(A)ないし
(C)に示した。
In the above example, the communication suspension period Tnc is counted using the timer 3d provided outside the CPU. However, the communication suspension period may be measured by software. FIGS. 3A to 3C are flowcharts showing the algorithm of the software used in this case.

【0039】図3に示したアルゴリズムによる場合に
は、マイクロコンピュータの電源が投入された時に同図
(A)に示すように、ステップ1で各部のイニシャライ
ズを行い、外部メモリーへの割込みを許可した後、ステ
ップ2でマイクロプロセッサの内部RAM3e上を一定
回数ループするためのプログラム(図3CのRAM内ル
ープサブルーチン)を外部メモリ4から読み出してRA
M3eに書き込む。次いでステップ3でループカウンタ
の値を0とし、図示しないメインルーチンに移行する。
メインルーチンでは、内燃機関の回転速度の演算や、点
火時期、燃料噴射時間などの演算を行う。
In the case of the algorithm shown in FIG. 3, when the power of the microcomputer is turned on, as shown in FIG. 3A, each part is initialized and interrupt to the external memory is permitted. Thereafter, in step 2, a program for looping a predetermined number of times on the internal RAM 3e of the microprocessor (a loop subroutine in the RAM in FIG. 3C) is read from the external memory 4 and RA is read.
Write to M3e. Next, in step 3, the value of the loop counter is set to 0, and the process proceeds to a main routine (not shown).
In the main routine, calculation of the rotation speed of the internal combustion engine, calculation of ignition timing, fuel injection time, and the like are performed.

【0040】機関の第1の回転角度位置で第1の位置検
出信号Vp1が発生した時に第2のタイマ2dに通信停止
タイミング計測用計数値Ti ´をセットしてその計数を
開始させる。時刻t1 でこの計数が完了した時に図3
(B)に示す時刻t1 割込み処理を行わせる。この割込
み処理では、ステップ4でタイマを含むすべての割込み
を禁止し、ステップ5で図3(C)に示す内部RAM3
e内ループルーチンにジャンプさせる。
When the first position detection signal Vp1 is generated at the first rotation angle position of the engine, a communication stop timing measurement count value Ti 'is set in the second timer 2d, and the count is started. When this counting is completed at time t1, FIG.
At time t1 shown in FIG. In this interrupt processing, all interrupts including the timer are prohibited in step 4 and the internal RAM 3 shown in FIG.
Jump to the inner e loop routine.

【0041】図3(C)に示す内部RAM3e内ループ
ルーチンでは、先ずステップ6においてRAMの所定の
アドレスに設定したループカウンタの計数値が設定値N
以上であるか否かを判定する。その結果ループカウンタ
の計数値がNよりも小さい場合には、ステップ7に進ん
でループカウンタの値に1を加える(インクリメントす
る)処理を行い、ステップ6に戻る。ループカウンタの
値がNに達するまでこれらの処理を繰り返し(RAM内
でループさせ)、ステップ6でループカウンタの値がN
に達したと判定されたときにステップ8に進んでループ
カウンタの計数値を0にした後、ステップ9ですべての
割込み指令の受付の禁止を解除してマイクロプロセッサ
3と外部メモリとの間で通信が行われるのを許可する。
In the loop routine in the internal RAM 3e shown in FIG. 3C, first, in step 6, the count value of the loop counter set at a predetermined address of the RAM is set to a set value N.
It is determined whether or not this is the case. As a result, if the count value of the loop counter is smaller than N, the process proceeds to step 7 to perform a process of adding (incrementing) 1 to the value of the loop counter, and returns to step 6. These processes are repeated until the value of the loop counter reaches N (loop in the RAM).
When it is determined that the count has reached the limit, the process proceeds to step 8 and the count value of the loop counter is set to 0. In step 9, the prohibition of accepting all the interrupt commands is released, and the communication between the microprocessor 3 and the external memory is performed. Allow communication to take place.

【0042】上記のような処理を行わせると、RAM3
e内でステップ6,7の間をループしている間CPU3
aと外部メモリ4との間の通信が停止される。ループカ
ウンタの計数値の設定値Nを適当に決めることにより、
通信停止期間Tncを適宜に設定することができる。
When the above processing is performed, the RAM 3
CPU3 while looping between steps 6 and 7 in e
Communication between a and the external memory 4 is stopped. By appropriately setting the set value N of the count value of the loop counter,
The communication suspension period Tnc can be set appropriately.

【0043】図3に示したアルゴリズムによる場合に
は、図3(A)のステップ2により、マイクロコンピュ
ータが起動した後に一定回数だけ内部RAM3e内に記
憶されたプログラムをループするループプログラムを内
部RAM3eに書き込むループプログラム書き込み手段
が実現される。またタイマ3dに通信停止タイミング計
測用計数値Ti ´の計数を行わせて、時刻t1 で図3
(B)の割込みルーチンを実行させる過程により、制御
対象が電気的ノイズを発生するタイミングよりも僅かに
早い時刻を通信停止タイミングとして検出する通信停止
タイミング検出手段が実現される。更に、図3(B)の
割込みルーチンのステップ4及び5により、通信停止タ
イミング検出手段が通信停止タイミングt1 を検出した
時にマイクロプロセッサ3と外部メモリー4との間の通
信を禁止した後図3(C)のループプログラムを実行さ
せる通信停止タイミングループ処理手段が実現される。
また図3(C)のステップ6ないし9により、ループプ
ログラムによる一定回数Nのループが終了した時にマイ
クロプロセッサと外部メモリとの間の通信を許可する通
信許可手段が実現される。
In the case of the algorithm shown in FIG. 3, a loop program for looping a program stored in the internal RAM 3e a certain number of times after the microcomputer is started is stored in the internal RAM 3e in step 2 of FIG. A loop program writing means for writing is realized. Further, the timer 3d counts the count value Ti 'for measuring the communication stop timing, and at time t1, the count value Ti' in FIG.
The process of executing the interrupt routine of (B) implements a communication stop timing detecting unit that detects a time slightly earlier than the timing at which the control target generates electrical noise as the communication stop timing. Further, according to steps 4 and 5 of the interrupt routine of FIG. 3B, when the communication stop timing detecting means detects the communication stop timing t1, the communication between the microprocessor 3 and the external memory 4 is prohibited. Communication stop timing loop processing means for executing the loop program of C) is realized.
Steps 6 to 9 in FIG. 3C implement a communication permitting means for permitting communication between the microprocessor and the external memory when a predetermined number N of loops by the loop program is completed.

【0044】上記の説明では、点火装置が点火ノイズを
発生する期間CPUと外部メモリとの間の通信を停止さ
せる場合を例にとったが、マイクロコンピュータにより
制御が行われる場合には、他の制御対象がノイズを発生
するタイミングも正確に予測することができるので、同
様に、ノイズ発生タイミングよりも僅かに前の時刻から
ノイズが消滅する時刻よりも僅かに後の時刻までの期間
を通信停止期間として、その期間CPU3aと外部メモ
リ4との間の通信を停止させることにより、ノイズによ
る誤動作を防止することができる。
In the above description, the case where the communication between the CPU and the external memory is stopped during the period in which the ignition device generates the ignition noise is taken as an example. Similarly, since the timing at which the control target generates noise can be accurately predicted, similarly, communication is stopped during a period from a time slightly before the noise generation timing to a time slightly after the noise disappearing time. By stopping the communication between the CPU 3a and the external memory 4 during that period, a malfunction due to noise can be prevented.

【0045】例えばインジェクタ7は、そのソレノイド
コイル7aに与えられていた駆動電流が遮断された時に
ノイズを発生するが、ソレノイドコイルの駆動電流が遮
断されるタイミングは、ソレノイドコイル7aへの通電
を開始するタイミングと燃料噴射時間とから求めること
ができる。またソレノイドコイル7aがノイズを発生す
る期間は実測により求めて外部メモリに記憶させておけ
ばよい。
For example, the injector 7 generates noise when the drive current supplied to the solenoid coil 7a is cut off, but the timing at which the drive current of the solenoid coil is cut off is determined by the start of energization to the solenoid coil 7a. And the fuel injection time. The period during which the solenoid coil 7a generates noise may be obtained by actual measurement and stored in an external memory.

【0046】上記の例では、通信を停止させるタイミン
グを検出するためにタイマ3dを用いたが、点火時期な
どを計測するタイマ3cの計数値を見て、その計数値か
ら通信を停止させるタイミングを検出するようにしても
よい。
In the above example, the timer 3d is used to detect the timing for stopping the communication. However, the timer 3c for measuring the ignition timing and the like is used to determine the timing for stopping the communication based on the count. You may make it detect.

【0047】上記の説明では、内燃機関用点火装置や燃
料噴射装置を制御する場合を例にとったが、本発明は、
電気的ノイズが発生する時期を正確に予測することがで
きる制御対象をマイクロコンピュータにより制御する場
合に広く適用することができる。
In the above description, the case where the ignition device and the fuel injection device for the internal combustion engine are controlled is taken as an example.
The present invention can be widely applied to a case where a microcomputer is used to control a control target capable of accurately predicting when electrical noise will occur.

【0048】[0048]

【発明の効果】以上のように、本発明によれば、制御対
象がノイズを発生することが予想される期間マイクロプ
ロセッサと外部メモリとの間の通信を停止させて制御動
作を中断するようにしたので、CPUと外部メモリとの
間を接続する信号線に乗ったノイズにより誤動作が生じ
るのを防ぐことができる。
As described above, according to the present invention, the control operation is interrupted by stopping the communication between the microprocessor and the external memory during the period in which the control target is expected to generate noise. Therefore, it is possible to prevent a malfunction from occurring due to noise on a signal line connecting the CPU and the external memory.

【0049】また本発明によれば、回路基板の回路パタ
ーンに工夫を凝らしたり、信号線のインピーダンスを低
下させるための回路部品を追加したりする必要がないた
め、コストの上昇を招いたり、回路基板の大形化を招い
たりするのを防ぐことができる。
Further, according to the present invention, it is not necessary to devise a circuit pattern on a circuit board or to add a circuit component for lowering the impedance of a signal line. It is possible to prevent the substrate from being enlarged.

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

【図1】本発明に係わる制御装置で用いるマイクロコン
ピュータの構成例を示した構成図である。
FIG. 1 is a configuration diagram showing a configuration example of a microcomputer used in a control device according to the present invention.

【図2】本発明に係わる制御方法を説明するためのタイ
ミングチャートである。
FIG. 2 is a timing chart for explaining a control method according to the present invention.

【図3】(A)ないし(C)は本発明に係わる制御方法
を実施する際に用いるプログラムのアルゴリズムを示す
フローチャートである。
FIGS. 3A to 3C are flowcharts showing an algorithm of a program used when implementing a control method according to the present invention.

【図4】本発明が対象とする制御装置の構成例を概略的
に示した構成図である。
FIG. 4 is a configuration diagram schematically illustrating a configuration example of a control device to which the present invention is applied.

【図5】ノイズ対策を講じた従来の制御装置の要部の構
成を概略的に示した構成図である。
FIG. 5 is a configuration diagram schematically showing a configuration of a main part of a conventional control device in which noise countermeasures are taken.

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

1 制御装置 2 マイクロコンピュータ 3 マイクロプロセッサ 3a CPU 3b インターフェース 3c 第1のタイマ 3d 第2のタイマ 3e RAM 3f 割込みコントローラ 4 外部メモリ 5 信号線 6 点火コイル 7 インジェクタ 10 リレー 11 点火回路 13 インジェクタ駆動回路 Reference Signs List 1 control device 2 microcomputer 3 microprocessor 3a CPU 3b interface 3c first timer 3d second timer 3e RAM 3f interrupt controller 4 external memory 5 signal line 6 ignition coil 7 injector 10 relay 11 ignition circuit 13 injector drive circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/00 F02D 45/00 F02P 5/15 F02P 15/00 G06F 13/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields investigated (Int. Cl. 7 , DB name) G06F 11/00 F02D 45/00 F02P 5/15 F02P 15/00 G06F 13/00

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 少なくともCPUとタイマと内部RAM
と割込みコントローラとを有するマイクロプロセッサ
と、プログラム及び制御データを記憶した外部メモリと
を備えて、前記CPUと外部メモリとの間を信号線によ
り接続したマイクロコンピュータを用いて、電気的ノイ
ズが発生する期間を予測することができる特定の制御対
象を制御する制御装置において、 前記制御対象が電気的ノイズを発生するタイミングより
も僅かに早い時刻を通信停止タイミングとして検出する
通信停止タイミング検出手段と、 前記通信停止タイミング検出手段により通信停止タイミ
ングが検出された時に通信停止時間を前記タイマにセッ
トするタイマセット手段と、 前記通信停止タイミングが検出された時に前記マイクロ
プロセッサと外部メモリとの間の通信を禁止し、前記タ
イマが通信停止時間の計時を完了した時に前記マイクロ
プロセッサと外部メモリとの間の通信を許可する通信制
御手段とを具備したことを特徴とするマイクロコンピュ
ータを用いた制御装置。
At least a CPU, a timer, and an internal RAM
Having interrupt and interrupt controller
And an external memory storing programs and control data.
And a signal line connects between the CPU and the external memory.
Using a microcomputer connected to the
A specific control pair that can predict how long
In the control device for controlling an elephant, a timing at which the controlled object generates electrical noise
Also detects a slightly earlier time as the communication stop timing
A communication stop timing detecting means, and a communication stop timing by the communication stop timing detecting means.
When communication is detected, the communication stop time is set in the timer.
Timer setting means for resetting the microcontroller when the communication stop timing is detected.
Prohibits communication between the processor and the external memory,
When Ima has completed the timing of the communication
Communication system that allows communication between the processor and external memory
And a control means.
Control device using data.
【請求項2】 少なくともCPUとタイマと内部RAM
と割込みコントローラとを有するマイクロプロセッサ
と、プログラム及び制御データを記憶した外部メモリと
を備えて、前記CPUと外部メモリとの間を信号線によ
り接続したマイクロコンピュータを用いて、電気的ノイ
ズが発生する期間を予測することができる特定の制御対
象を制御する制御装置において、 前記マイクロコンピュータが起動した後に一定回数だけ
前記内部RAM内に記憶されたプログラムをループする
ループプログラムを前記内部RAMに書き込むループプ
ログラム書き込み手段と、 前記制御対象が電気的ノイズを発生するタイミングより
も僅かに早い時刻を通信停止タイミングとして検出する
通信停止タイミング検出手段と、 前記通信停止タイミング検出手段により通信停止タイミ
ングが検出された時に前記マイクロプロセッサと外部メ
モリとの間の通信を禁止した後前記ループプログラムを
実行させる通信停止タイミングループ処理手段と、 前記ループプログラムによる一定回数のループが終了し
た時に前記マイクロプロセッサと外部メモリとの間の通
信を許可する通信許可手段とを具備したことを特徴とす
るマイクロコンピュータを用いた制御装置。
2. At least a CPU, a timer, and an internal RAM
Having interrupt and interrupt controller
And an external memory storing programs and control data.
And a signal line connects between the CPU and the external memory.
Using a microcomputer connected to the
A specific control pair that can predict how long
In a control device for controlling an elephant , a certain number of times after the microcomputer is started
Loop through a program stored in the internal RAM
Loop program for writing a loop program to the internal RAM
Program writing means, and a timing at which the controlled object generates electrical noise.
Also detects a slightly earlier time as the communication stop timing
A communication stop timing detecting means, and a communication stop timing by the communication stop timing detecting means.
The microprocessor and external media when
After prohibiting communication with the
A communication stop timing loop means to be executed, the loop is terminated in a certain number of times by the loop program
Communication between the microprocessor and external memory
Communication permission means for permitting communication.
Control device using a microcomputer.
【請求項3】 前記制御対象は内燃機関用点火装置であ
り、 前記電気的ノイズが発生するタイミングは点火タイミン
グである請求項1または2に記載のマイクロコンピュー
タを用いた制御装置。
3. The control target is an ignition device for an internal combustion engine.
The timing at which the electrical noise occurs is determined by the ignition timing.
The microcomputer according to claim 1 or 2, wherein
Control device using
【請求項4】 前記制御対象は、内燃機関用燃料噴射装
置のインジェクタであり、 前記電気的ノイズが発生するタイミングは、前記インジ
ェクタのソレノイドコイルへの通電を遮断するタイミン
グである請求項1または2に記載のマイクロコンピュー
タを用いた制御装置。
4. The control target is a fuel injection device for an internal combustion engine.
The timing at which the electrical noise occurs is determined by the injector.
To shut off the power to the solenoid coil of the
The microcomputer according to claim 1 or 2, wherein
Control device using
JP25620496A 1996-09-27 1996-09-27 Control device using microcomputer Expired - Fee Related JP3331880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25620496A JP3331880B2 (en) 1996-09-27 1996-09-27 Control device using microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25620496A JP3331880B2 (en) 1996-09-27 1996-09-27 Control device using microcomputer

Publications (2)

Publication Number Publication Date
JPH10103148A JPH10103148A (en) 1998-04-21
JP3331880B2 true JP3331880B2 (en) 2002-10-07

Family

ID=17289372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25620496A Expired - Fee Related JP3331880B2 (en) 1996-09-27 1996-09-27 Control device using microcomputer

Country Status (1)

Country Link
JP (1) JP3331880B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3241332B2 (en) 1998-10-27 2001-12-25 日本電気株式会社 Noise reduction method for wireless portable terminal
JP4621866B2 (en) * 2004-03-16 2011-01-26 学校法人日本大学 Fuel combustion propagation analysis and flame spread measurement apparatus, and fuel flame propagation mode test method using the apparatus
DE102009052488A1 (en) * 2009-11-09 2011-05-12 Andreas Stihl Ag & Co. Kg Ignition module with a bus line
JP6194709B2 (en) * 2013-09-10 2017-09-13 トヨタ自動車株式会社 Information processing device
JP6439670B2 (en) * 2015-12-18 2018-12-19 トヨタ自動車株式会社 In-vehicle system
DE112019000214T5 (en) * 2018-02-01 2020-08-13 Hitachi Automotive Systems, Ltd. Ignition device for internal combustion engine
WO2023063304A1 (en) * 2021-10-12 2023-04-20 浩明 坪川 Combustion state diagnosis system

Also Published As

Publication number Publication date
JPH10103148A (en) 1998-04-21

Similar Documents

Publication Publication Date Title
US4580222A (en) Control device for a back-up memory set in a vehicle control computer
US6401163B1 (en) Apparatus and method for rewriting data from volatile memory to nonvolatile memory
JP3331880B2 (en) Control device using microcomputer
US6240534B1 (en) Apparatus and method for detecting abnormality-Monitoring circuit malfunction
SE521596C2 (en) Apparatus and method for controlling rewriting of data in permanent memory
GB2129587A (en) A method of and apparatus for fail-safe operation of a vehicle computer
KR100335714B1 (en) Micro Computer
JP3817855B2 (en) Electronic control device
GB2247954A (en) Monitoring a revolution sensor in an internal combustion engine
JPH0411734B2 (en)
JP4281222B2 (en) Nonvolatile memory writing device
KR0169869B1 (en) Method for detecting abnormalities in a crank angle sensor and apparatus for detecting abnormalities in a crank angle sensor
US6029630A (en) Engine control device having an arrangement for limiting interrupt processing
JP4393052B2 (en) Ignition device for internal combustion engine
EP1106809A2 (en) Electronic control apparatus having mode check funktion
JP3820998B2 (en) Rotation detector
EP0989301B1 (en) Ignition timing control system for an internal combustion engine
JPH0464099B2 (en)
JP3142436B2 (en) Internal combustion engine ignition control device
JPS6152485B2 (en)
JPS6019962A (en) Ignition device for internal-combustion engine
JP2010117868A (en) Control device and control method
JP2713511B2 (en) Step motor control device for internal combustion engine
JPS6253712B2 (en)
JPH01224442A (en) Engine control device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020625

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20070726

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080726

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100726

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees