JP2003242046A - Information processor, and operational method and program for information processor - Google Patents

Information processor, and operational method and program for information processor

Info

Publication number
JP2003242046A
JP2003242046A JP2002036935A JP2002036935A JP2003242046A JP 2003242046 A JP2003242046 A JP 2003242046A JP 2002036935 A JP2002036935 A JP 2002036935A JP 2002036935 A JP2002036935 A JP 2002036935A JP 2003242046 A JP2003242046 A JP 2003242046A
Authority
JP
Japan
Prior art keywords
data
area
storage area
normal
storage
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
JP2002036935A
Other languages
Japanese (ja)
Inventor
Takenari Nakano
剛成 中野
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.)
Sumitomo Wiring Systems Ltd
Original Assignee
Sumitomo Wiring Systems 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 Sumitomo Wiring Systems Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2002036935A priority Critical patent/JP2003242046A/en
Publication of JP2003242046A publication Critical patent/JP2003242046A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processor which can prevent any operational abnormality caused by a physical abnormality of a semiconductor storage means without changing any hardware configuration, and improve the reliability. <P>SOLUTION: In a microcomputer as an information processor, a storage RAM area 5a to save the data to be continuously used even after the resetting is provided in a RAM area 5, a CPU 1 performs the memory check to the RAM area 5 including the storage RAM area 5a, and uses the data present in the storage RAM area 5a in the normal processing operation only when the result of the memory check is excellent. An empty area 7a which is a migration area for migrating the data in the storage RAM area 5a during the memory check is provided in a general register area 7. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置、情
報処理装置の動作方法及びプログラムに関し、特に車載
用の情報処理装置及びその関連技術に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus, an operation method of the information processing apparatus, and a program, and more particularly to an in-vehicle information processing apparatus and its related technology.

【0002】[0002]

【従来の技術】本発明に関連する従来技術としては、情
報処理装置がリセット後の動作開始時に、そのRAM内
のデータに対してコードチェックを行い、コードチェッ
クの結果が良好である場合に、そのデータを動作開始後
の通常動作に使用するようになっているものがある。
2. Description of the Related Art As a prior art related to the present invention, when an information processing device starts an operation after reset, a code check is performed on the data in its RAM, and when the result of the code check is good, Some data are designed to be used for normal operation after the start of operation.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、コード
チェックによりデータ自体の異常は発見できるが、RA
M自体に物理的な異常が発生している場合には、異常を
発見できずに、リセット後の動作開始時に誤ったデータ
が使用されてしまうおそれがあり、信頼性が低いという
問題がある。例えば、RAMが異常により書き込み不能
な状態となり、RAMのデータ更新が正当に実行されな
い状態でリセットが行われた場合には、RAMに記憶さ
れているデータ自体は正当に更新されていないだけで正
常であるため、コードチェックでは異常が検出されず、
リセット後の動作開始時にその正当に更新されていない
データに基づいて誤った処理動作が行われてしまう。
However, although an abnormality in the data itself can be found by the code check, the RA
If a physical abnormality has occurred in M itself, the abnormality cannot be detected, and incorrect data may be used at the start of operation after reset, resulting in a problem of low reliability. For example, if the RAM is in an unwritable state due to an abnormality and the reset is performed in a state where the RAM data update is not properly executed, the data stored in the RAM itself is not updated properly and is normal. Therefore, no abnormalities are detected in the code check,
At the start of the operation after the reset, an erroneous processing operation is performed based on the data that has not been properly updated.

【0004】そこで、本発明は前記問題点に鑑み、ハー
ド構成の変更を行うことなく、半導体記憶手段の物理的
異常による動作異常を防止することができ、信頼性の向
上が図れる情報処理装置を提供することを目的とする。
In view of the above problems, the present invention provides an information processing apparatus capable of preventing an operational abnormality due to a physical abnormality of a semiconductor memory means without changing the hardware configuration and improving reliability. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するため
の技術的手段は、プログラム及び動作データが記録され
た第1の半導体記憶手段と、記憶内容の書き換えが可能
な第2の半導体記憶手段と、前記プログラム及び前記動
作データに基づいて動作する演算処理手段とを備え、前
記演算処理手段が、その通常の処理動作において外部か
らの入力内容に対して前記第2の半導体記憶手段をデー
タ保存場所として利用しつつ情報処理を行い、その処理
結果を外部に出力する情報処理装置において、前記演算
処理手段は、リセット後における動作開始時に、前記第
2の半導体記憶手段内の前記通常の処理動作に使用する
記憶領域に対して、データの書き込み及びそのデータの
読み出しを行った後、その読み出したデータの内容と、
書き込んだデータの内容とが一致しているか否かを判定
するメモリチェックを行い、そのメモリチェックの結果
が良好である場合にのみ、前記記憶領域内に存在するデ
ータを前記リセット後の前記通常の処理動作に使用する
ことを特徴とする。
[Means for Solving the Problems] The technical means for achieving the above-mentioned object are a first semiconductor memory means in which a program and operation data are recorded, and a second semiconductor memory means capable of rewriting the memory content. And an arithmetic processing unit that operates based on the program and the operation data, the arithmetic processing unit storing data in the second semiconductor storage unit with respect to input contents from the outside in its normal processing operation. In an information processing device that performs information processing while using it as a place and outputs the processing result to the outside, the arithmetic processing means, when starting operation after reset, performs the normal processing operation in the second semiconductor storage means. After writing data and reading the data to the storage area used for, the contents of the read data and
A memory check is performed to determine whether the contents of the written data match, and only when the result of the memory check is good, the data existing in the storage area is reset to the normal state after the reset. It is characterized by being used for processing operation.

【0006】好ましくは、前記第2の半導体記憶手段に
は、リセット時に消去せずに残すべきデータが保存され
るデータ保存領域と、前記データ保存領域の記憶内容の
待避用に設けられる待避領域と、通常記憶領域と、が設
けられ、前記演算処理手段は、前記通常の処理動作時に
おいて前記第2の半導体記憶手段に保存するデータのう
ち、リセット時に消去せずに残すべきデータについては
前記データ保存領域及び前記通常記憶領域のうちの両方
あるいは前記データ保存領域に保存し、リセット時に残
す必要のないデータについては前記通常記憶領域に保存
しつつ処理動作を行い、前記リセット後における動作開
始時に、前記データ保存領域内のデータを前記待避領域
に待避させ、前記データ保存領域に対して前記メモリチ
ェックを行い、そのメモリチェックの結果が良好である
場合にのみ、前記待避領域に待避しているデータを前記
データ保存領域に戻して前記リセット後の前記通常の処
理動作に使用するのがよい。
Preferably, the second semiconductor memory means has a data storage area in which data to be left without being erased at the time of reset is stored, and a save area provided for saving the storage contents of the data storage area. , A normal storage area is provided, and the arithmetic processing means stores the data stored in the second semiconductor storage means at the time of the normal processing operation as the data to be left without being erased at reset. Save in both the save area and the normal storage area or in the data save area, and perform processing operations while saving in the normal storage area for data that does not need to be retained at reset, at the start of operation after the reset, Data in the data storage area is saved to the save area, the memory check is performed on the data save area, and Only if the result of the memory check is good, it is preferable to use the data that is saved in the save area in the normal processing operation after the reset back to the data storage area.

【0007】また、好ましくは、前記演算処理手段は、
前記リセット後の動作開始時における前記データ保存領
域内のデータを前記待避領域に待避させる前に、前記待
避領域に対して前記メモリチェックを行い、そのメモリ
チェックの結果が良好である場合にのみ、前記データ保
存領域内のデータを前記待避領域に待避させ、前記デー
タ保存領域に対する前記メモリチェックを行うのがよ
い。
Preferably, the arithmetic processing means is
Before saving the data in the data storage area at the start of the operation after the reset to the save area, the memory check is performed on the save area, and only when the result of the memory check is good, It is preferable that the data in the data saving area is saved in the saving area and the memory check is performed on the data saving area.

【0008】さらに、好ましくは、前記第2の半導体記
憶手段は、RAMとレジスタとを備え、前記データ保存
領域と前記通常記憶領域とは前記RAMに設けられ、前
記待避領域は前記レジスタに設けられるのがよい。
Further, preferably, the second semiconductor storage means comprises a RAM and a register, the data storage area and the normal storage area are provided in the RAM, and the save area is provided in the register. Is good.

【0009】また、好ましくは、前記第2の半導体記憶
手段は、RAMを備え、前記データ保存領域、前記待避
領域及び前記通常記憶領域が前記RAMに設けられるの
がよい。
Further, preferably, the second semiconductor storage means comprises a RAM, and the data storage area, the save area and the normal storage area are provided in the RAM.

【0010】さらに、前記目的を達成するための技術的
手段は、プログラム及び動作データが記録された第1の
半導体記憶手段と、記憶内容の書き換えが可能な第2の
半導体記憶手段と、前記プログラム及び前記動作データ
に基づいて動作する演算処理手段とを備え、前記演算処
理手段が、その通常の処理動作において外部からの入力
内容に対して前記第2の半導体記憶手段をデータ保存場
所として利用しつつ情報処理を行い、その処理結果を外
部に出力する情報処理装置の動作方法において、前記演
算処理手段に、リセット後における動作開始時に、前記
第2の半導体記憶手段内の前記通常の処理動作に使用す
る記憶領域に対して、データの書き込み及びそのデータ
の読み出しを行わせた後、その読み出したデータの内容
と、書き込んだデータの内容とが一致しているか否かを
判定するメモリチェックを行わせ、その両メモリチェッ
クの結果が良好である場合にのみ、前記記憶領域内に存
在するデータを前記リセット後の前記通常の処理動作に
使用させることを特徴とする。
Further, the technical means for achieving the above-mentioned object is a first semiconductor memory means in which a program and operation data are recorded, a second semiconductor memory means capable of rewriting the memory content, and the program. And an arithmetic processing unit that operates based on the operation data, wherein the arithmetic processing unit uses the second semiconductor storage unit as a data storage location for input contents from the outside in its normal processing operation. In the operation method of the information processing apparatus for performing information processing while outputting information to the outside, the arithmetic processing means is configured to perform the normal processing operation in the second semiconductor memory means at the start of operation after reset. After writing data to and reading data from the storage area to be used, the contents of the read data and the written data Memory check to determine whether or not the contents of the data match, and only when the results of both memory checks are good, the data existing in the storage area is reset to the normal data after the reset. It is characterized in that it is used for processing operation.

【0011】また、前記目的を達成するための技術的手
段は、プログラム及び動作データが記録された第1の半
導体記憶手段と、記憶内容の書き換えが可能な第2の半
導体記憶手段と、前記プログラム及び前記動作データに
基づいて動作する演算処理手段とを備え、前記演算処理
手段が、その通常の処理動作において外部からの入力内
容に対して前記第2の半導体記憶手段をデータ保存場所
として利用しつつ情報処理を行い、その処理結果を外部
に出力する情報処理装置のプログラムにおいて、前記演
算処理手段に、リセット後における動作開始時に、前記
第2の半導体記憶手段内の前記通常の処理動作に使用す
る記憶領域に対して、データの書き込み及びそのデータ
の読み出しを行わせた後、その読み出したデータの内容
と、書き込んだデータの内容とが一致しているか否かを
判定するメモリチェックを行わせ、その両メモリチェッ
クの結果が良好である場合にのみ、前記記憶領域内に存
在するデータを前記リセット後の前記通常の処理動作に
使用させることを特徴とする。
The technical means for achieving the above-mentioned object are a first semiconductor memory means in which a program and operation data are recorded, a second semiconductor memory means in which the memory content can be rewritten, and the program. And an arithmetic processing unit that operates based on the operation data, wherein the arithmetic processing unit uses the second semiconductor storage unit as a data storage location for input contents from the outside in its normal processing operation. In the program of the information processing device for performing information processing while outputting the processing result to the outside, the arithmetic processing means is used for the normal processing operation in the second semiconductor memory means at the start of operation after reset. Data is written to and read from the storage area to be read, and the contents of the read data and the written data are written. Memory check to determine whether or not the contents of the data match, and only when the results of both memory checks are good, the data existing in the storage area is reset to the normal data after the reset. It is characterized in that it is used for processing operation.

【0012】[0012]

【発明の実施の形態】<第1実施形態>図1は本発明の
第1実施形態に係る情報処理装置であるマイコンのブロ
ック図である。このマイコンは、車載用のワンチップマ
イコンであり、図1に示すように、CPU(演算処理手
段)1と、CPU1の動作のためのプログラム及び動作
データが記録されたROM領域(第1の半導体記憶手
段)3と、RAM領域(RAM)5と、汎用レジスタ領
域(レジスタ)7とを備えている。RAM領域5とレジ
スタ領域7とは、本発明に係る第2の半導体記憶手段に
対応している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS <First Embodiment> FIG. 1 is a block diagram of a microcomputer which is an information processing apparatus according to a first embodiment of the present invention. This microcomputer is a vehicle-mounted one-chip microcomputer, and as shown in FIG. 1, a CPU (arithmetic processing unit) 1 and a ROM area (first semiconductor) in which a program and operation data for the operation of the CPU 1 are recorded. The storage unit 3 includes a RAM area (RAM) 5 and a general-purpose register area (register) 7. The RAM area 5 and the register area 7 correspond to the second semiconductor memory means according to the present invention.

【0013】本実施形態では、RAM領域5には、マイ
コンがリセットされた際にリセット後も継続使用するデ
ータを保存しておくための専用の記憶RAM領域(デー
タ保存領域)5aが設定されている。RAM領域5のう
ちの記憶RAM領域5a以外の領域は、通常のデータ保
存に用いられる通常RAM領域(通常記憶領域)5bと
なっている。この記憶RAM領域5aと通常RAM領域
5bとは、物理的構成及び機能は同じであり、CPU1
の設定により用途が定められているだけである。RAM
領域5には、マイコンの電源遮断時の記憶RAM領域5
a内のデータ保持のためのバックアップ機能(バックア
ップ電源等)を付与するようにしてもよく、あるいは記
憶内容の書き換えが可能な不揮発性メモリによりRAM
領域5を構成してもよい。
In this embodiment, the RAM area 5 is provided with a dedicated storage RAM area (data storage area) 5a for storing data that is continuously used even after the microcomputer is reset. There is. An area other than the storage RAM area 5a in the RAM area 5 is a normal RAM area (normal storage area) 5b used for normal data storage. The storage RAM area 5a and the normal RAM area 5b have the same physical configuration and function, and the CPU 1
The application is only defined by the setting of. RAM
Area 5 is a storage RAM area 5 when the microcomputer is powered off.
A backup function (backup power supply, etc.) for holding the data in a may be provided, or the RAM may be a nonvolatile memory whose rewritable content is rewritable.
Region 5 may be configured.

【0014】また、レジスタ領域7には、後述するメモ
リチェックの際に記憶RAM領域5aのデータを待避す
るための専用の空き領域(待避領域)7aが設定されて
いる。レジスタ領域7のうちの空き領域7a以外の領域
は、通常のデータ保存に用いられる通常レジスタ領域7
bとなっている。この空き領域7aと通常レジスタ領域
7bとは、物理的構成及び機能は同じであり、CPU1
の設定により用途が定められているだけである。
Further, in the register area 7, there is set a dedicated free area (a save area) 7a for saving the data in the storage RAM area 5a at the time of a memory check which will be described later. Areas of the register area 7 other than the empty area 7a are the normal register area 7 used for normal data storage.
It is b. The free area 7a and the normal register area 7b have the same physical configuration and function, and the CPU 1
The application is only defined by the setting of.

【0015】CPU1は、ROM領域3に記憶されたプ
ログラム及び動作データに基づいて動作することによ
り、その通常の処理動作において外部からの入力内容に
対してRAM領域5及びレジスタ領域7の通常レジスタ
領域7bをデータ保存場所として利用しつつ情報処理を
行い、その処理結果を外部に出力することにより、各種
の車載機器の制御等を行っている。
The CPU 1 operates on the basis of the program and operation data stored in the ROM area 3, so that in the normal processing operation, the normal register area of the RAM area 5 and the register area 7 with respect to the contents input from the outside. Information processing is performed using 7b as a data storage location, and the processing results are output to the outside to control various in-vehicle devices.

【0016】以下に、図2を参照してマイコン(特にC
PU1)の動作を説明する。図2のフローチャートに含
まれるステップS0〜S11のうちのステップS1〜S
9の処理は、第1のリセット処理(ステップS0)又は
第2のリセット処理(ステップS11)の後であって、
マイコンの通常の処理動作(ステップS10)が開始さ
れる前に実行される。
A microcomputer (particularly C
The operation of PU1) will be described. Steps S1 to S of steps S0 to S11 included in the flowchart of FIG.
The process of 9 is after the first reset process (step S0) or the second reset process (step S11),
It is executed before the normal processing operation of the microcomputer (step S10) is started.

【0017】ステップS0の第1のリセット処理は、マ
イコンの瞬停等による電源オン時に行われるマイコンの
起動のための処理であり、例えば、ROM領域3からの
プログラムの読み込み等が含まれる。ステップS11の
第2のリセット処理は、マイコンの動作(ステップS1
0の通常の処理動作)中に外部からの指令に応じて(あ
るいは自発的に)割り込み的に行われるマイコンの再起
動のための処理であり、マイコンの動作停止、及びそれ
に続くROM領域3からのプログラムの読み込み等が含
まれる。
The first reset process in step S0 is a process for starting the microcomputer, which is performed when the power is turned on due to a momentary power failure of the microcomputer, and includes, for example, reading a program from the ROM area 3. The second reset process in step S11 is the operation of the microcomputer (step S1
This is a process for restarting the microcomputer, which is interrupted in response to a command from the outside (or spontaneously) during the normal processing operation of 0), and stops the operation of the microcomputer and the subsequent ROM area 3 Includes reading of the program of.

【0018】また、ステップS10で行われる通常の処
理動作では、CPU1はRAM領域5に保存するデータ
のうち、リセット時に消去せずに残すべきデータ(リセ
ット後の継続使用すべきデータ)については通常RAM
領域5bに保存するとともに、記憶RAM領域5aにも
保存する。本実施形態では、通常RAM領域5bに保存
したデータのうち、継続使用すべきデータを定期的にコ
ード化して記憶RAM領域5aに保存するようになって
いる。RAM領域5に保存されるデータのうちのリセッ
ト時に消去されてもよいデータは、通常RAM領域5b
にのみ保存される。
In addition, in the normal processing operation performed in step S10, the CPU 1 normally processes, among the data stored in the RAM area 5, data that should be left without being erased at reset (data that should be continuously used after reset). RAM
The data is saved in the area 5b and also in the storage RAM area 5a. In this embodiment, of the data stored in the normal RAM area 5b, the data to be continuously used is regularly encoded and stored in the storage RAM area 5a. Of the data stored in the RAM area 5, the data that may be erased at reset is the normal RAM area 5b.
Only stored in.

【0019】ここで、データをコード化して記憶RAM
領域5aに保存するのは以下のような理由による。すな
わち、通常RAM領域5aにデータを保存する際には、
記憶領域の有効利用等のために制御対象のオン、オフ等
に対応した1、0等の単純なデータを保存するのである
が、この単純なデータでは信頼性が低い。このため、デ
ータを記憶RAM領域5aに保存する際には、所定コー
ドによりコード化して信頼性の向上を図っている。
Here, the data is encoded and stored in the storage RAM.
The reason for saving in the area 5a is as follows. That is, when saving data in the normal RAM area 5a,
Although simple data such as 1, 0 corresponding to ON / OFF of the controlled object is stored for effective use of the storage area, the reliability is low with this simple data. Therefore, when the data is stored in the storage RAM area 5a, it is encoded by a predetermined code to improve reliability.

【0020】なお、本実施形態では、継続使用すべきデ
ータを通常RAM領域5bと記憶RAM領域5aの両方
に保存するようにしたが、記憶RAM領域5aのみに保
存するようにしてもよい。
In this embodiment, the data to be continuously used is stored in both the normal RAM area 5b and the storage RAM area 5a, but it may be stored only in the storage RAM area 5a.

【0021】そして、マイコンの瞬停等による電源オン
時に行われる第1のリセット処理(ステップS0)、又
はマイコンの通常の処理動作中に外部からの指令に応じ
て(あるいは自発的に)割り込み的に行われる第2のリ
セット処理(ステップS11)が行われると、ステップ
S1に進み、本実施形態に係るメモリチェック等の処理
が行われる。
Then, a first reset process (step S0) that is performed when the power is turned on due to a momentary power failure of the microcomputer, or an interrupting operation in response to a command from the outside (or spontaneously) during a normal processing operation of the microcomputer. When the second reset process (step S11) performed in step S11 is performed, the process proceeds to step S1, and processes such as the memory check according to the present embodiment are performed.

【0022】ステップS1では、記憶RAM領域5aに
保存されている継続使用すべきデータが空き領域7aに
待避される。また、このステップS1では、このデータ
の待避処理に先立って、レジスタ領域7に対するメモリ
チェックが行われる。このメモリチェックとは、チェッ
ク対象のメモリ領域(ここではレジスタ領域7)にデー
タ(任意のデータ)の書き込み及びそのデータの読み出
しを行った後、その読み出したデータの内容と、書き込
んだデータの内容とが一致しているか否かを判定する処
理であり、書き込みデータと読み出しデータとが一致し
ている場合にはメモリ領域は正常であると判定され、一
致していない場合にはメモリ領域に物理的異常があると
判定される。
In step S1, the data stored in the storage RAM area 5a to be continuously used is saved in the free area 7a. In addition, in step S1, a memory check is performed on the register area 7 prior to the data saving processing. This memory check is to write the data (arbitrary data) to the memory area to be checked (here, the register area 7) and read the data, and then the content of the read data and the content of the written data. Is a process for determining whether or not and, if the write data and the read data match, it is determined that the memory area is normal, and if they do not match, the memory area is physically It is judged that there is a physical abnormality.

【0023】続くステップS2〜S5では、RAM領域
5に対するメモリチェックが行われる。すなわち、まず
RAM領域5へのデータ(任意のデータ)の書き込みが
行われ(ステップS2)、その書き込まれたデータがR
AM領域5から読み出され(ステップS3)、書き込ん
だデータ(データ値)と読み出したデータ(データ値)
とが一致しているか否か判定され(ステップS4)、一
致している場合にはステップS5に進み、全RAM領域
5のメモリチェックが完了したか否かが判断され、完了
していない場合には完了するまでステップS2〜S5の
処理が繰り返されて、全RAM領域5のメモリチェック
が行われ、全RAM領域5についてメモリチェックの結
果が良好である場合にのみ、ステップS7に進み、空き
領域7aに待避されていた継続使用すべきデータが、記
憶RAM領域5aに復帰され、ステップS8に進む。
In subsequent steps S2 to S5, a memory check is performed on the RAM area 5. That is, first, data (arbitrary data) is written to the RAM area 5 (step S2), and the written data is R
Data read from the AM area 5 (step S3), written data (data value) and read data (data value)
Is determined (step S4). If they match, the process proceeds to step S5. It is determined whether the memory check of all RAM areas 5 is completed. The process of steps S2 to S5 is repeated until completion, and the memory check of all RAM areas 5 is performed. Only when the result of the memory check is good for all RAM areas 5, the process proceeds to step S7 The data to be continuously used, which has been saved in 7a, is restored in the storage RAM area 5a, and the process proceeds to step S8.

【0024】ステップS4の判定で、書き込んだデータ
と読み出したデータとが一致していないと判定された場
合には、RAM領域5に物理的異常がある可能性があ
り、記憶RAM領域5aに保存されていたデータが信用
できない状態であるため、ステップS6に進み、エラー
処理が行われる。このエラー処理では、種々の内容が考
えられるが、そのうちいくつかを列挙してみると以下の
ような処理内容が考えられる。
If it is determined in step S4 that the written data and the read data do not match, there is a possibility that there is a physical abnormality in the RAM area 5 and the data is saved in the storage RAM area 5a. Since the data that has been processed is in an untrustworthy state, the process proceeds to step S6 and error processing is performed. In this error processing, various contents can be considered, and the following processing contents can be considered by listing some of them.

【0025】第1の具体例としては、マイコン1を全機
能停止させて電源オフした後、外部の監視用ICから入
力されるリセット指令に応じて電源オンさせて、マイコ
ンを再起動させる方法が考えられる。この場合、記憶R
AM領域5aに保存されていたデータは、エラー処理の
ための電源オフ時の前、又は電源オン後のマイコンの再
起動時に消去される。第2の具体例としては、マイコン
1のプログラムによる動作により自発的にリセットさせ
た後(その際、記憶RAM領域5aの内容の消去も行わ
れる)、再起動させる方法が考えられる。この他、RA
M領域5中の物理的異常が発生した部分を使用不能とす
る処理を行わせるようにしてもよい。
A first specific example is a method in which all the functions of the microcomputer 1 are stopped and the power is turned off, and then the power is turned on in response to a reset command input from an external monitoring IC to restart the microcomputer. Conceivable. In this case, the memory R
The data stored in the AM area 5a is erased before the power is turned off for error processing or when the microcomputer is restarted after the power is turned on. As a second specific example, there is a method of spontaneously resetting by the operation of the program of the microcomputer 1 (at that time, the contents of the storage RAM area 5a are also erased) and then restarting. In addition, RA
You may make it perform the process which makes the part in which the physical abnormality generate | occur | produced in the M area | region 5 unusable.

【0026】ステップS8では、記憶RAM領域5aに
復帰されたデータに対して各種のコードチェック(特定
パターンか否かの判定、サムチェック、CRCチェック
など)が行われ、コードチェックによってデータに異常
が発見されなかった場合にはステップS10に進み、記
憶RAM領域5aにコード化されて保存されているデー
タが、通常データに変換されて、対応する通常RAM領
域5b内に書き込まれて、通常処理に用いられる。
In step S8, various code checks (determination as to whether or not the pattern is a specific pattern, sum check, CRC check, etc.) are performed on the data returned to the storage RAM area 5a, and the data is found to be abnormal by the code check. If not found, the process proceeds to step S10, and the data coded and stored in the storage RAM area 5a is converted into normal data and written in the corresponding normal RAM area 5b for normal processing. Used.

【0027】なお、上記コードチェックにおける特定パ
ターンか否かの判定とは、記憶RAM領域5aに保存さ
れているデータが、保存用のコード形式に適合している
か否かのチェックである。
The judgment of whether or not the pattern is a specific pattern in the code check is a check of whether or not the data stored in the storage RAM area 5a conforms to the code format for storage.

【0028】ステップS8でのコードチェックの結果、
データに異常が発見された場合には、ステップS9にて
記憶RAM領域5aに保存されているデータのうちの壊
れたデータに対する復元処理が行われた後、ステップS
10に進み、その復元処理によって正常化された記憶R
AM領域5a内のデータが、通常データに変換されて、
対応する通常RAM領域5b内に書き込まれて、通常処
理に用いられる。
As a result of the code check in step S8,
If an abnormality is found in the data, the restoration processing is performed on the broken data among the data stored in the storage RAM area 5a in step S9, and then in step S9.
Proceed to 10 and the memory R normalized by the restoration process
The data in the AM area 5a is converted into normal data,
It is written in the corresponding normal RAM area 5b and used for normal processing.

【0029】以上のように、本実施形態によれば、リセ
ット後も継続使用すべきデータを保存しておくための記
憶RAM領域5aをRAM領域5に設け、CPU1が、
リセット後における動作開始時に、記憶RAM領域5a
を含むRAM領域5に対してメモリチェックを行い、そ
のメモリチェックの結果が良好である場合にのみ、記憶
RAM領域5a内に存在するデータを通常の処理動作に
使用するようになっているため、ハード構成の変更を行
うことなく、CPU1の動作プログラムを変更するだけ
でRAM領域5の物理的異常に起因する誤ったデータを
使用することにより生じる動作異常を防止することがで
き、信頼性の向上が図れる。
As described above, according to this embodiment, the RAM area 5 is provided with the storage RAM area 5a for storing the data to be continuously used even after the reset, and the CPU 1
At the start of operation after reset, the storage RAM area 5a
Since the memory check is performed on the RAM area 5 including, and the data existing in the storage RAM area 5a is used for the normal processing operation only when the result of the memory check is good, By changing the operation program of the CPU 1 without changing the hardware configuration, it is possible to prevent the operation abnormality caused by using the incorrect data due to the physical abnormality of the RAM area 5, and improve the reliability. Can be achieved.

【0030】また、リセット後の動作開始時に、記憶R
AM領域5aに保存されており信頼性の保証されたリセ
ット前のデータをそのまま利用して処理動作を続行する
ことができる。
At the start of the operation after reset, the memory R
It is possible to continue the processing operation using the data before reset, which is stored in the AM area 5a and whose reliability is guaranteed, as it is.

【0031】さらに、リセット後も継続使用されるデー
タを保存しておくための記憶RAM領域5aを設けてい
るため、保存しておくべきデータの保存時に保存先を探
す等の余分な処理が不要であり、プログラムの効率化が
図れる。
Further, since the storage RAM area 5a for storing the data which is continuously used even after the reset is provided, no extra processing such as searching for a storage destination when the data to be stored is stored is required. Therefore, the efficiency of the program can be improved.

【0032】また、記憶RAM領域5aのデータを待避
させるための専用の待避領域である空き領域7aが設け
られているため、データの待避時に待避先を探す等の余
分な処理が必要がなく、プログラム及び動作の簡略化が
図れる。
Further, since the empty area 7a, which is a dedicated save area for saving the data in the storage RAM area 5a, is provided, there is no need for extra processing such as searching for a save destination when saving the data, The program and operation can be simplified.

【0033】さらに、記憶RAM領域5aのデータを空
き領域7aに待避させる前に、空き領域7aを含むレジ
スタ領域7に対してもメモリチェックを行うようになっ
ているため、記憶RAM領域5aのデータを待避させる
際に空き領域7aの物理的異常によりデータに不具合が
生じるのを防止することができ、記憶RAM領域5aの
データの信頼性をさらに向上させることができる。
Further, before saving the data in the storage RAM area 5a to the empty area 7a, a memory check is also performed on the register area 7 including the empty area 7a. It is possible to prevent the occurrence of a defect in the data due to a physical abnormality in the empty area 7a when saving the data, and it is possible to further improve the reliability of the data in the storage RAM area 5a.

【0034】また、一般的にRAM(RAM領域5)に
対するメモリチェックを行う場合には、プログラム実行
用の使用エリアをRAM上に確保する必要がある関係か
ら、RAM上におけるプログラムの実行領域を切り替え
つつRAM全体のメモリチェックを何度かに分けて行う
必要があるが、レジスタ(レジスタ領域7)に対するメ
モリチェックは、RAM上におけるプログラムの実行領
域を切り替えることなく一度にレジスタ全体について実
行することができる。このため、待避領域である空き領
域7aをレジスタ領域7に設けることにより、データを
記憶RAM領域5aから空き領域7aに待避する前に行
うレジスタ領域7のメモリチェックを容易に行うことが
できるという利点がある。
In general, when performing a memory check on the RAM (RAM area 5), it is necessary to secure a use area for program execution on the RAM, so that the execution area of the program on the RAM is switched. While it is necessary to perform the memory check of the entire RAM several times, the memory check for the register (register area 7) can be executed for the entire register at once without switching the execution area of the program on the RAM. it can. Therefore, by providing the empty area 7a which is the save area in the register area 7, it is possible to easily perform the memory check of the register area 7 before saving the data from the storage RAM area 5a to the empty area 7a. There is.

【0035】<第2実施形態>図3は本発明の第2実施
形態に係る情報処理装置であるマイコンのブロック図で
ある。本実施形態に係るマイコンが前述の第1実施形態
に係るマイコンと実質的に異なる点は、本発明に係る待
避領域がレジスタ7ではなく、待避RAM領域5cとし
てRAM領域5内に設けられている点、及びそれに関連
する処理動作が変更されている点のみであり、互いに対
応する部分には同一の参照符号を付し、説明を省略す
る。
<Second Embodiment> FIG. 3 is a block diagram of a microcomputer which is an information processing apparatus according to a second embodiment of the present invention. The microcomputer according to the present embodiment is substantially different from the microcomputer according to the first embodiment described above in that the save area according to the present invention is provided in the RAM area 5 as a save RAM area 5c instead of the register 7. Only the points and the points in which the processing operations related thereto have been changed, the portions corresponding to each other are designated by the same reference numerals, and the description thereof will be omitted.

【0036】本実施形態では、RAM領域5内に待避領
域である待避RAM領域5cが設けられており、RAM
領域5内における記憶RAM領域5a及び待避RAM領
域5c以外の領域が通常RAM領域5bとなっている。
また、レジスタ領域7の全領域が通常レジスタ領域7b
となっている。
In this embodiment, the RAM area 5 is provided with a save RAM area 5c which is a save area.
An area other than the storage RAM area 5a and the save RAM area 5c in the area 5 is a normal RAM area 5b.
The entire register area 7 is the normal register area 7b.
Has become.

【0037】以下に、図4を参照してマイコン(特にC
PU1)の動作を説明する。図4のフローチャートに含
まれるステップS20〜S36のうちのステップS21
〜S34の処理は、第1のリセット処理(ステップS2
0)又は第2のリセット処理(ステップS36)の後で
あって、マイコンの通常の処理動作(ステップS35)
が開始される前に実行される。
A microcomputer (particularly C
The operation of PU1) will be described. Step S21 of steps S20 to S36 included in the flowchart of FIG.
The processes of to S34 are the first reset process (step S2).
0) or after the second reset processing (step S36) and the normal processing operation of the microcomputer (step S35)
Is executed before is started.

【0038】なお、ステップS20,S36の第1及び
第2リセット処理は、前述のステップS0,S11の第
1及び第2のリセット処理と同様であり、ステップS3
5の処理内容が前述のステップS10の処理内容と同様
であり、ステップS25,S31のエラー処理は、前述
のステップS6のエラー処理と同様であるため、これら
のステップS20,S25,S31,S35,S36に
ついては説明を省略する。
The first and second reset processes of steps S20 and S36 are the same as the first and second reset processes of steps S0 and S11 described above, and step S3
Since the processing content of step 5 is the same as the processing content of step S10 described above and the error processing of steps S25 and S31 is similar to the error processing of step S6 described above, these steps S20, S25, S31, S35, The description of S36 is omitted.

【0039】ステップS21〜S24では、RAM領域
5内における記憶RAM領域5a以外の領域(通常RA
M領域5b及び待避RAM領域5c)に対するメモリチ
ェックが行われる。すなわち、まずRAM領域5の記憶
RAM領域5a以外の領域へのデータ(任意のデータ)
の書き込みが行われ(ステップS21)、その書き込ま
れたデータがRAM領域5から読み出され(ステップS
22)、書き込んだデータ(データ値)と読み出したデ
ータ(データ値)とが一致しているか否か判定され(ス
テップS23)、一致している場合にはステップS24
に進み、RAM領域5の記憶RAM領域5a以外の全領
域のメモリチェックが完了したか否かが判断され、完了
していない場合には完了するまでステップS21〜S2
4の処理が繰り返されて、RAM領域5の記憶RAM領
域5a以外の全領域のメモリチェックが行われ、その全
領域についてメモリチェックの結果が良好である場合に
のみ、ステップS26に進み、記憶RAM領域5a内の
継続使用すべきデータが、待避RAM領域5cに待避さ
れ、ステップS27に進む。
In steps S21 to S24, an area other than the storage RAM area 5a in the RAM area 5 (normal RA
A memory check is performed on the M area 5b and the save RAM area 5c). That is, first, the data (arbitrary data) to the area of the RAM area 5 other than the storage RAM area 5a
Is written (step S21), and the written data is read from the RAM area 5 (step S21).
22), it is determined whether the written data (data value) and the read data (data value) match (step S23), and if they match, step S24.
Then, it is determined whether the memory check of all areas of the RAM area 5 other than the storage RAM area 5a is completed. If not completed, steps S21 to S2 are completed.
The process of step 4 is repeated, and the memory check is performed on all areas of the RAM area 5 other than the storage RAM area 5a. Only when the result of the memory check is good for all the areas, the process proceeds to step S26 and the storage RAM The data to be continuously used in the area 5a is saved in the save RAM area 5c, and the process proceeds to step S27.

【0040】ステップS23の判定で、書き込んだデー
タと読み出したデータとが一致していないと判定された
場合には、RAM領域5(RAM領域5の記憶RAM領
域5a以外の全領域)に物理的異常がある可能性があ
り、記憶RAM領域5aに保存されていたデータも信用
できない状態であるため、ステップS25に進み、前述
のステップS6と同様なエラー処理が行われる。
If it is determined in step S23 that the written data does not match the read data, the RAM area 5 (the entire area of the RAM area 5 other than the storage RAM area 5a) is physically stored. Since there is a possibility that there is an abnormality and the data stored in the storage RAM area 5a is also unreliable, the process proceeds to step S25 and the same error processing as in step S6 is performed.

【0041】ステップS27〜S30では、記憶RAM
領域5aに対するメモリチェックが行われる。すなわ
ち、まず記憶RAM領域5aへのデータ(任意のデー
タ)の書き込みが行われ(ステップS27)、その書き
込まれたデータがRAM領域5aから読み出され(ステ
ップS28)、書き込んだデータ(データ値)と読み出
したデータ(データ値)とが一致しているか否か判定さ
れ(ステップS29)、一致している場合にはステップ
S30に進み、全記憶RAM領域5aのメモリチェック
が完了したか否かが判断され、完了していない場合には
完了するまでステップS27〜S30の処理が繰り返さ
れて、全記憶RAM領域5aのメモリチェックが行わ
れ、全記憶RAM領域5aについてメモリチェックの結
果が良好である場合にのみ、ステップS32に進み、待
避RAM領域5cに待避されていた継続使用すべきデー
タが、記憶RAM領域5aに復帰され、ステップS33
に進む。
In steps S27 to S30, the storage RAM
A memory check is performed on the area 5a. That is, first, data (arbitrary data) is written to the storage RAM area 5a (step S27), the written data is read from the RAM area 5a (step S28), and the written data (data value) And the read data (data value) are determined (step S29). If they are the same, the process proceeds to step S30 to determine whether or not the memory check of the entire storage RAM area 5a is completed. If it is determined and not completed, the processes of steps S27 to S30 are repeated until the completion, and the memory check of the entire storage RAM area 5a is performed, and the result of the memory check is good for the entire storage RAM area 5a. Only in this case, the process proceeds to step S32, and the data saved in the save RAM area 5c to be continuously used is stored in the storage RA. Is returned to the region 5a, Step S33
Proceed to.

【0042】ステップS29の判定で、書き込んだデー
タと読み出したデータとが一致していないと判定された
場合には、記憶RAM領域5aに物理的異常がある可能
性があり、記憶RAM領域5aに保存されていたデータ
が信用できない状態であるため、ステップS31に進
み、前述のステップS6と同様なエラー処理が行われ
る。
If it is determined in step S29 that the written data and the read data do not match, there is a possibility that the storage RAM area 5a has a physical abnormality, and the storage RAM area 5a does not have the physical abnormality. Since the stored data is in an untrustworthy state, the process proceeds to step S31, and the same error processing as in step S6 is performed.

【0043】ステップS33では、記憶RAM領域5a
に復帰されたデータに対して前述のステップS8と同様
な各種のコードチェックが行われ、コードチェックによ
ってデータに異常が発見されなかった場合にはステップ
S35に進み、記憶RAM領域5aにコード化されて保
存されているデータが、通常データに変換されて、対応
する通常RAM領域5b内に書き込まれて、通常処理に
用いられる。
In step S33, the storage RAM area 5a
Various kinds of code check similar to the above-mentioned step S8 are performed on the data returned to step S8. If no abnormality is found in the data by the code check, the process proceeds to step S35 and is encoded in the storage RAM area 5a. The stored data is converted into normal data, written in the corresponding normal RAM area 5b, and used for normal processing.

【0044】ステップS33でのコードチェックの結
果、データに異常が発見された場合には、ステップS3
4にて記憶RAM領域5aに保存されているデータのう
ちの壊れたデータに対する復元処理が行われた後、ステ
ップS35に進み、その復元処理によって正常化された
記憶RAM領域5a内のデータが、通常データに変換さ
れて、対応する通常RAM領域5b内に書き込まれて、
通常処理に用いられる。
If an abnormality is found in the data as a result of the code check in step S33, step S3
After the restoration processing for the broken data among the data stored in the storage RAM area 5a is performed in step 4, the process proceeds to step S35, and the data in the storage RAM area 5a normalized by the restoration processing is Converted to normal data and written in the corresponding normal RAM area 5b,
Used for normal processing.

【0045】以上のように、本実施形態においても前述
の第1実施形態の場合とほぼ同様な効果が得られる他、
本実施形態の特有の効果として、記憶RAM領域5aの
データの待避領域である待避RAM領域5cがRAM領
域5内に設けられているため、比較的大容量の待避領域
を容易に確保することができるという利点がある。
As described above, in this embodiment, the same effect as in the case of the first embodiment described above can be obtained.
As a peculiar effect of this embodiment, since the save RAM area 5c, which is a save area for data in the storage RAM area 5a, is provided in the RAM area 5, it is possible to easily secure a save area having a relatively large capacity. There is an advantage that you can.

【0046】[0046]

【発明の効果】請求項1ないし7に記載の発明によれ
ば、演算処理手段が、リセット後における動作開始時
に、第2の半導体記憶手段内の前記通常の処理動作に使
用する記憶領域に対してメモリチェックを行い、そのメ
モリチェックの結果が良好である場合にのみ、記憶領域
内に存在するデータを通常の処理動作に使用するように
なっているため、ハード構成の変更を行うことなく、演
算処理手段の動作プログラムを変更するだけで半導体記
憶手段の物理的異常に起因する誤ったデータを使用する
ことにより生じる動作異常を防止することができ、信頼
性の向上が図れる。
According to the invention described in claims 1 to 7, when the operation processing means starts the operation after the resetting, the arithmetic processing means is added to the storage area used for the normal processing operation in the second semiconductor storage means. Memory check is performed, and the data existing in the storage area is used for normal processing operation only when the result of the memory check is good, so without changing the hardware configuration, By only changing the operation program of the arithmetic processing means, it is possible to prevent the operation abnormality caused by using the incorrect data due to the physical abnormality of the semiconductor storage means, and improve the reliability.

【0047】また、リセット後の動作開始時に、信頼性
の保証されたリセット前のデータをそのまま利用して処
理動作を続行することができる。
Further, at the time of starting the operation after the reset, it is possible to continue the processing operation by using the data before the reset, in which the reliability is guaranteed, as it is.

【0048】請求項2に記載の発明によれば、リセット
後も継続使用されるデータを保存しておくための専用の
データ保存領域を設けているため、保存しておくべきデ
ータの保存時に保存先を探す等の余分な処理が不要であ
り、プログラムの効率化が図れる。
According to the second aspect of the invention, since the dedicated data storage area for storing the data that is continuously used even after the reset is provided, the data is saved when the data to be saved is saved. No extra processing such as searching for the destination is required, and the efficiency of the program can be improved.

【0049】また、データ保存領域のデータを待避させ
るための専用の待避領域が設けられているため、データ
の待避時に待避先を探す等の余分な処理が必要がなく、
プログラム及び動作の簡略化が図れる。
Since a dedicated save area for saving the data in the data storage area is provided, there is no need for extra processing such as searching for a save destination when saving the data,
The program and operation can be simplified.

【0050】請求項3に記載の発明によれば、データ保
存領域のデータを待避領域に待避させる前に、待避領域
に対してもメモリチェックを行うようになっているた
め、データ保存領域のデータを待避させる際に待避領域
の物理的異常によりデータに不具合が生じるのを防止す
ることができ、データ保存領域のデータの信頼性をさら
に向上させることができる。
According to the third aspect of the present invention, before the data in the data save area is saved in the save area, the memory check is also performed on the save area. It is possible to prevent a problem from occurring in the data due to a physical abnormality in the save area when saving the data, and it is possible to further improve the reliability of the data in the data storage area.

【0051】請求項4に記載の発明によれば、一般的に
RAMに対するメモリチェックを行う場合には、プログ
ラム実行用の使用エリアをRAM上に確保する必要があ
る関係から、RAM上におけるプログラムの実行領域を
切り替えつつRAM全体のメモリチェックを何度かに分
けて行う必要があるが、レジスタに対するメモリチェッ
クは、RAM上におけるプログラムの実行領域を切り替
えることなく一度にレジスタ全体について実行すること
ができる。このため、待避領域をレジスタに設けること
により、データをデータ保存領域から待避領域に待避す
る前に行うレジスタのメモリチェックを容易に行うこと
ができるという利点がある。
According to the fourth aspect of the invention, generally, when performing a memory check on the RAM, it is necessary to secure a use area for program execution on the RAM. Although it is necessary to perform the memory check of the entire RAM separately while switching the execution regions, the memory check for the registers can be executed for the entire registers at once without switching the execution region of the program on the RAM. . Therefore, by providing the save area in the register, it is possible to easily perform the memory check of the register before saving the data from the data storage area to the save area.

【0052】請求項5に記載の発明によれば、待避領域
がRAM内に設けられているため、比較的大容量の待避
領域を容易に確保することができる。
According to the fifth aspect of the invention, since the save area is provided in the RAM, it is possible to easily secure the save area having a relatively large capacity.

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

【図1】本発明の第1実施形態に係る情報処理装置であ
るマイコンのブロック図である。
FIG. 1 is a block diagram of a microcomputer that is an information processing device according to a first embodiment of the present invention.

【図2】図1のマイコンの動作を示すフローチャートで
ある。
FIG. 2 is a flowchart showing the operation of the microcomputer shown in FIG.

【図3】本発明の第2実施形態に係る情報処理装置であ
るマイコンのブロック図である。
FIG. 3 is a block diagram of a microcomputer that is an information processing device according to a second embodiment of the present invention.

【図4】図3のマイコンの動作を示すフローチャートで
ある。
4 is a flowchart showing the operation of the microcomputer of FIG.

【符号の説明】[Explanation of symbols]

1 CPU 3 ROM領域 5 RAM領域 5a 記憶RAM領域 5b 通常RAM領域 5c 待避RAM領域 7 汎用レジスタ領域 7a 空き領域 7b 通常レジスタ領域 1 CPU 3 ROM area 5 RAM area 5a storage RAM area 5b Normal RAM area 5c Save RAM area 7 General-purpose register area 7a free space 7b Normal register area

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 プログラム及び動作データが記録された
第1の半導体記憶手段と、 記憶内容の書き換えが可能な第2の半導体記憶手段と、 前記プログラム及び前記動作データに基づいて動作する
演算処理手段とを備え、 前記演算処理手段が、その通常の処理動作において外部
からの入力内容に対して前記第2の半導体記憶手段をデ
ータ保存場所として利用しつつ情報処理を行い、その処
理結果を外部に出力する情報処理装置において、 前記演算処理手段は、 リセット後における動作開始時に、前記第2の半導体記
憶手段内の前記通常の処理動作に使用する記憶領域に対
して、データの書き込み及びそのデータの読み出しを行
った後、その読み出したデータの内容と、書き込んだデ
ータの内容とが一致しているか否かを判定するメモリチ
ェックを行い、そのメモリチェックの結果が良好である
場合にのみ、前記記憶領域内に存在するデータを前記リ
セット後の前記通常の処理動作に使用することを特徴と
する情報処理装置。
1. A first semiconductor memory means in which a program and operation data are recorded, a second semiconductor memory means in which the memory content can be rewritten, and an arithmetic processing means which operates based on the program and the operation data. The arithmetic processing means performs information processing with respect to input contents from the outside in its normal processing operation while using the second semiconductor storage means as a data storage location, and outputs the processing result to the outside. In the information processing apparatus for outputting, the arithmetic processing means writes data into the storage area used for the normal processing operation in the second semiconductor storage means and stores the data when the operation is started after reset. After reading, the memory check to determine whether the contents of the read data and the contents of the written data match. It was carried out, in which case the memory check result is good only, the information processing apparatus characterized by using the data present in the storage area in the normal processing operation after the reset.
【請求項2】 請求項1に記載の情報処理装置におい
て、 前記第2の半導体記憶手段には、 リセット時に消去せずに残すべきデータが保存されるデ
ータ保存領域と、 前記データ保存領域の記憶内容の待避用に設けられる待
避領域と、 通常記憶領域と、が設けられ、 前記演算処理手段は、 前記通常の処理動作時において前記第2の半導体記憶手
段に保存するデータのうち、リセット時に消去せずに残
すべきデータについては前記データ保存領域及び前記通
常記憶領域のうちの両方あるいは前記データ保存領域に
保存し、リセット時に残す必要のないデータについては
前記通常記憶領域に保存しつつ処理動作を行い、 前記リセット後における動作開始時に、前記データ保存
領域内のデータを前記待避領域に待避させ、前記データ
保存領域に対して前記メモリチェックを行い、そのメモ
リチェックの結果が良好である場合にのみ、前記待避領
域に待避しているデータを前記データ保存領域に戻して
前記リセット後の前記通常の処理動作に使用することを
特徴とする情報処理装置。
2. The information processing apparatus according to claim 1, wherein the second semiconductor storage means stores a data storage area in which data to be left without being erased at reset is stored, and a storage of the data storage area. A save area provided for saving contents and a normal storage area are provided, and the arithmetic processing unit erases data stored in the second semiconductor storage unit during the normal processing operation at reset. Data that should be left without being saved is stored in both the data storage area and the normal storage area or in the data storage area, and data that does not need to be left at reset is stored in the normal storage area while processing operations are performed. When the operation is started after the reset, the data in the data storage area is saved in the save area, and the data is saved in the data save area. The memory check, and only when the result of the memory check is good, the data saved in the save area is returned to the data storage area and used for the normal processing operation after the reset. An information processing device characterized by:
【請求項3】 請求項2に記載の情報処理装置におい
て、 前記演算処理手段は、 前記リセット後の動作開始時における前記データ保存領
域内のデータを前記待避領域に待避させる前に、前記待
避領域に対して前記メモリチェックを行い、そのメモリ
チェックの結果が良好である場合にのみ、前記データ保
存領域内のデータを前記待避領域に待避させ、前記デー
タ保存領域に対する前記メモリチェックを行うことを特
徴とする情報処理装置。
3. The information processing apparatus according to claim 2, wherein the arithmetic processing unit saves the data in the data storage area at the start of the operation after the reset to the save area before the save area. The memory check is performed on the data storage area, the data in the data storage area is saved in the save area, and the memory check is performed on the data storage area only when the result of the memory check is good. Information processing device.
【請求項4】 請求項2又は3に記載の情報処理装置に
おいて、 前記第2の半導体記憶手段は、RAMとレジスタとを備
え、 前記データ保存領域と前記通常記憶領域とは前記RAM
に設けられ、 前記待避領域は前記レジスタに設けられることを特徴と
する情報処理装置。
4. The information processing apparatus according to claim 2, wherein the second semiconductor storage means includes a RAM and a register, and the data storage area and the normal storage area are the RAM.
The information processing device, wherein the save area is provided in the register.
【請求項5】 請求項2又は3に記載の情報処理装置に
おいて、 前記第2の半導体記憶手段は、RAMを備え、 前記データ保存領域、前記待避領域及び前記通常記憶領
域が前記RAMに設けられることを特徴とする情報処理
装置。
5. The information processing apparatus according to claim 2, wherein the second semiconductor storage means includes a RAM, and the data storage area, the save area, and the normal storage area are provided in the RAM. An information processing device characterized by the above.
【請求項6】 プログラム及び動作データが記録された
第1の半導体記憶手段と、 記憶内容の書き換えが可能な第2の半導体記憶手段と、 前記プログラム及び前記動作データに基づいて動作する
演算処理手段とを備え、 前記演算処理手段が、その通常の処理動作において外部
からの入力内容に対して前記第2の半導体記憶手段をデ
ータ保存場所として利用しつつ情報処理を行い、その処
理結果を外部に出力する情報処理装置の動作方法におい
て、 前記演算処理手段に、 リセット後における動作開始時に、前記第2の半導体記
憶手段内の前記通常の処理動作に使用する記憶領域に対
して、データの書き込み及びそのデータの読み出しを行
わせた後、その読み出したデータの内容と、書き込んだ
データの内容とが一致しているか否かを判定するメモリ
チェックを行わせ、その両メモリチェックの結果が良好
である場合にのみ、前記記憶領域内に存在するデータを
前記リセット後の前記通常の処理動作に使用させること
を特徴とする情報処理装置の動作方法。
6. A first semiconductor memory means in which a program and operation data are recorded, a second semiconductor memory means in which the memory content can be rewritten, and an arithmetic processing means which operates based on the program and the operation data. The arithmetic processing means performs information processing with respect to input contents from the outside in its normal processing operation while using the second semiconductor storage means as a data storage location, and outputs the processing result to the outside. In the operation method of the information processing device for outputting, in the arithmetic processing means, at the time of starting the operation after resetting, writing data to a storage area used for the normal processing operation in the second semiconductor storage means, After the data is read, it is determined whether the content of the read data and the content of the written data match. Memory check is performed, and the data existing in the storage area is used for the normal processing operation after the reset only when the results of both memory checks are good. How it works.
【請求項7】 プログラム及び動作データが記録された
第1の半導体記憶手段と、 記憶内容の書き換えが可能な第2の半導体記憶手段と、 前記プログラム及び前記動作データに基づいて動作する
演算処理手段とを備え、 前記演算処理手段が、その通常の処理動作において外部
からの入力内容に対して前記第2の半導体記憶手段をデ
ータ保存場所として利用しつつ情報処理を行い、その処
理結果を外部に出力する情報処理装置のプログラムにお
いて、 前記演算処理手段に、 リセット後における動作開始時に、前記第2の半導体記
憶手段内の前記通常の処理動作に使用する記憶領域に対
して、データの書き込み及びそのデータの読み出しを行
わせた後、その読み出したデータの内容と、書き込んだ
データの内容とが一致しているか否かを判定するメモリ
チェックを行わせ、その両メモリチェックの結果が良好
である場合にのみ、前記記憶領域内に存在するデータを
前記リセット後の前記通常の処理動作に使用させること
を特徴とする情報処理装置のプログラム。
7. A first semiconductor memory means in which a program and operation data are recorded, a second semiconductor memory means in which the memory content can be rewritten, and an arithmetic processing means which operates based on the program and the operation data. The arithmetic processing means performs information processing with respect to input contents from the outside in its normal processing operation while using the second semiconductor storage means as a data storage location, and outputs the processing result to the outside. In the program of the information processing device to be output, the arithmetic processing unit writes data to a storage area used for the normal processing operation in the second semiconductor storage unit at the start of operation after resetting and After making the data read, determine whether the content of the read data and the content of the written data match. A memory check is performed, and only when the results of both memory checks are good, the data existing in the storage area is used for the normal processing operation after the reset. program.
JP2002036935A 2002-02-14 2002-02-14 Information processor, and operational method and program for information processor Pending JP2003242046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002036935A JP2003242046A (en) 2002-02-14 2002-02-14 Information processor, and operational method and program for information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002036935A JP2003242046A (en) 2002-02-14 2002-02-14 Information processor, and operational method and program for information processor

Publications (1)

Publication Number Publication Date
JP2003242046A true JP2003242046A (en) 2003-08-29

Family

ID=27778676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002036935A Pending JP2003242046A (en) 2002-02-14 2002-02-14 Information processor, and operational method and program for information processor

Country Status (1)

Country Link
JP (1) JP2003242046A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007148536A (en) * 2005-11-24 2007-06-14 Fuji Xerox Co Ltd Ram-diagnosing device and method
JP2009015525A (en) * 2007-07-03 2009-01-22 Toshiba Tec Corp Data processor and control method thereof
JP2015215872A (en) * 2014-04-22 2015-12-03 株式会社デンソー Microcomputer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007148536A (en) * 2005-11-24 2007-06-14 Fuji Xerox Co Ltd Ram-diagnosing device and method
JP2009015525A (en) * 2007-07-03 2009-01-22 Toshiba Tec Corp Data processor and control method thereof
JP2015215872A (en) * 2014-04-22 2015-12-03 株式会社デンソー Microcomputer

Similar Documents

Publication Publication Date Title
TWI515660B (en) Firmware variable update method
KR101375992B1 (en) Handling errors during device bootup from a non-volatile memory
US6601132B2 (en) Nonvolatile memory and method of writing data thereto
JP3838840B2 (en) Computer
JP2010198252A (en) Non-volatile memory device, write-in method for nonvolatile memory, and nonvolatile memory write-in program
JP3830867B2 (en) Single-chip microcomputer and its boot area switching method
JP2003242046A (en) Information processor, and operational method and program for information processor
JP2000293376A (en) Circuit and method for switching boot program
JP2003271420A (en) Electronic control device
JP2005128613A (en) Image forming device
JP4535316B2 (en) Terminal fail-safe system, terminal fail-safe method, and terminal fail-safe program
JP4689792B2 (en) PROM switching control system
JP5072092B2 (en) Recovery control device, control method, program, and computer-readable storage medium
JP2000235483A (en) Information processor
JP2003122575A (en) Information processing unit
JP2003288213A (en) Boot program storage device and method of storing boot program of electronic appliance
JP2019160080A (en) Controller and abnormality detection method
JP2002259152A (en) Flash memory rewriting method
JP2003108398A (en) Method for rewriting program and device therefor, and information processing apparatus
JP2011150383A (en) Firmware writing method
JP2007084232A (en) Elevator control program updating device
JPH11338690A (en) Flash memory, firmware use system device and firmware rewriting method
JP2000010872A (en) Microcomputer with flash memory mixedly mounted, and its debugging method
JP2005228225A (en) Memory card adaptor
JP2005332228A (en) Program switching controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061205

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070116

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070529