JP3024363B2 - Printer - Google Patents

Printer

Info

Publication number
JP3024363B2
JP3024363B2 JP4152391A JP15239192A JP3024363B2 JP 3024363 B2 JP3024363 B2 JP 3024363B2 JP 4152391 A JP4152391 A JP 4152391A JP 15239192 A JP15239192 A JP 15239192A JP 3024363 B2 JP3024363 B2 JP 3024363B2
Authority
JP
Japan
Prior art keywords
data
input buffer
buffer
mode
switching
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
JP4152391A
Other languages
Japanese (ja)
Other versions
JPH05341927A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP4152391A priority Critical patent/JP3024363B2/en
Publication of JPH05341927A publication Critical patent/JPH05341927A/en
Application granted granted Critical
Publication of JP3024363B2 publication Critical patent/JP3024363B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、印字モードに応じて入
力されたデータを保持する入力バッファの容量を変更す
る機能を有するプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer having a function of changing the capacity of an input buffer for holding input data according to a print mode.

【0002】[0002]

【従来の技術】汎用ドットマトリクスプリンタを例にと
れば、通常プリンタは文字データを印字するキャラクタ
モードと、ドット単位でイメージをコントロールし、図
形・記号・模様等を印字するビットイメージモードの、
随時切り替え可能な二つのモードを持っている。図2は
その概要を示すブロック図である。以下、このブロック
図について説明する。なお、プリンタを制御する各種プ
ログラムはプログラムROM19内に格納され、CPU
によって制御されるものとする。
2. Description of the Related Art Taking a general-purpose dot matrix printer as an example, a normal printer has a character mode for printing character data and a bit image mode for printing images, symbols, and patterns by controlling an image in dot units.
It has two modes that can be switched at any time. FIG. 2 is a block diagram showing the outline. Hereinafter, this block diagram will be described. Various programs for controlling the printer are stored in the program ROM 19,
Shall be controlled by

【0003】まずプリンタはホストコンピュータから送
られたデータをインターフェイス11を介して受信し、
入力バッファ12に格納する。データ解析部13は前記
バッファ12よりデータを取り出し文字データ・ビット
イメージデータ・装飾コマンド・印字起動コマンド・そ
の他の制御コマンドに分類する。キャラクタモードの場
合、取り出されたデータは文字展開部14に送られ、コ
マンドの場合は各コマンドに相当する処理が行われる。
また、文字データの場合は該データに相当する文字イメ
ージデータをフォントROM20より読み出し、一旦ワ
ークRAM21上に展開する。その後必要な各種装飾を
ワークRAM21上のイメージデータに対して行い、全
装飾が終了した時点で出力バッファ16上の所定の位置
に展開する。一方ビットイメージモードの場合は、フォ
ントROM20さらには各種装飾を行う必要がないか
ら、取り出したデータはワークRAM21を介さず直接
出力バッファに展開する。以上のシーケンスにより出力
バッファ16に展開したデータは、印字起動コマンドを
トリガとしプリントバッファ17を通して印刷機構18
に送られ、印刷が実行される。
[0003] First, the printer receives the data sent from the host computer via the interface 11,
The data is stored in the input buffer 12. The data analysis unit 13 takes out data from the buffer 12 and classifies the data into character data, bit image data, decoration commands, print start commands, and other control commands. In the case of the character mode, the extracted data is sent to the character expansion unit 14, and in the case of the command, processing corresponding to each command is performed.
In the case of character data, character image data corresponding to the data is read from the font ROM 20 and is temporarily expanded on the work RAM 21. After that, various necessary decorations are performed on the image data in the work RAM 21, and when all the decorations are completed, the image data is developed at a predetermined position on the output buffer 16. On the other hand, in the case of the bit image mode, since there is no need to perform the font ROM 20 and various decorations, the extracted data is directly developed in the output buffer without passing through the work RAM 21. The data developed in the output buffer 16 by the above sequence is transmitted to the printing mechanism 18 through the print buffer 17 by using the print start command as a trigger.
And the printing is executed.

【0004】しかしながら従来は、印字モードに関わら
ず、データの受信・解析シーケンスに直接関わる入力バ
ッファの構造は不変であり、このためデータの受信・解
析シーケンスにおいて、入力バッファへの書き込みポイ
ンタ管理、入力バッファからの読みだしポインタ管理な
どを各モードに共通に使用できる様に最大公約数的な構
造にせざるを得ず、このことがスループット向上の妨げ
となっていた。
However, conventionally, regardless of the print mode, the structure of the input buffer directly related to the data receiving / analyzing sequence is unchanged. Therefore, in the data receiving / analyzing sequence, the management of the write pointer to the input buffer and the input The structure must be of the greatest common denominator so that the pointer reading from the buffer and the like can be commonly used in each mode, and this has hindered the improvement in throughput.

【0005】また、ビットイメージモードでは大量のデ
ータを直接出力バッファに展開するため、出力バッファ
の構造を変更することもスループット向上のために有益
であるが、容量に制限のあるシステムでは、入力バッフ
ァ領域が他の記憶容量を圧迫するため、入力バッファの
状態によっては出力バッファ用の十分な容量を確保でき
ないという問題もあった。
In the bit image mode, since a large amount of data is directly expanded in an output buffer, it is useful to change the structure of the output buffer to improve the throughput. However, in a system having a limited capacity, an input buffer may be used. There is also a problem that a sufficient capacity for the output buffer cannot be secured depending on the state of the input buffer because the area presses other storage capacity.

【0006】[0006]

【発明が解決しようとする課題】本発明はこのような問
題点を解決するためのもので、その目的とするところ
は、入力バッファの位置、大きさを各モードの特徴に応
じて最適の状態に随時リアルタイムで変更することによ
り、スループットを向上させたプリンタを廉価で提供す
ることにある。
SUMMARY OF THE INVENTION The present invention is intended to solve such a problem. The purpose of the present invention is to set the position and size of an input buffer in an optimum state according to the characteristics of each mode. Another object of the present invention is to provide an inexpensive printer with an improved throughput by changing it in real time as needed.

【0007】[0007]

【課題を解決するための手段】本発明のプリンタは、イ
ンターフェイスを介して受信したデータを一時的に保持
する入力バッファを複数持ち、また随時切り替え可能な
複数の印字モードを持つと同時に、モードが切り替わっ
た時点でデータ受信を止める手段と、前記入力バッファ
の入力を管理する入力ポインタを前記複数の入力バッフ
ァのうちの一つの入力バッファ上に変更する手段と、デ
ータ受信を再開する手段と、入力ポインタ変更前に入力
ポインタにより選択されていた入力バッファの内容を前
記入力ポインタ変更後の入力バッファに転送する手段
と、入力バッファの出力を管理する出力ポインタを前記
入力ポインタ変更後の入力バッファ上に変更する手段を
有することを最も主要な特徴とする。
SUMMARY OF THE INVENTION A printer according to the present invention has a plurality of input buffers for temporarily holding data received via an interface, and has a plurality of print modes which can be switched at any time. Means for stopping data reception at the time of switching, means for changing an input pointer for managing input of the input buffer to one of the plurality of input buffers, means for resuming data reception, Means for transferring the contents of the input buffer selected by the input pointer before the pointer change to the input buffer after the change of the input pointer; and an output pointer for managing the output of the input buffer on the input buffer after the change of the input pointer. The most important feature is to have means for changing.

【0008】[0008]

【作用】本発明は以上の構成を有するので、各印字モー
ドに適した入力バッファをモード毎にリアルタイムに構
成することができる。
Since the present invention has the above configuration, an input buffer suitable for each printing mode can be configured in real time for each mode.

【0009】[0009]

【実施例】以下、キャラクタモードとビットイメージモ
ードの2つのモードを持ったプリンタにおける実施例に
従って本発明を説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to an embodiment in a printer having two modes, a character mode and a bit image mode.

【0010】図1は、本実施例の概要を示すブロック図
である。矢印は実線がデータ、破線が命令・信号の流れ
を示している。なお、前提としてキャラクタモードで使
用する入力バッファを入力バッファ24、ビットイメー
ジモードで使用する入力バッファを入力バッファ25と
し、共にリング状バッファとする。また、現在キャラク
タモード状態にあるものとする。
FIG. 1 is a block diagram showing an outline of the present embodiment. As for the arrows, solid lines indicate data and broken lines indicate the flow of commands and signals. It is assumed that an input buffer used in the character mode is the input buffer 24, an input buffer used in the bit image mode is the input buffer 25, and both are ring buffers. It is also assumed that the character mode is currently set.

【0011】ホストコンピュータから送られたデータは
インターフェイス22を介し、入力チャネル23を通し
て入力バッファ24に格納される。データ解析部28は
前記入力バッファ24から出力チャネル27を通して取
り出したデータを解析し、データ/コマンドに分類す
る。この解析されたコマンドはモード判別部28に送ら
れ現在の印字モードが判別される。判別の結果、モード
がキャラクタモードからビットイメージモードへ変更さ
れたとき、前記モード判別部29はモード切り替え信号
を前記データ解析部28に対して送る。データ解析部2
8は、該モード切り替え信号を受信した時点でデータ転
送停止信号を前記インターフェイス22に対して送る。
インターフェイス22はこの停止信号に従ってデータ受
信を停止する。一方、前記入力バッファ24内にデータ
が残っている場合があるため、前記データ解析部28は
入力バッファ24内のデータを新入力バッファ25に転
送すべく、データ転送部26に対して転送開始信号を送
る。データ転送部26は転送開始信号を受けた時点で入
力バッファ24内の残データ量分の領域を入力バッファ
25の終端部に確保する。ここで、もし確保すべき領域
が入力バッファ25の大きさを越える場合は残データ量
が入力バッファ25の大きさ以内になるまでデータ解析
動作を続ける。入力バッファ25内に残データ量分の領
域が確保できた時点で前記データ転送部26は一旦前記
データ解析部28に対してデータ解析禁止信号を出し、
解析動作を停止させる。
Data sent from the host computer is stored in an input buffer 24 through an interface 22 and an input channel 23. The data analysis unit 28 analyzes data extracted from the input buffer 24 through the output channel 27 and classifies the data into data / command. The analyzed command is sent to the mode determination unit 28, and the current print mode is determined. As a result of the determination, when the mode is changed from the character mode to the bit image mode, the mode determination unit 29 sends a mode switching signal to the data analysis unit 28. Data analysis unit 2
8 sends a data transfer stop signal to the interface 22 upon receiving the mode switching signal.
The interface 22 stops receiving data according to the stop signal. On the other hand, since data may remain in the input buffer 24, the data analysis unit 28 transmits a transfer start signal to the data transfer unit 26 to transfer the data in the input buffer 24 to the new input buffer 25. Send. Upon receiving the transfer start signal, the data transfer unit 26 secures an area for the remaining data amount in the input buffer 24 at the end of the input buffer 25. Here, if the area to be secured exceeds the size of the input buffer 25, the data analysis operation is continued until the remaining data amount falls within the size of the input buffer 25. When an area for the remaining data amount can be secured in the input buffer 25, the data transfer unit 26 once issues a data analysis inhibition signal to the data analysis unit 28,
Stop the analysis operation.

【0012】以上がデータ転送直前までのシーケンスで
ある。続いて、図3を併せてデータ転送以後のシーケン
スの詳細を説明する。図3は前記バッファ24(バッフ
ァ#1で示す)から前記バッファ25(バッファ#2で
示す)に切り替わる場合の入出力ポインタ、残データの
動きを示す。
The above is the sequence up to immediately before data transfer. Next, the sequence after the data transfer will be described in detail with reference to FIG. FIG. 3 shows the movement of the input / output pointer and the remaining data when switching from the buffer 24 (shown as buffer # 1) to the buffer 25 (shown as buffer # 2).

【0013】図3(a)はデータ転送直前のバッファの
状態を示す。入出力ポインタは共にバッファ#1の領域
上を指示している。この状態から、データ転送部26は
前記入力チャネル23に対して入力ポインタ変更信号を
出し、入力チャネル23は該変更信号を受けて入力ポイ
ンタを入力バッファ25の先頭アドレスに切り換える。
切り換えた後のバッファの状態を図3(b)に示す。イ
ンターフェイス22を介して入力されたデータは、以後
このアドレスより格納される。同様にしてデータ転送部
26は出力ポインタの変更信号を前記出力チャネル27
に対して送る。出力チャネル27は該ポインタ変更信号
を受けて出力ポインタをバッファ#2上に切り換える。
切り換えた後のバッファの状態を図3(c)に示す。こ
こで、出力ポインタはバッファ#2の最終アドレスより
バッファ#1上の残データ量分オフセットを引いたアド
レスに設定される。以上のようにして入出力ポインタを
更新した後、データ転送部26は前記インターフェイス
22に対してデータ転送許可信号を送り、データ受信を
再開させる。最後にデータ転送部26は残データを入力
バッファ#1からバッファ#2に転送する。転送後のバ
ッファの状態を図3(d)に示す。転送が終了した時点
で前記データ解析部28にデータ解析許可信号を送り、
データ解析部28による解析を再開させる。このデータ
解析は出力ポインタで指示されるアドレス上のデータか
ら開始される。
FIG. 3A shows the state of the buffer immediately before data transfer. Both the input and output pointers point on the area of buffer # 1. From this state, the data transfer unit 26 issues an input pointer change signal to the input channel 23, and the input channel 23 receives the change signal and switches the input pointer to the head address of the input buffer 25.
FIG. 3B shows the state of the buffer after switching. Data input via the interface 22 is stored from this address thereafter. Similarly, the data transfer unit 26 outputs the output pointer change signal to the output channel 27.
Send to The output channel 27 switches the output pointer to the buffer # 2 in response to the pointer change signal.
FIG. 3C shows the state of the buffer after switching. Here, the output pointer is set to an address obtained by subtracting an offset corresponding to the remaining data amount on the buffer # 1 from the last address of the buffer # 2. After updating the input / output pointer as described above, the data transfer unit 26 sends a data transfer permission signal to the interface 22 to restart data reception. Finally, the data transfer unit 26 transfers the remaining data from the input buffer # 1 to the buffer # 2. The state of the buffer after the transfer is shown in FIG. When the transfer is completed, a data analysis permission signal is sent to the data analysis unit 28,
The analysis by the data analysis unit 28 is restarted. This data analysis is started from the data on the address indicated by the output pointer.

【0014】以上がバッファ24(バッファ#1)から
バッファ25(バッファ#2)に切り替わる場合のシー
ケンスであるが、その逆の場合も同様である。
The above is the sequence in the case of switching from the buffer 24 (buffer # 1) to the buffer 25 (buffer # 2). The same applies to the reverse case.

【0015】更に詳細な説明として、キャラクタモード
に於ける入力バッファをリング状バッファ#1、ビット
イメージモードに於ける入力バッファをリング状バッフ
ァ#2とし、バッファ#1の容量>バッファ#2の容量
と想定した場合のデータ受信シーケンス例を以下に示
す。
As a more detailed explanation, the input buffer in the character mode is a ring buffer # 1, and the input buffer in the bit image mode is a ring buffer # 2. The capacity of the buffer # 1> the capacity of the buffer # 2 The following is an example of a data reception sequence when it is assumed that:

【0016】図4に、入力バッファからの出力シーケン
ス例をフローチャートで示す。まず、現在の印字モード
が変化したかを判別する(ステップ31)。現在のモー
ドがキャラクタモードからビットイメージモードに変化
したならば(ステップ32)一旦データ受信を禁止する
(ステップ33)。バッファ#1内に残るデータ量がバ
ッファ#2の容量未満であるかを判断(ステップ3
4)、残データ量がバッファ#2の容量以上ならばバッ
ファ#1からデータを取り出し(ステップ39)、出力
ポインタを更新する(ステップ40)する。この場合は
データ受信は残データ量がバッファ#2内に収まるまで
データ受信は許可しない。残データ量がバッファ#2内
に収まるならば、入力ポインタをバッファ#1からバッ
ファ#2の先頭アドレスに変更(ステップ35)、出力
ポインタをバッファ#1からバッファ#2上変更(ステ
ップ36)する。なお、出力ポインタは前記図3(c)
を用いて説明した位置に変更される。この後データ受信
を再開(ステップ37)し、バッファ#1からバッファ
#2に残データを転送する(ステップ38)。データ転
送は前記図3(d)を用いて説明したように、旧出力ポ
インタから新出力ポインタに向けて行われる。以上でバ
ッファ切り替えが終了し、これ以降は再びモード切り替
えが生じるまで、バッファ#2を用いてデータ受信が行
われる。
FIG. 4 is a flowchart showing an example of an output sequence from the input buffer. First, it is determined whether the current print mode has changed (step 31). If the current mode changes from the character mode to the bit image mode (step 32), data reception is temporarily prohibited (step 33). It is determined whether the amount of data remaining in buffer # 1 is less than the capacity of buffer # 2 (step 3
4) If the remaining data amount is equal to or larger than the capacity of buffer # 2, data is extracted from buffer # 1 (step 39), and the output pointer is updated (step 40). In this case, data reception is not permitted until the remaining data amount falls within the buffer # 2. If the amount of remaining data is within buffer # 2, the input pointer is changed from buffer # 1 to the start address of buffer # 2 (step 35), and the output pointer is changed from buffer # 1 to buffer # 2 (step 36). . Note that the output pointer is as shown in FIG.
Is changed to the position described using. Thereafter, data reception is resumed (step 37), and the remaining data is transferred from buffer # 1 to buffer # 2 (step 38). Data transfer is performed from the old output pointer to the new output pointer as described with reference to FIG. The buffer switching is thus completed, and thereafter, data reception is performed using the buffer # 2 until the mode switching occurs again.

【0017】一方、モード判別の結果ビットイメージモ
ードからキャラクタモードに変化したと判定された場合
は、バッファ#1の容量>バッファ#2の容量であり、
残データは必ず即転送可能状態にある。この場合は、受
信割り込み禁止(ステップ42)、入出力ポインタ変更
(ステップ43、44)、受信割り込み禁止(ステップ
45)、バッファ#2からバッファ#1へ残データを転
送(ステップ46)のみで済み、以降のデータ受信はバ
ッファ#1を用いて行われる。
On the other hand, when it is determined that the mode has changed from the bit image mode to the character mode as a result of the mode determination, the capacity of the buffer # 1> the capacity of the buffer # 2, and
The remaining data is always ready for immediate transfer. In this case, it is only necessary to disable the reception interrupt (step 42), change the input / output pointer (steps 43 and 44), disable the reception interrupt (step 45), and transfer the remaining data from buffer # 2 to buffer # 1 (step 46). , And subsequent data reception is performed using the buffer # 1.

【0018】以上のシーケンスのうち、ステップ32か
ら38、ステップ32から46の部分が従来のシーケン
スであるステップ39から40に付加される。これによ
り、キャラクタモード、ビットイメージモード毎に受信
バッファの大きさを設定できる。
In the above sequence, steps 32 to 38 and steps 32 to 46 are added to the conventional sequence of steps 39 to 40. Thus, the size of the reception buffer can be set for each of the character mode and the bit image mode.

【0019】また、ビットイメージモードでのバッファ
容量を1バイトにすることで、出力ポインタ更新の手間
が省け、より高速のデータ受信が可能となる。更にキャ
ラクタモードで使用されていた受信バッファがそのまま
他の用途に使用でき、例えば印刷バッファに使用するこ
とで、ビットイメージ印字の一層の高速化の工夫が可能
となる。
Further, by setting the buffer capacity in the bit image mode to 1 byte, the work of updating the output pointer is omitted, and higher-speed data reception becomes possible. Furthermore, the reception buffer used in the character mode can be used for other purposes as it is. For example, by using the reception buffer for a print buffer, it is possible to devise further higher speed bit image printing.

【0020】なお、上記に近い効果をバッファの容量を
256バイト単位にすることで得ることができる。この
場合、リング状バッファの端部のチェックを上位バイト
のみで行えるため、バッファの大きさを任意の大きさに
した場合より継ぎ目の判定が簡略化できる。
An effect similar to the above can be obtained by setting the capacity of the buffer to 256 bytes. In this case, since the end of the ring-shaped buffer can be checked only by the upper byte, the determination of the seam can be simplified as compared with the case where the size of the buffer is arbitrarily set.

【0021】[0021]

【発明の効果】以上説明したように、本発明によれば無
駄のない最小の容量で高スループットが実現でき、例え
ばキャラクタモードでは受信バッファ容量を大きくとり
ホストの拘束時間を短くする反面、ビットイメージモー
ドでは受信バッファの容量を最小に抑えることでスルー
プットを上げるといった、互いに背反しあうバッファ構
成をすることで、大きなバッファを予め持たない限り実
現できなかった性能を、より少ない価格で実現すること
ができる。
As described above, according to the present invention, high throughput can be realized with the minimum capacity without waste. For example, in the character mode, the reception buffer capacity is increased and the host restraining time is shortened, but the bit image is reduced. In the mode, by mutually contradictory buffer configurations such as increasing the throughput by minimizing the capacity of the reception buffer, it is possible to realize performance that could not be realized unless you have a large buffer in advance, at a lower price. it can.

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

【図1】本発明の概要を示すブロック図である。FIG. 1 is a block diagram showing an outline of the present invention.

【図2】従来のドットマトリクスプリンタの概要を示す
ブロック図である。
FIG. 2 is a block diagram illustrating an outline of a conventional dot matrix printer.

【図3】実施例としての入力バッファの状態を示す図で
ある。
FIG. 3 is a diagram illustrating a state of an input buffer according to an embodiment.

【図4】実施例としてのデータ出力シーケンスを示す図
である。
FIG. 4 is a diagram showing a data output sequence as an example.

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

11 入力インターフェイス 12 入力バッファ 13 データ解析部 14 文字展開部 15 ビットイメージ展開部 16 出力バッファ 17 出力インターフェイス 18 印刷機構 19 プログラムROM 20 フォントROM 21 ワークRAM 22 入力インターフェイス 23 入力チャネル 24 入力バッファ#1 25 入力バッファ#2 26 データ転送部 27 出力チャネル 28 データ解析部 29 モード判別部 DESCRIPTION OF SYMBOLS 11 Input interface 12 Input buffer 13 Data analysis part 14 Character development part 15 Bit image development part 16 Output buffer 17 Output interface 18 Printing mechanism 19 Program ROM 20 Font ROM 21 Work RAM 22 Input interface 23 Input channel 24 Input buffer # 1 25 Input Buffer # 2 26 Data transfer unit 27 Output channel 28 Data analysis unit 29 Mode discrimination unit

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の印字モードの各々に対応して任意
の容量で確保可能な入力バッファを用意し、前記印字モ
ードの切り替えに対応して前記利用する入力バッファも
切り替えるようにしたプリンタにおいて、 前記入力バッファの切り替えの際は、まず受信インター
フェースのデータ受信を停止させ、入力バッファの受信
データの流れを制御するデータ転送手段により、その時
点で既に入力バッファに格納されている残受信データを
切替先印字モードの入力バッファへ転送する一方、新た
に受信するデータは前記受信インターフェースから直接
該切替先印字モードの入力バッファへ格納していくと共
に、該切替先印字モードの入力バッファにおいては、前
記残受信データから先にデータ解釈手段へと出力するプ
リンタ。
1. A printer in which an input buffer that can be secured with an arbitrary capacity is prepared corresponding to each of a plurality of print modes, and the input buffer to be used is also switched according to the switching of the print mode. When the input buffer is switched, first, the data reception of the reception interface is stopped, and the remaining reception data already stored in the input buffer at that time is switched by the data transfer unit that controls the flow of the reception data in the input buffer. While the data is transferred to the input buffer of the first printing mode, newly received data is stored directly from the receiving interface into the input buffer of the first printing mode, and the remaining data is stored in the input buffer of the first printing mode. A printer that outputs received data to data interpretation means first.
【請求項2】 前記入力バッファの切り替えの際、前記
残受信データのデータ量が、前記切替先印字モードの入
力バッファの容量を上まわっている場合には、前記デー
タ量が該入力バッファの容量以下になるまで前記データ
解釈手段へ直接転送する請求項1記載のプリンタ。
2. When switching the input buffer, if the data amount of the remaining reception data exceeds the capacity of the input buffer in the switching destination print mode, the data amount is changed to the capacity of the input buffer. 2. The printer according to claim 1, wherein the data is directly transferred to said data interpreting means until the following is reached.
【請求項3】 前記入力バッファの切り替え後、切替先
印字モードの入力バッファ以外の入力バッファは、確保
を開放する請求項1乃至2いずれか1つに記載のプリン
タ。
3. The printer according to claim 1, wherein after the input buffer is switched, the input buffers other than the input buffer in the switching destination print mode are released from being reserved.
【請求項4】 前記印字モードの切り替えは、受信する
データに応じて行う請求項1乃至3いずれか1つに記載
のプリンタ。
4. The printer according to claim 1, wherein the switching of the print mode is performed according to data to be received.
【請求項5】 前記複数の印字モードとは、文字コード
のイメージ展開処理を含むキャラクタモードと図形等の
ためのイメージモードである請求項4記載のプリンタ。
5. The printer according to claim 4, wherein the plurality of print modes are a character mode including an image developing process of a character code and an image mode for a graphic or the like.
【請求項6】 少なくても1つの印字モードにおける入
力バッファの容量を常に固定とした請求項1乃至5いず
れか1つに記載のプリンタ。
6. The printer according to claim 1, wherein the capacity of the input buffer in at least one print mode is always fixed.
【請求項7】 複数の印字モードの各々に対応して任意
の容量で確保可能な入力バッファを用意し、前記印字モ
ードの切り替えに対応して前記利用する入力バッファも
切り替えるようにしたプリンタの制御方法であって、 前記入力バッファの切り替えの際は、まず受信インター
フェースのデータ受信を停止させ、その時点で既に入力
バッファに格納されている残受信データを切替先印字モ
ードの入力バッファへ転送する一方、新たに受信するデ
ータは受信インターフェースから前記切替先印字モード
の入力バッファへ直接格納していくと共に、前記切替先
印字モードの入力バッファにおいては、前記残受信デー
タから先にデータ解釈手段へと出力する様にしたプリン
タのデータ制御方法。
7. Control of a printer in which an input buffer that can be secured with an arbitrary capacity is prepared corresponding to each of a plurality of print modes, and the input buffer to be used is also switched in response to switching of the print mode. A method of switching the input buffer, firstly stopping data reception of a receiving interface, and transferring remaining reception data already stored in the input buffer at that time to an input buffer of a switching destination print mode. The newly received data is stored directly from the reception interface to the input buffer of the switching destination print mode, and is output to the data interpretation means from the remaining received data first in the input buffer of the switching destination printing mode. Data control method for printer.
【請求項8】 前記入力バッファの切り替えの際、前記
残受信データのデータ量が、前記切替先印字モードの入
力バッファの容量を上まわっている場合には、前記デー
タ量が該入力バッファの容量以下になるまで該残受信デ
ータを前記データ解釈手段へ直接転送する様にした請求
項7記載のデータ制御方法。
8. When switching the input buffer, if the data amount of the remaining received data exceeds the capacity of the input buffer in the switching destination print mode, the data amount is changed to the capacity of the input buffer. 8. The data control method according to claim 7, wherein said remaining received data is directly transferred to said data interpreting means until the following is reached.
【請求項9】 前記印字モードの切り替えは、受信する
データに応じて行う請求項7または8記載のデータ制御
方法。
9. The data control method according to claim 7, wherein the print mode is switched according to data to be received.
JP4152391A 1992-06-11 1992-06-11 Printer Expired - Fee Related JP3024363B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4152391A JP3024363B2 (en) 1992-06-11 1992-06-11 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4152391A JP3024363B2 (en) 1992-06-11 1992-06-11 Printer

Publications (2)

Publication Number Publication Date
JPH05341927A JPH05341927A (en) 1993-12-24
JP3024363B2 true JP3024363B2 (en) 2000-03-21

Family

ID=15539494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4152391A Expired - Fee Related JP3024363B2 (en) 1992-06-11 1992-06-11 Printer

Country Status (1)

Country Link
JP (1) JP3024363B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10202986A (en) * 1997-01-28 1998-08-04 Sharp Corp Terminal printer device

Also Published As

Publication number Publication date
JPH05341927A (en) 1993-12-24

Similar Documents

Publication Publication Date Title
JPH01277928A (en) Printer
JP3024363B2 (en) Printer
JP3092327B2 (en) Printer
JP3024362B2 (en) Printer
US20050050360A1 (en) Controller, image processing apparatus, and method of controlling execution of program
JP3129679B2 (en) Printer
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
US5841429A (en) Method and apparatus for managing a character pattern
JPH01269565A (en) Printer
JP3027849B2 (en) Printing device
JP3138392B2 (en) Printing device and method
JPH0467224A (en) Information processor
JP3008716B2 (en) Printing device
JP2000298566A (en) Printer, information processor, method for controlling these devices, and information recording medium
JPH09240081A (en) Printer
JPH09272232A (en) Device for print control, method therefor and storage medium storing control program
JP2002178570A (en) Image forming apparatus and method of controlling the same
JPH0664252A (en) Printing equipment having emulation mode
JPH01145152A (en) Printer
JPH1049316A (en) Image forming device and its host device, and print system including the same
JPH06191100A (en) Printer
JPH05324220A (en) Printing device
JPH0527931A (en) Printing data transfer control system
JPH1063449A (en) Interface buffering control method
JPH0796642A (en) Controller for printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees