[go: up one dir, main page]

JP2006065550A - Nonvolatile memory writing control method for ink jet recording apparatus - Google Patents

Nonvolatile memory writing control method for ink jet recording apparatus Download PDF

Info

Publication number
JP2006065550A
JP2006065550A JP2004246574A JP2004246574A JP2006065550A JP 2006065550 A JP2006065550 A JP 2006065550A JP 2004246574 A JP2004246574 A JP 2004246574A JP 2004246574 A JP2004246574 A JP 2004246574A JP 2006065550 A JP2006065550 A JP 2006065550A
Authority
JP
Japan
Prior art keywords
address
nonvolatile memory
writing
recording apparatus
count information
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
JP2004246574A
Other languages
Japanese (ja)
Inventor
Akihiko Sukigara
明彦 鋤柄
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 JP2004246574A priority Critical patent/JP2006065550A/en
Publication of JP2006065550A publication Critical patent/JP2006065550A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To equalize writing frequencies to a nonvolatile memory. <P>SOLUTION: A nonvolatile memory writing control method includes address replacement information and address count information in the nonvolatile memory. When the difference between the maximum value and minimum value for writing frequencies indicated by the address count information becomes a specified value or more, the contents of an address indicating the maximum value and minimum value are replaced, and are written in the nonvolatile memory. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はインクジェット記録装置に関し、特に不揮発性メモリの書き込み制御方法に関するものである。   The present invention relates to an inkjet recording apparatus, and more particularly to a writing control method for a nonvolatile memory.

従来、インクジェット記録装置には、プリンタ情報を格納するための不揮発性のメモリ(EEPROM)が搭載されている。不揮発性メモリでは、同一セル(同一アドレス)のメモリ領域に対して行うデータの書き込み制限があり、通常、1万〜10万回程度となっている。したがって、書き込み頻度が一番多いアドレスへの書き込み回数を基準として、データの書き込み回数制限を超えないようにして、不揮発性メモリチップを選択し、インクジェットプリンタに搭載していた。
特開2000−094763号公報 特開2002−120375号公報
2. Description of the Related Art Conventionally, an ink jet recording apparatus is equipped with a non-volatile memory (EEPROM) for storing printer information. In the nonvolatile memory, there is a limit of data writing to the memory area of the same cell (same address), and is usually about 10,000 to 100,000 times. Therefore, the nonvolatile memory chip is selected and mounted on the ink jet printer so as not to exceed the limit of the number of times of writing data with reference to the number of times of writing to the address having the highest writing frequency.
JP 2000-094763 A JP 2002-120375 A

しかしながら、上記従来例では、書き込み頻度が一番多いアドレスを基準として、不揮発性メモリチップを選択していたので、書き込み頻度が低いアドレスではオーバースペックとなっていて、不揮発性メモリ本来の性能を引き出せずにいた。また、同一アドレスのメモリ領域に対して行うデータの書き込み回数が極端に多いと、それに合わせて高価な不揮発性メモリチップを選択しなければならない、さらに、書き込みアドレスをランダム化させる方法も提案されてはいるが、的確に書き込み回数と連動して、不揮発性メモリを制御できていなかった、という問題点があった。   However, in the above conventional example, the non-volatile memory chip is selected based on the address with the highest write frequency, so the address with the low write frequency is over-spec, and the original performance of the non-volatile memory can be extracted. I was not there. Also, if the number of data writes to the memory area with the same address is extremely large, an expensive nonvolatile memory chip must be selected accordingly, and a method for randomizing the write address has also been proposed. However, there was a problem that the nonvolatile memory could not be controlled accurately in conjunction with the number of times of writing.

本発明は、以上の点に着目して成されたもので、不揮発性メモリに対して、書き込み頻度を平準化させるインクジェット記録装置の不揮発性メモリ書き込み制御方法を提供することを目的とする。   The present invention has been made paying attention to the above points, and an object of the present invention is to provide a nonvolatile memory writing control method for an ink jet recording apparatus that equalizes the writing frequency with respect to the nonvolatile memory.

上記課題を解決するために、本発明は同一アドレスのメモリ領域に対して行うデータの書き込み回数に制限のある不揮発性メモリに対して、書き込み頻度を平準化させる書き込み制御方法であって、不揮発性メモリ内にアドレス置換情報とアドレスカウント情報を持ち、アドレスカウント情報で示す書き込み回数の最大値と最小値の差が「規定値」以上になった時に、最大値と最小値を示すアドレスの内容を置換して、書き込むことにより、同一アドレスが特出して書き込み回数が多くならないように制御し、廉価な不揮発性メモリチップでも搭載可能なインクジェット記録装置を提供することを特徴とする。   In order to solve the above problems, the present invention is a write control method for leveling the write frequency for a non-volatile memory having a limited number of data writes to the memory area of the same address. The address replacement information and address count information are stored in the memory. When the difference between the maximum and minimum write counts indicated by the address count information is greater than or equal to the “specified value”, the contents of the address indicating the maximum and minimum values are displayed. It is characterized by providing an ink jet recording apparatus which can be mounted even on an inexpensive non-volatile memory chip by controlling so that the same address is not specially written and the number of times of writing is increased by writing by replacement.

更にこれを要約すれば、以下の構成に集約できる。   Furthermore, if this is summarized, it can be summarized in the following configuration.

(1)書き込み回数に制限のある不揮発性メモリに対してデータを書き込む制御方法で、前記不揮発性メモリ内に記憶する内容を指示するアドレス指示格納領域とアドレス指示手段と、前記不揮発性メモリ内への書き込む回数を格納するアドレスカウント情報格納領域とアドレスカウント情報手段と、前記アドレスカウント情報の最大値と最小値の差が規定値以上になった時、前記アドレスカウント情報が前記アドレス指示手段により指示される最大値と最小値が示すアドレスを置換する手段と、前記アドレスを置換する手段によりデータを置換する手段を、備えることを特徴とするインクジェット記録装置の不揮発性メモリ書き込み制御方法。   (1) In a control method for writing data to a nonvolatile memory with a limited number of times of writing, an address indication storage area for instructing the contents to be stored in the nonvolatile memory, an address indication means, and the nonvolatile memory When the difference between the maximum value and the minimum value of the address count information exceeds a specified value, the address count information is indicated by the address indication means. A non-volatile memory writing control method for an ink jet recording apparatus, comprising: means for replacing an address indicated by the maximum value and the minimum value, and means for replacing data by the means for replacing the address.

本発明にかかるインクジェット記録装置においては、同一アドレスのメモリ領域に対して行うデータの書き込み回数に制限のある不揮発性メモリに対して、書き込み回数の最大値を持つアドレスと最小値を持つアドレスの内容を入れ替えることにより、書き込み頻度を平準化させ、同一アドレスが特出して書き込み回数が多くならないように制御し、廉価な不揮発性メモリチップでも搭載可能なインクジェット記録装置を提供することが可能となる。   In the ink jet recording apparatus according to the present invention, the contents of the address having the maximum value and the address having the minimum value of the number of times of writing to the nonvolatile memory in which the number of times of data writing to the memory area of the same address is limited Thus, it is possible to provide an ink jet recording apparatus that can level the writing frequency, control the same address so that the number of writing does not increase, and can be mounted even on an inexpensive nonvolatile memory chip.

以下本発明を実施するための最良の形態を、実施例により詳しく説明する。   Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to examples.

図1に示すように、記録装置にはプログラム可能なマイクロプロセッサなどのCPU1(中央処理ユニット)が内蔵されている。ROM2はフォントデータ、記録装置システムを制御するためのCPU1によって実行されるプログラム命令シーケンス、各種制御テーブルを格納する。RAM22はCPU1がROM2に格納されているプログラムを実行している間に、ブラック記録ヘッド11とカラー記録ヘッド12によるプリント出力のため、RAM22内のプリントバッファに、インタフェイス20を通してホストコンピュータ21から送られてきた各種記録データを格納する。   As shown in FIG. 1, the recording apparatus incorporates a CPU 1 (central processing unit) such as a programmable microprocessor. The ROM 2 stores font data, a program instruction sequence executed by the CPU 1 for controlling the recording apparatus system, and various control tables. The RAM 22 is sent from the host computer 21 through the interface 20 to the print buffer in the RAM 22 for print output by the black recording head 11 and the color recording head 12 while the CPU 1 executes the program stored in the ROM 2. Stores various recorded data.

制御ロジックであるところのゲートアレイ8は、記録ヘッド11、12内のノズル用の制御信号を出力するために記録ヘッドドライバ10を制御すると共に、インタフェイス20、CPU1、およびRAM22の間のデータ転送も制御し、さらにDCモータドライバ13、パルスモータドライバ16の制御ロジックを備えている。   The gate array 8 serving as control logic controls the print head driver 10 to output control signals for the nozzles in the print heads 11 and 12, and transfers data between the interface 20, the CPU 1, and the RAM 22. The control logic of the DC motor driver 13 and the pulse motor driver 16 is further provided.

記録装置にはCPUバス7につながっているCPU1、および、記録装置とホストコンピュータ21とを仲介するインタフェイス20が内蔵されている。インタフェイス20は双方向送受信可能な信号経路を備え、ホストコンピュータ21から記録データとコマンドを送受信する。   The recording apparatus includes a CPU 1 connected to the CPU bus 7 and an interface 20 that mediates between the recording apparatus and the host computer 21. The interface 20 has a signal path capable of bidirectional transmission and reception, and transmits and receives recording data and commands from the host computer 21.

DCモータドライバ13は二つのモータ(ラインフィードモータ14、キャリッジモータ15)の制御を司る。ラインフィードモータ14は搬送ローラを駆動して、シートの送りと給排出を制御する。キャリッジモータ15はキャリッジを駆動して、記録ヘッド11、12の走査行上の記録位置への移動を制御する。パルスモータドライバ16も二つのモータ(給紙モータ17、回復モータ18)の制御を司る。給紙モータ17はシートの給送におけるピックアップを制御する。回復モータ18は記録ヘッド11、12のクリーニング、ワイプ、キャップなどの回復動作を制御する。記録ヘッドドライバ10によって制御されるブラック記録ヘッド11とカラー記録ヘッド12は、キャリッジで移動させる取り外し可能なユニットであり、これらのヘッドには記録媒体上に記録画像を形成するためのインク吐出ノズル、ならびに取り外し可能な記録ヘッドの存在や特性に関する情報をフィードバックするヘッドダイオード9が含まれる。   The DC motor driver 13 controls the two motors (line feed motor 14 and carriage motor 15). The line feed motor 14 drives the conveying roller to control sheet feeding and feeding / discharging. The carriage motor 15 drives the carriage to control the movement of the recording heads 11 and 12 to the recording position on the scanning line. The pulse motor driver 16 also controls the two motors (the paper feed motor 17 and the recovery motor 18). A sheet feeding motor 17 controls pickup in sheet feeding. The recovery motor 18 controls recovery operations such as cleaning, wiping, and cap of the recording heads 11 and 12. The black recording head 11 and the color recording head 12 controlled by the recording head driver 10 are detachable units that are moved by a carriage. These heads include ink ejection nozzles for forming a recording image on a recording medium, Also included is a head diode 9 that feeds back information regarding the presence and characteristics of the removable recording head.

記録ヘッドドライバ10から送られる電気信号に基づいて、記録ヘッド11、12の電気熱変換素子を駆動し、インクに膜沸騰を生起させるための熱エネルギーを発生させる。記録ヘッド11、12の温度によってインクの吐出量が変化するので、記録装置内の周辺温度を測定するサーミスタ3と記録ヘッド11、12のヘッドダイオード9からの温度出力が監視される。   Based on the electrical signal sent from the recording head driver 10, the electrothermal conversion elements of the recording heads 11 and 12 are driven to generate thermal energy for causing film boiling in the ink. Since the ink ejection amount varies depending on the temperature of the recording heads 11 and 12, the temperature output from the thermistor 3 for measuring the ambient temperature in the recording apparatus and the head diode 9 of the recording heads 11 and 12 is monitored.

不揮発性メモリ19はチェックサム19a、インクカートリッジ内のインク状況19b、インク消費量履歴19c、エラー発生状況履歴19d、ヘッドの回復履歴19e、記録ヘッドアライメントパラメータ19f、ユーザ使用状況履歴19g、センサ補正値19h、モータの駆動履歴19i、工場出荷時調整値19j、CD−R印刷位置補正値19k、プリンタ状態19l、記録ヘッド初期状態カウント19m、仕向け地情報19n、廃インクカウンタ19o、アドレス置換情報19r、アドレスカウント情報19sなどプリンタ情報を格納するための不揮発性のメモリである。Buffer1 22a、Buffer2 22b及びBuffer3 22cは不揮発性メモリの内容の読み込み、書き込み、比較に使用されるRAM22上のバッファである。   The nonvolatile memory 19 includes a checksum 19a, an ink status 19b in the ink cartridge, an ink consumption history 19c, an error occurrence status history 19d, a head recovery history 19e, a recording head alignment parameter 19f, a user usage status history 19g, and a sensor correction value. 19h, motor drive history 19i, factory adjustment value 19j, CD-R printing position correction value 19k, printer state 19l, recording head initial state count 19m, destination information 19n, waste ink counter 19o, address replacement information 19r, This is a non-volatile memory for storing printer information such as address count information 19s. Buffer 1 22a, Buffer 2 22b, and Buffer 3 22c are buffers on the RAM 22 used for reading, writing, and comparing the contents of the nonvolatile memory.

記録装置には各種のセンサ4が搭載されている。PEセンサ4a(ペーパエンドセンサ)は通過するシートを検出する。ASFセンサ4b(給送センサ)は給送ユニットのカムの回転位置を検出する。PGセンサ4c(パージセンサ)はヘッドの回復ユニットのカムの位置を検出する。インク残検センサ4dは光学センサであり、キャリッジに搭載されたインクタンクが、キャリッジを移動させることによりセンサ上を通る時の光の透過率でインクタンク内のインクの有無を検出する。その他にカバースイッチ5cに連動するカバーセンサ、キャリッジの位置情報を読み取るためのエンコーダ4e、LFの位置情報を読み取るためのエンコーダ4eなどのセンサもここに含まれる。パワースイッチ5a、リジュ−ムスイッチ5bなどのユーザ作動用のスイッチ5が装備されている。さらに、ユーザに記録装置の状態を知らせる表示用のLED6も装備されている。タイマ23は各モータの制御に係わっている。なお、電源24は記録装置の駆動用電源を供給する。   Various sensors 4 are mounted on the recording apparatus. The PE sensor 4a (paper end sensor) detects a passing sheet. The ASF sensor 4b (feed sensor) detects the rotational position of the cam of the feed unit. The PG sensor 4c (purge sensor) detects the cam position of the head recovery unit. The ink remaining detection sensor 4d is an optical sensor, and detects the presence or absence of ink in the ink tank by the light transmittance when the ink tank mounted on the carriage passes over the sensor by moving the carriage. In addition, sensors such as a cover sensor interlocked with the cover switch 5c, an encoder 4e for reading the position information of the carriage, and an encoder 4e for reading the position information of the LF are also included here. A switch 5 for user operation such as a power switch 5a and a resume switch 5b is provided. Further, a display LED 6 is provided for informing the user of the status of the recording apparatus. The timer 23 is involved in the control of each motor. Note that the power supply 24 supplies power for driving the recording apparatus.

図2は16ビット単位でアクセス可能な1024バイトの不揮発性メモリ19のオリジナルマップで、不揮発性メモリのエラーリカバリー用のチェックサム19a、インクカートリッジ内のインク状況19b、インク消費量履歴19c、各種のエラー発生状況履歴19d、ヘッドの回復履歴19e、記録ヘッドアライメントパラメータ19f、ユーザのプリンタ使用状況履歴19g、各種センサ4のセンサ補正値19h、モータ14、15、17、18の駆動履歴19i、工場出荷時調整値19j、CD−R印刷位置補正値19k、キャッピング中、クリーニング中などのプリンタ状態19l、記録ヘッドの初期回復動作用の記録ヘッド初期状態カウント19m、仕向け地情報19n、製品寿命を示すところの廃インクカウンタ19o、不揮発性メモリの空きエリア19p、不揮発性メモリのバックアップ領域19q、論理的なアドレスを生成するところのアドレス置換情報19r、物理アドレスの書き込み回数をカウントするところのアドレスカウント情報19sなどプリンタ情報を格納するための不揮発性のメモリの内容を示す。   FIG. 2 is an original map of a non-volatile memory 19 of 1024 bytes that can be accessed in 16-bit units. The checksum 19a for error recovery of the non-volatile memory, the ink status 19b in the ink cartridge, the ink consumption history 19c, Error occurrence status history 19d, head recovery history 19e, recording head alignment parameter 19f, user printer usage status history 19g, sensor correction value 19h of various sensors 4, driving history 19i of motors 14, 15, 17, 18 and factory shipment Time adjustment value 19j, CD-R printing position correction value 19k, printer state 19l during capping and cleaning, recording head initial state count 19m for initial recovery operation of recording head, destination information 19n, and product life Waste ink counter 19o, non-volatile In order to store printer information such as a free area 19p of the volatile memory, a backup area 19q of the non-volatile memory, address replacement information 19r for generating a logical address, and address count information 19s for counting the number of physical address writes The contents of the non-volatile memory are shown.

それぞれの内容には図2で指示されたアドレスが割り振られている。バックアップ領域にはアドレス0から254の範囲と同じデータが格納されている。アドレス置換情報19rはアドレス0から254の範囲のデータエリアの論理的なアドレスを示す、不変の固定エリアに割り振られている。例えば、アドレス206用19r2にはデータ“206”が格納されていて、アドレス置換情報19r内のアドレス206用19r2はデータ領域の206番地を指し示す。同様に、アドレス置換情報19r内のアドレス208用19r3はデータ領域の208番地を指し示す。アドレスカウント情報19sはデータ領域アドレス0から254の範囲の書き込み回数が格納されている。例えば、アドレス206用19s2にはデータ“10”が格納されていて、データ領域の206番地の書き込み回数10回を表す。   Each content is assigned the address indicated in FIG. In the backup area, the same data as the range of addresses 0 to 254 is stored. The address replacement information 19r is allocated to an invariant fixed area indicating a logical address of a data area in the range of addresses 0 to 254. For example, data “206” is stored in 19r2 for address 206, and 19r2 for address 206 in address replacement information 19r indicates 206 in the data area. Similarly, 19r3 for the address 208 in the address replacement information 19r indicates the 208 address of the data area. The address count information 19s stores the number of writes in the range of data area addresses 0 to 254. For example, data “10” is stored in the address 206 19s2 and represents the number of times of writing at the address 206 in the data area.

アドレス0から254の範囲はアドレス置換の対象エリアで、アドレス置換情報19rが変更されるということは、データ領域アドレス0から254の範囲の論理アドレスが更新されことを意味する。アドレスカウント情報19sは一意に同じアドレスを示し、アドレス置換情報19rが変わっても、アドレスカウント情報19sが示すアドレスは変わることはなく、常に示すアドレスの書き込み回数のみを表す。   The range of addresses 0 to 254 is an address replacement target area, and changing the address replacement information 19r means that the logical address in the range of data area addresses 0 to 254 is updated. The address count information 19s uniquely indicates the same address, and even if the address replacement information 19r changes, the address indicated by the address count information 19s does not change, and always represents only the write count of the indicated address.

アドレス置換情報19rの変更タイミングは不揮発性メモリの書き込み回数を示すアドレスカウント情報19sの最大値と最小値が「規定値」を超えた時のみであり、不揮発性メモリへの書き込み時、常に書かれることはない。アドレス置換情報19rの変更に関わる「規定値」は不揮発性メモリの書き込み制限回数により適当な値が求められる。データ領域のアドレス置換の対象エリアは、不揮発性メモリの書き込み回数を示すアドレスカウント情報19sの最大値と最小値を示す論理アドレスを入れ替えることで、書き込み回数が多いアドレスと書き込み回数が少ないアドレスの置換を行うことになり、1アドレスへの書き込み頻度は激減し、不揮発性メモリ書き込み回数は平準化する。   The change timing of the address replacement information 19r is only when the maximum value and the minimum value of the address count information 19s indicating the number of times of writing to the nonvolatile memory exceed the “specified value”, and is always written when writing to the nonvolatile memory. There is nothing. As the “specified value” related to the change of the address replacement information 19r, an appropriate value is obtained depending on the number of times the nonvolatile memory can be written. The address replacement target area in the data area is a replacement of an address with a high write count and an address with a low write count by switching the logical address indicating the maximum value and the minimum value of the address count information 19s indicating the write count of the nonvolatile memory. Thus, the frequency of writing to one address is drastically reduced, and the number of times of nonvolatile memory writing is leveled.

また、本構成はバックアップ領域を含めたデータ領域のアドレス0から510の範囲と、アドレス置換情報19r、アドレスカウント情報19sのアドレス512から1022の範囲を入れ替えることも可能な構成を取っている。   In addition, this configuration is configured such that the range of addresses 0 to 510 in the data area including the backup area and the ranges of addresses 512 to 1022 of the address replacement information 19r and address count information 19s can be interchanged.

図3は不揮発性メモリ19の論理アドレス情報変更後のメモリマップである。アドレス置換情報19r内のアドレス208用19r3のデータは“210”でデータ領域の210番地を指し示す。また、アドレス置換情報19r内のアドレス210用19r4のデータは“208”でデータ領域の208番地を指し示す。つまり、図2のデータ領域のアドレス208のセンサ補正値19hが、論理アドレス変更後の図3ではアドレス210を示し、図2のデータ領域のアドレス210のモータ駆動履歴19iが、論理アドレス変更後の図3ではアドレス208を示すことになる。   FIG. 3 is a memory map after the logical address information of the nonvolatile memory 19 is changed. The data of 19r3 for the address 208 in the address replacement information 19r is “210” indicating the address 210 of the data area. Further, the data of the address 210 for 19r4 in the address replacement information 19r is “208”, which indicates the address 208 of the data area. That is, the sensor correction value 19h at the address 208 in the data area in FIG. 2 indicates the address 210 in FIG. 3 after the logical address change, and the motor drive history 19i at the address 210 in the data area in FIG. In FIG. 3, the address 208 is indicated.

同様にして、アドレス置換情報19r内のアドレス214用19r6のデータは“218”でデータ領域の218番地を指し示す。また、アドレス置換情報19r内のアドレス218用19r8のデータは“214”でデータ領域の214番地を指し示す。つまり、図2のデータ領域のアドレス214のCD−R印刷位置補正値19kが、論理アドレス変更後の図3ではアドレス218を示し、図2のデータ領域のアドレス218の記録ヘッド初期状態カウント19mが、論理アドレス変更後の図3ではアドレス214を示すことになる。   Similarly, the data of the address 214 19r6 in the address replacement information 19r is “218”, which indicates the address 218 of the data area. Further, the data of the address 218 19r8 in the address replacement information 19r is “214”, which indicates the 214th address of the data area. That is, the CD-R print position correction value 19k at the address 214 in the data area in FIG. 2 indicates the address 218 in FIG. 3 after the logical address change, and the print head initial state count 19m at the address 218 in the data area in FIG. In FIG. 3 after changing the logical address, the address 214 is shown.

図4において、パワーオフ、回復終了などによる不揮発性メモリ書き込みイベントが発生すると、ROM2(図1参照)に格納されている、インクジェット記録装置の不揮発性メモリ書き込みのプログラムがスタートする(S4−1)。この不揮発性メモリ書き込みプログラムには書き込むべき情報が指示されている。S4−2で不揮発性メモリの内容をRAM22のBuffer1 22aへ読み込む。S4−3では読み込んだBuffer1 22aの全内容をRAM22のBuffer2 22bへコピーする。S4−4では指示された書き込むべき情報をBuffer1内のアドレス置換情報19rを基に書き込みデータの位置を求め、Buffer1 22aの各種データを更新する。S4−5ではBuffer1 22aのアドレスカウント情報19sを更新する。S4−6でBuffer1 22a内のデータ領域のデータが、アドレスカウント情報19sを基に置換される。S4−7でBuffer1 22a全体のチェックサムが計算され、Buffer1 22aのチェックサム19aが更新される。S4−8ではBuffer1 22aとBuffer2 22bの物理アドレスによるデータの比較を行う。S4−9で比較されたBuffer1 22aとBuffer2 22bの異なるデータのみが、不揮発性メモリに書き込まれ、S4−10で不揮発性メモリ書き込み処理を終了する。   In FIG. 4, when a non-volatile memory writing event occurs due to power-off, recovery completion, etc., the non-volatile memory writing program of the inkjet recording apparatus stored in the ROM 2 (see FIG. 1) starts (S4-1). . Information to be written is instructed to the nonvolatile memory writing program. In S 4-2, the contents of the nonvolatile memory are read into Buffer 1 22 a of the RAM 22. In S4-3, the entire contents of the read Buffer 1 22a are copied to the Buffer 2 22b of the RAM 22. In S4-4, the position of the write data is obtained based on the instructed information to be written based on the address replacement information 19r in Buffer 1, and various data in Buffer 1 22a are updated. In S4-5, the address count information 19s of Buffer1 22a is updated. In S4-6, the data in the data area in Buffer1 22a is replaced based on the address count information 19s. In S4-7, the checksum of the entire Buffer1 22a is calculated, and the checksum 19a of the Buffer1 22a is updated. In S4-8, data comparison is performed based on the physical addresses of Buffer1 22a and Buffer2 22b. Only the different data of Buffer1 22a and Buffer2 22b compared in S4-9 is written to the nonvolatile memory, and the nonvolatile memory writing process is terminated in S4-10.

図5において、図4のS4−6で示されたアドレス置換処理のプログラムがスタートする(S5−1)。S5−2でBuffer3 22cを初期化して、後述の該当アドレスをすべて未処理にする。S5−3では不揮発性メモリから読み込まれたRAM22のBuffer1 22aのアドレスカウント情報の最大値を見つける。S5−4では見つけ出されたアドレスカウントの最大値に該当するアドレスは処理済かどうか、Buffer3 22c内をチェックする。既に処理済みの時は、S5−3に戻り、次に大きい値を持つアドレスカウント情報を捜す。未処理の時はS5−5で、不揮発性メモリから読み込まれたRAM22のBuffer1 22aのアドレスカウント情報の最小値を見つける。S5−6では見つけ出されたアドレスカウントの最小値に該当するアドレスは処理済かどうか、Buffer3 22c内をチェックする。既に処理済みの時は、S5−5に戻り、次に小さい値を持つアドレスカウント情報を捜す。未処理の時はS5−7で、アドレスカウントの最大値と最小値の差が「規定値」以上か調べる。「規定値」以上でない時は、S5−11へ遷移し、処理を終了する。「規定値」以上の時はS5−8でBuffer1 22aの未処理のアドレスカウントの最大値と最小値が示すアドレス置換情報を入れ替える。また、S5−9で同じく、Buffer1 22aの未処理のアドレスカウントの最大値と最小値が示すデータを入れ替える。S5−10ではBuffer3 22c内の該当アドレスを処理済にして、S5−3へ戻る。   In FIG. 5, the address replacement process program shown in S4-6 of FIG. 4 starts (S5-1). In S5-2, the Buffer3 22c is initialized, and all corresponding addresses described later are unprocessed. In S5-3, the maximum value of the address count information of Buffer1 22a of the RAM 22 read from the nonvolatile memory is found. In S5-4, it is checked in Buffer3 22c whether the address corresponding to the maximum value of the found address count has been processed. If it has already been processed, the process returns to S5-3 to search for address count information having the next largest value. When not yet processed, the minimum value of the address count information of Buffer1 22a of the RAM 22 read from the nonvolatile memory is found in S5-5. In S5-6, it is checked in Buffer3 22c whether or not the address corresponding to the minimum value of the found address count has been processed. If already processed, the process returns to S5-5 to search for address count information having the next smallest value. When not yet processed, it is checked in S5-7 whether the difference between the maximum value and the minimum value of the address count is equal to or greater than the “specified value”. If it is not equal to or greater than the “specified value”, the process proceeds to S5-11, and the process ends. If it is equal to or greater than the “specified value”, the address replacement information indicated by the maximum value and the minimum value of the unprocessed address count of Buffer1 22a is exchanged in S5-8. Similarly, in S5-9, the data indicated by the maximum value and the minimum value of the unprocessed address count of Buffer1 22a is exchanged. In S5-10, the corresponding address in Buffer3 22c is processed, and the process returns to S5-3.

インクジェット記録装置の制御ブロック図である。It is a control block diagram of an inkjet recording device. インクジェット記録装置の不揮発性メモリの詳細マップである。It is a detailed map of the non-volatile memory of an inkjet recording device. インクジェット記録装置の不揮発性メモリの論理アドレス置換後のメモリマップである。4 is a memory map after replacement of a logical address of a nonvolatile memory of an inkjet recording apparatus. インクジェット記録装置の不揮発性メモリの書き込みのフローチャートである。It is a flowchart of writing of the non-volatile memory of an inkjet recording device. インクジェット記録装置の不揮発性メモリのアドレス置換処理のフローチャートである。It is a flowchart of the address replacement process of the non-volatile memory of an inkjet recording device.

符号の説明Explanation of symbols

1 CPU
2 ROM
3 サーミスタ
4 センサ
4a PEセンサ
4b ASFセンサ
4c PGセンサ
4d インク残検センサ
4e CR、LFエンコーダ
5 スイッチ
5a PowerSW
5b ResumeSW
5c CoverSW
6 LED
7 CPUバス
8 ゲートアレイ
9 ヘッドダイオード
10 記録ヘッドドライバ
11 ブラック記録ヘッド
12 カラー記録ヘッド
13 DCモータドライバ
14 ラインフィードモータ
15 キャリッジモータ
16 パルスモータドライバ
17 給紙モータ
18 回復モータ
19 不揮発性メモリ
19a チェックサム
19b インクカートリッジ内のインク状況
19c インク消費量履歴
19d エラー発生状況履歴
19e ヘッドの回復履歴
19f 記録ヘッドアライメントパラメータ
19g ユーザ使用状況履歴
19h センサ補正値
19i モータの駆動履歴
19j 工場出荷時調整値
19k CD−R印刷位置補正値
19l プリンタ状態
19m 記録ヘッド初期状態カウント
19n 仕向け地情報
19o 廃インクカウンタ
19p 空きエリア
19q バックアップ領域
19r アドレス置換情報
19s アドレスカウント情報
20 インタフェイス
21 ホストコンピュータ
22 RAM
22a Buffer1
22b Buffer2
22c Buffer3
23 タイマ
24 電源
1 CPU
2 ROM
3 Thermistor 4 Sensor 4a PE sensor 4b ASF sensor 4c PG sensor 4d Residual ink detection sensor 4e CR, LF encoder 5 Switch 5a PowerSW
5b ResumeSW
5c CoverSW
6 LED
7 CPU bus 8 Gate array 9 Head diode 10 Recording head driver 11 Black recording head 12 Color recording head 13 DC motor driver 14 Line feed motor 15 Carriage motor 16 Pulse motor driver 17 Paper feed motor 18 Recovery motor 19 Non-volatile memory 19a Checksum 19b Ink status in ink cartridge 19c Ink consumption history 19d Error occurrence history 19e Head recovery history 19f Recording head alignment parameter 19g User usage history 19h Sensor correction value 19i Motor drive history 19j Factory adjustment value 19k CD- R printing position correction value 19l Printer state 19m Recording head initial state count 19n Destination information 19o Waste ink counter 19p Empty area 19q Backup area 19r address replacement information 19s address count information 20 interface 21 the host computer 22 RAM
22a Buffer 1
22b Buffer2
22c Buffer3
23 Timer 24 Power supply

Claims (7)

書き込み回数に制限のある不揮発性メモリに対してデータを書き込む制御方法で、前記不揮発性メモリ内に記憶する内容を指示するアドレス指示格納領域とアドレス指示手段と、前記不揮発性メモリ内への書き込む回数を格納するアドレスカウント情報格納領域とアドレスカウント情報手段と、前記アドレスカウント情報の最大値と最小値の差が規定値以上になった時、前記アドレスカウント情報が前記アドレス指示手段により指示される最大値と最小値が示すアドレスを置換する手段と、前記アドレスを置換する手段によりデータを置換する手段を、備えることを特徴とするインクジェット記録装置の不揮発性メモリ書き込み制御方法。   In a control method for writing data to a nonvolatile memory with a limited number of times of writing, an address indication storage area for instructing contents to be stored in the nonvolatile memory, an address indication means, and the number of times of writing to the nonvolatile memory Address count information storage area and address count information means, and when the difference between the maximum value and the minimum value of the address count information exceeds a specified value, the address count information is indicated by the address indication means. A nonvolatile memory writing control method for an ink jet recording apparatus, comprising: means for replacing an address indicated by a value and a minimum value; and means for replacing data by the means for replacing the address. 不揮発性メモリ内に記憶するアドレス指示格納領域全域とアドレスカウント情報格納領域全域とを置換することを特徴とする、請求項1に記載のインクジェット記録装置の不揮発性メモリ書き込み制御方法。   The nonvolatile memory writing control method for an ink jet recording apparatus according to claim 1, wherein the entire address indication storage area and the entire address count information storage area stored in the nonvolatile memory are replaced. 不揮発性メモリ内に記憶するアドレス指示格納領域とアドレスカウント情報格納領域のアドレスコントロール領域全域とデータ領域全域とを置換することを特徴とする、請求項1に記載のインクジェット記録装置の不揮発性メモリ書き込み制御方法。   2. The nonvolatile memory writing of an ink jet recording apparatus according to claim 1, wherein the entire address control area and the entire data area of the address indication storage area and the address count information storage area stored in the nonvolatile memory are replaced. Control method. 不揮発性メモリ内に記憶するアドレス指示格納領域全域とアドレスカウント情報格納領域全域とを置換するタイミングを、タイマより求めることを特徴とする、請求項2に記載のインクジェット記録装置の不揮発性メモリ書き込み制御方法。   3. The nonvolatile memory write control for an ink jet recording apparatus according to claim 2, wherein a timing for replacing the entire address indication storage area and the entire address count information storage area stored in the nonvolatile memory is obtained from a timer. Method. 不揮発性メモリ内に記憶するアドレス指示格納領域とアドレスカウント情報格納領域のアドレスコントロール領域全域とデータ領域全域とを置換するタイミングを、タイマより求めることことを特徴とする、請求項3に記載のインクジェット記録装置の不揮発性メモリ書き込み制御方法。   4. The inkjet according to claim 3, wherein a timing for replacing the entire address control area and the entire data area of the address indication storage area and the address count information storage area stored in the nonvolatile memory is obtained from a timer. A non-volatile memory writing control method for a recording apparatus. 不揮発性メモリ内に記憶するアドレス指示手段は前記不揮発性メモリ内データ領域の全アドレスを指示可能なことを特徴とする、請求項1に記載のインクジェット記録装置の不揮発性メモリ書き込み制御方法。   2. The non-volatile memory writing control method for an ink jet recording apparatus according to claim 1, wherein the address indicating means stored in the non-volatile memory can indicate all addresses of the data area in the non-volatile memory. 不揮発性メモリ内に記憶するアドレスカウント情報手段は前記不揮発性メモリ内データ領域の全アドレスを指示可能なことを特徴とする、請求項1に記載のインクジェット記録装置の不揮発性メモリ書き込み制御方法。   2. The non-volatile memory writing control method for an ink jet recording apparatus according to claim 1, wherein the address count information means stored in the non-volatile memory can indicate all addresses of the data area in the non-volatile memory.
JP2004246574A 2004-08-26 2004-08-26 Nonvolatile memory writing control method for ink jet recording apparatus Withdrawn JP2006065550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004246574A JP2006065550A (en) 2004-08-26 2004-08-26 Nonvolatile memory writing control method for ink jet recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004246574A JP2006065550A (en) 2004-08-26 2004-08-26 Nonvolatile memory writing control method for ink jet recording apparatus

Publications (1)

Publication Number Publication Date
JP2006065550A true JP2006065550A (en) 2006-03-09

Family

ID=36112004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004246574A Withdrawn JP2006065550A (en) 2004-08-26 2004-08-26 Nonvolatile memory writing control method for ink jet recording apparatus

Country Status (1)

Country Link
JP (1) JP2006065550A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009506389A (en) * 2005-03-14 2009-02-12 サンディスク アイエル リミテッド Method for achieving wear leveling in flash memory using relative grades
JP2011175532A (en) * 2010-02-25 2011-09-08 Nec Corp Control device, memory control method and program
JP2016206789A (en) * 2015-04-17 2016-12-08 富士通株式会社 Memory controller, semiconductor storage unit and memory control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009506389A (en) * 2005-03-14 2009-02-12 サンディスク アイエル リミテッド Method for achieving wear leveling in flash memory using relative grades
JP2011175532A (en) * 2010-02-25 2011-09-08 Nec Corp Control device, memory control method and program
JP2016206789A (en) * 2015-04-17 2016-12-08 富士通株式会社 Memory controller, semiconductor storage unit and memory control method

Similar Documents

Publication Publication Date Title
JP5609436B2 (en) Data storage processing apparatus, printing apparatus and data storage processing method in printing apparatus
CN102501613B (en) Storing device and consumable container
JP2010009500A (en) Nonvolatile memory controller and control method, and inkjet recorder
JP2013218371A (en) Information processor and data storage processing method in the same
JP5728855B2 (en) Data storage processing apparatus, printing apparatus and data storage processing method in printing apparatus
US20130278699A1 (en) Printer and print method
JP2006065550A (en) Nonvolatile memory writing control method for ink jet recording apparatus
WO2016115985A1 (en) Imaging box chip, and reading and writing method for ink volume information about chip response imaging apparatus
US6002846A (en) Printing apparatus and method for protecting information in printing apparatus
US10585633B2 (en) Method for recording chip usage state information, chip of imaging cartridge and imaging cartridge
JP2001105699A (en) Printer, printer system, and error detection method in printer
KR101037935B1 (en) Method and apparatus for detecting consumable life information of an image forming apparatus
JP2014138265A (en) Image forming apparatus
CN109388041B (en) Image forming apparatus and method for managing consumable supplies
JP2012220963A (en) Recording device, control method of recording device, and program
JP4075943B2 (en) Printer, printer system, and error detection method in printer
JP4193002B2 (en) Printer and error check method in printer
JP2004114430A (en) Inkjet printer control method, program for realizing the same, recording medium, inkjet printer and printer driver
JP4051859B2 (en) Ink remaining amount management device and ink remaining amount management method
JP2009139874A (en) Image forming apparatus
JP2005177993A (en) Printing apparatus, printing agent storage container for the apparatus, and printing system
US9880795B2 (en) Recording system, recording apparatus, information processing apparatus, and recording control method that shift range of recording elements
JP2005149211A (en) Data recording apparatus and data rewriting method
JP3618990B2 (en) Recording device
US8553240B2 (en) Printing apparatus and control method of the same

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071106