JPS621043A - Checking system for program of microcomputer system - Google Patents

Checking system for program of microcomputer system

Info

Publication number
JPS621043A
JPS621043A JP60140007A JP14000785A JPS621043A JP S621043 A JPS621043 A JP S621043A JP 60140007 A JP60140007 A JP 60140007A JP 14000785 A JP14000785 A JP 14000785A JP S621043 A JPS621043 A JP S621043A
Authority
JP
Japan
Prior art keywords
data
program
check
checksum data
microcomputer
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
JP60140007A
Other languages
Japanese (ja)
Inventor
Tatsuo Okuyama
奥山 立夫
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 JP60140007A priority Critical patent/JPS621043A/en
Publication of JPS621043A publication Critical patent/JPS621043A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the correspondence properties of the check to the change of a program by providing a check sum data display device and a check sum data setter at the outside of a ROM. CONSTITUTION:A microcomputer 30 issues the sum check sequentially to the program data written to a ROM 31 from the head address through the final address. The results of these sum checks are displayed on a check sum data display device 40 via a control bus 42 and a data bus 43. Then these displayed data are set to a check sum data setter 41 for storage of the check sum data. In such a way, the check sum data can be calculated automatically and also set.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロフンピユータシステムにおけるプロ
グラムのチェック方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program checking method in a microcomputer system.

〔従来技術〕[Prior art]

第2図は、従来のマイクロコンピュータシステムの一構
成例を示す図である。マイクロコンピュータシステムは
マイクロコンピュータ1 、ROM(リードオンリメモ
リ)2 、RAM(ランダムアクセスメモリ)3.l1
0(入力出力)端末4及びこれらを接続するアドレスバ
ス5.データバス6で構成される。
FIG. 2 is a diagram showing an example of the configuration of a conventional microcomputer system. The microcomputer system includes a microcomputer 1, ROM (read only memory) 2, RAM (random access memory) 3. l1
0 (input/output) terminal 4 and an address bus connecting these terminals 5. It is composed of a data bus 6.

上記マイクロコンピュータシステムにおいて、システム
の信頼性を高めるため動作開始時、又は動作中ROM2
とRAM3の動作チェックを行なっている。この内RO
M2のチェック方法は、マイクロコンピュータ1により
、第3図に示すようにROM2のプログラムデータエリ
ア10に書き込まれたデータをサムチェックしたものと
、予めサムチェックデータエリア11に用意しておいた
、チェックサムデータとを比較することにより、ROM
2のプログラム化けをチェックしていた。
In the above-mentioned microcomputer system, in order to improve the reliability of the system, the ROM2 is
and checking the operation of RAM3. Of these, RO
The method of checking M2 is to perform a sum check of the data written in the program data area 10 of the ROM 2 by the microcomputer 1 as shown in FIG. By comparing with the sum data, the ROM
I was checking 2 for program corruption.

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

しかしながら、上記従来のマイクロコンピュータシステ
ムのプログラムチェック方式では、ROM2に予めチェ
ックサムデータを書き込んでいるため、プログラムデー
タを変更するごとにサムチェックデータ値を再び計算し
、書き替える必要があり、プログラムの変更に対しその
チェックデータの変更が困難であった。また、特にプロ
グラムの変更が出張先で行なわれた場合には、そのプロ
グラムのチェックデータ作成が困難であった。
However, in the program check method of the conventional microcomputer system described above, since checksum data is written in ROM2 in advance, it is necessary to recalculate and rewrite the sum check data value every time the program data is changed. It was difficult to change the check data in response to changes. Furthermore, especially when changes to a program are made on a business trip, it is difficult to create check data for the program.

本発明は上述の点に鑑みてなされたもので、プログラム
の変更に容易に対処できるマイクロコンピュータシステ
ムのプログラムチェック方式を提供することにある。
The present invention has been made in view of the above points, and an object of the present invention is to provide a program check method for a microcomputer system that can easily deal with program changes.

〔問題点を解決するための手繰〕[Steps to solve problems]

上記問題点を解決するため本発明は、マイクロコンピュ
ータ、ROM、RAM及びI10端末を具備するマイク
ロコンピュータシステムにおいて、前記ROMの外部に
プログラムデータのチェックサムデータ値を計算したも
のを表示するサムチェックデータ表示器と、そのチェッ
クサムデータを設定するチェックサムデータ設定器を設
けて、マイクロコンピュータシステムのプログラムチェ
ック方式を構成した。
In order to solve the above problems, the present invention provides sum check data that displays a calculated check sum data value of program data outside the ROM in a micro computer system equipped with a micro computer, a ROM, a RAM, and an I10 terminal. A program check method for a microcomputer system was constructed by providing a display and a checksum data setter for setting the checksum data.

〔作用〕[Effect]

上記の如<ROMの外部に、チェックサムデータ表示器
と、チェックサムデータ設定器を設けたことにより、マ
イクロコンピュータでチェックサムデータ値を自動的に
計算し前記チェックサムデータ表示器に表示することが
可能になると共に、チェックサムデータ設定器をROM
とは別に設けたので、プログラムの変更によるチェック
サムデータの設定が簡単となり、更にプログラムの変更
が出張先等であってもその出張先でチェックサムデータ
の修正が可能でありプログラムの変更に対するチェック
の対応性がよくなる。
As described above, by providing a checksum data display and a checksum data setting device outside the ROM, a microcomputer can automatically calculate the checksum data value and display it on the checksum data display. is possible, and the checksum data setter can be stored in ROM.
Since it is provided separately from the program, it is easy to set the checksum data when changing the program.Furthermore, even if the program is changed while on a business trip, the checksum data can be corrected on the business trip, making it possible to check for program changes. compatibility will improve.

〔実施例〕〔Example〕

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

第1図は本発明に係るプログラムチェック方式を適用す
るマイクロコンピュータシステムの構成を示すブロック
図である。同図に示すように、マイクロコンピュータシ
ステムは、マイクロコンピュータ30.プログラムデー
タが書き込まれるROM31 、該ROM31に書き込
まれたプログラムデータのチェックを行なうチェックサ
ムデータを生成するチェックサムデータ生成器32.各
種のデータが読み書きされるRAM33 、I10端末
34及び前記マイクロコンピュータ30とこれら機器を
接続するアドレスバス35.データバス36とから構成
される。
FIG. 1 is a block diagram showing the configuration of a microcomputer system to which a program check method according to the present invention is applied. As shown in the figure, the microcomputer system includes a microcomputer 30. A ROM 31 into which program data is written, a checksum data generator 32 which generates checksum data for checking the program data written in the ROM 31. A RAM 33 into which various data are read and written, an address bus 35 that connects these devices to the I10 terminal 34 and the microcomputer 30. It is composed of a data bus 36.

第4図は、第1図に示すマイクロコンピュータシステム
のチェックサムデータ生成器32の機能ブロック図であ
る。同図において、40はチェックサムデータを表示す
るチェックサムデータ表示器、41はチェックサムデー
タを設定するチェックサムデータ設定器、42は前記チ
ェックサムデータ表示器40とチェックサムデータ設定
器41とのコントロールバス、43はデータの転送を行
なうデータバスである。
FIG. 4 is a functional block diagram of the checksum data generator 32 of the microcomputer system shown in FIG. In the figure, 40 is a checksum data display for displaying checksum data, 41 is a checksum data setting device for setting checksum data, and 42 is a connection between the checksum data display 40 and the checksum data setting device 41. A control bus 43 is a data bus for transferring data.

上記構成のマイクロコンピュータシステムにおいて、マ
イクロコンピュータ30は、ROM31に書き込まれた
プログラムデータを先頭番地から最終番地まで順番にサ
ムチェックしていき、そのM果をコントロールバス42
及びデータバス43を用いて、チェックサムデータ表示
器40に表示させる。また、この表示されたデータをチ
ェックサムデータ設定器41にセットすることでチェッ
クサムデータを記憶する。このようにして、チェックサ
ムデータの自動的な計算とチェックサムデータの設定が
できる。
In the microcomputer system having the above configuration, the microcomputer 30 sequentially sum-checks the program data written in the ROM 31 from the first address to the last address, and sends the M result to the control bus 42.
and the data bus 43 to display the checksum data on the checksum data display 40. Also, by setting the displayed data in the checksum data setting device 41, the checksum data is stored. In this way, automatic calculation of checksum data and setting of checksum data is possible.

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

以上説明したように本発明によれば、ROMの外部にチ
ェックサムデータ表示器とチェックサムデータ設定器と
を設けたので、以下のような効果が得られる。
As explained above, according to the present invention, since the checksum data display device and the checksum data setting device are provided outside the ROM, the following effects can be obtained.

(1)チェックサムデータ表示器を設けたことで、チェ
ックサムデータ値をマイクロコンピュータで自動的に計
算し表示することが可能となる。
(1) By providing the checksum data display, it becomes possible to automatically calculate and display the checksum data value using a microcomputer.

(2)チェックサムデータ設定器をROMとは別に設け
たことで、プログラムの変更にょるチェックサムデータ
の設定が簡単となる。
(2) By providing the checksum data setting device separately from the ROM, setting the checksum data by changing the program becomes easy.

(3)プログラムの変更が出張先等であった時も、該出
張先でチェックサムデータの修正が可能であるため変更
対応性がよくなる。
(3) Even when a program is changed while on a business trip, the checksum data can be modified at the business trip, which improves adaptability to changes.

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

第1図は本発明に係るマイクロフンピユータシステムの
プログラムチェック方式を適用するマイクロコンピュー
タシステムの構成を示すブロック図、第2図は従来のマ
イクロコンピュータシステムの構成を示すブロック図、
第3図はそのROMのメモリフォーマットを示す図、第
4図は第1図のチェックサムデータ生成器32の機能ブ
ロック図である。 図中、30・・・・マイクロコンピュータ、31・・・
・ROM、32・・・・チェックサムデータ生成器、3
3・・・・RAM、34・・・・I10端末、35・・
・・アドレスバス、36・・・・データバス、40・・
・・チェックサムデータ表示器、41・・・・チェック
サムデータ設定器、42・・・・コントロールバス、4
3・・・・データバス。 本先9月に停、コフイ70コンビ】−タジズテム第 I
 G 従来のマイ70〕ンげ1<7ニステ4 馬z山 7?OM;?sjモリ7フー7−、ト 第30 4z:コ;トQ−1しJマス ゴC
FIG. 1 is a block diagram showing the configuration of a microcomputer system to which the program check method of the microcomputer system according to the present invention is applied, and FIG. 2 is a block diagram showing the configuration of a conventional microcomputer system.
FIG. 3 is a diagram showing the memory format of the ROM, and FIG. 4 is a functional block diagram of the checksum data generator 32 of FIG. 1. In the figure, 30... microcomputer, 31...
・ROM, 32...Checksum data generator, 3
3...RAM, 34...I10 terminal, 35...
...Address bus, 36...Data bus, 40...
...Checksum data display, 41...Checksum data setting device, 42...Control bus, 4
3...Data bus. Stopped in September, Kohui 70 Combi] - Taziztem No. I
G Conventional My 70] Nge 1 < 7 Niste 4 Mazyama 7? OM;? sj mori 7 fu 7-, g 30th 4z: ko; g Q-1 and J masgo C

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータシステムにおいて、該マイクロコ
ンピュータシステムに具備されるリードオンリメモリの
外部に該リードオンリメモリに格納したデータの検査を
行なうチェックサムデータを表示する表示器と、該チェ
ックサムデータを設定するチェックサムデータ設定器と
を設け、マイクロコンピュータによるチェックサムデー
タの計算と表示、或いはチェックサムデータの設定を可
能にしたことを特徴とするマイクロコンピュータシステ
ムのプログラムチェック方式。
In a microcomputer system, a display device external to a read-only memory provided in the microcomputer system displays checksum data for inspecting data stored in the read-only memory, and a checksum for setting the checksum data. 1. A program check method for a microcomputer system, characterized in that a data setting device is provided to enable the microcomputer to calculate and display checksum data or to set checksum data.
JP60140007A 1985-06-26 1985-06-26 Checking system for program of microcomputer system Pending JPS621043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60140007A JPS621043A (en) 1985-06-26 1985-06-26 Checking system for program of microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60140007A JPS621043A (en) 1985-06-26 1985-06-26 Checking system for program of microcomputer system

Publications (1)

Publication Number Publication Date
JPS621043A true JPS621043A (en) 1987-01-07

Family

ID=15258761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60140007A Pending JPS621043A (en) 1985-06-26 1985-06-26 Checking system for program of microcomputer system

Country Status (1)

Country Link
JP (1) JPS621043A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100327402B1 (en) * 1999-03-15 2002-03-13 구자홍 Method and apparatus for self-testing of the micro-processor
US7350135B2 (en) 2003-02-11 2008-03-25 Samsung Electronics Co., Ltd. Checksum writing method and checksum checking apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100327402B1 (en) * 1999-03-15 2002-03-13 구자홍 Method and apparatus for self-testing of the micro-processor
US7350135B2 (en) 2003-02-11 2008-03-25 Samsung Electronics Co., Ltd. Checksum writing method and checksum checking apparatus

Similar Documents

Publication Publication Date Title
JP2002278783A (en) System for rewriting firmware
JPS621043A (en) Checking system for program of microcomputer system
JP2007058659A (en) Method for testing hardware of on-vehicle device and method for writing software for product
JPS5920136B2 (en) terminal device
JPS6126686B2 (en)
JPS60108944A (en) Storage device
JPS60244648A (en) Control device for automobile
JPS5878240A (en) Data processing device having program memory
JPS6318593A (en) Data writing system to earom
JPS6210436B2 (en)
JPH04291646A (en) Write monitoring device
JPH063468Y2 (en) Small electronic calculator
JPH01310974A (en) Monitor of printer
JPH01227182A (en) Map information using device
JPS60178485A (en) Display unit
JPH02105945A (en) Microcomputer with trigger output
JPH01169504A (en) Programmable controller
JPH064469A (en) Input/output device control system
JPH0424722B2 (en)
JPH02125303A (en) Programmable controller
JPH08202647A (en) Virtual port for computer input and output device
JPS6128104A (en) Memory system of sequence controller
JPH03256128A (en) Method for loading program
JPS63236083A (en) Image display system
JPS62133537A (en) Read only memory simulator