JP3970297B2 - Recording apparatus and recording apparatus control method - Google Patents

Recording apparatus and recording apparatus control method Download PDF

Info

Publication number
JP3970297B2
JP3970297B2 JP2005255625A JP2005255625A JP3970297B2 JP 3970297 B2 JP3970297 B2 JP 3970297B2 JP 2005255625 A JP2005255625 A JP 2005255625A JP 2005255625 A JP2005255625 A JP 2005255625A JP 3970297 B2 JP3970297 B2 JP 3970297B2
Authority
JP
Japan
Prior art keywords
data
recording
buffer
address
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005255625A
Other languages
Japanese (ja)
Other versions
JP2006015759A (en
Inventor
壮平 田中
哲史 香野
明 黒沼
亨 中山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2005255625A priority Critical patent/JP3970297B2/en
Publication of JP2006015759A publication Critical patent/JP2006015759A/en
Application granted granted Critical
Publication of JP3970297B2 publication Critical patent/JP3970297B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、記録装置及びその記録装置の制御方法に関するものである。   The present invention relates to a recording apparatus and a control method for the recording apparatus.

印字装置において、記録バッファとしてリング構造を用いる従来技術は特許文献において提案されている。この従来技術においては、印字データをメモリ領域に格納するためのアドレスポインタと、そのデータを取出すためのアドレスポインタと、メモリ領域の空き領域を管理するための印字データ数カウントレジスタとを構成に有し、循環領域におけるメモリの利用の効率化が試みられている。   Conventional techniques using a ring structure as a recording buffer in a printing apparatus have been proposed in the patent literature. This conventional technique has an address pointer for storing print data in a memory area, an address pointer for extracting the data, and a print data number count register for managing free areas in the memory area. However, attempts have been made to improve the efficiency of memory use in the circulation region.

上述の従来技術として、例えば、以下の特許文献1に示されるものがある。
特公昭63−12290号公報
As the above-described prior art, for example, there is one shown in Patent Document 1 below.
Japanese Patent Publication No. 63-12290

しかし、従来技術における通常のリングバッファ構造をフルカラー印刷用の記録装置に適用した場合、1色の記録ヘッドに対しては対応できるが、他の複数の色に対する記録ヘッドについてはデータの格納領域が確保できないという問題が生じる。   However, when the conventional ring buffer structure in the prior art is applied to a recording apparatus for full-color printing, it can cope with a recording head for one color, but there is a data storage area for recording heads for other colors. The problem that it cannot be secured arises.

また、多色分のリングバッファ構造を持った場合でも、最初にバッファ構造が色毎に割り当てられるので、印刷するべきデータが無い場合でも、その領域を用意する必要があり、メモリ領域を効率的に使用することは困難である。   Even if you have a ring buffer structure for multiple colors, the buffer structure is allocated for each color first, so even if there is no data to be printed, it is necessary to prepare that area, making the memory area efficient. It is difficult to use.

上記課題を解決するために、本発明にかかる記録装置及び記録装置の制御方法等は主として以下の構成よりなることを特徴とする。   In order to solve the above-described problems, a recording apparatus and a control method for the recording apparatus according to the present invention are mainly characterized by the following configurations.

すなわち、記録ヘッドを搭載したキャリッジを記録媒体上で走査させて記録を行うために、該記録ヘッドの1走査にて記録される領域を走査方向に複数の領域に分割し、該分割された領域に対応した画像データが読み書きされるメモリ領域を複数備えたバッファを有する記録装置は、
外部からブロック単位のデータを入力する入力部と、
前記入力手段が入力したブロック単位のデータの解凍処理を行う解凍処理部と、
前記解凍処理部により解凍されたデータを、前記分割された領域単位の画像データとして前記バッファに格納するために、該領域単位の画像データの書き込みアドレス情報を色に制御する書き込み制御部と、
前記バッファに格納された画像データを読み出すための読み出しアドレス情報を色に制御する読み出し制御部と、
前記読み出しアドレス情報に基づき、読み出された画像データに従い、前記分割された領域単位の記録データを生成する記録データ生成と、
を備えることを特徴とする。
That is, in order to perform recording by causing a carriage mounted with a recording head to scan on a recording medium, an area recorded by one scan of the recording head is divided into a plurality of areas in the scanning direction , and the divided areas are divided. A recording apparatus having a buffer having a plurality of memory areas in which image data corresponding to the
An input unit for inputting data in block units from the outside;
A decompression processing unit for performing decompression processing of block-unit data input by the input means;
The decompressed data by the decompression processing unit, for storage in the buffer as the image data of the divided area units, a write controller for controlling write address information of the image data of the area units for each color,
A read control section for controlling reading address information for reading the image data stored in the buffer for each color,
Based on the read address information, according to the read image data, a recording data generation unit that generates recording data for the divided area units;
It is characterized by providing.

好ましくは、上記の記録装置において、前記分割された領域単位の画像データには、シアン、イエロー、マゼンタ、および黒に対応したデータが含まれる。 Preferably, in the recording apparatus described above, the image data for each divided area includes data corresponding to cyan, yellow, magenta, and black.

好ましくは、上記の記録装置において、前記書き込み制御部は、前記画像データを前記バッファの先頭アドレス情報と最終アドレス情報とにより設定された領域間で循環して格納する。 Preferably, in the recording apparatus, the write control unit stores the image data in a circulating manner between areas set by the first address information and the last address information of the buffer .

好ましくは、上記の記録装置において、前記書き込み制御部は、前記書き込みアドレス情報が前記読み出しアドレス情報と一致する場合は、前記バッファ内に格納されている画像データと重複したアドレスの設定を禁止する制御を実行する。   Preferably, in the recording apparatus, the write control unit is configured to prohibit setting of an address overlapping with the image data stored in the buffer when the write address information matches the read address information. Execute.

好ましくは、上記の記録装置において、前記書き込み制御部は、前記画像データに含まれる前記色データの有無の応じて、前記バッファに格納するためのアドレス情報を制御する。   Preferably, in the recording apparatus, the writing control unit controls address information to be stored in the buffer according to the presence or absence of the color data included in the image data.

好ましくは、上記の記録装置において、前記書き込み制御部は、前記画像データに含まれるデータの有無を識別するための情報と、該データのラスター数と、を含む設定情報を色データ毎に格納する第1レジスタと、
前記画像データの幅情報を格納する第2レジスタと、
前記第1レジスタに格納される書き込み対象となる第1ブロックデータに関する設定情報と、前記第2レジスタに格納される画像データの幅情報に基づき決定される、次の書き込み対象となる第2ブロックデータの書き込み開始アドレスを格納する第3レジスタと、を有し、
該書き込み制御部は、該第1ブロックデータに対応する画像データの書き込み完了前に、該第2ブロックデータに対する書き込みアドレス情報を前記決定した書き込み開始アドレスに更新する。
Preferably, in the recording apparatus, the writing control unit stores setting information including information for identifying presence / absence of data included in the image data and the number of rasters of the data for each color data. A first register;
A second register for storing width information of the image data;
Second block data to be written next, which is determined based on setting information related to the first block data to be written stored in the first register and width information of image data stored in the second register. A third register for storing the write start address of
The write control unit updates the write address information for the second block data to the determined write start address before completing the writing of the image data corresponding to the first block data.

好ましくは、上記の記録装置において、前記読み出し制御部は、前記画像データに含まれるデータの有無を識別するための情報と、該データのラスター数と、を含む設定情報を色データ毎に格納する第4レジスタと、
前記画像データの幅情報を格納する第5レジスタと、
前記第4レジスタに格納されている設定情報と、前記第5レジスタに格納される画像データの幅情報に基づき決定される、読み出し開始アドレスを格納する第6レジスタと、
前記第6レジスタに格納されている読み出しアドレスに従った画像データの読み出し完了前に、次のブロックデータに対する読み出し開始アドレスを決定し、該データを格納する第7レジスタと、
を有する。
Preferably, in the recording apparatus, the read control unit stores setting information including information for identifying presence / absence of data included in the image data and the number of rasters of the data for each color data. A fourth register;
A fifth register for storing width information of the image data;
A sixth register for storing a read start address determined based on setting information stored in the fourth register and width information of image data stored in the fifth register;
A seventh register for determining a read start address for the next block data before storing the image data in accordance with the read address stored in the sixth register, and storing the data;
Have

好ましくは、上記の記録装置において、前記読み出し制御部は色毎に読み出す順序を指定する情報を格納する読み出し色テーブルレジスタを更に有し、前記色毎に読み出す順序を指定する情報に基づいて、前記バッファから順に読み出しを制御する。   Preferably, in the recording apparatus, the read control unit further includes a read color table register that stores information specifying a reading order for each color, and based on the information specifying the reading order for each color, Reading is controlled in order from the buffer.

好ましくは、上記の記録装置において、前記読み出し制御部は前記読み出しアドレス情報が前記バッファの最終アドレスを指定した場合、前記バッファの最初のアドレスを指定する。   Preferably, in the recording apparatus, when the read address information specifies the final address of the buffer, the read control unit specifies the first address of the buffer.

好ましくは、上記の記録装置において、前記書き込み制御部は前記書き込みアドレス情報が前記バッファの最終アドレスを指定した場合、前記バッファの最初のアドレスを指定するように制御する。   Preferably, in the recording apparatus, when the write address information specifies the final address of the buffer, the write control unit performs control so as to specify the first address of the buffer.

好ましくは、上記の記録装置において、前記バッファに格納できるデータ数は、1走査の記録領域より少ない記録領域のデータ数である。   Preferably, in the above recording apparatus, the number of data that can be stored in the buffer is the number of data in a recording area that is smaller than the recording area for one scan.

また、記録ヘッドを搭載したキャリッジを記録媒体上で走査させて記録を行うために、該記録ヘッドの1走査にて記録される領域を走査方向に複数の領域に分割し、該分割された領域に対応した画像データが読み書きされるメモリ領域を複数備えたバッファを有する記録装置の制御方法は、
外部からブロック単位のデータを入力する入力工程と、
前記入力工程により入力されたブロック単位のデータの解凍処理を行う解凍処理工程と、
前記解凍処理工程により解凍されたデータを、前記分割された領域に対応した画像データとして前記バッファに格納するために、該領域単位の画像データの書き込みアドレス情報を色毎に制御する書き込み制御工程と、
前記バッファに格納された画像データを読み出すための読み出しアドレス情報を色毎に制御する読み出し制御工程と、
前記読み出しアドレス情報に基づき、読み出された画像データに従い、前記分割された領域単位の記録データを生成する記録データ生成工程と、
を備えることを特徴とする。
Further, in order to perform recording by causing a carriage mounted with a recording head to scan on a recording medium, an area recorded by one scan of the recording head is divided into a plurality of areas in the scanning direction , and the divided areas are divided. A control method of a recording apparatus having a buffer having a plurality of memory areas in which image data corresponding to the
An input process for inputting block unit data from the outside,
A decompression processing step for performing decompression processing of block-unit data input in the input step;
A write control step for controlling the write address information of the image data for each area for each color in order to store the data decompressed in the decompression process step as image data corresponding to the divided areas in the buffer; ,
A read control step for controlling read address information for reading image data stored in the buffer for each color;
Based on the read address information, in accordance with the read image data, a recording data generation step of generating the divided area unit recording data;
It is characterized by providing.

本発明にかかる記録装置及び、記録装置の制御方法によれば、複数の色データを含むデータをブロック単位として、バッファへの書き込み、読み取りを制御することが可能となる。この制御は、1走査分を複数に分割した領域に対応するブロックごとのデータを、バッファへの書き込みと、読み取りのアドレスを制御して、ブロックデータの入出力の同調を図ることが可能となる。   According to the recording apparatus and the control method of the recording apparatus according to the present invention, it is possible to control writing and reading to the buffer in units of data including a plurality of color data. This control makes it possible to synchronize the input / output of block data by controlling the addresses for writing and reading the data for each block corresponding to the area obtained by dividing one scan into a plurality of blocks. .

あるいは、各色データの高さ(ラスター数)情報と、色データの有無を示す情報を色データごとに個別に管理することで、各色画像データを記録バッファに書き込む際のアドレス管理が効率よく実行できるようになる。   Alternatively, by managing the height (raster number) information of each color data and the information indicating the presence / absence of the color data individually for each color data, it is possible to efficiently execute address management when writing each color image data to the recording buffer. It becomes like this.

あるいは、色データごとにデータの有無を判断することが可能となるため、データの無い領域に対する記録バッファ領域の確保が不要となり、バッファ領域の効率的な利用が可能となる。   Alternatively, since it is possible to determine the presence or absence of data for each color data, it is not necessary to secure a recording buffer area for an area without data, and the buffer area can be used efficiently.

以下添付図面を参照して本発明の好適な実施形態について詳細に説明する。   Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

なお、以下に説明する実施形態では、インクジェット記録方式を用いた記録装置としてプリンタを例に挙げ説明する。   In the embodiments described below, a printer is taken as an example of a recording apparatus using an inkjet recording method.

本明細書において、「記録」(「プリント」という場合もある)とは、文字、図形等有意の情報を形成する場合のみならず、有意無意を問わず、また人間が視覚で知覚し得るように顕在化したものであるか否かを問わず、広く記録媒体上に画像、模様、パターン等を形成する、または媒体の加工を行う場合も表すものとする。   In this specification, “recording” (sometimes referred to as “printing”) is not only for forming significant information such as characters and graphics, but also for human beings, regardless of whether it is significant or not. Regardless of whether or not it has been manifested, it also represents a case where an image, a pattern, a pattern or the like is widely formed on a recording medium or the medium is processed.

また、「記録媒体」とは、一般的な記録装置で用いられる紙のみならず、広く、布、プラスチック・フィルム、金属板、ガラス、セラミックス、木材、皮革等、インクを受容可能なものも表すものとする。   “Recording medium” refers not only to paper used in general recording apparatuses but also widely to cloth, plastic film, metal plate, glass, ceramics, wood, leather, and the like that can accept ink. Shall.

さらに、「インク」(「液体」と言う場合もある)とは、上記「記録(プリント)」の定義と同様広く解釈されるべきもので、記録媒体上に付与されることによって、画像、模様、パターン等の形成または記録媒体の加工、或いはインクの処理(例えば記録媒体に付与されるインク中の色剤の凝固または不溶化)に供され得る液体を表すものとする。   Furthermore, “ink” (sometimes referred to as “liquid”) is to be interpreted broadly in the same way as the definition of “recording (printing)” above. It represents a liquid that can be used for forming a pattern or the like, processing a recording medium, or processing an ink (for example, solidification or insolubilization of a colorant in ink applied to the recording medium).

<装置本体の概略説明>
図19は、本発明の代表的な実施の形態であるインクジェットプリンタIJRAの構成の概要を示す外観斜視図である。図19において、駆動モータ5013の正逆回転に連動して駆動力伝達ギア5009〜5011を介して回転するリードスクリュー5005の螺旋溝5004に対して係合するキャリッジHCはピン(不図示)を有し、ガイドレール5003に支持されて矢印a,b方向を往復移動する。キャリッジHCには、記録ヘッドIJHとインクタンクITとを内蔵した一体型インクジェットカートリッジIJCが搭載されている。
<Outline of the main unit>
FIG. 19 is an external perspective view showing an outline of the configuration of an inkjet printer IJRA that is a representative embodiment of the present invention. In FIG. 19, the carriage HC engaged with the spiral groove 5004 of the lead screw 5005 that rotates via the driving force transmission gears 5009 to 5011 in conjunction with the forward / reverse rotation of the drive motor 5013 has a pin (not shown). It is supported by the guide rail 5003 and reciprocates in the directions of arrows a and b. On the carriage HC, an integrated ink jet cartridge IJC incorporating a recording head IJH and an ink tank IT is mounted.

5002は紙押え板であり、キャリッジHCの移動方向に亙って記録用紙Pをプラテン5000に対して押圧する。5007,5008はフォトカプラで、キャリッジのレバー5006のこの域での存在を確認して、モータ5013の回転方向切り換え等を行うためのホームポジション検知器である。   A paper pressing plate 5002 presses the recording paper P against the platen 5000 in the moving direction of the carriage HC. Reference numerals 5007 and 5008 denote photo-couplers which are home position detectors for confirming the presence of the carriage lever 5006 in this region and switching the rotation direction of the motor 5013.

5016は記録ヘッドIJHの前面をキャップするキャップ部材5022を支持する部材で、5015はこのキャップ内を吸引する吸引器で、キャップ内開口5023を介して記録ヘッドの吸引回復を行う。5017はクリーニングブレードで、5019はこのブレードを前後方向に移動可能にする部材であり、本体支持板5018にこれらが支持されている。ブレードは、この形態でなく周知のクリーニングブレードが本例に適用できることは言うまでもない。   Reference numeral 5016 denotes a member that supports a cap member 5022 that caps the front surface of the recording head IJH. Reference numeral 5015 denotes a suction unit that sucks the inside of the cap, and performs suction recovery of the recording head through the cap opening 5023. Reference numeral 5017 denotes a cleaning blade, and reference numeral 5019 denotes a member that enables the blade to move in the front-rear direction, and these are supported by a main body support plate 5018. Needless to say, the blade is not in this form, and a known cleaning blade can be applied to this example.

又、5021は、吸引回復の吸引を開始するためのレバーで、キャリッジと係合するカム5020の移動に伴って移動し、駆動モータからの駆動力がクラッチ切り換え等の公知の伝達機構で移動制御される。   Reference numeral 5021 denotes a lever for starting suction for suction recovery, which moves in accordance with the movement of the cam 5020 engaged with the carriage, and the driving force from the driving motor is controlled by a known transmission mechanism such as clutch switching. Is done.

これらのキャッピング、クリーニング、吸引回復は、キャリッジがホームポジション側の領域に来た時にリードスクリュー5005の作用によってそれらの対応位置で所望の処理が行えるように構成されているが、周知のタイミングで所望の動作を行うようにすれば、本例にはいずれも適用できる。   These capping, cleaning, and suction recovery are configured so that desired processing can be performed at their corresponding positions by the action of the lead screw 5005 when the carriage comes to the home position side region. As long as the above operation is performed, any of these can be applied to this example.

なお、インクタンクITと記録ヘッドIJHとは一体的に形成されて交換可能なインクカートリッジIJCを構成しても良いが、これらインクタンクITと記録ヘッドIJHとを分離可能に構成して、インクがなくなったときにインクタンクITだけを交換できるようにしても良い。   The ink tank IT and the recording head IJH may be integrally formed to constitute a replaceable ink cartridge IJC. However, the ink tank IT and the recording head IJH are configured to be separable so that the ink can be separated. Only the ink tank IT may be exchanged when it runs out.

図20は、インクタンクとヘッドとが分離可能なインクカートリッジIJCの構成を示す外観斜視図である。インクカートリッジIJCは、図20に示すように、境界線Kの位置でインクタンクITと記録ヘッドIJHとが分離可能である。インクカートリッジIJCにはこれがキャリッジHCに搭載されたときには、キャリッジHC側から供給される電気信号を受け取るための電極(不図示)が設けられており、この電気信号によって、前述のように記録ヘッドIJHが駆動されてインクが吐出される。   FIG. 20 is an external perspective view showing the configuration of the ink cartridge IJC in which the ink tank and the head can be separated. In the ink cartridge IJC, as shown in FIG. 20, the ink tank IT and the recording head IJH can be separated at the position of the boundary line K. When the ink cartridge IJC is mounted on the carriage HC, an electrode (not shown) for receiving an electric signal supplied from the carriage HC side is provided, and by this electric signal, the recording head IJH as described above is provided. Is driven to eject ink.

なお、図20において、500はインク吐出口列である。また、インクタンクITにはインクを保持するために繊維質状もしくは多孔質状のインク吸収体が設けられている。   In FIG. 20, reference numeral 500 denotes an ink discharge port array. The ink tank IT is provided with a fibrous or porous ink absorber to hold ink.

次に、上述した装置の記録制御を実行するための制御構成について説明する。   Next, a control configuration for executing the recording control of the above-described apparatus will be described.

<第1実施形態>
以下図面を参照して本発明の第1実施形態について説明する。
<First Embodiment>
A first embodiment of the present invention will be described below with reference to the drawings.

図1は、本発明にかかる記録装置の実施形態において、その記録装置の記録制御部を示すブロック図である。同図に於いて、参照番号1はインターフェース信号線S1を介してホストコンピュータ(不図示)から転送されてくるデータを受信し、その受信したデータの中から、記録装置の動作に必要なデータ及び画像データを抽出して一旦蓄えるインターフェース制御部(コントローラ)であり、インターフェースコントローラ1で抽出されたデータは信号線S2を介して受信バッファ2に格納される。   FIG. 1 is a block diagram showing a recording control unit of a recording apparatus in an embodiment of the recording apparatus according to the present invention. In the figure, reference numeral 1 receives data transferred from a host computer (not shown) via the interface signal line S1, and from the received data, data necessary for operation of the recording apparatus and An interface control unit (controller) that extracts and temporarily stores image data. The data extracted by the interface controller 1 is stored in the reception buffer 2 via the signal line S2.

受信バッファ2はSRAMもしくはDRAM等の記憶装置で構成され、この受信バッファに蓄えられるデータは図2(a)、(b)で示すような構造のものとなる。   The reception buffer 2 is constituted by a storage device such as SRAM or DRAM, and data stored in the reception buffer has a structure as shown in FIGS. 2 (a) and 2 (b).

図2(a)において受信バッファのデータ構造が示されるように、左から順に「コマンド」(201),「データ長」(202),「設定データ」(203)のデータが格納され、これに続いて「コマンド」(204),「データ長」(205),「設定データ」(206)のデータが格納されている。これは時系列順に転送されてきたデータが、受信バッファの連続したアドレスに格納されることを示し、ここで示す設定データ206は、例えば給紙の実行や紙送り量の設定、使用する記録ヘッド数等を示す情報であり、この設定データで定められた情報が全て揃って初めて記録装置で記録が可能となる。この後に、記録の対象となる画像データ(209、212)が受信バッファ2に格納される。   As shown in the data structure of the reception buffer in FIG. 2A, data of “command” (201), “data length” (202), and “setting data” (203) are stored in this order from the left. Subsequently, data of “command” (204), “data length” (205), and “setting data” (206) are stored. This indicates that data transferred in chronological order is stored at consecutive addresses in the reception buffer. The setting data 206 shown here includes, for example, execution of paper feed, paper feed amount setting, and recording head to be used. It is information indicating the number and the like, and recording is possible with the recording apparatus only after all the information determined by the setting data is prepared. Thereafter, the image data (209, 212) to be recorded is stored in the reception buffer 2.

この画像データ(209、212)は、記録ヘッドが記録媒体上を1度の走査で記録する際に必要とされるデータ量を、それより少ないデータ量としてブロック単位に分割したデータであり、そのブロック単位で画像データを区切り、順次第1ブロックデータ(209)、第2ブロックデータ(212)、・・・として格納される。   The image data (209, 212) is data obtained by dividing the data amount required when the recording head performs recording on the recording medium in one scan into smaller blocks, and divided into blocks. The image data is divided in units of blocks and sequentially stored as first block data (209), second block data (212),.

図2(b)はブロック単位に分割された画像データのデータ構造を詳細に示す図であり、同図で示すように、複数の色のデータ(213〜214)が各々圧縮されたデータとして順次格納される。この色データは「色変えコード」(216、217、218)で区切られる。   FIG. 2B is a diagram showing in detail the data structure of the image data divided into block units. As shown in FIG. 2B, a plurality of color data (213 to 214) are sequentially compressed as data. Stored. This color data is delimited by “color changing codes” (216, 217, 218).

例えば、シアン、イエロー、マゼンタ、それと黒の4色の色データを想定した場合、各色毎に縦64ノズルを1列としたノズル列が走査方向に2列づつ配列する記録ヘッドを用いると、各ノズル列単位のデータが1つの色データを構成することになるのでノズル2列が4色分、すなわち、圧縮された第1色から第8色の色データが一つのブロックデータ内に画像データとして格納される。このノズル列の各ノズルは、被記録媒体の搬送方向に並んでいる。例えば、第1色と第2色がシアンのデータ、第3色と第4色はマゼンタのデータ、第5色と第6色はイエローのデータ、第7色と第8色は黒のデータとなる。   For example, assuming four color data of cyan, yellow, magenta, and black, using a print head in which nozzle rows each having 64 vertical nozzles for each color are arranged in two rows in the scanning direction, Since the data for each nozzle row constitutes one color data, the two nozzle rows for four colors, that is, the compressed color data of the first to eighth colors are converted into image data in one block data. Stored. Each nozzle of this nozzle row is lined up in the conveyance direction of the recording medium. For example, the first and second colors are cyan data, the third and fourth colors are magenta data, the fifth and sixth colors are yellow data, and the seventh and eighth colors are black data. Become.

図3は画像データを保持する記録バッファのデータ構造を示す図である。例えば1回の走査で最大約8インチの長さを記録する場合、1つのブロックデータが走査方向に約1/8インチの記録ができるサイズとすると、トータル8ブロックの画像データを記録処理すれば、1走査分の画像が完成することになる。第1ブロックから第8ブロックは記録ヘッドの走査方向に配置され、各ブロックデータには、第1色データから第8色データが格納される。各ブロック内に格納される各色データの長さは記録ヘッドのノズル数に対応するものである。   FIG. 3 shows the data structure of a recording buffer that holds image data. For example, when a maximum length of about 8 inches is recorded in one scan, assuming that one block data has a size capable of recording about 1/8 inch in the scanning direction, a total of 8 blocks of image data can be recorded. An image for one scan is completed. The first block to the eighth block are arranged in the scanning direction of the recording head, and the first color data to the eighth color data are stored in each block data. The length of each color data stored in each block corresponds to the number of nozzles of the recording head.

説明を図1に戻し、各制御ブロックの説明を続ける。受信バッファ2に格納されるデータのうち、記録装置の制御用の設定値である「コマンド」,「データ長」,「設定データ」は、インターフェースコントローラ1から信号線S902を介してCPU9により読み出され、図中にある各部制御回路(7,8)に設定される(S903、S907)。CPU9は読み出したデータ(図2(a)の201〜208に相当するデータ)を解釈し、その結果に従って記録装置の全体的な記録制御を統括する。一方、CPU9は画像データの処理に関してはデータ展開ブロック3を起動して処理を実行させるものとする。   Returning to FIG. 1, the description of each control block is continued. Of the data stored in the reception buffer 2, “command”, “data length”, and “setting data”, which are setting values for controlling the recording apparatus, are read from the interface controller 1 by the CPU 9 via the signal line S 902. Are set in the respective control circuits (7, 8) in the figure (S903, S907). The CPU 9 interprets the read data (data corresponding to 201 to 208 in FIG. 2A), and controls overall recording control of the recording apparatus according to the result. On the other hand, regarding the processing of the image data, the CPU 9 activates the data expansion block 3 to execute the processing.

データ展開ブロック3は受信バッファ2から、図2(b)で示されるように「圧縮TAG」と「データ」及び「色変えコード」の3種類のデータを読み出し、これらのデータに基づきデータの展開制御を実行する。本実施形態ではデータの圧縮/解凍方法としてPackBits圧縮を用いたので、圧縮TAGが8ビットで00hから7Fhまで値の場合、非連続なデータが1から128個データ領域に有るとして処理し、圧縮TAGが8ビットでFFhから81hまで値の場合、次の1バイトデータを連続した2から128個のデータに解凍する処理を行う。圧縮TAGの所で、80hを読み出した場合は色変えコードとして処理する。解凍したデータを信号線S4に乗せ、記録バッファ4に書き込む。   The data expansion block 3 reads three types of data “compression TAG”, “data”, and “color change code” from the reception buffer 2 as shown in FIG. 2B, and expands the data based on these data. Execute control. In this embodiment, PackBits compression is used as the data compression / decompression method. Therefore, when the compression TAG is 8 bits and is a value from 00h to 7Fh, processing is performed assuming that 1 to 128 non-contiguous data exists in the data area, and compression is performed. When TAG is 8 bits and is a value from FFh to 81h, a process of decompressing the next 1-byte data into 2 to 128 consecutive data is performed. When 80h is read at the compression TAG, it is processed as a color change code. The decompressed data is placed on the signal line S4 and written to the recording buffer 4.

記録バッファ4には解凍された画像データが図3に示すデータ構造で格納される。記録バッファ4の先頭アドレスには第1ブロックの第1色データの先頭のデータが書き込まれ、その後に続くデータは、アドレスを1ずつ加算しながら順次書き込まれる。記録バッファのアドレスに一つの色データとして格納できる領域は、最初にCPU9が読み込んだ設定データで決定され、その値以上のデータは書き込めないので画像データを圧縮する際には、その設定データに従ったデータサイズの制限が加えられることになる。色変えコードを検出した後のデータは第2色データの先頭番地から順次書き込まれる。このアドレスデータの制御は後に説明する記録バッファリング制御構造回路8が実行することになる。   The recording buffer 4 stores the decompressed image data in the data structure shown in FIG. The head data of the first color data of the first block is written to the head address of the recording buffer 4, and the subsequent data is sequentially written while adding the addresses one by one. The area that can be stored as one color data at the address of the recording buffer is determined by the setting data read by the CPU 9 first, and since data exceeding that value cannot be written, the image data is compressed according to the setting data. Data size restrictions will be added. The data after detecting the color change code is sequentially written from the start address of the second color data. The control of the address data is executed by a recording buffering control structure circuit 8 to be described later.

この書き込みを第1ブロックの第1色データから第8色データまで繰り返し、第8色データの書き込みを終えて色変えコードを検知すると、第1ブロックのデータが全て書き込み終えたことになる。データ展開ブロック3はデータの展開動作を終了し、CPU9に対しブロック1個分のデータの展開が完成したことを割込み(INT3)で伝え、CPU9からの次のデータ展開の起動を待つ。   This writing is repeated from the first color data to the eighth color data in the first block, and when the color change code is detected after the eighth color data has been written, all the data in the first block has been written. The data expansion block 3 ends the data expansion operation, notifies the CPU 9 that the data expansion for one block has been completed by an interrupt (INT3), and waits for the start of the next data expansion from the CPU 9.

記録バッファ4上に複数ブロックの画像データが揃った段階で、CPU9は記録動作を開始すべく不図示の走査モータを動作させ、記録ヘッド6が走査しながら、画像データをキャリッジエンコーダ(CRエンコーダ)10に同期して転送し、記録することで紙面上(被記録媒体に)に画像を完成させることができる。記録ヘッド6が主走査方向に走査した後、搬送手段が被記録媒体を副走査方向に搬送する。こうして、記録ヘッドの走査と、被記録媒体の搬送を繰り返し行って、1ページ分の画像の記録を行う。   When a plurality of blocks of image data are arranged on the recording buffer 4, the CPU 9 operates a scanning motor (not shown) to start the recording operation, and the recording head 6 scans the image data with a carriage encoder (CR encoder). The image can be completed on the paper surface (on the recording medium) by transferring and recording in synchronization with the image 10. After the recording head 6 scans in the main scanning direction, the conveying means conveys the recording medium in the sub scanning direction. In this way, scanning of the recording head and conveyance of the recording medium are repeatedly performed to record an image for one page.

記録データ生成ブロック5は、記録バッファ4上に有る画像データの各ブロック構造を、CPU9から指定された値に従って、CRエンコーダ10に同期したタイミングで信号線S5を介して読み出し、記録ヘッド6が記録できるデータ構造に変換しながら信号線S6に出力していく。この記録データ生成ブロック5は後で述べる記録バッファ内のブロック幅(ブロックの長さを示す。)の情報、ブロックの各色の高さ(色データの「ラスター数」という。)についての情報を保持する。   The recording data generation block 5 reads each block structure of the image data on the recording buffer 4 via the signal line S5 at a timing synchronized with the CR encoder 10 in accordance with a value designated by the CPU 9, and the recording head 6 performs recording. The data is output to the signal line S6 while being converted into a possible data structure. This recording data generation block 5 holds information on the block width (indicating the length of the block) in the recording buffer, which will be described later, and information on the height of each color of the block (referred to as “raster number” of color data). To do.

<受信バッファの書き込み、読み込み制御>
以上説明したように受信バッファ2には、インターフェースコントローラ1がデータを書き込み、データ展開ブロック3が画像データのみを読み出すが、その書き込みアドレスと読み出しアドレスを制御しているのが受信バッファリング構造制御回路7である。受信バッファリング構造制御回路7は受信バッファ2の先頭アドレスと最終アドレス、それと書き込みアドレスと読み出しアドレスの管理を行っている。
<Receiving buffer write / read control>
As described above, the interface controller 1 writes data to the reception buffer 2 and the data expansion block 3 reads only image data. The reception buffering structure control circuit controls the write address and read address. 7. The reception buffering structure control circuit 7 manages the start address and the end address of the reception buffer 2, and the write address and read address.

受信バッファリング構造制御回路7はインターフェースコントローラ1から受信する書き込み要求信号(S701)を受け付け毎に1アドレスずつ加算し、これを書き込みアドレスの情報として受信バッファ2に出力する(信号線S702)。そして、受信バッファリング構造制御回路7は受信バッファ2の最終アドレスに達した場合に書き込みアドレスを受信バッファ2の先頭のアドレスに戻す制御を行なう。   The reception buffering structure control circuit 7 adds a write request signal (S701) received from the interface controller 1 for each reception, and outputs this to the reception buffer 2 as write address information (signal line S702). Then, the reception buffering structure control circuit 7 performs control to return the write address to the head address of the reception buffer 2 when the final address of the reception buffer 2 is reached.

また、書き込みアドレスが読み出しアドレスに到達(一致)した場合、受信バッファ2がデータでいっぱいになり、次のデータを書き込めない旨をインターフェースコントローラ1に信号線S703を介して通信する。   When the write address reaches (matches) the read address, the reception buffer 2 is filled with data and communicates to the interface controller 1 via the signal line S703 that the next data cannot be written.

このとき同時にCPU9に対しても信号線S904の割込み信号により、受信バッファ2はデータの書き込みができない状態であることを知らせる。受信バッファ2の構造はCPU9が信号線S903のバスを用いて内部のレジスタに書き込むことで設定することができる。   At the same time, the reception buffer 2 notifies the CPU 9 that the data cannot be written by an interrupt signal on the signal line S904. The structure of the reception buffer 2 can be set by the CPU 9 writing to an internal register using the bus of the signal line S903.

読み出しアドレスは、CPU9が受信バッファリング構造制御回路7の中に有るデータリード用レジスタを介して直接に受信バッファ2の中のデータを読み出す場合と、データ展開ブロック3がデータ読み出し要求信号線S705を介して要求した場合に、読み出しアドレスとして信号線S706を介して1アドレスづつ加算されて受信バッファ2に出力される。   When the CPU 9 reads the data in the reception buffer 2 directly through the data read register in the reception buffering structure control circuit 7, the data expansion block 3 sends the data read request signal line S705 to the read address. When the request is made, the read address is added one by one via the signal line S706 and outputted to the reception buffer 2.

受信バッファリング構造制御回路7は読み出しアドレスが最終アドレスに達した場合、読み出しアドレスを受信バッファ2の先頭アドレスに戻す制御を行なう。また読み出しアドレスが書き込みアドレスに到達(一致)した場合、受信バッファ上からデータがなくなったので、次のデータを読み出せない旨をデータ展開ブロックに信号線S704を介して通信する。このとき同時にCPU9に対しても信号線S904の割込み信号線で、受信バッファ2上には、読み出すデータが無い旨を知らせる。   The reception buffering structure control circuit 7 performs control to return the read address to the head address of the reception buffer 2 when the read address reaches the final address. When the read address reaches (matches) the write address, data is lost from the reception buffer, so that the next data cannot be read is communicated to the data development block via the signal line S704. At the same time, the CPU 9 is informed that there is no data to be read out on the reception buffer 2 through the interrupt signal line of the signal line S904.

以上が受信バッファ2に対するデータの書き込み、読み取り制御の処理内容である。次に、この受信バッファ2から読み出され、展開処理されたデータを記録バッファに書き込みし、あるいはその記録バッファからデータを読み取るための処理内容を説明する。   The above is the processing content of the data writing / reading control to the reception buffer 2. Next, the processing contents for writing the data read out from the reception buffer 2 and developed into the recording buffer or reading the data from the recording buffer will be described.

<記録バッファの書き込み、読み取り制御>
記録バッファ4に対して、データ展開ブロック3が画像データを書き込み、記録データ生成ブロック5がその書き込まれた画像データを読み出すが、その際、書き込みアドレスと読み出しアドレスを制御しているのが記録バッファリング構造制御回路8である。
<Record buffer read / write control>
The data development block 3 writes image data to the recording buffer 4, and the recording data generation block 5 reads the written image data. At this time, the recording buffer controls the writing address and the reading address. This is a ring structure control circuit 8.

記録バッファリング構造制御回路8は記録バッファの先頭アドレスと、最終アドレス、それと書き込みアドレスと、読み出しアドレスの管理を行っている。   The recording buffering structure control circuit 8 manages the start address, the end address, the write address, and the read address of the record buffer.

記録バッファリング構造制御回路8はデータ展開ブロック3から受信する書き込み要求信号(S801)を受け付け毎に1アドレスずつ加算し、これを書き込みアドレスの情報として記録バッファ4に出力する(信号線S802)。そして、記録バッファリング構造制御回路8は記録バッファ4の最終アドレスに達した場合に書き込みアドレスを記録バッファ4の先頭のアドレスに戻す制御を行なう。   The recording buffering structure control circuit 8 adds a write request signal (S801) received from the data development block 3 by one address each time it is received, and outputs this to the recording buffer 4 as write address information (signal line S802). Then, the recording buffering structure control circuit 8 performs control to return the write address to the head address of the recording buffer 4 when the final address of the recording buffer 4 is reached.

また、書き込みアドレスが読み出しアドレスに到達(一致)した場合、記録バッファ4が画像データでいっぱいになり、次の画像データを書き込めない旨をデータ展開ブロック3に信号線S803を介して通信する。   When the write address reaches (matches) the read address, the recording buffer 4 is filled with image data, and the fact that the next image data cannot be written is communicated to the data development block 3 via the signal line S803.

また、データ展開ブロック3が色変えコードを受信バッファ2から読み込んだ場合、データ展開ブロック3は信号線S804を介してその旨を通信し、記録バッファリング構造制御回路8は次の色のデータを格納する先頭番地を信号線S802から出力するように準備する。記録バッファ4の構造はCPU9が信号線S907のバスを用いて内部のレジスタに書き込むことで設定することができる。   When the data expansion block 3 reads the color change code from the reception buffer 2, the data expansion block 3 communicates that fact via the signal line S804, and the recording buffering structure control circuit 8 receives the next color data. The head address to be stored is prepared to be output from the signal line S802. The structure of the recording buffer 4 can be set by the CPU 9 writing to an internal register using the bus of the signal line S907.

読み出しアドレスは、記録データ生成ブロック5が各色毎にデータ読み出し要求信号線S805を介して要求すると、読み出しアドレスとして信号線S806を介して1アドレスづつ加算されて記録バッファ4に出力される。   When the recording data generation block 5 requests the read address for each color via the data read request signal line S805, the read address is added one address at a time via the signal line S806 and output to the recording buffer 4.

記録バッファリング構造制御回路8は読み出しアドレスが最終アドレスに達した場合、読み出しアドレスを記録バッファ4の先頭アドレスに戻す制御を行なう。   The recording buffering structure control circuit 8 performs control to return the reading address to the head address of the recording buffer 4 when the reading address reaches the final address.

記録データ生成ブロック5は現在読み出している画像データブロックのデータ構造をCPU9から信号線S908のバスを介して、記録データ生成ブロック5内部にあるレジスタに設定する。設定された画像データブロック構造内にある画像データを全て読み出すと終了信号S909をCPU9に対し割り込み信号として通信する。この際、記録バッファ4上に次の画像データブロックがすでに展開されているならば、その画像データブロック構造をレジスタに書き込む。   The recording data generation block 5 sets the data structure of the image data block currently being read out from the CPU 9 to a register in the recording data generation block 5 via the bus of the signal line S908. When all the image data in the set image data block structure is read, the end signal S909 is communicated to the CPU 9 as an interrupt signal. At this time, if the next image data block is already developed on the recording buffer 4, the image data block structure is written in the register.

記録バッファ4は1画像データブロック単位でデータの書き込みを制御しており、書き込まれていない画像データブロックに対し記録データ生成ブロックを起動しないので、記録バッファの読み出しアドレスが書き込みアドレスを越えることは起きない。11は、バッファ構造情報メモリである。これは、記録バッファの制御用の作業用メモリ(ワークRAM)で、後で述べる記録バッファ構造についての情報を一時的に格納する領域である。   Since the recording buffer 4 controls data writing in units of one image data block and does not activate a recording data generation block for an unwritten image data block, the read address of the recording buffer exceeds the write address. Absent. Reference numeral 11 denotes a buffer structure information memory. This is a working memory (work RAM) for controlling the recording buffer, and is an area for temporarily storing information about the recording buffer structure described later.

以上、記録制御部における記録データの流れの概要について説明したが、以下、各制御ブロックの詳細な機能について説明する。   The outline of the flow of recording data in the recording control unit has been described above. Hereinafter, detailed functions of each control block will be described.

<インターフェースコントローラ1(図4)>
図4はインターフェースコントローラ1の内部を示すブロック図で、コマンド解析部101とデータラッチ部102を有する。
<Interface controller 1 (FIG. 4)>
FIG. 4 is a block diagram showing the inside of the interface controller 1, which includes a command analysis unit 101 and a data latch unit 102.

コマンド解析部101はインタフェース信号線S1を介してホストコンピュータから送られてくるデータ列が、記録装置の状態等を確認するコマンド情報か、画像データに関わるデータなのかを判断し、受信したデータが記録装置の状態等を確認するコマンド情報であれば、装置の状態を識別するためのステータスを自動応答し、画像データならば102のデータラッチ部に一旦保存する制御を行う。コマンド解析部101は記録装置のステータス情報を蓄えるレジスタを持ち、CPU9はバス(S901)を介してその情報をレジスタに書き込む。   The command analysis unit 101 determines whether the data string sent from the host computer via the interface signal line S1 is command information for confirming the state of the recording apparatus or the like, or data related to image data, and the received data is If it is command information for confirming the status or the like of the recording apparatus, a status for identifying the status of the apparatus is automatically responded, and if it is image data, control for temporarily storing it in the data latch unit 102 is performed. The command analysis unit 101 has a register for storing status information of the recording apparatus, and the CPU 9 writes the information in the register via the bus (S901).

コマンド解析部101は、インタフェース信号線S1でデータ(コマンド情報、画像データ)を受け付けると割り込み信号(INT1)S902をCPU9に対して出力し、データの受信が完了した旨を通知する。CPU9はその割り込み信号を受け、データ処理を開始する。   When the command analysis unit 101 receives data (command information, image data) through the interface signal line S1, the command analysis unit 101 outputs an interrupt signal (INT1) S902 to the CPU 9 to notify the completion of data reception. The CPU 9 receives the interrupt signal and starts data processing.

データラッチ部102は数バイトの記憶装置で、FIFO構造となっており、データラッチ部102にデータが有る場合は、書き込み要求信号S701を受信バッファリング構造制御回路部7に出力し、データラッチ部102のデータが零になるまで書き込み要求信号S701が出力される。但し、受信バッファ2がいっぱいで書き込めない状態や、何らかの異常でデータが受け付けられない時、受信バッファリング構造制御回路部7はデータ転送待機信号S703を出力し、待機信号S703を受けてデータラッチ部102はデータ転送を停止する。   The data latch unit 102 is a storage device of several bytes and has a FIFO structure. When the data latch unit 102 has data, the data latch unit 102 outputs a write request signal S701 to the reception buffering structure control circuit unit 7, and the data latch unit The write request signal S701 is output until the data 102 becomes zero. However, when the reception buffer 2 is full and cannot be written, or when data is not accepted due to some abnormality, the reception buffering structure control circuit unit 7 outputs a data transfer standby signal S703 and receives the standby signal S703 to receive the data latch unit. 102 stops the data transfer.

データ転送が停止すると、データラッチ部102のFIFOはすぐデータでいっぱいになり、ホストコンピュータ側からデータを受け取れなくなり、その場合、装置本体の状態をビジー状態とし、コマンド解析部101はデータが送られてきても受け取れなかったとして再送要求をホストコンピュータに出力する。   When the data transfer is stopped, the FIFO of the data latch unit 102 is immediately filled with data and cannot receive data from the host computer side. In this case, the state of the apparatus main body is set to the busy state, and the command analysis unit 101 receives the data. A retransmission request is output to the host computer as if it could not be received.

<受信バッファリング構造制御回路部7(図5)>
図5は受信バッファリング構造制御回路部7の詳細を示すブロック図で、インターフェースコントローラ1のデータを受信バッファ2に書き込む為のアドレス(ライトポインタ)を出力する書き込みアドレスレジスタ(WP)701と、受信バッファ2上のデータをデータ展開ブロック3に出力するための読み出しアドレス(リードポインタ)を出力する読み出しアドレスレジスタ(RP)702を持ち、それぞれ書き込みアドレス信号線S702と、読み出しアドレス信号線S706として出力する。更に、受信バッファ2の先頭アドレスと最終アドレスを特定する先頭アドレスレジスタ(top_adr)703、最終アドレスレジスタ(bottom_adr)704を有し、それぞれのレジスタはCPU9により初期値が設定される。
<Reception Buffering Structure Control Circuit Unit 7 (FIG. 5)>
FIG. 5 is a block diagram showing details of the reception buffering structure control circuit unit 7, a write address register (WP) 701 for outputting an address (write pointer) for writing data of the interface controller 1 to the reception buffer 2, and reception It has a read address register (RP) 702 that outputs a read address (read pointer) for outputting data on the buffer 2 to the data development block 3, and outputs them as a write address signal line S702 and a read address signal line S706, respectively. . Furthermore, a start address register (top_adr) 703 and a last address register (bottom_adr) 704 for specifying the start address and the end address of the reception buffer 2 are provided. The initial values of these registers are set by the CPU 9.

例えば、受信バッファ2の先頭番地を1000hアドレスとして先頭アドレスレジスタ703に設定し、最終番地をFFFFhアドレスとして最終アドレスレジスタ704に設定し、最初は受信バッファ2上にはデータが1個も無いので、書き込みアドレスレジスタ701及び読み出しアドレスレジスタ702には1000hを設定する。   For example, the start address of the reception buffer 2 is set as the 1000h address in the start address register 703, the last address is set as the FFFFh address in the final address register 704, and there is no data on the reception buffer 2 at first. 1000h is set in the write address register 701 and the read address register 702.

この初期状態でデータがないとき、アドレス制御ブロック705はインターフェースコントローラ1からの書き込み要求信号S701は受け付けるが、データ展開ブロック3に対してデータが無いことをバッファエンプティー信号線S704を出力して伝え、読み出し要求信号S705を出力しないよう通信する。インターフェースコントローラ1からの書き込み要求信号S701を受け取り最初のデータを受信バッファ2に書き終えたとき、アドレス制御ブロック705は書き込みアドレスレジスタ701の値を1個加算して書き戻す。上記の制御を書き込み要求があるたびに行い、次に書き込むアドレスが最終アドレスレジスタ704に設定された値を超えた場合、次のアドレスとして先頭アドレスレジスタ703に設定された値が書き込みアドレスレジスタ701の値となる。   When there is no data in this initial state, the address control block 705 accepts the write request signal S701 from the interface controller 1, but outputs a buffer empty signal line S704 to notify the data development block 3 that there is no data, Communication is performed so as not to output the read request signal S705. When the write request signal S701 from the interface controller 1 is received and the first data is written to the reception buffer 2, the address control block 705 adds one value of the write address register 701 and writes it back. The above control is performed every time there is a write request, and when the next write address exceeds the value set in the final address register 704, the value set in the start address register 703 as the next address is stored in the write address register 701. Value.

書き込みアドレスレジスタ701の値が読み出しアドレスレジスタ702の値に一致した時、受信バッファ2はまだ読み出されていないデータでいっぱいになり、次のデータが書き込めないので、アドレス制御ブロック705はインターフェースコントロールブロック1に対しバッファフル信号線S703を出力し、書き込み要求信号S701の出力を抑制させる。   When the value of the write address register 701 matches the value of the read address register 702, the reception buffer 2 is filled with unread data, and the next data cannot be written. Therefore, the address control block 705 is an interface control block. 1 outputs a buffer full signal line S703 to suppress the output of the write request signal S701.

受信バッファ2上に1個でもデータが有る状態とは、書き込みアドレスレジスタ701の値と読み出しアドレスレジスタ702の値が異なる時であり、その場合、アドレス制御ブロック705はバッファエンプティー信号S704の出力を止め、データ展開ブロック3からのデータ読み出し要求信号S705が出力され、受信バッファ2からデータの読み出しが終了した時点で、アドレス制御ブロック705は読み出しアドレスレジスタ702の値を1個加算して書き戻す。   The state in which there is even one piece of data on the reception buffer 2 is when the value of the write address register 701 and the value of the read address register 702 are different. In this case, the address control block 705 stops outputting the buffer empty signal S704. When the data read request signal S705 from the data expansion block 3 is output and the data read from the reception buffer 2 is completed, the address control block 705 adds one value of the read address register 702 and writes it back.

上記の制御を読み出し要求があるたびに行い、次に読み出すアドレスが最終アドレスレジスタ704に設定された値を超えた場合、次のアドレスとして先頭アドレスレジスタ703に設定された値が読み出しアドレスレジスタ701の値となる。   The above control is performed every time there is a read request, and when the next read address exceeds the value set in the final address register 704, the value set in the start address register 703 as the next address is stored in the read address register 701. Value.

読み出しアドレスレジスタ702の値が書き込みアドレスレジスタ701の値に一致した時、受信バッファ2上には読み出されていないデータが無くなり、次のデータが読み出せないので、アドレス制御ブロック705はデータ展開ブロック3に対しバッファエンプティー信号線S704を出力し、読み出し要求信号S705の出力を抑制させる。   When the value of the read address register 702 matches the value of the write address register 701, there is no unread data on the reception buffer 2, and the next data cannot be read. Therefore, the address control block 705 is a data expansion block. 3 outputs a buffer empty signal line S704 to suppress the output of the read request signal S705.

また、アドレス制御ブロック705は受信バッファ2がバッファエンプティー状態やバッファフル状態になった時、また、それらの状態が解除された時をCPU9に知らせる為に受信バッファ割込み信号線S904(INT2)を出力する。   The address control block 705 outputs a reception buffer interrupt signal line S904 (INT2) to notify the CPU 9 when the reception buffer 2 is in a buffer empty state or a buffer full state, or when these states are released. To do.

図6は受信バッファリング構造制御回路7の動作タイミングを示す図であり、書き込み要求信号S701、書き込みアドレス信号線S702、バッファフル信号線S703、バッファエンプティー信号線S704、読み出し要求信号S705、読み出しアドレス信号線S706の各信号線の変化を示す。上述の説明のように、書き込み要求信号S701が入力される毎に書き込みアドレス信号線S702は1づつ加算され、読み出し要求信号S705が入力される毎に読み出しアドレス信号線S706は1づつ加算される。受信バッファ上にデータが無くなればバッファエンプティー信号S704が出力され(図6のタイミングA及びB)、受信バッファ上にデータがいっぱいになればバッファフル信号S703が出力される(図6のタイミングC)。   FIG. 6 is a diagram showing the operation timing of the reception buffering structure control circuit 7. The write request signal S701, the write address signal line S702, the buffer full signal line S703, the buffer empty signal line S704, the read request signal S705, and the read address signal. The change of each signal line of line S706 is shown. As described above, the write address signal line S702 is incremented by 1 each time the write request signal S701 is input, and the read address signal line S706 is incremented by 1 each time the read request signal S705 is input. When there is no data on the reception buffer, the buffer empty signal S704 is output (timing A and B in FIG. 6), and when the data is full on the reception buffer, the buffer full signal S703 is output (timing C in FIG. 6). .

<記録バッファリング構造制御回路の説明>
記録バッファリング構造制御回路の説明を図7及び図10を用いて説明する。記録バッファリング構造制御回路の処理において、図7は書き込みアドレス制御を中心に説明する図であり、図10は記録バッファリング構造制御回路8の読み出しアドレス制御を中心に説明する図である。
<Description of Recording Buffering Structure Control Circuit>
The recording buffering structure control circuit will be described with reference to FIGS. In the processing of the recording buffering structure control circuit, FIG. 7 is a diagram for explaining mainly the write address control, and FIG. 10 is a diagram for explaining the reading address control of the recording buffering structure control circuit 8.

記録バッファリング構造制御回路8は読み出し制御部8Aと書き込みアドレス制御部8Bで構成されている。また、記録バッファ4のバッファ領域は、記録バッファの先頭のアドレスをtop_adrで示し、最終アドレスをbottom_adrで表示する。この先頭アドレスは書き込みアドレス制御部8B内のレジスタ803に格納され、最終アドレスは書き込みアドレス制御部8B内のレジスタ804に格納される。   The recording buffering structure control circuit 8 includes a read control unit 8A and a write address control unit 8B. In the buffer area of the recording buffer 4, the top address of the recording buffer is indicated by top_adr, and the final address is indicated by bottom_adr. The head address is stored in the register 803 in the write address control unit 8B, and the final address is stored in the register 804 in the write address control unit 8B.

記録バッファ4に示される「RP」はリードポインタを示し、「WP」はライトポインタを示す。記録バッファの中のRPとWPの間のハッチング部分は記録データが格納されていることを表している。また、記録バッファ4の白色部分は記録データが格納されていないことを表す。   “RP” shown in the recording buffer 4 indicates a read pointer, and “WP” indicates a write pointer. A hatched portion between RP and WP in the recording buffer indicates that recording data is stored. The white portion of the recording buffer 4 indicates that recording data is not stored.

読み出しアドレス制御部8A内の802は、データの読み出しアドレス(RP:リードポインタ)を示すレジスタである。805から812は第1色から第8色について、各色の情報を格納するレジスタである。ここで、レジスタ805にはは第1色のデータのバッファの高さ情報と、第1色データの有り無しを示す情報が格納され、同様にレジスタ806〜812についても第2色〜第8色について同様の情報が設定される。   802 in the read address control unit 8A is a register indicating a data read address (RP: read pointer). Reference numerals 805 to 812 denote registers for storing information on each color for the first to eighth colors. Here, the register 805 stores the height information of the first color data buffer and information indicating the presence or absence of the first color data. Similarly, the registers 806 to 812 also have the second color to the eighth color. Similar information is set for.

813はブロックの幅情報を設定するレジスタであり、この幅情報は第1色〜第8色までブロック単位で、共通して使われる値である。   Reference numeral 813 denotes a register for setting block width information. This width information is a value commonly used in units of blocks from the first color to the eighth color.

上述のブロックの高さの情報及び幅情報は、図2(a)で説明した設定データに含まれる情報である。   The above-described block height information and width information are information included in the setting data described with reference to FIG.

815は次のブロックデータのアドレスを格納するレジスタであり、このアドレスは各色に関する情報を格納するレジスタ805からレジスタ812のうちのいずれかの値と、ブロックデータに関する幅の情報を格納するレジスタ813の値を用いて決定することができる。書き込み制御部8Bは、書き込み対象となる第1ブロックデータに関する設定情報に従い、次に書き込み対象となる第2ブロックデータの書き込み開始アドレスを決定し、このレジスタに格納する。   A register 815 stores an address of the next block data. This address is a value of one of the registers 805 to 812 storing information related to each color and a width of the register 813 storing width information related to the block data. It can be determined using the value. The write control unit 8B determines the write start address of the second block data to be written next and stores it in this register according to the setting information related to the first block data to be written.

書き込み制御部8Bは、第1ブロックデータに対応する画像データの書き込み完了前に、次の第2ブロックデータに対する書き込みアドレス情報を決定した書き込み開始アドレスに更新することができる。   The write control unit 8B can update the write address information for the next second block data to the determined write start address before completing the writing of the image data corresponding to the first block data.

また、816はデータの書き込みアドレスを格納するレジスタである。   Reference numeral 816 denotes a register for storing a data write address.

814はアドレス制御レジスタで、書き込みアドレスが読み出しアドレスを追い越さないように(両アドレスが重複したアドレスを指定しないように)書き込み処理、読み出し処理の管理をする。   Reference numeral 814 denotes an address control register, which manages write processing and read processing so that the write address does not overtake the read address (so as not to specify an address in which both addresses overlap).

<記録バッファへのデータの格納(図8)>
図8は、記録バッファ4に画像データがどのように格納されるか説明する図である。図8(a)では、第1色データとして縦に順に4ワード分ずつ、格納される状態を示す。ここで1ワードが16画素分に対応している。レジスタに情報を格納するアドレスは1づつインクリメントされるものとすると、ライトポインタ(WP)は1→2→3→4→5→・・・・とカウントされる。
<Storage of data in recording buffer (FIG. 8)>
FIG. 8 is a diagram for explaining how image data is stored in the recording buffer 4. FIG. 8A shows a state in which four words are stored in the vertical order as the first color data. Here, one word corresponds to 16 pixels. Assuming that the address for storing information in the register is incremented by one, the write pointer (WP) is counted as 1 → 2 → 3 → 4 → 5 →.

例えば、図8(a)のレジスタの設定は、バッファの高さ情報(ラスター数)の値は「4」であり、データの有り無し情報の値は「1(有り)」である。レジスタ813(ブロックの幅情報)の値は「28」である。   For example, in the register setting of FIG. 8A, the value of the buffer height information (number of rasters) is “4”, and the value of the data presence / absence information is “1 (present)”. The value of the register 813 (block width information) is “28”.

図8(b)は、第2色データがある場合に、記録バッファ4へのデータの書き込みを示す図である。第1色の格納領域に全てデータを格納した後、矢印のようにライトポインタ(WP)を第2色の先頭アドレスへ移動し、第2色のデータの格納を行う。図8(c)では、第2色データが無い場合、第1色データの格納領域に続き、第3色データが格納されることを示す。この場合、図7で示すレジスタ806の第2色データの有り無し情報は、データ無しを示す「0(無し)」である。あるいは、バッファの高さ情報が「0」であれば、データが無いことを示すので、この情報を用いてもかまわない。あるいはデータの有り無し情報とバッファの高さ情報を論理和(AND処理)を行ってその結果を判断しても良い。   FIG. 8B is a diagram illustrating data writing to the recording buffer 4 when there is second color data. After all the data is stored in the storage area for the first color, the write pointer (WP) is moved to the head address of the second color as indicated by the arrow, and the data for the second color is stored. FIG. 8C shows that when there is no second color data, the third color data is stored following the storage area for the first color data. In this case, the presence / absence information of the second color data in the register 806 shown in FIG. 7 is “0 (absent)” indicating no data. Alternatively, if the height information of the buffer is “0”, it indicates that there is no data, so this information may be used. Alternatively, the result may be determined by performing a logical sum (AND process) on the data presence / absence information and the buffer height information.

図8(d)では、第2色のデータについて、書き込み位置を示すe1(WP:ライトポインタ)は、読み出し位置を示すe2(RP:リードポインタ)の手前で書き込みを停止することを示す。これは、読み出しが終了していない位置には、データの書き込みを禁止して、上書きをすることを防ぐ制御を行うものである。以上の制御は、第3色から第8色の領域についても同様である。   In FIG. 8D, for the second color data, e1 (WP: write pointer) indicating the writing position indicates that writing stops before e2 (RP: read pointer) indicating the reading position. This is a control for prohibiting overwriting by prohibiting data writing at a position where reading is not completed. The above control is the same for the third to eighth color regions.

以下に、図10の説明をする。同図の左側は記録バッファリング構造制御回路8の読み出しアドレス制御部8Aを示し、同図の右側は記録バッファ4を示す。   The following is a description of FIG. The left side of the figure shows the read address control unit 8A of the recording buffering structure control circuit 8, and the right side of the figure shows the recording buffer 4.

記録バッファ4のバッファ領域は、記録バッファの先頭のアドレスであるtop_adrで表され、最終アドレスはbottom_adrで表される。この先頭アドレスはレジスタ803に格納され、最終アドレスはレジスタ804に格納される。記録バッファに示される「RP」は図7と同様にリードポインタであり、「WP」はライトポインタである。記録バッファ4におけるRPとWPの間のハッチング部分は記録データが格納されていることを表し、記録バッファの白色の部分は記録データが格納されていないことを表す。   The buffer area of the recording buffer 4 is represented by top_adr, which is the top address of the recording buffer, and the final address is represented by bottom_adr. The start address is stored in the register 803 and the final address is stored in the register 804. “RP” shown in the recording buffer is a read pointer as in FIG. 7, and “WP” is a write pointer. A hatched portion between RP and WP in the recording buffer 4 indicates that recording data is stored, and a white portion of the recording buffer indicates that recording data is not stored.

読み出しアドレス制御部8A内の802は、データの読み出しアドレス(RP:リードポインタ)を示すレジスタであり、破線の枠で囲った900は第1レジスタ群、実線の枠で囲った901は第2レジスタ群である。   802 in the read address control unit 8A is a register indicating a data read address (RP: read pointer). 900 surrounded by a broken line frame is a first register group, and 901 surrounded by a solid line frame is a second register. A group.

第1ブロックから第8ブロックの画像データを記録する場合、例えば、走査の開始時において、第1レジスタ群には第1ブロックについての情報が格納されている。また、第2レジスタ群には、第2ブロックについての情報が格納される。第1ブロックの記録が終了すると、第1レジスタ群900には第2レジスタ群901の情報がコピーされ、第1レジスタ群900には第2ブロックの情報が格納される。そして第2レジスタ群901には、第3ブロックの情報が格納される。以下、最後の第8ブロックのデータが格納されるまで順に行われる。そして、次の走査開始時には、再び、第1レジスタ群には第1ブロックの情報が格納され、第2レジスタ群には第2ブロックの情報が格納される。   When recording image data from the first block to the eighth block, for example, at the start of scanning, information about the first block is stored in the first register group. The second register group stores information about the second block. When the recording of the first block is completed, the information of the second register group 901 is copied to the first register group 900, and the information of the second block is stored in the first register group 900. The second register group 901 stores information on the third block. Thereafter, the processing is performed in order until the data of the last eighth block is stored. At the start of the next scan, the first block information is stored again in the first register group, and the second block information is stored in the second register group.

第1レジスタ群が示す第nブロックの記録が終了した時、第2レジスタ群に第n+1ブロックの情報が格納されていない場合は、第n+1ブロックの印字データがまだ準備できていないので、第2レジスタ群の情報は第1レジスタ群にコピーされず、加えて記録バッファからのデータ読み出しを停止する。   When the recording of the nth block indicated by the first register group is completed, if the information of the (n + 1) th block is not stored in the second register group, the print data of the (n + 1) th block has not been prepared, so the second The register group information is not copied to the first register group, and in addition, data reading from the recording buffer is stopped.

第1レジスタ群内にあるレジスタ(1st_hight 1 color bit)819は、第1色についての高さ情報と色データの有り無し情報を設定するレジスタである。各レジスタ822、824、826、828、830、832、834は第2色〜第8色について高さ情報と色データの有り無し情報を設定するレジスタである。   A register (1st_hight 1 color bit) 819 in the first register group is a register for setting the height information about the first color and the presence / absence information of the color data. Each of the registers 822, 824, 826, 828, 830, 832, and 834 is a register for setting height information and color data presence / absence information for the second to eighth colors.

820は各ブロックデータの幅情報を格納するレジスタである。この幅情報は第1色〜第8色までブロック単位で、共通して使われる値である。   A register 820 stores width information of each block data. This width information is a value that is commonly used in units of blocks from the first color to the eighth color.

レジスタ(1st_color_adr) 818は第1色の読み出しアドレスを格納するレジスタである。第1色のデータが格納されている記録バッファ819から読み出されるとアドレスが更新される。例えば図8(a)に示すように、第1色データの内、1→2→3→4と1カラム分のデータが読み出される。レジスタ821、823、825、827、829、831、833はそれぞれ第2色〜第8色の読み出しアドレスを格納するレジスタであり、第2色〜第8色の色データも第1色の色データと同様に順に1カラム分のデータが読み出される。   A register (1st_color_adr) 818 is a register for storing the read address of the first color. When the data is read from the recording buffer 819 in which the first color data is stored, the address is updated. For example, as shown in FIG. 8A, data for one column of 1 → 2 → 3 → 4 is read out from the first color data. Registers 821, 823, 825, 827, 829, 831, and 833 are registers for storing read addresses of the second to eighth colors, respectively, and the color data of the second to eighth colors are also color data of the first color. Similarly, the data for one column is read in order.

記録バッファ4に格納されるデータは複数の色データを含むため、例えば、第1、第2色、・・・の色データが混在した場合、各色単位の色データを格納するためのアドレスは、連続していないものとなる。そのため、読み出しアドレスのレジスタが1つであれば、例えば第1色の記録バッファ4のアドレスの次に第2色の記録バッファの1のアドレスを読み出しを行う際、アドレス計算をする必要があるが、記録バッファ4に各色ごとに読み出しアドレスを格納するレジスタを用意することで、カラム単位での読み出しを行う際のアドレス計算を省くことができる。   Since the data stored in the recording buffer 4 includes a plurality of color data, for example, when the color data of the first, second color,... Are mixed, the address for storing the color data of each color unit is It will not be continuous. Therefore, if there is only one read address register, it is necessary to calculate an address when reading one address of the second color recording buffer next to the address of the first color recording buffer 4, for example. By preparing a register for storing the read address for each color in the recording buffer 4, it is possible to omit the address calculation when reading in units of columns.

817はアドレス制御レジスタである。読み出しアドレスは、記録データ生成ブロック5が各色毎にデータ読み出し要求信号線S805を介して要求すると、アドレス制御レジスタ817は読み出しアドレスとして信号線S806を介して1アドレスづつ加算して記録バッファ4に出力する。   Reference numeral 817 denotes an address control register. When the recording data generation block 5 requests the read address for each color via the data read request signal line S805, the address control register 817 adds the read address by one address via the signal line S806 and outputs the read address to the recording buffer 4. To do.

835は次のブロックのアドレスを格納するレジスタである。現在読み出されているブロックが第1ブロックであれば、このレジスタには第2ブロックの先頭のアドレスが格納される。このレジスタの値は、現在読み出されているブロックデータの読み出しが終了すると、レジスタ802にコピーされる。これにより、次のブロックデータの読み出しがスムーズにできる。   A register 835 stores the address of the next block. If the block currently being read is the first block, this register stores the start address of the second block. The value of this register is copied to the register 802 when reading of the block data currently being read is completed. As a result, the next block data can be read smoothly.

レジスタ836は第1色から第8色のうち、読み出す順序を特定するための情報を格納するテーブルである。このテーブルに設定された値によって記録バッファからデータを読み出す順序を自由に設定することができる。例えば、第1色→第2色→・・→第8色の順に読み出すことができる。また、値を変えて、第1色→第2色→第5色→第6色→第7色→第8色のように第3色、第4色のデータの読み出しをスキップすることもできる。これによって、格納されていない色の画像データについては、正確に読みとばすことができる。   The register 836 is a table that stores information for specifying the reading order among the first to eighth colors. The order of reading data from the recording buffer can be freely set by the values set in this table. For example, the first color, the second color,..., The eighth color can be read out in this order. It is also possible to change the value and skip reading of the data of the third color and the fourth color, such as 1st color → 2nd color → 5th color → 6th color → 7th color → 8th color. . As a result, it is possible to accurately read out image data of colors that are not stored.

第2レジスタ群901は次のブロックデータに関する情報を格納するバッファの集まりである。第1レジスタ群の各レジスタが読まれたら、第2レジスタ群の各レジスタに設定されている値が、第1レジスタ群の対応するレジスタに設定される。例えば、レジスタ838に設定されている値がレジスタ819に設定される。レジスタ839〜845は、次のブロックデータにおける第2色〜第8色の色データについて同様の情報が設定されるレジスタである。   The second register group 901 is a collection of buffers for storing information relating to the next block data. When each register in the first register group is read, the value set in each register in the second register group is set in the corresponding register in the first register group. For example, the value set in the register 838 is set in the register 819. Registers 839 to 845 are registers in which similar information is set for the second to eighth color data in the next block data.

レジスタ838(819)には第1色のデータのバッファの高さ情報と、第1色データの有り無しを示す情報が格納される。   The register 838 (819) stores the buffer height information of the first color data and information indicating the presence or absence of the first color data.

846(820)はブロックの幅情報を設定するレジスタである。この幅情報は第1色〜第8色までブロック単位で、共通して使われる値である。   846 (820) is a register for setting block width information. This width information is a value that is commonly used in units of blocks from the first color to the eighth color.

レジスタ878は、先に設定したブロックのサイズと同じブロックのサイズが同じ場合、この値を「1」とすることで、第1レジスタ群に同じ値を再設定することができる。この場合、レジスタ838〜846の設定を省くことができる。レジスタ878の値が「0」の場合には、各レジスタ838〜846にそれぞれの値が設定される。レジスタ(same_type)878によって、ブロックサイズが同じであれば、レジスタの設定を簡単に行うことができる。   The register 878 can reset the same value in the first register group by setting this value to “1” when the same block size as the previously set block size is the same. In this case, the setting of the registers 838 to 846 can be omitted. When the value of the register 878 is “0”, the respective values are set in the registers 838 to 846. If the block size is the same by the register (same_type) 878, the register can be easily set.

図11は、1回の走査で記録される記録領域と、その領域に記録される画像データの関係を概略的に説明する図である。図11は矢印で示した領域Dと第8ブロックに対応する領域には、画像データがないことを示す。この領域Dは第3ブロックの右側、第4ブロックの全て、第5ブロックの左側の領域である。   FIG. 11 is a diagram schematically illustrating the relationship between a recording area recorded in one scan and image data recorded in the area. FIG. 11 shows that there is no image data in the region D indicated by the arrow and the region corresponding to the eighth block. The region D is a region on the right side of the third block, all of the fourth blocks, and a region on the left side of the fifth block.

図9(a)は、図11に対応する記録バッファに書き込まれる画像データについての説明図である。図11の領域Dには第4ブロックに対応する領域に画像データはないので、記録バッファには第4ブロックは確保されていない。   FIG. 9A is an explanatory diagram of image data written in the recording buffer corresponding to FIG. Since there is no image data in the area corresponding to the fourth block in the area D of FIG. 11, the fourth block is not secured in the recording buffer.

また、図9(a)で、第2ブロックに格納されるデータには第3色の色データ及び第4色データはないので、これらの分をつめて第5色データ〜第8色データが格納されている。第3ブロックには、第1色データ、第2色データのみが格納され、第3色以降の色データは格納されていない。第2ブロックと第3ブロックのハッチングされたは部分は、データが無いためにバッファの割り当てがされていないことを示す。従って、第2ブロックにおける第8色データの最終アドレスの次のアドレスは、第3ブロックにおける第1色データの先頭アドレスである。このように、画像データを詰めて記録バッファに格納することができるので、記録バッファを効率良く使用することができる。   In FIG. 9A, since the data stored in the second block does not include the third color data and the fourth color data, the data of the fifth color data to the eighth color data are included. Stored. Only the first color data and the second color data are stored in the third block, and no color data after the third color is stored. The hatched portions of the second block and the third block indicate that no buffer is allocated because there is no data. Accordingly, the next address after the last address of the eighth color data in the second block is the first address of the first color data in the third block. In this way, since the image data can be packed and stored in the recording buffer, the recording buffer can be used efficiently.

従って、例えば、画像データが無い領域に対しても記録バッファの領域を一律に格納することにより記録バッファが1走査分のデータすべてを格納する領域を確保できない場合でも、本実施形態で示したように画像データの有無をレジスタに格納されている色データの有無の情報に基づきデータの格納を制御することで1走査分のデータを格納することができる。   Therefore, for example, even when the recording buffer area cannot be secured by storing the recording buffer area uniformly even in the area where there is no image data, as shown in the present embodiment. By controlling the storage of the data based on the presence / absence of the color data stored in the register, the data for one scan can be stored.

<記録動作の説明>
図12は、画像データを処理し、記録動作の処理の流れを説明するフローチャートである。ステップS1201でデータ解析フラグをチェックする。データ解析フラグがセットされていれば(S1201−Yes)、処理をステップS1202へ進め、データ解析処理を実行し、そのデータ解析フラグをクリアする。もしデータ解析フラグがクリアされていれば(S1201−No)、ステップS1202をスキップして処理をステップS1203に進める。
<Description of recording operation>
FIG. 12 is a flowchart for explaining the flow of processing of image data and recording operation. In step S1201, the data analysis flag is checked. If the data analysis flag is set (S1201-Yes), the process proceeds to step S1202, the data analysis process is executed, and the data analysis flag is cleared. If the data analysis flag is cleared (S1201-No), step S1202 is skipped and the process proceeds to step S1203.

ステップS1203では、データ展開処理フラグをチェックする。もし、データ展開処理フラグがセットされていれば(S1203−Yes)、処理をステップS1204に進め、データ展開処理を実行し、そのデータ展開処理フラグをクリアする。もし、フラグがセットされていなければ(S1203−No)、ステップS1204をスキップする。   In step S1203, the data development processing flag is checked. If the data expansion process flag is set (S1203-Yes), the process proceeds to step S1204, the data expansion process is executed, and the data expansion process flag is cleared. If the flag is not set (S1203-No), step S1204 is skipped.

ステップS1205では、スキャンフラグをチェックする。もしスキャンフラグがセットされていれば(S1205−Yes)、処理をステップS1206に進め、スキャン(記録)処理を行う(S1206)。スキャン処理が終了した場合には、処理をステップS1201へ戻す。   In step S1205, the scan flag is checked. If the scan flag is set (S1205-Yes), the process proceeds to step S1206, and the scan (recording) process is performed (S1206). If the scan process is completed, the process returns to step S1201.

また、ステップS1205の判断で、スキャンフラグがセットされていない場合(S1205−No)は、ステップS1206の処理をスキップして、処理をステップS1201に戻す。   If it is determined in step S1205 that the scan flag is not set (S1205-No), the process in step S1206 is skipped and the process returns to step S1201.

図13は、受信バッファ割り込み(INT1、INT2)処理の流れを説明するフローチャートである。ステップS1301で割り込み要因を判別する。その割り込み要因がデータ受信であれば、ステップS1302へ処理を進め、データ解析処理フラグをセットする。ここで、セットされたデータ解析フラグは、図12のフローチャートにおけるステップS1201で設定の有無が判断される。   FIG. 13 is a flowchart for explaining the flow of reception buffer interrupt (INT1, INT2) processing. In step S1301, an interrupt factor is determined. If the interrupt factor is data reception, the process proceeds to step S1302, and the data analysis processing flag is set. Here, whether or not the set data analysis flag is set is determined in step S1201 in the flowchart of FIG.

図14は、データ解析処理における制御フローを説明するフローチャートであり、このデータ解析処理は、図12のステップS1202で実行される処理である。まず、ステップS1401で受信データの取り込みを行う。   FIG. 14 is a flowchart for explaining a control flow in the data analysis process. This data analysis process is a process executed in step S1202 of FIG. First, in step S1401, received data is captured.

次に、ステップS1402で受信したデータが記録データか否かをチェックする。データが記録データであれば(S1402−Yes)、処理をステップS1404に進め、記録バッファへの書き込みアドレス情報を設定する(S1404)。ステップS1405では、パックビッツ起動をこない、記録バッファに読み出したデータ展開する。   Next, it is checked in step S1402 whether the received data is recording data. If the data is recording data (S1402-Yes), the process proceeds to step S1404, and write address information to the recording buffer is set (S1404). In step S1405, pack bits are not activated, and the data read into the recording buffer is expanded.

ステップS1402の判断で、受信したデータが記録データでなければ(S1402−No)、処理をステップS1403に進めてコマンド処理とデータ設定処理を行う。ステップS1403では、画像データのうち、データが無い色についてバッファの幅、バッファの高さについて情報を受け渡し用バッファに設定する。この受け渡し用バッファは、図1に示すバッファ構造情報メモリ11である。   If it is determined in step S1402 that the received data is not recording data (S1402-No), the process proceeds to step S1403 to perform command processing and data setting processing. In step S1403, information about the buffer width and the buffer height is set in the transfer buffer for colors with no data in the image data. This transfer buffer is the buffer structure information memory 11 shown in FIG.

図15は、パックビッツ終了割り込み(INT3)の処理の流れを説明するフローチャートである。これは、パックビッツ処理処理が終了するとステップS1501でデータ展開フラグをセットして終了する。データ展開フラグは図12のフローチャートにおけるステップS1203(図12)でフラグがセットされているか否か判断される。   FIG. 15 is a flowchart for explaining the processing flow of the pack bits end interrupt (INT3). When the pack bits process is completed, the data development flag is set in step S1501 and the process ends. Whether or not the data expansion flag is set is determined in step S1203 (FIG. 12) in the flowchart of FIG.

図16は、データ展開処理の流れを説明するフローチャートである。ステップS1601で記録ブロックレジスタに設定する値を、受け渡し用バッファに設定する。この受け渡し用バッファは、図1のバッファ構造情報メモリ11であり、記録ブロックレジスタは、例えば図10で示したブロック単位で設定されるレジスタ(900、901)である。   FIG. 16 is a flowchart for explaining the flow of data expansion processing. In step S1601, the value set in the recording block register is set in the transfer buffer. The transfer buffer is the buffer structure information memory 11 of FIG. 1, and the recording block register is a register (900, 901) set for each block shown in FIG. 10, for example.

ステップS1602でスキャン開始判定を行う。所定ブロック以上のデータの展開終了(例えば、1ブロック分、あるいは1スキャン分のデータが展開終了)したかを判断する。データの展開が終了していれば(S1602−Yes)、処理をステップS1603に進め、スキャン要求のため、スキャンフラグをセットして終了する(S1603)。   In step S1602, a scan start determination is performed. It is determined whether or not the development of data of a predetermined block or more is completed (for example, data for one block or one scan is finished). If the data expansion has ended (S1602-Yes), the process proceeds to step S1603, and a scan flag is set for the scan request, and the process ends (S1603).

図16に示すフローチャートの処理は、図12のステップS1204の処理に相当する。   The process of the flowchart shown in FIG. 16 corresponds to the process of step S1204 of FIG.

図17は、スキャン処理を説明するフローチャートである。ステップS1701で図16のステップS1601で説明した受け渡し用バッファに保存したデータを記録ブロックレジスタ(900、901)に設定する。ステップS1702で記録ブロックレジスタに設定された画像データのスキャン(記録)を実行する。   FIG. 17 is a flowchart for explaining the scan processing. In step S1701, the data stored in the transfer buffer described in step S1601 in FIG. 16 is set in the recording block register (900, 901). In step S1702, the image data set in the recording block register is scanned (recorded).

図18は、ブロックデータを記録する際の割り込み(INT4)処理を説明するフローチャートである。この割り込み処理は記録動作中にブロック単位で処理が終了すれば、実行される。例えば、記録されるデータが8つのブロックに格納されていれば、8回の割り込み処理が実行されることになる。ブロックデータの記録において、発生した割り込み要因を判別する(S1801)。この割り込み要因がブロックデータの終了の場合は処理をステップS1802へ進める。   FIG. 18 is a flowchart for explaining interrupt (INT4) processing when recording block data. This interruption process is executed if the process is completed in units of blocks during the recording operation. For example, if the data to be recorded is stored in eight blocks, eight interruption processes are executed. In the recording of the block data, the generated interrupt factor is determined (S1801). If the interrupt factor is the end of block data, the process advances to step S1802.

一方、割り込み要因が、記録するべきブロックデータが無い状態、すなわち、記録データ(例えば、書き込みアドレスポインタ(RP)の値と読み取りアドレスポインタ(WP)の値を調べ、ブロックにデータが格納されていなければ)がなければ、処理をステップS1804に進め、印字失敗処理を行い、スキャンを停止する(S1804)。この場合には、途中のブロックまでの記録が行われた状態であるので、未記録のデータを格納して、再びスキャンを行い、未印字の領域の記録を行う。   On the other hand, the interrupt factor is the state where there is no block data to be recorded, that is, the record data (for example, the value of the write address pointer (RP) and the value of the read address pointer (WP) are examined, and the data must be stored in the block). If not, the process proceeds to step S1804, a print failure process is performed, and the scan is stopped (S1804). In this case, since the recording has been performed up to an intermediate block, unrecorded data is stored, scanning is performed again, and an unprinted area is recorded.

ステップS1802では、その記録が完了したブロックが最終のブロックであるか否かを判断する。もし、最終ブロックであれば(S1802−Yes)、処理を終了する。最終ブロックでなければ(S1802−No)、処理をステップS1803に進め、次の画像データのブロックデータをレジスタに設定する。   In step S1802, it is determined whether the block whose recording has been completed is the last block. If it is the last block (S1802-Yes), the process is terminated. If it is not the last block (S1802-No), the process proceeds to step S1803, and the block data of the next image data is set in the register.

<第2実施形態>
図9(b)は、第1実施形態における図9(a)より、更にメモリを有効に使う場合を説明した図である。図9(a)では記録領域を複数に分割した各ブロックの走査方向の幅情報はどのブロックも等しかったが、ブロック内に記録するべき画像データが無い場合は、必要最低限の幅情報を持てばよい。図11の第3ブロックと第5ブロックに着目すると、第3ブロックは左側のみ画像データがあり、第5ブロックは右側にのみ画像データがある。従って、第3ブロックと第5ブロックの長さを、画像データ数に応じて、他のブロックの幅の半分とすることができる。
Second Embodiment
FIG. 9B illustrates a case where the memory is used more effectively than FIG. 9A in the first embodiment. In FIG. 9A, the width information in the scanning direction of each block obtained by dividing the recording area into a plurality of blocks is equal to each other. However, if there is no image data to be recorded in the block, the minimum necessary width information can be held. That's fine. Focusing on the third block and the fifth block in FIG. 11, the third block has image data only on the left side, and the fifth block has image data only on the right side. Therefore, the length of the third block and the fifth block can be made half of the width of the other blocks according to the number of image data.

これによって、メモリ容量が少ない場合にも、記録バッファを効率良く使うことができる。例えば、記録バッファが1走査分のデータすべてを格納する領域を確保できない場合でも、1走査分のデータを格納することができる。   As a result, the recording buffer can be used efficiently even when the memory capacity is small. For example, even when the recording buffer cannot secure an area for storing all the data for one scan, the data for one scan can be stored.

なお、この場合、ホスト装置が、画像データが複数ブロックにまたがってヌルデータが続く場合に、ブロックの長さを異ならせるようにコマンド情報及び画像データを生成すればよい。   In this case, the host device may generate the command information and the image data so that the lengths of the blocks differ when the image data extends over a plurality of blocks and the null data continues.

画像データ量に応じてブロック単位のデータの幅情報を制御して、データを格納することにより、バッファ領域を有効に活用することが可能となる。この場合、ホスト装置が生成したブロックデータ長さに関する情報は、設定データに含まれる情報として記録装置は受信し、可変設定するために幅情報は不図示のレジスタに設定される。   By controlling the data width information of the block unit according to the amount of image data and storing the data, the buffer area can be used effectively. In this case, the information relating to the block data length generated by the host device is received by the recording device as information included in the setting data, and the width information is set in a register (not shown) for variable setting.

以上、本発明にかかる実施形態を説明してきたが、本発明の趣旨は、記録ヘッドのノズル数は1ノズル列あたり64、記録で使用する色数4色に限定されるものではない。   Although the embodiment according to the present invention has been described above, the gist of the present invention is not limited to the number of nozzles of the recording head being 64 per nozzle row and the number of colors used for recording being four.

また、本実施形態では、記録領域を主走査方向に8つに分割したが、ブロックの分割はこの数に限定するものではない。更に、記録バッファリング構造制御回路のレジスタについて、図7や図10に示したように、1つのレジスタに各色の記録バッファの高さの情報と、色データの有り無しの情報を格納するものではなく、それぞれ高さの情報のみ格納するレジスタ、色データの有り無しの情報のみ格納するレジスタを用いてもかまわない。   In this embodiment, the recording area is divided into eight in the main scanning direction, but the number of blocks is not limited to this number. Further, regarding the register of the recording buffering structure control circuit, as shown in FIG. 7 and FIG. 10, it is not possible to store the recording buffer height information of each color and the presence / absence information of the color data in one register. Alternatively, a register that stores only height information and a register that stores only information on whether or not there is color data may be used.

また、上述のブロックデータの幅情報をブロック単位に設定するためにレジスタを各色データごとに対応して持たせる構成としてもよい。   Further, in order to set the width information of the block data described above for each block, a configuration may be adopted in which a register is provided for each color data.

なお、以上の実施形態において、記録ヘッドから吐出される液滴はインクであるとして説明し、さらにインクタンクに収容される液体はインクであるとして説明したが、その収容物はインクに限定されるものではない。例えば、記録画像の定着性や耐水性を高めたり、その画像品質を高めたりするために記録媒体に対して吐出される処理液のようなものがインクタンクに収容されていても良い。   In the above embodiment, the liquid droplets ejected from the recording head have been described as ink, and the liquid stored in the ink tank has been described as ink. However, the storage is limited to ink. It is not a thing. For example, a treatment liquid discharged to the recording medium may be accommodated in the ink tank in order to improve the fixability and water resistance of the recorded image or to improve the image quality.

以上の実施形態は、特にインクジェット記録方式の中でも、インク吐出を行わせるために利用されるエネルギーとして熱エネルギーを発生する手段(例えば電気熱変換体やレーザ光等)を備え、前記熱エネルギーによりインクの状態変化を生起させる方式を用いることにより記録の高密度化、高精細化が達成できる。   The above embodiment includes means (for example, an electrothermal converter, a laser beam, etc.) that generates thermal energy as energy used for performing ink discharge, particularly in the ink jet recording system, and the ink is generated by the thermal energy. By using a system that causes a change in the state of recording, it is possible to achieve higher recording density and higher definition.

その代表的な構成や原理については、例えば、米国特許第4723129号明細書、同第4740796号明細書に開示されている基本的な原理を用いて行うものが好ましい。この方式はいわゆるオンデマンド型、コンティニュアス型のいずれにも適用可能であるが、特に、オンデマンド型の場合には、液体(インク)が保持されているシートや液路に対応して配置されている電気熱変換体に、記録情報に対応していて核沸騰を越える急速な温度上昇を与える少なくとも1つの駆動信号を印加することによって、電気熱変換体に熱エネルギーを発生せしめ、記録ヘッドの熱作用面に膜沸騰を生じさせて、結果的にこの駆動信号に1対1で対応した液体(インク)内の気泡を形成できるので有効である。   As its typical configuration and principle, for example, those performed using the basic principle disclosed in US Pat. Nos. 4,723,129 and 4,740,796 are preferable. This method can be applied to both the so-called on-demand type and continuous type. In particular, in the case of the on-demand type, it is arranged corresponding to the sheet or liquid path holding the liquid (ink). By applying at least one drive signal corresponding to the recorded information and giving a rapid temperature rise exceeding nucleate boiling to the electrothermal transducer, the thermal energy is generated in the electrothermal transducer, and the recording head This is effective because film boiling occurs on the heat acting surface of the liquid, and as a result, bubbles in the liquid (ink) corresponding to the drive signal on a one-to-one basis can be formed.

この気泡の成長、収縮により吐出用開口を介して液体(インク)を吐出させて、少なくとも1つの滴を形成する。この駆動信号をパルス形状とすると、即時適切に気泡の成長収縮が行われるので、特に応答性に優れた液体(インク)の吐出が達成でき、より好ましい。   By the growth and contraction of the bubbles, liquid (ink) is ejected through the ejection opening to form at least one droplet. It is more preferable that the drive signal has a pulse shape, since the bubble growth and contraction is performed immediately and appropriately, and thus it is possible to achieve discharge of a liquid (ink) having particularly excellent responsiveness.

このパルス形状の駆動信号としては、米国特許第4463359号明細書、同第4345262号明細書に記載されているようなものが適している。なお、上記熱作用面の温度上昇率に関する発明の米国特許第4313124号明細書に記載されている条件を採用すると、さらに優れた記録を行うことができる。   As this pulse-shaped drive signal, those described in US Pat. Nos. 4,463,359 and 4,345,262 are suitable. Further excellent recording can be performed by employing the conditions described in US Pat. No. 4,313,124 of the invention relating to the temperature rise rate of the heat acting surface.

記録ヘッドの構成としては、上述の各明細書に開示されているような吐出口、液路、電気熱変換体の組み合わせ構成(直線状液流路または直角液流路)の他に熱作用面が屈曲する領域に配置されている構成を開示する米国特許第4558333号明細書、米国特許第4459600号明細書に記載された構成も本発明に含まれるものである。加えて、複数の電気熱変換体に対して、共通するスロットを電気熱変換体の吐出部とする構成を開示する特開昭59−123670号公報や熱エネルギーの圧力波を吸収する開口を吐出部に対応させる構成を開示する特開昭59−138461号公報に基づいた構成としても良い。   As the configuration of the recording head, in addition to the combination configuration (straight liquid flow path or right-angle liquid flow path) of the discharge port, the liquid path, and the electrothermal transducer as disclosed in each of the above-mentioned specifications, the heat acting surface The configurations described in US Pat. No. 4,558,333 and US Pat. No. 4,459,600, which disclose a configuration in which is arranged in a bending region, are also included in the present invention. In addition, Japanese Patent Application Laid-Open No. 59-123670, which discloses a configuration in which a common slot is used as a discharge portion of an electrothermal transducer, or an opening that absorbs a pressure wave of thermal energy is discharged to a plurality of electrothermal transducers. A configuration based on Japanese Patent Laid-Open No. 59-138461 disclosing a configuration corresponding to each part may be adopted.

さらに、記録装置が記録できる最大記録媒体の幅に対応した長さを有するフルラインタイプの記録ヘッドとしては、上述した明細書に開示されているような複数記録ヘッドの組み合わせによってその長さを満たす構成や、一体的に形成された1個の記録ヘッドとしての構成のいずれでもよい。   Furthermore, as a full-line type recording head having a length corresponding to the width of the maximum recording medium that can be recorded by the recording apparatus, the length is satisfied by a combination of a plurality of recording heads as disclosed in the above specification. Either a configuration or a configuration as a single recording head formed integrally may be used.

加えて、上記の実施形態で説明した記録ヘッド自体に一体的にインクタンクが設けられたカートリッジタイプの記録ヘッドのみならず、装置本体に装着されることで、装置本体との電気的な接続や装置本体からのインクの供給が可能になる交換自在のチップタイプの記録ヘッドを用いてもよい。   In addition to the cartridge-type recording head in which the ink tank is integrally provided in the recording head itself described in the above embodiment, it can be electrically connected to the apparatus body by being attached to the apparatus body. A replaceable chip type recording head that can supply ink from the apparatus main body may be used.

また、以上説明した記録装置の構成に、記録ヘッドに対する回復手段、予備的な手段等を付加することは記録動作を一層安定にできるので好ましいものである。これらを具体的に挙げれば、記録ヘッドに対してのキャッピング手段、クリーニング手段、加圧あるいは吸引手段、電気熱変換体あるいはこれとは別の加熱素子あるいはこれらの組み合わせによる予備加熱手段などがある。また、記録とは別の吐出を行う予備吐出モードを備えることも安定した記録を行うために有効である。   In addition, it is preferable to add recovery means for the recording head, preliminary means, etc. to the configuration of the recording apparatus described above, since the recording operation can be further stabilized. Specific examples thereof include a capping unit for the recording head, a cleaning unit, a pressure or suction unit, an electrothermal converter, a heating element different from this, or a preheating unit using a combination thereof. In addition, it is effective to provide a preliminary ejection mode for performing ejection different from recording in order to perform stable recording.

さらに、記録装置の記録モードとしては黒色等の主流色のみの記録モードだけではなく、記録ヘッドを一体的に構成するか複数個の組み合わせによってでも良いが、異なる色の複色カラー、または混色によるフルカラーの少なくとも1つを備えた装置とすることもできる。   Further, the recording mode of the recording apparatus is not limited to the recording mode of only the mainstream color such as black, but the recording head may be integrated or may be a combination of a plurality of colors. An apparatus having at least one of full colors can also be provided.

以上説明した実施の形態においては、インクが液体であることを前提として説明しているが、室温やそれ以下で固化するインクであっても、室温で軟化もしくは液化するものを用いても良く、あるいはインクジェット方式ではインク自体を30°C以上70°C以下の範囲内で温度調整を行ってインクの粘性を安定吐出範囲にあるように温度制御するものが一般的であるから、使用記録信号付与時にインクが液状をなすものであればよい。   In the embodiment described above, the description is made on the assumption that the ink is a liquid, but it may be an ink that is solidified at room temperature or lower, or an ink that is softened or liquefied at room temperature, Alternatively, the ink jet method generally controls the temperature of the ink so that the viscosity of the ink is within a stable discharge range by adjusting the temperature within a range of 30 ° C. or higher and 70 ° C. or lower. It is sufficient if the ink sometimes forms a liquid.

加えて、積極的に熱エネルギーによる昇温をインクの固形状態から液体状態への状態変化のエネルギーとして使用せしめることで積極的に防止するため、またはインクの蒸発を防止するため、放置状態で固化し加熱によって液化するインクを用いても良い。いずれにしても熱エネルギーの記録信号に応じた付与によってインクが液化し、液状インクが吐出されるものや、記録媒体に到達する時点では既に固化し始めるもの等のような、熱エネルギーの付与によって初めて液化する性質のインクを使用する場合も本発明は適用可能である。   In addition, it is solidified in a stand-by state in order to actively prevent temperature rise by heat energy as energy for changing the state of ink from the solid state to the liquid state, or to prevent ink evaporation. Ink that is liquefied by heating may be used. In any case, by applying heat energy according to the application of thermal energy according to the recording signal, the ink is liquefied and liquid ink is ejected, or when it reaches the recording medium, it already starts to solidify. The present invention can also be applied to the case of using ink having the property of being liquefied for the first time.

このような場合インクは、特開昭54−56847号公報あるいは特開昭60−71260号公報に記載されるような、多孔質シート凹部または貫通孔に液状または固形物として保持された状態で、電気熱変換体に対して対向するような形態としてもよい。本発明においては、上述した各インクに対して最も有効なものは、上述した膜沸騰方式を実行するものである。   In such a case, the ink is held as a liquid or solid in a porous sheet recess or through-hole as described in JP-A-54-56847 or JP-A-60-71260, It is good also as a form which opposes with respect to an electrothermal converter. In the present invention, the most effective one for each of the above-described inks is to execute the above-described film boiling method.

さらに加えて、本発明に係る記録装置の形態としては、コンピュータ等の情報処理機器の画像出力端末として一体または別体に設けられるものの他、リーダ等と組み合わせた複写装置、さらには送受信機能を有するファクシミリ装置の形態を取るものであっても良い。   In addition, as a form of the recording apparatus according to the present invention, a copying apparatus combined with a reader or the like, and a transmission / reception function are provided as an image output terminal of an information processing apparatus such as a computer or the like. It may take the form of a facsimile machine.

本発明にかかる記録装置の実施形態において、その記録装置の記録制御部を示すブロック図である。FIG. 3 is a block diagram showing a recording control unit of the recording apparatus in the embodiment of the recording apparatus according to the present invention. ホストコンピュータから転送されるデータを受信バッファに格納した場合のデータ構造を示す図である。It is a figure which shows the data structure at the time of storing the data transferred from a host computer in a receiving buffer. 画像データを保持する記録バッファのデータ構造を示す図である。It is a figure which shows the data structure of the recording buffer which hold | maintains image data. インターフェースコントローラ1の内部を示すブロック図である。2 is a block diagram showing the inside of an interface controller 1. FIG. 受信バッファリング構造制御回路部7の詳細を示すブロック図である。7 is a block diagram showing details of a reception buffering structure control circuit unit 7. FIG. 受信バッファリング構造制御回路の動作タイミングの説明図である。It is explanatory drawing of the operation timing of a reception buffering structure control circuit. 記録バッファリング構造制御回路を説明する図である。It is a figure explaining a recording buffering structure control circuit. 記録バッファ4に画像データがどのように格納されるか説明する図である。It is a figure explaining how image data is stored in the recording buffer. 記録バッファに格納する画像データの構造についての説明する図である。It is a figure explaining the structure of the image data stored in a recording buffer. 記録バッファリング構造制御回路を説明する図である。It is a figure explaining a recording buffering structure control circuit. 1回の走査で記録される記録領域と、その領域の画像データの関係を説明する図である。It is a figure explaining the relationship between the recording area recorded by one scan, and the image data of the area. 画像データを処理し、記録動作の処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of processing of image data and recording operation. 受信バッファ割り込み(INT1、INT2)処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of a reception buffer interrupt (INT1, INT2) process. データ解析処理における制御フローを説明するフローチャートである。It is a flowchart explaining the control flow in a data analysis process. パックビッツ終了割り込み(INT3)の処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of a process of pack bits end interruption (INT3). データ展開処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of a data expansion process. スキャン処理を説明するフローチャートである。It is a flowchart explaining a scanning process. ブロックデータを記録する際の割り込み(INT4)処理を説明するフローチャートである。It is a flowchart explaining the interruption (INT4) process at the time of recording block data. 本発明の好適な実施形態であるプリンタの外観を示す図である。1 is a diagram illustrating an appearance of a printer that is a preferred embodiment of the present invention. FIG. 図19のプリンタのインクジェットカートリッジを示す図である。It is a figure which shows the inkjet cartridge of the printer of FIG.

符号の説明Explanation of symbols

1 インターフェースコントローラ
2 受信バッファ
3 データ展開ブロック
4 記録バッファ
5 記録データ生成ブロック
6 記録ヘッド
7 受信バッファリング構造制御回路
8 記録バッファリング構造制御回路
8A 読み出しアドレス制御部
8B 書き込みアドレス制御部
9 CPU
10 キャリッジエンコーダ
11 バッファ構造情報メモリ
900 第1レジスタ群
901 第2レジスタ群
RP リードポインタ
WP ライトポインタ
DESCRIPTION OF SYMBOLS 1 Interface controller 2 Reception buffer 3 Data expansion block 4 Recording buffer 5 Recording data generation block 6 Recording head 7 Reception buffering structure control circuit 8 Recording buffering structure control circuit 8A Read address control part 8B Write address control part 9 CPU
DESCRIPTION OF SYMBOLS 10 Carriage encoder 11 Buffer structure information memory 900 1st register group 901 2nd register group RP Read pointer WP Write pointer

Claims (20)

記録ヘッドを搭載したキャリッジを記録媒体上で走査させて記録を行うために、該記録ヘッドの1走査にて記録される領域を走査方向に複数の領域に分割し、該分割された領域に対応した画像データが読み書きされるメモリ領域を複数備えたバッファを有する記録装置であって、
外部からブロック単位のデータを入力する入力部と、
前記入力手段が入力したブロック単位のデータの解凍処理を行う解凍処理部と、
前記解凍処理部により解凍されたデータを、前記分割された領域単位の画像データとして前記バッファに格納するために、該領域単位の画像データの書き込みアドレス情報を色に制御する書き込み制御部と、
前記バッファに格納された画像データを読み出すための読み出しアドレス情報を色に制御する読み出し制御部と、
前記読み出しアドレス情報に基づき、読み出された画像データに従い、前記分割された領域単位の記録データを生成する記録データ生成と、
を備えることを特徴とする記録装置。
In order to perform recording by causing a carriage mounted with a recording head to scan on a recording medium, an area recorded by one scan of the recording head is divided into a plurality of areas in the scanning direction , and the divided areas correspond to the divided areas . the memory area where the image data is read and written that a recording apparatus having a plurality with buffer,
An input unit for inputting data in block units from the outside;
A decompression processing unit for performing decompression processing of block-unit data input by the input means;
The decompressed data by the decompression processing unit, for storage in the buffer as the image data of the divided area units, a write controller for controlling write address information of the image data of the area units for each color,
A read control section for controlling reading address information for reading the image data stored in the buffer for each color,
Based on the read address information, according to the read image data, a recording data generation unit that generates recording data for the divided area units;
A recording apparatus comprising:
前記分割された領域単位の画像データには、シアン、イエロー、マゼンタ、および黒に対応したデータが含まれることを特徴とする請求項1に記載の記録装置。 The recording apparatus according to claim 1, wherein the image data for each divided area includes data corresponding to cyan, yellow, magenta, and black. 前記書き込み制御部は、前記画像データを前記バッファの先頭アドレス情報と最終アドレス情報とにより設定された領域間で循環して格納することを特徴とする請求項1または2に記載の記録装置。 The recording apparatus according to claim 1, wherein the writing control unit circulates and stores the image data between areas set by the first address information and the last address information of the buffer . 前記書き込み制御部は、前記書き込みアドレス情報が前記読み出しアドレス情報と一致する場合は、前記バッファ内に格納されている画像データと重複したアドレスの設定を禁止する制御を実行することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The write control unit, when the write address information coincides with the read address information, executes control for prohibiting setting of an address overlapping with the image data stored in the buffer. Item 4. The recording device according to any one of Items 1 to 3. 前記バッファのサイズは、前記記録ヘッドが次の主走査で記録するノズル数と前記記録領域の分割された幅情報に応じて決定されることを特徴とする請求項1に記載の記録装置。 The recording apparatus according to claim 1, wherein the size of the buffer is determined according to the number of nozzles that the recording head records in the next main scan and the divided width information of the recording area. 前記書き込み制御部は、前記画像データに含まれる前記色データの有無の応じて、前記バッファに格納するためのアドレス情報を制御することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 4. The write control unit according to claim 1, wherein the write control unit controls address information to be stored in the buffer in accordance with presence / absence of the color data included in the image data. Recording device. 前記書き込み制御部は、前記画像データに含まれるデータの有無を識別するための情報と、該データのラスター数と、を含む設定情報を色データ毎に格納する第1レジスタと、
前記画像データの幅情報を格納する第2レジスタと、
前記第1レジスタに格納される書き込み対象となる第1ブロックデータに関する設定情報と、前記第2レジスタに格納される画像データの幅情報に基づき決定される、次の書き込み対象となる第2ブロックデータの書き込み開始アドレスを格納する第3レジスタと、を有し、
該書き込み制御部は、該第1ブロックデータに対応する画像データの書き込み完了前に、該第2ブロックデータに対する書き込みアドレス情報を前記決定した書き込み開始アドレスに更新することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。
The write control unit includes a first register that stores setting information including information for identifying the presence / absence of data included in the image data and the number of rasters of the data for each color data;
A second register for storing width information of the image data;
Second block data to be written next, which is determined based on setting information related to the first block data to be written stored in the first register and width information of image data stored in the second register. A third register for storing the write start address of
The write controller updates the write address information for the second block data to the determined write start address before completing the writing of the image data corresponding to the first block data. 4. The recording apparatus according to any one of items 3.
前記読み出し制御部は、前記画像データに含まれるデータの有無を識別するための情報と、該データのラスター数と、を含む設定情報を色データ毎に格納する第4レジスタと、
前記画像データの幅情報を格納する第5レジスタと、
前記第4レジスタに格納されている設定情報と、前記第5レジスタに格納される画像データの幅情報に基づき決定される、読み出し開始アドレスを格納する第6レジスタと、
前記第6レジスタに格納されている読み出しアドレスに従った画像データの読み出し完了前に、次のブロックデータに対する読み出し開始アドレスを決定し、該データを格納する第7レジスタと、
を有することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。
The read control unit includes a fourth register that stores setting information including information for identifying the presence or absence of data included in the image data and the number of rasters of the data for each color data;
A fifth register for storing width information of the image data;
A sixth register for storing a read start address determined based on setting information stored in the fourth register and width information of image data stored in the fifth register;
A seventh register for determining a read start address for the next block data before storing the image data in accordance with the read address stored in the sixth register, and storing the data;
The recording apparatus according to claim 1, further comprising:
前記読み出し制御部は色毎に読み出す順序を指定する情報を格納する読み出し色テーブルレジスタを更に有し、前記色毎に読み出す順序を指定する情報に基づいて、前記バッファから順に読み出しを制御することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The read control unit further includes a read color table register that stores information for designating the order of reading for each color, and controls reading from the buffer in order based on the information for designating the order of reading for each color. The recording apparatus according to claim 1, wherein the recording apparatus is a recording apparatus. 前記読み出し制御部は前記読み出しアドレス情報が前記バッファの最終アドレスを指定した場合、前記バッファの最初のアドレスを指定することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 4. The recording apparatus according to claim 1, wherein when the read address information designates a final address of the buffer, the read control unit designates a first address of the buffer. 5. 前記書き込み制御部は前記書き込みアドレス情報が前記バッファの最終アドレスを指定した場合、前記バッファの最初のアドレスを指定するように制御することを特徴とする請求項1に記載の記録装置。 2. The recording apparatus according to claim 1, wherein when the write address information designates a final address of the buffer, the write control unit performs control so as to designate an initial address of the buffer. 前記バッファに格納できるデータ数は、1走査の記録領域より少ない記録領域のデータ数であることを特徴とする請求項1に記載の記録装置。 The recording apparatus according to claim 1, wherein the number of data that can be stored in the buffer is the number of data in a recording area smaller than a recording area for one scan. 前記書き込み制御手段は、前記入力手段が入力した順に、前記管理手段の管理に従って前記分割された領域単位の画像データの格納を制御することを特徴とする請求項1に記載の記録装置。The recording apparatus according to claim 1, wherein the writing control unit controls storage of the divided area-unit image data in accordance with the management of the management unit in the order input by the input unit. 前記書き込み制御部は、前記解凍処理部から書き込み要求信号を入力するたびにアドレスを1づつ更新し、該アドレスを書き込みアドレス情報とする制御を行うことを特徴とする請求項1に記載の記録装置。2. The recording apparatus according to claim 1, wherein the write controller updates the address by one each time a write request signal is input from the decompression processor and uses the address as write address information. . 前記バッファの1つのアドレスに格納されるデータはカラム形式のデータであることを特徴とする請求項1に記載の記録装置。2. The recording apparatus according to claim 1, wherein the data stored in one address of the buffer is data in a column format. 前記入力部、前記解凍処理部、前記書き込み制御部と通信し、前記記録ヘッドを用いた記録動作を制御する制御手段を備えることを特徴とする請求項1に記載の記録装置。The recording apparatus according to claim 1, further comprising a control unit that communicates with the input unit, the decompression processing unit, and the writing control unit and controls a recording operation using the recording head. 前記解凍処理部は、前記ブロック単位のデータの解凍が終了するたびに、前記制御手段へ通知することを特徴とする請求項16に記載の記録装置。The recording apparatus according to claim 16, wherein the decompression processing unit notifies the control unit every time decompression of the data in units of blocks is completed. 前記制御手段は、前記ブロック単位のデータの解凍の終了が所定数なされたと判断した場合、前記記録ヘッドの走査を開始することを特徴とする請求項17に記載の記録装置。The recording apparatus according to claim 17, wherein the control unit starts scanning of the recording head when it is determined that a predetermined number of decompression of the block-unit data has been completed. 前記記録ヘッドは、インクを吐出して記録を行うインクジェット記録ヘッドであることを特徴とする請求項1に記載の記録装置。 The recording apparatus according to claim 1, wherein the recording head is an ink jet recording head that performs recording by discharging ink. 記録ヘッドを搭載したキャリッジを記録媒体上で走査させて記録を行うために、該記録ヘッドの1走査にて記録される領域を走査方向に複数の領域に分割し、該分割された領域に対応した画像データが読み書きされるメモリ領域を複数備えたバッファを有する記録装置の制御方法であって、
外部からブロック単位のデータを入力する入力工程と、
前記入力工程により入力されたブロック単位のデータの解凍処理を行う解凍処理工程と、
前記解凍処理工程により解凍されたデータを、前記分割された領域に対応した画像データとして前記バッファに格納するために、該領域単位の画像データの書き込みアドレス情報を色毎に制御する書き込み制御工程と、
前記バッファに格納された画像データを読み出すための読み出しアドレス情報を色毎に制御する読み出し制御工程と、
前記読み出しアドレス情報に基づき、読み出された画像データに従い、前記分割された領域単位の記録データを生成する記録データ生成工程と、
を備えることを特徴とする記録装置の制御方法。
In order to perform recording by causing a carriage mounted with a recording head to scan on a recording medium, an area recorded by one scan of the recording head is divided into a plurality of areas in the scanning direction , and the divided areas correspond to the divided areas . A method for controlling a recording apparatus having a buffer having a plurality of memory areas from which image data is read and written ,
An input process for inputting block unit data from the outside,
A decompression processing step for performing decompression processing of block-unit data input in the input step;
A write control step for controlling the write address information of the image data for each area for each color in order to store the data decompressed in the decompression process step as image data corresponding to the divided areas in the buffer; ,
A read control step for controlling read address information for reading image data stored in the buffer for each color;
Based on the read address information, in accordance with the read image data, a recording data generation step of generating the divided area unit recording data;
A control method for a recording apparatus comprising:
JP2005255625A 2005-09-02 2005-09-02 Recording apparatus and recording apparatus control method Expired - Fee Related JP3970297B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005255625A JP3970297B2 (en) 2005-09-02 2005-09-02 Recording apparatus and recording apparatus control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005255625A JP3970297B2 (en) 2005-09-02 2005-09-02 Recording apparatus and recording apparatus control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002112661A Division JP3919587B2 (en) 2002-04-15 2002-04-15 Recording apparatus and recording apparatus control method

Publications (2)

Publication Number Publication Date
JP2006015759A JP2006015759A (en) 2006-01-19
JP3970297B2 true JP3970297B2 (en) 2007-09-05

Family

ID=35790399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005255625A Expired - Fee Related JP3970297B2 (en) 2005-09-02 2005-09-02 Recording apparatus and recording apparatus control method

Country Status (1)

Country Link
JP (1) JP3970297B2 (en)

Also Published As

Publication number Publication date
JP2006015759A (en) 2006-01-19

Similar Documents

Publication Publication Date Title
US8094349B2 (en) Recording apparatus and method for controlling recording apparatus
KR100555268B1 (en) Recording apparatus and method for controlling recording apparatus
JP3491972B2 (en) Recording device and recording method
JP2003305895A (en) Imaging system, recorder and record control method
US8724157B2 (en) Printing apparatus and printer driver
JP3919587B2 (en) Recording apparatus and recording apparatus control method
JP2006247905A (en) Recording device, data processing method for recording device, and recording system
JP4455295B2 (en) Recording apparatus and data processing method of recording apparatus
JP3970297B2 (en) Recording apparatus and recording apparatus control method
JP3927880B2 (en) Recording apparatus and recording apparatus control method
JP3962591B2 (en) Ink jet printer and control method of ink jet printer
JP2005153414A (en) Recorder and method of controlling the same
KR100771714B1 (en) Recording apparatus and data processing method for recording apparatus
JP3970296B2 (en) Recording apparatus and recording apparatus control method
JP4502391B2 (en) Recording apparatus, data processing method of recording apparatus, and recording system
JP3703363B2 (en) Image data conversion circuit, recording apparatus having the circuit, and image data conversion method
JP2006281779A (en) Recording apparatus, data processing method of recording apparatus, control method of recording apparatus, program, and storage medium
JP2005342965A (en) Recorder and method of processing data thereof
JP2000246963A (en) Recording apparatus and recording method
JP2002301839A (en) Recorder and recording method
JP2001199127A (en) Method and circuit for converting data and recording apparatus with the circuit
JP2000037889A (en) Information supplying unit, information processing system and information processing method
JPH09327953A (en) Method and apparatus for recording and its recording system
JP2002132471A (en) Recording device and recording control method
JP2005066943A (en) Recording apparatus, and driving data masking method therefor

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070518

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070605

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110615

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120615

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120615

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130615

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees