JPH04140182A - Printer - Google Patents
PrinterInfo
- Publication number
- JPH04140182A JPH04140182A JP26201390A JP26201390A JPH04140182A JP H04140182 A JPH04140182 A JP H04140182A JP 26201390 A JP26201390 A JP 26201390A JP 26201390 A JP26201390 A JP 26201390A JP H04140182 A JPH04140182 A JP H04140182A
- Authority
- JP
- Japan
- Prior art keywords
- data
- fifo
- signal
- turned
- host computer
- 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
Links
- 238000012545 processing Methods 0.000 abstract description 15
- 230000005540 biological transmission Effects 0.000 abstract description 11
- 238000007639 printing Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 abstract description 5
- 238000011161 development Methods 0.000 abstract description 3
- 238000000034 method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 3
- 238000007599 discharging Methods 0.000 description 3
- 230000008676 import Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
(イ)産業上の利用分野
本発明はプリンタ装置にかかり、上位装置であるホスト
コンピュータから送られて来る印刷データを1ページ毎
にページメモリ上にビットマツプ展開した後、そのイメ
ージデータをエンジン側へビデオ信号として送出し、そ
の信号に応じて用紙上にラスクスキャンすることによっ
て印刷する、いわゆるページプリンタに関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION (A) Industrial Application Field The present invention applies to a printer device, which develops print data sent from a host computer, which is a host device, into a bit map page by page on a page memory. The present invention relates to a so-called page printer that sends the image data to an engine as a video signal and prints on paper by raster scanning in accordance with the signal.
(ロ)従来の技術
第2図に示したような従来のプリンタ装置に於いては、
上位装置であるホストコンピュータから送られて来る印
刷データは、まず8255などの専用ICによって構成
されるインタフェース(11)に入力され、データが着
信する度にマイクロプロセッサなどからなるCPU(1
2)に割り込み(20)を掛けて、そのICより読み取
ったデータをシステムランダムアクセスメモリ(以下、
RAMという、 ) (13)内のコードバッファに格
納するという方式で取り込んでいた。(b) Conventional technology In a conventional printer device as shown in Fig. 2,
Print data sent from a host computer, which is a higher-level device, is first input to an interface (11) consisting of a dedicated IC such as an 8255, and each time the data arrives, it is input to a CPU (11) consisting of a microprocessor, etc.
2) is multiplied by an interrupt (20), and the data read from the IC is stored in the system random access memory (hereinafter referred to as
The code was stored in a code buffer called RAM ( ) (13).
尚、(17)はビデオインターフェース、(18)はプ
リンタエンジンである。Note that (17) is a video interface, and (18) is a printer engine.
しかし、この方式ではデータが来る度に割り込みが掛か
るため、そのオーバーヘッドが大きくなり、まjscP
Uがビットマツプデータの吐き出し作業やエンジン側の
制御などの優先順位の高い処理を行なっている時はホス
ト側からの送出が待たされることになり、印刷データの
通信方式としては効率の悪いものとなっていた。However, this method requires an interrupt every time data arrives, resulting in large overhead and
When U is performing high-priority processing such as discharging bitmap data or controlling the engine side, the transmission from the host side has to wait, making it an inefficient communication method for print data. It had become.
この点を改善したものとして、印刷データが制御コード
かイメージデータかを判断して、イメージデータの時は
ある所定数のデータを連続してハードウェアで取り込む
方式も提案されている(特開平2−29375に詳しい
)。As an improvement on this point, a method has been proposed in which it is determined whether the print data is a control code or image data, and if the print data is image data, a predetermined number of data are continuously captured by hardware (Japanese Patent Application Laid-Open No. -29375 for details).
(ハ)発明が解決しようとする課題
ところが一般的には、印刷データとしてアスキー(AS
C) IIコードが送信されて来るケースが最も多く、
その場合制御コードの後に来るASCnコードの数は指
定されないことがほとんどである。そのため、この方式
では制御コードの後に来るデータ数が指定されるケース
、例えば階調データで送られて来るようなケースに限ら
れるため、あまり汎用性のあるものとは言えない。(c) The problem to be solved by the invention is that print data is generally written in ASCII (AS) format.
C) In most cases, the II code is sent.
In most cases, the number of ASCn codes that follow the control code is not specified. Therefore, this method is limited to cases where the number of data that comes after the control code is specified, such as when gradation data is sent, so it cannot be said to be very versatile.
本発明はこのような従来例に見られる問題点に鑑みてな
されたもので、効率の良い印刷装置を提供することをそ
の課題とする。The present invention has been made in view of the problems seen in the conventional examples, and an object of the present invention is to provide an efficient printing device.
(ニ)HIMを解決するための手段
本発明は、上位装置から送られて来る画像データを入力
するFIFOメモリと、そのFIFOメモリ内にデータ
が格納されている状態をCPUに伝達する手段と、その
状態によって上位装置へのコントロール信号を制御する
手段とからなる上位装置とのインタフェースを有するこ
とを特徴とする。 (ホ)作用
本発明は、ホストからの印刷データを逐次FIFDメモ
リへと入力し、CPUがエンプティフラグによってFI
FO内のデータの存在を確認しながら、そのデータをF
IFOから読み出してコードバッファへと格納して行く
、そして、FIFOメモリがフルになった時には、ビジ
ィ信号をONさせてホストからのデータ送信を一旦優止
させると同時に割り込みを掛けてCPUにその旨を知ら
せる。さらにCPUがFIFOからデータを読み取るこ
とによって空白ができれば、今度はビジィ信号をOFF
して再びホストがデータ送信可能な状態にする。(d) Means for solving HIM The present invention provides a FIFO memory for inputting image data sent from a host device, a means for transmitting the state of data stored in the FIFO memory to a CPU, The device is characterized in that it has an interface with a higher-level device comprising means for controlling control signals to the higher-level device depending on the state thereof. (e) Function The present invention sequentially inputs print data from the host to the FIFD memory, and the CPU uses the empty flag to input the print data to the FIFD memory.
While checking the existence of data in FO,
It reads from the IFO and stores it in the code buffer, and when the FIFO memory becomes full, it turns on the busy signal to temporarily suspend data transmission from the host, and at the same time generates an interrupt to notify the CPU of this fact. Let me know. Furthermore, if a blank space is created by the CPU reading data from the FIFO, it will turn off the busy signal.
The host can then send data again.
而して、印刷データの取り込みよりも優先度の高い、例
えばビットマツプデータの吐き出し作業やエンジン制御
などの処理が発生した時には、必ずホストからのデータ
送信を停止させて、その処理が完了するまで待たせると
いった従来の欠点が無くなり、また優先すべき処理がな
い時はCPUはFIFO内に溜ったデータを連続してコ
ードバッファに格納することが出来るため、印刷データ
受信の際の割り込み処理のオーバーヘッドも軽減でき、
効率の良いデータ通信を行なうことが可能になった。Therefore, when processing that has a higher priority than importing print data, such as discharging bitmap data or controlling the engine, always stops data transmission from the host and waits until the processing is completed. The conventional disadvantages of waiting are eliminated, and when there is no priority processing, the CPU can continuously store data accumulated in the FIFO in the code buffer, reducing the overhead of interrupt processing when receiving print data. can also be reduced,
It has become possible to perform efficient data communication.
(へ)実施例
第1図は本発明の具体的実施例のうち、ホストインタフ
ェースの部分を中心とした構成図を示したものである。(f) Embodiment FIG. 1 shows a block diagram of a specific embodiment of the present invention, centering on the host interface portion.
そのインタフェースはホストコンピュータから印刷デー
タを入力する、あるいは各コントロール信号を入出力す
るバッファ部(22)、印刷データを512バイト入力
できるFIFOメモリ(23)、各コントロール信号を
制御するコントロール部(24)によって構成されてい
る。The interface includes a buffer unit (22) that inputs print data from the host computer or inputs and outputs each control signal, a FIFO memory (23) that can input 512 bytes of print data, and a control unit (24) that controls each control signal. It is made up of.
以下、第1図に沿ってこの実施例について説明する。This embodiment will be described below with reference to FIG.
まず、電源投入直後しばらくはエンジン側はまだ印刷準
備期間中のため、CPUはホストへの出力制御信号(2
8)を印刷データ送信禁止の状態(ビジィ信号はON、
セレクト信号は0FF)にセットしている。これらの信
号のうち、コントロール部に於いてはセレクト信号はC
PUからセットされるデータ(32)をそのまま、ビジ
ィ信号はFIFO内が満杯かどうかのフル信号(31)
とCPUがセットしたデータとのORをそれぞれ出力す
るようになっている。そして、エンジン印刷可能な状態
になるとCPUはビジィ用データをOFF L、さらに
FIFO内は空(エンプティ)となっていてフル信号は
OFFしているため、最終的なビジィ信号はOFFにな
る。またセレクト信号はCPUがコントロール部を経由
して直接ONさせ、これによってホスト側がデータ送信
可能な状態となる。First, the engine side is still preparing for printing for a while immediately after the power is turned on, so the CPU sends the output control signal (2) to the host.
8) in a state where print data transmission is prohibited (busy signal is ON,
The select signal is set to 0FF). Among these signals, the select signal in the control section is C.
The data set from PU (32) is used as is, and the busy signal is a full signal (31) indicating whether the FIFO is full.
and the data set by the CPU are output. Then, when the engine becomes ready for printing, the CPU turns off the busy data, and since the FIFO is empty and the full signal is turned off, the final busy signal is turned off. The select signal is directly turned on by the CPU via the control unit, thereby enabling the host side to transmit data.
このような状態で印刷データが送られて来ると、ホスト
からのストローブ信号はそのままFIFOへの書き込み
パルス(29)となってFIFOヘデータが入力され、
その結果エンプティフラグ(30)はOFFする。When print data is sent in this state, the strobe signal from the host becomes the write pulse (29) to the FIFO, and the data is input to the FIFO.
As a result, the empty flag (30) is turned OFF.
CPUは印刷データ入力よりも優先すべき処理がない時
(主に印刷データ待ち)は、このエンブティフラグを見
てデータが存在することを確認し、中に収まっているデ
ータを読み取ってシステムRAM内のフードバッファ領
域へ格納する。そして、ページメモリ上へビットマツプ
展開できるデータが生じると、例えばそのデータがAS
CIIコードの場合それに対応したフォントデータをフ
ォントメモリより取り出してページメモリ上に描画する
。この描画処理に要する時間が短ければ、受信したデー
タを次々とFIFOを経由して取り込みながら、描画処
理して行くことが出来る。逆に、描画処理に時間がかか
る時はデータはFIFOへ溜って行くが、満杯になって
フル信号がONLない限りホストからのデータ送出は許
される。もし、その処理がある程度続くことによってF
IFOがフルになるとフル信号がONL、コントロール
部(24)はビジィ信号をONさせてホストからのデー
タ送信を一時的にストップさせる。それと同時にCPU
にも割り込み(34)が掛かり、CPUはこの割り込み
を受けて、FIFOに溜った512バイトのデータを一
度に連続してコードバッファへ取り込む。従って、FI
FOより1個でもデータが読み出されればフル信号はO
FFされるため、今度はコントロール部はビジィ信号を
OFF して再びホストのデータ送信を可能にする。When the CPU has no processing that should take priority over print data input (mainly when waiting for print data), the CPU checks this embedded flag to confirm that the data exists, reads the data contained therein, and stores it in the system RAM. Store it in the food buffer area inside. Then, when data that can be expanded into a bitmap onto the page memory is generated, for example, the data is
In the case of a CII code, the corresponding font data is taken out from the font memory and drawn on the page memory. If the time required for this drawing process is short, the drawing process can be performed while receiving received data one after another via the FIFO. Conversely, when drawing processing takes time, data accumulates in the FIFO, but unless it becomes full and the full signal is ONL, data transmission from the host is allowed. If the process continues for a certain amount of time, F
When the IFO becomes full, the full signal is ONL, and the control unit (24) turns on the busy signal to temporarily stop data transmission from the host. At the same time, the CPU
An interrupt (34) is also generated, and upon receiving this interrupt, the CPU successively takes in 512 bytes of data accumulated in the FIFO into the code buffer at once. Therefore, FI
If even one piece of data is read from FO, the full signal is O.
Since the busy signal is turned off, the control unit turns off the busy signal to enable the host to transmit data again.
上述したように、印刷データを受信して行くことによっ
て、1ペ一ジ分のビットマツプデータの作成が完了すれ
ば、印字動作へと移行すべくエンジン側をスタートさせ
、ビットマツプデータの吐き出しを開始する。この時F
IFOがフルでなければ依然ホストからのデータ受信は
可能な状態となっている。つまり、エンジンスタート後
はビットマツプデータの吐き出しやエンジン制御などの
優先度の高い割り込み処理が度々発生するが、コントロ
ール部がFIFOのフル信号を監視しながら自動的にデ
ータをFIFOへと取り込むように制御するわけである
。As mentioned above, when the creation of bitmap data for one page is completed by receiving print data, the engine side is started to move on to printing operation, and the bitmap data is output. Start. At this time F
If the IFO is not full, it is still possible to receive data from the host. In other words, after the engine starts, high-priority interrupt processing such as discharging bitmap data and engine control often occurs, but the control unit automatically imports data into the FIFO while monitoring the FIFO full signal. It's about controlling.
このようにコントロール部は、FIFOの状態によって
ビジィ信号の制御を行なっているが、既に述べたように
CPUからのデータ入力によっても制御できるようにな
っており、例えば用紙切れやジャムなどのエンジン側の
各種状況に応じて、CPLIがコントロール部にデータ
をセットすることによってビジィ信号、そしてさらには
ペーパーエンドやセレクト信号などの各コントロール信
号の制御も行なうことが可能になっている。In this way, the control section controls the busy signal based on the FIFO status, but as mentioned above, it can also be controlled by data input from the CPU. By setting data in the control section by the CPLI according to various situations, it is possible to control the busy signal and further various control signals such as paper end and select signals.
本実施例では、データの取り込み、ページメモリ上への
ビットマツプ展開、ビットマツプデータの吐き出し作業
、エンジン側の制御等の全ての処理を1つのCPUが受
は持っているが、描画専用のICを搭載してそれにビッ
トマツプ展開やビットマツプデータの吐き出し処理など
を任せれば、さらに効率の良いシステムが構築できるこ
とは熱論である。In this embodiment, one CPU handles all the processing such as data import, bitmap development on page memory, bitmap data output, and engine side control, but a drawing-only IC is used. It is a hot theory that if you install it and let it perform bitmap development and output processing of bitmap data, you can build an even more efficient system.
また、ここではFIFOメモリの容量を512バイトと
していたが、この容量はホスト側の送信スピードやプリ
ンタ側の処理能力に応じて増減させれば良い。例えばホ
ストの送信スピードに比してプリンタ側の処理能力に十
分余裕がある時は容量を減らせば良い。さらにこの場合
エンプティフラグがOFF した時に割り込み(33)
がかかるようにして置けば、データが着信する度に割り
込みのかかる従来と同じ方式を取ることも可能である。Further, although the capacity of the FIFO memory is here set to 512 bytes, this capacity may be increased or decreased depending on the transmission speed of the host side and the processing capacity of the printer side. For example, if there is sufficient processing capacity on the printer side compared to the transmission speed of the host, the capacity can be reduced. Furthermore, in this case, an interrupt (33) occurs when the empty flag turns OFF.
If you set it so that it takes, it is possible to use the same method as the conventional method where an interrupt is generated every time data arrives.
そして、エンジン制御などの優先すべき割り込み処理が
頻繁に生じるようなケースには、容量を大きく設定して
置けばホスト側を待たせる率も減ることになる。In cases where priority interrupt processing such as engine control occurs frequently, setting a large capacity will reduce the rate at which the host side is forced to wait.
さらに、印刷データの種類に応じて容量の設定を行なっ
ても良い。先に述べたようなASCI[コードの場合は
描画時間が比較的短くて済むが、印刷データがビットイ
メージの時は描画処理の時間が長い。従ってこの場合F
IFOの容量を大きめに設定して置けば効率の良いデー
タ通信を行なうことが可能となる。Furthermore, the capacity may be set depending on the type of print data. In the case of the above-mentioned ASCI code, the drawing time is relatively short, but when the print data is a bit image, the drawing process takes a long time. Therefore, in this case F
If the IFO capacity is set to be large, efficient data communication can be performed.
(ト)発明の効果
以上述べたように本発明によれば、ホストインタフェー
スにFIFOメモリを採用して、印刷データ受信時のオ
ーバーヘッドを減らし、且つプリンタ側の処理のための
ホスト側のデータ送信を待たせるといったような無駄を
無くすことによって、効率の良い通信方式を構築するこ
とが可能となった。(G) Effects of the Invention As described above, according to the present invention, a FIFO memory is adopted for the host interface to reduce the overhead when receiving print data and to reduce data transmission on the host side for processing on the printer side. By eliminating waste such as waiting, it has become possible to create an efficient communication system.
第115Uは本発明の実施例のインタフェース部の構成
図、第2図は従来例の構成図である。
25、システムバス、2o;割り込み信号、22・バッ
ファ部、23;FIFOメモリ、24:コントロール部
、26;受信データ、27;入力制御信号、28;出力
制御信号、29;ストローブ信号(ライトパルス)、3
0:エンプティフラグ信号、
31;フルフラグ信号、
32・コントロール部への入力データ、33;エンプテ
ィフラグによる割り込み信号、34;フルフラグによる
割り込み信号。
第2
図115U is a block diagram of an interface unit according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional example. 25, system bus, 2o; interrupt signal, 22-buffer section, 23; FIFO memory, 24: control section, 26; received data, 27; input control signal, 28; output control signal, 29; strobe signal (write pulse) ,3
0: Empty flag signal, 31: Full flag signal, 32. Input data to the control unit, 33: Interrupt signal due to empty flag, 34: Interrupt signal due to full flag. Figure 2
Claims (1)
FIFOメモリと、そのFIFOメモリ内にデータが格
納されている状態をCPUに伝達する手段と、その状態
によって上位装置へのコントロール信号を制御する手段
とからなる上位装置とのインタフェースを有することを
特徴とするプリンタ装置。(1) A FIFO memory that inputs image data sent from a host device, means for transmitting the state of data stored in the FIFO memory to the CPU, and control signals to the host device based on this state. What is claimed is: 1. A printer device characterized by having an interface with a host device comprising means for
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26201390A JPH04140182A (en) | 1990-09-30 | 1990-09-30 | Printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26201390A JPH04140182A (en) | 1990-09-30 | 1990-09-30 | Printer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04140182A true JPH04140182A (en) | 1992-05-14 |
Family
ID=17369811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26201390A Pending JPH04140182A (en) | 1990-09-30 | 1990-09-30 | Printer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04140182A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012161097A (en) * | 2000-01-21 | 2012-08-23 | Harusaki Technologies Llc | Host interface for imaging arrays |
-
1990
- 1990-09-30 JP JP26201390A patent/JPH04140182A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012161097A (en) * | 2000-01-21 | 2012-08-23 | Harusaki Technologies Llc | Host interface for imaging arrays |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5600762A (en) | Method of processing a job, in a printing system, with a composite job ticket | |
US4943936A (en) | Print control apparatus controlling utilization state of plural format blocks | |
US4941108A (en) | Interface for sending printer request signals to a printer | |
JPH01277928A (en) | Printer | |
US5313565A (en) | Output processing system permitting efficient loading of media resource information used in an output device | |
JPH04140182A (en) | Printer | |
JP2792472B2 (en) | Electrophotographic printer | |
JP2699440B2 (en) | Printer device | |
JPH10309835A (en) | Page printer | |
JP4400097B2 (en) | Printing apparatus, printing control method, program, and recording medium | |
JP2707963B2 (en) | Printing system | |
JPH04262417A (en) | Printer control system | |
JP3027849B2 (en) | Printing device | |
JP3024362B2 (en) | Printer | |
JPH04163169A (en) | Printer | |
JP2872144B2 (en) | Printing equipment | |
JPH05238113A (en) | Printer controller | |
JPH06227059A (en) | Printer | |
JPH08324039A (en) | Printing device, printing control device, and printing method and printing control method | |
JPH05262003A (en) | Format specification discriminating printer | |
JPH02193216A (en) | Printer interface unit | |
JPH09169140A (en) | Printer | |
JPH0477272A (en) | Printer | |
JPS62164548A (en) | Access control system for dot memory | |
JPH06155808A (en) | Printing control device and print control method |