JPH03211619A - Data processor - Google Patents

Data processor

Info

Publication number
JPH03211619A
JPH03211619A JP2007959A JP795990A JPH03211619A JP H03211619 A JPH03211619 A JP H03211619A JP 2007959 A JP2007959 A JP 2007959A JP 795990 A JP795990 A JP 795990A JP H03211619 A JPH03211619 A JP H03211619A
Authority
JP
Japan
Prior art keywords
data
storage means
stored
memory
address
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.)
Granted
Application number
JP2007959A
Other languages
Japanese (ja)
Other versions
JP3019346B2 (en
Inventor
Mikio Saito
斉藤 三喜男
Kazuhiro Hirata
和弘 平田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2007959A priority Critical patent/JP3019346B2/en
Publication of JPH03211619A publication Critical patent/JPH03211619A/en
Application granted granted Critical
Publication of JP3019346B2 publication Critical patent/JP3019346B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To accurately accurately detect whether data rewritten into a substitution memory is normally stored or not by using the coincidence of passwords, sum check and the storage state of data. CONSTITUTION:When abnormality is detected in even one of states such as the coincidence of the passwords in ROM 11 and a FLASH memory 12 being the substituition memory, the result of the sum check of data stored in the memory 12 and the storage state of the memory 12, a central processing unit (MPU) 10 judges that data of the memory 12 is stored in an abnormal state. Consequently, it can accurately be detected that data rewritten into the substitu tion memory 12 is normally or abnormally stored. Thus, the abnormal operation of a data processor can easioly be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、読み出し専用のメモリに記憶されているデー
タの替りに、別のメモリに記憶されたブタをロードして
該データに応じた動作を実行するデータ処理装置に関し
、特に上記別のメモリの記憶異常を検知するデータ処理
装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a system for loading data stored in another memory instead of data stored in a read-only memory and performing operations according to the data. The present invention relates to a data processing device that executes the above, and particularly relates to a data processing device that detects a storage abnormality in the above-mentioned separate memory.

〔従来の技術〕[Conventional technology]

従来のデータ処理装置では、メモリに書き込まれたデー
タ(プログラム)が正常に記憶されているかどうかを検
査するのに、サムチェック(SUScheck )を行
い、その結果に応じてメモリ内のプログラムが正常に記
憶されているが、異常に記憶されているか判断して、上
記メモリ内の異常プログラムによる装置の誤動作を防止
していた。
Conventional data processing devices perform a sum check (SUScheck) to check whether the data (program) written to the memory is stored correctly. However, it is determined whether the program is stored abnormally or not to prevent malfunction of the device due to the abnormal program in the memory.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところが、データ処理装置では、データ読み出し専用の
メモリ(ROM)に記憶されているデータの替りとなる
プログラムを代替えのメモリ(フラッシュメモリ)に記
憶させておき、上記替りとなるデータに応じた動作を実
行するので、上記装置が例えばシステムアップしたとき
のバージョンを示すデータをパスワードとして上xc!
ROM及びフラッシュメモリ内に記憶させておかなけれ
ばならず、このパスワードが一致しなければいくらフラ
ッシュメモリに書き換えたデータが正常に記憶されてい
ても、上記データをROMに記憶されているプログラム
の替りとすることはできない。従って、サムチェックを
行うだけでは、フラッシュメモリ内のデータが正常に記
憶されているかどうか判らないという問題点があった。
However, in a data processing device, a program that replaces data stored in a data read-only memory (ROM) is stored in an alternative memory (flash memory), and operations are performed according to the alternative data. To execute this, use the data indicating the version of the above device when the system was upgraded, for example, as the password.xc!
It must be stored in the ROM and flash memory, and if the passwords do not match, no matter how much data is rewritten to the flash memory and is stored normally, the above data cannot be used to replace the program stored in the ROM. It is not possible to do so. Therefore, there is a problem in that it cannot be determined whether the data in the flash memory is properly stored or not just by performing a sum check.

本発明は、上記問題点に鑑みなされたもので、サムチェ
ックとサムチェック以外のデータの検知手段を用いて、
代替えのメモリに書き換えられたデータが正常に記憶さ
れていることを正確に検知することができるデータ処理
装置を提供することを課題とする。
The present invention was made in view of the above problems, and uses a sum check and a data detection means other than the sum check.
It is an object of the present invention to provide a data processing device that can accurately detect whether data rewritten in a substitute memory is normally stored.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では、所定パスワードのデータと各フェーズ(デ
ータの区切り)に対応するアドレスデータと該アドレス
データに該当するデータとを記憶するROMなどのデー
タ読み出し専用の第1の記憶手段と、前記所定パスワー
ドのデータと前記フエースに対応するアドレスデータと
該アドレスデータに該当し前記第1の記憶手段に記憶さ
れているデータに替るデータとを記憶するフラッシュメ
モリなどの読み書き可能な第2の記憶手段とを有し、動
作時に用いるデータが記憶されている前記記憶手段を選
択し、該選択した記憶手段からアドレスデータに該当し
た所望のデータをロードして該データに応じた動作を実
行するデータ処理装置において、前記第1の記憶手段と
第2の記憶手段のパスワードの一致を検知するパスワー
ド検知手段と、前記第2の記憶手段に記憶されているデ
ータのサムチェックを行うサムチェック手段と、前記第
2の記憶手段に記憶されているデータの記憶状態を検知
する状態検知手段と、前記検知に応じて前記第2の記憶
手段の記憶異常を判断する判断手段とからなるCPUな
どを具える。
In the present invention, a first storage means dedicated for reading data such as a ROM that stores data of a predetermined password, address data corresponding to each phase (data delimiter), and data corresponding to the address data; a readable/writable second storage means such as a flash memory, which stores the data, address data corresponding to the face, and data corresponding to the address data and replacing the data stored in the first storage means. In a data processing device that selects the storage means in which data used during operation is stored, loads desired data corresponding to address data from the selected storage means, and executes an operation according to the data. , password detection means for detecting a match between passwords in the first storage means and second storage means; sum check means for performing a sum check on the data stored in the second storage means; The second storage means includes a CPU comprising a state detection means for detecting the storage state of data stored in the second storage means, and a determination means for determining a memory abnormality of the second storage means in accordance with the detection.

〔作用〕[Effect]

書き換えられたデータからパスワードの一致、サムチェ
ック及びデータの記憶状態、例えば最終バイトがイレー
ズ状態かゼロクリア状態かを検知し、パスワードが一致
し、サムチェックの結果最終バイトが所定値(例えば°
OO”)でデータの記憶状態がゼロクリア状態の場合に
は、判断手段が正常記憶と判断する。
From the rewritten data, the password matches, the sum check is performed, and the storage state of the data is detected, for example whether the last byte is in the erased state or the zero clear state. If the passwords match, and as a result of the sum check, the last byte is set to a predetermined value (for example, °
OO'') and the data storage state is a zero clear state, the determining means determines that the data is stored normally.

従って、上記各検知結果に基づき代替えの第2の記憶手
段に書き換えたデータの異常記憶を正確に検知すること
ができ、該第2の記憶手段に記憶されたデータをロード
して該当した動作を実行しても異常プログラムによる装
置の誤動作は起こらない。
Therefore, it is possible to accurately detect abnormal storage of data rewritten in the alternative second storage means based on the above detection results, load the data stored in the second storage means, and perform the corresponding operation. Even if the program is executed, the malfunction of the device will not occur due to the abnormal program.

〔実施例〕〔Example〕

本発明の実施例を第1図乃至第3図の図面に基づき詳細
に説明する。
Embodiments of the present invention will be described in detail based on the drawings of FIGS. 1 to 3.

第1図は、本発明に係るデータ処理装置の概略構成を示
すブロック図である。図において、中央処理装置(MP
U)10は、ホストコンピュータ20の指示に応じてR
OMI 1及びFLASHメモリ12内の所定の記憶領
域に記憶されたデータ(プログラム)をロードし、上記
プログラムに応じた動作を実行させていると共に、上記
FLASHメモリ12内の所定の記憶領域に上記ホスト
コンピュータ20から人力する所望のプログラムを書き
込む書き込み制御、上記書き込まれたプログラムの記憶
異常の検知などの制御を行っている。
FIG. 1 is a block diagram showing a schematic configuration of a data processing device according to the present invention. In the figure, the central processing unit (MP
U) 10 performs R according to instructions from the host computer 20.
The data (program) stored in the OMI 1 and a predetermined storage area in the FLASH memory 12 is loaded, and the operation according to the program is executed. It performs control such as writing control for manually writing a desired program from the computer 20 and detecting a memory abnormality of the written program.

なお、MPU1Oは、ホストコンピュータ20から送ら
れてくるプログラムを上記FLASHメモリ12に書き
込む時には、上記書き込みの各処理状態、例えば上記F
LASHメモリ12のコンデイションを“ゼロクリア′
にする際には、“ゼロクリア”に対応する1″を上記R
AM14に記憶させ、上記コンデイションを“イレーズ
(FLASHメモリ12に一定時間、一定の電圧を加え
た状態)にする際には、“イレーズ°に対応する“2′
を上記RAM14に記憶させ、上記コンデイションを“
プログラム”にする際には、“プログラム”に対応する
“3”を上記RAM14に記憶させ、上記コンデイショ
ンを“レディー(データの読み出し準備ができた状態)
にする際には、“レディー に対応する“0”を上記R
AM14に順次記憶させる。そして、電源投入時にFL
ASHメモリ12の記憶異常を検知すると、RAM14
に記憶されたFLASHメモリ12のコンデイションを
調べ、上記コンデイションに対応するメツセージを表示
部15に表示させる。
Note that when writing the program sent from the host computer 20 to the FLASH memory 12, the MPU 1O is configured to check each processing state of the writing, for example, the F
“Zero clear” the condition of LASH memory 12
When setting 1" corresponding to "zero clear" to R above,
When storing the condition in the AM14 and setting the above condition to "erase" (a state in which a constant voltage is applied to the FLASH memory 12 for a fixed period of time), the "2'
is stored in the RAM 14, and the condition is set to “
To set the program to "3" corresponding to "program", store "3" in the RAM 14, and set the condition to "ready" (ready to read data).
When setting "0" corresponding to "ready" to R above,
The information is stored sequentially in AM14. Then, when the power is turned on, the FL
When a memory abnormality in the ASH memory 12 is detected, the RAM 14
The condition stored in the FLASH memory 12 is checked, and a message corresponding to the condition is displayed on the display section 15.

ROMIIは、装置が例えばシステムアップしたときの
バージョンを示すデータ(パスワードのデータ)と、各
フェーズに該当するプログラムを記憶すると共に、各フ
ェーズ(データの区切り)に対応する上記ROM】1内
の番地(アドレス)データからなるフェーズテーブルを
記憶しており、上記MPU10はアドレスデータを順次
指定することによって、該当する上記ROMII内の記
憶領域から所望のプログラムを読み出すことができる。
ROM II stores data indicating the version of the device when the system is upgraded (password data) and programs corresponding to each phase, and also stores addresses in the above ROM 1 corresponding to each phase (data delimiter). A phase table consisting of (address) data is stored, and by sequentially specifying address data, the MPU 10 can read a desired program from the corresponding storage area in the ROM II.

FLASHメモリ12は、電気的な制御によってデータ
の書き換えが可能なメモリで、上記ROM1lと同様、
パスワードのデータと、各フェーズに該当するプログラ
ムと、各フェーズに対応する上記FLASHメモリ12
内のアドレスデータからなるフェーズテーブルとを記憶
すると共に、各フェーズごとにプログラムを読み出すメ
モリ(ROMI 1又はFLASHメモリ12)を選択
する本発明に係るROM/FLASH切り分はデータ1
3を記憶している(第1図参照)。すなわち、ROM/
FLASH切り分はデータ13は、例えばプログラムを
読み出すメモリがROMIIの場合には、該当するフェ
ーズに“0”のデータを書き込み、プログラムを読み出
すメモリがFLASHメモリ12の場合には、該当する
フェーズに“1”のデータを書き込むことによって構成
される。
The FLASH memory 12 is a memory whose data can be rewritten by electrical control, and like the ROM 1l described above,
Password data, programs corresponding to each phase, and the above FLASH memory 12 corresponding to each phase
The ROM/FLASH division according to the present invention, which stores a phase table consisting of address data within and selects the memory (ROMI 1 or FLASH memory 12) from which the program is read for each phase, is data 1.
3 (see Figure 1). That is, ROM/
For example, if the memory from which the program is read is ROMII, data 13 for FLASH is written as "0" in the corresponding phase, and if the memory from which the program is read is FLASH memory 12, "0" is written in the corresponding phase. It is configured by writing data of 1”.

なお、上記FLASHメモリ12に書き込まれるプログ
ラムデータは、予めサムチェックの結果によるサム値の
最終バイトが“00”になるように構成されている。ま
た、FLASHメモリ12は、交換が可能なようにMP
Ul0と接続させることもでき、このような場合には、
例えば異常記憶などが生じた時に、新たなFLASHメ
モリと交換ができる。
Note that the program data written to the FLASH memory 12 is configured in advance so that the last byte of the sum value as a result of the sum check is "00". In addition, the FLASH memory 12 is provided with MP
It can also be connected to Ul0, in such a case,
For example, when abnormal memory occurs, the FLASH memory can be replaced with a new one.

MPUl0は、上記FLASHメモリ12に記憶されて
いるROM/FLASH切り分はデータ13によって、
ROMI l内に記憶されているプログラムの代替えと
なるプログラムをFLASHメモリ12からロードする
ことができる。
The MPU10 uses the data 13 to determine the ROM/FLASH division stored in the FLASH memory 12.
A program can be loaded from FLASH memory 12 to replace the program stored in ROMI.

次に、本発明に係るFLASHメモリ12内に所望のプ
ログラムを書き込む書き込み制御の動作を第2図のフロ
ーチャートに基づき説明する。ホストコンピュータ20
などからFLASHメモリ12内のプログラムの書き換
え指示があると、第2図(a)において、MPUl0は
、まずRAM14内に記憶されたFLASHメモリのコ
ンデイションを“ゼロクリア”、すなわち対応する“1
″のデータにしくステップ101)、プログラムの書き
換え対象となるFLASHメモリ12の全アドレスに対
応する記憶領域に“0″のデータを″書き込んでゼロク
リアにする(ステップ102)。
Next, the write control operation for writing a desired program into the FLASH memory 12 according to the present invention will be explained based on the flowchart of FIG. host computer 20
When an instruction is given to rewrite the program in the FLASH memory 12 from, for example, the MPU10 first clears the condition of the FLASH memory stored in the RAM 14 to "zero", as shown in FIG.
In step 101), data of "0" is written in storage areas corresponding to all addresses of the FLASH memory 12 to be rewritten to zero out the program (step 102).

そして、上記FLASHメモリ12の記憶領域の全てに
正常に“0°のデータが書き込めたかどうか判断する(
ステップ103)。なお、上記データの書き込みの判断
は、例えば書き込んだデータを一度読み出すことによっ
て正常に記憶されているかどうか判断する、いわゆるベ
リファイチェックを行う。また、第2図において、以後
のデータの書き込みの判断もこのベリファイチェックに
よるものとする。
Then, it is determined whether "0° data has been successfully written to all of the storage areas of the FLASH memory 12" (
Step 103). Note that the above-mentioned data write determination is performed by, for example, performing a so-called verify check in which written data is read once to determine whether it has been properly stored. Furthermore, in FIG. 2, it is assumed that subsequent data writing decisions are also based on this verify check.

ここで、記憶領域に正常に“0”のデータが書き込めな
かった場合には、記憶エラーと判断して(ステップ10
4)、書き込み制御の動作を終了する(第2図(b)参
照)。また、全ての記憶領域に正常に“0゛のデータが
書き込めた場合には、次にRAM14内に記憶されたF
LASHメモリのコンデイションを″イレーズ、すなわ
ち対応する“2”のデータにしくステップ105)、ゼ
ロクリアされた上記記憶領域に“FF”のデータを書き
込んでイレーズにする(ステップ106)。
If "0" data cannot be written to the storage area normally, it is determined that there is a storage error (step 10).
4) Finish the write control operation (see FIG. 2(b)). In addition, if data “0” is successfully written to all storage areas, the next F
The condition of the LASH memory is set to "erase", that is, the corresponding "2" data (step 105), and "FF" data is written to the zero-cleared storage area to erase it (step 106).

そして、上記記憶領域の全てに正常に“FF“のデータ
が書き込めたかどうか判断する(ステップ107)。
Then, it is determined whether the "FF" data has been successfully written into all of the above storage areas (step 107).

ここで、正常に“FF”のデータが書き込めなかった場
合には、ステップ104に進んで上記同様記憶エラーと
判断して、書き込み制御の動作を終了する。また、全て
の記憶領域に正常に“FF“のデータが書き込めた場合
には、次にRAM14内に記憶されたFLASHメモリ
のコンデイションを“プログラム”、すなわち対応する
“3”のデータにしくステップ108)、イレーズされ
た上記記憶領域に、ホストコンピュータ20から送られ
てくる1バイトごとのデータからなるプログラムを順次
書き込み(ステップ109)、上記1バイトプログラム
が正常に書き込み終了したがどうか判断する(ステップ
110)。
Here, if the "FF" data cannot be written normally, the process proceeds to step 104, where it is determined that a storage error has occurred as described above, and the write control operation is terminated. In addition, if the data of "FF" is successfully written to all storage areas, then step 108), a program consisting of 1-byte data sent from the host computer 20 is sequentially written into the erased storage area (step 109), and it is determined whether the 1-byte program has been successfully written ( Step 110).

ここで、1バイトプログラムが正常に書き込み終了しな
かった場合には、ステップ104に進んで上記同様記憶
エラーと判断して、書き込み制御の動作を終了する。ま
た、1バイトプログラムが上記記憶領域に正常に書き込
めて終了した場合には、次に全てのプログラムデータの
書き込みが終了したかどうか判断する(ステップ111
)。
Here, if the writing of the 1-byte program is not completed normally, the process proceeds to step 104, where it is determined that a storage error has occurred as described above, and the write control operation is ended. If the 1-byte program is successfully written to the storage area and terminated, it is then determined whether all program data has been written (step 111).
).

ここで、プログラムデータの書き込みが終了していない
場合には、ステップ109に戻って、次の1バイトプロ
グラムの書き込みを行って上記動作を繰り返す。また、
全てのプログラムデータの書き込みが終了した場合には
、第2図(b)において、上記プログラムが書き込まれ
た記憶領域以外の残りの記憶領域をゼロクリアする(ス
テップ112)。そして、上記残りの記憶領域の全てに
正常に“0゛のデータが書き込めたかどうか判断する(
ステップ113)。
Here, if writing of the program data is not completed, the process returns to step 109, writes the next 1-byte program, and repeats the above operation. Also,
When writing of all program data is completed, in FIG. 2(b), the remaining storage areas other than the storage area in which the above program has been written are cleared to zero (step 112). Then, determine whether data of “0” was successfully written to all of the remaining storage areas (
Step 113).

ここで、残りの記憶領域に正常に“0″のデータが書き
込めなかった場合には、ステップ104に進んで上記同
様記憶エラーと判断して、書き込み制御の動作を終了す
る。また、正常に“0”のデータが書き込めた場合には
、次にRAM14内に記憶されたFLASHメモリのコ
ンデイションを“レディー 、すなわち対応する0”の
データにして(ステップ114)、上記FLASHメモ
リ12のプログラムの書き込み制御の動作を終了する。
Here, if the data "0" cannot be written normally in the remaining storage area, the process proceeds to step 104 where it is determined that a storage error has occurred as described above, and the write control operation is terminated. In addition, if "0" data is successfully written, the condition of the FLASH memory stored in the RAM 14 is set to "ready", that is, the corresponding 0 data (step 114), and the FLASH memory is The write control operation of the program No. 12 is completed.

次に、FLASHメモリのプログラムの記憶状態を検知
する制御動作を第3図のフローチャートに基づき説明す
る。図において、MPUl0は、まず上記ROMI l
内に記憶されたパスワードと、上記FLASHメモリ1
2内に記憶されたパスワードとが一致するかどうか判断
する(ステップ201)。
Next, the control operation for detecting the storage state of the program in the FLASH memory will be explained based on the flowchart of FIG. In the figure, MPU10 first connects the ROMI
The password stored in the memory and the above FLASH memory 1
It is determined whether the password matches the password stored in 2 (step 201).

ここで、上記両パスワードが一致しない場合には、FL
ASHメモリ12内のプログラムが異常に記憶されてい
るものと判断して(ステップ202)、次にRAM14
内に記憶されたFLASHメモリのコンデイションを調
べ(ステップ203)、調べたコンデイションに該当す
るメツセージを表示部15に表示させて(ステップ20
4) 、プログラムの記憶状態検知を終了する。また、
上記両パスワードが一致した場合には、FLASHメモ
リ12内のプログラムのサムチェックを行ってその結果
であるサム値を求め(ステップ204)、上記サム値の
最終バイトが00”であるかどうか判断する(ステップ
205)。
Here, if the above passwords do not match, FL
It is determined that the program in the ASH memory 12 is stored abnormally (step 202), and then the program is stored in the RAM 14.
The condition of the FLASH memory stored in the memory is checked (step 203), and a message corresponding to the checked condition is displayed on the display section 15 (step 20).
4) End the program storage state detection. Also,
If the above passwords match, the program in the FLASH memory 12 is sum-checked to obtain the resulting sum value (step 204), and it is determined whether the last byte of the sum value is 00''. (Step 205).

ここで、サム値の最終バイトが“00”でない場合には
、ステップ202.203に進んでプロダラムの記憶異
常と判断し、FLASHメモリのコンデイションに該当
するメツセージを表示させ、また、上記サム値の最終バ
イトが“00°の場合には、次にFLASHメモリ12
の記憶領域の最終バイトが“FF“、すなわちイレーズ
状態かどうか判断する(ステップ206)。
Here, if the last byte of the sum value is not "00", the process proceeds to steps 202 and 203, where it is determined that the memory of the program module is abnormal, a message corresponding to the condition of the FLASH memory is displayed, and the above sum value is If the last byte of is “00°,” then the FLASH memory 12
It is determined whether the last byte of the storage area is "FF", that is, in an erased state (step 206).

ここで、上記記憶領域の最終バイトが“FF”の場合に
は、ステップ202.203に進んでプログラムの記憶
異常と判断し、FLASHメそりのコンデイションに該
当するメツセージを表示させ、また、上記記憶領域の最
終バイトが“FF”でない場合には、次に上記記憶領域
の最終バイトが“00”、すなわちレディー状態かどう
か判断する(ステップ207)。
Here, if the last byte of the storage area is "FF", the process proceeds to steps 202 and 203, where it is determined that there is a memory abnormality in the program, a message corresponding to the condition of the FLASH memory is displayed, and the above-mentioned If the last byte of the storage area is not "FF", then it is determined whether the last byte of the storage area is "00", that is, ready state (step 207).

ここで、上記記憶領域の最終バイトが“00゜でない場
合には、ステップ202.203に進んでプログラムの
記憶異常と判断し、FLASHメモリのコンデイション
に該当するメツセージを表示させ、また、上記記憶領域
の最終バイトが“00°の場合には、FLASI(メモ
リ12内のプロダラムが正常に記憶されているものと判
断して(ステップ208)、上記プログラムの記憶状態
検知を終了する。
Here, if the last byte of the above storage area is not "00°", the process proceeds to steps 202 and 203, where it is determined that there is an abnormality in the program memory, a message corresponding to the condition of the FLASH memory is displayed, and the above memory area is If the last byte of the area is "00°," it is determined that the program program in the memory 12 is normally stored (step 208), and the detection of the program storage state is ended.

従って、本発明では、プログラムの記憶状態検知によっ
て上記プログラムの記憶異常と判断した場合には、その
時のFLASHメモリのコンデイションに該当するメツ
セージを表示させてオペレータに知らせ、異常プログラ
ムによる装置の異常動作を防止することができ、また、
記憶正常と判断した場合には、上記FLASHメモリ1
2に記憶されているROM/FLASH切り分はデータ
13から各フェーズごとのプログラムの読み出し対象と
なるメモリを調べ、データが“0゛の時には、アドレス
データに該当するROMI l内の記憶領域から所望の
プログラムをロードし、また上記データが“1#の時に
は、アドレスデータに該当する上記FLASHメモリ1
2内の記憶領域からROMI l内のプログラムに替る
所望のプログラムをロードし、上記ロードしたプログラ
ムに該当する動作を実行できる。
Therefore, in the present invention, when it is determined that there is an abnormality in the storage of the program by detecting the storage state of the program, a message corresponding to the condition of the FLASH memory at that time is displayed to notify the operator, and the abnormal operation of the device due to the abnormal program is performed. It can also prevent
If it is determined that the memory is normal, the above FLASH memory 1
The ROM/FLASH portion stored in ROM/FLASH 2 is checked from the data 13 to determine the memory to be read from the program for each phase. When the above data is "1#", the above FLASH memory 1 corresponding to the address data is loaded.
It is possible to load a desired program to replace the program in ROMI 1 from the storage area in ROMI 2 and execute the operation corresponding to the loaded program.

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

以上説明したように、本発明では、第1の紀を手段と代
替えのメモリである第2の記憶手段の7スワードの一致
、上記第2の記憶手段に記憶さオているデータのサムチ
ェックの結果及び上記第:の記憶手段の記憶状態のうち
、いずれか1っで(異常が検知された場合には、上記第
2の記憶子pのデータが異常な状態で記憶されていると
判断することかできるので、上記第2の記憶手段装置i
−書き換えられたデータが正常に又は異常に記憶吟れて
いることを正確に検知することができ、こえによりデー
タ処理装置の異常動作を容易に防止することができ、さ
らにデータ処理装置の汎用性趨向上させることができる
As explained above, in the present invention, there is a match between the first period and the second storage means, which is an alternative memory, and a sum check of the data stored in the second storage means. If an abnormality is detected in any one of the results and the storage state of the storage means described above, it is determined that the data of the second memory p is stored in an abnormal state. Therefore, the second storage means device i
- It is possible to accurately detect whether the rewritten data is stored normally or abnormally, it is possible to easily prevent abnormal operation of the data processing device, and it is also possible to increase the versatility of the data processing device. The trend can be improved.

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

第1図は本発明に係るデータ処理装置の概略構成を示す
ブロック図、第2図は第1図に示した本発明に係るMP
UによるFLASHメモリ内のプログラム書き換え制御
の動作を説明するための)ローチャート、第3図は本発
明に係るMPUにょるFLASHメそりのプログラムの
記憶状態を検知する制御動作を説明するためのフローチ
ャートである。 10−、中央処理装置(MPU) 、11・ROM、1
2 ・= F L A S Hメ(−リ、13−=RO
M/FLASH切り分はデータ、14・・・RAM、1
5・・・表示部、20・・・ホストコンピュータ。 第 図
FIG. 1 is a block diagram showing a schematic configuration of a data processing device according to the present invention, and FIG. 2 is a block diagram showing a schematic configuration of a data processing device according to the present invention, and FIG.
FIG. 3 is a flowchart for explaining the control operation for detecting the storage state of the program in the FLASH memory by the MPU according to the present invention. It is. 10-, central processing unit (MPU), 11・ROM, 1
2 ・= F L A S H me(-ri, 13-=RO
M/FLASH division is data, 14...RAM, 1
5...Display unit, 20...Host computer. Diagram

Claims (3)

【特許請求の範囲】[Claims] (1)所定パスワードのデータと各フェーズに対応する
アドレスデータと該アドレスデータに該当するデータと
を記憶する第1の記憶手段と、前記所定パスワードのデ
ータと前記フェーズに対応するアドレスデータと該アド
レスデータに該当し前記第1の記憶手段に記憶されてい
るデータに替るデータとを記憶する第2の記憶手段とを
有し、動作時に用いるデータが記憶されている前記記憶
手段を選択し、該選択した記憶手段からアドレスデータ
に該当した所望のデータをロードして該データに応じた
動作を実行するデータ処理装置において、 前記第1の記憶手段と第2の記憶手段のパスワードの一
致を検知するパスワード検知手段と、前記第2の記憶手
段に記憶されているデータのサムチェックを行うサムチ
ェック手段と、前記第2の記憶手段に記憶されているデ
ータの記憶状態を検知する状態検知手段と、 前記各検知に応じて前記第2の記憶手段の記憶異常を判
断する判断手段と を具えたことを特徴とするデータ処理装置。
(1) A first storage means for storing data of a predetermined password, address data corresponding to each phase, and data corresponding to the address data, and data of the predetermined password, address data corresponding to the phase, and the address; a second storage means for storing data that corresponds to the data and replaces the data stored in the first storage means, and selects the storage means in which data used during operation is stored; In a data processing device that loads desired data corresponding to address data from a selected storage means and executes an operation according to the data, a match between passwords of the first storage means and the second storage means is detected. a password detection means, a sum check means for performing a sum check of the data stored in the second storage means, and a state detection means for detecting the storage state of the data stored in the second storage means; and determining means for determining whether or not there is a memory abnormality in the second storage means in accordance with each of the detections.
(2)所定パスワードのデータと各フェーズに対応する
アドレスデータと該アドレスデータに該当するデータと
を記憶する第1の記憶手段と、前記所定パスワードのデ
ータと前記フェーズに対応するアドレスデータと該アド
レスデータに該当し前記第1の記憶手段に記憶されてい
るデータに替るデータとを記憶する第2の記憶手段とを
有し、動作時に用いるデータが記憶されている前記記憶
手段を選択し、該選択した記憶手段からアドレスデータ
に該当した所望のデータをロードして該データに応じた
動作を実行するデータ処理装置において、 前記第2の記憶手段にデータを書き込む際に、該書き込
み処理の各処理状態を順次記憶する第3の記憶手段と、 前記第3の記憶手段に記憶された処理状態に応じて前記
第2の記憶手段の記憶異常を判断する判断手段と を具えたことを特徴とするデータ処理装置。
(2) a first storage means for storing data of a predetermined password, address data corresponding to each phase, and data corresponding to the address data, and data of the predetermined password, address data corresponding to the phase, and the address; a second storage means for storing data that corresponds to the data and replaces the data stored in the first storage means, and selects the storage means in which data used during operation is stored; In a data processing device that loads desired data corresponding to address data from a selected storage means and executes an operation according to the data, when writing data to the second storage means, each process of the write processing is performed. The present invention is characterized by comprising: a third storage means for sequentially storing states; and a determination means for determining a memory abnormality in the second storage means according to the processing state stored in the third storage means. Data processing equipment.
(3)所定パスワードのデータと各フェーズに対応する
アドレスデータと該アドレスデータに該当するデータと
を記憶する第1の記憶手段と、前記所定パスワードのデ
ータと前記フェーズに対応するアドレスデータと該アド
レスデータに該当し前記第1の記憶手段に記憶されてい
るデータに替るデータとを記憶する第2の記憶手段とを
有し、動作時に用いるデータが記憶されている前記記憶
手段を選択し、該選択した記憶手段からアドレスデータ
に該当した所望のデータをロードして該データに応じた
動作を実行するデータ処理装置において、 前記第2の記憶手段にデータを書き込む際に、該書き込
み処理の各処理状態を順次記憶する第3の記憶手段と、 前記第1の記憶手段と第2の記憶手段のパスワードの一
致を検知するパスワード検知手段と、前記第2の記憶手
段に記憶されているデータのサムチェックを行うチェッ
ク手段と、 前記第2の記憶手段に記憶されているデータの記憶状態
を検知する状態検知手段と、 前記各検知に応じて前記第2の記憶手段の記憶異常を判
断する判断手段と 前記第3の記憶手段に記憶された処理状態に応じて前記
第2の記憶手段の記憶異常を判断する判断手段と 前記判断手段が記憶異常を判断した際、前記第3の記憶
手段に記憶されている処理状態から当該記憶異常が生じ
た処理状態を認識する認識手段と を具えたことを特徴とするデータ処理装置。
(3) a first storage means for storing data of a predetermined password, address data corresponding to each phase, and data corresponding to the address data, and data of the predetermined password, address data corresponding to the phase, and the address; a second storage means for storing data that corresponds to the data and replaces the data stored in the first storage means, and selects the storage means in which data used during operation is stored; In a data processing device that loads desired data corresponding to address data from a selected storage means and executes an operation according to the data, when writing data to the second storage means, each process of the write processing is performed. a third storage means for sequentially storing states; a password detection means for detecting a match between passwords of the first storage means and the second storage means; and a thumbnail of the data stored in the second storage means. a checking means for performing a check; a state detecting means for detecting a storage state of data stored in the second storage means; and a determining means for determining a memory abnormality in the second storage means according to each of the detections. and determining means for determining a memory abnormality in the second storage means according to the processing state stored in the third storage means; 1. A data processing device comprising: recognition means for recognizing a processing state in which the memory abnormality has occurred from a processing state in which the memory abnormality has occurred.
JP2007959A 1990-01-17 1990-01-17 Data processing device Expired - Fee Related JP3019346B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007959A JP3019346B2 (en) 1990-01-17 1990-01-17 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007959A JP3019346B2 (en) 1990-01-17 1990-01-17 Data processing device

Publications (2)

Publication Number Publication Date
JPH03211619A true JPH03211619A (en) 1991-09-17
JP3019346B2 JP3019346B2 (en) 2000-03-13

Family

ID=11680027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007959A Expired - Fee Related JP3019346B2 (en) 1990-01-17 1990-01-17 Data processing device

Country Status (1)

Country Link
JP (1) JP3019346B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2719919A1 (en) * 1994-05-11 1995-11-17 Peugeot Computer controlling functions of motor vehicle

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6071962B2 (en) * 2014-09-01 2017-02-01 特許開発有限会社 Knee lower leg warming device for sitting workers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2719919A1 (en) * 1994-05-11 1995-11-17 Peugeot Computer controlling functions of motor vehicle

Also Published As

Publication number Publication date
JP3019346B2 (en) 2000-03-13

Similar Documents

Publication Publication Date Title
US6308265B1 (en) Protection of boot block code while allowing write accesses to the boot block
US6601132B2 (en) Nonvolatile memory and method of writing data thereto
KR100316981B1 (en) Microcomputer provided with flash memory and method of storing program into flash memory
US6546517B1 (en) Semiconductor memory
US10042712B2 (en) Numerical controller
JPH03211619A (en) Data processor
JPH03147086A (en) Ic card
JPH0784894A (en) Writing method of non-volatile memory
JP3358214B2 (en) Electronic equipment
US20050068842A1 (en) Electronic device, nonvolatile memory and method of overwriting data in nonvolatile memory
JP3314719B2 (en) Flash EEPROM and its test method
JPH0317760A (en) Data write confirming system
JPH03110650A (en) Eeprom check system
JPH0519171B2 (en)
JPH1125006A (en) Memory tester
CN110476153A (en) The method and electronic equipment of access instruction SRAM
JPH08138391A (en) Flash memory control method
JPH04276838A (en) Cpu with built-in memory
JP3060376U (en) Memory device
JP2713583B2 (en) Electronics
JP2635777B2 (en) Programmable controller
JPS59106017A (en) Testing of input/output controller
JP2000353109A (en) Emulator and emulation system
JPH03127241A (en) Memory control method for paging virtual storage system
JPS59153247A (en) Debugging device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080107

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees