JPS62286142A - Method for detecting breakage of storage contents of volatile memory - Google Patents

Method for detecting breakage of storage contents of volatile memory

Info

Publication number
JPS62286142A
JPS62286142A JP61129870A JP12987086A JPS62286142A JP S62286142 A JPS62286142 A JP S62286142A JP 61129870 A JP61129870 A JP 61129870A JP 12987086 A JP12987086 A JP 12987086A JP S62286142 A JPS62286142 A JP S62286142A
Authority
JP
Japan
Prior art keywords
data
volatile memory
ram
power supply
memory
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
JP61129870A
Other languages
Japanese (ja)
Inventor
Hidetoshi Yasu
安 秀俊
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 JP61129870A priority Critical patent/JPS62286142A/en
Publication of JPS62286142A publication Critical patent/JPS62286142A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To detect the breakage of the storage contents of a volatile memory by checking plural data needed to be stored double out of the control arithmetic data used for control every time a power supply is applied. CONSTITUTION:A main control circuit 3 contains a CPU 31, a ROM 32 and an I/O 33. A power supply 1 is applied to the circuit 3 when a key switch 2 is turned on and the voltage is always applied to the RAM 4 from the power supply 1. The input is received from a sensor via the I/O 33 and the read data is written to a read data store area of the RAM 4. The same value is written to a storing area for control arithmetic data of the RAM 4 as long as the sensor has no abnormality. The switch 2 is turned on for comparison between the read data received from the sensor in a power supply application mode and the data stored in the arithmetic data storing area of the RAM 4. When the coincidence is obtained between both data, it is decided that the power supply of the RAM 4 is never cut off from the preceding OFF mode of the switch 2.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 本発明は、自動車の制御装置における揮発性メモリの記
憶内容が電源遮断等により破壊されることを検出する揮
発性メモリの記憶内容破壊検出方法に関するものである
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] The present invention provides a volatile memory that detects that the stored contents of a volatile memory in an automobile control device are destroyed due to a power cut, etc. The present invention relates to a method for detecting memory content corruption.

〔従来技術〕[Prior art]

従来、このような分野の技術としては、特開昭54−9
4850号公報に開示されたものがある。該揮発性メモ
リの記憶内容破壊検出方法は、電源がキースイッチによ
り制御回路に投入される毎に、固定メモリ(ROM等)
に記憶されている特定パターン(例えば1,2,3.5
の数字や乱数等)と揮発性メモリ(RAM等)の内の特
定パターン記憶部の特定パターンとの内容を順次比較し
、一つでも不一致があれば揮発性メモリ部を全部クリア
し、同時に特定パターン記憶部に固定メモリの内容をそ
っくりそのまま転送する。また、特定パターンの全てが
一致しておればデータ記憶部の内容は有臭であり、引き
続きこのデータ記憶部に記憶されているデータを用いτ
制御を行なっている。
Conventionally, as a technology in this field, there is
There is one disclosed in Japanese Patent No. 4850. The method for detecting the destruction of the storage contents of volatile memory is to
A specific pattern (for example, 1, 2, 3.5) stored in
numbers, random numbers, etc.) and the specific pattern in the specific pattern storage section in volatile memory (RAM, etc.), and if there is even one discrepancy, clear the entire volatile memory section, and at the same time The contents of the fixed memory are transferred to the pattern storage unit in their entirety. Furthermore, if all of the specific patterns match, the contents of the data storage section are odoriferous, and the data stored in this data storage section is used to
is in control.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら上記従来の方法では、特定パターンのみを
記憶する部分をメモリに設けなければならないため、記
憶容量の小さいメモリを具備する制御装置においてはメ
モリ容量を有効に利用できないという不都合があった。
However, in the conventional method described above, since it is necessary to provide a portion in the memory for storing only a specific pattern, there is an inconvenience that the memory capacity cannot be used effectively in a control device equipped with a memory having a small storage capacity.

本発明は上述の点に鑑みてなきれたもので、上記問題点
を除去し制御データ等を用い電源遮断等により揮発性メ
モリの記憶内容が破壊されたか否かを検出する揮発性メ
モリの記憶内容破壊検出方法を提供することにある。
The present invention has been developed in view of the above-mentioned problems, and the present invention eliminates the above-mentioned problems and uses control data etc. to detect whether or not the stored contents of the volatile memory have been destroyed due to a power cut, etc. An object of the present invention is to provide a content destruction detection method.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点を解決するため本発明は、制御に使用する制
御演算データの内二重に記憶する必要のある複数のデー
タに関して、主制御回路に電源が投入される毎に比較チ
ェックし、二重に記憶されたデータの内一つでも異なる
場合、全てのデータを一定値に書き換えて設定し、また
、二重に記憶されたデータの全てが同じ値である場合、
データ書き換えを行なわずそのまま制御するように構成
した。
In order to solve the above-mentioned problems, the present invention compares and checks a plurality of pieces of control calculation data used for control that need to be stored in duplicate each time the main control circuit is powered on. If even one of the stored data is different, all the data is rewritten and set to a certain value, and if all the data stored twice is the same value,
It is configured so that it can be controlled as is without rewriting data.

〔作用〕[Effect]

上記の如く本発明の揮発性メモリの記憶内容破壊検出方
法は、制御に使用する制御演算データの内二重に記憶す
る必要のある複数のデータに関して、’@t、Rが投入
される毎にチェックする方法をとるので、不揮発性メモ
リにチェック用の特定パターンを書き込む記憶部を必要
とせず電源遮断による揮発性メモリの記憶内容の破壊を
検出できるから、メモリ容量の有効的な使用ができると
共に、メモリとして記憶容量の小さいものを使用でき、
回路の縮小や部品の削減による制御装置のコストを低下
させることが可能となる。
As described above, the method for detecting storage content destruction in a volatile memory according to the present invention is applicable to a plurality of pieces of control calculation data used for control that need to be stored in duplicate, each time '@t, R is input. Since the checking method is adopted, there is no need for a storage section to write a specific pattern for checking into the non-volatile memory, and it is possible to detect the destruction of the stored contents of the volatile memory due to a power cut, which makes it possible to use the memory capacity effectively. , you can use a memory with a small storage capacity,
It is possible to reduce the cost of the control device by downsizing the circuit and reducing the number of parts.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図は、本発明に係る揮発性メモリの記憶内容破壊検
出方法を適用する制御装置の回路構成を示すプロZり図
である。同図において、1は電源、2はキースイッチ、
3は主制御回路、4は揮発性メモリである。主制御回路
3は、中央処理装置(CPU)31、不揮発性メモリ3
2及び入出力インタフェース(Ilo)33等を具備し
ている。また、上記揮発性メモリ4にはランダムアクセ
スメモリ(RAM)を用い、不揮発性メモリ32にはリ
ードオンリーメモリ(ROM)を用いる。上記電源1は
自動車の場合は蓄電池が用いられ、キースイッチ2をオ
ンすることにより、主制御回路3に電源が投入される。
FIG. 1 is a schematic diagram showing a circuit configuration of a control device to which a volatile memory storage content destruction detection method according to the present invention is applied. In the figure, 1 is a power supply, 2 is a key switch,
3 is a main control circuit, and 4 is a volatile memory. The main control circuit 3 includes a central processing unit (CPU) 31 and a non-volatile memory 3.
2 and an input/output interface (Ilo) 33. Further, a random access memory (RAM) is used as the volatile memory 4, and a read only memory (ROM) is used as the nonvolatile memory 32. In the case of an automobile, a storage battery is used as the power source 1, and when the key switch 2 is turned on, the main control circuit 3 is powered on.

また、前記揮発性メモリ4には電源1から常時T源電圧
が印加されている。
Further, a T source voltage is constantly applied to the volatile memory 4 from the power supply 1.

自動車の制御装置においては、入出力インタフェース3
3からのセンサー人力やスイッチからの入力信号により
行なわれるが、センサー人力に関しては自己診断機能を
具◇tiiするため前記センサからの読み込みデータを
揮発性メモリ4の読み込みデータ格納エリアに書き込み
、センサーに異常が無い場合は該読み込みデータと同じ
値を揮発性メモリ4の制御演算データ格納エリアに書き
込む。
In an automobile control device, input/output interface 3
This is done by the sensor input from 3 or the input signal from the switch, but in order to implement a self-diagnosis function for the sensor input, the read data from the sensor is written to the read data storage area of the volatile memory 4, and the sensor is If there is no abnormality, the same value as the read data is written into the control calculation data storage area of the volatile memory 4.

第2図は電源遮断を検知する手順を示すフロチャートで
ある。先ず、キースイッチ2をオンにして電源を投入す
る。次にカウンターの設定値iを比較するデータの数N
にセットしくステップ101)、続いて電源投入時のセ
ンサーからの読み込みデータと前記揮発性メモリ4の制
御演算データ格納エリアに格納されている制御演算デー
タとを比較し、両者が同じであるか否かを判断しくステ
ップ102)、同じであれば前回キースイッチをオフし
てから揮発性メモリ4の電源が遮断されたことがないこ
とがわかるから、次に制御・演算データのビットパター
ンが全て10」か又は全て11、かを判断する(ステッ
プ103)。揮発性メモリ4に電源を投入した時は制御
演算データのビットパターンが全て10」か又は全て1
1jということは起こり得るが、センサーからの信号入
力時には制御演算データのビットパターンが全て10」
か又11」ということは、センサーの断電又は短絡を意
味するから、もしビットパターンが全て「OJか又「1
ヨであるならば次にN個のデータを比較したか否かを判
断しくステップ105)、N個のデータを比較していな
いなら前記ステップ102に戻り処理を繰り返す。前記
ステップ102において、制御演算データと読み込みデ
ータが一致しない場合は、カウンターの設定値iから「
−1」だけ減算する(ステップ104)。また、前記ス
テップ103において、制御演算データのビットパター
ンが全て10」か又は全て11」である場合も同じくカ
ウンターの設定値iから1−1」減算する(ステップ1
04)。前記ステップ105において、前記カウンター
のカウント値iが比較データ数Nか否かを判断し、カウ
ント値iが比較データ数Nに等しい場合は揮発性メモリ
4の記憶内容に破壊が無かったものと判断して次の処理
に移行し、カウント値iが比較データ数Nと等しくない
場合は、揮発性メモリ4に初期データの書き込みを行な
う(ステップ107)。
FIG. 2 is a flowchart showing the procedure for detecting power cutoff. First, turn on the key switch 2 to turn on the power. Next, the number of data N to compare the counter setting value i
Step 101), the data read from the sensor when the power is turned on is compared with the control calculation data stored in the control calculation data storage area of the volatile memory 4, and it is determined whether the two are the same. If they are the same, it means that the power to the volatile memory 4 has not been cut off since the last time the key switch was turned off. ” or all 11 (step 103). When the volatile memory 4 is powered on, the bit pattern of the control calculation data is either all 10's or all 1's.
1j may occur, but when the signal is input from the sensor, the bit pattern of the control calculation data is all 10.
"or 11" means a power outage or short circuit in the sensor, so if all bit patterns are "OJ" or "11"
If yes, then it is determined whether or not N pieces of data have been compared (step 105); if N pieces of data have not been compared, the process returns to step 102 and repeats the process. In step 102, if the control calculation data and the read data do not match, "
-1'' (step 104). In addition, in step 103, if the bit pattern of the control calculation data is all 10'' or all 11'', 1-1'' is similarly subtracted from the counter setting value i (step 1
04). In step 105, it is determined whether the count value i of the counter is equal to the number N of comparison data, and if the count value i is equal to the number N of comparison data, it is determined that the stored contents of the volatile memory 4 have not been destroyed. Then, the process moves to the next step, and if the count value i is not equal to the number N of comparison data, initial data is written into the volatile memory 4 (step 107).

上記実施例によれば、主制御回路3の不揮発性メモリ3
2に揮発性メモリ4の記憶内容の破壊を検出するための
特定パターンを書き込む記憶部分を必要とせず揮発性メ
モリ4の電源遮断の検知を行なうことができ、不揮発性
メモリ32の有効的な使用が可能となる。
According to the above embodiment, the nonvolatile memory 3 of the main control circuit 3
2, it is possible to detect power cut-off of the volatile memory 4 without the need for a memory section in which a specific pattern is written to detect destruction of the memory contents of the volatile memory 4, and the non-volatile memory 32 can be used effectively. becomes possible.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、不揮発性メモリに
特定パターンを書き込む記憶部を設ける必要がなく、揮
発性メモリの電源遮断等による記憶内容の破壊を検出で
きるから不揮発性メモリの容量の有効的使用が可能にな
ると共に、不揮発性メモリに記憶容量の小きいものを使
用できるから回路の縮小や部品の削減による制御装置の
コストの低減が可能となるという優れた効果を有する。
As explained above, according to the present invention, there is no need to provide a storage unit for writing a specific pattern to the nonvolatile memory, and it is possible to detect destruction of stored contents due to power cutoff of the volatile memory, etc., thereby effectively utilizing the capacity of the nonvolatile memory. In addition, since a non-volatile memory with a small storage capacity can be used, the cost of the control device can be reduced by downsizing the circuit and reducing the number of parts.

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

第1図は本発明に係る揮発性メモリの記憶内容破壊検出
方法を適用する制御装置の回路構成を示すブロック図、
第2図は電源遮断を検知する手順を示すフロチャートで
ある。 図中、1・・・・電源、2・・・キースイッチ、3・・
・・制御回路、4  揮発性メモリ。
FIG. 1 is a block diagram showing a circuit configuration of a control device to which a volatile memory storage content destruction detection method according to the present invention is applied;
FIG. 2 is a flowchart showing the procedure for detecting power cutoff. In the diagram, 1...power supply, 2...key switch, 3...
...control circuit, 4 volatile memory.

Claims (1)

【特許請求の範囲】[Claims] 揮発性メモリと不揮発性メモリを具備し該不揮発性メモ
リからのデータに応じて演算処理を行なう主制御回路と
を備える制御装置において、前記揮発性メモリの複数箇
所に書き込んだ特定データを使用し、前記主制御回路に
電源を投入した時、前記複数データを比較し、一致して
いるか否かで揮発性メモリの記憶内容が破壊されている
か否かを検出することを特徴とする揮発性メモリの記憶
内容破壊検出方法。
In a control device comprising a volatile memory and a main control circuit that includes a nonvolatile memory and performs arithmetic processing according to data from the nonvolatile memory, using specific data written to a plurality of locations in the volatile memory, A volatile memory characterized in that when power is applied to the main control circuit, the plurality of data are compared and it is detected whether or not the stored contents of the volatile memory are destroyed based on whether they match or not. Memory content corruption detection method.
JP61129870A 1986-06-04 1986-06-04 Method for detecting breakage of storage contents of volatile memory Pending JPS62286142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61129870A JPS62286142A (en) 1986-06-04 1986-06-04 Method for detecting breakage of storage contents of volatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61129870A JPS62286142A (en) 1986-06-04 1986-06-04 Method for detecting breakage of storage contents of volatile memory

Publications (1)

Publication Number Publication Date
JPS62286142A true JPS62286142A (en) 1987-12-12

Family

ID=15020333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61129870A Pending JPS62286142A (en) 1986-06-04 1986-06-04 Method for detecting breakage of storage contents of volatile memory

Country Status (1)

Country Link
JP (1) JPS62286142A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58200388A (en) * 1982-05-14 1983-11-21 富士電機株式会社 Data checking system for electronic memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58200388A (en) * 1982-05-14 1983-11-21 富士電機株式会社 Data checking system for electronic memory

Similar Documents

Publication Publication Date Title
JPS62286142A (en) Method for detecting breakage of storage contents of volatile memory
JPS6146864B2 (en)
JPS61243551A (en) Checking method for stand-by ram
JPS623520B2 (en)
JPS63305444A (en) Storage device
JPS6127778B2 (en)
JPH01241652A (en) Device for checking memory
JPS6020779B2 (en) Composite computer system
JPH0341538A (en) Main storage device
JPH0250745A (en) Method for detecting destruction of contents stored in volatile memory
JPH1011284A (en) Controlled storage device
JPS63225839A (en) Rom with security function
JPH0480860A (en) Program loading system
JPS61134856A (en) Ram check circuit
JPH04263198A (en) Memory device
JPH02157952A (en) Storage device
JPS6188359A (en) One-chip microcomputer
JPH04296954A (en) Memory system
JPS63170756A (en) Main storage initializing system
JPH0667988A (en) Semiconductor memory with ras function
JPH01282658A (en) Common bus error detecting system
JPH05265865A (en) Memory write protector
JPH0215347A (en) Memory device
JPH06290112A (en) Bit data storage device using eeprom
JPH05181573A (en) Fault processing system