JPS6186804A - Electronic controller for engine - Google Patents

Electronic controller for engine

Info

Publication number
JPS6186804A
JPS6186804A JP20762884A JP20762884A JPS6186804A JP S6186804 A JPS6186804 A JP S6186804A JP 20762884 A JP20762884 A JP 20762884A JP 20762884 A JP20762884 A JP 20762884A JP S6186804 A JPS6186804 A JP S6186804A
Authority
JP
Japan
Prior art keywords
cpu
microcomputer
voltage
power supply
clock signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP20762884A
Other languages
Japanese (ja)
Inventor
Masao Ito
雅夫 伊藤
Kazunobu Morimoto
森本 和信
Takayuki Ishikawa
隆之 石川
Masahiro Fukagawa
深川 正浩
Manabu Takahashi
学 高橋
Yoshiaki Sato
佐藤 淑明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
NipponDenso Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP20762884A priority Critical patent/JPS6186804A/en
Publication of JPS6186804A publication Critical patent/JPS6186804A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To avoid the stop of an engine driving when a hit occurs by protecting the data on a microcomputer CPU with the interruption signal given from a voltage detecting means and monitors the clock signal to reset the CPU. CONSTITUTION:The hit of an electric power supply A is first detected by the voltage detecting means C, and the interruption signal is delivered to the microcomputer CPU B. The CPU shunts the data to a waiting memory and is set under a dynamic stop state. No clock signal is produced in said dynamic stop state and therefore a watchdog circuit D which detected the break of the clock resets the CPU after the hit is recovered. Thus the normal operation of the CPU is restarted. This prevents the stop of the engine driving.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、待機メモリ(スタンバイラム、5TAND 
 BY  RAM)を有するマイクロコンピュータを用
いるエンジン電子制御装置に関し、詳しくは電源OFF
時、および瞬断等においてもエンジンが停止しないエン
ジン電子制御ll装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is directed to standby memory (standby RAM, 5TAND
Regarding the engine electronic control device that uses a microcomputer (BY RAM), please refer to
The present invention relates to an electronic engine control device that prevents the engine from stopping even when there is a power outage or a momentary power outage.

[従来の技術1 大型計算機等では、電源の低下時に、最優先v1込処理
をして、メモリの内容を保持することは、一般的に行な
われている。しかし、この技術を自動車用エンジン制御
に適用すると、問題が発生ずる。すなわち、コンピュー
タに接続された電源の低下の状態としては、通常の電源
OFFの場合の他に、瞬間的に電圧の低下を生じる場合
があり、このような場合にも、正常な動作に復帰する必
要がある。
[Prior Art 1] In large-scale computers and the like, when the power supply drops, it is common practice to perform v1-inclusive processing with the highest priority to preserve the contents of the memory. However, when this technology is applied to automotive engine control, problems arise. In other words, in addition to the normal power OFF state, the power supply connected to the computer may drop momentarily, and even in such cases, normal operation may be restored. There is a need.

従来、この種の装置として、特開ON 5 B−125
102号公報のものがあった。すなわち、同装置ではマ
イクロコンピュータへの電源電圧を検出する電圧検出手
段を設け、この検出手段がマイクロコンピュータ動作電
圧以上で、所定の設定値以下となったことを検出したと
き、マイクロコンピュータに割込処理を掛けて、プログ
ラム処理にて電源OFF時および瞬断時におGノるメモ
リ内容の保護を行なっている。
Conventionally, as this type of device, JP-A ON 5 B-125
There was one published in Publication No. 102. In other words, this device is equipped with a voltage detection means for detecting the power supply voltage to the microcomputer, and when this detection means detects that the voltage is higher than the microcomputer operating voltage and lower than a predetermined set value, it interrupts the microcomputer. The program protects the memory contents when the power is turned off or during a momentary power outage.

[発明が解決しようとする問題点] しかし、上記従来技術では、電源OFF時および瞬断時
のいずれの場合にも、すべてプログラムの内容によりメ
モリ内容の保持を行なっているため、プログラムが複雑
になるという欠点があった。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional technology, the memory contents are retained based on the program contents both when the power is turned off and when there is a momentary power outage, so the program becomes complicated. There was a drawback.

本発明は、上記従来の欠点を解消するためになされたも
ので、電源OFF時および瞬断時において、簡単なプロ
グラムでマイクロコンピュータの時機メモリへデータが
確実に保護されるとともに、瞬断時にエンジンが停止す
る状態をまぬがれることができるエンジン電子$り罪装
置を提供することを目的とする。
The present invention has been made to solve the above-mentioned conventional drawbacks, and it is possible to reliably protect data in the time memory of a microcomputer with a simple program when the power is turned off or during a momentary power outage. An object of the present invention is to provide an electronic engine control device that can avoid a state in which the engine stops.

L問題点を解決するための手段] 上記目的を達成するためになされ・た本発明の構成は、
直流電源Aに接続され、かつ待機メモリを設けたマイク
ロコンピュータBと、上記直流電源Aが所定の設定電圧
以下で上記マイクロコンピュータBの動作電圧以上の電
圧となったことを検出したとき、上記マイクロコンピュ
ータBに割込(3号を発生する電圧検出手段Cと、マイ
クロコンピュータBからのタイムクロック信号を受け、
このタイムクロック信号が消滅したとぎ、マイクロコン
ピュータBにリセット信号を供給するウォッチドッグ回
路りを具備し、上記マイクロコンピュータBが、上記割
込信号を受けたとき、上記待機メモリの内容が保持され
る処理を行なうとともに、上記タイムクロック信号の供
給を停止するように構成されたことを特徴とする。
Means for Solving Problem L] The structure of the present invention made to achieve the above object is as follows:
When a microcomputer B connected to a DC power supply A and provided with a standby memory detects that the DC power supply A has a voltage lower than a predetermined setting voltage and higher than the operating voltage of the microcomputer B, the microcomputer B is connected to a DC power supply A and has a standby memory. Interrupts computer B (receives the voltage detection means C that generates No. 3 and the time clock signal from microcomputer B,
A watchdog circuit is provided which supplies a reset signal to the microcomputer B when the time clock signal disappears, and when the microcomputer B receives the interrupt signal, the contents of the standby memory are retained. It is characterized in that it is configured to perform processing and stop supplying the time clock signal.

[作用] 本発明の構成によれば、電源OFF時および瞬断時のい
ずれの場合にも、電圧検出手段からの割込信号により、
マイクロコンピュータのデータを待機メモリで保持して
、データの保護を行なうとともに、瞬断時にウォッチド
ッグ回路からリセット信号をマイクロコンピュータへ供
給し、マイクロコンピュータの動作を正常に復帰させる
[Function] According to the configuration of the present invention, the interrupt signal from the voltage detection means causes the
The data of the microcomputer is held in a standby memory to protect the data, and in the event of a momentary power outage, a reset signal is supplied from the watchdog circuit to the microcomputer to restore normal operation of the microcomputer.

[実施例] 以下、本発明の一実施例を図面にしたがって説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.

第2図において、1は直流電源、2はこの直流′電源1
にイグニッションスイッチ3を介して接続されて、5V
の定電圧V1をマイクロコンピュータ4(以下、CPI
Jと称す。)に供給する安定化電源回路、5は上記CP
U4からのタイムクロック信号[を受けて、常時CPU
4の動作が正常か否かを検出覆るウォッチドッグ回路、
6は電圧検出回路で、この検出回路6の一方の入力端子
7は、直流電源1に接続され、他方の入力端子8は、C
PU4の動作電圧以上における所定の設定電圧Vaに設
定された比較電源(図示省略)に接続されている。L記
構出回路6は、直流電源1の電源電圧Vが設定電圧va
より低下したとぎ、CPU4に割込信号NMIを供給す
るように構成されている。上記CPU4には、電源に接
続された時機メモリ(図示省略)が内蔵されている。
In Figure 2, 1 is a DC power supply, 2 is this DC' power supply 1
connected via ignition switch 3 to 5V
The constant voltage V1 of the microcomputer 4 (hereinafter referred to as CPI
It's called J. ), 5 is the above CP
After receiving the time clock signal from U4, the CPU
A watchdog circuit that detects whether the operation of 4 is normal or not;
6 is a voltage detection circuit, one input terminal 7 of this detection circuit 6 is connected to the DC power supply 1, and the other input terminal 8 is connected to the C
It is connected to a comparison power supply (not shown) set to a predetermined set voltage Va that is higher than the operating voltage of the PU4. In the L configuration circuit 6, the power supply voltage V of the DC power supply 1 is a set voltage va.
It is configured to supply an interrupt signal NMI to the CPU 4 when the voltage drops further. The CPU 4 has a built-in timing memory (not shown) connected to a power source.

上記構成の各回路では、第3図および第5図に示すよう
な、各信号が送受されており、第3図はイグニッション
スイッチ3の開成による電源OFFによる場合、第5図
は電源瞬断時による場合をそれぞれ示す。図において、
■1は安定化電源回路2の出力電圧、NIVlrは電圧
検出回路6の割込信号、tはタイムクロック信号、RE
はウォッチドッグ回路5からCPLI4へ送られるリセ
ット信号である。
In each circuit of the above configuration, various signals are sent and received as shown in Figs. 3 and 5. Fig. 3 shows the case when the power is turned off by opening the ignition switch 3, and Fig. 5 shows the case when the power is turned off by opening the ignition switch 3. The following cases are shown below. In the figure,
■1 is the output voltage of the stabilized power supply circuit 2, NIVlr is the interrupt signal of the voltage detection circuit 6, t is the time clock signal, RE
is a reset signal sent from the watchdog circuit 5 to the CPLI 4.

つぎに、上記構成の動作について説明する。Next, the operation of the above configuration will be explained.

まず、直流電源1の電源電圧■が第3図に示すように、
徐々に低下する場合について説明する。
First, the power supply voltage ■ of the DC power supply 1 is as shown in Fig. 3,
A case where the temperature gradually decreases will be explained.

イグニッションスイッチ3を開成し、電源電圧Vが時刻
t1から徐々に低下し、一方安定化電源回路2の定電圧
V1は5■の正常な電圧に維持された状態で、時刻t2
にて電源電圧Vが電圧検出回路6の入力端子8の設定電
圧Vaより低下したとき、該検出回路6から出力信号が
発生し、これがCPU4の割込信号NM[となってCP
U4に入カされる。CPU4では、この割込(8号NM
Iを受けて、第4図のプログラムが実行される。第4図
において、まずステップ20にて待機メモリの内容を維
持するような処理が行なわれ、ついでステップ30にて
自分の番地にジャンプする、いわゆるダイナミックスト
ップ処理が行なわれる。このダイナミックストップ処理
を行なっている間に、電源電圧Vはしだいに低下し、C
PU4はその機能を停止する。
The ignition switch 3 is opened and the power supply voltage V gradually decreases from time t1, while the constant voltage V1 of the stabilized power supply circuit 2 is maintained at a normal voltage of 5.
When the power supply voltage V becomes lower than the set voltage Va at the input terminal 8 of the voltage detection circuit 6, an output signal is generated from the detection circuit 6, and this becomes the interrupt signal NM of the CPU 4 and becomes the CPU 4 interrupt signal NM.
Entered into U4. In CPU4, this interrupt (No. 8 NM
In response to I, the program shown in FIG. 4 is executed. In FIG. 4, first, at step 20, processing is performed to maintain the contents of the standby memory, and then, at step 30, a so-called dynamic stop processing is performed in which a jump is made to the own address. While this dynamic stop processing is being performed, the power supply voltage V gradually decreases, and C
PU4 stops its function.

ところで、ウォッチドッグ回路5は、CPU4の正常動
作時にタイムクロック信号tを受けて、リセット信号R
EをCPU4に送らないが、上記ダイナミックストップ
処理を行なっているときには、タイムクロック信号tは
消滅する。これにより、ウォッチドッグ回路5からリセ
ット信号REがCPU4に送出されるが、このとき電源
電圧がまだ十分に低下していないとぎは、CPU4にリ
セット信号REが送られ、CPU4がリセットされるこ
ともあるが、いずれにしても最終的にCPU4は、電源
電圧Vの低下により機能が停止する。
By the way, the watchdog circuit 5 receives the time clock signal t during normal operation of the CPU 4 and outputs the reset signal R.
Although E is not sent to the CPU 4, the time clock signal t disappears when the dynamic stop processing is performed. As a result, the reset signal RE is sent from the watchdog circuit 5 to the CPU 4. At this time, if the power supply voltage has not yet fallen sufficiently, the reset signal RE may be sent to the CPU 4 and the CPU 4 may be reset. However, in any case, the CPU 4 eventually stops functioning due to a drop in the power supply voltage V.

つぎに、第5図に示すような、電源電圧Vが瞬間的に低
下する場合について説明する。第5図において電源電圧
Vが時刻t11から低下し、時刻t12にて設定電圧V
aまで低下したとき、第3図の場合と同様に、電圧検出
回路6から割込信号NMIがCPU4に供給され、第4
図に示すように、待機メモリの維持およびダイナミック
ストップ処理が行なわれる。ついで、電源電圧Vが元の
電圧にまで上昇したとき、安定化電源回路2の定電圧V
1は、5Vの正常な電圧を維持しているため、CPU4
はダイナミックストップ処理を繰り返すことになり、こ
の状態から脱出づる必要がある。
Next, a case where the power supply voltage V drops instantaneously as shown in FIG. 5 will be described. In FIG. 5, the power supply voltage V decreases from time t11, and at time t12, the set voltage V
When the voltage drops to a, the interrupt signal NMI is supplied from the voltage detection circuit 6 to the CPU 4, as in the case of FIG.
As shown in the figure, standby memory maintenance and dynamic stop processing are performed. Then, when the power supply voltage V rises to the original voltage, the constant voltage V of the stabilized power supply circuit 2
1 maintains a normal voltage of 5V, so CPU4
The dynamic stop process will be repeated, and it is necessary to escape from this state.

ところで、CPU4がダイナミックストップ処理を行な
っているとき、CPU4のタイムクロック信号【は、時
刻t13にて消滅するから、時刻t14にてウォッチド
ッグ回路5からCPU4にリセット信号REが送出され
る。これにより、CPU4は、ダイナミックストップ処
理から脱出し、正常な動作状態に復帰する。
By the way, when the CPU 4 is performing the dynamic stop process, the time clock signal [ of the CPU 4 ] disappears at time t13, so the reset signal RE is sent from the watchdog circuit 5 to the CPU 4 at time t14. Thereby, the CPU 4 escapes from the dynamic stop process and returns to a normal operating state.

したがって、ウォッチドッグ回路5を設けることにより
、第5図に示すような、電源瞬断時にも、CPU4は待
機メモリのデータ内容を維持するとともに、動作機能を
回復して、エンジンが停止することもない。
Therefore, by providing the watchdog circuit 5, the CPU 4 maintains the data contents of the standby memory even in the event of a momentary power failure as shown in FIG. do not have.

しかも、CPU4で処理されるプログラムは、第4図に
示すように、特機メモリの内容を維持するステップと、
ダイナミックストップ処理を有するだけでよいので、プ
ログラムが簡単になる。
Moreover, the program processed by the CPU 4 includes a step of maintaining the contents of the special memory, as shown in FIG.
Since it is only necessary to have dynamic stop processing, the program becomes simple.

なお、上記実施例では、CPU4が割込信号NMIを受
けたとき、ダイナミックストップ処理を行なったが、こ
れに限らず、割込信号NM+を受けたとき、ウォッチド
ッグ回路5ヘタイムクロツク信号tを停止させるような
処理、たとえばH△LT命令を用いてもよい。
In the above embodiment, when the CPU 4 receives the interrupt signal NMI, the dynamic stop process is performed, but the present invention is not limited to this. When the CPU 4 receives the interrupt signal NM+, the time clock signal t to the watchdog circuit 5 is stopped. For example, the HΔLT instruction may be used.

[発明の効果] 以上説明したように、本発明によれば、電源OFF時お
よび瞬断時において、簡単なプログラムでマイクロコン
ピュータのデータが待機メ[りにより保護されるととも
に、瞬断時に、エンジンが停止してしまう事態をまぬが
れることができる。
[Effects of the Invention] As explained above, according to the present invention, the data of the microcomputer is protected by a standby mode with a simple program when the power is turned off or momentary power is cut off, and the engine is You can avoid the situation where the system stops.

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

第1図は本発明の構成を示すブロック図、第2図は本発
明の一実施例を示すブロック図、第3図は同実施例の動
作を示すタイムチャート、第4図は同実施例によるフロ
ーチャート、第5図は同実施例の動作を説明するタイム
チャートである。 A・・・直流電源 B・・・マイクロコンピュータ(CPU)C・・・電圧
検出手段 D・・・ウォッチドッグ回路 ■・・・電源電圧 NMI・・・割込信号 t・・・タイムクロック信号 RE・・・リセット信号
Fig. 1 is a block diagram showing the configuration of the present invention, Fig. 2 is a block diagram showing an embodiment of the invention, Fig. 3 is a time chart showing the operation of the embodiment, and Fig. 4 is according to the embodiment. Flowchart, FIG. 5 is a time chart explaining the operation of the same embodiment. A... DC power supply B... Microcomputer (CPU) C... Voltage detection means D... Watchdog circuit ■... Power supply voltage NMI... Interrupt signal t... Time clock signal RE ...Reset signal

Claims (1)

【特許請求の範囲】  直流電源に接続され、かつ待機メモリを設けたマイク
ロコンピュータと、 上記直流電源が所定の設定電圧以下で上記マイクロコン
ピュータの動作電圧以上の電圧となったことを検出した
とき、上記マイクロコンピュータに割込信号を発生する
電圧検出手段と、 マイクロコンピュータからのタイムクロック信号を受け
、このタイムクロック信号が消滅したとき、マイクロコ
ンピュータにリセット信号を供給するウォッチドッグ回
路とを具備し、 上記マイクロコンピュータは、上記割込信号を受けたと
き上記待機メモリの内容を保持するとともに、上記タイ
ムクロック信号を供給しないように構成したことを特徴
とするエンジン電子制御装置。
[Scope of Claims] A microcomputer connected to a DC power source and provided with a standby memory, when detecting that the DC power source has a voltage lower than a predetermined setting voltage and higher than the operating voltage of the microcomputer, comprising voltage detection means for generating an interrupt signal to the microcomputer; and a watchdog circuit that receives a time clock signal from the microcomputer and supplies a reset signal to the microcomputer when the time clock signal disappears; An engine electronic control device, wherein the microcomputer is configured to hold the contents of the standby memory and not supply the time clock signal when receiving the interrupt signal.
JP20762884A 1984-10-03 1984-10-03 Electronic controller for engine Pending JPS6186804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20762884A JPS6186804A (en) 1984-10-03 1984-10-03 Electronic controller for engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20762884A JPS6186804A (en) 1984-10-03 1984-10-03 Electronic controller for engine

Publications (1)

Publication Number Publication Date
JPS6186804A true JPS6186804A (en) 1986-05-02

Family

ID=16542941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20762884A Pending JPS6186804A (en) 1984-10-03 1984-10-03 Electronic controller for engine

Country Status (1)

Country Link
JP (1) JPS6186804A (en)

Similar Documents

Publication Publication Date Title
US5809223A (en) Network hibernation system and a control method thereof
JP2696511B2 (en) Return method from power down mode
US5170109A (en) Method of controlling robot in event of a power failure
JPS6186804A (en) Electronic controller for engine
JPH07114401A (en) Ram backup circuit
JPH09198258A (en) Task stack overflow detecting circuit
JP2556442B2 (en) Power supply monitoring device
JPH10207586A (en) Power-off control system for computer
JPH0561572A (en) External power source instantaneous interruption processing device for digital computer
JPH06202764A (en) Power source disconnecting device
JPH0325813B2 (en)
JPH02264317A (en) Data processor
JP3009236B2 (en) Hot maintenance of devices
JP2533116B2 (en) Data processing device
JP2778299B2 (en) Programmable controller
JPH05108503A (en) Power failure processing system
JPH01267756A (en) Computer control device
JP2782784B2 (en) Microcomputer control device
JPS60138655A (en) Protecting method of nonvolatile memory
JPH07248865A (en) Activity detection system of device controller
JPH0635562A (en) Abnormal operation preventing circuit for microcomputer
JPH05233474A (en) Storage contents protection system
JP2613986B2 (en) Information processing device
JPH0519897A (en) Resetting control circuit of information processor
JPS62214419A (en) Arithmatic and control unit