JPH04352049A - E2 prom program test system - Google Patents

E2 prom program test system

Info

Publication number
JPH04352049A
JPH04352049A JP3126008A JP12600891A JPH04352049A JP H04352049 A JPH04352049 A JP H04352049A JP 3126008 A JP3126008 A JP 3126008A JP 12600891 A JP12600891 A JP 12600891A JP H04352049 A JPH04352049 A JP H04352049A
Authority
JP
Japan
Prior art keywords
program
prom
area
check sum
written
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
JP3126008A
Other languages
Japanese (ja)
Inventor
Takashi Yamazaki
隆 山崎
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3126008A priority Critical patent/JPH04352049A/en
Publication of JPH04352049A publication Critical patent/JPH04352049A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To check the normality of a program by calculating a check sum again before executing the program and comparing the calculated value with that obtained at normal time. CONSTITUTION:A program to be executed in a CPU is written in an area A. On the other hand, the check sum of the program previously found out by calculation is written in an area B. In the case of executing the program, the CPU reads out the program from the area A and reads out the check sum from the area B. Before executing the program, the CPU calculates the check sum of the read program and compares the calculated check sum with that read out from the area B. When both the values coincide with each other as the compared result, the normality of the program is judged and the program is executed. When there is discrepancy between both the values, the existence of abnormality in the program is recognized.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はE2 PROM上プログ
ラム試験方式に関し、特にE2 PROM上に書き込ま
れているプログラムの正常性を確認することに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for testing a program on an E2 PROM, and more particularly to confirming the normality of a program written on an E2 PROM.

【0002】0002

【従来の技術】従来、E2 PROM上に書き込まれて
いるプログラムの正常性を確認する方式は存在せず、E
2 PROM上に書き込まれているプログラムは、その
正常性を確認されること無く中央処理装置により実行さ
れ、実行の結果としてプログラムの異常が検出される。
[Prior Art] Conventionally, there has been no method for checking the normality of a program written on an E2 PROM.
2. The program written on the PROM is executed by the central processing unit without checking its normality, and an abnormality in the program is detected as a result of the execution.

【0003】0003

【発明が解決しようとする課題】上述のように、従来、
E2 PROM上のプログラムは、その正常性が確認で
きないまま実行されている。それ故、プログラムが異常
を起こした場合、それを検出できず信頼性に欠けていた
[Problem to be solved by the invention] As mentioned above, conventionally,
The program on the E2 PROM is being executed without being able to confirm its normality. Therefore, if a program malfunctions, it cannot be detected, resulting in a lack of reliability.

【0004】本願発明は、E2 PROM上のプログラ
ムの異常を、プログラムの実行前に検出するE2 PR
OM上プログラム試験方式を提供することを目的とする
The present invention provides an E2 PR system that detects abnormalities in a program on an E2 PROM before executing the program.
The purpose is to provide a program testing method on OM.

【0005】[0005]

【課題を解決するための手段】本発明によれば、E2 
PROMに書き込まれたプログラムの正常性を確認する
E2 PROM上プログラム試験方式であって、前記E
2 PROMの所定の領域に予め計算された前記プログ
ラムのチェックサムを書き込み、中央処理装置が前記プ
ログラムを実行する際に、前記プログラムのチェックサ
ムを計算して求め、該求められたチェックサムと前記E
2 PROMに書き込まれているチェックサムとを比較
するようにしたこと特徴とするE2 PROM上プログ
ラム試験方式が得られる。
[Means for Solving the Problems] According to the present invention, E2
This is an E2 PROM program test method for checking the normality of a program written in a PROM.
2 Write a pre-calculated checksum of the program in a predetermined area of PROM, calculate and obtain the checksum of the program when the central processing unit executes the program, and write the checksum of the program calculated in advance and the checksum of the program when the central processing unit executes the program. E
2. A program test method on E2 PROM is obtained, which is characterized in that the test sum is compared with the checksum written in PROM.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明する
。図1にE2 PROM上のメモリマップを示す。領域
[A]には中央処理装置で実行されるプログラムが書き
込まれている。一方領域[B]には、予め計算して求め
られたこのプログラムのチェック・サムが書き込まれて
いる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings. Figure 1 shows the memory map on the E2 PROM. A program to be executed by the central processing unit is written in area [A]. On the other hand, in area [B], a check sum of this program calculated in advance is written.

【0007】中央処理装置がプログラムを実行する場合
、領域[A]からプログラムを読み出すと共に、領域[
B]からチェック・サムを読み出す。中央処理装置はプ
ログラムを実行する前に、読み出したプログラムのチェ
ック・サムを計算する。そして、領域[B]から読み出
したチェック・サムと計算により求められたチェック・
サムとを比較する。比較の結果、これらのチェック・サ
ムが一致すればプログラムは正常と判断し、実行が行わ
れる。また、一致しなければ、プログラムに異常がある
と認識される。
When the central processing unit executes a program, it reads the program from area [A] and also reads the program from area [A].
Read the checksum from [B]. The central processing unit calculates a checksum of the read program before executing the program. Then, check sum read from area [B] and check sum obtained by calculation.
Compare with Sam. As a result of the comparison, if these checksums match, the program is determined to be normal and is executed. Furthermore, if they do not match, it is recognized that there is an abnormality in the program.

【0008】図2にチェック・サムの計算例を示す。チ
ェック・サムは情報をbit ごとに加算するものであ
る。 ただし、キャリーは無視するものとする。
FIG. 2 shows an example of check sum calculation. Checksum adds information bit by bit. However, carry shall be ignored.

【0009】[0009]

【発明の効果】以上説明したように本発明は、プログラ
ム実行する以前にチェック・サムを再度計算し、E2 
PROMに書き込まれている正常時のそれと比較するこ
とによりプログラムの正常性を確認でき、E2 PRO
Mの信頼性向上という効果を有する。
Effects of the Invention As explained above, the present invention recalculates the checksum before executing the program and
The normality of the program can be confirmed by comparing it with the normal state written in the PROM, and the E2 PRO
This has the effect of improving the reliability of M.

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

【図1】本発明が適用されるE2 PROMが64kb
itサイズの場合のメモリマップである。
[Figure 1] E2 PROM to which the present invention is applied is 64kb
This is a memory map in case of it size.

【図2】チェック・サムの計算法を説明するための図。FIG. 2 is a diagram for explaining a check sum calculation method.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  E2 PROMに書き込まれたプログ
ラムの正常性を確認するE2 PROM上プログラム試
験方式であって、前記E2 PROMの所定の領域に予
め計算された前記プログラムのチェック・サムを書き込
み、中央処理装置が前記プログラムを実行する際に、前
記プログラムのチェック・サムを計算して求め、該求め
られたチェック・サムと前記E2 PROMに書き込ま
れているチェック・サムとを比較するようにしたこと特
徴とするE2 PROM上プログラム試験方式。
1. An E2 PROM program test method for confirming the normality of a program written in an E2 PROM, wherein a pre-calculated check sum of the program is written in a predetermined area of the E2 PROM, and a When the processing device executes the program, a checksum of the program is calculated and compared with the checksum written in the E2 PROM. Features E2 PROM program test method.
JP3126008A 1991-05-29 1991-05-29 E2 prom program test system Pending JPH04352049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3126008A JPH04352049A (en) 1991-05-29 1991-05-29 E2 prom program test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3126008A JPH04352049A (en) 1991-05-29 1991-05-29 E2 prom program test system

Publications (1)

Publication Number Publication Date
JPH04352049A true JPH04352049A (en) 1992-12-07

Family

ID=14924447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3126008A Pending JPH04352049A (en) 1991-05-29 1991-05-29 E2 prom program test system

Country Status (1)

Country Link
JP (1) JPH04352049A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0879395A (en) * 1994-09-08 1996-03-22 Murata Mach Ltd Communication equipment
KR100327402B1 (en) * 1999-03-15 2002-03-13 구자홍 Method and apparatus for self-testing of the micro-processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0879395A (en) * 1994-09-08 1996-03-22 Murata Mach Ltd Communication equipment
KR100327402B1 (en) * 1999-03-15 2002-03-13 구자홍 Method and apparatus for self-testing of the micro-processor

Similar Documents

Publication Publication Date Title
US20070265721A1 (en) Method of application protocol monitoring for programmable logic controllers
JPH04352049A (en) E2 prom program test system
JPS6373339A (en) Portable electronic equipment
JPS61182150A (en) Memory trouble detecting system for microprocessor system
JPS59124097A (en) Memory checking method
JPS60179847A (en) Matching check system between real array and virtual array
JPH0248740A (en) Method for testing lsi
JPH01162300A (en) Rom checking circuit testing system
JPS59177799A (en) Checking system of read-only memory
JPS6117983A (en) Emergency stop device for nuclear reactor
JPS63228339A (en) Testing system for instruction process device
JPS61290545A (en) Automatic output device for vertification use data
JPH04338851A (en) Test system for output private control part
JPH03294954A (en) Processor application device
JPH04145556A (en) System for monitoring duplex memory
JPH036618A (en) Abnormality detecting circuit for stack pointer
JPH02120953A (en) Storage device
JPH0359456B2 (en)
JPH0589030A (en) Input/output controller
JPS6218072B2 (en)
JP2005503624A (en) Electronic brake system memory error detection method, computer system and use thereof
JPS6156540B2 (en)
JPH0470240A (en) Communication controller
JPS6324483A (en) Malfunction decision system for ic card
JPH04107647A (en) Error log output system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010124