JP2000132464A - Data writing method and device and image forming device - Google Patents

Data writing method and device and image forming device

Info

Publication number
JP2000132464A
JP2000132464A JP10306062A JP30606298A JP2000132464A JP 2000132464 A JP2000132464 A JP 2000132464A JP 10306062 A JP10306062 A JP 10306062A JP 30606298 A JP30606298 A JP 30606298A JP 2000132464 A JP2000132464 A JP 2000132464A
Authority
JP
Japan
Prior art keywords
data
writing
unit
data writing
predetermined
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.)
Withdrawn
Application number
JP10306062A
Other languages
Japanese (ja)
Inventor
Keidaku Oshima
慶諾 大嶋
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10306062A priority Critical patent/JP2000132464A/en
Publication of JP2000132464A publication Critical patent/JP2000132464A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To easily discriminate the degree of reliability of the data even when a data writing process is interrupted by preparing a step where a cause is detected for the interruption of the data writing process and a step where the data are additionally written according to the detection result of the said detecting step. SOLUTION: When a writing process is started, the value of a variable M having the value of a marker bit that is added in a word writing mode is set at 0 (100). Then it is checked whether or not a factor such as the cut-off of a power supply is caused to interrupt the writing process before every word is written into an EEPROM (105). If no factor of the said interruption is detected, the writing process is started in a step 106. Then the occurrence or non-occurrence of an interruption factor is confirmed in the step 105 (107) for deciding the value of the marker bit before every word is written. If the cause of an interruption occurrence is detected, the marker bit is set at 1 (108) and the words are written (109).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はEEPROM等の不
揮発性記憶装置へのデータ書き込み方法及び装置、なら
びに機器内部の部品管理に不揮発性記憶装置を用いた画
像形成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for writing data to a nonvolatile storage device such as an EEPROM, and an image forming apparatus using the nonvolatile storage device for managing parts inside the device.

【0002】[0002]

【従来の技術】画像形成装置、特にカラーコピー機やフ
ルカラープリンタ等においては、本体および交換部品の
経時変化によらずに高画質の出力を得るため、または重
大な故障を招く事態を避けるために不揮発性の記憶装置
を搭載し、電源切断後も画像形成装置または交換部品の
生産出荷時からの状態変化を監視する機構を持つものが
ある。
2. Description of the Related Art In an image forming apparatus, in particular, in a color copying machine or a full-color printer, in order to obtain high-quality output without being affected by aging of a main body and a replacement part, or to avoid a situation that causes a serious failure. Some have a nonvolatile storage device and a mechanism for monitoring a state change of the image forming apparatus or the replacement part from the time of production / shipment even after the power is turned off.

【0003】これらは、例えば、本体寿命を正確に把握
するために累積使用時間を記憶したり、電源切断前の故
障情報などを記憶する。
[0003] These stores, for example, the accumulated use time in order to accurately grasp the life of the main body, and the failure information before the power is turned off.

【0004】ところで、これらの情報を記憶するための
手段としては、低コストで容易に接続できるEEPRO
Mなどのメモリデバイスが使用されることが多い。この
メモリデバイスの特徴としては低コストで簡単な構成で
実装できる反面、書き込みに時間がかかるという欠点が
ある。したがって、電源断などの障害が発生したときに
書き込み動作中であると、正確な記憶内容を保証できな
い可能性が大きい。
By the way, as means for storing such information, EEPRO which can be easily connected at low cost is used.
Memory devices such as M are often used. The feature of this memory device is that it can be mounted with a simple configuration at low cost, but has the disadvantage that it takes time to write. Therefore, if a write operation is being performed when a failure such as a power failure occurs, it is highly likely that accurate storage contents cannot be guaranteed.

【0005】通常の動作中、特にスタンバイ状態などで
はこれらの問題が起こることはないが、緊急時にはメモ
リへの書き込みが不安定となりやすい。そして緊急時こ
そ必要な情報を記憶しなければならない。
[0005] These problems do not occur during a normal operation, especially in a standby state or the like, but writing to a memory tends to be unstable in an emergency. And you have to remember the information you need in an emergency.

【0006】従来、この場合の記憶内容の精度を保証す
るため、データ全体に対してチェックサムなどのエラー
チェック用のデータを付加し、データの読み込み時にチ
ェックサムの不一致があった場合はメモリの異常か、書
き込時に正常に書き込めなかったと判断し、そのメモリ
を搭載する交換部品または本体を故障と判断するように
している。
Conventionally, in order to guarantee the accuracy of the stored contents in this case, data for error checking such as a checksum is added to the entire data. It is determined that there is an error or that writing could not be performed normally at the time of writing, and that the replacement part or main body mounting the memory is determined to be faulty.

【0007】[0007]

【発明が解決しようとする課題】しかし、データ全体を
エラーチェック用データによるチェックで故障と診断す
る方法では、それほど重要でない一部分のデータに異常
があってもメモリの異常と判断され使用不可能になって
しまう。そしてこの判断は全く新品の交換部品でも古い
交換部品でも関係なくなされるため、特に新品の交換部
品でこのようなエラーが検出された場合には本体および
交換部品の便利を著しく下げることになる。
However, in the method of diagnosing a failure by checking the entire data with the data for error check, even if there is an abnormality in a part of data which is not so important, it is determined that the memory is abnormal and cannot be used. turn into. Since this determination is made regardless of whether the replacement part is a completely new part or an old part, particularly when such an error is detected in a new part, the convenience of the main body and the replacement part is significantly reduced.

【0008】また、書き込みを安定に終了させるため
に、例えば、書き込み中の電源切断時には補助電源等に
よって書き込み期間中の電源を維持する等の手段もある
が、これらは、コストが上がり装置も大型化するため、
特にパーソナルユースの画像形成装置には適さない。
In order to stably complete the writing, there is a method of maintaining the power during the writing period by, for example, an auxiliary power supply when the power is turned off during the writing. However, these methods increase the cost and increase the size of the device. To make
In particular, it is not suitable for an image forming apparatus for personal use.

【0009】[0009]

【課題を解決するための手段】本発明の目的は、不揮発
性記憶装置にデータを記録する際、データの書き込み処
理が中断された場合であっても、どこまでが信用できる
データなのかを容易に判別できるデータ書き込み方法及
び装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to easily determine how much data can be trusted when recording data in a nonvolatile storage device, even if the data writing process is interrupted. An object of the present invention is to provide a method and an apparatus for writing data which can be determined.

【0010】また本発明の別の目的は、部品の管理など
の目的で不揮発性記憶装置に情報を記憶する画像形成装
置において、不揮発性記憶装置のデータにエラーが検出
されてもできるだけ動作可能な状態を維持することので
きる画像形成装置を提供することにある。
Another object of the present invention is to provide an image forming apparatus which stores information in a non-volatile storage device for the purpose of component management or the like, and which can operate as much as possible even if an error is detected in data in the non-volatile storage device. An object of the present invention is to provide an image forming apparatus capable of maintaining a state.

【0011】すなわち、本発明の要旨は、不揮発性記憶
手段へのデータ書き込み方法であって、データの書き込
み開始前及び書き込み処理中に、データ書き込みが中断
される要因の発生を検出するステップと、記憶手段へ書
き込むデータの所定単位毎に、検出ステップの結果に応
じたデータを付加して書き込むステップとを有すること
を特徴とするデータ書き込み方法に存する。
That is, the gist of the present invention is a method of writing data to nonvolatile storage means, wherein a step of detecting the occurrence of a factor that interrupts data writing before the start of data writing and during the writing process, A step of adding data corresponding to the result of the detection step and writing the data for each predetermined unit of data to be written to the storage means.

【0012】また本発明の別の要旨は、不揮発性記憶手
段を有し、該不揮発性記憶手段に所定単位でデータを書
き込むデータ書き込み装置であって、データの書き込み
開始前及び書き込み処理中に、データ書き込みが中断さ
れる要因の発生を検出する検出手段と、記憶手段へ書き
込むデータの所定単位毎に、検出手段の結果に応じたデ
ータを付加して書き込むデータ書き込み手段とを有する
ことを特徴とするデータ書き込み装置に存する。
Another aspect of the present invention is a data writing device having nonvolatile storage means for writing data in a predetermined unit to the nonvolatile storage means, wherein data writing is started before data writing and during writing processing. Detecting means for detecting the occurrence of a factor that interrupts data writing, and data writing means for adding and writing data according to the result of the detecting means for each predetermined unit of data to be written to the storage means. Data writing device.

【0013】さらに本発明に別の要旨は、不揮発性メモ
リと、この不揮発性メモリに記憶されたデータを元に構
成部品を管理する管理手段を有する画像形成装置であっ
て、不揮発性記憶手段へのデータの書き込み開始前及び
書き込み処理中に、データ書き込みが中断される要因の
発生を検出する検出手段と、不揮発性記憶手段へ書き込
むデータの所定単位毎に、検出手段の結果に応じたデー
タを付加して書き込むデータ書き込み手段とを有するこ
とを特徴とする画像形成装置に存する。
Still another aspect of the present invention is an image forming apparatus having a nonvolatile memory and a management unit for managing components based on data stored in the nonvolatile memory. Detecting means for detecting the occurrence of a factor that interrupts data writing before the start of data writing and during the writing process; and for each predetermined unit of data to be written to the non-volatile storage means, data corresponding to the result of the detecting means is written. An image forming apparatus having data writing means for additionally writing.

【0014】[0014]

【発明の実施の形態】本発明においては、記憶装置への
データ書き込みが中断された場合、次に読み出したとき
に前回の書き込みの際、中断されたか、そして、その中
断された場所はどこかを検出可能としたことに特徴を有
する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In the present invention, when data writing to a storage device is interrupted, when the next reading is performed, the last writing was interrupted, and where was the interrupted location? Is characterized in that it can be detected.

【0015】具体的には、データの書き込み単位、記憶
装置がメモリデバイスであればワード毎に、マーカーの
役割をするビットを設ける。さらに、書き込み中断を検
知する手段を設け、中断検知から書き込み不可能または
メモリ内データの破壊が起こるまでの時間が最低でも2
ワード分は保証されるように構成する。マーカービット
は例えば正常な書き込みにおいては0、書き込み中断が
検知されると1で書き込まれる。
Specifically, a bit serving as a marker is provided for each unit of data writing or for each word if the storage device is a memory device. Further, a means for detecting the interruption of writing is provided, and the time from the detection of interruption to the point where writing is disabled or data in the memory occurs is at least two times.
Words are configured to be guaranteed. The marker bit is written, for example, as 0 in normal writing and as 1 when interruption of writing is detected.

【0016】これにより、次回メモリから読み込まれた
ときにはマーカービットが0から1、1から0に変化し
ている部分を検出することによって書き込み中断があっ
たことと、書き込みが中断されたことにより信頼できな
いデータの開始点を特定することが出来る。
By this means, the next time the data is read from the memory, the portion where the marker bit changes from 0 to 1 and from 1 to 0 is detected, and the writing is interrupted. The starting point of the data that cannot be specified can be specified.

【0017】これに加え、データの重要度に応じてデー
タをブロックに分けブロック毎に書き込むことによっ
て、信頼できないデータのブロックを特定し、他のブロ
ックのデータを正常に使用することが出来る。
In addition, by dividing the data into blocks according to the importance of the data and writing each block, an unreliable data block can be specified, and the data of other blocks can be used normally.

【0018】これにより、小型化、低コスト化を妨げる
ことなく緊急のデータ書き込時の中断によるメモリエラ
ーを減らし、また最悪メモリエラーが発生した場合でも
データの重要度によりできる限り画像形成装置の動作を
中断しない。
As a result, a memory error due to an emergency interruption in writing data can be reduced without hindering downsizing and cost reduction, and even if a worst-case memory error occurs, the image forming apparatus can be as small as possible depending on the importance of data. Do not interrupt operation.

【0019】[第1の実施形態]以下、本発明を図面を
参照して詳細に説明する。図1は本発明の画像形成装置
のデータ書き込み装置部分の概略構成を示す図である。
本実施形態おいては画像形成装置の部品に不揮発性記憶
装置を設けた場合を示す。図1において1は交換部品2
を含む画像形成装置である。画像形成装置1はCPU3
によって制御される。5はCPUおよびEEPROM4
への電源ラインを示す。
[First Embodiment] The present invention will be described below in detail with reference to the drawings. FIG. 1 is a diagram showing a schematic configuration of a data writing device portion of the image forming apparatus of the present invention.
In the present embodiment, a case is shown in which a nonvolatile storage device is provided as a component of the image forming apparatus. In FIG. 1, 1 is a replacement part 2
Is an image forming apparatus. The image forming apparatus 1 has a CPU 3
Is controlled by 5 is CPU and EEPROM4
Shows the power line to the.

【0020】交換部品2は本実施形態においては廃トナ
ーボックスを兼用する感光ドラムユニットである。感光
ドラムユニット2は画像形成のための感光ドラムと画像
形成後の廃トナーを格納する廃トナーボックスから構成
され、所定寿命分使用後に交換が必要な交換部品であ
る。交換部品に内蔵されているEEPROM4は接点8
を通じてCPU3とのシリアル通信によって、感光ドラ
ムの寿命計算のための総使用時間等の情報を維持する。
シリアル通信は9A,9B,9C,9Dの4本の通信線
によって行われる。
The replacement part 2 is a photosensitive drum unit which also serves as a waste toner box in the present embodiment. The photosensitive drum unit 2 includes a photosensitive drum for image formation and a waste toner box for storing waste toner after image formation, and is a replacement part that needs to be replaced after use for a predetermined life. The EEPROM 4 built in the replacement part has the contact 8
Through the serial communication with the CPU 3, the information such as the total usage time for calculating the life of the photosensitive drum is maintained.
Serial communication is performed by four communication lines 9A, 9B, 9C, and 9D.

【0021】6は電圧維持装置で、CPU3に対して電
源の切断を通知すると共にCPUがEEPROM4へ最
低2ワード書き込む間CPUとEEPROMへの電圧を
維持するバックアップ電源の役割を持つ。これは、低コ
ストでコンデンサ等を用い公知の技術により実装可能で
あるので詳細な説明は省略する。
Reference numeral 6 denotes a voltage maintaining device which has a role of a backup power supply for notifying the CPU 3 of power-off and maintaining a voltage to the CPU and the EEPROM while the CPU writes at least two words to the EEPROM 4. Since this can be implemented at low cost by a known technique using a capacitor or the like, detailed description will be omitted.

【0022】EEPROM4は1ワード16ビットで1
6ワードのデータを記憶できる不揮発性メモリである。
データの記憶はワード単位で、通信線9A,9B,9C
を通じて書き込み指示コマンド、書き込みアドレス、書
き込みデータをCPUから送ることによって行われる。
The EEPROM 4 has 1 word and 16 bits.
It is a non-volatile memory that can store 6 words of data.
Data storage is in word units, and communication lines 9A, 9B, 9C
This is performed by sending a write instruction command, a write address, and write data from the CPU through the CPU.

【0023】次にEEPROM4の使い方(メモリマッ
プ)について説明する。図2はEEPROM4のメモリ
マップとCPUの主記憶上での元データの関係の一例を
示す図である。本実施形態においては、EEPROM4
のメモリ空間は3つの領域に分けられる。この3つの領
域はデータの重要度または最新データの必要度に応じて
3つにグループ分けされたものである。
Next, how to use the EEPROM 4 (memory map) will be described. FIG. 2 is a diagram showing an example of the relationship between the memory map of the EEPROM 4 and the original data on the main memory of the CPU. In the present embodiment, the EEPROM 4
Is divided into three areas. These three areas are divided into three groups according to the importance of data or the necessity of the latest data.

【0024】EEPROM4のメモリは1ワード(16
ビット)につき1ビットがマーカービットとして使用さ
れている。これは、バックアップデータとして使用する
領域ではなく、記憶されているデータが信頼できるかど
うかを示す情報として使用される。従って、1ワード当
たり実データが使用可能な領域は15ビットとなり、A
領域の使用可能なビット数は60ビット、B領域の使用
可能なビット数は60ビット、C領域の使用可能なビッ
ト数は120ビットである。このうちC領域については
マーカービットの他に8ビットをデータ全体(16ワー
ド)に対するチェックサムとして使用しているため、実
質使用可能な領域は112ビットである。
The memory of the EEPROM 4 has one word (16
1) is used as a marker bit. This is used not as an area used as backup data but as information indicating whether stored data is reliable. Therefore, the area where the actual data can be used per word is 15 bits, and A
The usable number of bits in the area is 60 bits, the usable number of bits in the B area is 60 bits, and the usable number of bits in the C area is 120 bits. Of these, in the C area, since 8 bits other than the marker bits are used as a checksum for the entire data (16 words), the actually usable area is 112 bits.

【0025】本実施形態においては、A領域を廃トナー
満杯を判断するための廃トナー満杯光学検知の履歴情
報、B領域を感光ドラムの寿命を判断するための使用時
間履歴、C領域をその他のプロセス条件および、市場調
査のためのカートリッジ使用履歴情報を記憶するために
使用している。情報の信頼性の高さを必要とする順番は
A領域が一番高く、次いでB,C領域の順である。なぜ
なら、廃トナーの満杯検出が遅れれば、本体にダメージ
を与えることになり、最悪EEPROM内のデータが間
違っていることが分かった場合には強制的に動作を停止
する必要があるからである。従って、データの信頼性が
一番必要となる。感光ドラムの寿命判断については、本
体にダメージを与えることはないものの、このデータが
間違っている場合は画質に大きな影響を与えるため、製
品の品質上次に信頼性を必要とするデータである。最後
のカートリッジの使用履歴情報は、本体へのダメージ、
出力品質とも関わりが少ないため、万一この部分のデー
タのみが損傷した場合にはユーザビリティを優先して無
視することが可能である。
In the present embodiment, the history information of optical detection of waste toner full for judging the area A is full of waste toner, the use time history for judging the life of the photosensitive drum in the area B, and the other area in the area C are other information. It is used to store process conditions and cartridge usage history information for market research. The order in which the reliability of information is required is highest in the A area, and then in the order of the B and C areas. The reason is that if the detection of the full state of the waste toner is delayed, the main body is damaged, and if it is found that the data in the EEPROM is wrong at the worst, the operation must be forcibly stopped. Therefore, data reliability is the most necessary. Regarding the judgment of the service life of the photosensitive drum, it does not cause any damage to the main body, but if this data is wrong, it has a great effect on the image quality. The usage history information of the last cartridge indicates damage to the main unit,
Since there is little relation with the output quality, if only this part of the data is damaged, usability can be prioritized and ignored.

【0026】次に、EEPROMの書き込み手順につい
て図3を用いて説明する。図3は、EEPROM4へ1
ワードのデータ書き込みを行う際のタイミングチャート
である。図3における信号/CS,DOUT,/CLO
CKはそれぞれ図1における信号線9A,9B,9Cに
対応する。なお、図1の信号線9DはEEPROMから
の読み込みの際EEPROMからデータを得る信号線D
INである。EEPROMは信号/CSがLowの期間
に信号/CLOCKおよびDOUTによって書き込みを
示すコマンドコード、書き込みアドレス、書き込みデー
タの三つのデータを順に送ることによって指定されたワ
ードの記憶を開始する。信号/CSがHighに戻され
た後、CPUが正しいコマンドコードとアドレス、デー
タを送っていれば所定時間後にワードの記憶を完了す
る。
Next, the writing procedure of the EEPROM will be described with reference to FIG. FIG.
6 is a timing chart when writing word data. Signals / CS, DOUT, / CLO in FIG.
CK respectively correspond to the signal lines 9A, 9B, 9C in FIG. The signal line 9D shown in FIG. 1 is a signal line D for obtaining data from the EEPROM when reading from the EEPROM.
IN. The EEPROM starts storing a specified word by sequentially sending three data of a command code indicating writing by the signals / CLOCK and DOUT, a write address, and write data while the signal / CS is Low. After the signal / CS is returned to High, if the CPU has sent the correct command code, address and data, the storage of the word is completed after a predetermined time.

【0027】ここで、図3に示すように、途中で電源が
切断され書き込み処理が中断されると、中断されたタイ
ミングによって、書き込み結果が変化する。すなわち、
CPUがコマンド、アドレス、データを送信している区
間aで書き込み処理が中断した場合は書き込み指示が無
効となり、新しいデータは記憶されない。ただし、この
場合には古いデータがそのまま残る。一方、CPUのデ
ータ送信が終了し、信号/CSがHighに戻った後の
区間bで書き込みが中断された場合にはそのワードにつ
いては記憶内容が不定となる。この場合、古いデータも
残っていない。
Here, as shown in FIG. 3, when the power is cut off and the writing process is interrupted, the writing result changes depending on the interrupted timing. That is,
If the write processing is interrupted in the section a where the CPU is transmitting the command, the address, and the data, the write instruction becomes invalid, and no new data is stored. However, in this case, old data remains. On the other hand, when the data transmission of the CPU is completed and the writing is interrupted in the section b after the signal / CS returns to High, the storage content of the word becomes undefined. In this case, no old data remains.

【0028】なお、EEPROMのアクセス手順につい
ては公知のものであり、読み込み手順については、本発
明の特徴とするところではないため、詳細な説明は省略
する。読み込み手順は読み込みコマンド、読み込みアド
レスを示すデータを/CLOCKおよびDOUTによっ
て送り、DINによってデータを読み込む。
The procedure for accessing the EEPROM is known, and the procedure for reading is not a feature of the present invention. In the reading procedure, a read command and data indicating a read address are sent by / CLOCK and DOUT, and data is read by DIN.

【0029】上述したとおり、書き込み処理の中断が起
こると、書き込みが中断されたワードを境界にその境界
の前迄が新しいデータ、そのワード以降またはそのワー
ドの次から古いデータとなり、中断のタイミングによっ
てはそのワードは不定データとなる。いずれにしても、
新しいデータ、不定データ、古いデータが混在すれば全
体としてはデータの信頼性がなくなる。データ全体に対
してチェックサムを取っていたとしても、どの部分が使
用不可能であるかを判断することが出来ない。そこで、
本発明においてはマーカービットを使用する。
As described above, when the write process is interrupted, new data is used up to the boundary of the word where the write is interrupted and up to and before the boundary, and old data is used after the word or after the word. Indicates that the word is undefined data. In any case,
If new data, undefined data, and old data are mixed, the reliability of the data as a whole is lost. Even if a checksum is taken for the entire data, it cannot be determined which part is unusable. Therefore,
In the present invention, a marker bit is used.

【0030】次にマーカービットの使用方法をEEPR
OMへのデータの書き込み手順に従って説明する。図4
はEEPROMへのデータのバックアップ手順を示した
流れ図である。データの書き込みはstartから始ま
り、endで終る処理で完了する。
Next, the use method of the marker bit is EEPR
The description will be given according to the procedure for writing data to the OM. FIG.
9 is a flowchart showing a procedure for backing up data to the EEPROM. Writing of data starts from start and ends with processing ending with end.

【0031】書き込み処理を開始するとまず、ワードの
書き込みの際付加されるマーカービットの値を有する変
数Mの値を0にする(ステップ100)。次に、CPU
3の主記憶(図示せず)の所定領域に記憶された廃トナ
ー満杯光学検知の履歴データ読み出し、履歴データをE
EPROM4のA領域用に15ビット×4のデータに変
換する(ステップ101)。続けて、同様に主記憶の感
光ドラム寿命データをB領域用に15ビット×4に(ス
テップ102)、その他のデータをC領域用に15ビッ
ト×7+7ビットに(ステップ103)変換する。次い
で、変換が終了したデータ全体に対するチェックサムを
計算する(ステップ104)。この際、マーカービット
に相当する部分は0として、チェックサムを含めたバイ
ト単位の総和が1になるようにチェックサムを定める。
以上で、EEPROM4に書き込む実データの準備が完
了する。
When the writing process is started, first, the value of a variable M having the value of a marker bit added when writing a word is set to 0 (step 100). Next, CPU
3, the history data of the waste toner full optical detection stored in a predetermined area of the main memory (not shown) is read out, and
The data is converted into data of 15 bits × 4 for the area A of the EPROM 4 (step 101). Subsequently, similarly, the photosensitive drum life data in the main memory is converted into 15 bits × 4 for the area B (step 102), and the other data is converted into 15 bits × 7 + 7 bits for the area C (step 103). Next, a checksum is calculated for the entire converted data (step 104). At this time, the portion corresponding to the marker bit is set to 0, and the checksum is determined so that the sum of the bytes including the checksum becomes 1.
Thus, preparation of the actual data to be written to the EEPROM 4 is completed.

【0032】次にワード単位でEEPROMへと書き込
むわけであるが、その前に電源切断等、書き込み処理を
中断する要因が発生しているかどうか調べる(ステップ
105)。この時点で中断要因の発生を検出している場
合は、書き込みを開始してもすぐに不定データとなる恐
れがあるため、書き込みを行わない。中断が検出されて
いなければ、ステップ106から書き込みを開始する。
Next, the data is written into the EEPROM in word units. Before that, it is checked whether or not a factor that interrupts the writing process, such as power-off, has occurred (step 105). At this point, if the occurrence of the interruption factor is detected, the writing is not performed because there is a possibility that the data may become undefined immediately after the writing is started. If the interruption has not been detected, the writing is started from step 106.

【0033】書き込みワードのカウンタCを初期化する
(ステップ106)。このカウンタCは、主記憶上に設
けたカウンタ領域を用いる、CPU3のレジスタを用い
る等して実現可能である。次に、ステップ105と同様
に中断要因の発生有無を確認する(ステップ107)。
この確認は各ワードを書き込む前にマーカービットの値
を決めるためである。中断要因の発生を検出した場合は
マーカービットを1とする(ステップ108)。
The write word counter C is initialized (step 106). The counter C can be realized by using a counter area provided on the main memory, using a register of the CPU 3, and the like. Next, similarly to step 105, it is confirmed whether or not an interruption factor has occurred (step 107).
This check is for determining the value of the marker bit before writing each word. When the occurrence of the interruption factor is detected, the marker bit is set to 1 (step 108).

【0034】次に、ワードの書き込みを行う(ステップ
109)。ワードデータはステップ100〜ステップ1
04で用意したデータの先頭から15ビットずつ取得
し、変数Mの値をマーカビットとして最下位ビットに付
加した16ビットデータである。このワードデータをア
ドレスをCとして図3に示した書き込み動作を行う。
Next, a word is written (step 109). Word data is from step 100 to step 1
This is 16-bit data obtained by acquiring 15 bits from the beginning of the data prepared in step 04 and adding the value of the variable M as a marker bit to the least significant bit. The write operation shown in FIG. 3 is performed using this word data as an address C.

【0035】1ワードデータの書き込み完了(EEPR
OM内での記憶完了)には図3のタイミングチャートで
示した通り所定時間必要とするため待つ(ステップ11
0)。EEPROMデバイスによっては、所定時間を待
つこと無く記憶完了を知る手段を持つものもあるが、本
実施形態においては書き込み完了が保証される時間待つ
ようにしている。1ワードの書き込みが終了するとカウ
ンタCをインクリメントし(ステップ111)、最後の
アドレスまで書き込んだかどうか確認する(ステップ1
12)。まだ最後のアドレスまで行っていない場合はス
テップ107からの処理を繰り返し、残りのワードデー
タの書き込み処理を行う。
Completion of writing one word data (EEPR
It waits for a predetermined time as shown in the timing chart of FIG. 3 for completion of storage in the OM (step 11).
0). Some EEPROM devices have a means for knowing the completion of storage without waiting for a predetermined time, but in the present embodiment, a time for guaranteeing completion of writing is waited. When writing of one word is completed, the counter C is incremented (step 111), and it is confirmed whether or not the last address has been written (step 1).
12). If the processing has not been performed up to the last address, the processing from step 107 is repeated, and the writing processing of the remaining word data is performed.

【0036】以上の処理を電源切断によって中断される
ことなく完了できた場合には、図2に示す通り、マーカ
ービットが全て0で書き込まれる。ステップ107にお
いて書き込み処理が中断する要因が検出された場合に
は、マーカービットが1となったワードデータがいくつ
か書き込まれて処理が中断する。
When the above processing can be completed without being interrupted by turning off the power, the marker bits are all written as 0, as shown in FIG. If a factor that interrupts the writing process is detected in step 107, some word data whose marker bits have become 1 are written and the process is interrupted.

【0037】次に、書き込み処理中に中断要因が発生し
た場合に、EEPROM4のデータ内容から信頼できる
データ範囲を判別する方法について説明する。以下、書
き込みの中断要因が電源断であり、電源断検出時に電圧
維持装置6が電圧維持する時間が4ワード分のデータを
書き込むのに必要な時間である場合について説明する。
この場合、CPU3及びEEPROM4への電源供給が
実際に中断した時点で書き込みしていた最後のワードが
不定データとなった場合でもマーカービットが1のデー
タが最低でも3ワード分書き込まれてから処理が中断す
ることになる。
Next, a method of determining a reliable data range from the data content of the EEPROM 4 when an interruption factor occurs during the writing process will be described. Hereinafter, a case will be described in which the interruption factor of the writing is the power interruption, and the time during which the voltage maintaining device 6 maintains the voltage when the power interruption is detected is the time required to write the data of four words.
In this case, even if the last word written when the power supply to the CPU 3 and the EEPROM 4 is actually interrupted becomes indefinite data, processing is performed after at least three words of data with a marker bit of 1 have been written. Will be interrupted.

【0038】図5は上述の状況で書き込み処理が中断さ
れた場合のEEPROM4の内容を示す図である。下位
アドレス(書き込み開始アドレス)から上位アドレスへ
マーカービットを見ていくと0から1に変わり、0に戻
っているのが分かる。図5から、電源断が検出されたの
がアドレス5へデータを書き込みしている最中もしくは
書き込み終了からアドレス6に対する書き込み開始まで
の間であることがわかる。0から1に変わっている境界
の1の側のワード、すなわちアドレス6のワードデータ
が電源断検出後に最初に書き込まれたワードである。以
降実際に電源供給が中断するまでマーカービットは1で
書き込まれるため、アドレス9の書き込み処理中又は書
き込み終了からアドレス10へのデータ書き込み開始ま
での間で電源供給が中断したことになる。
FIG. 5 is a diagram showing the contents of the EEPROM 4 when the writing process is interrupted in the above situation. Looking at the marker bits from the lower address (write start address) to the upper address, it can be seen that it changes from 0 to 1 and returns to 0. From FIG. 5, it can be seen that the power-off was detected during the writing of data to the address 5 or during the period from the end of writing to the start of writing to the address 6. This is the word on the 1 side of the boundary that changes from 0 to 1, that is, the word in which the word data at address 6 is first written after power-off detection. Thereafter, since the marker bit is written with 1 until the power supply is actually interrupted, the power supply is interrupted during the writing process of the address 9 or from the end of the writing to the start of the data writing to the address 10.

【0039】図3のタイミングチャートで説明したとお
り、あるワードの書き込みにおいて書き込みが電源切断
によって中断された場合は、古いデータが残る場合と、
そのワードが不定データとなる場合の二つの場合が考え
られる。従って、マーカービットが再び0となるワード
(アドレス10)が、そのワードを書き込む際古いデー
タが残る結果となったものか、不定データなのかは判断
できない。また、その直前のマーカービットが1の最後
のワード(アドレス9)がマーカービットが1として正
常に書き込めた最後のワードなのか、それとも中断され
て不定データとなっているのかは判断できない。
As described with reference to the timing chart of FIG. 3, when writing of a certain word is interrupted due to power-off, the case where old data remains,
There are two cases where the word becomes undefined data. Therefore, it cannot be determined whether the word (address 10) in which the marker bit becomes 0 again has a result that old data remains when the word is written or is indefinite data. In addition, it cannot be determined whether the last word (address 9) whose marker bit immediately before is 1 is the last word that could be normally written with the marker bit being 1 or whether it was interrupted and became undefined data.

【0040】しかし、電源断検出後実際に電源供給が中
断されるまで書き込もうと試みるワードは全てマーカー
ビットが1となっているため、図5に示すとおり境界の
2ワードより前に書き込まれたワード(アドレス0〜
8)は最新のデータ、それ以降のワード(アドレス11
〜15)は古いデータとして判断することができ、確実
に使用できることが分かる。ここで、マーカービットに
よって書き込みの中断を検出した場合メモリ内のデータ
を3つの領域に分けられることが分かる。最新のデー
タ、信頼できないデータ(不定となっている可能性があ
る)、古いデータである。
However, since the marker bit is set to 1 for all the words to be written after the power-off detection until the power supply is actually stopped, the word written before the two words on the boundary as shown in FIG. (Address 0
8) is the latest data, and subsequent words (address 11)
To 15) can be determined as old data, and it can be seen that they can be used reliably. Here, it can be seen that when the interruption of the writing is detected by the marker bit, the data in the memory can be divided into three areas. The latest data, unreliable data (possibly indeterminate), or old data.

【0041】また、図6に示すように最終アドレスまで
マーカービットが1のままである場合は最後のワードが
信頼できないデータとなる。この場合は残りの全てのワ
ードが最新のデータである。さらに、図7に示すように
マーカービットが1から0に変化する境界が二つにある
ような場合には上位アドレス側の変化点を元にデータの
信頼性を評価すればよい。また、本実施形態のように、
重要性の高いデータを最初に、低いデータを後に書き込
むように構成している場合は、図8に示すように、最初
の中断を検出した境界から下を信頼できないデータと判
断して、重要性の高い上位アドレスのデータの信頼性を
より確実に評価するようにしてもよい。
When the marker bit remains at 1 until the last address as shown in FIG. 6, the last word becomes unreliable data. In this case, all the remaining words are the latest data. Further, when there are two boundaries where the marker bit changes from 1 to 0 as shown in FIG. 7, the reliability of the data may be evaluated based on the change point on the upper address side. Also, as in the present embodiment,
In the case where data with high importance is written first and data with low importance is written later, as shown in FIG. 8, the data below the boundary where the first interruption is detected is determined as unreliable data, and the importance is determined. The reliability of the data of the high-order address having a higher value may be more reliably evaluated.

【0042】以上のようにデータの種類と信頼性につい
ての評価をした後の処理について説明する。上述のよう
に本実施形態ではA領域を廃トナー満杯を判断するため
の廃トナー満杯光学検知の履歴情報、B領域を感光ドラ
ムの寿命を判断するための使用時間履歴、C領域をその
他のプロセス条件および、市場調査のためのカートリッ
ジ使用履歴情報というように重要性の高いデータを最初
に、低いデータを後に書き込むように構成している。そ
のため、A領域(アドレス0〜3)に信頼できないデー
タの領域が含まれる場合には、メモリの故障として画像
形成装置全体の動作を停止する。A領域に信頼できない
データの領域が含まれず、B領域(アドレス4〜7)に
は含まれる場合は、画質に影響がある警告を表示する
が、動作の停止はしない。この場合は感光ドラムを交換
する時期をユーザの判断で決められる。C領域のみに含
まれる場合は更に低いレベルの警告とし、画像形成装置
の動作上には影響を与えない。
The processing after the evaluation of the type and reliability of data as described above will be described. As described above, in the present embodiment, the history information of the waste toner full optical detection for determining the area A is full of waste toner, the usage time history for determining the life of the photosensitive drum in the area B, and other processes in the area C are described. The configuration is such that data of high importance such as conditions and cartridge use history information for market research are written first, and low data is written later. Therefore, if the unreliable data area is included in the A area (addresses 0 to 3), the operation of the entire image forming apparatus is stopped as a memory failure. If the unreliable data area is not included in the A area and the unreliable data area is included in the B area (addresses 4 to 7), a warning that affects the image quality is displayed, but the operation is not stopped. In this case, the time to replace the photosensitive drum can be determined by the user. If the warning is included only in the area C, the warning is issued at a lower level, and does not affect the operation of the image forming apparatus.

【0043】なお、マーカービットがすべて0でチェッ
クサムによるチェックがエラーとなった場合にはEEP
ROMデバイスの故障と判断する。これにより、EEP
ROMデバイスの故障と書き込み中断によるデータの異
常を区別することが可能となる。
If all the marker bits are 0 and the check by the checksum results in an error, the EEP
It is determined that the ROM device has failed. Thereby, EEP
It is possible to distinguish between a failure of the ROM device and a data abnormality due to the interruption of writing.

【0044】動作を停止しない程度のデータエラーの場
合には読み込んだ結果から最新のデータを作成し、その
場でEEPROMのデータを更新する。これによって、
マーカービットが全て0にリセットされ、次の書き込み
中断を検出できるようになる。ここでの更新の最中に電
源切断があり書き込みが中断された場合は中断場所が検
出不可能となる可能性がある。しかし、この頻度は非常
に低いため無視することが出来る。
In the case of a data error that does not stop the operation, the latest data is created from the read result, and the EEPROM data is updated on the spot. by this,
The marker bits are all reset to 0, and the next write interruption can be detected. If the power is turned off during the update and the writing is interrupted, there is a possibility that the interrupted location cannot be detected. However, this frequency is so low that it can be ignored.

【0045】以上説明したとおり、電源切断による書き
込み中断を検出するためにワード単位でマーカービット
を設け、読み込み時にマーカービットによって書き込み
中断ワードを検出することでバックアップメモリ内のデ
ータを信頼性によってグループ分けすることが可能とな
り、さらに、バックアップメモリ内のデータを情報の重
要度に応じてグループ分けすることにより、重要度の低
いデータの損傷についてはユーザビリティを低減するこ
となく画像形成装置の動作を維持することが可能とな
る。
As described above, the marker bits are provided in units of words to detect the interruption of writing due to the power supply cutoff, and the data in the backup memory is grouped by reliability by detecting the writing interruption word by the marker bits at the time of reading. In addition, by grouping the data in the backup memory according to the importance of the information, the operation of the image forming apparatus can be maintained without reducing the usability for the damage of the data of low importance. It becomes possible.

【0046】[第2の実施形態]第1の実施形態におい
ては電源切断を書き込み中断の要因としたが、これ以外
に例えば画像形成装置のドアオープン等による電源供給
切断を書き込み中断の要因としても有効である。特に交
換部品である感光ドラムなどはメモリアクセス中にユー
ザによっていきなり画像形成装置から取り外される可能
性もある。これも書き込み中断の要因として実装すれば
更に有用である。また、電源切断以外にも強制リセット
処理がなされた場合などデータ書き込み処理の中断要因
が考えられる場合には、要因の発生を検出するセンサを
設けるとともに、要因の発生が検出された場合には所定
時間動作を維持することにより、多様な要因に対して対
処できる。
[Second Embodiment] In the first embodiment, the power-off is used as a factor for interrupting writing. However, in addition to this, for example, a power-off due to opening of a door of an image forming apparatus may be a factor for interrupting writing. It is valid. In particular, there is a possibility that the user may suddenly remove the photosensitive drum or the like, which is a replacement part, from the image forming apparatus during memory access. This is more useful if implemented as a factor of interruption of writing. Also, if there is a possible interruption factor in the data writing process such as when a forced reset process is performed in addition to power-off, a sensor that detects the occurrence of the factor is provided. By maintaining the time operation, various factors can be dealt with.

【0047】図9は、各種の中断要因に対応する場合の
構成例を示す要部ブロック図である。図において、図1
と共通な構成要素には共通の参照数字を付し、説明は省
略する。本実施形態においては、電源断以外の中断要因
の発生を検出する図示しない各種センサからの入力を集
中して受信するセンサブロック20と、センサブロック
20の出力信号を電圧維持装置6が電源断検出時に電圧
を維持する時間と少なくとも同等の時間遅延する遅延回
路23及びセンサブロック20の出力信号をそのままあ
るいは遅延回路23で遅延して出力するためのスイッチ
22とが新たに設けられている。
FIG. 9 is a main block diagram showing an example of a configuration for coping with various interruption factors. In the figure, FIG.
The same reference numerals are given to the same components as those described above, and description thereof will be omitted. In the present embodiment, the sensor block 20 that collectively receives inputs from various sensors (not shown) that detect the occurrence of an interruption factor other than the power interruption and the voltage maintaining device 6 detects the output signal of the sensor block 20 by the power interruption detection A delay circuit 23 for delaying at least the same time as the voltage is sometimes maintained, and a switch 22 for outputting the output signal of the sensor block 20 as it is or delayed by the delay circuit 23 are newly provided.

【0048】センサブロック20は、各種センサの出力
を監視し、EEPROM4へのデータ書き込み中断要因
となりうる状態変化を受信すると、スイッチ22を切り
替えて遅延回路23の出力信号を選択し、状態変化を示
す信号がデータ書き込みを中断する処理を起動するのを
遅らせる。また、これと同時に電圧維持装置6に書き込
み中断要因が検出されたことを通知する。これにより上
述したマーカービットを1にしたワードデータの書き込
みが開始される。
The sensor block 20 monitors the outputs of the various sensors and, when receiving a state change that may cause interruption of data writing to the EEPROM 4, switches the switch 22 to select the output signal of the delay circuit 23 and indicates the state change. The signal delays initiating the process of interrupting the data write. At the same time, it notifies the voltage maintenance device 6 that the write interruption factor has been detected. Thus, the writing of the word data with the marker bit set to 1 is started.

【0049】このように、電源断以外の要因によりデー
タの書き込み処理中断が起こりうる場合にも、データの
信頼性を確実に把握することが可能になる。
As described above, even in the case where the data writing process may be interrupted due to factors other than the power interruption, the reliability of the data can be reliably grasped.

【0050】[第3の実施形態]第3の実施形態は、第
1の実施形態とメモリのアクセスおよび基本構成につい
ては同じであるので詳細な説明は省略し、第一の実施形
態との違いのみ説明する。
[Third Embodiment] The third embodiment is the same as the first embodiment in terms of memory access and basic configuration, so that detailed description is omitted, and the third embodiment is different from the first embodiment. I will explain only.

【0051】第3の実施形態においては、不揮発性記憶
手段であるEEPROM11を交換部品ではなく、画像
形成装置本体に内蔵した点が異なる。図10は第3の実
施形態を示すブロック図である。
The third embodiment is different from the third embodiment in that the EEPROM 11, which is a non-volatile storage means, is not a replacement part but is built in the main body of the image forming apparatus. FIG. 10 is a block diagram showing the third embodiment.

【0052】図10において11は本体EEPROM、
10は本体11への通信線である。本体EEPROM1
1はその画像形成装置における排紙積算枚数、非交換部
品の寿命計測用データを保持する。本実施形態において
は、例えば寿命データをデータエラーの際故障の対象と
する重要度の高いデータとし、排紙積算枚数をデータエ
ラーでも警告表示のみの重要度の低いデータとして扱
う。EEPROMの使用方法、書き込み方法、データの
信頼性の評価方法については台1の実施形態と共通であ
るため、説明は省略する。
In FIG. 10, reference numeral 11 denotes a main body EEPROM,
Reference numeral 10 denotes a communication line to the main body 11. Main body EEPROM1
Reference numeral 1 stores data for measuring the number of discharged sheets and the life of non-replaced parts in the image forming apparatus. In the present embodiment, for example, the life data is treated as high-priority data that is targeted for failure in the event of a data error, and the integrated number of discharged sheets is treated as low-priority data for warning display only even in the case of a data error. The method of using the EEPROM, the method of writing, and the method of evaluating the reliability of the data are the same as those in the embodiment of the stand 1, and therefore the description is omitted.

【0053】[0053]

【他の実施形態】上述の実施形態においては本発明を画
像形成装置に適用した例を元に説明したが、画像形成装
置に限らず、いかなる機器においても適用することがで
きる。また、不揮発性記憶装置としてEEPROM以外
にも任意の装置を使用することができる。
Other Embodiments In the above embodiment, the present invention has been described based on an example in which the present invention is applied to an image forming apparatus. However, the present invention is not limited to the image forming apparatus but can be applied to any apparatus. In addition, any device other than the EEPROM can be used as the nonvolatile storage device.

【0054】なお、本発明は、複数の機器(例えばホス
トコンピュータ,インタフェイス機器,リーダ,プリン
タなど)から構成されるシステムに適用してもよい。す
なわち、データを書き込む場所とデータ書き込みが中断
される要因の発生検出を別の場所で行っても良い。
The present invention may be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.). That is, the location where data is written and the occurrence of a factor that interrupts data writing may be detected at different locations.

【0055】なお、本実施形態においては、交換部品の
例として感光ドラム、不揮発性メモリの例としてEEP
ROMを挙げているが、これに限らず、他の交換部品に
別のメモリデバイスを使用した場合でも本発明は有効で
ある。
In this embodiment, a photosensitive drum is used as an example of a replacement part, and an EEP is used as an example of a nonvolatile memory.
Although a ROM is mentioned, the present invention is not limited to this, and the present invention is effective even when another memory device is used for another replacement part.

【0056】[0056]

【発明の効果】以上説明したように本発明においては、
不揮発性記憶装置にデータを書き込む際、所定の書き込
み単位毎に書き込み中断を検出するためのビットを設け
ることにより、万一書き込み中に異常が発生して処理が
正常に終了しなかった場合でも、信頼できるデータを確
定できるという効果を有する。さらに、書き込み処理が
中断された場合、信頼性のない領域のデータ重要度に応
じてエラー処理の方法を変えることにより、真に問題と
なる場合以外は機器の使用が可能となり、低コスト、簡
易構成で、ユーザービリティの低下を防ぐことができる
という効果を有する。
As described above, in the present invention,
When writing data to the non-volatile storage device, by providing a bit for detecting a write interruption for each predetermined write unit, even if an error occurs during the write and the process does not end normally, This has the effect that reliable data can be determined. Furthermore, if the writing process is interrupted, the error handling method is changed according to the data importance of the unreliable area, so that the device can be used except when it is really a problem. The configuration has the effect of preventing usability from deteriorating.

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

【図1】第1の実施形態における画像形成装置のブロッ
ク概念図である。
FIG. 1 is a conceptual block diagram of an image forming apparatus according to a first embodiment.

【図2】バックアップメモリ(EEPROM)のメモリ
マップとCPU主記憶上のデータの関係を示す図であ
る。
FIG. 2 is a diagram showing a relationship between a memory map of a backup memory (EEPROM) and data on a CPU main memory.

【図3】EEPROM書き込み手順を示すタイミングチ
ャートである。
FIG. 3 is a timing chart showing an EEPROM writing procedure.

【図4】書き込み処理を示すフローチャートである。FIG. 4 is a flowchart illustrating a writing process.

【図5】書き込みに中断があった場合のメモリマップ例
を示す図である。
FIG. 5 is a diagram illustrating an example of a memory map when writing is interrupted;

【図6】書き込みに中断があった場合のメモリマップの
別の例を示す図である。
FIG. 6 is a diagram showing another example of a memory map when writing is interrupted.

【図7】2度の変化点がある場合のデータ信頼性の判定
方法を説明する図である。
FIG. 7 is a diagram illustrating a method for determining data reliability when there are two change points.

【図8】2度の変化点がある場合のデータ信頼性の別の
判定方法を説明する図である。
FIG. 8 is a diagram illustrating another method of determining data reliability when there are two change points.

【図9】第2の実施形態における画像形成装置のブロッ
ク概念図である。
FIG. 9 is a conceptual block diagram of an image forming apparatus according to a second embodiment.

【図10】第3の実施形態における画像形成装置のブロ
ック概念図である。
FIG. 10 is a conceptual block diagram of an image forming apparatus according to a third embodiment.

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

1 画像形成装置 2 交換部品 3 CPU 4,11 EEPROM 20 センサブロック 22 スイッチ 23 遅延回路 DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 Replacement part 3 CPU 4,11 EEPROM 20 Sensor block 22 Switch 23 Delay circuit

フロントページの続き Fターム(参考) 2C061 AP04 AQ06 AR01 HJ06 HK11 HV02 HV04 HV39 5B018 GA01 HA13 HA31 LA03 QA05 QA15 RA11 5B021 DD19 MM04 NN15 NN19 5C062 AB44 AB49 AC22 AC58 AC60 AE15 AF00 AF06 AF07 BA00Continued on front page F-term (reference) 2C061 AP04 AQ06 AR01 HJ06 HK11 HV02 HV04 HV39 5B018 GA01 HA13 HA31 LA03 QA05 QA15 RA11 5B021 DD19 MM04 NN15 NN19 5C062 AB44 AB49 AC22 AC58 AC60 AE15 AF00 AF06 AF07 BA00

Claims (24)

【特許請求の範囲】[Claims] 【請求項1】 不揮発性記憶手段へのデータ書き込み方
法であって、 データの書き込み開始前及び書き込み処理中に、前記デ
ータ書き込みが中断される要因の発生を検出するステッ
プと、 前記記憶手段へ書き込むデータの所定単位毎に、前記検
出ステップの結果に応じたデータを付加して書き込むス
テップとを有することを特徴とするデータ書き込み方
法。
1. A method for writing data to a non-volatile storage means, comprising: detecting an occurrence of a factor that interrupts the data writing before starting to write the data and during the writing process; Adding data corresponding to the result of the detection step and writing the data for each predetermined unit of data.
【請求項2】 前記データ書き込み処理中に前記中断要
因の発生が検出された場合、所定時間前記データ書き込
み処理を維持するステップをさらに有することを特徴と
する請求項1記載のデータ書き込み方法。
2. The data writing method according to claim 1, further comprising a step of maintaining the data writing process for a predetermined time when the occurrence of the interruption factor is detected during the data writing process.
【請求項3】 前記所定時間が、前記データの2所定単
位を書き込むために必要な時間以上であることを特徴と
する請求項2記載のデータ書き込み方法。
3. The data writing method according to claim 2, wherein the predetermined time is equal to or longer than a time required for writing two predetermined units of the data.
【請求項4】 前記所定時間が、前記データの2所定単
位を書き込むために必要な時間以上前記データの3所定
単位を書き込むために必要な時間未満であることを特徴
とする請求項2記載のデータ書き込み方法。
4. The apparatus according to claim 2, wherein the predetermined time is equal to or longer than a time required to write two predetermined units of the data and less than a time required to write three predetermined units of the data. Data writing method.
【請求項5】 前記所定単位が前記不揮発性記憶手段へ
書き込み可能な最小単位であることを特徴とする請求項
1記載のデータ書き込み方法。
5. The data writing method according to claim 1, wherein the predetermined unit is a minimum unit that can be written to the nonvolatile storage unit.
【請求項6】 書き込む前記データの重要性に応じて前
記不揮発性記憶手段への書き込み順序を定めることを特
徴とする請求項1乃至5のいずれかに記載のデータ書き
込み方法。
6. The data writing method according to claim 1, wherein an order of writing to said nonvolatile storage means is determined according to importance of said data to be written.
【請求項7】 前記データ書き込みが中断される要因
が、電源断であることを特徴とする請求項1乃至請求項
5のいずれかに記載のデータ書き込み方法。
7. The data writing method according to claim 1, wherein the factor of interrupting the data writing is power-off.
【請求項8】 最後の前記所定単位データを書き込み終
了後に、前記書き込み処理中に書き込んだ全データに対
するエラー判定用データを書き込むステップをさらに有
することを特徴とする請求項1乃至5のいずれかに記載
のデータ書き込み方法。
8. The method according to claim 1, further comprising the step of writing error determination data with respect to all data written during the writing process after writing the last predetermined unit data. Data writing method described.
【請求項9】 前記不揮発性記憶手段がEEPROMで
あることを特徴とする請求項1乃至5のいずれかに記載
のデータ書き込み方法。
9. The data writing method according to claim 1, wherein said nonvolatile storage means is an EEPROM.
【請求項10】 不揮発性記憶手段を有し、該不揮発性
記憶手段に所定単位でデータを書き込むデータ書き込み
装置であって、 データの書き込み開始前及び書き込み処理中に、前記デ
ータ書き込みが中断される要因の発生を検出する検出手
段と、 前記記憶手段へ書き込むデータの所定単位毎に、前記検
出手段の結果に応じたデータを付加して書き込むデータ
書き込み手段とを有することを特徴とするデータ書き込
み装置。
10. A data writing device having nonvolatile storage means for writing data to said nonvolatile storage means in predetermined units, wherein said data writing is interrupted before data writing is started and during writing processing. A data writing apparatus comprising: a detection unit that detects the occurrence of a factor; and a data writing unit that adds and writes data corresponding to a result of the detection unit for each predetermined unit of data to be written to the storage unit. .
【請求項11】 前記検出手段が前記データ書き込み処
理中に前記中断要因の発生を検出した場合、所定時間前
記データ書き込み処理を維持する手段を有することを特
徴とする請求項10記載のデータ書き込み装置。
11. The data writing device according to claim 10, further comprising: a unit for maintaining the data writing process for a predetermined time when the detecting unit detects the occurrence of the interruption factor during the data writing process. .
【請求項12】 前記所定時間が、前記データの2所定
単位を書き込むために必要な時間以上であることを特徴
とする請求項11記載のデータ書き込み装置。
12. The data writing device according to claim 11, wherein the predetermined time is equal to or longer than a time required to write two predetermined units of the data.
【請求項13】 前記所定時間が、前記データの2所定
単位を書き込むために必要な時間以上前記データの3所
定単位を書き込むために必要な時間未満であることを特
徴とする請求項11記載のデータ書き込み装置。
13. The method according to claim 11, wherein the predetermined time is equal to or longer than a time required to write two predetermined units of the data and less than a time required to write three predetermined units of the data. Data writer.
【請求項14】 前記所定単位が前記不揮発性記憶手段
へ書き込み可能な最小単位であることを特徴とする請求
項10記載のデータ書き込み装置。
14. The data writing device according to claim 10, wherein the predetermined unit is a minimum unit that can be written to the nonvolatile storage unit.
【請求項15】 前記不揮発性記憶手段が書き込まれる
前記データの重要性に応じた書き込み領域を有すること
を特徴とする請求項10乃至14のいずれかに記載のデ
ータ書き込み装置。
15. The data writing device according to claim 10, wherein said nonvolatile storage means has a writing area according to importance of said data to be written.
【請求項16】 前記データ書き込みが中断される要因
が、電源断であることを特徴とする請求項10乃至14
のいずれかに記載のデータ書き込み装置。
16. The data write interruption is caused by power-off.
The data writing device according to any one of the above.
【請求項17】 前記データ書き込み手段が、最後の前
記所定単位データを書き込み終了後に、前記書き込み処
理中に書き込んだ全データに対するエラー判定用データ
を書き込むことを特徴とする請求項10乃至14のいず
れかに記載のデータ書き込み装置。
17. The method according to claim 10, wherein the data writing unit writes error determination data for all data written during the writing process after finishing writing the last predetermined unit data. The data writing device according to any one of the above.
【請求項18】 前記不揮発性記憶手段がEEPROM
であることを特徴とする請求項10乃至14のいずれか
に記載のデータ書き込み装置。
18. The method according to claim 18, wherein said nonvolatile storage means is an EEPROM.
15. The data writing device according to claim 10, wherein:
【請求項19】 不揮発性メモリと、この不揮発性メモ
リに記憶されたデータを元に構成部品を管理する管理手
段を有する画像形成装置であって、 前記不揮発性記憶手段へのデータの書き込み開始前及び
書き込み処理中に、前記データ書き込みが中断される要
因の発生を検出する検出手段と、 前記不揮発性記憶手段へ書き込むデータの所定単位毎
に、前記検出手段の結果に応じたデータを付加して書き
込むデータ書き込み手段とを有することを特徴とする画
像形成装置。
19. An image forming apparatus comprising: a nonvolatile memory; and a management unit that manages a component based on data stored in the nonvolatile memory, wherein before the start of writing data to the nonvolatile storage unit. And during the writing process, detecting means for detecting the occurrence of a factor that interrupts the data writing, and for each predetermined unit of data to be written to the non-volatile storage means, adding data corresponding to the result of the detecting means. An image forming apparatus, comprising: data writing means for writing.
【請求項20】 前記検出手段が前記データ書き込み処
理中に前記中断要因の発生を検出した場合、所定時間前
記データ書き込み処理を維持する手段を有することを特
徴とする請求項19記載の画像形成装置。
20. The image forming apparatus according to claim 19, further comprising: a unit that maintains the data writing process for a predetermined time when the detecting unit detects the occurrence of the interruption factor during the data writing process. .
【請求項21】 前記所定時間が、前記データの2所定
単位を書き込むために必要な時間以上であることを特徴
とする請求項19記載の画像形成装置。
21. The image forming apparatus according to claim 19, wherein the predetermined time is equal to or longer than a time required for writing two predetermined units of the data.
【請求項22】 前記不揮発性メモリが管理対象となる
構成部品に含まれていることを特徴とする請求項19乃
至21のいずれかに記載の画像形成装置。
22. The image forming apparatus according to claim 19, wherein the non-volatile memory is included in a component to be managed.
【請求項23】 前記不揮発性メモリが管理対象となる
構成部品に含まれていないこと特徴とする請求項19乃
至21のいずれかに記載の画像形成装置。
23. The image forming apparatus according to claim 19, wherein the nonvolatile memory is not included in a component to be managed.
【請求項24】 前記部品が感光体ドラムを含むことを
特徴とする請求項19乃至21のいずれかに記載の画像
形成装置。
24. The image forming apparatus according to claim 19, wherein said component includes a photosensitive drum.
JP10306062A 1998-10-27 1998-10-27 Data writing method and device and image forming device Withdrawn JP2000132464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10306062A JP2000132464A (en) 1998-10-27 1998-10-27 Data writing method and device and image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10306062A JP2000132464A (en) 1998-10-27 1998-10-27 Data writing method and device and image forming device

Publications (1)

Publication Number Publication Date
JP2000132464A true JP2000132464A (en) 2000-05-12

Family

ID=17952597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10306062A Withdrawn JP2000132464A (en) 1998-10-27 1998-10-27 Data writing method and device and image forming device

Country Status (1)

Country Link
JP (1) JP2000132464A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185140B2 (en) 2002-12-25 2007-02-27 Spansion, Llc Method for storing in nonvolatile memory and storage unit
JP2007257283A (en) * 2006-03-23 2007-10-04 Tdk Corp Memory controller and flash memory system
JP2009184609A (en) * 2008-02-08 2009-08-20 Nsk Ltd Electric power steering device
JP2020523670A (en) * 2017-06-01 2020-08-06 青島海爾洗衣机有限公司QingDao Haier Washing Machine Co.,Ltd. Method of storing washing machine identification code in tag memory
US20220343428A1 (en) * 2006-12-21 2022-10-27 Trading Technologies International Inc. System and Method for Optimizing the Frequency of Market Information Updates in an Electronic Trading Environment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185140B2 (en) 2002-12-25 2007-02-27 Spansion, Llc Method for storing in nonvolatile memory and storage unit
JP2007257283A (en) * 2006-03-23 2007-10-04 Tdk Corp Memory controller and flash memory system
JP4501881B2 (en) * 2006-03-23 2010-07-14 Tdk株式会社 Memory controller and flash memory system
US20220343428A1 (en) * 2006-12-21 2022-10-27 Trading Technologies International Inc. System and Method for Optimizing the Frequency of Market Information Updates in an Electronic Trading Environment
JP2009184609A (en) * 2008-02-08 2009-08-20 Nsk Ltd Electric power steering device
JP2020523670A (en) * 2017-06-01 2020-08-06 青島海爾洗衣机有限公司QingDao Haier Washing Machine Co.,Ltd. Method of storing washing machine identification code in tag memory

Similar Documents

Publication Publication Date Title
EP2095234B1 (en) Memory system with ecc-unit and further processing arrangement
US20070169098A1 (en) Firmware updating circuit and firmware updating method
JPH09274541A (en) Storage device, control method for the same, storage system and control method for the same
US6263454B1 (en) Storage system
US6516440B1 (en) Printer and a control method for saving data from volatile to nonvolatile memory in the printer
US4593391A (en) Machine check processing system
JP2010204851A (en) Storage device and information processing apparatus
JP2000132464A (en) Data writing method and device and image forming device
JP2002543521A (en) Method and apparatus for automatically reintegrating modules into a computer system
JPH11249821A (en) Data storage device and interface condition setting method to be applied to the same
CN114115714B (en) Thermal event prediction in hybrid memory modules
JP4257239B2 (en) Configuration data setting method and computer system
JPH09161493A (en) Management method for rewritable nonvolatile memory
JP2002014726A (en) Electronic controller
JPH07122087A (en) Eeprom error check system
JP3262094B2 (en) Memory control device and memory control method
TWI789983B (en) Power management method and power management device
JP7048735B2 (en) RFID tag system
US7069471B2 (en) System PROM integrity checker
CN114356638A (en) Log saving method and device, storage medium and computer equipment
JP4136105B2 (en) Image forming apparatus and control method thereof
JP2665410B2 (en) Electronic devices with backup memory
JPS6043265A (en) Reading and writing system of data
US5239657A (en) Counted value storage system with recirculative addressing
KR100232838B1 (en) Computer module reset control device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060110