JPS60254258A - Detecting method for breakdown of rom memory data - Google Patents

Detecting method for breakdown of rom memory data

Info

Publication number
JPS60254258A
JPS60254258A JP59109349A JP10934984A JPS60254258A JP S60254258 A JPS60254258 A JP S60254258A JP 59109349 A JP59109349 A JP 59109349A JP 10934984 A JP10934984 A JP 10934984A JP S60254258 A JPS60254258 A JP S60254258A
Authority
JP
Japan
Prior art keywords
data
memory
breakdown
area
read
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
JP59109349A
Other languages
Japanese (ja)
Inventor
Yuichi Iida
裕一 飯田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP59109349A priority Critical patent/JPS60254258A/en
Publication of JPS60254258A publication Critical patent/JPS60254258A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum

Abstract

PURPOSE:To always attain a fault check with no use of an external device by incorporating a breakdown detecting method for data converted into a ROM to a part of a system control program. CONSTITUTION:A microcomputer 1 contains a CPU2, memory 3, RAM4, RAM5, input device 6 and an output device 7. An external memory 8 is also connected to the computer 1. The total value of the fixed data stored in the ROM5 is stored to the final area of the ROM5, then compared with the total value of data obtained when the data are read out of the ROM5. Thus the breakdown of the ROM data can be detected.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は、読み出し専用メモリ(ROM)から読み出
されるデータの破壊検知方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method for detecting destruction of data read from a read-only memory (ROM).

〔従来技術〕[Prior art]

従来、この種の方法に関連したデータ処理装置として第
1図に示すものがあった。図において1.1はマイクロ
コンピュータで、プロセッサ(CPU)2、システム制
御プログラムを記憶するメモリ8、ランダムアクセスメ
モリからなり、可変データを記憶するメモリ(RAM)
4% リードオンメモリからな9、固定データを記憶す
るメモリ(ROM)5、入力装置6及び出力装置7を備
えている。8は外部メモリで、磁気テープ又は磁気ディ
スク等からなる。
Conventionally, there has been a data processing apparatus related to this type of method as shown in FIG. In the figure, 1.1 is a microcomputer, which consists of a processor (CPU) 2, a memory 8 that stores a system control program, a random access memory, and a memory (RAM) that stores variable data.
4% A read-on memory 9, a memory (ROM) 5 for storing fixed data, an input device 6, and an output device 7 are provided. 8 is an external memory consisting of a magnetic tape, a magnetic disk, or the like.

メモlJ5に記憶された固定データの内容が破壊してい
ないかどうかを調べるためには、先ず、このデータをメ
モリ5に記憶させ、即ちROM化し、この時のデータと
同様の内容を外部メモリ8に記憶する。この両者のデー
タ内容をプロセッサ2の制御によりメモリ4に読み込み
、次にシステム制御プログラム中のデータ内容比較のプ
ログラムを走らせ、メモリ4及び5に記憶しているデー
タの内容と比較する。もし、両者が一致していなければ
メモリ5に異常があると判断する。
In order to check whether the contents of the fixed data stored in the memory 1J5 are not destroyed, first store this data in the memory 5, that is, convert it into a ROM, and store the same contents as the data at this time in the external memory 8. to be memorized. These two data contents are read into the memory 4 under the control of the processor 2, and then a data content comparison program in the system control program is run to compare the data contents stored in the memories 4 and 5. If the two do not match, it is determined that there is an abnormality in the memory 5.

゛従来の方法は以上のように構成されているので、必ず
メモリに記憶した内容と同じ内容を持つ外部メモIJ 
ヲーrイクロコンピュータに接続する必要がらり、それ
らの機器の準備やその操作が繁雑となり、また誤操作も
多くなるという問題があった。
゛Since the conventional method is configured as described above, an external memo IJ with the same contents as the contents stored in the memory is always stored.
Since it is necessary to connect the device to a microcomputer, the preparation and operation of these devices becomes complicated, and there are problems in that there are many erroneous operations.

〔発明の概要〕[Summary of the invention]

この発明は上記のような従来の方法の問題を解決するた
めになされたもので、ROMK記憶するデータの合計を
計算し、ROMの記憶領域の最終部分にこの合計の値を
記憶することにより、マイクロコンピュータのシステム
制御プログラム中でROM化データの破壊を自己検知で
きるメモリデータの破壊検知方法を提供することを目的
としている。
This invention was made to solve the problems of the conventional method as described above, and by calculating the total amount of data to be stored in the ROMK and storing this total value in the final part of the ROM storage area, It is an object of the present invention to provide a memory data destruction detection method that can self-detect destruction of ROMized data in a microcomputer system control program.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。第2
図はメモリ5のメモリマツプ図で、9はシステム制御プ
ログラムで扱われる固定データ領域、10はこれら固定
データの合計を記憶する合計データ領域である。第3図
は第2図で示したメモリマツプ図のようにメモリ5にデ
ータを書き込むためのフローチャートである。第4図は
メモリ5に書き込まれ九データが破壊していないかを検
知するための流れ図である。
An embodiment of the present invention will be described below with reference to the drawings. Second
The figure is a memory map diagram of the memory 5, where 9 is a fixed data area handled by the system control program, and 10 is a total data area that stores the total of these fixed data. FIG. 3 is a flowchart for writing data into the memory 5 as shown in the memory map shown in FIG. FIG. 4 is a flowchart for detecting whether data written in the memory 5 is corrupted.

まず、ステップ11でメモリ5に書き込むべきデータの
合計をする九めのレジスタを0にする。
First, in step 11, the ninth register, which sums up the data to be written into the memory 5, is set to 0.

ステップ12でデータを1ワードごと書き込んでゆき、
ステップ18でその度にそのデータ内容を合計レジスタ
に加算していく。ステップ14でデータがまだあるかを
チェックし、全データの書き込み及び合計が終了したら
、ステップ15でこの合計データをメモリ5の記憶領域
の最終部分に書き込み、メモリ5へのデータ書き込みを
終了する。
In step 12, data is written word by word,
At step 18, the data contents are added to the total register each time. In step 14, it is checked whether there is still data, and when all data has been written and totaled, this total data is written in the final part of the storage area of the memory 5 in step 15, and data writing to the memory 5 is completed.

ROM化データの破壊検知を第4図の流れ図により説明
する。例えばこの破壊検知はシステムの初期化時、電源
投入時に行なわれる。ステップ16では、メモリ5に書
き込まれたデータの合計をするためのレジスタを0とし
、ステップ17でデータを1ワードごと読み出し、ステ
ップ1Bでそれを合計し、レジスタに加算していく。ス
テップ19の判定により、固定データ領域90合計が終
了したら、ステップ20で合計データ領域10の内容を
読み出し、ステップ21で合計レジスタの内容と比較す
る。両者が一致すればステップ22でメモリ5の内容は
正常であるとの処理をし、このメモリ5の固定データを
システム制御プログラム中で使用許可することができる
。また、一致しなければ、ステップ28でメモリ5の内
容は破壊されているとの処理をし、この固定データの使
用禁止の出力をする。
Detection of destruction of ROMized data will be explained with reference to the flowchart of FIG. For example, this destruction detection is performed when the system is initialized and the power is turned on. In step 16, the register for summing the data written in the memory 5 is set to 0, in step 17 the data is read word by word, and in step 1B, the sum is added to the register. When the totalization of the fixed data area 90 is completed as determined in step 19, the contents of the total data area 10 are read out in step 20, and compared with the contents of the total register in step 21. If the two match, the contents of the memory 5 are determined to be normal in step 22, and the fixed data in the memory 5 can be permitted to be used in the system control program. If they do not match, the contents of the memory 5 are treated as being destroyed in step 28, and use of this fixed data is prohibited.

メモリ4をメモリ5と同様な使い方、すなわち固定デー
タを記憶させることに使用するならば、上記実施例と同
様の効果を奏する。
If the memory 4 is used in the same way as the memory 5, that is, used to store fixed data, the same effects as in the above embodiment can be obtained.

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

以上のように、この発明によれば、ROM化されたデー
タの破壊検知をシステム制御プログラムの一部に組み込
み、マイクロコンピュータが自己診断できるようにした
ので、これに関わる機器は必要とせず、いつでも異状を
チェックすることが可能であるという効果がある。
As described above, according to the present invention, the destruction detection of ROM data is incorporated into a part of the system control program, so that the microcomputer can perform self-diagnosis. This has the effect that it is possible to check for abnormalities.

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

第1図はデータ処理装置の構成のブロック図、第2図は
この発明によるメモリ(ROM)のメモリマツプ図、第
3図は第2図に示したメモリマツプにデータを書き込む
ための流れ図、第4図は第2図に示すROMのデータの
破壊を検知するためのフローチャートである。 1・・・マイクロコンピュータ、2・・・CPU、3゜
4.5・・・メモリ、6・・・入力装置、7・・・出力
装置、8・・・外部メモリ、9・・・固定データ領域、
10・・・合計データ領域。 特許出願人 三菱電機株式会社 第1図 第2図 第3図 手続補正書(自発) 特許庁長官殿 事件の表示 特願昭 59−109349号発明の名称 読み出し専用メモリデータの 代表者片山仁へ部 一代 理 人 郵便番号 105 住 所 東京都港区西新橋1丁目4番10号5、補正の
対象 明細書の発明の詳細な説明の欄 6、補正の内容 明細書をつぎのとおり訂正する。
FIG. 1 is a block diagram of the configuration of a data processing device, FIG. 2 is a memory map diagram of the memory (ROM) according to the present invention, FIG. 3 is a flowchart for writing data to the memory map shown in FIG. 2, and FIG. is a flowchart for detecting destruction of data in the ROM shown in FIG. 2; DESCRIPTION OF SYMBOLS 1...Microcomputer, 2...CPU, 3°4.5...Memory, 6...Input device, 7...Output device, 8...External memory, 9...Fixed data region,
10...Total data area. Patent applicant Mitsubishi Electric Corporation Figure 1 Figure 2 Figure 3 Procedural amendment (voluntary) Indication of the case by the Commissioner of the Japan Patent Office Patent application No. 1987-109349 Name of the invention Read-only memory data Representative Hitoshi Katayama Department First agent Postal code: 105 Address: 1-4-10-5 Nishi-Shinbashi, Minato-ku, Tokyo, Column 6 of the detailed description of the invention in the specification subject to amendment, and the description of the contents of the amendment, are corrected as follows.

Claims (1)

【特許請求の範囲】[Claims] データ処理を実行するプロセッサにより読み出される固
定データを記憶する読み出し専用メモリに上記固定デー
タを記憶する第1領域と、この第1領域に記憶した上記
固定データを合計した値を記憶する第2領域を設定し、
上記第1領域からデータを読み出したときはそのデータ
の合計を演算し、上記合計が上記第2領域に記憶されて
いるデータの値と一致するかどうかを比較し、一致が検
知されないときは上記第1領域のデータは破壊されてい
ると判定処理をする読み出し専用メモリデータの破壊検
知方法。
A read-only memory that stores fixed data read by a processor that executes data processing includes a first area for storing the fixed data, and a second area for storing the sum of the fixed data stored in the first area. Set,
When data is read from the first area, the sum of the data is calculated, and the sum is compared to see if it matches the value of the data stored in the second area. If no match is detected, the sum of the data is calculated. A read-only memory data destruction detection method that determines that data in a first area is destroyed.
JP59109349A 1984-05-31 1984-05-31 Detecting method for breakdown of rom memory data Pending JPS60254258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59109349A JPS60254258A (en) 1984-05-31 1984-05-31 Detecting method for breakdown of rom memory data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59109349A JPS60254258A (en) 1984-05-31 1984-05-31 Detecting method for breakdown of rom memory data

Publications (1)

Publication Number Publication Date
JPS60254258A true JPS60254258A (en) 1985-12-14

Family

ID=14507971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59109349A Pending JPS60254258A (en) 1984-05-31 1984-05-31 Detecting method for breakdown of rom memory data

Country Status (1)

Country Link
JP (1) JPS60254258A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6332400U (en) * 1986-08-20 1988-03-02
JPS63254548A (en) * 1987-03-23 1988-10-21 ローベルト・ボツシユ・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Inspection of memory cell contents of program memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6332400U (en) * 1986-08-20 1988-03-02
JPS63254548A (en) * 1987-03-23 1988-10-21 ローベルト・ボツシユ・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Inspection of memory cell contents of program memory

Similar Documents

Publication Publication Date Title
GB1344474A (en) Fault detection and handling arrangements for use in data proces sing systems
KR830009520A (en) Terminal connection system
JP2606862B2 (en) Single error detection and correction method
JPS60254258A (en) Detecting method for breakdown of rom memory data
JPH01226057A (en) Method for detecting data error
JPS609301B2 (en) Memory content destruction inspection method during power outage
AU576853B2 (en) Arrangement for supervising a data processing system
JP2780895B2 (en) Data processing device
JPS6020779B2 (en) Composite computer system
JPS60179847A (en) Matching check system between real array and virtual array
JPS61279940A (en) Fault detector for computer
JPH02196340A (en) Output protecting circuit
JPS61267861A (en) Multi-processor device
JPS6195464A (en) Data protecting system
JPS58117056A (en) Parity check system
JPS62290951A (en) Memory check device
JPH0644145A (en) Memory error saving system
JPS6243789A (en) Method for testing ic card
JPH03208132A (en) Single chip microcomputer
JPH0199144A (en) Rom data securing system
JPS5897200A (en) Information processor
JPS62160488A (en) Character development system
JPS58161047A (en) Detection for program exception of computer
JPS5860362A (en) Interruption signal generating system
JPS61279941A (en) Fault detector for computer