Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3879243B2 - Electronic device including writable nonvolatile memory device and initial processing method of the memory device - Google Patents
[go: Go Back, main page]

JP3879243B2 - Electronic device including writable nonvolatile memory device and initial processing method of the memory device - Google Patents

Electronic device including writable nonvolatile memory device and initial processing method of the memory device Download PDF

Info

Publication number
JP3879243B2
JP3879243B2 JP09234398A JP9234398A JP3879243B2 JP 3879243 B2 JP3879243 B2 JP 3879243B2 JP 09234398 A JP09234398 A JP 09234398A JP 9234398 A JP9234398 A JP 9234398A JP 3879243 B2 JP3879243 B2 JP 3879243B2
Authority
JP
Japan
Prior art keywords
value
storage area
byte
checksum
stored
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.)
Expired - Fee Related
Application number
JP09234398A
Other languages
Japanese (ja)
Other versions
JPH10326228A (en
Inventor
淳史 畑村
篤 磯崎
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP09234398A priority Critical patent/JP3879243B2/en
Publication of JPH10326228A publication Critical patent/JPH10326228A/en
Application granted granted Critical
Publication of JP3879243B2 publication Critical patent/JP3879243B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は書込み可能な不揮発性のメモリ装置を備えた電子機器及びそのメモリ装置の初期処理方法に係り、特にROMに記憶された動作設定値を記憶した書込み可能な不揮発性のメモリ装置を備えた電子機器と、電源投入時に行う書込み可能な不揮発性のメモリ装置の初期処理方法に関するものである。
【0002】
【従来の技術】
一般に、プリンタやファクシミリ装置等の電子機器には、書込み可能な不揮発性のメモリが組み込まれているものがある。例えば、書込み可能な不揮発性のメモリであるEEPROMを用いて、そのEEPROMに動作設定値を記憶しているものでは、工場出荷時にROMに記憶されている初期値がこのEEPROMにも記憶されている。
【0003】
そして、上記電子機器のROMが、工場からの出荷後に制御プログラムのバグの修正や仕様変更等により内容が変更されたROMと交換される場合には、サービスセンターや顧客の事務所等において、サービスマンにより、ROMの交換が行われている。この場合には、交換された新しいROMの初期値は変更されているので、その初期値をEEPROMに書込む処理をサービスマンが行う必要があった。
【0004】
【発明が解決しようとする課題】
ところが、このEEPROMの書き換え処理については、サービスマンが手動操作で行なっていた。このときに、単にサービスマンのミスによって、初期値の書き換え処理が行われないと、上記電子機器の正しい動作が保証されないという不都合が生じていた。
【0005】
また、ROMの内容が設計上の都合やバグの修正のために変更されていた場合に、サービスマンに連絡がなされていないときには、サービスマンは、故障等の修理交換のため新たにはめ込んだROMが以前のROMと同じ内容だと思っている場合がある。従って、ROMに記憶されている初期値をEEPROMに記憶させる初期値の書き換え処理が行われないという問題点があった。
【0006】
本発明は、このような問題点を解決するためになされたものであり、ROMを交換した場合にも、書込み可能な不揮発性のメモリ装置に対する書き換え作業をサービスマンにより行なう必要がない書込み可能な不揮発性のメモリ装置を備えた電子機器及びそのメモリ装置の初期処理方法の提供を目的とする。
【0007】
【課題を解決するための手段】
上記目的を達成するために、請求項1に係る発明の電子機器は、2バイト分のチェックサム記憶領域を有したROMと、2バイト分のチェック用記憶領域を有した書き込み可能な不揮発性のメモリ装置とを備えた電子器において、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とを比較する第1の判断手段と、当該第1の判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第1の上下判断手段と、当該第1の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とを比較し、前記第1の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する第2の判断手段と、当該第2の判断手段により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の判断手段により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない第1の書込手段と、前記第1の判断手段により、前記チェックサム記憶領域の上位1バイトの記 憶値と前記チェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第2の上下判断手段と、当該第2の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値とを、前記メモリ装置のチェック用記憶領域に書込む第2の書込手段とを備えたことを特徴とする。
【0008】
この構成により、請求項1に係る発明の電子機器では、電源投入時に第1の判断手段が前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とを比較し、当該第1の判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、第1の上下判断手段がチェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。当該第1の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、第2の判断手段がチェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とを比較し、第1の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、第2の判断手段が前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する。当該第2の判断手段により、チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合に、第1の書込手段は、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の判断手段により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない。
【0009】
第2の上下判断手段は、第1の判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。
【0010】
第2の書込手段は、当該第2の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが同じと判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、メモリ装置のチェック用記憶領域に書込み、第2の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが異なると判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値とを、メモリ装置のチェック用記憶領域に書込む。
【0011】
【0012】
【0013】
【0014】
【0015】
【0016】
【0017】
【0018】
この構成により、ROMのチェックサムの上位1バイトと下位1バイトが偶然同じ値になっている場合(たとえば「00」や「FF」等になっている場合)に、前記メモリ装置の2バイトの記憶領域に記憶された値も、偶然不定値の「00」や「FF」等になっている場合にも、ROMの交換を正しく判断することができる。
【0019】
【0020】
この構成により、ROMのチェックサムの上位1バイトと下位1バイトが偶然同じ値になっている場合(たとえば「00」や「FF」等になっている場合)に、前記メモリ装置の2バイトの記憶領域に記憶された値も、偶然不定値の「00」や「FF」等になっている場合にも、ROMの交換を正しく判断することができるチェックサムの値を前記メモリ装置に書き込むことができる。
【0021】
請求項2に係る発明の電子機器の電源投入時に行う書込み可能な不揮発性のメモリ装置の初期処理方法は、ROMに2バイト分のチェックサム記憶領域を確保し、前記メモリ装置の所定領域に2バイト分のチェック用記憶領域を確保し、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とを比較する第1の比較処理工程と、当該第1の比較処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第1の上下判断処理工程と、当該第1の上下判断処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とを比較し、前記第1の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する第2の比較処理工程と、当該第2の比較処理工程により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の比較処理工程により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない第1の書込処理工程と、前記第1の比較処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第2の上下判断処理工程と、当該第2の上下判断処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前 記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値とを、前記メモリ装置のチェック用記憶領域に書込む第2の書込処理工程とを備えている。
【0022】
この構成により、請求項2に係る発明の電子機器の電源投入時に行う書込み可能な不揮発性のメモリ装置の初期処理方法は、第1の比較処理工程で、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とを比較し、当該第1の比較処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、第1の上下判断処理工程で、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。当該第1の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、第2の比較処理工程で、チェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とを比較し、第1の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、第2の判断手段が前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する。当該第2の比較処理工程により、チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合に、第1の書込処理工程では、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の比較処理工程により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない。
【0023】
第2の上下判断処理工程では、第1の比較処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。第2の書込処理工程では、当該第2の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが同じと判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、メモリ装置のチェック用記憶領域に書込み、第2の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが異なると判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値とを、メモリ装置のチェック用記憶領域に書込む。
【0024】
以上説明したように、本発明では、ROMのチェックサムの最初のデータと、書込み可能な不揮発性のメモリ装置の最初のチェック用データが異なれば、直ちに書込み可能な不揮発性のメモリ装置の初期化を行い、書込み可能な不揮発性のメモリ装置のチェック用の所定領域の2バイトのデータを書き込む。これにより常に新しいチェックデータが保持される。
【0025】
また、チェックサムの記憶値が偶然にも同じ値である場合や、初期基板(装置に組み込んだ直後の基板)の書込み可能な不揮発性のメモリ装置が、所定値に全領域初期化されている場合であっても、ROMのチェックサムと前記メモリ装置のチャックサムの照合が可能になる。
【0026】
【発明の実施の形態】
以下、本発明の一実施の形態について図面を参照して説明する。図1は本発明の一実施の形態である多機能ファクシミリ装置Sのブロック図であり、図2は多機能ファクシミリ装置Sの電源投入時の動作を示すフローチャートであり、図3は、多機能ファクシミリ装置SのROM11に記憶された初期値の例を示す図である。
【0027】
本実施の形態では、図1で示すように、動作設定値を記憶した書込み可能な不揮発性のメモリ装置としてのEEPROM10を備えた装置、つまりデータ処理装置として、多機能ファクシミリ装置Sを例にして説明する。
【0028】
本実施の形態の多機能ファクシミリ装置Sは、パネル2を介して入力される操作者からの各種司令に応じて、動作モードの設定、スキャナ4による原稿画像の読み取り、送信データの符号化、ファクシミリデータの送受信、受信データの復号化、復号化したファクシミリデータのプリンタ3での記録用紙への記録を行うものである。そして、CPU1,交換可能なROM11、動作設定値を記憶したEEPROM10、一部が受信バッファメモリとして用いられているRAM12、他の電話装置やファクシミリ装置との間での会話やファクシミリデータの送受信を可能にするネットワークコントロールユニット(NCU)13、モデム(図示せず)、およびこれらを接続するバスラインを備えている。尚、RAM12は、一般的なDRAMから構成され、ROM11は、図示外のソケットに載置され、着脱可能である。
【0029】
そして、修理や部品交換によりROM11が変更された場合に、装置の電源を投入したときに、上記EEPROM10にROM11の初期値を書込むように構成している。この書込み動作は、図示外の制御フローチャートに従ってCPU1が行う。
【0030】
つまり、本実施の形態の多機能ファクシミリ装置Sは、装置内に配設されたROM11と、このROM11に対応した動作設定値を記憶したEEPROM10とを備えており、電源投入時に、ROM11に記憶されたROM11の全領域の記憶値の合計であるチェックサムの値とEEPROM10の所定領域に記憶されている値とを比較し、チェックサムの値と前記EEPROM10の所定領域に記憶されている値とが異なっているときには、前記ROM11に記憶されている初期値をEEPROM10の所定の領域に書き込むものである。
【0031】
その初期値の一例について図3を参照して説明する。初期値としては、例えば多機能ファクシミリ装置Sの場合には、図3で示すように、スキャナ部での読み取りのコントラスト係数(パラメータ)等各種のものがある。
【0032】
本実施の形態の多機能ファクシミリ装置Sでは、まず、ROM11にチェックサムの記憶領域として2バイト分の記憶領域が確保されている。また、EEPROM10の所定領域にも2バイト分の記憶領域が確保されている。そして、EEPROM10の所定領域の2バイト分の記憶領域の上位1バイトの記憶領域のアドレスを「ANGOH」とし、下位1バイトの記憶領域のアドレスを「ANGOH+1」とする。
【0033】
次に、図2に示すフローチャートに従って、本実施の形態の多機能ファクシミリ装置Sの動作について説明する。まず、電源を投入すると、第1の比較処理工程であるステップS1で、ROM11に記憶されたチェックサムの上位1バイトの値とEEPROM10の所定領域の1バイトの記憶領域(アドレス「ANGOH」)に記憶された値とを比較して、同じかどうか判断する。
【0034】
このステップS1の第1の比較処理工程によって、ROM11に記憶されたチェックサムの上位1バイトの値とEEPROM10のアドレス「ANGOH」に記憶された値とが異なる場合には(S1:NO)、ROM11が交換されてROM11の記憶内容の変更があったものであるので、後述するS4,S5,S6と同様のS8,S9,S10の処理を経て、交換された新たなROM11に記憶されている初期設定値を書き込む初期化工程(ステップS2)で直ちにEEPROM10を初期化する。即ち、ステップS2の初期化工程で、ROM11に記憶された初期設定値をEEPROM10に書込んで更新するのである。そして、ステップS2の初期化工程の後に、ステップS3の書込処理工程でROM11のチェックサムの上位1バイトと下位1バイトの値をEEPROM10に書込む。
【0035】
本実施の形態の場合では、ROM11のチェックサム上位1バイトの値をEEPROM10のアドレス「ANGOH」に書込み、次述するS4,S5,S6と同様のS8,S9,S10の処理で決定されるRAM12の記憶エリアのアドレス「AAA」の値をEEPROM10のアドレス「ANGOH」に続くアドレス「ANGOH+1」の記憶領域に書込むのである。
【0036】
前記ステップS1の比較処理工程で、ROM11のチェックサムの上位1バイトの記憶値がEEPROM10アドレス「ANGOH」の記憶値と同じ場合には(S1:YES)、基本的には、ROM11が交換されておらず変更がないものと判断できる。しかし、ROM11のチェックサムの上位1バイトの記憶値とEEPROM10のアドレス「ANGOH」の記憶値とが偶然に同じ値である場合も考えられる。
【0037】
例えば、本実施の形態の多機能ファクシミリ装置の製造工程で、EEPROM10を図示外の基盤に実装した段階では、EEPROM10の記憶エリアの値は、不定になっている。その一例としては、「00」や「FF」となっていることが多い。その場合に、ROM11に記憶された2バイト分のチェックサムの値が「00」や「FF」に偶然になっていた場合には、EEPROM10は、ROM11に記憶されている正しい初期設定値を記憶しているのではないにも関わらず、EEPROM10への初期設定値の書き直しがなされないことになってしまう。このようなことを防止するするために、本実施の形態では、図2に示すフローチャートのS4以下のステップの処理を行う。
【0038】
まず、ステップS4の上下判断処理工程でROM11に記憶されているチェックサムの上位1バイトと下位1バイトの値が同じかどうかを判断する。例えば、当該チェックサムの値が「00」となっている場合には、上位1バイトの値が「0」で下位1バイトの値も「0」なので、ステップS4でYESと判断される。
【0039】
ステップS4の上下判断処理工程により、ROM11のチェックサムの上位1バイトと下位1バイトの記憶値が同じ場合には(S4:YES)、ステップS5における処理によりROM11のチェックサム下位1バイトの記憶値に1を加えたものをRAM12の記憶領域のアドレス「AAA」に記憶する。この場合には、アドレス「AAA」の記憶値は「0」に「1」が加えられた「1」となる。従って、RAM12の記憶領域のアドレス「AAA」には、ROM11のチェックサムの下位1バイトの値である「0」に「+1」された値である「1」が記憶され、その値とEEPROM10のアドレス「ANGOH+1」の値(本例では「0」)とが比較され(S7)、「1」と「0」とで一致しないので(S7:NO)、EEPROM10の初期化が行われる(S2)。即ち、EEPROM10のアドレス「ANGOH」と「ANGOH+1」との2バイトの記憶領域に記憶された値が、不定値の「00」や「FF」等になっている場合に、ROM11のチェックサムの上位1バイトと下位1バイトが偶然同じ値になっている場合(「00」や「FF」だった場合)でも、ステップS7において「NO」と判断されて、正しい初期化処理(ステップS2の工程)がEEPROM11に対して行われることになる。
【0040】
また、ステップS4の上下判断処理工程によりROM11のチェックサムの上位1バイトの記憶値と下位1バイトとの記憶値とが異なる場合には(S4:NO)、ステップS6での処理によりROM11のチェックサム下位1バイトの記憶値をそのままRAM12の記憶エリアのアドレス「AAA」に記憶する。
【0041】
次に、ステップS7の判断処理工程で、上記各ステップで決定されRAM12の記憶エリアのアドレス「AAA」に記憶された値が、EEPROM10の所定領域(アドレス「ANGOH+1」)に記憶された値と同じかどうかが判される。そして、この判断処理工程で、RAM12の記憶エリアのアドレス「AAA」に記憶された値が、EEPROM10の所定領域(アドレス「ANGOH+1」)に記憶された値と異なると判断された場合には(S7:NO)、ステップS2で、EEPROM10を初期化しROM11に記憶された初期設定値をEEPROM10に書込んでEEPROM10の記憶値を更新する。
【0042】
さらに、ステップS2での初期化後に、ステップS3でROM11のチェックサムの上位1バイトの記憶値をEEPROM10のアドレス「ANGOH」に記憶し、次にRAM12のアドレス「AAA」に記憶した値をEEPROM10のアドレス「ANGOH+1」に記憶する。
【0043】
上記ステップS7の判断処理工程で、RAM12の記憶エリアのアドレス「AAA」に記憶された値が、EEPROM10の所定領域(アドレス「ANGOH+1」)に記憶された値と同じであると判断された場合には(S7:YES)、EEPROM10には何らの書込みを行わない。これは、EEPROM10の所定領域アドレス「ANGOH」及び「ANGOH+1」(2バイト分)の記憶値とROM11のチェックサムを記憶した2バイト分の記憶エリアの記憶値が等しく、ROMが交換されていないと判断できるからである。
【0044】
以上のように、ROM11のチェックサムをEEPROM10に記憶し、電源立ち上げ時に、ROM11に記憶されているチェックサムの値とEEPROM10の所定領域に記載されている値とを比較することにより、ROM11が変更されたと判断したら、新しいROM11の初期値をEEPROM10に書込むことにより、正しい動作が保証される。
【0045】
なお、上記実施の形態では、ROM11のチェックサムを2バイト確保しており、ROM11のチェックサム下位1バイトから決定される値をRAMのアドレス「AAA」に記憶して利用している。また、EEPROM10の所定領域の値も2バイト確保している。
【0046】
図2に示すように、この2バイトのうち上位1バイトをのアドレスを「ANGOH」とし、下位バイトのアドレスを「ANGOH+1」としているが、これらのアドレスは、任意のものをその値とすることができる。
【0047】
なお、書込み可能な不揮発性のメモリ装置としてEEPROMを使用したが、フラッシュメモリや電池等でメモリバックアップされたDRAMや通常のRAMであっても良い。
【0048】
また、上記の実施の形態では、ステップS5でROM11のチェックサムの下位1バイトの記憶値に「1」を加えているが、この値は、「1」以外の他の任意の値でもよい。例えば、「2」「3」「5」等でもよい。
【0049】
【発明の効果】
以上説明したように請求項1に係る発明の書込み可能な不揮発性のメモリ装置を備えた電子機器では、電源投入時に第1の判断手段がチェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とを比較し、当該第1の判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、第1の上下判断手段が前記チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。当該第1の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、第2の判断手段がチェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とを比較し、第1の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、第2の判断手段が前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する。当該第2の判断手段により、チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合に、第1の書込手段は、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の判断手段により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない。
【0050】
第2の上下判断手段は、第1の判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。
【0051】
第2の書込手段は、当該第2の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが同じと判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、メモリ装置のチェック用記憶領域に書込み、第2の上下判断手段により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが異なると判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値とを、メモリ装置のチェック用記憶領域に書込むことができる。
【0052】
【0053】
従って、メモリ装置の初期化を行った後に、書込手段がメモリ装置にROMの記憶内容の変更を判断するために使用される値の書込み動作を行うので、ROMの記憶内容の変更を判断するために使用される新しい値を確実に書き込んでおくことができる。
【0054】
【0055】
また、ROMのチェックサムの上位1バイトと下位1バイトが偶然同じ値になっている場合(たとえば「00」や「FF」等になっている場合)に、前記メモリ装置の2バイトの記憶領域に記憶された値も、偶然不定値の「00」や「FF」等になっている場合にも、ROMの交換を正しく判断することができるチェックサムの値を前記メモリ装置に書き込むことができる。
【0056】
さらに、請求項2に係る発明の書込み可能な不揮発性のメモリ装置の初期処理方法では、電源投入時に第1の比較処理工程で、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とを比較し、当該第1の比較処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、第1の上下判断処理工程で、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。当該第1の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、第2の比較処理工程で、チェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とを比較し、第1の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、第2の判断手段が前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する。当該第2の比較処理工程により、チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合に、第1の書込処理工程では、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の比較処理工程により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない。
第2の上下判断処理工程では、第1の比較処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とを比較する。第2の書込処理工程では、当該第2の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが同じと判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、メモリ装置のチェック用記憶領域に書込み、第2の上下判断処理工程により、チェックサム記憶領域の上位1バイトの記憶値とチェックサム記憶領域の下位1バイトの記憶値とが異なると判断された場合には、ROMに記憶された初期設定値をメモリ装置に書き込んだ後、チェックサム記憶領域の上位1バイトの記憶値と、チェックサム記憶領域の下位1バイトの記憶値とを、メモリ装置のチェック用記憶領域に書込む。
従って、ROMの内容が変更された場合(即ち、ROMが新たな内容を記憶したROMに交換された場合)には、自動的に書込み可能な不揮発性のメモリ装置の値をROMに記憶された初期値に書き換えるので、ROMの変更により、その都度書込み可能な不揮発性のメモリ装置の内容をROMに合わせるためのサービスマン等による書換作業が不要となる。また、前記メモリ装置にROMの記憶内容の変更を判断するために使用される値の書込み動作を行うので、ROMの記憶内容の変更を判断するために使用される新しい値を確実に書き込んでおくことができる。
【0057】
【0058】
さらに、ROMのチェックサムの上位1バイトと下位1バイトが偶然同じ値になっている場合(たとえば「00」や「FF」等になっている場合)に、前記メモリ装置の2バイトの記憶領域に記憶された値も、偶然不定値の「00」や「FF」等になっている場合や、組立直後の初期状態の基板で書込み可能な不揮発性のメモリ装置が所定値に全領域初期化されている場合であっても、ROMの交換を正しく判断することができ、かつ、当該場合にもROMの交換を正しく判断することができるチェックサムの値を前記メモリ装置に書き込むことができる。
【0059】
以上のように、本発明によれば、電源投入時に、必ずROMに記憶されたチェックサムの値と書込み可能な不揮発性のメモリ装置に記憶されたチェック用の記憶領域の値とを比較し、ROMの内容が変更された場合には書込み可能な不揮発性のメモリ装置の値をROMの初期値に書き換えるので、ROMの変更により、その都度書込み可能な不揮発性のメモリ装置の内容を新たなROMの記憶内容に合わせるサービスマン等による作業が不要となる。従って、ROMを交換した場合にも、書込み可能な不揮発性のメモリ装置に対する書き換え作業を行なう必要がない書込み可能な不揮発性のメモリ装置を備えた電子機器を提供できる。
【図面の簡単な説明】
【図1】 本発明の一実施の形態である多機能ファクシミリ装置のブロック図である。
【図2】 本発明の一実施の形態である多機能ファクシミリ装置の電源投入時の動作を示すフローチャートである。
【図3】 本発明の一実施の形態である多機能ファクシミリ装置のROMが記憶している初期値の例を示す図である。
【符号の説明】
1 CPU
2 パネル
3 プリンタ
4 スキャナ
10 書込み可能な不揮発性のメモリ装置(EEPROM)
11 ROM
12 RAM
13 ネットワークコントロールユニット(NCU)
S 多機能ファクシミリ装置
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to an electronic device having a writable nonvolatile memory device and an initial processing method of the memory device, and more particularly to a writable nonvolatile memory device storing operation setting values stored in a ROM. The present invention relates to an electronic device and an initial processing method of a writable nonvolatile memory device performed at power-on.
[0002]
[Prior art]
  In general, some electronic devices such as printers and facsimile machines incorporate a writable nonvolatile memory. For example, in the case of using an EEPROM which is a writable nonvolatile memory and storing operation setting values in the EEPROM, the initial values stored in the ROM at the time of factory shipment are also stored in the EEPROM. .
[0003]
  If the ROM of the electronic device is replaced with a ROM whose contents have been changed due to a bug correction or specification change of the control program after shipment from the factory, the service center or customer's office etc. The ROM is replaced by a man. In this case, since the initial value of the replaced new ROM has been changed, it is necessary for the service person to perform a process of writing the initial value to the EEPROM.
[0004]
[Problems to be solved by the invention]
  However, this EEPROM rewriting process is manually performed by a serviceman. At this time, if the initial value rewriting process is not performed simply due to a serviceman's mistake, there is a disadvantage that correct operation of the electronic device cannot be guaranteed.
[0005]
  Also, if the contents of the ROM have been changed due to design reasons or bug corrections and the service person has not been contacted, the service person must newly install the ROM for repair or replacement of a malfunction or the like. May have the same content as the previous ROM. Accordingly, there is a problem that the initial value stored in the ROM is not rewritten to the initial value stored in the EEPROM.
[0006]
  The present invention has been made to solve such a problem. Even when the ROM is replaced, the writable nonvolatile memory device need not be rewritten by a serviceman and can be written. An object is to provide an electronic device including a nonvolatile memory device and an initial processing method of the memory device.
[0007]
[Means for Solving the Problems]
  In order to achieve the above object, an electronic device according to a first aspect of the present invention is a ROM having a checksum storage area for 2 bytes and a writable nonvolatile memory having a check storage area for 2 bytes. Electronic device with memory deviceMachineA first determination means for comparing the storage value of the upper 1 byte of the checksum storage area with the storage value of the upper 1 byte of the check storage area, and the checksum by the first determination means. When it is determined that the upper 1 byte storage value of the storage area and the upper 1 byte storage value of the check storage area are the same, the upper 1 byte storage value of the checksum storage area and the checksum storage area Compare the stored value of the lower 1 byte ofFirstUp and down judging means, andFirstWhen the upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, the lower 1 byte of the checksum storage area Compare the stored value of with a specified value and the stored value of the lower 1 byte of the check storage areaWhen the first upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the checksum Compare the stored value of the lower 1 byte of the storage area with the stored value of the lower 1 byte of the check storage areaThe second determination means and the stored value of the lower 1 byte of the checksum storage area by the second determination meansOr its stored valueIs determined to be different from the stored value of the lower 1 byte of the check storage area.After writing the initial setting value stored in the ROM to the memory device,The upper 1 byte storage value of the checksum storage area and the lower 1 byte storage value of the checksum storage areaOr its stored valueWrite a value obtained by adding a predetermined value to the check storage area of the memory device.Thus, the second determination means uses the same value stored in the lower 1 byte of the checksum storage area or a value added to the stored value as the lower 1 byte stored in the check storage area. If it is determined that the first storage is not written to the check storage area of the memory deviceWriting means;The first determination means records the upper 1 byte of the checksum storage area. When it is determined that the stored value is different from the stored value of the upper 1 byte of the check storage area, the stored value of the upper 1 byte of the checksum storage area and the stored value of the lower 1 byte of the checksum storage area And the second up / down determination means and the second up / down determination means, the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area. If it is determined, after the initial setting value stored in the ROM is written to the memory device, the upper 1 byte storage value of the checksum storage area and the lower 1 byte of the checksum storage area A value obtained by adding a predetermined value to the stored value is written to the check storage area of the memory device, and the second upper / lower determination means stores the upper 1 byte of the checksum storage area. If it is determined that the stored value of the lower 1 byte of the checksum storage area is different from the initial value stored in the ROM, the initial value stored in the ROM is written to the memory device. A second writing means for writing the storage value of the upper 1 byte and the storage value of the lower 1 byte of the checksum storage area into the check storage area of the memory device;It is provided with.
[0008]
  With this configuration, in the electronic device according to the first aspect of the present invention, when the power is turned on, the first determination means stores the upper 1 byte storage value of the checksum storage area and the upper 1 byte storage value of the check storage area. And when the first determining means determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the upper 1 byte of the check storage area,FirstThe up / down judging means compares the stored value of the upper 1 byte of the checksum storage area with the stored value of the lower 1 byte of the checksum storage area. ConcernedFirstWhen the upper / lower determination means determines that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the lower 1 byte of the checksum storage area, the second determination means Compare the stored value of the lower 1 byte with the specified value and the stored value of the lower 1 byte of the check storage areaWhen the first up / down determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the second determination means Compares the stored value of the lower 1 byte of the checksum storage area with the stored value of the lower 1 byte of the check storage areaTo do. The value stored in the lower 1 byte of the checksum storage area by the second determination meansOr its stored valueIs determined to be different from the storage value of the lower 1 byte of the check storage area.The first writing means writes the initial setting value stored in the ROM into the memory device, and then stores the upper 1 byte storage value of the checksum storage area and the lower 1 byte of the checksum storage area. A stored value or a value obtained by adding a predetermined value to the stored value is written into the check storage area of the memory device, and the second 1 judging means stores the stored value of the lower 1 byte of the checksum storage area or the storage thereof. When it is determined that the value obtained by adding a predetermined value to the value and the stored value of the lower 1 byte of the check storage area are the same, writing is not performed in the check storage area of the memory device.
[0009]
  The second up / down determining means determines that the check sum is determined when the first determining means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the upper 1 byte of the check storage area. The storage value of the upper 1 byte of the storage area is compared with the storage value of the lower 1 byte of the checksum storage area.
[0010]
  When the second writing means determines that the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area are the same by the second upper / lower determination means After writing the initial setting value stored in the ROM to the memory device, the storage value of the upper 1 byte of the checksum storage area and the value obtained by adding a predetermined value to the storage value of the lower 1 byte of the checksum storage area When writing to the check storage area of the memory device and the second upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area After writing the initial setting value stored in the ROM to the memory device, the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area, You write the check for the storage area of the memory device.
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
  With this configuration, when the upper 1 byte and the lower 1 byte of the ROM checksum accidentally have the same value (for example, “00”, “FF”, etc.), the 2 bytes of the memory device Even when the value stored in the storage area accidentally becomes an indefinite value such as “00” or “FF”, the replacement of the ROM can be correctly determined.
[0019]
[0020]
  With this configuration, when the upper 1 byte and the lower 1 byte of the ROM checksum accidentally have the same value (for example, “00”, “FF”, etc.), the 2 bytes of the memory device The value stored in the storage area is also written in the memory device with a checksum value that can correctly determine the replacement of the ROM even when the value is accidentally indefinite, such as “00” or “FF”. Can do.
[0021]
  According to a second aspect of the present invention, there is provided an initial processing method for a writable non-volatile memory device performed when the electronic apparatus is powered on. A first comparison processing step that secures a check storage area for bytes and compares the storage value of the upper 1 byte of the checksum storage area with the storage value of the upper 1 byte of the check storage area; 1, when it is determined that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the upper 1 byte of the check storage area, the upper 1 of the checksum storage area Compare the stored value of the byte with the stored value of the lower 1 byte of the checksum storage areaFirstUp / down judgment process step, andFirstWhen the upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, the lower 1 of the checksum storage area Compare the stored value of the byte with a predetermined value and the stored value of the lower 1 byte of the check storage areaWhen the first upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the checksum Compare the stored value of the lower 1 byte of the storage area with the stored value of the lower 1 byte of the check storage areaThe second comparison processing step and the second comparison processing step, the lower 1 byte stored value of the checksum storage areaOr its stored valueIs determined to be different from the stored value of the lower 1 byte of the check storage area.After writing the initial setting value stored in the ROM to the memory device,The upper 1 byte storage value of the checksum storage area and the lower 1 byte storage value of the checksum storage areaOr its stored valueWrite a value obtained by adding a predetermined value to the check storage area of the memory device.In the second comparison processing step, the lower 1 byte storage value of the checksum storage area or a value added to the storage value and the lower 1 byte storage value of the check storage area are If it is determined that they are the same, the first data is not written to the check storage area of the memory device.Writing process,When it is determined by the first comparison processing step that the storage value of the upper 1 byte of the checksum storage area is different from the storage value of the upper 1 byte of the check storage area, the checksum storage area A second upper / lower determination processing step for comparing the storage value of the upper 1 byte with the storage value of the lower 1 byte of the checksum storage region, and the upper 1 of the checksum storage region by the second upper / lower determination processing step If it is determined that the stored value of the byte and the stored value of the lower 1 byte of the checksum storage area are the same, the initial setting value stored in the ROM is written to the memory device, A value stored in the upper 1 byte of the checksum storage area and a value obtained by adding a predetermined value to the storage value of the lower 1 byte in the checksum storage area are written to the check storage area of the memory device; When the upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the initial value stored in the ROM After writing the set value to the memory device, the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area are written to the check storage area of the memory device. A second writing process stepIt has.
[0022]
  With this configuration, the initial processing method for the writable nonvolatile memory device performed when the electronic device according to the second aspect of the present invention is turned on stores the upper 1 byte of the checksum storage area in the first comparison processing step. The value is compared with the stored value of the upper 1 byte of the check storage area, and the stored value of the upper 1 byte of the checksum storage area and the stored value of the upper 1 byte of the check storage area are compared by the first comparison processing step. Are determined to be the same,FirstIn the up / down determination processing step, the stored value of the upper 1 byte of the checksum storage area is compared with the stored value of the lower 1 byte of the checksum storage area. ConcernedFirstWhen the upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, the second comparison processing step Compare the stored value of the lower 1 byte of the storage area with the specified value and the stored value of the lower 1 byte of the check storage areaWhen the first upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the second determination Means compares the stored value of the lower 1 byte of the checksum storage area with the stored value of the lower 1 byte of the check storage areaTo do. The value stored in the lower 1 byte of the checksum storage area by the second comparison processing stepOr its stored valueIs determined to be different from the storage value of the lower 1 byte of the check storage area.In the first write processing step, after the initial setting value stored in the ROM is written to the memory device, the storage value of the upper 1 byte of the checksum storage area and the lower 1 byte of the checksum storage area Or a value obtained by adding a predetermined value to the stored value is written to the check storage area of the memory device, and the second comparison process step stores the lower 1 byte stored value of the checksum storage area or When it is determined that the stored value plus a predetermined value is the same as the stored value of the lower 1 byte of the check storage area, writing is not performed in the check storage area of the memory device.
[0023]
  In the second up / down determination processing step, when it is determined by the first comparison processing step that the storage value of the upper 1 byte of the checksum storage area is different from the storage value of the upper 1 byte of the check storage area, The stored value of the upper 1 byte of the checksum storage area is compared with the stored value of the lower 1 byte of the checksum storage area. In the second write processing step, when the second upper / lower determination processing step determines that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the lower 1 byte of the checksum storage area Is a value obtained by adding a predetermined value to the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area after writing the initial setting value stored in the ROM to the memory device. Are stored in the check storage area of the memory device, and the second upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area. In this case, after the initial setting value stored in the ROM is written to the memory device, the upper 1 byte storage value of the checksum storage area and the lower 1 byte of the checksum storage area A stored value is written to the check storage area of the memory device.
[0024]
  As described above, according to the present invention, when the first data of the ROM checksum is different from the first check data of the writable nonvolatile memory device, the initialization of the writable nonvolatile memory device is immediately performed. To write 2 bytes of data in a predetermined area for checking the writable nonvolatile memory device. As a result, new check data is always held.
[0025]
  In addition, when the stored value of the checksum is accidentally the same value, the writable nonvolatile memory device of the initial substrate (the substrate immediately after being incorporated into the device) is initialized to the predetermined value over the entire area. Even in this case, the checksum of the ROM and the chuck sum of the memory device can be collated.
[0026]
DETAILED DESCRIPTION OF THE INVENTION
  Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a multi-function facsimile apparatus S according to an embodiment of the present invention. FIG. 2 is a flowchart showing an operation when the multi-function facsimile apparatus S is turned on. FIG. 7 is a diagram illustrating an example of initial values stored in a ROM 11 of the device S. FIG.
[0027]
  In the present embodiment, as shown in FIG. 1, a multifunctional facsimile apparatus S is taken as an example of a device including an EEPROM 10 as a writable nonvolatile memory device storing operation setting values, that is, a data processing device. explain.
[0028]
  The multi-function facsimile apparatus S according to the present embodiment sets an operation mode, reads a document image by the scanner 4, encodes transmission data, a facsimile in accordance with various commands from an operator input via the panel 2. Data transmission / reception, decryption of received data, and recording of decrypted facsimile data on a recording sheet by the printer 3 are performed. CPU 1, exchangeable ROM 11, EEPROM 10 storing operation setting values, RAM 12 partially used as a reception buffer memory, conversation and facsimile data transmission / reception with other telephone devices and facsimile devices are possible. A network control unit (NCU) 13, a modem (not shown), and a bus line for connecting them. The RAM 12 is composed of a general DRAM, and the ROM 11 is placed in a socket (not shown) and is detachable.
[0029]
  When the ROM 11 is changed due to repair or part replacement, the initial value of the ROM 11 is written into the EEPROM 10 when the apparatus is turned on. This writing operation is performed by the CPU 1 according to a control flowchart (not shown).
[0030]
  That is, the multi-function facsimile apparatus S of the present embodiment includes a ROM 11 disposed in the apparatus and an EEPROM 10 that stores operation setting values corresponding to the ROM 11, and is stored in the ROM 11 when the power is turned on. The checksum value, which is the sum of the values stored in the entire area of the ROM 11, is compared with the value stored in the predetermined area of the EEPROM 10, and the checksum value and the value stored in the predetermined area of the EEPROM 10 are found. When they are different, the initial value stored in the ROM 11 is written in a predetermined area of the EEPROM 10.
[0031]
  An example of the initial value will be described with reference to FIG. As the initial value, for example, in the case of the multi-function facsimile apparatus S, there are various types such as a contrast coefficient (parameter) for reading in the scanner unit as shown in FIG.
[0032]
  In the multi-function facsimile apparatus S of the present embodiment, a storage area for 2 bytes is reserved in the ROM 11 as a checksum storage area. A storage area for 2 bytes is also secured in a predetermined area of the EEPROM 10. Then, the address of the upper 1-byte storage area of the 2-byte storage area of the EEPROM 10 is set to “ANGOH”, and the address of the lower 1-byte storage area is set to “ANGOH + 1”.
[0033]
  Next, the operation of the multi-function facsimile apparatus S of this embodiment will be described with reference to the flowchart shown in FIG. First, when the power is turned on, the value of the upper 1 byte of the checksum stored in the ROM 11 and the 1 byte storage area (address “ANGOH”) of the EEPROM 10 are stored in step S1 which is the first comparison processing step. Compare with the stored value to determine if they are the same.
[0034]
  If the value of the upper 1 byte of the checksum stored in the ROM 11 is different from the value stored in the address “ANGOH” of the EEPROM 10 (S1: NO), the ROM 11 Has been changed and the contents stored in the ROM 11 have changed.Through the processing of S8, S9, and S10 similar to S4, S5, and S6 described later,The EEPROM 10 is immediately initialized in the initialization process (step S2) in which the initial setting values stored in the new ROM 11 that has been replaced are written. That is, in the initialization process of step S2, the initial setting value stored in the ROM 11 is written in the EEPROM 10 and updated. Then, after the initialization process of step S2, the values of the upper 1 byte and the lower 1 byte of the checksum of the ROM 11 are written into the EEPROM 10 in the writing process of step S3.
[0035]
  In the case of this embodiment, the value of the upper byte of the checksum of the ROM 11 is written to the address “ANGOH” of the EEPROM 10, and S4, S5, S6 described belowS8, S9, S10 processing similar toThe value of the address “AAA” in the storage area of the RAM 12 determined in the above is written in the storage area of the address “ANGOH + 1” following the address “ANGOH” of the EEPROM 10.
[0036]
  If the stored value of the upper 1 byte of the checksum of the ROM 11 is the same as the stored value of the EEPROM 10 address “ANGOH” (S1: YES), basically, the ROM 11 is replaced. It can be judged that there is no change. However, there may be a case where the stored value of the upper 1 byte of the checksum of the ROM 11 and the stored value of the address “ANGOH” of the EEPROM 10 are accidentally the same value.
[0037]
  For example, in the manufacturing process of the multi-function facsimile apparatus according to the present embodiment, the value of the storage area of the EEPROM 10 is indefinite at the stage where the EEPROM 10 is mounted on a base not shown. As an example, it is often “00” or “FF”. In this case, if the checksum value for 2 bytes stored in the ROM 11 is accidentally set to “00” or “FF”, the EEPROM 10 stores the correct initial setting value stored in the ROM 11. Although it is not done, the initial setting value in the EEPROM 10 is not rewritten. In order to prevent such a situation, in the present embodiment, processing in steps after S4 in the flowchart shown in FIG. 2 is performed.
[0038]
  First, it is determined whether the upper 1 byte and the lower 1 byte of the checksum stored in the ROM 11 are the same in the up / down determination processing step of step S4. For example, when the value of the checksum is “00”, the value of the upper 1 byte is “0” and the value of the lower 1 byte is also “0”, so that “YES” is determined in the step S4.
[0039]
  When the upper 1 byte and the lower 1 byte of the checksum of the ROM 11 are the same in the upper / lower determination processing step of step S4 (S4: YES), the stored value of the lower 1 byte of the checksum of the ROM 11 is obtained by the process in step S5. 1 is added to the address “AAA” of the storage area of the RAM 12. In this case, the stored value of the address “AAA” is “1” obtained by adding “1” to “0”. Accordingly, the address “AAA” in the storage area of the RAM 12 stores “1” which is a value obtained by adding “+1” to “0” which is the value of the lower 1 byte of the checksum of the ROM 11. The value of the address “ANGOH + 1” (“0” in this example) is compared (S7). Since “1” and “0” do not match (S7: NO), the EEPROM 10 is initialized (S2). . That is, when the value stored in the 2-byte storage area of the addresses “ANGOH” and “ANGOH + 1” of the EEPROM 10 is an indefinite value “00”, “FF” or the like, the upper rank of the checksum of the ROM 11 Even when 1 byte and the lower 1 byte accidentally have the same value (when it is “00” or “FF”), “NO” is determined in step S7, and correct initialization processing (step S2). Is performed on the EEPROM 11.
[0040]
  If the stored value of the upper 1 byte and the stored value of the lower 1 byte of the checksum of the ROM 11 are different from each other in the up / down determination processing step in step S4 (S4: NO), the ROM 11 is checked by the process in step S6. The stored value of the lower 1 byte of the thumb is stored as it is at the address “AAA” of the storage area of the RAM 12.
[0041]
  Next, in the determination processing step in step S7, the value determined in each of the above steps and stored in the address “AAA” of the storage area of the RAM 12 is the same as the value stored in the predetermined area (address “ANGOH + 1”) of the EEPROM 10. Whether it is judged. When it is determined in this determination processing step that the value stored in the address “AAA” of the storage area of the RAM 12 is different from the value stored in the predetermined area (address “ANGOH + 1”) of the EEPROM 10 (S7). : NO), in step S2, the EEPROM 10 is initialized, the initial setting value stored in the ROM 11 is written in the EEPROM 10, and the stored value in the EEPROM 10 is updated.
[0042]
  Further, after initialization in step S2, the stored value of the upper byte of the checksum of the ROM 11 is stored in the address “ANGOH” of the EEPROM 10 in step S3, and then the value stored in the address “AAA” of the RAM 12 is stored in the EEPROM 10 Store in address “ANGOH + 1”.
[0043]
  When it is determined that the value stored in the address “AAA” of the storage area of the RAM 12 is the same as the value stored in the predetermined area (address “ANGOH + 1”) of the EEPROM 10 in the determination processing step of step S7. (S7: YES), no writing is performed in the EEPROM 10. This is because the storage values of the predetermined area addresses “ANGOH” and “ANGOH + 1” (2 bytes) of the EEPROM 10 are equal to the storage value of the storage area of 2 bytes storing the checksum of the ROM 11, and the ROM is not exchanged. This is because it can be judged.
[0044]
  As described above, the checksum of the ROM 11 is stored in the EEPROM 10, and when the power is turned on, the ROM 11 compares the checksum value stored in the ROM 11 with the value written in a predetermined area of the EEPROM 10. If it is determined that the value has been changed, the initial value of the new ROM 11 is written into the EEPROM 10 to ensure correct operation.
[0045]
  In the above embodiment, 2 bytes of the checksum of the ROM 11 are secured, and a value determined from the lower 1 byte of the checksum of the ROM 11 is stored and used in the RAM address “AAA”. Also, 2 bytes are secured for the value of the predetermined area of the EEPROM 10.
[0046]
  As shown in FIG. 2, the address of the upper 1 byte of these 2 bytes is “ANGOH”, and the address of the lower byte is “ANGOH + 1”, but these addresses have any value as their value. Can do.
[0047]
  Although the EEPROM is used as a writable nonvolatile memory device, it may be a DRAM backed up by a flash memory or a battery or a normal RAM.
[0048]
  In the above embodiment, “1” is added to the stored value of the lower 1 byte of the checksum of the ROM 11 in step S5, but this value may be any other value than “1”. For example, “2”, “3”, “5”, and the like may be used.
[0049]
【The invention's effect】
  As described above, in the electronic apparatus provided with the writable nonvolatile memory device according to the first aspect of the present invention, the first determining means at the time of turning on the power stores the value stored in the upper 1 byte of the checksum storage area and the check value. The storage value of the upper 1 byte of the storage area is compared, and the first determination means determines that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the upper 1 byte of the check storage area IfFirstThe up / down determination means compares the stored value of the upper 1 byte of the checksum storage area with the stored value of the lower 1 byte of the checksum storage area. ConcernedFirstWhen the upper / lower determination means determines that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the lower 1 byte of the checksum storage area, the second determination means Compare the stored value of the lower 1 byte with the specified value and the stored value of the lower 1 byte of the check storage areaWhen the first up / down determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the second determination means Compares the stored value of the lower 1 byte of the checksum storage area with the stored value of the lower 1 byte of the check storage areaTo do. The value stored in the lower 1 byte of the checksum storage area by the second determination meansOr its stored valueIs determined to be different from the storage value of the lower 1 byte of the check storage area.The first writing means writes the initial setting value stored in the ROM into the memory device, and then stores the upper 1 byte storage value of the checksum storage area and the lower 1 byte of the checksum storage area. A stored value or a value obtained by adding a predetermined value to the stored value is written into the check storage area of the memory device, and the second 1 judging means stores the stored value of the lower 1 byte of the checksum storage area or the storage thereof. When it is determined that the value obtained by adding a predetermined value to the value and the stored value of the lower 1 byte of the check storage area are the same, writing is not performed in the check storage area of the memory device.
[0050]
  The second up / down determining means determines that the check sum is determined when the first determining means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the upper 1 byte of the check storage area. The storage value of the upper 1 byte of the storage area is compared with the storage value of the lower 1 byte of the checksum storage area.
[0051]
  When the second writing means determines that the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area are the same by the second upper / lower determination means After writing the initial setting value stored in the ROM to the memory device, the storage value of the upper 1 byte of the checksum storage area and the value obtained by adding a predetermined value to the storage value of the lower 1 byte of the checksum storage area When writing to the check storage area of the memory device and the second upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area After writing the initial setting value stored in the ROM to the memory device, the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area, It can be written in the check memory area memory device.
[0052]
[0053]
  Therefore,After the initialization of the memory device, the writing means performs a write operation of a value used to determine the change in the stored content of the ROM in the memory device, so that the change in the stored content of the ROM is determined. You can be sure that the new value used will be written.
[0054]
[0055]
  Further, when the upper 1 byte and the lower 1 byte of the ROM checksum accidentally have the same value (for example, “00”, “FF”, etc.), the 2-byte storage area of the memory device Even if the value stored in the memory is accidentally an undefined value such as “00” or “FF”, a checksum value that can correctly determine the replacement of the ROM can be written to the memory device. .
[0056]
  Furthermore, in the initial processing method of the writable nonvolatile memory device according to the second aspect of the present invention, in the first comparison processing step when the power is turned on, the upper 1 byte storage value and the check storage area of the checksum storage area And the first comparison processing step determines that the upper 1 byte storage value of the checksum storage area is the same as the upper 1 byte storage value of the check storage area. IfFirstIn the up / down determination processing step, the stored value of the upper 1 byte of the checksum storage area is compared with the stored value of the lower 1 byte of the checksum storage area. ConcernedFirstWhen the upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, the second comparison processing step Compare the stored value of the lower 1 byte of the storage area with a predetermined value and the stored value of the lower 1 byte of the check storage area,When the first upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area, the second determining means The stored value of the lower 1 byte of the checksum storage area is compared with the stored value of the lower 1 byte of the check storage area.The value stored in the lower 1 byte of the checksum storage area by the second comparison processing stepOr its stored valueIs determined to be different from the storage value of the lower 1 byte of the check storage area.In the first write processing step, after the initial setting value stored in the ROM is written to the memory device, the storage value of the upper 1 byte of the checksum storage area and the lower 1 byte of the checksum storage area Or a value obtained by adding a predetermined value to the stored value is written to the check storage area of the memory device, and the second comparison process step stores the lower 1 byte stored value of the checksum storage area or When it is determined that the stored value plus a predetermined value is the same as the stored value of the lower 1 byte of the check storage area, writing is not performed in the check storage area of the memory device.
  In the second up / down determination processing step, when it is determined by the first comparison processing step that the storage value of the upper 1 byte of the checksum storage area is different from the storage value of the upper 1 byte of the check storage area, The stored value of the upper 1 byte of the checksum storage area is compared with the stored value of the lower 1 byte of the checksum storage area. In the second write processing step, when the second upper / lower determination processing step determines that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the lower 1 byte of the checksum storage area Is a value obtained by adding a predetermined value to the storage value of the upper 1 byte of the checksum storage area and the storage value of the lower 1 byte of the checksum storage area after writing the initial setting value stored in the ROM to the memory device. Are stored in the check storage area of the memory device, and the second upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is different from the stored value of the lower 1 byte of the checksum storage area. In this case, after the initial setting value stored in the ROM is written to the memory device, the upper 1 byte storage value of the checksum storage area and the lower 1 byte of the checksum storage area A stored value is written to the check storage area of the memory device.
  Therefore, when the contents of the ROM are changed (that is, when the ROM is replaced with a ROM storing new contents), the values of the nonvolatile memory device which can be automatically written are stored in the ROM. Since the values are rewritten to the initial values, rewriting work by a service person or the like for matching the contents of the writable non-volatile memory device with the ROM becomes unnecessary by changing the ROM. In addition, since a write operation of a value used for determining a change in the storage content of the ROM is performed in the memory device, a new value used for determining a change in the storage content of the ROM is surely written. be able to.
[0057]
[0058]
  Furthermore, when the upper 1 byte and the lower 1 byte of the ROM checksum accidentally have the same value (for example, “00”, “FF”, etc.), the 2-byte storage area of the memory device If the value stored in the memory is accidentally indefinite, such as “00” or “FF”, or the entire area is initialized to a predetermined value by a non-volatile memory device that can be written on the substrate immediately after assembly. Even in such a case, it is possible to correctly determine whether or not to replace the ROM, and to write a checksum value that can correctly determine whether or not to replace the ROM to the memory device.
[0059]
  As described above, according to the present invention, when the power is turned on, the checksum value always stored in the ROM is compared with the check storage value stored in the writable nonvolatile memory device. When the content of the ROM is changed, the value of the writable non-volatile memory device is rewritten to the initial value of the ROM. Therefore, the content of the writable non-volatile memory device is changed to a new ROM each time the ROM is changed. The work by a service person or the like to match the stored contents becomes unnecessary. Accordingly, it is possible to provide an electronic apparatus including a writable nonvolatile memory device that does not require rewriting work to the writable nonvolatile memory device even when the ROM is replaced.
[Brief description of the drawings]
FIG. 1 is a block diagram of a multi-function facsimile apparatus according to an embodiment of the present invention.
FIG. 2 is a flowchart showing an operation at power-on of the multi-function facsimile apparatus according to the embodiment of the present invention.
FIG. 3 is a diagram illustrating an example of initial values stored in a ROM of a multi-function facsimile apparatus according to an embodiment of the present invention.
[Explanation of symbols]
  1 CPU
  2 panels
  3 Printer
  4 Scanner
  10 Writable nonvolatile memory device (EEPROM)
  11 ROM
  12 RAM
  13 Network Control Unit (NCU)
    S Multifunctional facsimile machine

Claims (2)

2バイト分のチェックサム記憶領域を有したROMと、
2バイト分のチェック用記憶領域を有した書き込み可能な不揮発性のメモリ装置とを備えた電子器において、
前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とを比較する第1の判断手段と、
当該第1の判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第1の上下判断手段と、
当該第1の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とを比較し、前記第1の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する第2の判断手段と、
当該第2の判断手段により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の判断手段により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない第1の書込手段と、
前記第1の判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第2の上下判断手段と、
当該第2の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値とを、前記メモリ装置のチェック用記憶領域に書込む第2の書込手段と
を備えたことを特徴とする電子機器。
A ROM having a checksum storage area for 2 bytes;
The electronic equipment that includes a writable nonvolatile memory device having a check storage area of 2 bytes,
First determination means for comparing the upper 1 byte storage value of the checksum storage area with the upper 1 byte storage value of the check storage area;
When the first determination means determines that the upper 1 byte storage value of the checksum storage area is the same as the upper 1 byte storage value of the check storage area, the upper rank of the checksum storage area a first vertical determination means for comparing a byte of stored value and the lower byte of the stored value of the checksum storage area,
When the first upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area and the stored value of the lower 1 byte of the checksum storage area are the same, the checksum storage area A value obtained by adding a predetermined value to the storage value of the lower 1 byte and the storage value of the lower 1 byte of the check storage area are compared , and the first upper / lower determination means determines the upper 1 of the checksum storage area. When it is determined that the stored value of the byte and the stored value of the lower 1 byte of the checksum storage area are different, the stored value of the lower 1 byte of the checksum storage area and the lower 1 of the check storage area A second determination means for comparing the stored value of the byte ;
The second determination means determines that the stored value of the lower 1 byte of the checksum storage area or a value added to the stored value is different from the stored value of the lower 1 byte of the check storage area If the initial set value stored in the ROM is written to the memory device, the upper 1 byte storage value of the checksum storage area and the lower 1 byte storage value of the checksum storage area or a value obtained by adding a predetermined value to the stored value, the observed writing in the check storage area of the memory device, by said second determination means, the checksum lower 1 byte of the stored value or its storage in the storage area If it is determined that the value obtained by adding a predetermined value to the value stored in the lower 1 byte of the check storage area is the same, the write is not performed in the check storage area of the memory device. And a writing means,
When the first determination means determines that the upper 1 byte storage value of the checksum storage area is different from the upper 1 byte storage value of the check storage area, the upper rank of the checksum storage area A second up / down judging means for comparing the stored value of 1 byte with the stored value of the lower 1 byte of the checksum storage area;
When the second upper / lower determination means determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, the stored value is stored in the ROM. After the written initial setting value is written to the memory device, a storage value of the upper 1 byte of the checksum storage area and a value obtained by adding a predetermined value to the storage value of the lower 1 byte of the checksum storage area, When writing to the check storage area of the memory device and the second upper / lower determination means causes the stored value of the upper 1 byte of the checksum storage area to be different from the stored value of the lower 1 byte of the checksum storage area If it is determined, after the initial setting value stored in the ROM is written to the memory device, the stored value of the upper 1 byte of the checksum storage area and the A lower 1 byte of the stored value of the Kkusamu storage area, an electronic device characterized by comprising a <br/> and second writing means for writing the check storage area of the memory device.
電子機器の電源投入時に行う書込み可能な不揮発性のメモリ装置の初期処理方法であって、
ROMに2バイト分のチェックサム記憶領域を確保し、
前記メモリ装置の所定領域に2バイト分のチェック用記憶領域を確保し、
前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とを比較する第1の比較処理工程と、
当該第1の比較処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第1の上下判断処理工程と、
当該第1の上下判断処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とを比較し、前記第1の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の下位1バイトの記憶値と、前記チェック用記憶領域の下位1バイトの記憶値とを比較する第2の比較処理工程と、
当該第2の比較処理工程により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の比較処理工程により、前記チェックサム記憶領域の下位1バイトの記憶値又はその記憶値に所定値を加えたものと、前記チェック用記憶領域の下位1バイトの記憶値とが同じと判断された場合には、前記メモリ装置のチェック用記憶領域に書込みを行わない第1の書込処理工程と
前記第1の比較処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェック用記憶領域の上位1バイトの記憶値とが異なると判断された場合に、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の下位1バイトの記憶値とを比較する第2の上下判断処理工程と、
当該第2の上下判断処理工程により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが同じと判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値に所定値を加えた値とを、前記メモリ装置のチェック用記憶領域に書込み、前記第2の上下判断手段により、前記チェックサム記憶領域の上位1バイトの記憶値と前記チェックサム記憶領域の前記下位1バイトの記憶値とが異なると判断された場合には、前記ROMに記憶された初期設定値を前記メモリ装置に書き込んだ後、前記チェックサム記憶領域の上位1バイトの記憶値と、前記チェックサム記憶領域の下位1バイトの記憶値とを、前記メモリ装置のチェック用記憶領域に書込む第2の書込処理工程と
を備えたことを特徴とする書込み可能な不揮発性のメモリ装置の初期処理方法。
An initial processing method of a writable non-volatile memory device performed when powering on an electronic device,
Secure a checksum storage area for 2 bytes in ROM,
2 bytes of check storage area is secured in a predetermined area of the memory device,
A first comparison processing step of comparing the upper 1 byte storage value of the checksum storage area with the upper 1 byte storage value of the check storage area;
When it is determined by the first comparison processing step that the storage value of the upper 1 byte of the checksum storage area is the same as the storage value of the upper 1 byte of the check storage area, the checksum storage area A first up / down determination processing step of comparing the stored value of the upper 1 byte with the stored value of the lower 1 byte of the checksum storage area;
When the first upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, the checksum storage A value obtained by adding a predetermined value to the storage value of the lower 1 byte of the area is compared with the storage value of the lower 1 byte of the check storage area. When it is determined that the stored value of 1 byte and the stored value of the lower 1 byte of the checksum storage area are different, the stored value of the lower 1 byte of the checksum storage area and the lower order of the check storage area A second comparison process for comparing the stored value of 1 byte ;
When the second comparison processing step causes the stored value of the lower 1 byte of the checksum storage area or a value added to the stored value to be different from the stored value of the lower 1 byte of the check storage area If it is determined, after the initial setting value stored in the ROM is written to the memory device, the storage value of the upper 1 byte of the checksum storage area and the storage of the lower 1 byte of the checksum storage area the value or values obtained by adding a predetermined value to the stored value, the observed writing in the check storage area of the memory device, by said second comparison step, the lower 1 byte of the stored value of the checksum storage area or When it is determined that the stored value plus a predetermined value is the same as the stored value of the lower 1 byte of the check storage area, writing to the check storage area of the memory device is performed. First write process without the
When it is determined by the first comparison processing step that the storage value of the upper 1 byte of the checksum storage area is different from the storage value of the upper 1 byte of the check storage area, the checksum storage area A second up / down determination processing step of comparing the stored value of the upper 1 byte with the stored value of the lower 1 byte of the checksum storage area;
If the second upper / lower determination processing step determines that the stored value of the upper 1 byte of the checksum storage area is the same as the stored value of the lower 1 byte of the checksum storage area, After the stored initial setting value is written to the memory device, the storage value of the upper 1 byte of the checksum storage area and the value obtained by adding a predetermined value to the storage value of the lower 1 byte of the checksum storage area The memory value of the upper 1 byte of the checksum storage area is different from the memory value of the lower 1 byte of the checksum storage area by writing to the check storage area of the memory device. If it is determined, after the initial setting value stored in the ROM is written to the memory device, the stored value of the upper 1 byte of the checksum storage area and the previous value And a storage value of the lower byte of checksum storage area, writable non-volatile, characterized in that it comprises a <br/> a second writing step for writing the check storage area of the memory device Memory device initial processing method.
JP09234398A 1997-03-21 1998-03-21 Electronic device including writable nonvolatile memory device and initial processing method of the memory device Expired - Fee Related JP3879243B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09234398A JP3879243B2 (en) 1997-03-21 1998-03-21 Electronic device including writable nonvolatile memory device and initial processing method of the memory device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8559897 1997-03-21
JP9-85598 1997-03-21
JP09234398A JP3879243B2 (en) 1997-03-21 1998-03-21 Electronic device including writable nonvolatile memory device and initial processing method of the memory device

Publications (2)

Publication Number Publication Date
JPH10326228A JPH10326228A (en) 1998-12-08
JP3879243B2 true JP3879243B2 (en) 2007-02-07

Family

ID=26426610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09234398A Expired - Fee Related JP3879243B2 (en) 1997-03-21 1998-03-21 Electronic device including writable nonvolatile memory device and initial processing method of the memory device

Country Status (1)

Country Link
JP (1) JP3879243B2 (en)

Families Citing this family (1)

* 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

Also Published As

Publication number Publication date
JPH10326228A (en) 1998-12-08

Similar Documents

Publication Publication Date Title
US8060662B2 (en) Recording control apparatus, recording control method, and computer program product
US7624298B2 (en) Memory card, data processor, memory card control method and memory card setting
WO2018054261A1 (en) Storage medium, data processing method and cartridge chip using this method
US20080235501A1 (en) Method For Detecting and Correcting Firmware Corruption
US6883060B1 (en) Microcomputer provided with flash memory and method of storing program into flash memory
US5933595A (en) Computer apparatus having electrically rewritable nonvolatile memory, and nonvolatile semiconductor memory
US5757639A (en) Electronic apparatus
JP4158526B2 (en) Memory card and data writing method to memory
CN111459726A (en) A kind of chip and chip self-repair method
JP3879243B2 (en) Electronic device including writable nonvolatile memory device and initial processing method of the memory device
US7299315B2 (en) Control device including connecting device for rewriting memory region
JP3376331B2 (en) Storage method using flash memory and storage medium storing storage control program
US6173412B1 (en) Apparatus and method for initializing a writeable/nonvolatile memory device
JP3651886B2 (en) Electronic system
JP3069877B2 (en) Information transceiver
JP2812285B2 (en) Network interface card for printer
JP2008200934A (en) Image forming apparatus
JP2002007152A (en) Download method and device
JP2765486B2 (en) Communication device
JP2001047694A (en) Printer and image processing apparatus provided with the printer
US20040061893A1 (en) Image forming apparatus
JP2005128613A (en) Image forming device
JP2008134558A (en) Image forming apparatus and adjustment value setting method thereof
JP2005006222A (en) Controller board, image processor, and system and method for exchanging controller board
JP3334343B2 (en) Communication device with program check function

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060425

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060725

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060925

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061017

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061030

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091117

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101117

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101117

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111117

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111117

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131117

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees