JP2002137457A - Printer and its controlling method - Google Patents

Printer and its controlling method

Info

Publication number
JP2002137457A
JP2002137457A JP2000339005A JP2000339005A JP2002137457A JP 2002137457 A JP2002137457 A JP 2002137457A JP 2000339005 A JP2000339005 A JP 2000339005A JP 2000339005 A JP2000339005 A JP 2000339005A JP 2002137457 A JP2002137457 A JP 2002137457A
Authority
JP
Japan
Prior art keywords
buffer
print data
line
address
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.)
Pending
Application number
JP2000339005A
Other languages
Japanese (ja)
Inventor
Yoshitaka Kataoka
好隆 片岡
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.)
Funai Electric Co Ltd
Original Assignee
Funai Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Funai Electric Co Ltd filed Critical Funai Electric Co Ltd
Priority to JP2000339005A priority Critical patent/JP2002137457A/en
Publication of JP2002137457A publication Critical patent/JP2002137457A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enhance the print speed when a printer comprises a small capacity buffer which can store a line of print data. SOLUTION: Swath data (a line of print data) is written from the head address of a buffer 4 and a write pointer is shifted sequentially (Figs. (a) and (b)). After writing is completed, the write pointer is shifted to the head address of the buffer 4 by a print start command and, at the same time, delivery of the swath data is started and a read pointer is shifted sequentially ((c)). When a write command is received in the way of delivery of the swath data and a decision is made that the empty capacity from the head of the buffer 4 has reached 835 bytes, writing of next swath data from the head address of the buffer 4 is started ((d)) in parallel with delivery of previous swath data and the read pointer is shifted forcibly to the final address simultaneously with the end of delivery of previous swath data ((e) and (f)).

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ホストコンピュ
ータから送信される1行分の印字データを格納できるの
容量のバッファを備え、バッファに1行分の印字データ
の格納を完了した後、1行分の印字データをバッファの
先頭アドレスから順次吐き出して印字する印字装置及び
その制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention provides a buffer having a capacity capable of storing one line of print data transmitted from a host computer. The present invention relates to a printing apparatus which sequentially prints out print data of a minute from a head address of a buffer and prints the print data, and a control method thereof.

【0002】[0002]

【従来の技術】一般に、印字装置であるプリンタでは、
ホストコンピュータから送信される印字データをバッフ
ァに格納するようになっているが、バッファの容量をで
きるだけ小さくしてコストを下げるために、バッファと
して1行分の印字データ(以下、この1行分の印字デー
タを「スワスデータ」と称する)を格納できる程度の小
容量のメモリが使用される。
2. Description of the Related Art Generally, in a printer as a printing device,
The print data transmitted from the host computer is stored in a buffer. In order to reduce the buffer capacity as much as possible and reduce the cost, one line of print data (hereinafter referred to as this one line) is used as a buffer. A memory having a capacity small enough to store print data (referred to as "swath data") is used.

【0003】そして、このようなスワスデータを格納し
得る容量のスワスバッファに、ホストコンピュータから
のスワスデータを一旦格納し、格納完了後にスワスバッ
ファの先頭アドレスから順次スワスデータ吐き出して所
定の用紙への印字を行っている。
Then, the swath data from the host computer is temporarily stored in a swath buffer having a capacity capable of storing such swath data, and after the storage is completed, the swath data is sequentially discharged from the head address of the swath buffer and printed on a predetermined sheet. ing.

【0004】この場合、1行分の印字データの印字が終
われば、次の1行分の印字データがスワスバッファに書
き込まれるが、従来における次の1行分の書き込み手順
は、図3(a)〜(d)に示すようになる。但し、図3
において、▽はスワスデータがバッファのどのアドレス
まで書き込まれているかを示すライトポインタ、▼はス
ワスデータをバッファのどのアドレスまで吐き出したか
を示すリードポインタを表わしている。
In this case, when the printing of one line of printing data is completed, the printing data of the next one line is written into the swath buffer. ) To (d). However, FIG.
In the above, ▽ represents a write pointer indicating to which address of the buffer the swath data has been written, and ▼ represents a read pointer indicating to which address of the buffer the swath data has been discharged.

【0005】いま、図3(a)に示すように、バッファ
Bに何も書き込まれていない状態において、図3(b)
に示すように、バッファBの先頭からスワスデータ(斜
線部分)が実線矢印方向に順次に書き込まれると、書き
込みに伴ってライトポインタ▽が順次移動する。
Now, as shown in FIG. 3A, in a state where nothing is written in the buffer B, FIG.
As shown in (1), when swath data (hatched portion) is sequentially written in the direction of the solid arrow from the head of the buffer B, the write pointer ▽ sequentially moves with the writing.

【0006】続いて、スワスデータの書き込みが完了す
ると、印字開始のコマンドに従って図3(c)中の破線
矢印に示すように、スワスデータの吐き出しが行われ、
吐き出しに伴ってリードポインタ▼が順次移動する。
Subsequently, when the writing of the swath data is completed, the swath data is discharged in accordance with the print start command, as shown by the broken arrow in FIG.
The read pointer ▼ sequentially moves with the ejection.

【0007】そして、スワスデータの吐き出し途中にお
いて、次のスワスデータの書き込みコマンドがくると、
吐き出し中の前のスワスデータの終了アドレスを表わす
ライトポインタ▽の位置が、次のスワスデータ書き込む
際における先頭であると認識され、ライトポインタ▽以
降がバッファBの空き部分であると判断されるため、図
3(c)に示すように、先に吐き出したスワスデータの
最終位置に続けて次のスワスデーの書き込みが開始され
る。
When the next swath data write command comes in the middle of swath data ejection,
Since the position of the write pointer 表 わ す indicating the end address of the previous swath data being ejected is recognized as the head when writing the next swath data, and the position after the write pointer ▽ is determined to be an empty portion of the buffer B, FIG. As shown in FIG. 3 (c), the writing of the next swath data is started following the last position of the swath data that has been discharged earlier.

【0008】そして、書き込み中の次のスワスデータが
バッファBの実際の最終アドレスまでに書き込み切れな
い場合には、図3(d)に示すように、バッファBの実
際の先頭アドレスから書き込みが継続して行われるよう
になっている。
When the next swath data being written cannot be completely written by the actual final address of the buffer B, the writing continues from the actual start address of the buffer B as shown in FIG. Is performed.

【0009】[0009]

【発明が解決しようとする課題】しかし、このように容
量の小さいバッファを用いたプリンタにおいて、先のス
ワスデータの最終位置から次のスワスデーの書き込みが
開始され、バッファBの先頭アドレスに戻って書き込み
が継続されるようにした場合、次のスワスデータの書き
込みがバッファBの最終アドレスに達した時点でライト
ポインタを先頭アドレスに戻す必要があるが、その際ラ
イトポインタの位置がバッファBの最終アドレスかどう
かの判断、及び、ライトポインタの位置をバッファBの
先頭アドレスに戻すという制御を行わなければならず、
制御が複雑になって印字スピードの低下を招くという問
題があった。
However, in a printer using such a small-capacity buffer, writing of the next swath data starts from the last position of the previous swath data, and returns to the head address of the buffer B to perform writing. If the writing is continued, it is necessary to return the write pointer to the first address when the next swath data write reaches the last address of the buffer B. At this time, whether the position of the write pointer is the last address of the buffer B is determined. And the control of returning the position of the write pointer to the head address of the buffer B must be performed.
There is a problem that the control is complicated and the printing speed is reduced.

【0010】ところで、プリンタ等の印字装置における
印字速度の向上を図るものとして、例えば特開平6−1
10622号公報や、特開平10−275067号公
報、特開平11−99709号公報、特開2000−1
72456号公報に記載の発明があるが、これらの発明
はいずれもバッファが数行分或いは1ページ分といった
比較的大容量を有する場合の制御に関する技術であり、
本願発明のように、1行分の印字データを格納可能な容
量のバッファの読み書き制御に関するものではなく、上
記した各公報に記載の技術を、本願のような小容量のバ
ッファの読み書き制御に対してそのまま適用することは
できず、また顕著な技術的効果も望むことはできない。
In order to improve the printing speed in a printing apparatus such as a printer, Japanese Patent Application Laid-Open No.
10622, JP-A-10-275067, JP-A-11-99709, JP-A-2000-1
There are inventions described in Japanese Patent No. 72456, but all of these inventions are related to control when the buffer has a relatively large capacity of several lines or one page.
It does not relate to read / write control of a buffer having a capacity capable of storing one line of print data as in the present invention, but applies the technology described in each of the above publications to read / write control of a small-capacity buffer as in the present application. It cannot be applied as it is, nor can it be expected a significant technical effect.

【0011】そこで、本発明は、1行分の印字データを
格納できる程度の小容量のバッファを備える場合におい
て、印字速度の向上を図れるようにすることを目的とす
る。
SUMMARY OF THE INVENTION It is an object of the present invention to improve the printing speed when a buffer having a small capacity enough to store one line of print data is provided.

【0012】[0012]

【課題を解決するための手段】上記した目的を達成する
ために、本発明にかかる印字装置は、ホストコンピュー
タから送信される1行分の印字データを格納できる程度
の容量のバッファを備え、前記バッファに前記1行分の
印字データの格納を完了した後、前記1行分の印字デー
タを前記バッファの先頭アドレスから順次吐き出して印
字する印字装置おいて、前記1行分の印字データが前記
バッファのどのアドレスまで書き込まれているかを示す
ライトポインタと、前記1行分の印字データを前記バッ
ファのどのアドレスまで吐き出したかを示すリードポイ
ンタと、前記印字データの吐き出し開始後、吐き出しに
よる前記バッファの先頭部分の空き容量が予め定められ
た所定量に達したかどうかを判断し、所定量に達してい
れば前記バッファの先頭アドレスから連続的に次の1行
分の印字データの書き込みを前の1行分の印字データの
吐き出しに並行して行う読み書き制御部と、前記読み書
き制御部による前記1行分の印字データの吐き出し開始
時に前記リードポインタ及び前記ライトポインタを前記
バッファの先頭アドレスに移動させ、吐き出し完了時に
前記リードポインタを前記バッファの終端アドレスに移
動させる移動制御部とを備えていることを特徴としてい
る。
To achieve the above object, a printing apparatus according to the present invention includes a buffer having a capacity large enough to store one line of print data transmitted from a host computer. After the storage of the one line of print data in the buffer is completed, the one line of print data is sequentially discharged from the head address of the buffer and printed. A write pointer indicating to which address the data has been written, a read pointer indicating to which address of the buffer the print data for the one line has been discharged, and a head of the buffer by the discharge after the start of the discharge of the print data. It is determined whether or not the free space of the portion has reached a predetermined amount, and if it has reached the predetermined amount, the buffer A read / write control unit for continuously writing the next one line of print data from the start address in parallel with the ejection of the preceding one line of print data; and a read / write control unit for reading the one line of print data by the read / write control unit. A movement control unit that moves the read pointer and the write pointer to a head address of the buffer at the start of ejection and moves the read pointer to an end address of the buffer at the time of ejection completion.

【0013】このような構成によれば、前の1行分の印
字データの吐き出しと、次の1行分の印字データの書き
込みとが並行して行われ、しかも1行分の印字データの
吐き出し開始時にリードポインタ及びライトポインタが
バッファの先頭アドレスに移動され、吐き出し完了時に
リードポインタがバッファの終端アドレスに移動され
る。
According to such a configuration, the ejection of the print data for the previous one line and the writing of the print data for the next one line are performed in parallel, and the ejection of the print data for one line is performed. At the start, the read pointer and the write pointer are moved to the head address of the buffer, and when the ejection is completed, the read pointer is moved to the end address of the buffer.

【0014】そのため、次の1行分の印字データの書き
込みを、必ずバッファの先頭アドレスから開始すること
ができ、従来のように、1行分の印字データがバッファ
の最終アドレスから先頭アドレスにまたがって書き込ま
れることを防止でき、バッファの最終アドレスに達した
かどうかを判断して先頭アドレスに戻すという制御が不
要になり、その分、処理を簡素化することができ、印字
全体における速度を向上することができる。
Therefore, the writing of the next one line of print data can always be started from the head address of the buffer, and the print data of one line extends from the last address of the buffer to the head address as in the related art. And the need to determine whether the end address of the buffer has been reached and return to the start address is no longer necessary, which can simplify the process and improve the overall printing speed. can do.

【0015】また、本発明にかかる印字装置は、前記ホ
ストコンピュータと接続されるUSB規格に準拠したイ
ンターフェイスを備え、前記所定量が少なくとも835
バイトに設定されていることを特徴としている。
Further, the printing apparatus according to the present invention includes an interface conforming to the USB standard connected to the host computer, and the predetermined amount is at least 835.
It is characterized by being set to bytes.

【0016】このような構成によれば、ホストコンピュ
ータからUSB規格のプロトコールで印字データが送信
されてくる場合であっても、前の1行分の印字データの
吐き出し開始後、吐き出しによるバッファの先頭部分の
空き容量が835バイトに達すると、バッファの先頭ア
ドレスから次の1行分の印字データが連続的に書き込ま
れるため、前の1行分の印字データの吐き出しと次の1
行分の印字データの書き込みとを並行して行うことがで
き、しかも印字速度の向上を図ることができる。
According to such a configuration, even when print data is transmitted from the host computer according to the protocol of the USB standard, after the discharge of the previous one line of print data is started, the head of the buffer by the discharge is started. When the free space of the portion reaches 835 bytes, the next one line of print data is continuously written from the head address of the buffer, so that the discharge of the previous one line of print data and the next one line
The writing of the print data for the lines can be performed in parallel, and the printing speed can be improved.

【0017】また、本発明にかかる印字装置は、前記ホ
ストコンピュータと接続されるパラレルインターフェイ
スを備え、前記所定量が少なくとも1バイトに設定され
ていることを特徴としている。
The printing apparatus according to the present invention includes a parallel interface connected to the host computer, wherein the predetermined amount is set to at least one byte.

【0018】このような構成によれば、ホストコンピュ
ータから印字データがパラレル伝送されてくる場合であ
っても、前の1行分の印字データの吐き出し開始後、吐
き出しによるバッファの先頭部分の空き容量が1バイト
に達すると、バッファの先頭アドレスから次の1行分の
印字データが連続的に書き込まれるため、前の1行分の
印字データの吐き出しと次の1行分の印字データの書き
込みとを並行して行うことができ、しかも印字速度の向
上を図ることができる。
According to such a configuration, even when the print data is transmitted in parallel from the host computer, after the start of the ejection of the previous one line of the print data, the free space at the head of the buffer by the ejection is obtained. Reaches 1 byte, the next one line of print data is continuously written from the head address of the buffer, so that the previous one line of print data is discharged and the next one line of print data is written. Can be performed in parallel, and the printing speed can be improved.

【0019】また、本発明にかかる印字装置は、前記イ
ンターフェイスを介して前記ホストコンピュータからデ
ータ圧縮されて送信されてくる印字データを受信して解
凍する解凍部を備えているのが好ましい。
Preferably, the printing apparatus according to the present invention further comprises a decompression unit for receiving and decompressing the print data transmitted from the host computer through the interface after being compressed.

【0020】このような構成によれば、解凍部により圧
縮された印字データを解凍するため、読み書き制御部の
負担が軽減されることになり、読み書き制御部の処理速
度の低下を招くこともなく印字速度の向上を図ることが
できる。
According to this configuration, since the print data compressed by the decompression unit is decompressed, the load on the read / write control unit is reduced, and the processing speed of the read / write control unit is not reduced. The printing speed can be improved.

【0021】また、本発明にかかる印字装置の制御方法
は、前記印字データの吐き出し開始後、吐き出しによる
前記バッファの先頭部分の空き容量が予め定められた所
定量に達したかどうかを判断し、所定量に達していれば
前記バッファの先頭アドレスから連続的に次の1行分の
印字データの書き込みを前の1行分の印字データの吐き
出しに並行して行い、前記1行分の印字データの吐き出
し開始時に、前記1行分の印字データを前記バッファの
どのアドレスまで吐き出したかを示すリードポインタ、
及び、前記1行分の印字データが前記バッファのどのア
ドレスまで書き込まれているかを示すライトポインタを
前記バッファの先頭アドレスに移動し、前記1行分の印
字データの吐き出し完了時に、前記リードポインタを前
記バッファの終端アドレスに移動することを特徴として
いる。
Further, in the control method of the printing apparatus according to the present invention, after the start of the ejection of the print data, it is determined whether or not the free space at the head of the buffer by the ejection has reached a predetermined amount. If the predetermined amount has been reached, the next one line of print data is continuously written from the head address of the buffer in parallel with the ejection of the previous one line of print data. A read pointer indicating to which address of the buffer the print data for one line has been discharged at the start of discharge
And moving a write pointer indicating to which address of the buffer the print data for one line has been written to the head address of the buffer, and changing the read pointer when the ejection of the print data for one line is completed. It is characterized by moving to the end address of the buffer.

【0022】このような構成によれば、次の1行分の印
字データの書き込みを、必ずバッファの先頭アドレスか
ら開始することができ、従来のように、1行分の印字デ
ータがバッファの最終アドレスから先頭アドレスにまた
がって書き込まれることを防止でき、バッファの最終ア
ドレスに達したかどうかを判断して先頭アドレスに戻す
という制御が不要になり、その分、処理を簡素化するこ
とができ、印字全体における速度を向上することができ
る。
According to such a configuration, the writing of the next one line of print data can always be started from the head address of the buffer, and the print data of one line is stored at the end of the buffer as in the conventional case. It is possible to prevent writing from the address to the start address, and it is not necessary to determine whether the end address of the buffer has been reached and to return to the start address, thereby simplifying processing. The speed in the entire printing can be improved.

【0023】[0023]

【発明の実施の形態】この発明を印字装置であるインク
ジェットプリンタに適用した場合の一実施形態について
図1及び図2を参照して説明する。但し、図1はブロッ
ク図、図2は動作説明図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to an ink jet printer as a printing device will be described with reference to FIGS. 1 is a block diagram, and FIG. 2 is an operation explanatory diagram.

【0024】本実施形態におけるインクジェットプリン
タでは、図1に示すように、ホストコンピュータである
パーソナルコンピュータ(以下、パソコンと称する)1
から送信されてくるコマンドデータや印字データは、A
SIC2により受信されて一旦レジスタ等に格納され、
コマンドデータはCPU3により解析される一方、印字
データはCPU3によりスワスバッファ4に順次書き込
まれる。
In the ink jet printer according to the present embodiment, as shown in FIG. 1, a personal computer (hereinafter referred to as a personal computer) 1 as a host computer.
Command data and print data sent from
Received by the SIC2 and temporarily stored in a register or the like,
While the command data is analyzed by the CPU 3, the print data is sequentially written to the swath buffer 4 by the CPU 3.

【0025】このとき、パソコン1とASIC2とは、
例えばUSB規格に準拠したコネクタ及びケーブル(い
ずれも図示せず)により接続されている。また、バッフ
ァ4は、1行分の印字データを格納できる程度の小容量
のメモリにより構成されている。
At this time, the personal computer 1 and the ASIC 2
For example, they are connected by a connector and a cable (both not shown) conforming to the USB standard. The buffer 4 is formed of a memory having a small capacity enough to store one line of print data.

【0026】そして、パソコン1からの印字開始コマン
ドによりスワスバッファ4から印字データが順次吐き出
され、図1には示されてないキャリアモータを駆動する
キャリアモータドライバ、及び、紙送り用のフィードモ
ータを駆動するフィードモータドライバが、CPU3に
より制御され、用紙に印字データに基づく文字、図形等
が印字されるようになっている。
Print data is sequentially discharged from the swath buffer 4 in response to a print start command from the personal computer 1, and a carrier motor driver (not shown in FIG. 1) for driving a carrier motor and a paper feed motor are provided. The feed motor driver to be driven is controlled by the CPU 3 so that characters, figures, and the like based on print data are printed on paper.

【0027】ところで、CPU3がバッファ4への印字
データの書き込み及び吐き出しを制御する場合、次のよ
うに行われる。即ち、CPU3は、書き込みコマンドに
従い、1行分の印字データ(スワスデータ)をバッファ
4に先頭アドレスから順次に書き込み、印字開始コマン
ドに従ってバッファ4からスワスデータの吐き出しを開
始し、その後吐き出しによるバッファ4の先頭部分の空
き容量が予め定められた所定量である835バイトに達
したかどうかを判断し、空き容量が835バイトに達し
ていれば、バッファ4の先頭アドレスから連続的に次の
スワスデータの書き込みを、前のスワスデータの吐き出
しに並行して行う。このCPU3による印字データの書
き込み及び吐き出し処理が読み書き制御部に相当する。
When the CPU 3 controls the writing and discharging of print data to and from the buffer 4, the following is performed. That is, the CPU 3 sequentially writes one line of print data (swath data) in the buffer 4 from the head address in accordance with the write command, starts discharging the swath data from the buffer 4 in accordance with the print start command, and thereafter starts the head of the buffer 4 by discharging. It is determined whether or not the free space of the portion has reached a predetermined predetermined amount of 835 bytes. If the free space has reached 835 bytes, the next swath data is written continuously from the head address of the buffer 4. , In parallel with the discharge of the previous swath data. The processing of writing and discharging print data by the CPU 3 corresponds to a read / write control unit.

【0028】尚、バッファ4の空き容量の判断基準を8
35バイトとしたのは、USBの場合、印字データがパ
ケットで送信されてくるため、次の1行分の印字データ
を書き込むに際して、少なくとも835バイトの空き容
量を確保しておけば、パケットで送信されてくる印字デ
ータの書き込むことができるからである。
The criterion for determining the free space of the buffer 4 is 8
The reason why 35 bytes is used is that, in the case of USB, print data is transmitted in a packet. Therefore, when writing the next one line of print data, if at least 835 bytes of free space is secured, transmission in a packet is performed. This is because the received print data can be written.

【0029】また、CPU3は、スワスデータの吐き出
し開始時に、そのスワスデータをバッファ4のどのアド
レスまで吐き出したかを示すリードポインタ、及び、ス
ワスデータがバッファ4のどのアドレスまで書き込まれ
ているかを示すライトポインタをバッファ4の先頭アド
レスに強制的に移動し、そのスワスデータの吐き出し完
了時に、リードポインタをバッファの終端アドレスに強
制的に移動する。このCPU3による各ポインタの移動
処理が移動制御部に相当する。
At the start of swath data discharge, the CPU 3 stores a read pointer indicating to which address of the buffer 4 the swath data has been discharged and a write pointer indicating to which address of the buffer 4 the swath data has been written. 4 and forcibly moves the read pointer to the end address of the buffer when the swath data ejection is completed. The movement processing of each pointer by the CPU 3 corresponds to a movement control unit.

【0030】具体的に、印字データの書き込み及び吐き
出しの動作について順を追って説明すると、まず図2
(a)に示すように、バッファ4に何も書き込まれてい
ない状態において、図2(b)に示すように、書き込み
コマンドに従い、CPU3によりバッファBの先頭から
スワスデータ(左傾斜の斜線部分)が実線矢印方向に順
次に書き込まれると、書き込みに伴ってライトポインタ
▽が順次移動される。
More specifically, the operation of writing and discharging print data will be described step by step.
As shown in FIG. 2A, in a state in which nothing is written in the buffer 4, as shown in FIG. When data is sequentially written in the direction of the solid arrow, the write pointer ▽ is sequentially moved with the writing.

【0031】次に、スワスデータの書き込みが完了し
て、印字開始のコマンドを受けると、CPU3によりラ
イトポインタ▽がバッファ4の先頭アドレスに強制的に
戻された後、図2(c)中の破線矢印に示すように、ス
ワスデータの吐き出しが開始され、吐き出しに伴ってリ
ードポインタ▼が順次移動される。
Next, when the swath data writing is completed and a print start command is received, the CPU 3 forcibly returns the write pointer # to the head address of the buffer 4 and then returns to the broken line in FIG. As indicated by an arrow, swath data discharge is started, and the read pointer ▼ is sequentially moved with the discharge.

【0032】そして、スワスデータの吐き出し途中にお
いて、次のスワスデータの書き込みのための書き込みコ
マンドを受けると、CPU3により、前のスワスデータ
の吐き出しに伴うバッファ4の先頭からの空き容量がど
れくらいか判断され、その空き容量が835バイトに達
すれば、ライトポインタ▽により示されるバッファ4の
先頭アドレスから、図2(d)中の実線矢印に示すよう
に次のスワスデータ(右傾斜の斜線部分)の書き込みが
開始され、前のスワスデータの吐き出しと次のスワスデ
ータの書き込みが並行して実行される。
When a write command for writing the next swath data is received during the discharge of the swath data, the CPU 3 determines the amount of free space from the beginning of the buffer 4 accompanying the discharge of the previous swath data. When the free space reaches 835 bytes, writing of the next swath data (hatched portion inclined rightward) is started from the head address of the buffer 4 indicated by the write pointer ▽, as indicated by the solid arrow in FIG. The discharge of the previous swath data and the writing of the next swath data are executed in parallel.

【0033】更に、図2(e)に示すように前のスワス
データの吐き出しが終了すると、CPU3によりリード
ポインタ▼がバッファ4の最終アドレスに強制的に移動
され、次のスワスデータが長いときには、その後も次の
スワスデータの書き込みは継続される。そして、次のス
ワスデータの書き込みが完了すると、書き込み完了した
スワスデータを印字するための印字開始コマンド待ちと
なる。
Further, as shown in FIG. 2 (e), when the discharge of the previous swath data is completed, the read pointer ▼ is forcibly moved to the last address of the buffer 4 by the CPU 3, and when the next swath data is long, it will be continued thereafter. The writing of the next swath data is continued. When the writing of the next swath data is completed, the process waits for a print start command for printing the swath data that has been written.

【0034】その後、印字開始コマンドを受けると、C
PU3により、スワスデータの終了アドレスにあるライ
トポインタ▽、及びバッファ4の最終アドレスにあるリ
ードポインタ▼が、図2(a)に示すようにバッファ4
の先頭アドレスに強制的に移動され、その後上記した動
作が繰り返し行われ、こうして複数行の印字データがバ
ッファ4に書き込まれると共に吐き出され、印字が行わ
れるのである。
Thereafter, when a print start command is received, C
The PU3 changes the write pointer に at the end address of the swath data and the read pointer ▼ at the last address of the buffer 4 into the buffer 4 as shown in FIG.
Is forcibly moved to the first address, and thereafter the above-described operation is repeatedly performed. In this manner, the print data of a plurality of lines is written into the buffer 4 and discharged, and printing is performed.

【0035】このように、前のスワスデータ(1行分の
印字データ)の吐き出しと、次のスワスデータの書き込
みとが並行して行われ、しかもスワスデータの吐き出し
開始時にリードポインタ▼及びライトポインタ▽がバッ
ファ4の先頭アドレスに移動され、吐き出し完了時にリ
ードポインタ▼がバッファ4の終端アドレスに移動され
る。
As described above, the discharge of the previous swath data (print data for one line) and the writing of the next swath data are performed in parallel, and the read pointer ▼ and the write pointer ▽ are buffered at the start of the discharge of the swath data. 4 and the read pointer ▼ is moved to the end address of the buffer 4 when the ejection is completed.

【0036】従って、上記した実施形態によれば、次の
スワスデータの書き込みを、必ずバッファ4の先頭アド
レスから開始することができ、従来のように、スワスデ
ータがバッファ4の最終アドレスから先頭アドレスにま
たがって書き込まれることを防止できるため、バッファ
4の最終アドレスに達したかどうかを判断して先頭アド
レスに戻すという制御が不要になり、その分、CPU3
の処理を簡素化することができ、印字全体の速度を向上
することができる。
Therefore, according to the above-described embodiment, the writing of the next swath data can always be started from the head address of the buffer 4, and the swath data extends from the last address of the buffer 4 to the head address as in the related art. Thus, it is not necessary to determine whether or not the last address of the buffer 4 has been reached and return to the first address.
Can be simplified, and the overall printing speed can be improved.

【0037】また、パソコン1からUSB規格のプロト
コールでスワスデータが送信されてくる場合であって
も、前のスワスデータの吐き出し開始後、吐き出しに伴
うバッファ4の先頭部分の空き容量が835バイトに達
したときに、バッファ4の先頭アドレスから次のスワス
データの書き込みが開始されるため、前のスワスデータ
の吐き出しと次のスワスデータの書き込みとを並行して
行うことができる。
Also, even when swath data is transmitted from the personal computer 1 according to the USB standard protocol, the free space at the head of the buffer 4 associated with the discharge reaches 835 bytes after the start of the discharge of the previous swath data. At this time, the writing of the next swath data is started from the head address of the buffer 4, so that the discharge of the previous swath data and the writing of the next swath data can be performed in parallel.

【0038】なお、解凍部としてのASIC2により、
USB規格のプロトコルで送信されてくる圧縮データ解
凍するようにしても構わない。こうすると、CPU3の
負担を軽減でき、CPU3の処理速度を向上して印字速
度の向上にいっそう寄与することができる。
The ASIC 2 as a decompressing unit
The compressed data transmitted by the USB standard protocol may be decompressed. In this case, the load on the CPU 3 can be reduced, and the processing speed of the CPU 3 can be improved, which can further contribute to the improvement of the printing speed.

【0039】また、上記した実施形態では、パソコン1
とプリンタとがUSBインターフェイスにより接続され
る場合について説明したが、パソコン1とプリンタと
を、セントロニクス規格であるIEEE1284等のパ
ラレルインターフェイスにより接続するようにしてもよ
いのは勿論である。このとき、次のスワスデータを書き
込むべきか判断する基準となるバッファ4の先頭アドレ
スからの空き容量は、少なくとも1バイトに設定されて
いればよい。
In the above embodiment, the personal computer 1
Although the case where the printer and the printer are connected by the USB interface has been described, it is a matter of course that the personal computer 1 and the printer may be connected by a parallel interface such as IEEE1284 which is a Centronics standard. At this time, the free space from the start address of the buffer 4 serving as a reference for determining whether to write the next swath data should be set to at least 1 byte.

【0040】更に、このようにパラレルインターフェイ
スにより接続する場合において、ASIC2が解凍部と
して、パラレルインターフェイスを介してパソコン1か
ら受信したデータ圧縮されて送信されてくるスワスデー
タを解凍するのが望ましく、この場合も、ASIC2に
よるデータ解凍によって、CPU3の負担を軽減するこ
とができ、CPU3の処理速度の低下を招くこともなく
印字速度の向上を図ることができる。
Further, when the connection is established by the parallel interface, it is desirable that the ASIC 2 decompresses the swath data transmitted from the personal computer 1 via the parallel interface after being compressed and transmitted as the decompression unit. Also, by decompressing data by the ASIC 2, the load on the CPU 3 can be reduced, and the printing speed can be improved without lowering the processing speed of the CPU 3.

【0041】また、上記した実施形態では、印字装置を
インクジェットプリンタとした場合について説明した
が、印字装置はインクジェットプリンタに限定されるも
のではなく、要するに1行分の印字データ格納できる程
度の小容量のバッファを備えたものであれば本発明を適
用することが可能であり、上記した実施形態と同等の効
果を得ることができる。
In the above-described embodiment, the case where the printing device is an ink jet printer has been described. However, the printing device is not limited to the ink jet printer, and in short, has a small capacity enough to store one line of print data. The present invention can be applied to any device provided with the buffer described above, and an effect equivalent to that of the above-described embodiment can be obtained.

【0042】更に、ホストコンピュータも、上記したよ
うなパソコン1に限定されるものではない。
Further, the host computer is not limited to the personal computer 1 as described above.

【0043】また、本発明は上記した実施形態に限定さ
れるものではなく、その趣旨を逸脱しない限りにおいて
上述したもの以外に種々の変更を行うことが可能であ
る。
The present invention is not limited to the above-described embodiment, and various modifications other than those described above can be made without departing from the gist of the present invention.

【0044】[0044]

【発明の効果】以上のように、請求項1、5に記載の発
明によれば、次の1行分の印字データの書き込みを、必
ずバッファの先頭アドレスから開始することができ、従
来のように、1行分の印字データがバッファの最終アド
レスから先頭アドレスにまたがって書き込まれることを
防止できるため、バッファの最終アドレスに達したかど
うかを判断して先頭アドレスに戻すという制御が不要に
なり、その分、処理を簡素化することができ、印字全体
における速度を向上することが可能になり、1行分の印
字データ格納できる程度の小容量のバッファを備えた印
字装置に好適である。
As described above, according to the first and fifth aspects of the present invention, writing of the next one line of print data can always be started from the head address of the buffer. In addition, since it is possible to prevent one line of print data from being written from the last address of the buffer to the first address, it is not necessary to determine whether the last address of the buffer has been reached and return to the first address. Accordingly, the processing can be simplified, and the speed of the entire printing can be improved. Therefore, the present invention is suitable for a printing apparatus having a buffer having a small capacity enough to store one line of print data.

【0045】また、請求項2に記載の発明によれば、ホ
ストコンピュータからUSB規格のプロトコールで印字
データが送信されてくる場合であっても、前の1行分の
印字データの吐き出し開始後、吐き出しによるバッファ
の先頭部分の空き容量が835バイトに達すると、バッ
ファの先頭アドレスから次の1行分の印字データが連続
的に書き込まれるため、前の1行分の印字データの吐き
出しと次の1行分の印字データの書き込みとを並行して
行うことができ、しかも印字速度の向上を図ることが可
能になる。
According to the second aspect of the present invention, even when print data is transmitted from the host computer according to the protocol of the USB standard, after the discharge of the previous one line of print data is started, When the free space at the head of the buffer by the ejection reaches 835 bytes, the next one line of print data is continuously written from the head address of the buffer, so that the ejection of the previous one line of print data and the next Writing of print data for one line can be performed in parallel, and the printing speed can be improved.

【0046】また、請求項3に記載の発明によれば、ホ
ストコンピュータから印字データがパラレル伝送されて
くる場合であっても、前の1行分の印字データの吐き出
し開始後、吐き出しによるバッファの先頭部分の空き容
量が1バイトに達すると、バッファの先頭アドレスから
次の1行分の印字データが連続的に書き込まれるため、
前の1行分の印字データの吐き出しと次の1行分の印字
データの書き込みとを並行して行うことができ、しかも
印字速度の向上を図ることが可能になる。
According to the third aspect of the present invention, even when print data is transmitted in parallel from the host computer, after the discharge of the previous one line of print data is started, the buffer of the buffer by the discharge is started. When the free space at the beginning reaches one byte, the next one line of print data is continuously written from the beginning address of the buffer.
The ejection of the print data for the previous one line and the writing of the print data for the next line can be performed in parallel, and the printing speed can be improved.

【0047】また、請求項4に記載の発明によれば、解
凍部により圧縮された印字データを解凍するため、読み
書き制御部の負担が軽減されることになり、読み書き制
御部の処理速度の低下を招くこともなく印字速度の向上
を図ることが可能になる。
According to the fourth aspect of the present invention, since the print data compressed by the decompression unit is decompressed, the load on the read / write control unit is reduced, and the processing speed of the read / write control unit is reduced. It is possible to improve the printing speed without inducing.

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

【図1】この発明の一実施形態のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】この発明の一実施形態の動作説明図である。FIG. 2 is an operation explanatory diagram of one embodiment of the present invention.

【図3】従来例の動作説明図である。FIG. 3 is an operation explanatory diagram of a conventional example.

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

1 パソコン(ホストコンピュータ) 2 ASIC(解凍部) 3 CPU(読み書き制御部、移動制御部) 4 スワスバッファ Reference Signs List 1 personal computer (host computer) 2 ASIC (decompression unit) 3 CPU (read / write control unit, movement control unit) 4 swath buffer

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータから送信される1行
分の印字データを格納できる程度の容量のバッファを備
え、前記バッファに前記1行分の印字データの格納を完
了した後、前記1行分の印字データを前記バッファの先
頭アドレスから順次吐き出して印字する印字装置おい
て、 前記1行分の印字データが前記バッファのどのアドレス
まで書き込まれているかを示すライトポインタと、 前記1行分の印字データを前記バッファのどのアドレス
まで吐き出したかを示すリードポインタと、 前記印字データの吐き出し開始後、吐き出しによる前記
バッファの先頭部分の空き容量が予め定められた所定量
に達したかどうかを判断し、所定量に達していれば前記
バッファの先頭アドレスから連続的に次の1行分の印字
データの書き込みを前の1行分の印字データの吐き出し
に並行して行う読み書き制御部と、 前記読み書き制御部による前記1行分の印字データの吐
き出し開始時に前記リードポインタ及び前記ライトポイ
ンタを前記バッファの先頭アドレスに移動させ、吐き出
し完了時に前記リードポインタを前記バッファの終端ア
ドレスに移動させる移動制御部とを備えていることを特
徴とする印字装置。
1. A buffer having a capacity large enough to store one line of print data transmitted from a host computer, and after storing the one line of print data in the buffer is completed. A printing apparatus for sequentially ejecting and printing print data from a head address of the buffer; a write pointer indicating to which address of the buffer the print data of the one line is written; and a print data of the one line. A read pointer indicating to which address of the buffer has been ejected, and after starting the ejection of the print data, it is determined whether or not the free space at the head of the buffer by ejection has reached a predetermined amount. If the fixed amount has been reached, writing of the next one line of print data is continuously performed from the head address of the buffer for the previous one line. A read / write control unit that performs processing in parallel with the ejection of print data, and when the read / write control unit starts ejection of the one line of print data, the read pointer and the write pointer are moved to the head address of the buffer, and ejection is completed. A movement control unit that sometimes moves the read pointer to the end address of the buffer.
【請求項2】 前記ホストコンピュータと接続されるU
SB規格に準拠したインターフェイスを備え、前記所定
量が少なくとも835バイトに設定されていることを特
徴とする請求項1に記載の印字装置。
2. A computer connected to the host computer.
2. The printing apparatus according to claim 1, further comprising an interface conforming to the SB standard, wherein the predetermined amount is set to at least 835 bytes.
【請求項3】 前記ホストコンピュータと接続されるパ
ラレルインターフェイスを備え、前記所定量が少なくと
も1バイトに設定されていることを特徴とする請求項1
に記載の印字装置。
3. The apparatus according to claim 1, further comprising a parallel interface connected to said host computer, wherein said predetermined amount is set to at least one byte.
3. The printing device according to claim 1.
【請求項4】 前記インターフェイスを介して前記ホス
トコンピュータからデータ圧縮されて送信されてくる印
字データを受信して解凍する解凍部を備えていることを
特徴とする請求項2または3に記載の印字装置。
4. The printing method according to claim 2, further comprising a decompression unit for receiving and decompressing print data transmitted from the host computer through the interface through data compression. apparatus.
【請求項5】 ホストコンピュータから送信される1行
分の印字データを格納できる程度の容量のバッファを備
え、前記バッファに前記1行分の印字データの格納を完
了した後、前記1行分の印字データを前記バッファの先
頭アドレスから順次吐き出して印字する印字装置の制御
方法おいて、 前記印字データの吐き出し開始後、吐き出しによる前記
バッファの先頭部分の空き容量が予め定められた所定量
に達したかどうかを判断し、 所定量に達していれば前記バッファの先頭アドレスから
連続的に次の1行分の印字データの書き込みを前の1行
分の印字データの吐き出しに並行して行い、 前記1行分の印字データの吐き出し開始時に、前記1行
分の印字データを前記バッファのどのアドレスまで吐き
出したかを示すリードポインタ、及び、前記1行分の印
字データが前記バッファのどのアドレスまで書き込まれ
ているかを示すライトポインタを前記バッファの先頭ア
ドレスに移動し、 前記1行分の印字データの吐き出し完了時に、前記リー
ドポインタを前記バッファの終端アドレスに移動するこ
とを特徴とする印字装置の制御方法。
5. A buffer having a capacity large enough to store one line of print data transmitted from the host computer, and after storing the one line of print data in the buffer, In the control method of a printing apparatus for sequentially discharging and printing print data from a head address of the buffer, after the start of the discharge of the print data, the free space of the head portion of the buffer by the discharge reaches a predetermined amount. If the predetermined amount has been reached, the next one line of print data is written continuously from the head address of the buffer in parallel with the ejection of the previous one line of print data. A read pointer indicating to which address of the buffer the print data for one line has been discharged at the start of discharge of the print data for one line; A write pointer indicating to which address of the buffer the print data of one line has been written is moved to a head address of the buffer, and when the ejection of the print data of one line is completed, the read pointer is shifted to the buffer. A control method for a printing apparatus, characterized by moving to an end address of the printer.
JP2000339005A 2000-11-07 2000-11-07 Printer and its controlling method Pending JP2002137457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000339005A JP2002137457A (en) 2000-11-07 2000-11-07 Printer and its controlling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000339005A JP2002137457A (en) 2000-11-07 2000-11-07 Printer and its controlling method

Publications (1)

Publication Number Publication Date
JP2002137457A true JP2002137457A (en) 2002-05-14

Family

ID=18814133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000339005A Pending JP2002137457A (en) 2000-11-07 2000-11-07 Printer and its controlling method

Country Status (1)

Country Link
JP (1) JP2002137457A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006326857A (en) * 2005-05-23 2006-12-07 Canon Inc Recorder and its control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006326857A (en) * 2005-05-23 2006-12-07 Canon Inc Recorder and its control method
JP4603933B2 (en) * 2005-05-23 2010-12-22 キヤノン株式会社 Recording device

Similar Documents

Publication Publication Date Title
JP3706694B2 (en) Information processing apparatus, printer control method, and storage medium
JP4953905B2 (en) Image processing apparatus, image processing method, and program
JPH0911554A (en) Host base printer
JPH0948154A (en) Serial type printer
JPH0939306A (en) Printer
JP2002137457A (en) Printer and its controlling method
JPH0359835B2 (en)
EP1494122B1 (en) A data transferring apparatus for transferring liquid ejection data and a liquid ejecting apparatus
JP2006264274A (en) Uncompressing circuit, uncompressing method and printer
JP3575265B2 (en) Printing paper supply / discharge control method and printing system
EP1507213B1 (en) A data transferring apparatus for transferring liquid ejection data and a liquid ejecting apparatus
JP4412478B2 (en) Data transfer device for liquid ejection data, liquid ejection device
JP3768670B2 (en) Printing system and printing control method
JP2005088574A (en) Apparatus for transferring liquid ejection data, and liquid ejection apparatus
US7177955B2 (en) Data transferring apparatus for transferring liquid ejection data and a liquid ejecting apparatus including a header analyzing unit that analyzes a header of liquid ejection controlling data
JP2004145857A (en) Data transfer device for liquid injection data, and liquid injection device
US6757758B1 (en) Data transfer method, data transfer apparatus and recording apparatus
JP3780223B2 (en) Multifunction device, image data transfer method, program, and storage medium
JPH09188041A (en) Output device
JP2000141782A (en) Recorder and data transfer method therfor
JP2003335031A (en) Printer
JPH09164732A (en) Recording device
JP2003251868A (en) Printer and method of managing buffer
JP2000225734A (en) Printer
JPH09314928A (en) Printer, printing system and its control method