JP2009119823A - Control method of image formation device and this device - Google Patents

Control method of image formation device and this device Download PDF

Info

Publication number
JP2009119823A
JP2009119823A JP2007299188A JP2007299188A JP2009119823A JP 2009119823 A JP2009119823 A JP 2009119823A JP 2007299188 A JP2007299188 A JP 2007299188A JP 2007299188 A JP2007299188 A JP 2007299188A JP 2009119823 A JP2009119823 A JP 2009119823A
Authority
JP
Japan
Prior art keywords
data
printing
image
rewriting
nonvolatile memory
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
JP2007299188A
Other languages
Japanese (ja)
Inventor
Shozo Shibato
省三 柴戸
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007299188A priority Critical patent/JP2009119823A/en
Publication of JP2009119823A publication Critical patent/JP2009119823A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To enable to suitably deal with the case that the power supply of an apparatus is cut off during data rewriting in a nonvolatile memory in an image formation device which equips the nonvolatile memory which memorizes and stores a control program and which can electrically rewrite the data and its control method. <P>SOLUTION: The image formation device equips a printing means for printing an image on recording material, the nonvolatile memory which memorizes the control program for controlling the printing means and which can electrically rewrites the data, and a control means for executing a control process for controlling the printing means based on the control program and a rewriting process for rewriting at least the part of the data memorized in the nonvolatile memory. The control means executes a finishing process for shifting the printing means to a finishing state capable of shutting off the power supply prior to the execution of the rewriting process when the rewriting process is executed. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、制御プログラムを記憶保存するとともにデータを電気的に書き換え可能な不揮発性メモリを備えた画像形成装置およびその制御方法に関するものである。   The present invention relates to an image forming apparatus provided with a nonvolatile memory capable of storing and saving a control program and electrically rewriting data, and a control method therefor.

記録材上に画像を形成する印刷手段を備え、マイクロプロセッサ等の制御手段により制御プログラムを実行することで各部の動作を制御する画像形成装置においては、バージョンアップ等の便宜のため、制御プログラムを電気的に書き換え可能な不揮発性メモリに記憶させたものがある。例えば、特許文献1に記載の技術においては、CPUが実行すべき制御プログラムをフラッシュROM上に記憶しておき、当該制御プログラムをダウンロード更新するときには、フラッシュROMに記憶されているダウンロード用プログラムの複製を別のRAM上に作成し、該RAM上のプログラムをCPUがフェッチし実行することによって、フラッシュROM上のプログラムを書き換えるようにしている。このようにすることで、制御プログラムおよび他のデータの両方を同一のフラッシュROMに記憶させることができる。   In an image forming apparatus that includes a printing unit that forms an image on a recording material and controls the operation of each unit by executing a control program by a control unit such as a microprocessor, the control program is installed for convenience of version upgrades. Some are stored in an electrically rewritable nonvolatile memory. For example, in the technique described in Patent Document 1, a control program to be executed by the CPU is stored in the flash ROM, and when the control program is downloaded and updated, a copy of the download program stored in the flash ROM is copied. Is created on another RAM, and the program on the flash ROM is rewritten by the CPU fetching and executing the program on the RAM. In this way, both the control program and other data can be stored in the same flash ROM.

特開平10−228373号公報JP 10-228373 A

上記した従来技術のように制御プログラムを記憶したROMの書き換えが可能な機器においては、ROMの書き換え中には当該ROMに記憶されている制御プログラムを読み出し実行することができない。このため、データの書き換え中に何らかの例外的な事象が発生したときに、これに対応することができない場合があった。例外的な事象としては様々なものが考えられ、それらの全てに対応するための制御プログラムをROM外に予め用意しておくことは大きなコストの無駄となり現実的でないからである。その結果、例えば、データの書き換え中に装置への電源供給が停止したり、ユーザによって電源スイッチが切られたりした場合、電源が再投入されても装置を正常な状態に復帰させることができなくなるという問題が生じることがあった。   In a device capable of rewriting a ROM storing a control program as in the above-described prior art, the control program stored in the ROM cannot be read and executed while the ROM is being rewritten. For this reason, when an exceptional event occurs during data rewriting, it may not be possible to cope with this. This is because there are various exceptional events, and preparing a control program corresponding to all of them in advance outside the ROM is wasteful in cost and not practical. As a result, for example, when the power supply to the apparatus is stopped during data rewriting or the power switch is turned off by the user, the apparatus cannot be restored to the normal state even when the power is turned on again. There was a problem that occurred.

この発明は上記課題に鑑みなされたものであり、制御プログラムを記憶保存するとともにデータを電気的に書き換え可能な不揮発性メモリを備えた画像形成装置およびその制御方法において、不揮発性メモリ内のデータ書き換え中に装置の電源が切られた場合に適切な対応が可能な技術を提供することを目的とする。   SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an image forming apparatus including a nonvolatile memory that can store and save a control program and can electrically rewrite data, and a control method thereof. It is an object of the present invention to provide a technique capable of appropriately responding when the apparatus is turned off.

この発明にかかる画像形成装置は、上記目的を達成するため、記録材上に画像を印刷する印刷手段と、前記印刷手段を制御するための制御プログラムを記憶する、データを電気的に書き換え可能な不揮発性メモリと、前記制御プログラムに基づいて前記印刷手段を制御する制御処理と、前記不揮発性メモリの記憶領域のうち指定した領域のデータを書き換える書き換え処理とを実行する制御手段とを備え、前記制御手段は、前記書き換え処理を実行するときには、該実行に先立って、前記印刷手段を電源の遮断が可能な終了状態に移行させる終了処理を実行することを特徴としている。   In order to achieve the above object, an image forming apparatus according to the present invention stores a printing unit for printing an image on a recording material and a control program for controlling the printing unit, and can electrically rewrite data. A non-volatile memory, a control process for controlling the printing means based on the control program, and a control means for executing a rewrite process for rewriting data in a specified area of the storage area of the non-volatile memory, When executing the rewriting process, the control means executes an end process for shifting the printing means to an end state in which the power can be shut off prior to the execution.

このように構成された発明では、不揮発性メモリの書き換えに先立って印刷手段の終了処理を行っている。書き換え処理中に装置の電源が切られると、制御手段は本来実行すべき電源オフ時の処理を行うことができないため、印刷手段が動作状態のまま電源が落とされてしまうことになる。その結果、電源の復旧後に装置を正常な状態に復帰させることができない場合が生じる。これに対し、本発明では、事前に終了処理を行って印刷手段を電源の遮断が可能な状態に移行させているので、書き換え処理の途中で装置の電源が切られたとしても、電源の復旧後には装置を正常な状態に復帰させることができる。このように、この発明によれば、不揮発性メモリ内のデータ書き換え中に装置の電源が切られた場合にも適切に対応することができる。   In the invention configured as described above, the ending process of the printing unit is performed prior to the rewriting of the nonvolatile memory. If the power of the apparatus is turned off during the rewriting process, the control unit cannot perform the power-off process that should be originally executed, and thus the power is turned off while the printing unit is in an operating state. As a result, there are cases where the apparatus cannot be returned to a normal state after the power supply is restored. On the other hand, in the present invention, since the termination process is performed in advance and the printing unit is shifted to a state where the power can be shut down, the power is restored even if the apparatus is turned off during the rewriting process. Later, the device can be returned to a normal state. Thus, according to the present invention, it is possible to appropriately cope with a case where the power of the apparatus is turned off during data rewriting in the nonvolatile memory.

ここで、データを一時的に記憶可能な記憶手段をさらに備えるとともに、前記書き換え処理に対応する制御プログラムが前記不揮発性メモリに記憶されており、前記書き換え処理のうち前記不揮発性メモリへの書き込み動作を含む少なくとも一部は、前記不揮発性メモリから前記記憶手段上に複製された制御プログラムに基づいて実行されるように構成されてもよい。   Here, the apparatus further includes a storage unit capable of temporarily storing data, and a control program corresponding to the rewriting process is stored in the nonvolatile memory, and a writing operation to the nonvolatile memory in the rewriting process is performed. May be configured to be executed based on a control program copied from the nonvolatile memory onto the storage unit.

不揮発性メモリを書き換える際には、制御プログラムを含む同メモリからのデータの読み出しを一定期間行うことができなくなり、結果として制御手段は不揮発性メモリ上の制御プログラムに基づく処理を実行できなくなる。これに対し、この発明では、不揮発性プログラムに記憶されている制御プログラムの少なくとも一部を他の記憶手段に複製しこれを制御手段が実行することで、不揮発性メモリへのデータの書き換えを行っている途中でも、制御手段は必要な処理を実行することができる。また、事前に終了処理を行うことにより、記憶手段に複製すべき制御プログラムに終了処理に対応するものを含める必要がなくなる。   When the nonvolatile memory is rewritten, the data including the control program cannot be read from the memory for a certain period, and as a result, the control unit cannot execute the process based on the control program on the nonvolatile memory. On the other hand, in the present invention, at least a part of the control program stored in the nonvolatile program is copied to another storage means, and the control means executes this to rewrite the data in the nonvolatile memory. Even during the operation, the control means can execute necessary processing. Further, by performing the end process in advance, it is not necessary to include a program corresponding to the end process in the control program to be copied to the storage means.

このような画像形成装置は、例えば、前記印刷手段が外部媒体から与えられる画像データと前記不揮発性メモリに記憶されている画像素材データとを合成してなる合成画像を前記記録材上に印刷可能に構成される一方、前記制御手段は、前記書き換え処理により、前記不揮発性メモリに記憶されている前記画像素材データを書き換えるものであってもよい。   In such an image forming apparatus, for example, the printing unit can print a composite image formed by combining image data provided from an external medium and image material data stored in the nonvolatile memory on the recording material. On the other hand, the control means may rewrite the image material data stored in the nonvolatile memory by the rewriting process.

このような構成の画像形成装置では、画像素材データを制御プログラムと同じ不揮発性メモリに記憶させておくことで、それぞれに専用のメモリを設ける必要がなく装置を低コストに構成することができる。また、画像素材データを書き換え可能とすることにより、ユーザに対し多様な合成画像を提供することができる。   In the image forming apparatus having such a configuration, by storing the image material data in the same nonvolatile memory as the control program, it is not necessary to provide a dedicated memory for each, and the apparatus can be configured at low cost. In addition, by making the image material data rewritable, various composite images can be provided to the user.

また、前記制御手段は、例えばユーザにより設定された前記印刷手段の印刷条件に関する設定情報を記憶保存する処理を含む前記終了処理を実行するようにしてもよい。このようにすれば、書き換え処理中に装置の電源が切られたとしても、電源が復旧したときには元の設定状態を復元することができる。このような設定情報としては、例えば画像のレイアウトやサイズ、印刷枚数などに関する情報を含むことができる。また、設定情報とは別に、画像形成のためのインクやトナー(着色剤)などの残量に関する情報を記憶保存するようにしてもよい。   The control unit may execute the end process including a process of storing and storing setting information regarding the printing conditions of the printing unit set by the user, for example. In this way, even if the apparatus is turned off during the rewriting process, the original setting state can be restored when the power is restored. Such setting information can include, for example, information relating to the layout and size of images, the number of printed sheets, and the like. In addition to the setting information, information regarding the remaining amount of ink or toner (colorant) for image formation may be stored and saved.

また、前記印刷手段が、前記記録材に画像を印刷しながら移動する印刷ヘッドを有している場合には、前記制御手段は、前記印刷ヘッドを所定の終了位置に位置決めする処理を含む前記終了処理を実行するようにしてもよい。こうすることで、電源オフ時に印刷ヘッドに生じうるトラブルを回避することができる。   When the printing unit has a print head that moves while printing an image on the recording material, the control unit includes the process of positioning the print head at a predetermined end position. Processing may be executed. By doing so, troubles that may occur in the print head when the power is turned off can be avoided.

また、ユーザからの電源オフ指示操作入力を受け付けて前記制御手段に報知する受付手段をさらに備えるとともに、前記制御手段は、前記受付手段からの報知を受け付けると前記印刷手段への電源供給を停止し、しかも、前記制御手段は、前記書き換え処理では書き換えるべきデータを複数のセクタに区切って該セクタごとに前記不揮発性メモリへの書き込みを行い、1セクタのデータ書き込み中には前記受付手段からの報知を受け付けない一方、1つのセクタへの書き込み終了後、次のセクタへの書き込みを開始するまでの間、前記受付手段からの報知を受け付けるようにしてもよい。   Further, the apparatus further includes a receiving unit that receives a power-off instruction operation input from a user and notifies the control unit, and the control unit stops power supply to the printing unit when receiving a notification from the receiving unit. In addition, the control means divides the data to be rewritten in the rewriting process into a plurality of sectors, writes the data into the nonvolatile memory for each sector, and informs the receiving means during the data writing of one sector. On the other hand, after the writing to one sector is completed, the notification from the receiving means may be received until the writing to the next sector is started.

このようにすれば、書き込み処理中に受け付け手段からの報知を受け付けてしまうことによる不確実な動作を回避しながらも、ユーザからの操作入力に対して遅滞なく対応して装置の電源を停止することが可能となる。   In this way, while avoiding an uncertain operation due to receiving notification from the receiving means during the writing process, the apparatus power supply is stopped in response to an operation input from the user without delay. It becomes possible.

また、装置の電源が遮断されてもフラグの状態を保持可能なフラグ保持手段をさらに備え、前記制御手段は、前記終了処理の実行後で前記書き換え処理の実行開始前に前記フラグをセットする一方、前記書き換え処理の終了後に前記フラグをクリアするようにしてもよい。このようにすれば、電源投入時にフラグの状態を見ることによって、書き換え処理の途中で電源が切られたか否かを判定することができ、その判定結果に応じて以後の処理を最適化することができる。   The apparatus further comprises flag holding means capable of holding the flag state even when the power of the apparatus is cut off, and the control means sets the flag after execution of the end process and before execution of the rewrite process. The flag may be cleared after completion of the rewriting process. In this way, it is possible to determine whether or not the power has been turned off during the rewriting process by looking at the state of the flag when the power is turned on, and to optimize the subsequent processing according to the determination result Can do.

また、この発明にかかる画像形成装置の制御方法は、記録材上に画像を印刷する印刷手段と、前記印刷手段を制御するための制御プログラムを記憶する、データを電気的に書き換え可能な不揮発性メモリとを有する画像形成装置の制御方法であって、上記目的を達成するため、前記制御プログラムに基づいて前記印刷手段を制御する制御処理と、前記不揮発性メモリの記憶領域のうち指定した領域のデータを書き換える書き換え処理とを選択的に実行し、しかも、前記書き換え処理を実行するときには、該実行に先立って、前記印刷手段を終了状態に移行させる終了処理を実行することを特徴としている。   According to another aspect of the invention, there is provided a control method for an image forming apparatus, comprising: a printing unit that prints an image on a recording material; and a control program for controlling the printing unit. In order to achieve the above object, a control method for controlling the printing unit based on the control program, and a method for controlling a designated area of the storage area of the nonvolatile memory A rewrite process for rewriting data is selectively executed, and when the rewrite process is executed, an end process for shifting the printing unit to an end state is executed prior to the execution.

このように構成された発明では、上記した画像形成装置の発明と同様に、書き換え処理の途中で装置の電源が切られた場合にも適切に対応して、電源の復旧後には装置を正常な状態に復帰させることができる。   In the invention configured as described above, as in the case of the image forming apparatus described above, the apparatus is properly handled even when the apparatus is turned off during the rewriting process. It can be returned to the state.

図1は本発明のデータ処理装置の一実施形態であるフォトプリンタを示す斜視図である。また、図2はフォトプリンタの内部構成の概略を示す図である。このフォトプリンタ10では、プリンタ本体12の内部にはプリント機構50(図2参照)が内蔵されており、このプリント機構50の制御を司るコントローラ70(図2参照)からの動作指令に応じて用紙Pへの印刷を実行する。そして、こうして印刷された用紙Pがプリンタ本体12の前面に排紙される。   FIG. 1 is a perspective view showing a photo printer which is an embodiment of the data processing apparatus of the present invention. FIG. 2 is a diagram showing an outline of the internal configuration of the photo printer. In the photo printer 10, a printing mechanism 50 (see FIG. 2) is built in the printer main body 12, and a sheet is supplied in accordance with an operation command from a controller 70 (see FIG. 2) that controls the printing mechanism 50. Print to P. Then, the printed paper P is discharged to the front surface of the printer main body 12.

このプリンタ本体12の前面には、図1に示すように、前面扉14が開閉自在に取り付けられている。この前面扉14はプリンタ本体12の前面を開閉するための蓋である。そして、開状態のときには、プリント機構50から排紙される用紙Pを受けるための排紙トレイとして機能する。また、プリンタ本体12の前面に設けられた各種のメモリカードスロット16をユーザが利用可能な状態となる。つまり、この状態でユーザは印刷対象となる画像ファイルを記憶したメモリカードMをメモリカードスロット16に差し込むことができる。さらに、この実施形態では、記録媒体としてメモリカード以外にCD−R(Compact Disc Recordable:書き込み可能なコンパクトディスク)や映像DVD(Digital Versatile Disc:デジタル多用途ディスク)などのディスクを利用可能となっている。つまり、プリンタ本体12のベース部分に光ディスクドライブ(Optical Disc Drive)13が設けられている。   As shown in FIG. 1, a front door 14 is attached to the front surface of the printer main body 12 so as to be freely opened and closed. The front door 14 is a lid for opening and closing the front surface of the printer main body 12. In the open state, it functions as a paper discharge tray for receiving the paper P discharged from the print mechanism 50. In addition, various memory card slots 16 provided on the front surface of the printer main body 12 can be used by the user. That is, in this state, the user can insert the memory card M storing the image file to be printed into the memory card slot 16. Further, in this embodiment, a disc such as a CD-R (Compact Disc Recordable) or a video DVD (Digital Versatile Disc) can be used as a recording medium in addition to a memory card. Yes. In other words, an optical disc drive 13 is provided in the base portion of the printer main body 12.

また、プリンタ本体12の上面には操作パネル20が設けられる一方、プリンタ本体12の上面の奥の一辺に対してカバー30が開閉自在に取り付けられている。このカバー30は、プリンタ本体12の上面を覆うことのできる大きさに成形された樹脂板であり、開状態では操作パネル20の表面を外部に露出する(図1参照)。一方、カバー30が閉状態に閉じられると、操作パネル20全体を覆う。   An operation panel 20 is provided on the upper surface of the printer main body 12, and a cover 30 is attached to an inner side of the upper surface of the printer main body 12 so as to be freely opened and closed. The cover 30 is a resin plate formed in a size that can cover the upper surface of the printer main body 12, and exposes the surface of the operation panel 20 to the outside in the open state (see FIG. 1). On the other hand, when the cover 30 is closed, the entire operation panel 20 is covered.

この操作パネル20には、文字や図形、記号などを表示する例えばLCDにより構成された表示部22と、この表示部22の周囲に配置されたボタン群24とを備えている。ボタン群24は、図2に示すように、電源のオンオフを行うための電源ボタン24a、メインメニュー画面を呼び出すためのメニューボタン24b、操作を途中でキャンセルしたり用紙Pへの印刷を途中で中断したりするためのキャンセルボタン24c、用紙Pへの印刷実行を指示するための印刷ボタン24d、メモリカードスロット16に挿入されたメモリカードMに編集画像等を保存するための保存ボタン24e、表示部22に表示された複数の選択肢の中から所望の選択肢を選択したりカーソルを移動したりするときに操作される上下左右の各矢印ボタン24f〜24i、この上下左右の各矢印ボタン24f〜24iの中央に配置され各矢印ボタン24f〜24iによって選択されている選択肢に決定したことを指示するためのOKボタン24j、表示部22での画面表示を切り替えるための表示切替ボタン24k、表示部22に表示される左ガイドを選択する左ガイド選択ボタン24l、表示部22に表示される右ガイドを選択する右ガイド選択ボタン24m、排紙トレイとしての機能を備えた前面扉14を開く排紙トレイオープンボタン24nなどで構成されている。   The operation panel 20 includes a display unit 22 configured by, for example, an LCD for displaying characters, graphics, symbols, and the like, and a button group 24 arranged around the display unit 22. As shown in FIG. 2, the button group 24 includes a power button 24a for turning on / off the power, a menu button 24b for calling the main menu screen, canceling the operation in the middle, and interrupting the printing on the paper P in the middle. A cancel button 24c for printing, a print button 24d for instructing execution of printing on the paper P, a save button 24e for saving an edited image in the memory card M inserted in the memory card slot 16, a display unit Each of the up / down / left / right arrow buttons 24f to 24i operated when selecting a desired option from the plurality of options displayed on the screen 22 or moving the cursor, and the up / down / left / right arrow buttons 24f to 24i. An OK button for instructing that the option selected by the arrow buttons 24f to 24i arranged in the center is selected. 24j, a display switching button 24k for switching the screen display on the display unit 22, a left guide selection button 24l for selecting the left guide displayed on the display unit 22, and a right for selecting the right guide displayed on the display unit 22. It includes a guide selection button 24m, a paper discharge tray open button 24n for opening the front door 14 having a function as a paper discharge tray, and the like.

また、表示部22の表示内容を確認するために、カバー30には表示部22と同じ大きさの窓32が設けられている。つまり、カバー30が閉状態にあるときにはユーザはこの窓32を介して表示部22の表示内容を確認することができる。一方、カバー30は開状態のときには、表示部22を図1に示すように好みの角度に調整することが可能となっている。   Further, in order to confirm the display content of the display unit 22, the cover 30 is provided with a window 32 having the same size as the display unit 22. That is, when the cover 30 is in the closed state, the user can check the display content of the display unit 22 through the window 32. On the other hand, when the cover 30 is in the open state, the display unit 22 can be adjusted to a desired angle as shown in FIG.

このようにカバー30を開状態としたときには、操作パネル20に対して斜め後方に傾斜した状態でカバー30は保持され、用紙Pをプリント機構50へ供給するためのトレイとして利用可能となっている。また、操作パネル20の奥には、プリント機構50の給紙口58が設けられるとともに、ガイド幅が用紙の幅に合うように左右方向にスライド操作される一対の用紙ガイド59が設けられている。   Thus, when the cover 30 is in the open state, the cover 30 is held while being inclined obliquely rearward with respect to the operation panel 20 and can be used as a tray for supplying the paper P to the print mechanism 50. . Further, at the back of the operation panel 20, a paper feed port 58 of the print mechanism 50 is provided, and a pair of paper guides 59 that are slid in the left-right direction so that the guide width matches the paper width are provided. .

そして、給紙口58を介して用紙Pがプリント機構50に送り込まれて印刷が実行される。このプリント機構50には、図2に示すように、キャリッジ53が左右方向にループ状に架け渡されたタイミングベルト51により駆動されガイド52に沿って左右に往復動する。このキャリッジ53には、センサ57が設けられ、用紙Pの左右端や上下端を検出する。つまり、センサ57は、給紙口58にセットされた用紙に対して印刷前にキャリッジ53が左右方向に走査したときにその用紙の左右端を検出して用紙幅の認識を可能にしたり、印刷途中で用紙の後端を検出して用紙長さの認識を可能にしたりする。   Then, the paper P is sent to the print mechanism 50 through the paper supply port 58 and printing is executed. As shown in FIG. 2, the carriage 53 is driven by a timing belt 51 spanned in a loop shape in the left-right direction and reciprocates left and right along the guide 52. The carriage 53 is provided with a sensor 57 that detects the left and right ends and the upper and lower ends of the paper P. In other words, the sensor 57 detects the left and right edges of the paper when the carriage 53 scans in the left-right direction before printing with respect to the paper set in the paper feed port 58, and enables recognition of the paper width. The trailing edge of the paper is detected in the middle, and the paper length can be recognized.

また、このキャリッジ53には、シアン・マゼンタ・イエロー・ブラック等の各色のインクを個別に収容したインクカートリッジ54が搭載されている。これらのインクカートリッジ54はそれぞれ印刷ヘッド55に接続されている。そして、印刷ヘッド55はインクカートリッジ54からのインクに圧力をかけてノズル(図示省略)から用紙Pに向かってインクを吐出する。この実施形態では、印刷ヘッド55は圧電素子に電圧をかけることにより該圧電素子を変形させてインクを加圧する方式を採用しているが、発熱抵抗体(例えばヒータなど)に電圧をかけインクを加熱して発生した気泡によりインクを加圧する方式を採用してもよい。こうして印刷された用紙Pは搬送ローラ56によって開状態の前面扉(排紙トレイ)14へ送り出される。また、画像形成のために、インクに代えてトナーや現像剤を用いてもよい。   The carriage 53 is mounted with an ink cartridge 54 that individually accommodates ink of each color such as cyan, magenta, yellow, and black. Each of these ink cartridges 54 is connected to a print head 55. The print head 55 applies pressure to the ink from the ink cartridge 54 and ejects the ink from the nozzle (not shown) toward the paper P. In this embodiment, the print head 55 employs a method in which a voltage is applied to the piezoelectric element to deform the piezoelectric element and pressurize the ink. However, a voltage is applied to the heating resistor (for example, a heater) to apply the ink. You may employ | adopt the system which pressurizes ink with the bubble generated by heating. The printed paper P is sent out to the opened front door (paper discharge tray) 14 by the transport roller 56. For image formation, toner or developer may be used instead of ink.

図2に示すキャリッジ53をその可動範囲内で最も右側のキャップ位置まで移動させたときに印刷ヘッド55と対向する位置には、キャップ58が設けられている。キャップ58は、長時間印刷動作を行わないときに印刷ヘッド55のノズルに被せられることにより、インクの乾燥に起因するノズルの目詰まりを防止する。また、装置が電源オフ状態にあるときにも、キャリッジ53はキャップ位置に位置決めされノズルにキャップが施されている。   A cap 58 is provided at a position facing the print head 55 when the carriage 53 shown in FIG. 2 is moved to the rightmost cap position within the movable range. The cap 58 covers the nozzles of the print head 55 when the printing operation is not performed for a long time, thereby preventing clogging of the nozzles due to drying of the ink. Even when the apparatus is in the power-off state, the carriage 53 is positioned at the cap position and the nozzle is capped.

図3は図1のフォトプリンタの電気的構成を示すブロック図である。コントローラ70は、図3に示すようにシステムバス700を有しており、このシステムバス700には、CPU701、フラッシュROM702、RAM703、IDE(Integrated Drive Electronics)インタフェース704、VRAM705、EEPROM711、カードインタフェース706および画像処理部707などが接続されている。CPU701は、プリント機構50の動作制御を実行するための演算処理などを行う。   FIG. 3 is a block diagram showing an electrical configuration of the photo printer of FIG. As shown in FIG. 3, the controller 70 includes a system bus 700. The system bus 700 includes a CPU 701, a flash ROM 702, a RAM 703, an IDE (Integrated Drive Electronics) interface 704, a VRAM 705, an EEPROM 711, a card interface 706, and the like. An image processing unit 707 and the like are connected. The CPU 701 performs arithmetic processing for executing operation control of the print mechanism 50.

フラッシュROM702は、電気的に繰り返し書き換え可能な不揮発性メモリであり、CPU701の制御に必要なプログラム(ファームウェア)およびその制御に必要な各種データやテーブルなどを記憶する。RAM703はCPU701の動作に必要なデータを一時的に記憶するものであり、VRAM705には表示部22に描画すべき画像データが格納される。EEPROM711も電気的に書き換え可能なメモリであり、装置の電源が切られた状態においても保存しておくべきデータを記憶保存する。カードインタフェース706は、メモリカードスロット16との通信を行い、メモリカードスロット16に挿入されたメモリカードMなどの外部記憶媒体の画像データを読み取る。また、カードインタフェース706は、編集画像などを保存するためにメモリカードMに画像データを書き込む。IDEインタフェース704は光ディスクドライブ13に対するデータの送受信を司る。   The flash ROM 702 is a nonvolatile memory that can be electrically rewritten repeatedly, and stores a program (firmware) necessary for the control of the CPU 701 and various data and tables necessary for the control. The RAM 703 temporarily stores data necessary for the operation of the CPU 701, and the VRAM 705 stores image data to be drawn on the display unit 22. The EEPROM 711 is also an electrically rewritable memory, and stores and saves data to be saved even when the apparatus is turned off. The card interface 706 communicates with the memory card slot 16 and reads image data of an external storage medium such as the memory card M inserted into the memory card slot 16. The card interface 706 writes image data to the memory card M in order to save an edited image or the like. The IDE interface 704 controls transmission / reception of data to / from the optical disk drive 13.

画像処理部707は、カードインタフェース706により読み取られたメモリカードMなどの外部記憶媒体から与えられる画像データに対し必要な画像処理を行う。例えば、メモリカードMから読み出された画像データと、フラッシュROM702から読み出された画像フレームデータとを合成した合成画像データを作成し、印刷データ生成部708およびLCDコントローラ709に対し送出する。   The image processing unit 707 performs necessary image processing on image data provided from an external storage medium such as a memory card M read by the card interface 706. For example, composite image data obtained by combining image data read from the memory card M and image frame data read from the flash ROM 702 is created and sent to the print data generation unit 708 and the LCD controller 709.

印刷データ生成部708は、画像処理部707により作成された画像データに基づいて印刷制御信号を生成し、プリント機構50に対し出力する。プリント機構50は印刷制御信号に基づいて印刷動作を実行し、用紙上に画像ファイルに対応する画像を形成する。また、LCDコントローラ709は、画像処理部707により作成された画像データに基づいてビデオ信号を生成し、表示部22に出力する。これにより、表示部22には画像データに対応した画像が表示される。   The print data generation unit 708 generates a print control signal based on the image data created by the image processing unit 707 and outputs the print control signal to the print mechanism 50. The printing mechanism 50 executes a printing operation based on the printing control signal, and forms an image corresponding to the image file on the paper. The LCD controller 709 generates a video signal based on the image data created by the image processing unit 707 and outputs the video signal to the display unit 22. As a result, an image corresponding to the image data is displayed on the display unit 22.

また、CPU701は、ボタン群24を構成する各操作ボタンがユーザにより押されたかどうかを一定周期、例えば200msec間隔でチェックするポーリングを行っており、これによりユーザがいずれかの操作ボタンを操作したことが検知されると、操作されたボタンに応じた受付処理を実行する。例えば、装置の電源が投入された状態で電源ボタン24aがユーザにより押下されると、装置各部への電源供給を停止する。また例えば、印刷ボタン24dが押下されたときには、画像処理部707に印刷制御信号を作成させるとともに、プリント機構50に印刷動作を行わせる。   In addition, the CPU 701 performs polling to check whether or not each operation button constituting the button group 24 has been pressed by the user at a constant cycle, for example, at an interval of 200 msec, and the user has operated any of the operation buttons. When is detected, a reception process corresponding to the operated button is executed. For example, when the power button 24a is pressed by the user while the apparatus is powered on, the power supply to each part of the apparatus is stopped. For example, when the print button 24d is pressed, the image processing unit 707 generates a print control signal and causes the print mechanism 50 to perform a print operation.

図4はフラッシュROMのメモリマップを示す図である。フラッシュROM702には、CPU701により実行される制御プログラムおよび各種データの両方が記憶されている。より詳しくは、フラッシュROM702のメモリ空間は割り込み処理プログラム領域、通常処理プログラム領域およびデータ領域に分けられており、各領域に記憶されたデータを個別に書き換えることができる。より具体的には、指定した領域をセクタ単位でフラッシュ(データ消去)し、該セクタに新たなデータを書き込むことによりデータを書き換えることができる。割り込み処理プログラム領域には、CPU701に周辺デバイスからの割り込み要求があったときに割り込み処理として実行される制御プログラムが保存されている。通常処理プログラム領域には、CPU701が通常の処理を行う際に実行される制御プログラムが保存されている。CPU701は、通常処理プログラム領域に記憶されている制御プログラムに基づく処理動作の実行中に周辺デバイスから割り込み要求があると、割り込み処理プログラム領域内でその割り込み要因に応じて予め設定されたアドレスに格納された制御プログラムを実行することにより割り込み処理を行う。割り込み要因とそれに対応する割り込み処理プログラムの開始アドレスとの関連付けはCPUの仕様として予め決められており、変更されることはない。通常の電子機器の組み込みプログラムの場合、これを変更することは処理が複雑となり現実的でないからである。   FIG. 4 is a diagram showing a memory map of the flash ROM. The flash ROM 702 stores both a control program executed by the CPU 701 and various data. More specifically, the memory space of the flash ROM 702 is divided into an interrupt processing program area, a normal processing program area, and a data area, and data stored in each area can be individually rewritten. More specifically, data can be rewritten by flushing (data erasing) a designated area in units of sectors and writing new data in the sectors. The interrupt processing program area stores a control program that is executed as interrupt processing when the CPU 701 receives an interrupt request from a peripheral device. The normal processing program area stores a control program that is executed when the CPU 701 performs normal processing. When there is an interrupt request from a peripheral device during execution of a processing operation based on a control program stored in the normal processing program area, the CPU 701 stores the interrupt request in the interrupt processing program area at a preset address according to the interrupt factor. The interrupt process is performed by executing the control program. The association between the interrupt factor and the start address of the interrupt processing program corresponding to the interrupt factor is predetermined as the CPU specification and is not changed. This is because, in the case of a normal electronic device embedded program, changing this is complicated and unrealistic.

また、通常処理プログラム領域には、制御プログラムの一部として、後述するフラッシュROMの指定した領域を書き換えるための処理内容を記述したPIFデータ更新処理プログラムが保存されている。PIFデータ更新処理プログラムは、フラッシュROM702のデータ領域のうち、下記のPIFデータ領域に記憶されているデータを書き換えるための制御プログラムである。PIFデータ更新処理プログラムによるデータの書き換えはPIFデータ領域全体を対象としており、PIFデータ領域内の全セクタについて上記したフラッシュ(データ消去)およびデータの再書き込みを行う。   The normal processing program area stores a PIF data update processing program that describes processing contents for rewriting a specified area of a flash ROM, which will be described later, as a part of the control program. The PIF data update processing program is a control program for rewriting data stored in the following PIF data area in the data area of the flash ROM 702. Data rewriting by the PIF data update processing program covers the entire PIF data area, and the above-described flash (data erasure) and data rewriting are performed for all sectors in the PIF data area.

また、データ領域には各種のデータを保存可能であるが、この実施形態では、その一部に、メモリカードMから読み出された写真画像等に装飾として付加することのできるフレームやシンボルマークなどのデータを保存している。以下では、これらのデータをPIF(Print Image Framer)データと称することとする。PIFデータは、各フレーム等の内容を表す画像データと、各画像データの先頭アドレスおよびデータサイズをテーブル化したインデックステーブルデータとにより構成されている。   Various data can be stored in the data area. In this embodiment, a frame, a symbol mark, or the like that can be added as a decoration to a photographic image or the like read from the memory card M in this embodiment. Is saved. Hereinafter, these data are referred to as PIF (Print Image Framer) data. The PIF data includes image data representing the contents of each frame and the like, and index table data in which the head address and data size of each image data are tabulated.

図5はPIFデータ領域の詳細を示すメモリマップである。フラッシュROM702のメモリ空間には、上記のPIFデータを保存するために所定容量(例えば8MB)のPIFデータ領域が設けられている。このPIFデータ領域には、複数種のフレームやシンボルマークなどの装飾画像に対応するPIFデータを保存することが可能であるが、画像の内容によりデータのサイズが異なる。そこで、各フレームをインデックステーブルデータとフレームデータとに分けて表現し格納しておくことにより、必要なフレームデータを正しく読み出すことができるようにしている。   FIG. 5 is a memory map showing details of the PIF data area. The memory space of the flash ROM 702 is provided with a PIF data area having a predetermined capacity (for example, 8 MB) in order to store the PIF data. In this PIF data area, PIF data corresponding to decorative images such as a plurality of types of frames and symbol marks can be stored, but the data size varies depending on the contents of the image. Therefore, each frame is expressed and stored separately as index table data and frame data, so that necessary frame data can be read correctly.

PIFデータ領域は、図5に示すように、インデックステーブル領域とフレームデータ領域とに分けられており、各フレームの画像内容を表すフレームデータはフレームデータ領域に保存されている。また、フラッシュROM702内における各フレームデータの先頭位置およびそのデータサイズがインデックステーブル領域に保存されている。図5では、第1のフレーム(Fr.1)、第2のフレーム(Fr.2)、…、第Nのフレーム(Fr.N)の計N種類のフレームのデータが保存されている状態を示している。PIFデータをインデックステーブルデータとフレームデータとに分けて保存することにより、各フレームデータのサイズおよびフラッシュROM702内における配列順序をメモリ容量の範囲内で任意とすることができる。   As shown in FIG. 5, the PIF data area is divided into an index table area and a frame data area, and frame data representing the image content of each frame is stored in the frame data area. Further, the head position of each frame data in the flash ROM 702 and its data size are stored in the index table area. 5 shows a state in which data of a total of N types of frames of the first frame (Fr.1), the second frame (Fr.2),..., The Nth frame (Fr.N) is stored. Show. By storing the PIF data separately in index table data and frame data, the size of each frame data and the arrangement order in the flash ROM 702 can be made arbitrary within the range of the memory capacity.

このPIFデータについては、ユーザがその好みに応じてメモリカード、CD−ROMまたは所定のウェブサイトから取得したデータに書き換えることが可能である。つまり、フラッシュROM702に記憶されたPIFデータを、これらの媒体から取得したPIFデータにより書き換えることにより、ユーザは新たなフレームを使用することができるようになる。これを可能とするため、この実施形態では、フラッシュROM702の書き換え処理を以下のようにして行う。   The PIF data can be rewritten to data acquired from a memory card, a CD-ROM or a predetermined website according to the user's preference. That is, by rewriting the PIF data stored in the flash ROM 702 with the PIF data acquired from these media, the user can use a new frame. In order to make this possible, in this embodiment, the flash ROM 702 is rewritten as follows.

図6はこの実施形態におけるフラッシュROMの書き換え処理を示すフローチャートである。この実施形態では、操作パネル20に対してユーザが所定の操作入力を行うことにより、PIFデータの更新処理が選択されると、図6に示す書き換え処理(PIFデータ更新処理)が実行される。まず、メモリカード、CD−R、ウェブサイト等から読み込まれたフレームの画像データをRAM703に一時的に記憶するとともに、該データを加工してインデックステーブルデータおよび画像データからなる更新用のPIFデータを作成する(ステップS101)。   FIG. 6 is a flowchart showing the flash ROM rewriting process in this embodiment. In this embodiment, when a user performs a predetermined operation input on the operation panel 20 to select a PIF data update process, a rewrite process (PIF data update process) shown in FIG. 6 is executed. First, image data of a frame read from a memory card, CD-R, website, etc. is temporarily stored in the RAM 703, and the PIF data for update consisting of index table data and image data is processed by processing the data. Create (step S101).

外部からの画像データの読み込みが無事に完了し更新用PIFデータの作成が完了すると(ステップS102)、続いて以下に説明する電源断対応処理を実行する(ステップS103)。一方、画像データの読み込みに失敗したり、データに不備がある等の事情により更新用PIFデータの作成が完了しなかった場合には、PIFデータの更新をキャンセルしそのまま処理を終了する。   When the reading of the image data from the outside is completed successfully and the creation of the update PIF data is completed (step S102), the power-off handling process described below is subsequently executed (step S103). On the other hand, when the reading of the image data has failed or the creation of the update PIF data has not been completed due to a lack of data, the update of the PIF data is canceled and the process is terminated.

図7は電源断対応処理を示すフローチャートである。この処理は、本来は装置に供給される電源電圧が低下したときや、ユーザにより電源ボタン24aが押下されたときにそれを割り込み要因とする割り込み処理として行われる処理であり、プリント機構50を含む装置全体を、電源供給が遮断されても問題を生じない状態に移行させるための終了操作である。この処理を行うための制御プログラムは、フラッシュROM702の割り込み処理プログラム領域(図4)に記憶されている。   FIG. 7 is a flowchart showing the power-off handling process. This process is originally performed as an interrupt process using an interrupt factor when the power supply voltage supplied to the apparatus is reduced or when the user presses the power button 24a, and includes the print mechanism 50. This is an end operation for shifting the entire apparatus to a state where no problem occurs even if the power supply is cut off. A control program for performing this processing is stored in the interrupt processing program area (FIG. 4) of the flash ROM 702.

まず、キャリッジ53をキャップ58と対向するキャップ位置へ移動させ、印刷ヘッド55に設けられたノズルにキャップを被せる(ステップS201)。これにより、インクの乾燥によるノズルの目詰まりを防止する。また、その時点におけるインクカートリッジ54内のインク残量に関する情報をEEPROM711に記憶保存する(ステップS202)。これにより、次に電源が投入された時にも現在のインク残量に関する情報が引き継がれ、インクの残量管理を適切に行うことができる。さらに、ユーザによる印刷設定情報についてもEEPROM711に記憶保存する(ステップS203)。ここでいう印刷設定情報としては、メモリカードMに記憶された複数の画像ファイルのうちユーザが選択したものに関する情報、用紙Pのサイズや種類、用紙上への画像のレイアウトや印刷枚数に関する情報などのうち少なくとも1つを用いることができる。このように印刷設定情報を保存しておくことにより、電源が再投入されたときには電源オフ前の設定状態を復元することができる。   First, the carriage 53 is moved to a cap position facing the cap 58, and the nozzle is provided on the print head 55 to cover the cap (step S201). This prevents nozzle clogging due to ink drying. Further, information regarding the remaining amount of ink in the ink cartridge 54 at that time is stored and saved in the EEPROM 711 (step S202). As a result, when the power is turned on next time, the information regarding the current ink remaining amount is taken over, and the ink remaining amount can be appropriately managed. Further, the print setting information by the user is also stored and saved in the EEPROM 711 (step S203). Here, the print setting information includes information on a user-selected image file stored in the memory card M, information on the size and type of the paper P, information on the layout of the image on the paper, and the number of prints. At least one of them can be used. By storing the print setting information in this way, it is possible to restore the setting state before the power is turned off when the power is turned on again.

これらの処理は、装置の故障や無用な消耗を防止するために、またユーザの利便性向上のために、装置の電源オフ時には必ず実行されることが望ましい。これは、ユーザ自らが電源ボタン24aを操作して装置の電源を切ったときだけでなく、図示しない電源コードが誤って抜かれたり、停電が生じた場合についても同様である。したがって、この実施形態では、装置がいかなる動作状況にあるときでも、装置に供給される電源電圧が低下したことが検知されたときや、ユーザにより電源ボタン24aが押下されたときに、それを要因とする割り込み処理として上記処理を実行する。こうすることにより、再度電源が投入されたときに装置を直ちに電源オフ前の状態に復元することができる。   It is desirable that these processes are always executed when the apparatus is turned off in order to prevent the apparatus from malfunctioning and unnecessary wear and to improve the convenience of the user. This is the same not only when the user himself operates the power button 24a to turn off the apparatus but also when a power cord (not shown) is accidentally disconnected or a power failure occurs. Therefore, in this embodiment, even when the apparatus is in any operating condition, when it is detected that the power supply voltage supplied to the apparatus has decreased, or when the power button 24a is pressed by the user, this is a factor. The above process is executed as an interrupt process. In this way, when the power is turned on again, the apparatus can be immediately restored to the state before the power is turned off.

なお、電源オフ時に行っておくべき処理としてはこれ以外にも種々のものが考えられるが、例えば電源コードが抜かれたり停電が発生した場合には、装置内の電源電圧が急激に低下するため多くの処理を行うことは難しい。したがって、装置の保護および後刻の復旧のために必要な最低限の処理のみとするのが好ましい。この実施形態では、復旧後の動作に支障を来たすのを避けるため、印刷ヘッド55を保護するための動作(ステップS201)および継続的なインク残量管理のための動作(ステップS202)を最優先に行うようにしている。   There are various other processes that should be performed when the power is turned off. For example, if the power cord is disconnected or a power failure occurs, the power supply voltage in the device will drop rapidly. It is difficult to process. Therefore, it is preferable to perform only the minimum processing necessary for protecting the device and restoring it later. In this embodiment, in order to avoid hindering the operation after restoration, the operation for protecting the print head 55 (step S201) and the operation for continuous ink remaining amount management (step S202) are given the highest priority. Like to do.

また、後述するように、フラッシュROM702のデータを書き換えている最中にはCPU701は割り込みを受け付けない。したがってこの間に装置の電源が切られてしまうと、上記した終了操作を行わないまま電源が落とされてしまい以後の復旧に支障を来たすおそれがある。そこで、この実施形態では、フラッシュROM702のデータを書き換える前にも電源断対応処理(図7)を行う。   As will be described later, the CPU 701 does not accept an interrupt while the data in the flash ROM 702 is being rewritten. Therefore, if the power of the apparatus is turned off during this time, the power may be turned off without performing the above-described termination operation, which may hinder subsequent recovery. Therefore, in this embodiment, the power-off handling process (FIG. 7) is performed before the data in the flash ROM 702 is rewritten.

図6に戻って、フラッシュROM702の書き換え処理の説明を続ける。上記のようにして電源断対応処理(ステップS103)を行った後、EEPROM711に設けた「書き込み中フラグ」をセットする。書き込み中フラグは、フラッシュROM702のデータ書き換え開始の直前にセットされ、後述するようにフラッシュROM702のデータ書き換えが完了するとクリアされるフラグであり、EEPROM711の記憶領域内の1つのビットが該フラグに割り当てられている。書き込み中フラグは、装置の電源が入っていないときでも状態を保持している。そして、データ書き換え中の割り込みの発生を禁止すべく、全ての割り込み要因をマスクする(ステップS105)。   Returning to FIG. 6, the description of the rewriting process of the flash ROM 702 is continued. After performing the power-off response processing (step S103) as described above, the “writing flag” provided in the EEPROM 711 is set. The writing flag is set immediately before the data rewriting of the flash ROM 702 is started, and is cleared when the data rewriting of the flash ROM 702 is completed as will be described later. One bit in the storage area of the EEPROM 711 is assigned to the flag. It has been. The writing flag holds the state even when the apparatus is not turned on. Then, all interrupt factors are masked in order to prohibit the generation of interrupts during data rewriting (step S105).

なお、フラッシュROM702の更新を無事に行うためには、更新作業中に緊急のもの以外の割り込み処理を受け付けないことが望ましい。更新作業中に受け付けるべき割り込み処理としては、ユーザによる電源オフ操作や、電源コードが抜かれたり停電が発生したこと(以下、「停電等」という)に起因する割り込み、さらにユーザによる書き換え処理のキャンセル操作に起因する割り込み処理があるが、これ以外の割り込みについては、更新処理が完了するまでは受け付けないようにしておく。   In order to update the flash ROM 702 safely, it is desirable not to accept interrupt processing other than emergency ones during the update operation. Interrupt processing that should be accepted during the update operation includes user power-off operation, interruption due to power cord being disconnected or power failure (hereinafter referred to as “power failure, etc.”), and user rewriting cancellation operation. However, interrupts other than these are not accepted until the update process is completed.

動作中に生じうる不測の事態の中で、電源コードが抜かれたり停電が発生するなど電源電圧の低下を伴うものは、装置の全ての動作に影響するため、これに対応するための処理はマスク不可能な割り込み処理(Non Maskable Interrupt;NMI)として準備されるべきものである。しかしながら、CPU701が実行すべき割り込み処理プログラム自体を記憶したフラッシュROM702の書き換えを行っているときにはNMIさえも受け付けることができない。したがって、本来NMIとして処理されるべき停電等に起因する割り込みについても、フラッシュROM702の書き換え中には発生しないようにする必要がある。このため、例えば電源電圧検知用のセンサにより停電等を検知する構成とする場合、センサ出力をCPU701のNMI端子に直接接続するのではなく、該センサ出力をハード的にマスクすることのできる素子(例えばAND回路素子)を介してCPU701のNMI端子に接続しておくことが望ましい。そして、ステップS105において割り込みをマスクする際には、併せてセンサ出力をハード的にマスクすることにより、センサ出力がCPU701に伝わらないようにする。   Unexpected situations that may occur during operation, such as power cord being disconnected or power failure, such as power supply voltage drop, will affect all operations of the device. It should be prepared as a non-maskable interrupt (NMI). However, even when the flash ROM 702 storing the interrupt processing program itself to be executed by the CPU 701 is being rewritten, even the NMI cannot be accepted. Therefore, it is necessary to prevent an interrupt caused by a power failure or the like that should be processed as an NMI during the rewriting of the flash ROM 702. For this reason, for example, when a power supply voltage detection sensor is used to detect a power failure or the like, the sensor output is not directly connected to the NMI terminal of the CPU 701, but an element that can mask the sensor output in hardware ( For example, it is desirable to connect to the NMI terminal of the CPU 701 via an AND circuit element). In step S105, when the interrupt is masked, the sensor output is also masked by hardware so that the sensor output is not transmitted to the CPU 701.

次に、CPU701は、制御プログラムの読み出し元をフラッシュROM702からRAM703に切り換える(ステップS106)。RAM703には、フラッシュROM702に記憶されているPIFデータ更新処理プログラムのうち、実際にフラッシュROM702にアクセスする処理に対応する制御プログラムが予め複製されて保存されている。CPU701は、RAM703に記憶された制御プログラムを実行することにより、フラッシュROM702の1セクタ(例えば120kB相当分)に記憶されているデータを消去し、先に作成した更新用のPIFデータのうち1セクタ分を当該セクタに書き込むことでデータを更新する(ステップS107)。一般的なフラッシュROMでは、1セクタ分のデータを更新するのに2秒程度を要する。書き込みが終了すると、プログラムの読み出し元を再びフラッシュROM702に戻す(ステップS108)。   Next, the CPU 701 switches the reading source of the control program from the flash ROM 702 to the RAM 703 (step S106). In the RAM 703, among the PIF data update processing programs stored in the flash ROM 702, a control program corresponding to a process for actually accessing the flash ROM 702 is duplicated and stored in advance. The CPU 701 executes the control program stored in the RAM 703 to erase data stored in one sector (e.g., 120 kB equivalent) of the flash ROM 702, and one sector of the update PIF data created earlier. The data is updated by writing the minute in the sector (step S107). In a general flash ROM, it takes about 2 seconds to update data for one sector. When the writing is completed, the program reading source is returned to the flash ROM 702 again (step S108).

続いて、全ての割り込み要因について、割り込みマスクを先に保存しておいたステップS104の直前の状態に復元する(ステップS109)。ステップS104の時点では、電源オフ操作や停電等に起因する割り込みおよび書き換え処理のキャンセル操作に起因する割り込みは許可されているので、この状態に戻される。したがって、この時点では、例えば電源オフ操作や停電等に起因する割り込みがあれば受け付けられる。こうして割り込みマスク状態を復元してから、表示部22への表示処理を行う(ステップS110)。この処理は、ユーザにデータの更新状況を知らせるために所定のメッセージを表示する処理であり、例えば、更新の完了したセクタ数や、更新すべき全セクタのうち何%まで処理が完了したかがわかるようなメッセージとすればよい。   Subsequently, all the interrupt factors are restored to the state immediately before step S104 in which the interrupt mask was previously stored (step S109). At the time of step S104, an interrupt caused by a power-off operation, a power failure, etc., and an interrupt caused by a rewrite processing canceling operation are permitted, and the state is returned to this state. Therefore, at this time, if there is an interrupt due to, for example, a power-off operation or a power failure, it is accepted. After restoring the interrupt mask state in this way, display processing on the display unit 22 is performed (step S110). This process is a process for displaying a predetermined message to notify the user of the data update status. For example, the number of sectors that have been updated and the percentage of all sectors to be updated The message can be understood.

続いて、当該セクタのデータが正しく更新されたかどうかを確認する(ステップS111)。すなわち、当該セクタから読み出されたデータと、当該セクタに書き込むべきデータとを比較し、両者が一致していれば更新が成功していると言える一方、一致しなければ更新は失敗したと言える。更新が失敗したときの処理については後に説明する。当該セクタの更新が成功していれば(ステップS112)、引き続き更新すべきデータが残っている場合にはステップS105に戻って上記処理を繰り返し実行することにより、全データの更新を順次行う(ステップS111)。この間、RAM703上のプログラムを実行するときには全ての割り込みが禁止される一方、フラッシュROM702上のプログラムを実行するときには電源オフ操作および停電等に対応する割り込みは許可される。   Subsequently, it is confirmed whether or not the data of the sector has been correctly updated (step S111). That is, the data read from the sector is compared with the data to be written to the sector. If they match, it can be said that the update has succeeded, but if they do not match, the update has failed. . Processing when the update fails will be described later. If the update of the sector has succeeded (step S112), if there remains data to be updated, the process returns to step S105 and the above process is repeated to update all the data sequentially (step S112). S111). During this time, all interrupts are prohibited when the program on the RAM 703 is executed, while interrupts corresponding to a power-off operation and a power failure are allowed when the program on the flash ROM 702 is executed.

更新すべき全てのデータの更新が完了すると(ステップS112)、書き込み中フラグをクリアし(ステップS113)、装置を通常の動作状態に戻す復帰処理を行って(ステップS114)、処理を終了する。この復帰処理は、フラッシュROM702の書き換え処理を開始する前の状態に装置を移行させるための処理である。例えば、ユーザの指示に応じて印刷動作を実行可能とするために印刷ヘッド55を所定のホームポジションに移動たり、ユーザによる全てのボタン操作を受け付け可能とするための処理などが含まれるが、電源投入直後に実行する起動処理と同じ内容であってもよい。   When the update of all data to be updated is completed (step S112), the writing flag is cleared (step S113), a return process for returning the apparatus to the normal operation state is performed (step S114), and the process is terminated. This restoration process is a process for shifting the apparatus to a state before starting the rewriting process of the flash ROM 702. For example, a process for moving the print head 55 to a predetermined home position in order to be able to execute a printing operation in accordance with a user instruction, or to accept all button operations by the user is included. The content may be the same as the startup process executed immediately after the input.

ステップS111において、セクタ単位でのデータ更新が失敗したと判断された場合には、書き込み中フラグのクリア(ステップS113)を行わずに復帰処理(ステップS114)を行う。これにより、装置は印刷動作を可能な状態となるが、書き込み中フラグはセットされたままとなる。   If it is determined in step S111 that the data update in units of sectors has failed, the return process (step S114) is performed without clearing the writing flag (step S113). As a result, the apparatus becomes ready for printing, but the writing flag remains set.

以上の処理において、フラッシュROM702の書き換え処理中にユーザによる電源オフ操作や停電等が発生した場合の動作は次のようになる。まず、ユーザによる電源オフ操作がなされた場合について説明する。電源オフ操作の有無については、CPU701が電源ボタン24aの押下の有無をポーリングすることにより検知することができる。電源ボタン24aの押下が検知されたとしても、フラッシュROM702の更新作業中で割り込みが禁止されている期間(ステップS105〜S108)はこれに応答する処理を行わない。ステップS109において電源オフ操作を要因とする割り込みが許可されると、CPU701はデータ更新処理を中止し、上記した電源断処理を含む、電源オフのために必要な全ての動作を行った上で装置の電源を停止する。   In the above processing, the operation when the user performs a power-off operation or a power failure during the rewriting process of the flash ROM 702 is as follows. First, the case where the user performs a power-off operation will be described. The presence or absence of the power-off operation can be detected by polling the presence or absence of the power button 24a by the CPU 701. Even if it is detected that the power button 24a is pressed, during the update operation of the flash ROM 702 and during which interruption is prohibited (steps S105 to S108), no response processing is performed. When an interrupt due to a power-off operation is permitted in step S109, the CPU 701 stops the data update process, performs all operations necessary for power-off including the power-off process described above, and then performs the device Turn off the power.

また、データ更新中にユーザによりキャンセルボタン24cが押下された場合には、割り込み許可期間中に当該押下操作に起因する割り込みが受け付けられることにより、実行中の更新処理が中止される。つまり、ユーザ操作に起因する更新作業の中止に関する割り込みは、操作があった時点で直ちに行われるのではなく、割り込みが許可された時点(ステップS109)以降に正当な割り込み要求として受け付けられて処理される。   In addition, when the cancel button 24c is pressed by the user during the data update, an interrupt due to the pressing operation is accepted during the interrupt permission period, so that the update process being executed is stopped. In other words, the interruption related to the cancellation of the update work caused by the user operation is not performed immediately when the operation is performed, but is accepted and processed as a valid interruption request after the interruption is permitted (step S109). The

一方、停電等、すなわち電源コードが抜かれたり停電が発生するなどの事象は、割り込み禁止期間中にも発生する可能性がある。通常の動作時には、停電等の発生が検知された時点で直ちに上記した電源断対応処理のような割り込み処理を実行することにより、最低限の終了処理を行うことが可能である。しかしながら、フラッシュROM702の書き換え中にはCPU701が割り込みを受け付けることができないため、割り込みが許可されるまで待ってから終了処理を実行したとしても、処理が間に合わない場合が生じうる。その結果、例えば印刷ヘッド55のノズルがキャップされないまま放置されてノズルが目詰まりしてしまったり、その時点でのインク残量に関する情報が失われて以後のインク残量管理が適切に行えなくなったりする。また、印刷条件に関するユーザの設定内容が失われてしまうと、ユーザはその設定を改めて行わなければならなくなる。   On the other hand, a power outage or the like, that is, an event such as a power cord being unplugged or a power outage may occur even during the interrupt prohibited period. In a normal operation, the minimum end process can be performed by executing an interrupt process such as the above-described power-off handling process immediately after the occurrence of a power failure or the like is detected. However, since the CPU 701 cannot accept an interrupt while rewriting the flash ROM 702, even if the end process is executed after waiting for the interrupt to be permitted, the process may not be in time. As a result, for example, the nozzles of the print head 55 are left uncapped and the nozzles are clogged, or the information regarding the remaining amount of ink at that time is lost and the remaining ink management cannot be performed properly thereafter. To do. Further, if the user's setting contents regarding the printing conditions are lost, the user has to make the setting again.

このような問題に対応するために、この実施形態では、フラッシュROM702の書き換えを行う前に電源断対応処理(ステップS103)を行っている。このため、装置に与えられる電源電圧が突然低下したとしても、ノズルにキャップを被せたりインク残量や設定情報等を保存するなどの最低限の終了処理は行われており、電源再投入時には装置を元の状態に復元させることが可能である。   In order to deal with such a problem, in this embodiment, the power-off handling process (step S103) is performed before the flash ROM 702 is rewritten. For this reason, even if the power supply voltage applied to the device suddenly drops, the minimum end processing such as putting a cap on the nozzle or storing the remaining ink amount or setting information is performed. Can be restored to its original state.

また、この実施形態では、全てのデータ更新を完了した直後(ステップS113)以外には書き込み中フラグをクリアするタイミングが存在しない。したがって、フラッシュROM702の更新が完了しないまま処理が中止されてしまったときには、書き込み中フラグがセットされたままとなる。この状態は、装置の電源が切られても保持されている。この書き込み中フラグは以下のように使用される。   Further, in this embodiment, there is no timing for clearing the writing flag other than immediately after all the data updates are completed (step S113). Therefore, when the process is stopped without completing the update of the flash ROM 702, the writing flag remains set. This state is maintained even when the apparatus is turned off. This writing flag is used as follows.

この実施形態ではフラッシュROM702の記憶領域のうちPIFデータ領域の更新を可能としているが、更新が完了していない場合、PIFデータ領域に記憶されているデータの信頼性が失われていることになる。PIFデータは画像を装飾するために用いられるデータであり、これが欠ければ装置が動作しないというわけではない。また、ユーザが希望すれば再度更新し信頼性を回復することが可能なデータである。したがって、信頼性の失われているデータを無理に使用するよりは、このようなデータを使用しない方がユーザにとっては好ましい。   In this embodiment, it is possible to update the PIF data area in the storage area of the flash ROM 702, but if the update is not completed, the reliability of the data stored in the PIF data area is lost. . PIF data is data used to decorate an image, and lacking this does not mean that the device will not operate. Further, it is data that can be updated again to restore reliability if the user desires. Therefore, it is preferable for the user not to use such data rather than forcibly using data whose reliability is lost.

このような事情に鑑みて、この実施形態では、PIFデータの信頼性が失われている、つまり書き込み中フラグがセットされた状態であるときには、通常の動作においてPIFデータを利用することができないようにする。すなわち、ユーザによるフレームの選択操作や、写真画像とフレームとの合成画像の生成を行えないようにする。こうすることにより、信頼性の失われたデータに基づく不具合を回避することができる。   In view of such circumstances, in this embodiment, when the reliability of the PIF data is lost, that is, when the writing flag is set, the PIF data cannot be used in the normal operation. To. That is, the user cannot select a frame or generate a composite image of a photographic image and a frame. By doing so, it is possible to avoid problems based on data whose reliability has been lost.

なお、ユーザに対しては、PIFデータが正常でないことを報知することが望ましい。例えば、電源投入直後に表示部22に表示する初期画面に「現在フレームを利用できません」というメッセージを表示させたり、メニュー画面におけるフレーム選択の項目を削除するもしくは反転表示するなどの手法により報知を行うことができる。一方、PIFデータを正しいものに更新することを可能とするために、PIFデータの更新処理についてはメニューに残すことが必要である。そして、ユーザにより再度更新処理が指示されデータの更新が終了すれば、書き込み中フラグはクリアされて、以後の動作ではPIFデータを利用することが可能となる。   It is desirable to notify the user that the PIF data is not normal. For example, a message “Current frame is not available” is displayed on the initial screen displayed on the display unit 22 immediately after the power is turned on, or notification is performed by a method such as deleting or highlighting a frame selection item on the menu screen. be able to. On the other hand, in order to be able to update the PIF data to the correct one, it is necessary to leave the PIF data update process in the menu. When the update process is instructed again by the user and the data update is completed, the writing flag is cleared and PIF data can be used in subsequent operations.

以上のように、この実施形態では、CPU701が実行すべき制御プログラムと、画像の装飾に用いるPIFデータとを同一のフラッシュROM702に保存しておくことにより、使用デバイス数を少なくしている。また、フラッシュROM702の書き換え前に印刷ヘッド55をキャップ位置へ移動させるなど最低限の終了処理を行っているので、万が一PIFデータの書き換え中に停電等が発生しても、以後の復旧動作に支障を来たすことなく、装置を元の状態に復元することができる。また、データの書き換え中であることを示す書き込み中フラグを設け、その状態によって書き換えが完了したか否かを判断しているので、信頼性の失われたデータが使用されるのを防止することができる。   As described above, in this embodiment, the number of devices used is reduced by storing the control program to be executed by the CPU 701 and the PIF data used for image decoration in the same flash ROM 702. In addition, since the minimum end processing such as moving the print head 55 to the cap position is performed before the flash ROM 702 is rewritten, even if a power failure or the like occurs during the rewriting of the PIF data, the subsequent recovery operation is hindered. The device can be restored to its original state without having to In addition, a writing flag indicating that data is being rewritten is provided, and it is determined whether rewriting has been completed depending on the state of the flag, thus preventing the use of data whose reliability has been lost. Can do.

以上説明したように、この実施形態においては、CPU701およびフラッシュROM702がそれぞれ本発明の「制御手段」および「不揮発性メモリ」として機能している。また、上記実施形態では、プリント機構50が本発明の「印刷手段」として機能しており、PIFデータが本発明の「画像素材データ」に相当している。また、メモリカードMが本発明の「外部媒体」に相当する一方、RAM703が本発明の「記憶手段」として機能している。また、この実施形態では、電源ボタン24aおよびEEPROM711がそれぞれ本発明の「受付手段」および「フラグ保持手段」として機能している。また、この実施形態においては、図7に示す電源段対応処理および図6に示すPIFデータ更新処理が、それぞれ本発明の「終了処理」および「書き換え処理」に相当している。   As described above, in this embodiment, the CPU 701 and the flash ROM 702 function as the “control unit” and “nonvolatile memory” of the present invention, respectively. In the above embodiment, the print mechanism 50 functions as “printing means” of the present invention, and the PIF data corresponds to “image material data” of the present invention. The memory card M corresponds to the “external medium” of the present invention, and the RAM 703 functions as the “storage unit” of the present invention. In this embodiment, the power button 24a and the EEPROM 711 function as the “accepting unit” and “flag holding unit” of the present invention, respectively. In this embodiment, the power stage handling process shown in FIG. 7 and the PIF data update process shown in FIG. 6 correspond to the “end process” and “rewrite process” of the present invention, respectively.

なお、本発明は上記した実施形態に限定されるものではなく、その趣旨を逸脱しない限りにおいて上述したもの以外に種々の変更を行うことが可能である。例えば、上記実施形態のPIFデータ更新処理では、フラッシュROM702へのデータの書き込みを1セクタ分終える度に電源オフ操作等の操作を受け付けるべく部分的に割り込みマスクを解除するようにしているが、全てのデータ更新が終わるまでの間、割り込み禁止状態を維持するようにしてもよい。この実施形態では事前に電源断対応処理を行っているため、最低限の終了処理は済んでいるからである。   The present invention is not limited to the above-described embodiment, and various modifications other than those described above can be made without departing from the spirit of the present invention. For example, in the PIF data update process of the above embodiment, the interrupt mask is partially canceled to accept an operation such as a power-off operation every time writing of data to the flash ROM 702 is completed for one sector. Until the data update is completed, the interrupt disabled state may be maintained. This is because, in this embodiment, the power-off handling process is performed in advance, so that the minimum end process has been completed.

また、上記実施形態では本発明の「不揮発性メモリ」としてフラッシュROM(フラッシュメモリ)を用いているが、本発明の「不揮発性メモリ」としてはこのようなフラッシュメモリ以外にも、電気的に書き換えが可能で電源オフ状態でもデータを保持する機能を有するメモリ全般を使用することが可能である。   In the above embodiment, a flash ROM (flash memory) is used as the “nonvolatile memory” of the present invention, but the “nonvolatile memory” of the present invention is electrically rewritten in addition to such a flash memory. It is possible to use a general memory having a function of retaining data even when the power is off.

さらに、上記実施形態は、メモリカードM等に記憶されている画像データを読み出し、これに対応する画像を表示したり印刷するフォトプリンタであるが、本発明の適用範囲はこれに限定されるものではなく、電気的に書き換え可能で制御プログラムの少なくとも一部を記憶した不揮発性メモリを備える各種の画像形成装置などの電子機器に対して、本発明を適用することが可能である。   Further, the above embodiment is a photo printer that reads out image data stored in the memory card M or the like, and displays or prints an image corresponding to the image data, but the scope of application of the present invention is limited to this. Instead, the present invention can be applied to electronic devices such as various image forming apparatuses that are electrically rewritable and include a nonvolatile memory that stores at least a part of a control program.

本発明のデータ処理装置の一実施形態であるフォトプリンタを示す斜視図。1 is a perspective view showing a photo printer which is an embodiment of a data processing apparatus of the present invention. フォトプリンタの内部構成の概略を示す図。FIG. 2 is a diagram illustrating an outline of an internal configuration of a photo printer. 図1のフォトプリンタの電気的構成を示すブロック図。FIG. 2 is a block diagram showing an electrical configuration of the photo printer of FIG. 1. フラッシュROMのメモリマップを示す図。The figure which shows the memory map of flash ROM. PIFデータ領域の詳細を示すメモリマップ。A memory map showing details of the PIF data area. フラッシュROMの書き換え処理を示すフローチャート。The flowchart which shows the rewriting process of flash ROM. 図7は電源断対応処理を示すフローチャート。FIG. 7 is a flowchart showing power-off handling processing.

符号の説明Explanation of symbols

10…フォトプリンタ(画像形成装置)、 16…メモリカードスロット、 22…表示部、 24a…電源ボタン(受付手段)、 50…プリント機構(印刷手段)、 701…CPU(制御手段)、 702…フラッシュROM(不揮発性メモリ)、 703…RAM(記憶手段)、 711…EEPROM(フラグ保持手段)、 M…メモリカード(外部媒体)   DESCRIPTION OF SYMBOLS 10 ... Photo printer (image forming apparatus) 16 ... Memory card slot 22 ... Display part 24a ... Power button (accepting means) 50 ... Print mechanism (printing means) 701 ... CPU (control means) 702 ... Flash ROM (nonvolatile memory), 703 ... RAM (storage means), 711 ... EEPROM (flag holding means), M ... memory card (external medium)

Claims (8)

記録材上に画像を印刷する印刷手段と、
前記印刷手段を制御するための制御プログラムを記憶する、データを電気的に書き換え可能な不揮発性メモリと、
前記制御プログラムに基づいて前記印刷手段を制御する制御処理と、前記不揮発性メモリの記憶領域のうち指定した領域のデータを書き換える書き換え処理とを実行する制御手段と
を備え、
前記制御手段は、前記書き換え処理を実行するときには、該実行に先立って、前記印刷手段を電源の遮断が可能な終了状態に移行させる終了処理を実行する
ことを特徴とする画像形成装置。
Printing means for printing an image on a recording material;
A non-volatile memory capable of electrically rewriting data, storing a control program for controlling the printing means;
Control means for controlling the printing means based on the control program, and control means for executing rewriting processing for rewriting data in a specified area of the storage area of the nonvolatile memory,
The control unit, when executing the rewriting process, executes an end process for shifting the printing unit to an end state in which power can be shut off prior to the execution.
データを一時的に記憶可能な記憶手段をさらに備えるとともに、前記書き換え処理に対応する制御プログラムが前記不揮発性メモリに記憶されており、
前記書き換え処理のうち前記不揮発性メモリへの書き込み動作を含む少なくとも一部は、前記不揮発性メモリから前記記憶手段上に複製された制御プログラムに基づいて実行される請求項1に記載の画像形成装置。
Further comprising storage means capable of temporarily storing data, and a control program corresponding to the rewriting process is stored in the nonvolatile memory,
2. The image forming apparatus according to claim 1, wherein at least a part of the rewriting process including a writing operation to the nonvolatile memory is executed based on a control program copied from the nonvolatile memory onto the storage unit. .
前記印刷手段は、外部媒体から与えられる画像データと前記不揮発性メモリに記憶されている画像素材データとを合成してなる合成画像を前記記録材上に印刷可能に構成される一方、
前記制御手段は、前記書き換え処理により、前記不揮発性メモリに記憶されている前記画像素材データを書き換える請求項1または2に記載の画像形成装置。
The printing unit is configured to be able to print a composite image formed by combining image data given from an external medium and image material data stored in the nonvolatile memory on the recording material,
The image forming apparatus according to claim 1, wherein the control unit rewrites the image material data stored in the nonvolatile memory by the rewriting process.
前記制御手段は、ユーザにより設定された前記印刷手段の印刷条件に関する設定情報を記憶保存する処理を含む前記終了処理を実行する請求項1ないし3のいずれかに記載の画像形成装置。   4. The image forming apparatus according to claim 1, wherein the control unit executes the termination process including a process of storing and storing setting information regarding printing conditions of the printing unit set by a user. 5. 前記印刷手段は、前記記録材に画像を印刷しながら移動する印刷ヘッドを有しており、
前記制御手段は、前記印刷ヘッドを所定の終了位置に位置決めする処理を含む前記終了処理を実行する請求項1ないし4のいずれかに記載の画像形成装置。
The printing means has a print head that moves while printing an image on the recording material,
The image forming apparatus according to claim 1, wherein the control unit executes the end process including a process of positioning the print head at a predetermined end position.
ユーザからの電源オフ指示操作入力を受け付けて前記制御手段に報知する受付手段をさらに備えるとともに、前記制御手段は、前記受付手段からの報知を受け付けると前記印刷手段への電源供給を停止し、しかも、
前記制御手段は、前記書き換え処理では書き換えるべきデータを複数のセクタに区切って該セクタごとに前記不揮発性メモリへの書き込みを行い、1セクタのデータ書き込み中には前記受付手段からの報知を受け付けない一方、1つのセクタへの書き込み終了後、次のセクタへの書き込みを開始するまでの間、前記受付手段からの報知を受け付ける請求項1ないし5のいずれかに記載の画像形成装置。
In addition to receiving a power-off instruction operation input from a user and notifying the control means, the control means stops power supply to the printing means upon receiving a notification from the receiving means, and ,
The control means divides the data to be rewritten in the rewriting process into a plurality of sectors and writes the data to the nonvolatile memory for each sector, and does not accept the notification from the accepting means during the data writing of one sector. 6. The image forming apparatus according to claim 1, wherein the notification from the receiving unit is received after the writing to one sector is completed until the writing to the next sector is started.
装置の電源が遮断されてもフラグの状態を保持可能なフラグ保持手段をさらに備え、
前記制御手段は、前記終了処理の実行後で前記書き換え処理の実行開始前に前記フラグをセットする一方、前記書き換え処理の終了後に前記フラグをクリアする請求項1ないし6のいずれかに記載の画像形成装置。
It further comprises flag holding means capable of holding the state of the flag even when the power of the device is shut off,
The image according to any one of claims 1 to 6, wherein the control unit sets the flag after the completion of the rewrite process after the completion of the end process, and clears the flag after the completion of the rewrite process. Forming equipment.
記録材上に画像を印刷する印刷手段と、前記印刷手段を制御するための制御プログラムを記憶する、データを電気的に書き換え可能な不揮発性メモリとを有する画像形成装置の制御方法において、
前記制御プログラムに基づいて前記印刷手段を制御する制御処理と、前記不揮発性メモリの記憶領域のうち指定した領域のデータを書き換える書き換え処理とを選択的に実行し、しかも、
前記書き換え処理を実行するときには、該実行に先立って、前記印刷手段を終了状態に移行させる終了処理を実行する
ことを特徴とする画像形成装置の制御方法。
In a method for controlling an image forming apparatus, comprising: a printing unit that prints an image on a recording material; and a non-volatile memory that electrically stores data and stores a control program for controlling the printing unit.
Selectively executing a control process for controlling the printing means based on the control program and a rewrite process for rewriting data in a specified area of the storage area of the nonvolatile memory;
A control method for an image forming apparatus, wherein when executing the rewriting process, an end process for shifting the printing unit to an end state is executed prior to the execution.
JP2007299188A 2007-11-19 2007-11-19 Control method of image formation device and this device Withdrawn JP2009119823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007299188A JP2009119823A (en) 2007-11-19 2007-11-19 Control method of image formation device and this device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007299188A JP2009119823A (en) 2007-11-19 2007-11-19 Control method of image formation device and this device

Publications (1)

Publication Number Publication Date
JP2009119823A true JP2009119823A (en) 2009-06-04

Family

ID=40812513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007299188A Withdrawn JP2009119823A (en) 2007-11-19 2007-11-19 Control method of image formation device and this device

Country Status (1)

Country Link
JP (1) JP2009119823A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017177456A (en) * 2016-03-29 2017-10-05 キヤノン株式会社 Power control method for image forming apparatus
CN110481174A (en) * 2019-07-11 2019-11-22 厦门汉印电子技术有限公司 Print control program, device, printer and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017177456A (en) * 2016-03-29 2017-10-05 キヤノン株式会社 Power control method for image forming apparatus
CN110481174A (en) * 2019-07-11 2019-11-22 厦门汉印电子技术有限公司 Print control program, device, printer and computer readable storage medium
CN110481174B (en) * 2019-07-11 2022-03-29 厦门汉印电子技术有限公司 Printing control method, printing control device, printer and computer readable storage medium

Similar Documents

Publication Publication Date Title
JP3975682B2 (en) Image recording device
JP2007025821A (en) Information processor and control method therefor
JP2008006717A (en) Image forming device
JP2009119823A (en) Control method of image formation device and this device
JP2010131843A (en) Image forming apparatus
JP2009119676A (en) Printer, its control method and control program
JP2009276887A (en) Information processor and tape printing device
JP4858189B2 (en) Display switching method, display control device, and electronic apparatus
JP5339887B2 (en) Printing apparatus, control method thereof, and program
JP2008162054A (en) Printer
JP2009116724A (en) Data processor, and control method for electronic equipment
JP5104601B2 (en) Printer and tape printer
JP2596075B2 (en) Printer
JP2008124554A (en) Image processor, image processing method and program
JP2009145939A (en) Data processor and control method for electronic equipment
JP2001162902A (en) Printer and printing method and recording medium
JP2008273091A (en) Information processing equipment and control method of information processing equipment
US20220253233A1 (en) Memory control device and method
JP2007286713A (en) Printing system
JP2005138443A (en) Apparatus, method and program for forming small printed material
JP6167711B2 (en) Print processing program
JPH08212079A (en) Image forming device
JPH117342A (en) Compound device and power saving control method
JP2009072962A (en) Printer and control method therefor
JP2007136815A (en) Image forming apparatus and its control method

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: 20110201