JP2734140B2 - Serial printer - Google Patents

Serial printer

Info

Publication number
JP2734140B2
JP2734140B2 JP1302638A JP30263889A JP2734140B2 JP 2734140 B2 JP2734140 B2 JP 2734140B2 JP 1302638 A JP1302638 A JP 1302638A JP 30263889 A JP30263889 A JP 30263889A JP 2734140 B2 JP2734140 B2 JP 2734140B2
Authority
JP
Japan
Prior art keywords
column
raster
print
image
printer
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 - Lifetime
Application number
JP1302638A
Other languages
Japanese (ja)
Other versions
JPH03161366A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP1302638A priority Critical patent/JP2734140B2/en
Publication of JPH03161366A publication Critical patent/JPH03161366A/en
Application granted granted Critical
Publication of JP2734140B2 publication Critical patent/JP2734140B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、シリアルプリンタを駆動するための印字デ
ータの処理に関するものである。
Description: TECHNICAL FIELD The present invention relates to processing of print data for driving a serial printer.

[従来技術] 従来より、レーザプリンタに代表される電子写真プリ
ンタや、サーマルラインプリンタなどのいわゆるライン
プリンタにおいては、ラスタ方向へ展開された1ラスタ
(ライン)単位の印字イメージを基に印字を行い、用紙
を縦方向、すなわち、ラスタ方向とは垂直な方向へ送る
ことで一用紙分の印字を行っている。従って、印字機構
を駆動するために、印字イメージを一時的に記憶してお
くラスタイメージバッファへは、ラスタ方向へ展開され
た印字イメージを分割して記憶している。
2. Description of the Related Art Conventionally, in a so-called line printer such as an electrophotographic printer represented by a laser printer or a thermal line printer, printing is performed based on a print image of one raster (line) developed in a raster direction. The printing of one sheet is performed by feeding the sheet in the vertical direction, that is, the direction perpendicular to the raster direction. Therefore, in order to drive the printing mechanism, a raster image buffer for temporarily storing the print image stores the print image developed in the raster direction separately.

これに対して、ワイヤドット方式等に代表されるシリ
アルプリンタにおいては、印字ヘッドを用紙に対して横
方向、すなわち、印字行方向へ移動させながら縦方向、
すなわち、カラム方向へ複数の画素を印字して1行分の
印字を行った後、用紙の縦方向への送りをするという動
作を繰返すことにより、一用紙分の印字を行っている。
従って、縦方向、すなわち、カラム方向に展開されたイ
メージを基本単位としてカラムイメージバッファに記憶
している。
On the other hand, in a serial printer typified by a wire dot system or the like, the print head is moved in the horizontal direction with respect to the paper, that is,
That is, the printing operation for one sheet is performed by repeating the operation of printing a plurality of pixels in the column direction, printing one line, and then feeding the sheet in the vertical direction.
Therefore, an image developed in the vertical direction, that is, in the column direction, is stored in the column image buffer as a basic unit.

このため、同じ印字結果を得るとしても、ラインプリ
ンタとシリアルプリンタとでは初めから全く異なった方
法で印字イメージをバッファに展開してから印字機構を
駆動して印字を行っている。
For this reason, even if the same print result is obtained, the line printer and the serial printer use a completely different method from the beginning to develop a print image in a buffer and then drive the printing mechanism to perform printing.

また、ラインプリンタは高解像度のグラフィックス処
理にも対応できるページプリンタやカラープリンタとし
て、一方、シリアルプリンタは低解像度のキャラクタプ
リンタ用として、というように、それぞれの利用分野が
異なっていた。このため、ラインプリンタとシリアルプ
リンタとは、それぞれ全く別のモデルとして最初から独
立に開発されていた。
Further, the line printers are used as page printers and color printers capable of handling high-resolution graphics processing, while the serial printers are used for low-resolution character printers. For this reason, the line printer and the serial printer have been independently developed from the beginning as completely different models.

[発明が解決しようとする課題] しかしながら、今日では、シリアルプリンタの技術が
著しい向上を遂げ、高解像度化やカラー化が容易になっ
て来た。従って、シリアルプリンタであってもレーザプ
リンタや、カラーラインプリンタなどと同様の印字品質
の達成が可能となった。
[Problems to be Solved by the Invention] However, today, the technology of serial printers has remarkably improved, and high resolution and color printing have been easily achieved. Therefore, even with a serial printer, it is possible to achieve the same print quality as a laser printer, a color line printer, or the like.

ところが、ラインプリンタとシリアルプリンタとで
は、前述したように、印字機構を駆動するための最終的
なメモリ展開が異なる。このため、結局、最も主要な部
分であり最も複雑なプログラムが要求されるページグラ
フィックス処理部を、ラインプリンタとシリアルプリン
タとでは全く独自に一から作成しなければならなかっ
た。つまり、せっかく積上げられて来た今までのページ
プリンタのソフトウェアがどんなに高度なものであった
としても、グラフィックス処理に対応可能な新たなシリ
アルプリンタの開発においては一切活用できなかった。
従って、バグのないソフトウェアによる安定した動作の
シリアルプリンタを完成するのには多大な労力と時間が
不可欠だった。
However, the line printer and the serial printer differ in the final memory development for driving the printing mechanism as described above. For this reason, after all, the page graphics processing section, which is the most important part and requires the most complicated program, has to be created completely from scratch by the line printer and the serial printer. In other words, no matter how sophisticated the page printer software that has been built up, it could not be used at all in the development of a new serial printer that can handle graphics processing.
Therefore, a great deal of effort and time was required to complete a stable serial printer using bug-free software.

本発明は、上述した問題点を解決するためになされた
ものであり、ラインプリンタのグラフィックス処理部に
よりメモリに展開されたラスタイメージをそのまま利用
し、カラムイメージに変換してシリアルにプリントする
ことにより、ラインプリンタのグラフィックス処理部を
一切変更することなく利用して、品質の安定したシリア
ルプリンタを最短開発期間及び最小開発コストにて提供
することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem, and it is intended to directly use a raster image developed in a memory by a graphics processing unit of a line printer, convert the raster image into a column image, and print serially. Accordingly, it is an object of the present invention to provide a serial printer with stable quality in a minimum development period and a minimum development cost by using the graphics processing unit of the line printer without any change.

[課題を解決するための手段] この目的を達成するために本発明のシリアルプリンタ
は、外部からデータを受信するためのインターフェース
と、そのインターフェースを介して受信したデータに従
って印字イメージをラスタ方向に展開するグラフィック
ス処理部と、そのグラフィックス処理部によってラスタ
方向に展開された印字イメージをビットマップ形式で記
憶するとともに、その書込みおよび読出しがラスタ方式
で行われるラスタイメージバッファと、プリントデータ
を、前記プリントヘッドにカラム方向に展開された形式
で供給できるように記憶するカラムイメージバッファ
と、前記ラスタイメージバッファに記憶された印字イメ
ージをカラムイメージに変換してカラムイメージバッフ
ァに記憶させるラスタ/カラム変換部と、そのラスタ/
カラム変換部によってカラムイメージバッファに記憶さ
れたカラムイメージを前記プリントヘッドに供給してシ
リアルプリント動作をさせるプリンタドライバ部とを備
えている。
Means for Solving the Problems In order to achieve this object, a serial printer according to the present invention has an interface for receiving data from the outside, and develops a print image in a raster direction according to data received via the interface. A graphics processing unit, a print image developed in the raster direction by the graphics processing unit is stored in a bitmap format, and a raster image buffer in which writing and reading are performed in a raster system. A column image buffer for storing the print image in a format developed in the column direction so as to be supplied to the print head, and a raster / column conversion unit for converting the print image stored in the raster image buffer into a column image and storing the column image in the column image buffer And its Raster /
A printer driver for supplying a column image stored in a column image buffer by a column conversion unit to the print head and performing a serial print operation.

[作用] 上記の構成を有する本発明のシリアルプリンタは、イ
ンターフェースを介して外部から受信したデータがグラ
フィックス処理部によってラスタ方向に展開され、ラス
タイメージバッファにラスタ一方式で書込まれる。そし
て、このラスタイメージバッファに記憶された印字イメ
ージは、ラスタ/カラム変換部により読出され、カラム
方向に展開された形式のカラムイメージに変換されてカ
ラムイメージバッファに記憶される。更に、このカラム
イメージバッファに記憶されたカラムイメージは、プリ
ンタドライバ部により読出され、カラム方向に展開され
た形式でプリントヘッドに供給され、プリント媒体に対
してシリアルプリントが行われる。
[Operation] In the serial printer of the present invention having the above-described configuration, data received from the outside via the interface is developed in the raster direction by the graphics processing unit and written into the raster image buffer in a raster-only manner. The print image stored in the raster image buffer is read out by the raster / column conversion unit, converted into a column image of a format developed in the column direction, and stored in the column image buffer. Further, the column image stored in the column image buffer is read by the printer driver unit, supplied to the print head in a format developed in the column direction, and serially printed on a print medium.

[実施例] 以下、本発明を具体化した一実施例を図面を参照して
説明する。
[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.

本実施例では、ラスタ方式の代表的なプリンタであ
る、既製のレーザプリンタの制御回路と制御ソフトウェ
アが、インクジェット方式によるシリアルプリンタに流
用されている。まず、この既製のレーザプリンタにおい
て本発明に関連する部分の構成を第2図を参照して説明
する。
In the present embodiment, the control circuit and control software of a ready-made laser printer, which is a typical printer of the raster system, are diverted to the serial printer of the ink jet system. First, the configuration of a portion related to the present invention in this ready-made laser printer will be described with reference to FIG.

コントロール部21は、CPU及びその動作のためのROMや
RAM、その他の制御回路から構成されている。ラスタイ
メージバッファ22には、ラスタ方向に展開された印字イ
メージがビットマップ形式で記憶される。キャラクタジ
ェネレータ23には、文字・記号等を印字する場合の印字
イメージが、ラスタ方向に展開されてあらかじめ記憶さ
れている。インターフェース24は、外部から各種の印字
指令を受信する。レーザプリンタエンジン25は用紙送り
機構、現像機構、光学系機構等からなり、用紙へ印字を
行う。また、前述のコントロール部21は、複数のソフト
ウェアモジュールにより、以下に述べるような様々な処
理を行う。システム全体のステータス管理や、インター
フェース24からのデータ受信及び他のソフトウェアモジ
ュールの実行を管理するプログラムを含み、システム全
体の統制を行うシステム管理21a、インターフェース24
から受信した各種指令を解釈してその処理を促すコマン
ドインタプリンタ21b、印字コマンドに従って逐次印字
イメージをラスタ方向に展開し、その印字イメージをラ
スタイメージバッファ22に蓄えるグラフィックス処理と
しての印字イメージ処理21c、レーザプリンタエンジン2
5を制御し、ラスタイメージバッファ22の印字データを
レーザプリンタエンジン25へ転送して印字を行わせるレ
ーザプリンタドライバ21d等の処理がコントロール部21
で行われる。次に本実施例のインクジェット方式による
シリアルプリンタの構成を第1図に従って説明する。
The control unit 21 includes a CPU and a ROM for its operation.
It is composed of RAM and other control circuits. The raster image buffer 22 stores a print image developed in the raster direction in a bitmap format. In the character generator 23, a print image for printing characters, symbols, and the like is expanded in the raster direction and stored in advance. The interface 24 receives various print commands from outside. The laser printer engine 25 includes a paper feed mechanism, a developing mechanism, an optical system mechanism, and the like, and performs printing on paper. Further, the control unit 21 performs various processes described below using a plurality of software modules. A system management 21a, which includes a program for managing status management of the entire system, receiving data from the interface 24 and executing other software modules, and controlling the entire system, and an interface 24
A command interprinter 21b for interpreting various commands received from the printer and prompting the processing thereof, a print image processing 21c as graphics processing for sequentially developing a print image in the raster direction according to a print command and storing the print image in a raster image buffer 22 , Laser printer engine 2
5 to transfer the print data of the raster image buffer 22 to the laser printer engine 25 for printing.
Done in Next, the configuration of a serial printer using an ink jet system according to this embodiment will be described with reference to FIG.

本実施例においては、基本的に前述のレーザプリンタ
における電子部品,メモリマッピング等のハードウェア
構成がそのまま移植されている。第1図のコントロール
部11,ラスタイメージバッファ12,キャラクタジェネレー
タ13、インターフェース14は、第2図におけるそれぞれ
の対応ブロックと同一のものである。
In this embodiment, basically, the hardware configuration of the above-described laser printer, such as electronic components and memory mapping, is directly ported. The control unit 11, raster image buffer 12, character generator 13, and interface 14 in FIG. 1 are the same as the corresponding blocks in FIG.

次に、第2図の構成とは異なるものを説明する。ま
ず、レーザプリンタエンジンがインクジェット方式のシ
リアルプリンタエンジン15に置き換わっている。また、
ラスタイメージバッファ12の内容の一部をカラムイメー
ジに変換して蓄えておくためのカラムイメージバッファ
16が追加されている。また、コントロール部11内のソフ
トウェアモジュールにおけるコマンドインタプリンタ11
b及び印字イメージ処理11cには、第2図に示すコマンド
インタプリタ21b及び印字イメージ処理21cが全く手を加
えられずにそのまま用いられている。また、プリンタド
ライバ21dはシリアルプリンタドライバ11dに置き換えら
れている。また、ラスタ/カラム変換11eが新たに追加
されている。システム管理11aの大部分は、第2図に示
すレーザプリンタのシステム管理21aがそのまま用いら
れ、一部のみがシリアルプリンタのシステネの構成に合
うように手直しされている。
Next, components different from the configuration in FIG. 2 will be described. First, the laser printer engine is replaced with an ink jet serial printer engine 15. Also,
Column image buffer for converting part of the contents of the raster image buffer 12 into column images and storing them
16 have been added. The command interpreter 11 in the software module in the control unit 11 is also provided.
The command interpreter 21b and the print image processing 21c shown in FIG. 2 are used as they are in the b and print image processing 11c without any modification. Further, the printer driver 21d is replaced by a serial printer driver 11d. Also, a raster / column conversion 11e is newly added. Most of the system management 11a uses the system management 21a of the laser printer shown in FIG. 2 as it is, and only a part of the system management 11a is modified so as to match the system configuration of the serial printer.

また、このインクジェット方式のシリアルプリンタ
は、印字ヘッドに8個のオリフィスを備えている。そし
て、印字ヘッドが印字用紙上を印字行方向へ1行分移動
する間に、カラムイメージバッファ16のカラムイメージ
に基づいて8個のオリフィスからインクが噴出されて1
行分の印字がシリアルに行われる構成となっている。
This ink jet serial printer has a print head having eight orifices. Then, while the print head moves one line in the printing line direction on the printing paper, ink is ejected from eight orifices based on the column image in the column image buffer 16 and the ink is jetted out.
The configuration is such that printing for the lines is performed serially.

次に、このような構成のシリアルプリンタにおける処
理フローを第3図を参照して詳しく説明する。
Next, a processing flow in the serial printer having such a configuration will be described in detail with reference to FIG.

第3図はプリンタの電源ONから印字動作までの主要部
分の処理を抜き出したフローチャートである。電源がON
されると、まずステップ100でシステムのイニシャライ
ズが行われる。これは、システム管理11aの一部であ
り、シリアルプリンタのシステムに合うようにレーザプ
リンタ用のソフトウェアが一部修正されている。次にス
テップ101へ行き、システムの管理をインターバルタイ
マ割込によって行うべく割込を許可する。この割込処理
部もシステムに合わせてレーザプリンタのものが一部修
正されている。次にステップ102へ行き、インターフェ
ースよりデータを割込処理によって受信するためにイン
ターフェース割込を許可する。この割込処理はレーザプ
リンタの処理と同一である。次に、その他必要な細かい
処理を行ってから印字処理ループに入る。
FIG. 3 is a flowchart in which the processing of the main part from the power ON of the printer to the printing operation is extracted. Power ON
Then, at step 100, the system is initialized. This is a part of the system management 11a, and the software for the laser printer is partially modified so as to be compatible with the serial printer system. Next, the process proceeds to step 101, where the interruption is permitted so that the system is managed by the interval timer interruption. This interrupt processing unit is partially modified for the laser printer in accordance with the system. Next, the process proceeds to step 102, where the interface interrupt is permitted to receive data from the interface by the interrupt processing. This interrupt processing is the same as the processing of the laser printer. Next, after performing other necessary fine processing, the process enters a print processing loop.

ここでは、まずステップ103で各割込処理によってコ
ントロール部11内のRAMのバッファ・レジスタ領域に蓄
えられている印字コマンド、印字データ及びシステム情
報がチェックされ、これらの情報に応じた処理が行われ
る。ここでチェックされる印字コマンド、印字データ
は、インターフェース割込により受信されたものであ
る。また、システムの情報はインターバルタイマ割込に
より入力されたものである。次にステップ104へ行き、
システムが印字処理可能な状態にあるか否かが判断され
る。ここで、印字処理が不可能な状態である場合は、ス
テップ105へ行き、現在必要とされている他の処理が行
われる。次に再びステップ104へ行き、システムが印字
処理可能な状態にあるか否かが判断される。ここで、印
字処理可能な状態にある場合は、ステップ106へ行く。
ここで、インターフェース割込により受信された印字デ
ータに基づいてラスタ方向へ展開された印字イメージ、
すなわちラスタイメージをラスタイメージバッファ12へ
逐次書き込んでいく。この様にステップ103からステッ
プ106に至る受信された印字データをラスタ方向へ展開
したラスタイメージとしてラスタイメージバッファ12へ
書き込んでいく処理は、ステップ103におけるシステム
情報に対する一部の処理を除き、レーザプリンタにおけ
る処理をそのまま流用している。
Here, first, in step 103, the print command, print data, and system information stored in the buffer / register area of the RAM in the control unit 11 are checked by each interrupt processing, and processing according to these information is performed. . The print command and print data checked here are those received by the interface interrupt. The system information is input by an interval timer interrupt. Then go to step 104,
It is determined whether the system is ready for printing. If the printing process is not possible, the process proceeds to step 105, where other processes currently required are performed. Next, the process goes to step 104 again, and it is determined whether or not the system is in a state capable of performing a printing process. If the print processing is possible, the process proceeds to step 106.
Here, a print image developed in the raster direction based on the print data received by the interface interrupt,
That is, the raster images are sequentially written to the raster image buffer 12. The process of writing the received print data from step 103 to step 106 as a raster image expanded in the raster direction to the raster image buffer 12 in this manner, except for a part of the processing for the system information in step 103, is performed by a laser printer. The process in the above is diverted as it is.

次にステップ107へ行き、ラスタイメージバッファ12
において、ラスタ方向へ展開された印字イメージがカラ
ムイメージへの変換に必要な量だけ蓄えられたか否かが
判断される。すなわち、インクジェット方式の印字ヘッ
ドが印字用紙上を印字行方向へ1行分だけ移動する間の
印字動作に必要なラスタ分だけのラスタイメージが、ラ
スタイメージバッファ12に蓄えられたか否かが判断され
る。本実施例におけるインクジェット方式の印字ヘッド
は、8個のオリフィスを備えており、8ラスタ分以上の
ラスタイメージが蓄えられた時にカラムイメージへの変
換が可能となる。ここで、十分な量のラスタイメージが
蓄積されている場合はステップ108へ行き、ラスタイメ
ージがカラムイメージへ変換される。次にステップ109
へ行き、1印字行分、すなわち印字ヘッドの印字行方向
への1行程分の移動にともなって行われる印字に必要な
量のカラムイメージがカラムイメージバッファに蓄えら
れたか否かが判断される。
Next, go to step 107, where the raster image buffer 12
In the above, it is determined whether or not the print image developed in the raster direction has been stored in an amount required for conversion to the column image. That is, it is determined whether or not the raster image for the raster required for the printing operation is stored in the raster image buffer 12 while the inkjet print head moves one line in the printing line direction on the printing paper. You. The print head of the ink jet system in this embodiment has eight orifices, and when raster images of eight rasters or more are stored, conversion to a column image becomes possible. If a sufficient amount of raster images has been stored, the process proceeds to step 108, where the raster images are converted into column images. Then step 109
Then, it is determined whether or not a column image of an amount necessary for printing performed by one print line, that is, one stroke of the print head in the print line direction, is stored in the column image buffer.

一方、ステップ107でラスタイメージバッファ12にお
けるラスタイメージの蓄積量がカラムイメージへの変換
において不足である場合も、ステップ109へ行き、前述
の判断が行われる。
On the other hand, if the storage amount of the raster image in the raster image buffer 12 is insufficient for conversion to the column image in step 107, the process also proceeds to step 109, and the above-described determination is performed.

ここで、蓄えられたカラムイメージがまだ1印字行分
に達していない場合は、再びステップ103へ行き、ステ
ップ108までの処理が行われてカラムイメージの蓄積が
される。一方、このステップ109で1印字行分のカラム
イメージが蓄積されていると判断された場合はステップ
110へ行く。ここで、シリアルプリンタエンジン15がレ
ディ(Ready)状態にあるか否かが判断される。ここ
で、シリアルプリンタエンジン15がレディ状態にない場
合は、再びステップ103へ行く。そして、ステップ103か
らステップ109に至るカラムイメージの蓄積が、シリア
ルプリンタエンジン15がレディ状態となるまで行われ
る。一方、シリアルプリンタエンジン15がレディ状態に
ある場合は、ステップ120へ行く。ここで、シリアルプ
リンタドライバ11dにより、カラムイメージバッファ16
に蓄積されたカラムイメージに基づいてシリアルプリン
タエンジン15が駆動され、1印字行分の印字がシリアル
処理により行われる。そして、この1印字行分の印字が
終了すると再びステップ103へ行く。そして、ステップ1
03からステップ120に至る処理により、次の印字行のカ
ラムイメージの印字が行われていく。
Here, if the stored column image has not yet reached one print line, the process proceeds to step 103 again, and the processing up to step 108 is performed to accumulate the column image. On the other hand, if it is determined in step 109 that the column image for one print line is stored,
Go to 110. Here, it is determined whether or not the serial printer engine 15 is in a ready state. Here, if the serial printer engine 15 is not in the ready state, the procedure goes to step 103 again. Then, accumulation of the column images from step 103 to step 109 is performed until the serial printer engine 15 becomes ready. On the other hand, if the serial printer engine 15 is in the ready state, the process proceeds to step 120. Here, the column image buffer 16 is controlled by the serial printer driver 11d.
The serial printer engine 15 is driven based on the column image stored in the printer, and printing for one print line is performed by serial processing. When the printing for one print line is completed, the process goes to step 103 again. And step 1
By the processing from 03 to step 120, the column image of the next print line is printed.

次に、第3図のステップ108におけるラスタ/カラム
変換について図面を参照して詳しく説明する。
Next, the raster / column conversion in step 108 of FIG. 3 will be described in detail with reference to the drawings.

まず、第4図は、ラスタ/カラム変換回路を示してい
る。同図において、ラスタ方向へ展開されたビットパタ
ーンを記憶する第1乃至第8のラッチ回路31〜38の各デ
ータ入力端子D0〜D7はコントロール部21のCPUのデータ
バスDX0〜DX7とそれぞれ1対1に接続されている。ま
た、各ラッチ回路31〜38の各クロック端子CkはCPUの制
御によりその信号パターンが決定されるストローブ信号
線と接続されている。各ラッチ回路31〜38は、このスト
ローブ信号線からのストローブ信号CEが有効化するタイ
ミングにより入力端子D0〜D7のビットデータをラッチし
て各出力端子Q0〜Q7に出力する。そして、第1乃至第8
のラッチ回路31〜38の各出力端子Q0〜Q7はビット単位の
出力を行う第1乃至第8のマルチプレクサ39〜46の各入
力端子D0〜D7と夫々接続されている。これらマルチプレ
クサ39〜46のビットセレクト端子S0〜S2はCPUの制御に
よりその信号パターンが決定される信号線と接続されて
いる。この信号線からのセレクト信号SELの信号パター
ンに基づいて8個の入力ビットD0〜D7の何れかのビット
信号が第1乃至第8のマルチプレクサ39〜46のそれぞれ
からCPUのデータバスへビット信号DY0〜DY7として出力
される。
First, FIG. 4 shows a raster / column conversion circuit. In the figure, each data input terminal D0-D7 of the first through eighth latch circuits 31-38 for storing bit patterns developed in the raster direction is paired with data buses DX0-DX7 of the CPU of the control unit 21, respectively. 1 connected. Further, each clock terminal Ck of each of the latch circuits 31 to 38 is connected to a strobe signal line whose signal pattern is determined by control of the CPU. Each of the latch circuits 31 to 38 latches the bit data of the input terminals D0 to D7 at the timing when the strobe signal CE from the strobe signal line becomes valid and outputs the bit data to each of the output terminals Q0 to Q7. And the first to eighth
Output terminals Q0 to Q7 of the latch circuits 31 to 38 are respectively connected to input terminals D0 to D7 of first to eighth multiplexers 39 to 46 which perform bit-wise output. The bit select terminals S0 to S2 of the multiplexers 39 to 46 are connected to signal lines whose signal patterns are determined by the control of the CPU. Based on the signal pattern of the select signal SEL from this signal line, any one of the eight input bits D0 to D7 is transmitted from each of the first to eighth multiplexers 39 to 46 to the data bus of the CPU. Output as ~ DY7.

第5図に示すラスタイメージバッファ12には、第3図
のステップ106において、ラスタ方向に展開されたラス
タイメージがビットマップ形式でアドレスの小さい順に
順次書き込まれている。つまり、キャラクタジェネレー
タ13に記憶されているマトリックスビットパターンが例
えば8行8列で示される場合は、ラスタイメージバッフ
ァ12にはそのマトリックスビットパターンが列方向(横
方向すなわち印字行方向)に区切って示される8ビット
毎の行ビットパターンとして順次記憶されている。例え
ば、印字パターンが第6図に示すように「H」,
「I」,・・・であるときは、印字用イメージバッファ
12には「H」,「I」,・・・に対応したビットパター
ンを列方向に順次区切った行ビットパターンが第5図に
示すように記憶されている。
In the raster image buffer 12 shown in FIG. 5, in step 106 of FIG. 3, raster images developed in the raster direction are sequentially written in bitmap format in ascending order of address. In other words, when the matrix bit pattern stored in the character generator 13 is indicated by, for example, 8 rows and 8 columns, the matrix bit pattern is indicated in the raster image buffer 12 by being divided in the column direction (horizontal direction, that is, the printing line direction). Are sequentially stored as row bit patterns for every 8 bits. For example, as shown in FIG. 6, the print pattern is "H",
If "I", ..., image buffer for printing
12, row bit patterns obtained by sequentially dividing the bit patterns corresponding to "H", "I",... In the column direction are stored as shown in FIG.

次に、上記構成によるラスタ/カラム変換の作用を説
明する。
Next, the operation of the raster / column conversion by the above configuration will be described.

まず、CPUは第5図に示すラスタイメージバッファ12
の「0000」番地から8ビットの行ビットパターン「0000
0000」を読み込む。次に、この行ビットパターンをデー
タバスに出力すると共に、ストローブ信号CE0のみを有
効化させる。すると、第1のラッチ回路31のみが選択さ
れる。これに応じて第1のラッチ回路1はCPUからの行
ビットパターンを受け取り、この行ビットパターンを出
力端子Q0〜Q7から出力する。
First, the CPU operates the raster image buffer 12 shown in FIG.
8 bit row bit pattern "0000" from "0000"
0000 ”is read. Next, this row bit pattern is output to the data bus, and only the strobe signal CE0 is made valid. Then, only the first latch circuit 31 is selected. In response, the first latch circuit 1 receives the row bit pattern from the CPU and outputs this row bit pattern from the output terminals Q0 to Q7.

同様にして、CPUは、0100番地に記憶された行ビット
パターン「01000100」,0200番地に記憶された行ビット
パターン「01000100」,0300番地に記憶された行ビット
パターン「01000100」,0400番地に記憶された行ビット
パターン「01111100」,0500番地に記憶された行ビット
パターン「01000100」,0600番地に記憶された行ビット
パターン「01000100」,0700番地に記憶された行ビット
パターン「01000100」を順次第2乃至第8のラッチ回路
32〜38に記憶させる。
Similarly, the CPU stores the row bit pattern `` 01000100 '' stored at address 0100, the row bit pattern `` 01000100 '' stored at address 0200, and the row bit pattern `` 01000100 '' stored at address 0300 at address 0400. The row bit pattern `` 01111100 '' stored at address 0500, the row bit pattern `` 01000100 '' stored at address 0600, the row bit pattern `` 01000100 '' stored at address 0700, and the row bit pattern `` 01000100 '' stored at address 0700 Second to eighth latch circuits
Store in 32-38.

続いて、CPUはセレクト信号SELの信号パターンを制御
することにより、第1乃至第8のそれぞれのマルチプレ
クサ39〜46から入力端子D0に入力しているそれぞれのビ
ット信号DY0〜DY7を出力させる。第1回目の処理では、
各マルチプレクサ39〜46から出力されるビット信号DY0
〜DY7は各行ビットパターンの第1ビットに夫々対応し
ている。今回の例におけるDY0〜DY7のビット信号列は、
「00000000」となる。この信号列は「H」に対応したマ
トリックスビットパターンの第1列の列ビットパターン
(縦方向ビットパターン)に対応する。
Subsequently, the CPU controls the signal pattern of the select signal SEL to output the bit signals DY0 to DY7 input to the input terminal D0 from the first to eighth multiplexers 39 to 46. In the first process,
The bit signal DY0 output from each of the multiplexers 39 to 46
DY7 correspond to the first bit of each row bit pattern. The bit signal sequence of DY0 to DY7 in this example is
It becomes “00000000”. This signal sequence corresponds to the column bit pattern (vertical bit pattern) of the first column of the matrix bit pattern corresponding to “H”.

次にCPUは、この列ビットパターン「00000000」を読
込む。次に、CPUは読み込んだ列ビットパターンを第7
図に示すようにカラムイメージバッファ16の例えば1000
番地に書込む。
Next, the CPU reads the column bit pattern “00000000”. Next, the CPU stores the read column bit pattern in the seventh column.
As shown in the figure, for example, 1000 of the column image buffer 16
Write to the address.

同様にして、CPUは、セレクト信号線SELの信号パター
ンを順次制御していく。こうしてCPUは、各ラッチ回路3
1〜38の同一ビットのビット信号により構成される第2
列目以降の列ビットパターン「01111111」,「0000100
0」,「00001000」,「00001000」,「01111111」,「0
0000000」,「00000000」を、各マルチプレクサ39〜46
から出力されるビット信号DY0〜DY7のビット信号列とし
て読込むと共にそれらの列ビットパターンを第7図に示
すようにカラムイメージバッファ16の1001番地以降から
順次書込む。この結果、カラムイメージバッファ16の10
00番地からは第7図に示すように8ビット構成の列ビッ
トパターンが記憶されていく。
Similarly, the CPU sequentially controls the signal pattern of the select signal line SEL. In this way, the CPU
The second consisting of bit signals of the same bits 1 to 38
Column bit patterns "01111111", "0000100"
0 "," 00001000 "," 00001000 "," 01111111 "," 0
0000000 "and" 00000000 "to each multiplexer 39-46
Are read as bit signal trains of bit signals DY0 to DY7 output from the CPU, and their column bit patterns are sequentially written from address 1001 onward in the column image buffer 16 as shown in FIG. As a result, 10 of the column image buffer 16
From address 00, an 8-bit column bit pattern is stored as shown in FIG.

このようにしてカラムバッファ16に記憶された8ビッ
トから成る1列の列ビットパターンが1列のカラムイメ
ージを構成する。つまり、この8ビットの列ビットパタ
ーンの各ビットが、インクジェット方式の印字ヘッドに
おける8個のオリフィスから噴出されるインクを制御す
るプリントデータとして各オレフィスと1対1に対応す
る。そして、このようにして変換されたカラムイメージ
が、1印字行における印字ヘッド1行程分、カラムイメ
ージバッファ16に蓄積されたことが、第3図のステップ
107で判断されると、この1印字行分のカラムイメージ
に従って印字ヘッドが駆動され、印字が行われる。
Thus, one column bit pattern of 8 bits stored in the column buffer 16 constitutes one column image. In other words, each bit of this 8-bit column bit pattern corresponds to each orifice as print data for controlling ink ejected from eight orifices in an ink jet print head. The fact that the column image thus converted has been stored in the column image buffer 16 for one print head stroke in one print line is shown in the step of FIG.
If it is determined in 107, the print head is driven according to the column image for one print line, and printing is performed.

尚、インクジェット方式のシリアルプリンタで印字ヘ
ッドが8個より多くのオリフィスを備えていたり、或い
は、シリアルプリンタがワイヤドット方式やサーマル方
式等の印字方式であって8個より多くの印字素子を備え
ていること等によって、1列のカラムイメージとして8
ビットより多くのビットからなる列ビットパターンが必
要とされる場合もある。このような場合は、第4図に示
したラスタ/カラム変換回路のラッチ回路及びマルチプ
レクサの数を増加させればよい。このようにすれば、増
加させたラッチ回路の数だけ多くのビットからなる列ビ
ットパターンからなるカラムイメージを容易に構成する
ことができる。或いは、第1乃至第8のラッチ回路31〜
38の同一ビットのビット信号による列ビットパターンを
カラムイメージバッファ16へ書き込んだ後、次の同一ビ
ットのビット信号の書き込みを行う前に、第1乃至第8
ラッチ回路31〜38のビットパターンを更に列方向(縦方
向)へ進んだ行ビットパターンに書き換え、前述の処理
と同一ビットのビット信号による列ビットパターンをカ
ラムイメージバッファ16へ書き込むようにしてもよい。
このようにすれば、ラッチ回路及びマルチプレクサを増
設することなく、16ビット構成の列ビットパターンから
なるカラムイメージを得ることができる。更に多くのビ
ットからなる列ビットパターンを得る場合は、ラッチ回
路のビットパターンの書き換え及びその同一ビットのビ
ット信号の読み込みを繰り返せばよい。
In addition, an ink jet serial printer has a print head having more than eight orifices, or a serial printer is a printing method such as a wire dot method or a thermal method and has more than eight printing elements. 8 as a single column image
A column bit pattern consisting of more bits than bits may be required. In such a case, the number of latch circuits and multiplexers of the raster / column conversion circuit shown in FIG. 4 may be increased. This makes it possible to easily form a column image composed of column bit patterns composed of as many bits as the number of latch circuits increased. Alternatively, the first to eighth latch circuits 31 to
After writing the column bit pattern of the 38 same bit signals into the column image buffer 16, before writing the next same bit signal, the first to eighth bit signals are written.
The bit pattern of the latch circuits 31 to 38 may be rewritten to a row bit pattern further advanced in the column direction (vertical direction), and a column bit pattern based on the same bit signal as in the above-described processing may be written to the column image buffer 16. .
This makes it possible to obtain a column image composed of 16-bit column bit patterns without increasing the number of latch circuits and multiplexers. In order to obtain a column bit pattern including more bits, rewriting of the bit pattern of the latch circuit and reading of a bit signal of the same bit may be repeated.

以上に述べたように、本実施例のシリアルプリンタ
は、ソフトウェアモジュールのうち、コマンドインタプ
リタ11b及び印字イメージ処理11cについては既存のレー
ザプリンタのソフトウェアモジュールを変更せずにその
まま流用している。また、シリアルプリンタのシステム
管理11aのソフトウェアモジュールは一部がシリアルプ
リンタのシステムに合うように手直しされているが、大
部分はレーザプリンタのシステム管理21aが流用されて
いる。このように、レーザプリンタの既に完成している
主要な処理を、そのままシリアルプリンタへ流用できる
ので、品質の安定した製品を最小期間且つ最小コストで
完成させることができる。特に、複雑な処理が要求され
るグラフィクス処理としての印字イメージ処理11cにつ
いて、レーザプリンタの既に完成され、バグ等の欠陥が
除去された印字イメージ処理21cをそのまま流用できる
ことになる。このことは、品質の安定したシリアルプリ
ンタを短期間且つ低コストで提供するために、非常に大
きく貢献する。
As described above, in the serial printer of the present embodiment, of the software modules, the command interpreter 11b and the print image processing 11c are diverted from the existing laser printer without changing the software module. Although a part of the software module of the serial printer system management 11a is modified so as to be suitable for the serial printer system, the laser printer system management 21a is mostly used. In this way, the already completed main processing of the laser printer can be diverted to the serial printer as it is, so that a product with stable quality can be completed in a minimum period and at a minimum cost. In particular, as for the print image processing 11c as graphics processing that requires complicated processing, the print image processing 21c that has already been completed in the laser printer and from which defects such as bugs have been removed can be used as it is. This greatly contributes to providing a serial printer with stable quality in a short period of time and at low cost.

尚、本実施例の印字ヘッドは、カラム方向に複数の印
字素子が配列されていたが、この配列方向は印字行方向
に対して必ずしも垂直である必要はなく、垂直方向に対
して傾斜していてもシリアルプリンタとして機能する。
In the print head of this embodiment, a plurality of printing elements are arranged in the column direction. However, this arrangement direction is not necessarily required to be perpendicular to the printing row direction, but is inclined with respect to the vertical direction. Even function as a serial printer.

また、印字ヘッドは1つの印字素子のみを有し、この
1つの印字素子が印字行方向に対して垂直或いは所定角
度方向に偏位しながら印字が行われていくものであって
も、やはりシリアルプリンタとして機能する。この例と
しては、オリフィスが1個のみ備えられたインクジェッ
ト方式の印字ヘッドであって、このオリフィスからのイ
ンクの噴出方向が印字行方向に対して垂直或いは所定角
度方向に切り換わりながら、印字ヘッドは印字行方向に
移動して印字が行われていくもの等が考えられる。
Further, even if the print head has only one print element, and this one print element is deviated perpendicularly to the print line direction or deviated in a predetermined angle direction, the print head is still serial. Functions as a printer. An example of this is an ink jet print head provided with only one orifice. The ink jet from the orifice is switched to a direction perpendicular to the print line direction or at a predetermined angle, while the print head is It is conceivable that the printing is performed while moving in the printing line direction.

また、本実施例においては、シリアルプリンタのハー
ドウェア構成を既存のレーザプリンタの構成と全く同じ
にして実現したが、例えば使用する電子部品等を変更し
たとしても、それに対するソフトウェア上の変更は微々
たるものである。従って、レーザプリンタの処理のシリ
アルプリンタへの流用は、基本的に前述のごとくのモジ
ュール化されたソフトウェアの一部の変更により、実現
できる。
Further, in the present embodiment, the hardware configuration of the serial printer is realized exactly the same as the configuration of the existing laser printer. However, even if the electronic components to be used are changed, for example, the software changes are insignificant. It is a thing. Therefore, the diversion of the processing of the laser printer to the serial printer can be basically realized by partially changing the modularized software as described above.

[発明の効果] 以上詳述したことから明らかなように、本発明による
シリアルプリンタは、インターフェースを介して外部か
ら受信したデータをグラフィックス処理部によってラス
タ方向に展開してラスタイメージバッファに記憶させる
とともに、そのラスタイメージバッファに記憶された印
字イメージを、ラスタ/カラム変換部によってカラムイ
メージに変換してカラムイメージバッファに記憶させ、
そのカラムイメージバッファからカラム方向に展開され
た形式でカラムイメージをプリントヘッドに供給してシ
リアルプリント動作をさせるように構成したものであ
る。従って、プリンタ単独で、いわゆるページプリンタ
としての機能を有することは勿論のこと、この種のペー
ジプリンタにとって最も重要な部分であり且つ最も複雑
なプログラムが要求されるグラフィックス処理部を新た
に別途開発する必要がなく、既存のラインプリンタにお
けるグラフィックス処理部をそのまま利用することが可
能となり、最小限の開発期間および開発コストにて、品
質の安定したシリアルプリンタを提供することができ
る。しかも、既存のラインプリンタにおけるグラフィッ
クス処理と共通化できるため、既存のラインプリンタで
使用されているフォントカートリッジ等による書体情報
も、本シリアルプリンタにおいてそのまま利用すること
ができ、その汎用性を高めることができる等の優れた効
果を奏する。
[Effects of the Invention] As is clear from the above description, the serial printer according to the present invention develops data received from the outside via the interface in the raster direction by the graphics processing unit and stores the data in the raster image buffer. At the same time, the print image stored in the raster image buffer is converted into a column image by a raster / column conversion unit and stored in the column image buffer.
The column image is supplied from the column image buffer to the print head in a format developed in the column direction to perform a serial printing operation. Therefore, the printer alone has a function as a so-called page printer, and a graphics processing unit which is the most important part of this kind of page printer and requires the most complicated program is newly developed separately. This makes it possible to use the graphics processing unit of the existing line printer as it is, and to provide a serial printer of stable quality with a minimum development period and development cost. In addition, since it can be shared with graphics processing in existing line printers, typeface information from font cartridges and the like used in existing line printers can also be used as is in this serial printer, improving its versatility. It has excellent effects, such as being able to perform.

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

第1図は本発明の一実施例であるインクジェット方式に
よるシリアルプリンタのブロック図、第2図は、既存の
レーザプリンタのブロック図、第3図は第1図に示すシ
リアルプリンタのフローチャート、第4図はラスタ/カ
ラム変換回路を示す図、第5図はラスタイメージバッフ
ァのビットパターンを示す模式図、第6図は、ラスタイ
メージバッファと印字イメージの関係を示す対応図、第
7図はカラムイメージバッファのビットパターンを示す
模式図である。 図中、11はコントロール部、11cは印字イメージ処理、1
1dはシリアルプリンタドライバ、11eはラスタ/カラム
変換、12はラスタイメージバッファ、15はシリアルプリ
ンタエンジン、16はカラムイメージバッファ、31乃至38
はラッチ回路、39乃至46はマルチプレクサである。
FIG. 1 is a block diagram of an ink jet serial printer according to an embodiment of the present invention, FIG. 2 is a block diagram of an existing laser printer, FIG. 3 is a flowchart of the serial printer shown in FIG. 5 is a diagram showing a raster / column conversion circuit, FIG. 5 is a schematic diagram showing a bit pattern of a raster image buffer, FIG. 6 is a correspondence diagram showing a relationship between a raster image buffer and a print image, and FIG. FIG. 3 is a schematic diagram illustrating a bit pattern of a buffer. In the figure, 11 is the control unit, 11c is the print image processing, 1
1d is a serial printer driver, 11e is raster / column conversion, 12 is a raster image buffer, 15 is a serial printer engine, 16 is a column image buffer, 31 to 38
Is a latch circuit, and 39 to 46 are multiplexers.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プリントヘッドをプリント媒体に対して相
対移動させつつプリントヘッドを駆動して一行ごとのプ
ンリトを行うシリアルプリンタにおいて、 外部からデータを受信するためのインターフェースと、 そのインターフェースを介して受信したデータに従って
印字イメージをラスタ方向に展開するグラフィックス処
理部と、 そのグラフィックス処理部によってラスタ方向に展開さ
れた印字イメージをビットマップ形式で記憶するととも
に、その書込みおよび読出しがラスタ方式で行われるラ
スタイメージバッファと、 プリントデータを、前記プリントヘッドにカラム方向に
展開された形式で供給できるように記憶するカラムイメ
ージバッファと、 前記ラスタイメージバッファに記憶された印字イメージ
をカラムイメージに変換してカラムイメージバッファに
記憶させるラスタ/カラム変換部と、 そのラスタ/カラム変換部によってカラムイメージバッ
ファに記憶されたカラムイメージを前記プリントヘッド
に供給してシリアルプリント動作をさせるプリンタドラ
イバ部と、 を備えたことを特徴とするシリアルプリンタ。
An interface for receiving data from the outside in a serial printer that drives the print head while moving the print head relative to a print medium and performs pruning for each line, and receiving data via the interface. A graphics processing unit that develops a print image in the raster direction according to the data that has been processed, and a print image that is developed in the raster direction by the graphics processing unit is stored in a bitmap format, and writing and reading are performed in a raster system. A raster image buffer, a column image buffer for storing print data so that the print data can be supplied to the print head in a format developed in the column direction, and a print image stored in the raster image buffer converted to a column image. A raster / column conversion unit for storing the column image stored in the column image buffer by the raster / column conversion unit to the print head to perform a serial printing operation. A serial printer.
JP1302638A 1989-11-20 1989-11-20 Serial printer Expired - Lifetime JP2734140B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1302638A JP2734140B2 (en) 1989-11-20 1989-11-20 Serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1302638A JP2734140B2 (en) 1989-11-20 1989-11-20 Serial printer

Publications (2)

Publication Number Publication Date
JPH03161366A JPH03161366A (en) 1991-07-11
JP2734140B2 true JP2734140B2 (en) 1998-03-30

Family

ID=17911394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1302638A Expired - Lifetime JP2734140B2 (en) 1989-11-20 1989-11-20 Serial printer

Country Status (1)

Country Link
JP (1) JP2734140B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01182061A (en) * 1988-01-14 1989-07-19 Toshiba Corp Printing control device

Also Published As

Publication number Publication date
JPH03161366A (en) 1991-07-11

Similar Documents

Publication Publication Date Title
US4567570A (en) Electronic control system for a linearly slanted print head
US5382968A (en) Raster image serial printer having variable buffer memory and method for operating same
EP0690410B1 (en) Printer having scroll print buffer and printing method
US4543644A (en) Control circuit for matrix-driven recording
GB2252694A (en) Printer having a multiple scan line printhead controller
US4524367A (en) Thermal printer
JP2734140B2 (en) Serial printer
JP2535825B2 (en) Print control circuit of dot tomato printer
JPH0616764Y2 (en) Dot matrix printer
JP3055738B2 (en) Dot matrix pattern printing method and apparatus
JP2834738B2 (en) Printing equipment
JPH11179979A (en) Image recorder
JP2564513B2 (en) Printer control device
JP2757986B2 (en) Print control device for serial dot printer
JP4730474B2 (en) Image processing device
JPS61241159A (en) Character pattern data generator for high quality printing
JPH0647301B2 (en) Charactor pattern generator
JPH05221092A (en) Printing control device
JP2002240261A (en) Print buffer memory controller
JPS6025764A (en) Control apparatus of dot printer
JPH0644015A (en) Printing method and its device
JPS63257650A (en) Printing system for reversed face character
JP2001187476A (en) Printer and method for transferring image data
JPH0333111B2 (en)
JPH05193195A (en) Printing control device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080109

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090109

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090109

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100109

Year of fee payment: 12

EXPY Cancellation because of completion of term