JPH0150926B2 - - Google Patents

Info

Publication number
JPH0150926B2
JPH0150926B2 JP57189703A JP18970382A JPH0150926B2 JP H0150926 B2 JPH0150926 B2 JP H0150926B2 JP 57189703 A JP57189703 A JP 57189703A JP 18970382 A JP18970382 A JP 18970382A JP H0150926 B2 JPH0150926 B2 JP H0150926B2
Authority
JP
Japan
Prior art keywords
power supply
data
microprocessor
circuit
output
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
Application number
JP57189703A
Other languages
Japanese (ja)
Other versions
JPS5979323A (en
Inventor
Motoi Inomata
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.)
NEC Home Electronics Ltd
Original Assignee
NEC Home Electronics 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 NEC Home Electronics Ltd filed Critical NEC Home Electronics Ltd
Priority to JP57189703A priority Critical patent/JPS5979323A/en
Publication of JPS5979323A publication Critical patent/JPS5979323A/en
Publication of JPH0150926B2 publication Critical patent/JPH0150926B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Description

【発明の詳細な説明】 技術分野 本発明はデーター保持装置に関し、特に電源の
遮断時あるいは電源の再供給時に於いてもデータ
ーを確実に保持し続けることが出来るデーター保
持装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a data retention device, and more particularly to a data retention device that can reliably retain data even when power is cut off or when power is resupplied.

背景の技術 近年、電子技術の急速な発達に伴なつて、各種
装置が電子化される傾向にある。例えば自動車に
於いては、マイクロコンピユーターによつてエン
ジンの点火制御および各種部分に対する制御が行
なわれており、積算距離の計数もこのマイクロコ
ンピユーターが担当している。そして、この積算
距離の計数値は、電源スイツチのオフ時に於いて
も保持し続ける必要があるために、電源スイツチ
のオフ時にはバツクアツプ電源を利用してマイク
ロコンピユーターの内部に設けられているメモリ
に保持し、メイン電源としてのバツテリーが取り
外された場合には、一定時間遅れてオフとなるバ
ツクアツプ電源を用いてデーターを不揮発性メモ
リに格納している。
BACKGROUND ART In recent years, with the rapid development of electronic technology, there is a tendency for various devices to be computerized. For example, in an automobile, a microcomputer controls the ignition of the engine and controls various parts, and is also responsible for counting the cumulative distance. Since it is necessary to keep this accumulated distance count value even when the power switch is turned off, it is stored in the memory provided inside the microcomputer using the backup power supply when the power switch is turned off. However, if the battery as the main power source is removed, data is stored in nonvolatile memory using a backup power source that turns off after a certain period of time.

しかしながら、不揮発性メモリはその消費電流
が比較的多いために、バツクアツプ電源に常時接
続しておくと、電源スイツチのオフ時には発電機
が作動されていないために、比較的長期間にわた
つて自動車を使用しなかつた場合にはバツテリー
の放電が進行してエンジンの始動が困難となる。
However, since non-volatile memory consumes a relatively large amount of current, if it is constantly connected to a backup power source, the generator will not be running when the power switch is turned off, so the car will not run for a relatively long period of time. If the battery is not used, the battery will continue to discharge, making it difficult to start the engine.

これに対して、電源スイツチをオフする毎にデ
ーターを不揮発性メモリに格納した後にバツクア
ツプ電源をオフさせることにより、電源スイツチ
のオフ時に於ける電力消費をなくすことも考えら
れるが、不揮発性メモリは書き込み回数の増加に
伴なつて格納データーの保持時間が短かくなる問
題を有しているためにかかる構成を用いることは
出来ない。
On the other hand, it is possible to eliminate power consumption when the power switch is turned off by storing data in non-volatile memory each time the power switch is turned off and then turning off the backup power supply, but non-volatile memory Such a configuration cannot be used because it has the problem that the retention time of stored data becomes shorter as the number of writes increases.

発明の開示 従つて、本発明による目的は、電源スイツチの
オフ時に於ける電力消費をデーターの保持動作に
影響を与えずに大幅に減少させることが出来るデ
ーター保持装置を提供するものである。
DISCLOSURE OF THE INVENTION Accordingly, an object of the present invention is to provide a data holding device that can significantly reduce power consumption when the power switch is turned off without affecting data holding operations.

このような目的を達成するために本発明は、不
揮発性メモリに対するバツクアツプ電源からの電
源供給をメイン電源のオフ・オン時でかつデータ
ーの書き込みと読み出しを行なう短期間のみとす
るものである。
In order to achieve this object, the present invention supplies power to the nonvolatile memory from the backup power supply only for a short period when the main power supply is turned off and on and when data is written and read.

このような構成を用いることにより、電源スイ
ツチのオフ時に於ける不揮発性メモリの電力消費
が防止され、これに伴なつてバツテリーの不用放
電が防止される優れた効果を有する。
By using such a configuration, it is possible to prevent the nonvolatile memory from consuming power when the power switch is turned off, and this has the excellent effect of preventing unnecessary discharge of the battery.

発明を実施するための最良の形態 図は本発明によるデーター保持装置の一実施例
を示す回路図であつて、特に自動車の走行距離を
算出して表示する場合に適用したものである。同
図に於いて1は電源回路であつて、電源としての
バツテリー2の出力をメイン電源+BM(+12V)
として用いている。そして、メイン電源+BM
電源スイツチとしてのキースイツチ3を介して第
1レギユレーター4にスイツチ出力電源+BS(+
12V)として供給されることにより、この第1レ
ギユレーター3から逆流防止用のダイオード5を
介して駆動電源+B(+5V)として出力されるよ
うに構成されている。また、メイン電源+BM
一部は、第2レギユレーター6を介して+5Vの
電源として出力され、更に比較的大容量のコンデ
ンサ7に於いて平滑されてバツクアツプ電源+
BBとして出力される。8は電源回路1から発生
される駆動電源+Bを電源VDDとして入力し、か
つバツクアツプ電源+BBを電源VCCとして入力す
るマイクロプロセツサーである。そして、このマ
イクロプロセツサー8はリード信号Rを発生する
出力ポートP1、ライト信号Wを発生する出力ポ
ートP2、アドレスバスABが接続される出力ポー
トP3、データーバスDBが接続される入出力ポー
トP4、リセツト信号RSを入力とする入力ポート
P5、データー書き込み指令信号を入力する入
力ポートP6およびデーター読み出し指令信号
を入力する入力ポートP7とを有している。9は
不揮発性メモリであつて、アドレスバスABおよ
びデーターバスDBを介してマイクロプロセツサ
ー8に接続され、マイクロプロセツサー8から供
給されるリード信号Rおよびライト信号Wに応じ
てデーターの保持および読み出しが行なわれる。
10は不揮発性メモリ用電源回路であつて、電源
回路1のメイン電源+BMを抵抗11,12によ
り分圧した信号を入力とすることにより、メイン
電源+BMが設定レベル以上の時のみ出力を発生
するバツフア回路13を有している。そして、こ
のバツフア回路13の出力は、バツクアツプ電源
+BBと不揮発性メモリ9の電源VDDとの間に接続
されたスイツチング用のトランジスタ14のベー
スに抵抗15を介して供給される。16,17は
メイン電源+BMを分圧する抵抗、18はこの分
圧出力により充電されるコンデンサであつて、抵
抗16とによつて積分回路を構成している。19
はこの積分回路の出力を反転するインバーター、
20はトランジスタ14のベースとアース間に接
続されたトランジスタであつて、そのベースは抵
抗21を介してインバーター19の出力端に接続
されている。22はリセツト信号を前記マイ
クロプロセツサー8に供給することによりマイク
ロプロセツサー8をリセツト信号が“L”信
号の場合はスタンバイモードにし、リセツト信号
RSが“H”信号の場合にはスタンバイモードを
解除する回路である。そして、このスタンバイモ
ード解除回路22は、抵抗23,24によつてス
イツチ出力電源+BSを分圧した信号を正極入力
とし、抵抗25,26によつてバツクアツプ電源
+BSを分圧した信号を負極入力として比較する
コンパレーター27と、コレクタが抵抗28を介
してバツクアツプ電源+BBに接続されるととも
にエミツタがアースに接続され、かつ前記コンパ
レーター27の出力を抵抗29を介してベース入
力とするトランジスタ30と、トランジスタ30
の出力を抵抗31を介してベース入力とすること
により駆動されてマイクロプロセツサー8の入力
ポートP5をアースに接続するトランジスタ32
と、トランジスタ32のコレクタとアース間に接
続されたコンデンサ33と、不揮発性メモリ用電
源回路10の出力を抵抗34,35によつて分圧
した信号による出力をベース入力とし、かつトラ
ンジスタ30に対して並列に接続されたトランジ
スタ36とによつて構成されている。37はデー
ター書き込み指令信号を発生するデーター書き
込み指令回路であつて、抵抗38,39によるメ
イン電源+BMの分圧出力を正極入力とし、バツ
クアツプ電源+BBとアース間に接続された抵抗
40とツエナーダイオード41の両端電位を定電
圧源として負極入力とするコンパレーター42
と、このコンパレーター42の出力を積分してデ
ーター書き込み指令信号を発生する抵抗43と
コンデンサ44からなる積分回路とによつて構成
されている。45はデーター読み出し指令回路で
あつて、バツクアツプ電源+BBを積分する抵抗
46とコンデンサ47の直列体と、この積分出力
を入力としてデーター読み出し指令信号を出力
するバツフア回路48と、抵抗46に対して並列
に接続されてコンデンサ47に対する放電系路を
構成するダイオード49とによつて構成されてい
る。
BEST MODE FOR CARRYING OUT THE INVENTION The figure is a circuit diagram showing an embodiment of a data holding device according to the present invention, and is particularly applied to calculating and displaying the distance traveled by a car. In the figure, 1 is a power supply circuit, which connects the output of battery 2 as a power source to the main power supply +B M (+12V).
It is used as Then, the main power supply +B M is supplied to the first regulator 4 via the key switch 3 as a power switch, and the switch output power supply +B S (+
12V), the first regulator 3 outputs the drive power +B (+5V) via the backflow prevention diode 5. Also, a part of the main power supply +B M is output as a +5V power supply via the second regulator 6, and is further smoothed in a relatively large capacity capacitor 7 to become a backup power supply +B.
Output as B B. Reference numeral 8 denotes a microprocessor to which the drive power +B generated from the power supply circuit 1 is inputted as the power supply VDD , and the backup power supply +B B is inputted as the power supply VCC . This microprocessor 8 is connected to an output port P 1 that generates a read signal R, an output port P 2 that generates a write signal W, an output port P 3 to which an address bus AB is connected, and a data bus DB. Input/output port P 4 , input port that receives reset signal RS
P 5 , an input port P 6 into which a data write command signal is input, and an input port P 7 into which a data read command signal is input. A non-volatile memory 9 is connected to the microprocessor 8 via an address bus AB and a data bus DB, and stores data in response to a read signal R and a write signal W supplied from the microprocessor 8. and reading is performed.
10 is a power supply circuit for non-volatile memory, which inputs a signal obtained by dividing the main power supply +B M of the power supply circuit 1 by resistors 11 and 12, and outputs only when the main power supply +B M is equal to or higher than a set level. It has a buffer circuit 13 for generating. The output of this buffer circuit 13 is supplied via a resistor 15 to the base of a switching transistor 14 connected between the backup power supply + BB and the power supply VDD of the nonvolatile memory 9. 16 and 17 are resistors that divide the voltage of the main power supply +B M , and 18 is a capacitor that is charged by this divided voltage output. Together with the resistor 16, they constitute an integrating circuit. 19
is an inverter that inverts the output of this integrating circuit,
A transistor 20 is connected between the base of the transistor 14 and the ground, and its base is connected to the output terminal of the inverter 19 via a resistor 21. 22 supplies a reset signal to the microprocessor 8 to put the microprocessor 8 into standby mode when the reset signal is an "L"signal;
This circuit releases standby mode when RS is an "H" signal. This standby mode release circuit 22 receives a signal obtained by dividing the voltage of the switch output power supply + BS by resistors 23 and 24 as a positive terminal input, and a signal obtained by dividing the voltage of the backup power supply + BS by resistors 25 and 26 as a negative terminal. A comparator 27 to be compared as an input, and a transistor whose collector is connected to the backup power supply +B B via a resistor 28 and whose emitter is connected to ground, and whose base input is the output of the comparator 27 via a resistor 29. 30 and transistor 30
A transistor 32 is driven by connecting the input port P 5 of the microprocessor 8 to ground by connecting the output of the microprocessor 8 to ground through a resistor 31 as a base input.
, a capacitor 33 connected between the collector of the transistor 32 and the ground, and a signal obtained by dividing the output of the nonvolatile memory power supply circuit 10 by resistors 34 and 35 as the base input, and a base input for the transistor 30. and a transistor 36 connected in parallel. 37 is a data write command circuit that generates a data write command signal, which takes the divided voltage output of the main power supply +B M by resistors 38 and 39 as its positive input, and connects the resistor 40 and zener connected between the backup power supply +B B and the ground. A comparator 42 whose negative input is the potential across the diode 41 as a constant voltage source.
and an integrating circuit consisting of a resistor 43 and a capacitor 44, which integrate the output of the comparator 42 to generate a data write command signal. Reference numeral 45 denotes a data read command circuit, which includes a series body of a resistor 46 and a capacitor 47 that integrate the backup power supply +B B , a buffer circuit 48 that receives the integrated output as input, and outputs a data read command signal, and a buffer circuit 48 that outputs a data read command signal for the resistor 46. A diode 49 is connected in parallel to form a discharge path for the capacitor 47.

このように構成された回路に於いて、通常状態
に於いてはバツテリー2が接続されてメイン電源
+BMが発生され、これに伴なつて第2レギユレ
ーター6からバツクアツプ電源+BBが発生され
ている。また、キースイツチ3が閉じられている
ことにより、スイツチ出力電源+BSと駆動電源
+Bが発生されている。従つて、マイクロプロセ
ツサー8は、前記駆動電源+Bおよびバツクアツ
プ電源+BBを電源VDD,VCCとすることにより作
動(信号は“H”)し、単位走行毎に供給され
る走行距離パルスを順次計数して積算距離を表示
する動作を実行している。
In the circuit configured as described above, under normal conditions, the battery 2 is connected to generate main power +B M , and along with this, backup power +B B is generated from the second regulator 6. . Furthermore, since the key switch 3 is closed, switch output power +B S and drive power +B are generated. Therefore, the microprocessor 8 operates by using the drive power supply +B and the backup power supply + B as the power supplies V DD and V CC (the signal is "H"), and the odometer pulse supplied for each unit travel is activated. The operation is to sequentially count and display the cumulative distance.

次に、キースイツチ3が開かれると、スイツチ
出力電源+BSおよび第1レギユレーター4から
発生される駆動電源+Bがオフとなる。この結
果、リセツト信号は“L”となつてマイクロ
プロセツサー8はスタンバイモードとなり電源回
路1から供給されるバツクアツプ電源+BBを電
源VCCとして入力して、積算距離の計数値を内部
に設けられているメモリに保持し続ける。そし
て、キースイツチ3が再び閉じられると、駆動電
源+Bが再び発生されることからマイクロプロセ
ツサー8はメモリに保持されている積算距離の記
憶値を続み出し、以後順次供給される走行距離信
号を積算して表示する動作を実行する。この場
合、キースイツチ3がオンされると、コンパレー
ター27の正極に供給される抵抗23,24によ
るスイツチ出力電源+BSの分圧出力が上昇する
ことから、このコンパレーター27の出力が
“H”となつてトランジスタ30がオンされる。
トランジスタ30がオンされると、バツクアツプ
電源+BBによつてオンされてリセツト信号を
マイクロプロセツサー8の入力ポートP5に供給
しているトランジスタ32がオフされてマイクロ
プロセツサー8に対するリセツト制御(スタンバ
イモード)が解除されている。
Next, when the key switch 3 is opened, the switch output power supply +B S and the drive power supply +B generated from the first regulator 4 are turned off. As a result, the reset signal becomes "L" and the microprocessor 8 goes into standby mode, inputting the backup power supply +B B supplied from the power supply circuit 1 as the power supply V CC and setting the cumulative distance count value internally. continues to be held in memory. Then, when the key switch 3 is closed again, the driving power +B is generated again, so the microprocessor 8 continues reading out the stored value of the accumulated distance held in the memory, and outputs the mileage signal that is sequentially supplied from then on. Execute the operation of integrating and displaying. In this case, when the key switch 3 is turned on, the divided voltage output of the switch output power supply +B S by the resistors 23 and 24 supplied to the positive terminal of the comparator 27 increases, so that the output of the comparator 27 becomes "H". As a result, transistor 30 is turned on.
When the transistor 30 is turned on, the transistor 32, which is turned on by the backup power supply + B and supplies a reset signal to the input port P5 of the microprocessor 8, is turned off and reset control for the microprocessor 8 is performed. (standby mode) is canceled.

次に、何かの要因によつてバツテリー2が取り
外されると、メイン電源+BMおよびキースイツ
チ3が閉じられていた場合にはスイツチ出力電源
+BS、駆動電源+Bがそく断となる。ここで、
メイン電源+BMが断になると、その分圧出力を
入力とするバツフア回路13の出力が“L”とな
り、これに伴なつてトランジスタ14がオンとな
る。この場合、バツクアツプ電源+BBは、第2
レギユレーター6の出力側に設けられているコン
デンサ7によつてメイン電源+BMが断となつて
も時間t1の期間にわたつてのみ出力し続けられ
る。この結果、このバツクアツプ電源+BBがト
ランジスタ14を介して不揮発性メモリ9とマイ
クロプロセツサー8に電源VDDとして供給され
る。
Next, when the battery 2 is removed for some reason, the switch output power supply +B S and the drive power supply +B are cut off if the main power supply +B M and the key switch 3 are closed. here,
When the main power supply +B M is turned off, the output of the buffer circuit 13 which receives the divided voltage output becomes "L", and the transistor 14 is accordingly turned on. In this case, the backup power supply + B
The capacitor 7 provided on the output side of the regulator 6 allows the output to continue only for a period of time t1 even if the main power supply +B M is cut off. As a result, this backup power supply +B B is supplied to the nonvolatile memory 9 and the microprocessor 8 as a power supply V DD via the transistor 14 .

ここで、不揮発性メモリ用電源回路10から出
力が発生されると、その一部はスタンバイモード
解除回路22に供給されてトランジスタ36がオ
ンとなる。トランジスタ36がオンになると、ト
ランジスタ32がオフされてリセツト信号の
発生を中止してマイクロプロセツサー8に対する
スタンバイモードを解除する。一方、データー書
き込み指令回路37に於いては、メイン電源+
BMの断に遅れてバツフア電源+BBが低下するこ
とから、抵抗38,39によるメイン電源+BM
がツエナーダイオード41の両端に発生される定
電圧よりも低下した時点に於いてコンパレーター
42の出力が“L”となる。そして、このコンパ
レーター42の出力信号は、抵抗43とコンデン
サ44による積分回路を介してデーター書き込み
指令信号としてマイクロプロセツサー8の入力
ポートP6に供給される。マイクロプロセツサー
8は、このデーター書き込み指令信号を受ける
と、出力ポートP2からライト信号Wを発生する
とともに、出力ポートP3,P4からアドレス信号
と積算データーを発生して不揮発性メモリ9に必
要データーの書き込みを行なつて保持する。ここ
で、バツクアツプ電源+BBは、メイン電源+BM
に対してt1時間のみ遅れて断となるものであるた
めに、不揮発性メモリ9に対する電源供給時間も
ほぼこのt1期間のわずかなものとなる。
Here, when an output is generated from the nonvolatile memory power supply circuit 10, a part of it is supplied to the standby mode release circuit 22, and the transistor 36 is turned on. When transistor 36 is turned on, transistor 32 is turned off to stop generating the reset signal and release the standby mode for microprocessor 8. On the other hand, in the data write command circuit 37, the main power supply +
Since the buffer power supply +B B decreases with a delay in the disconnection of B M , the main power supply +B M due to resistors 38 and 39
At the point when the voltage becomes lower than the constant voltage generated across the Zener diode 41, the output of the comparator 42 becomes "L". The output signal of the comparator 42 is supplied to the input port P6 of the microprocessor 8 as a data write command signal via an integrating circuit including a resistor 43 and a capacitor 44. When the microprocessor 8 receives this data write command signal, it generates a write signal W from the output port P 2 and also generates an address signal and integrated data from the output ports P 3 and P 4 to write the data into the nonvolatile memory 9. Write necessary data to and hold it. Here, backup power supply +B B is main power supply +B M
Since the power is turned off after a delay of t 1 time, the power supply time to the nonvolatile memory 9 is also approximately a fraction of this t 1 period.

また、t1時間はマイクロプロセツサー8が不揮
発性メモリ9への必要なデータの書き込みに要す
る時間に設定されている。
Further, the time t1 is set to the time required for the microprocessor 8 to write necessary data to the nonvolatile memory 9.

次に、バツテリー2が接続されると、メイン電
源+BMがオンになり、これに伴なつてバツクア
ツプ電源+BBがt1時間遅れて“H”となる。これ
に対して、抵抗16とコンデンサ18による積分
回路は、その出力がt2時間(t1<t2)以内は“L”
となる。従つて、この積分回路の出力を入力とす
るインバータ19は、t2時間以内に於いてその出
力が“H”となつてトランジスタ20がオンとな
る。トランジスタ20がオンすると、トランジス
タ14もオンとなつてバツクアツプ電源+BB
不揮発性メモリ9およびマイクロプロセツサー8
に電源+VDDとして供給される。
Next, when the battery 2 is connected, the main power supply +B M is turned on, and along with this, the backup power supply +B B becomes "H" after a delay of t1 hour. On the other hand, the output of the integrating circuit made up of the resistor 16 and capacitor 18 is "L" within t 2 hours (t 1 < t 2 ).
becomes. Therefore, the output of the inverter 19 which receives the output of the integrating circuit becomes "H" within time t2 , and the transistor 20 is turned on. When the transistor 20 is turned on, the transistor 14 is also turned on, and the backup power supply + B is connected to the nonvolatile memory 9 and the microprocessor 8.
Supplied as power +V DD .

一方、データー読み出し指令回路45は、抵抗
46とコンデンサ47からなる積分回路がバツク
アツプ電源+BBを積分し、この積分出力をバツ
フア回路48を介してデーター読み込み指令信号
Bとして出力する。また、スタンバイモード解除
回路22は、前述した場合と同様に不揮発性メモ
リ用電源回路10の出力によつてトランジスタ3
6がオンすることによりリセツト解除信号を
“H”としてリセツト解除を行なつている。そし
て、マイクロプロセツサー8は、その入力ポート
P7にデーター読み出し指令信号が供給される
と、出力ポートP1からリード信号Rを発生して
不揮発性メモリ9に保持されているデーターを読
み出して取り込むことにより走行距離の積算動作
を続ける。ここで、不揮発性メモリ用電源回路1
0の出力発生期間、つまり不揮発性メモリ9の電
力消費期間は、バツクアツプ電源+BBの発生時
点から抵抗16とコンデンサ18による積分回路
の出力発生開始までのわずかな期間(t2−t1)の
みとなる。この(t2−t1)時間とはマイクロプロ
セツサー8が不揮発性メモリ9からの必要なデー
タの読み出しに要する時間である。従つて、キー
スイツチ3のオフ期間に於ける不揮発性メモリ9
による電力消費が阻止されることになり、これに
伴なつて自動車の走行を長期間休止していた場合
に於いても、バツテリー2の放電が防止されて、
エンジンの始動が容易に行なえることになる。
On the other hand, in the data read command circuit 45, an integrating circuit including a resistor 46 and a capacitor 47 integrates the backup power supply +B B , and outputs the integrated output as a data read command signal B via a buffer circuit 48. In addition, the standby mode release circuit 22 uses the output of the nonvolatile memory power supply circuit 10 to operate the transistor 3 as in the case described above.
6 turns on, the reset release signal is set to "H" and the reset is released. The microprocessor 8 then uses its input port
When a data read command signal is supplied to P7 , a read signal R is generated from the output port P1 , and the data held in the nonvolatile memory 9 is read out and taken in, thereby continuing the mileage accumulation operation. Here, nonvolatile memory power supply circuit 1
0 output generation period, that is, the power consumption period of the nonvolatile memory 9, is only a short period (t 2 - t 1 ) from the generation of the backup power supply + B to the start of output generation of the integrating circuit formed by the resistor 16 and capacitor 18. becomes. This (t 2 −t 1 ) time is the time required for the microprocessor 8 to read the necessary data from the nonvolatile memory 9. Therefore, during the off period of the key switch 3, the non-volatile memory 9
As a result, the battery 2 is prevented from discharging even when the vehicle is not running for a long period of time.
This makes it easier to start the engine.

なお、上述した実施例に於いては、自動車の走
行距離メーターとして利用した場合について説明
したが、本発明はこれに限定されるものではな
く、データーの保持を必要とする回路すべてに適
用することが出来るものである。
Furthermore, in the above-mentioned embodiment, the case where it is used as a mileage meter of a car was explained, but the present invention is not limited to this, and can be applied to any circuit that requires data retention. This is something that can be done.

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

図は本発明によるデーター保持装置の一実施例
を示す回路図である。 1…電源回路、2…バツテリー、3…キースイ
ツチ、4,6…第1、第2レギユレーター、8…
マイクロプロセツサー、9…不揮発性メモリ、1
0…不揮発性メモリ用電源回路、11,12,1
5,16,17,21…抵抗、13…バツフア回
路、14,20…トランジスタ、18…コンデン
サ、19…インバータ、22…スタンバイモード
解除回路、37…データー書き込み指令回路、4
5…データー読み取り指令回路。
The figure is a circuit diagram showing an embodiment of a data holding device according to the present invention. DESCRIPTION OF SYMBOLS 1... Power supply circuit, 2... Battery, 3... Key switch, 4, 6... First and second regulator, 8...
Microprocessor, 9...Nonvolatile memory, 1
0...Nonvolatile memory power supply circuit, 11, 12, 1
5, 16, 17, 21...Resistor, 13...Buffer circuit, 14,20...Transistor, 18...Capacitor, 19...Inverter, 22...Standby mode release circuit, 37...Data write command circuit, 4
5...Data reading command circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 バツテリー出力をメイン電源、このメイン電
源を電源スイツチを介して取り出したスイツチ出
力電源、このスイツチ出力電源を第1レギユレー
ターを介して安定化することにより出力される駆
動電源および前記メイン電源を第2レギユレータ
ーを介して安定した後にコンデンサにより平滑し
てバツクアツプ電源としてそれぞれ出力する電源
回路と、この電源回路から発生される駆動電源お
よびバツクアツプ電源により作動するマイクロプ
ロセツサーと、このマイクロプロセツサーの処理
データーに対するメイン電源の断時に於ける保持
を行なう不揮発性メモリと、前記メイン電源の断
時および供給開始時に前記バツクアツプ電源を前
記マイクロプロセツサーおよび不揮発性メモリに
短時間供給する不揮発性メモリ用電源回路と、前
記メイン電源の断時および前記不揮発性メモリ用
電源回路の出力発生時に前記マイクロプロセツサ
ーのリセツトを短時間解除するスタンバイモード
解除回路と、前記メイン電源とバツクアツプ電源
を比較することによりメイン電源の断を検出して
前記マイクロプロセツサーに必要データーを前記
不揮発性メモリに書き込んで保持させるための指
示を行なうデーター書き込み指令回路と、前記バ
ツクアツプ電源の供給開始時に前記不揮発性メモ
リのデーターを読み出してマイクロプロセツサー
に取り込む指示を行なうデーター読み込み指令回
路とを備えたデーター保持回路。
1 The battery output is used as a main power source, the main power source is taken out via a power switch as a switch output power source, the switch output power source is stabilized via a first regulator to output a drive power source, and the main power source is used as a second source source. A power supply circuit that stabilizes through a regulator and then smoothes it with a capacitor and outputs it as a backup power supply, a microprocessor that operates with the drive power and backup power generated from this power supply circuit, and a processing of this microprocessor. a nonvolatile memory that retains data when the main power is turned off; and a nonvolatile memory power supply that supplies the backup power to the microprocessor and the nonvolatile memory for a short time when the main power is turned off and when supply starts. By comparing the standby mode release circuit that releases the reset of the microprocessor for a short time when the main power supply is cut off and the nonvolatile memory power supply circuit generates an output, the main power supply and the backup power supply. a data write command circuit that detects disconnection of the main power supply and instructs the microprocessor to write and retain necessary data in the nonvolatile memory; and a data write command circuit that detects disconnection of the main power supply and instructs the microprocessor to write necessary data to the nonvolatile memory and store the data; A data holding circuit includes a data reading command circuit that instructs the microprocessor to read and import the data.
JP57189703A 1982-10-28 1982-10-28 Data holding device Granted JPS5979323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57189703A JPS5979323A (en) 1982-10-28 1982-10-28 Data holding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57189703A JPS5979323A (en) 1982-10-28 1982-10-28 Data holding device

Publications (2)

Publication Number Publication Date
JPS5979323A JPS5979323A (en) 1984-05-08
JPH0150926B2 true JPH0150926B2 (en) 1989-11-01

Family

ID=16245777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57189703A Granted JPS5979323A (en) 1982-10-28 1982-10-28 Data holding device

Country Status (1)

Country Link
JP (1) JPS5979323A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4644494A (en) * 1984-02-06 1987-02-17 Sundstrand Data Control, Inc. Solid state memory for aircraft flight data recorder systems
JP2505391B2 (en) * 1991-04-26 1996-06-05 東レ株式会社 Reinforcing braid and tubular fiber reinforced composite material using the same
JP6407381B1 (en) * 2017-09-21 2018-10-17 三菱電機株式会社 In-vehicle electronic control unit with post-power failure processing function

Also Published As

Publication number Publication date
JPS5979323A (en) 1984-05-08

Similar Documents

Publication Publication Date Title
EP0081593A1 (en) Vehicular power source system
JPH0129407B2 (en)
US4388706A (en) Memory protection arrangement
JPS5911998B2 (en) Data check method
JPH0150926B2 (en)
JPH01152311A (en) Electronic type odo/tripmeter for vehicle
JPS6031665A (en) Backup method of memory
JP2923985B2 (en) EEPROM device
US5384748A (en) Memory card with two SRAM arrays with different data holding voltages and power back-up
JPS6237425B2 (en)
JP3077552B2 (en) Backup device for data storage circuit
JP2861676B2 (en) Vehicle instrument
JPS5991314A (en) Control circuit using nonvolatile memory having voltage monitoring circuit
JP2740685B2 (en) Storage device backup circuit
JPH0816480A (en) Memory card
JPS6235709B2 (en)
JPS5910808A (en) Odometer for automobile
JPH09213088A (en) Engine controller
JPS6231372B2 (en)
JPS59192914A (en) Recording device of travel distance
JP3043696B2 (en) Sense amplifier circuit
JPS6120077B2 (en)
JPH01158314A (en) Electronic measuring instrument
JPS6142173Y2 (en)
SU1083236A1 (en) Non-volatile storage