JPH0738990Y2 - Voltage drop detection circuit for electronic devices - Google Patents

Voltage drop detection circuit for electronic devices

Info

Publication number
JPH0738990Y2
JPH0738990Y2 JP1988080334U JP8033488U JPH0738990Y2 JP H0738990 Y2 JPH0738990 Y2 JP H0738990Y2 JP 1988080334 U JP1988080334 U JP 1988080334U JP 8033488 U JP8033488 U JP 8033488U JP H0738990 Y2 JPH0738990 Y2 JP H0738990Y2
Authority
JP
Japan
Prior art keywords
flop
flip
power supply
ram
detection circuit
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 - Lifetime
Application number
JP1988080334U
Other languages
Japanese (ja)
Other versions
JPH022735U (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1988080334U priority Critical patent/JPH0738990Y2/en
Publication of JPH022735U publication Critical patent/JPH022735U/ja
Application granted granted Critical
Publication of JPH0738990Y2 publication Critical patent/JPH0738990Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Debugging And Monitoring (AREA)

Description

【考案の詳細な説明】 〔産業上の利用分野〕 本考案はマイクロコンピュータ及びメモリ保護用バック
アップ電源回路を有する電子機器、特に車載用電子機器
のバックアップ電源の電圧低下検出回路に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to an electronic device having a microcomputer and a backup power supply circuit for memory protection, and more particularly to a voltage drop detection circuit for a backup power supply of in-vehicle electronic devices.

〔従来技術〕[Prior art]

近年、自動車等に対する排ガスの洗浄化、省エネルギー
化、あるいは運転性能の向上等の要求を満足させるべ
く、エンジン或いはトランスミッション等を電子的に制
御する電子制御装置が数多く開発されている。これらの
電子制御装置では制御の複雑化に伴いマイクロコンピュ
ータを用いるのが一般的となっている。例えば燃料噴射
装置にあっては、各種センサによって検出したエンジン
の動作情報をマイクロコンピュータで処理し、燃料噴射
量、噴射タイミング等を制御している。
2. Description of the Related Art In recent years, many electronic control devices have been developed that electronically control an engine, a transmission, or the like in order to satisfy requirements for cleaning exhaust gas, saving energy, or improving driving performance for automobiles and the like. In these electronic control devices, a microcomputer is generally used as the control becomes complicated. For example, in a fuel injection device, engine operation information detected by various sensors is processed by a microcomputer to control the fuel injection amount, injection timing and the like.

このような電子制御装置は通常、自動車のイグニッショ
ンスイッチをONとした時だけ動作するが、イグニッショ
ンスイッチをOFFとした時も、メモリ(RAM)の内容を保
護する必要がある場合はRAMの電源、或いはワンチップ
マイクロコンピュータ(CPU)の場合はCPUの電源をイグ
ニッションスイッチを経由せず直接バッテリーから供給
することが行なわれている(この電源はバックアップ電
源と称される)。このようにして保護されたRAMに書込
まれた内容の例としては、自己診断の結果のデータ、可
動部の位置を検出するセンサの取付誤差を修正する補正
データ等がある。
Such an electronic control unit usually operates only when the ignition switch of the car is turned on, but even when the ignition switch is turned off, if it is necessary to protect the contents of the memory (RAM), the power supply of the RAM, Alternatively, in the case of a one-chip microcomputer (CPU), the power of the CPU is supplied directly from the battery without passing through the ignition switch (this power supply is called the backup power supply). Examples of the contents written in the RAM protected in this manner include self-diagnosis result data, correction data for correcting the mounting error of the sensor for detecting the position of the movable portion, and the like.

このようにバックアップされたRAMを有する電子制御装
置においては、RAMから読み出したデータが正しく書込
まれたデータであるか、或いは最初にバッテリーを接続
した直後の不安定な状態でのデータであるかを区別し、
後者の場合には初期データを書込んでイニシャライズし
ておく必要がある。第3図はこのバッテリーが継続して
接続されているか、或いは一度外された経歴があるかを
判別する従来の電圧低下検出回路の構成を示す図であ
る。
In the case of an electronic control unit that has a RAM that is backed up in this way, is the data read from the RAM correctly written data, or is it data in an unstable state immediately after the battery is first connected? To distinguish
In the latter case, it is necessary to write initial data and initialize it. FIG. 3 is a diagram showing a configuration of a conventional voltage drop detection circuit for determining whether the battery is continuously connected or has a history of being once removed.

同図において、21はバックアップ電源入力端子であり、
CPUにイグニッションスイッチによる正規の電源が接続
されていない状態で最初にこのバックアップ電源入力端
子21にバックアップ電源(バッテリー)が接続されてる
時は時定数回路26(抵抗器R及びコンデンサCで構成さ
れる)によってフリップフロップ22がセットされ出力25
はH(高)レベルとなる。この後イグニッションスイッ
チ(図示せず)がONとなって正規の電源が接続されCPU2
3が動作を始めると、上記出力25をチェックし、該出力2
5がHレベルであればバックアップ電源(バッテリー)
がバックアップ電源入力端子21に接続された直後の状態
と判断し、バックアップRAMの内容が不定の状態である
から、該バックアップRAMをイニシャライズし、次回の
イグニッションスイッチのONに備えてフリップフロップ
22のリセット端子24にリセット信号を出力する。即ち、
CPUが動作を開始した時点で出力25がHレベルであれ
ば、RAMの電源であるバックアップ電源(バッテリー)
をバックアップ電源入力端子21に接続する動作が行われ
たと判断し、このバックアップ電源が接続されたという
ことはそれ以前にはバックアップ電源が接続されなかっ
たということで、バックアップRAMの内容が破壊されて
いる恐れがあるから、その対策として、バックアップRA
Mの内容をイニシャライズし、そしてその後、イニシャ
ライズを再度行う必要がないことを示すために、フリッ
プフロップ22のリセット端子24にリセット信号を出力
し、その出力をL(低)レベルとする。また、CPUが動
作を開始した時点で出力25がLレベルであれば、バック
アップRAMの内容が破壊されていると判断してバックア
ップRAMのイニシャライズを行わない。この部分のCPU23
の動作フローチャートを第4図に示す。
In the figure, 21 is a backup power input terminal,
When the backup power supply (battery) is first connected to this backup power supply input terminal 21 when the CPU does not connect the normal power supply by the ignition switch, the time constant circuit 26 (composed of the resistor R and the capacitor C) ) Sets the flip-flop 22 and outputs 25
Becomes H (high) level. After this, the ignition switch (not shown) is turned on and the regular power supply is connected to CPU2.
When 3 starts operating, check the above output 25,
If 5 is H level, backup power supply (battery)
Is determined to be the state immediately after being connected to the backup power input terminal 21, and the contents of the backup RAM are indefinite, so the backup RAM is initialized and the flip-flop is prepared for the next ignition switch ON.
The reset signal is output to the reset terminal 24 of 22. That is,
If the output 25 is at H level when the CPU starts operating, the backup power supply (battery) that is the power supply for RAM
Is determined to have been connected to the backup power supply input terminal 21, and the fact that this backup power supply was connected means that the backup power supply was not connected before that, and the contents of the backup RAM were destroyed. Backup RA
The contents of M are initialized, and then a reset signal is output to the reset terminal 24 of the flip-flop 22 to indicate that it is not necessary to initialize again, and the output is set to L (low) level. If the output 25 is at the L level when the CPU starts operating, it is determined that the contents of the backup RAM have been destroyed and the backup RAM is not initialized. CPU23 of this part
FIG. 4 shows an operation flowchart of the above.

即ち、電源ON(イグニッションスイッチをONし正規の電
源を投入)によりフリップフロップ22の出力がHレベル
かを判断し(ステップ201)、Hレベルであればバック
アップRAMをイニシャライズし(ステップ202)、フリッ
プフロップ22のリセット端子24にリセット信号を出力す
る。
That is, it is judged whether the output of the flip-flop 22 is at the H level by turning on the power (turning the ignition switch on and turning on the regular power) (step 201). If the output is at the H level, the backup RAM is initialized (step 202) and the flip-flop is turned on. The reset signal is output to the reset terminal 24 of the amplifier 22.

〔考案が解決しようとする課題〕[Problems to be solved by the device]

しかしながら上記第3図に示す電圧低下検出回路では、
フリップフロップ22のリセット端子24を極く限られた条
件の場合のみしか使用しないにもかかわらずCPU23の単
独出力ポートとして具備しなければならず、CPU23の出
力ポート数の増加、ひいては装置の大型化、高価格化を
招いていた。また、フリップフロップ22はCPU23の電源
の電圧レギュレータ等と共に単一の電源制御ICとして構
成される場合が多いが、この電源制御ICのピン数の増加
を招くという問題もあった。
However, in the voltage drop detection circuit shown in FIG.
Although the reset terminal 24 of the flip-flop 22 is used only under extremely limited conditions, it must be provided as an independent output port of the CPU 23, increasing the number of output ports of the CPU 23 and eventually increasing the size of the device. , Leading to higher prices. Further, the flip-flop 22 is often configured as a single power supply control IC together with a voltage regulator for the power supply of the CPU 23, but there is also a problem that the number of pins of this power supply control IC increases.

本考案は上述の点に鑑みてなされたもので、上記欠点を
除去し、小型、低価格の電子機器の電圧低下検出回路を
提供することにある。
The present invention has been made in view of the above points, and an object of the present invention is to eliminate the above-mentioned drawbacks and to provide a small-sized, low-cost voltage drop detection circuit for electronic devices.

〔課題を解決するための手段〕[Means for Solving the Problems]

上記課題を解決するため本考案は、CPUと、RAMと、RAM
の内容を保護するバックアップ電源と、バックアップ電
源がRAMに接続されたことに応じてセットされるフリッ
プフロップを具備し、フリップフロップの出力に応じて
CPUの動作開始時にRAMのイニシャライズを行うか否かを
決定する電子機器の電圧低下検出回路において、フリッ
プフロップのリセット信号をウォッチドッグタイマのリ
セット信号と兼用することを特徴とする。
In order to solve the above problems, the present invention provides a CPU, a RAM, and a RAM.
It is equipped with a backup power supply that protects the contents of, and a flip-flop that is set when the backup power supply is connected to RAM.
In the voltage drop detection circuit of the electronic device that determines whether to initialize the RAM when the operation of the CPU is started, the reset signal of the flip-flop is also used as the reset signal of the watchdog timer.

〔作用〕[Action]

電圧低下検出回路を上記の如く構成することにより、ウ
ォッチドッグタイマのリセット信号をフリップフロップ
のリセット信号と兼用させるので、CPUの出力ポート数
の増加を招くことなく、またフリップフロップとCPUの
電源レギュレータ等を単一の電源制御ICとして構成する
場合も、該電源制御ICのピン数の増加を招くこともな
い。
By configuring the voltage drop detection circuit as described above, the reset signal of the watchdog timer is also used as the reset signal of the flip-flop, so that the number of output ports of the CPU is not increased and the power regulator of the flip-flop and the CPU is not increased. Even when these are configured as a single power supply control IC, the number of pins of the power supply control IC does not increase.

〔実施例〕〔Example〕

以下、本考案の一実施例を図面に基づいて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本考案に係る電子機器の電圧低下検出回路の構
成を示す図である。同図において、1はバックアップ電
源入力端子、2はフリップフロップ、3はCPU、4はウ
ォッチドッグタイマ7のリセット信号兼フリップフロッ
プ2のリセット信号、5は前記フリップフロップ2の出
力信号、6は時定数回路(抵抗器R及びコンデンサCで
構成される)、8は前記CPU3の暴走時にCPUをリセット
するウォッチドッグタイマ7の出力信号である。第1図
の電圧低下検出回路において、バックアップ電源入力端
子1に最初に電源が接続されてから、フリップフロップ
2の出力信号5がHレベルとなるまでは、第3図の電圧
低下検出回路と同じである。その後、イグニッションス
イッチ(図示せず)がONとなってCPU3が動作を始めた
ら、通常は直ちにウォッチドッグタイマ7に対してリセ
ット信号を出力し始めるが、本考案においては、最初の
リセット信号の出力の前にフリップフロップ2の出力信
号5をチェックし、これを確認した後、ウォッチドッグ
タイマ7に対してリセット信号を出力する。この場合の
フローチャートを第2図に示す。
FIG. 1 is a diagram showing a configuration of a voltage drop detection circuit of an electronic device according to the present invention. In the figure, 1 is a backup power input terminal, 2 is a flip-flop, 3 is a CPU, 4 is a reset signal of the watchdog timer 7 and a reset signal of the flip-flop 2, 5 is an output signal of the flip-flop 2, and 6 is a time. A constant circuit (composed of a resistor R and a capacitor C), 8 is an output signal of a watchdog timer 7 which resets the CPU 3 when the CPU 3 runs out of control. In the voltage drop detection circuit of FIG. 1, the same as the voltage drop detection circuit of FIG. 3 from the first connection of the power supply to the backup power supply input terminal 1 until the output signal 5 of the flip-flop 2 becomes H level. Is. After that, when the ignition switch (not shown) is turned on and the CPU 3 starts operating, normally, it immediately starts outputting the reset signal to the watchdog timer 7, but in the present invention, the first reset signal is output. The output signal 5 of the flip-flop 2 is checked before, and after confirming this, a reset signal is output to the watchdog timer 7. A flowchart in this case is shown in FIG.

第2図において、フリップフロップ2の出力信号5がH
レベルであるか否かを判断し(ステップ101)、Hレベ
ルである時は、ウォッチドッグタイマ7のリセット信号
兼フリップフロップ2のリセット信号4を出力し、フリ
ップフロップ2をリセットした後、バックアップRAMを
イニシャライズする(ステップ103)。フリップフロッ
プ2の出力信号5がHレベルでない時は、バックアップ
RAMをイニシャライズを行なわず次のステップへと進
む。
In FIG. 2, the output signal 5 of the flip-flop 2 is H
It is judged whether or not it is the level (step 101), and when it is the H level, the reset signal 4 of the watchdog timer 7 and the reset signal 4 of the flip-flop 2 are output to reset the flip-flop 2 and then the backup RAM. Is initialized (step 103). Backup when the output signal 5 of the flip-flop 2 is not at H level
Do not initialize the RAM and proceed to the next step.

上記の如くCPU3からのウォッチドッグタイマ7をリセッ
トするリセット信号をフリップフロップリセット信号と
兼用するように構成することにより、CPU3の出力ポート
にフリップフロップ2をリセットするための単独の出力
ポートを設ける必要がなくなる。
Since the reset signal for resetting the watchdog timer 7 from the CPU 3 is also used as the flip-flop reset signal as described above, it is necessary to provide the output port of the CPU 3 with a single output port for resetting the flip-flop 2. Disappear.

〔考案の効果〕[Effect of device]

以上説明したように本考案によれば、ウォッチドッグタ
イマのリセットとフリップフロップのリセットをコンピ
ュータの同一ポートによって行なうので、下記のような
極めて優れた効果が得られる。
As described above, according to the present invention, since the reset of the watchdog timer and the reset of the flip-flop are performed by the same port of the computer, the following excellent effects can be obtained.

コンピュータのポート数の減少が計れ、小型化、低
価格化が期待できる。
The number of computer ports can be reduced, and miniaturization and cost reduction can be expected.

フリップフロップのリセットのための特別な処理が
不要となるので、ソフトウェアが簡単になる。
Software is simplified because no special processing for resetting the flip-flop is required.

フリップフロップはコンピュータ電源のレギュレー
タ、ウォッチドッグタイマ等と共に単一の電源制御ICと
して構成される場合は、この電源制御ICのピン数を減少
することができる。
When the flip-flop is configured as a single power supply control IC together with a computer power supply regulator, a watchdog timer, etc., the number of pins of this power supply control IC can be reduced.

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

第1図は本考案に係る電子機器の電圧低下検出回路の構
成を示す図、第2図は第1図のCPUの動作フローチャー
ト、第3図は従来の電子機器の電圧低下検出回路の構成
を示す図、第4図は第3図のCPUの動作フローチャート
である。 図中、1……バックアップ電源入力端子、2……フリッ
プフロップ、3……CPU、4……リセット信号兼フリッ
プフロップ信号、5……出力信号、6……時定数回路、
7……ウォッチドッグタイマ、8……出力信号。
FIG. 1 is a diagram showing a configuration of a voltage drop detection circuit of an electronic device according to the present invention, FIG. 2 is an operation flowchart of a CPU of FIG. 1, and FIG. 3 is a configuration of a voltage drop detection circuit of a conventional electronic device. FIG. 4 and FIG. 4 are operation flowcharts of the CPU of FIG. In the figure, 1 ... Backup power input terminal, 2 ... Flip-flop, 3 ... CPU, 4 ... Reset signal and flip-flop signal, 5 ... Output signal, 6 ... Time constant circuit,
7: Watchdog timer, 8: Output signal.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】CPUと、RAMと、該RAMの内容を保護するバ
ックアップ電源と、該バックアップ電源が該RAMに接続
されたことに応じてセットされるフリップフロップを具
備し、該フリップフロップの出力に応じて前記CPUの動
作開始時に前記RAMのイニシャライズを行うか否かを決
定する電子機器の電圧低下検出回路において、 前記フリップフロップのリセット信号をウォッチドッグ
タイマのリセット信号と兼用することを特徴とする電子
機器の電圧低下検出回路。
1. A CPU, a RAM, a backup power supply for protecting the contents of the RAM, and a flip-flop that is set in response to the backup power supply being connected to the RAM, and the output of the flip-flop. In a voltage drop detection circuit of an electronic device that determines whether to initialize the RAM at the start of operation of the CPU according to, a reset signal of the flip-flop is also used as a reset signal of a watchdog timer. Voltage drop detection circuit for electronic equipment.
JP1988080334U 1988-06-17 1988-06-17 Voltage drop detection circuit for electronic devices Expired - Lifetime JPH0738990Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1988080334U JPH0738990Y2 (en) 1988-06-17 1988-06-17 Voltage drop detection circuit for electronic devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1988080334U JPH0738990Y2 (en) 1988-06-17 1988-06-17 Voltage drop detection circuit for electronic devices

Publications (2)

Publication Number Publication Date
JPH022735U JPH022735U (en) 1990-01-10
JPH0738990Y2 true JPH0738990Y2 (en) 1995-09-06

Family

ID=31305163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1988080334U Expired - Lifetime JPH0738990Y2 (en) 1988-06-17 1988-06-17 Voltage drop detection circuit for electronic devices

Country Status (1)

Country Link
JP (1) JPH0738990Y2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62163151A (en) * 1986-01-14 1987-07-18 Matsushita Electric Ind Co Ltd Initialization method for standby memory
JPH01100239U (en) * 1987-12-21 1989-07-05

Also Published As

Publication number Publication date
JPH022735U (en) 1990-01-10

Similar Documents

Publication Publication Date Title
GB2072883A (en) Automatic control of ic engines
US4531198A (en) Operation mode monitor for microcomputer
JP2696511B2 (en) Return method from power down mode
JPH0237151A (en) Engine controller
JPS5968004A (en) Fail-safe method of on-vehicle computer
JP3817855B2 (en) Electronic control device
JPH0738990Y2 (en) Voltage drop detection circuit for electronic devices
US6928346B2 (en) Method for monitoring the functioning of a control unit
JP3178129B2 (en) Memory backup protection device
JP2001188687A (en) Microcomputer
JPS6362776B2 (en)
JPH06103467B2 (en) Preventing malfunction of automobile computer
US20010005808A1 (en) Electronic control having floating-point data check function
JPS623312A (en) Electronic controller for vehicle
JPH0641739B2 (en) Car control equipment
JPS61175830A (en) Malfunction preventing system of computer for automobile
JPS61279940A (en) Fault detector for computer
JP3402414B2 (en) Watchdog timer circuit
JPH0246966B2 (en)
JP2000066965A (en) Diagnostic device for ram
JPH06103098A (en) Information processor
JPH11203208A (en) Short circuit detection method for serial communication line
JPH039487B2 (en)
JPH06231002A (en) Microcomputer
JPH01149143A (en) Fail safe method for on-vehicle computer