JPH06344607A - Printer controlling apparatus - Google Patents
Printer controlling apparatusInfo
- Publication number
- JPH06344607A JPH06344607A JP5164170A JP16417093A JPH06344607A JP H06344607 A JPH06344607 A JP H06344607A JP 5164170 A JP5164170 A JP 5164170A JP 16417093 A JP16417093 A JP 16417093A JP H06344607 A JPH06344607 A JP H06344607A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- printer
- data
- control unit
- line
- 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.)
- Granted
Links
- 238000012546 transfer Methods 0.000 claims abstract description 45
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 238000003079 width control Methods 0.000 claims description 9
- 238000011161 development Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 18
- 238000012545 processing Methods 0.000 description 5
- 239000013256 coordination polymer Substances 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、メモリ上にイメージデ
ータ(ビットマップデータ)を展開し、それをプリンタ
に出力して印刷させるプリンタ制御装置に関するもので
ある。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer controller for developing image data (bitmap data) on a memory and outputting the image data to a printer for printing.
【0002】[0002]
(第1の従来例)ホストコンピュータ等からのプリント
データを基にメモリ上にイメージデータを展開し、それ
をプリンタに出力して印刷させるプリンタ制御装置があ
る。図5は、従来のそのようなプリンタ制御装置を示す
図である。図5において、1はプリンタ制御装置、2は
プリントインターフェース制御部、3はバス、4はCP
U(中央演算処理装置)、5はシステムメモリ、6はイ
メージデータ、7はイメージメモリ、8はラインバッフ
ァ、9はデータの単位を変換するデータ変換手段として
のシフタ、10はプリント出力制御部、101は左マー
ジン制御部、102は上マージン制御部、11は外部記
憶装置、12はプリンタである。(First Conventional Example) There is a printer control device that develops image data on a memory based on print data from a host computer or the like and outputs the image data to a printer for printing. FIG. 5 is a diagram showing such a conventional printer controller. In FIG. 5, 1 is a printer controller, 2 is a print interface controller, 3 is a bus, and 4 is a CP.
U (Central Processing Unit), 5 is a system memory, 6 is image data, 7 is an image memory, 8 is a line buffer, 9 is a shifter as a data conversion means for converting the unit of data, 10 is a print output control unit, Reference numeral 101 is a left margin control unit, 102 is an upper margin control unit, 11 is an external storage device, and 12 is a printer.
【0003】CPU4は、システムメモリ5に、印刷し
ようとするイメージデータを展開するが、イメージデー
タの展開は、用紙の1ページに印刷される状態がそのま
ま現出されるように行われる。展開するに際して補助的
に必要とされる情報やデータ(例、フォントデータ)
は、外部記憶装置11から提供される。イメージデータ
6は、そのようにして展開されたイメージデータであ
る。The CPU 4 expands the image data to be printed in the system memory 5, and the expansion of the image data is performed so that the state of being printed on one page of paper appears as it is. Information and data that are supplementarily required when developing (eg font data)
Are provided from the external storage device 11. The image data 6 is the image data thus developed.
【0004】D11,D12等は、DMA転送のアクセス単
位(例えば8画素とか16画素とか)のイメージデータ
である。D11〜D1Nは1ライン目のイメージデータ、D
21〜D2Nは2ライン目のイメージデータ、DM1〜DMNは
最終ラインであるMライン目のイメージデータである。D 11 , D 12 and the like are image data of an access unit (for example, 8 pixels or 16 pixels) of DMA transfer. D 11 to D 1N are the image data of the first line, D
21 to D 2N are image data of the second line, and D M1 to D MN are image data of the M line which is the final line.
【0005】プリントインターフェース制御部2にはイ
メージメモリ7が設けられ、システムメモリ5のイメー
ジデータ6が、バス3を通って転送される。ラインバッ
ファ8は、イメージメモリ7から1ライン分のデータを
取り出しておくためのものであり、ここからシフタ9
へ、DMA転送のアクセス単位分のデータが送られる。An image memory 7 is provided in the print interface control unit 2, and image data 6 in the system memory 5 is transferred through the bus 3. The line buffer 8 is for taking out one line of data from the image memory 7, and the shifter 9
The data for the access unit of the DMA transfer is sent to.
【0006】図6は、シフタ9の動作を説明する図であ
る。DMA転送でのアクセス単位データを8画素分のデ
ータであるとすると、シフタ9は、D11などの8画素分
のデータをまとめて受け取り、1画素分づつプリンタ1
2へ出力する。プリント出力制御部10は、ラインバッ
ファ8からシフタ9への出力、およびシフタ9からプリ
ンタ12への出力を制御する。例えば、出力タイミング
は、プリンタ12からプリント出力制御部10へ送られ
て来るページ同期信号,ライン同期信号を基にして制御
される。また、左マージン,上マージンは、予め左マー
ジン制御部101,上マージン制御部102に設定され
ており、それらによって制御される。なお、1ページの
ライン数,ライン幅は、システムメモリ5ないしはイメ
ージメモリ7に展開されたイメージデータ6のライン
数,ライン幅に一致する。ライン幅は、アクセス単位デ
ータの画素数の倍数となる。アクセス単位データD11等
を8画素とすると、図5の場合、ライン幅は8×N画素
となる。FIG. 6 is a diagram for explaining the operation of the shifter 9. Assuming that the access unit data in the DMA transfer is the data for 8 pixels, the shifter 9 receives the data for 8 pixels such as D 11 all at once, and the printer 1
Output to 2. The print output control unit 10 controls output from the line buffer 8 to the shifter 9 and output from the shifter 9 to the printer 12. For example, the output timing is controlled based on the page synchronization signal and the line synchronization signal sent from the printer 12 to the print output control unit 10. The left margin and the upper margin are set in the left margin control unit 101 and the upper margin control unit 102 in advance, and are controlled by them. The number of lines and the line width of one page match the number of lines and the line width of the image data 6 developed in the system memory 5 or the image memory 7. The line width is a multiple of the number of pixels of access unit data. If the access unit data D 11 etc. is 8 pixels, the line width is 8 × N pixels in the case of FIG.
【0007】図7は、ライン幅がDMA転送のアクセス
単位データの画素数の倍数とされているプリント状態を
示す図である。図7において、20は用紙、21は印刷
されたイメージ、22はライン同期信号、23は上マー
ジン、24はイメージのライン数、25はページ同期信
号、26は左マージン、27はイメージの印刷ライン幅
である。FIG. 7 is a diagram showing a print state in which the line width is a multiple of the number of pixels of access unit data for DMA transfer. In FIG. 7, 20 is a sheet, 21 is a printed image, 22 is a line synchronization signal, 23 is an upper margin, 24 is the number of image lines, 25 is a page synchronization signal, 26 is a left margin, and 27 is an image printing line. Width.
【0008】(第2の従来例)本発明に関連する他の従
来技術としては、特開昭63− 16324号公報の「印刷制御
方式」がある。これは、展開したイメージデータの各ラ
インの先頭アドレスを記録したテーブルを設けておき、
ライン毎にDMAアドレス(DMA…ダイレクト・メモ
リ・アクセス)の再設定を行いながら、イメージデータ
をDMA転送するものである。(Second Conventional Example) As another conventional technique related to the present invention, there is a "print control system" disclosed in Japanese Patent Laid-Open No. 63-16324. This is provided with a table recording the start address of each line of the expanded image data,
The image data is DMA-transferred while resetting the DMA address (DMA ... Direct memory access) for each line.
【0009】(第3の従来例)更に、他の従来技術とし
て、特開平2− 48966号公報がある。これは、プリント
インターフェース制御部にイメージメモリは持たず、シ
ステムメモリからラインバッファに1ライン分づつDM
A転送するようにしたものである。このDMA転送は、
プリンタからのライン同期信号に同期して行われる。(Third Prior Art) Further, as another prior art, there is JP-A-2-48966. This is because the print interface control unit does not have an image memory, but DM from the system memory to the line buffer for each line.
A transfer is performed. This DMA transfer is
It is performed in synchronization with the line synchronization signal from the printer.
【0010】[0010]
【発明が解決しようとする課題】しかしながら、前記し
た従来例には、次のような問題点があった。第1の従来
例には、1ページのイメージデータを展開しておくこと
が出来るメモリとして、システムメモリ5の他にイメー
ジメモリ7をも持つ必要があり、コスト高になるという
問題点があった。第2の従来例には、DMA転送をライ
ン毎に行うので、各ラインの先頭アドレスを記録するた
めのテーブルを作成しておかなければならず、そのため
に回路の数が多くなるという問題点があった。第3の従
来例には、プリンタからライン同期信号が来た時、バス
が他の処理のために使用されていると、次のラインのイ
メージデータを転送することが出来ず、プリントするタ
イミングにイメージデータが間に合わなくなるという問
題点があった。本発明は、以上のような問題点を解決す
ることを課題とするものである。However, the above-mentioned conventional example has the following problems. The first conventional example has a problem that it is necessary to have not only the system memory 5 but also the image memory 7 as a memory capable of expanding one page of image data, resulting in an increase in cost. . In the second conventional example, since the DMA transfer is performed for each line, it is necessary to prepare a table for recording the start address of each line, which causes a problem that the number of circuits increases. there were. In the third conventional example, when the line synchronization signal comes from the printer, if the bus is used for other processing, the image data of the next line cannot be transferred, and the timing of printing will be delayed. There was a problem that the image data would not be in time. An object of the present invention is to solve the above problems.
【0011】[0011]
【課題を解決するための手段】前記課題を解決するた
め、本発明では、CPUと、イメージデータが展開され
るシステムメモリと、該システムメモリから転送された
イメージデータを印刷条件に適合するよう制御しながら
プリンタへ出力するプリントインターフェース制御部と
を具えたプリンタ制御装置において、前記システムメモ
リの連続アドレス領域にイメージデータを展開する手段
を具えると共に、前記プリントインターフェース制御部
の構成を、イメージデータの一時記憶手段と、前記シス
テムメモリに展開されたイメージデータを前記一時記憶
手段にDMA転送する手段と、前記一時記憶手段から入
力されたイメージデータをプリンタへ1画素単位で出力
するデータ変換手段と、設定されたライン幅のイメージ
データを前記一時記憶手段から前記データ変換手段へ出
力する際の制御を行う一時記憶制御手段と、該データ変
換手段からプリンタへの出力を制御するプリント出力制
御手段とを有する構成とした。In order to solve the above problems, according to the present invention, a CPU, a system memory in which image data is expanded, and image data transferred from the system memory are controlled so as to meet printing conditions. However, in a printer control device having a print interface control unit for outputting to a printer, a unit for expanding image data in a continuous address area of the system memory is provided, and the configuration of the print interface control unit is Temporary storage means, means for DMA-transferring the image data expanded in the system memory to the temporary storage means, and data conversion means for outputting the image data input from the temporary storage means to the printer in pixel units. The image data of the set line width is temporarily recorded A temporary storage control means for controlling the time of output from the means to the data conversion unit, and configured to have a print output control means for controlling the output from said data conversion means to the printer.
【0012】また、イメージデータをライン先頭より所
定の画素単位プリンタへ出力すると、一時記憶制御手段
にCPUにより設定されているライン幅の残りイメージ
データの値を印刷されない値に強制的に変更して出力す
るライン幅制御部を、前記プリント出力制御手段内に設
けることとしてもよい。When the image data is output to a predetermined pixel unit printer from the beginning of the line, the value of the remaining image data of the line width set by the CPU in the temporary storage control means is forcibly changed to a value that cannot be printed. A line width control unit for outputting may be provided in the print output control means.
【0013】更に、前記一時記憶制御手段を、データ変
換手段からプリンタへ出力するイメージデータのライン
幅を、CPUにより設定されたライン幅とは異なったラ
イン幅に制御することも行う一時記憶制御手段とするこ
とも出来る。Further, the temporary storage control means also controls the line width of the image data output from the data conversion means to the printer to a line width different from the line width set by the CPU. You can also say
【0014】[0014]
【作 用】プリンタ制御装置のプリントインターフェ
ース制御部に、FIFOのような一時記憶手段を設け、
システムメモリからのイメージデータの転送を、その一
時記憶手段へのDMA転送によって行う。一方、イメー
ジデータのシステムメモリでの展開を、連続アドレス領
域にて行っておく。DMA転送は、バスが空いていれば
随時行うことが出来るから、一時記憶手段には、プリン
タへの出力が途切れないようにイメージデータが供給さ
れる。そのため、プリントインターフェース制御部内
に、印刷ページ全体のイメージデータを格納し得る大容
量のメモリを設ける必要がなくなる。また、DMA転送
は、各ライン毎にではなく、ページ全体のイメージデー
タを連続的に行うので、ラインの先頭アドレスを記録し
ておくテーブルを設ける必要がない。従って、コストが
安くなる。[Operation] The print interface controller of the printer controller is provided with temporary storage means such as a FIFO,
Image data is transferred from the system memory by DMA transfer to the temporary storage means. On the other hand, the image data is expanded in the system memory in the continuous address area. Since the DMA transfer can be performed at any time if the bus is vacant, the image data is supplied to the temporary storage means so that the output to the printer is not interrupted. Therefore, it is not necessary to provide a large-capacity memory that can store image data of the entire print page in the print interface control unit. Further, since the DMA transfer is performed not for each line but for the image data of the entire page continuously, it is not necessary to provide a table for recording the start address of the line. Therefore, the cost is reduced.
【0015】[0015]
【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。図1は、本発明の第1の実施例にかかわる
プリンタ制御装置を示す図である。符号は図5のものに
対応し、13はDMA制御部、131はDMAアドレス
制御部、132はDMAカウント制御部、14は一時記
憶手段としてのFIFO(First In First Out) 、15
は一時記憶データ出力制御手段としてのFIFO制御
部、103はライン数制御部である。図5の従来例と同
じ符号の部分は、同様の機能を果たす。Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a diagram showing a printer control device according to a first embodiment of the present invention. Reference numerals correspond to those of FIG. 5, 13 is a DMA control unit, 131 is a DMA address control unit, 132 is a DMA count control unit, 14 is a FIFO (First In First Out) as a temporary storage unit, and 15 is a unit.
Is a FIFO control unit as a temporary storage data output control unit, and 103 is a line number control unit. Portions with the same reference numerals as in the conventional example of FIG. 5 perform similar functions.
【0016】第5図の従来例と異なる第1の点は、プリ
ントインターフェース制御部2の内部構成が変えられた
という点である。即ち、イメージメモリ7とラインバッ
ファ8が無くなり、その代わりに、DMA制御部13
と、イメージデータを一時的に記憶する手段であるFI
FO14と、FIFO14からシフタ9への出力を制御
するFIFO制御部15(一時記憶制御手段)とが設け
られている。第5図の従来例と異なる第2の点は、シス
テムメモリ5にイメージデータ6を展開する仕方が変え
られたという点である。即ち、第5図の従来例では、ペ
ージに印刷する状態で展開していたが、第1の実施例で
は、ページに印刷する状態とは関係なく、メモリの連続
した領域に展開している。The first difference from the conventional example shown in FIG. 5 is that the internal structure of the print interface controller 2 is changed. That is, the image memory 7 and the line buffer 8 are eliminated, and instead, the DMA control unit 13
And FI which is a means for temporarily storing image data.
An FO 14 and a FIFO control unit 15 (temporary storage control means) that controls the output from the FIFO 14 to the shifter 9 are provided. The second difference from the conventional example of FIG. 5 is that the way of developing the image data 6 in the system memory 5 is changed. That is, in the conventional example of FIG. 5, the data is expanded in the state of printing on the page, but in the first embodiment, it is expanded in the continuous area of the memory regardless of the state of printing on the page.
【0017】システムメモリ5には、イメージデータ
が、1ラインの先頭のデータD11から最終ラインの末端
のデータDMNまで、DMA転送のアクセス単位で連続し
て展開される。例えば、1ラインの最終データD1Nを展
開したからといって改行することはせず、直ぐその後に
2ラインの先頭データD21を展開する。この展開は、C
PU4によってなされる。イメージデータ6は、DMA
制御部13により制御されるDMA転送により、FIF
O14に順次転送される。その制御に先立ち、CPU4
は、システムメモリ5に展開したイメージデータ6の先
頭アドレス、つまりDMA転送開始アドレスをDMAア
ドレス制御部131にセットし、イメージデータ6のデ
ータ量、つまり転送サイズをDMAカウント制御部13
2にセットする。Image data is continuously expanded in the system memory 5 in units of access for DMA transfer from the first data D 11 of one line to the last data D MN of the last line. For example, a line feed is not started even if the final data D 1N of one line has been expanded, but the head data D 21 of two lines is expanded immediately after that. This development is C
Made by PU4. Image data 6 is DMA
By the DMA transfer controlled by the control unit 13, the FIF
It is sequentially transferred to O14. Prior to the control, the CPU 4
Sets the start address of the image data 6 expanded in the system memory 5, that is, the DMA transfer start address in the DMA address control unit 131, and sets the data amount of the image data 6, that is, the transfer size, in the DMA count control unit 13
Set to 2.
【0018】シフタ9からプリンタ12への出力は、プ
リンタ12からのライン同期信号とかページ同期信号と
かに同期して行われる。しかし、イメージデータ6のF
IFO14へのDMA転送は、バス3が空いており、F
IFO14に空きがある限り随時行うことが出来る。従
って、FIFO14へのDMA転送は、シフタ9からプ
リンタ12への転送動作とは独立して行うことが出来
る。The output from the shifter 9 to the printer 12 is performed in synchronization with the line synchronizing signal or the page synchronizing signal from the printer 12. However, F of image data 6
In the DMA transfer to the IFO 14, the bus 3 is vacant and the F
It can be performed at any time as long as there is a free space in the IFO 14. Therefore, the DMA transfer to the FIFO 14 can be performed independently of the transfer operation from the shifter 9 to the printer 12.
【0019】FIFO制御部15は、FIFO14から
シフタ9への出力を制御する。ライン幅は予めCPU4
によりFIFO制御部15に設定されており、プリンタ
12からのライン同期信号を受けると、シフタ9へデー
タを送出し始める。ライン幅分のデータを送出し終わる
と停止して、次のライン同期信号を待つ。シフタ9から
プリンタ12への出力は、プリント出力制御部10によ
って制御される。図5の従来例に比べると、ライン数制
御部103が新たに設けられているが、このライン数制
御部103は、印刷すべきラインはあと何ライン残って
いるかを監視する。最初に、1ページに印刷すべきライ
ン数が、CPU4によりセットされ、1ライン分のイメ
ージデータがプリンタ12に送られる毎に1つづつカウ
ントダウンされる。The FIFO control unit 15 controls the output from the FIFO 14 to the shifter 9. Line width is CPU4 in advance
Is set in the FIFO control unit 15, and when a line synchronization signal from the printer 12 is received, data starts to be sent to the shifter 9. When the data for the line width has been transmitted, the operation is stopped and the next line synchronization signal is waited for. The output from the shifter 9 to the printer 12 is controlled by the print output control unit 10. Compared with the conventional example of FIG. 5, a line number control unit 103 is newly provided, but this line number control unit 103 monitors how many lines remain to be printed. First, the number of lines to be printed on one page is set by the CPU 4, and every time one line of image data is sent to the printer 12, it is counted down by one.
【0020】ライン数制御部103は必須のものではな
く、必要に応じて設けられる。これを設けておき、1ペ
ージのライン数をプリンタ12に出力し終えたところ
で、プリントインターフェース制御部2の動作を終了さ
せる。プリンタの種類によっては、1ページに印刷すべ
きライン数の印刷を終了したにもかかわらず、ライン同
期信号を送って来るものがあるが、その場合にプリント
インターフェース制御部2がまだ通常の動作状態にある
と、シフタ9やFIFO14にはもはやデータが無いの
をみて、印刷不能とか印刷不良とかの表示を出して動作
を停止する等のエラー処理をすることになる。ライン数
制御部103を設けて上記のように利用すれば、このよ
うなエラー処理に至るのを防ぐことが出来る。The line number control unit 103 is not essential, and is provided as needed. This is provided and the operation of the print interface control unit 2 is terminated when the number of lines of one page is output to the printer 12. Depending on the type of printer, there are some that send a line synchronization signal even though the printing of the number of lines to be printed on one page has been completed. In that case, the print interface control unit 2 is still in the normal operating state. In the case of, the shifter 9 and the FIFO 14 have no more data, and therefore, error processing such as displaying an indication that printing is impossible or defective printing and stopping the operation is performed. If the line number control unit 103 is provided and used as described above, it is possible to prevent such error processing.
【0021】図2は、本発明におけるデータ転送動作お
よびプリンタ出力動作を説明するフローチャートであ
る。まず図2(イ)のフローチャートに従ってデータ転
送動作を説明する。 ステップ1…システムメモリ5内に、イメージデータを
展開するための領域を、連続アドレスにて確保する。 ステップ2…そこにイメージデータを展開する。 ステップ3…展開されたイメージデータ6の先頭アドレ
スを、DMA転送の開始アドレスとしてDMAアドレス
制御部131にセットする。展開されたデータ量を、転
送サイズとしてDMAカウント制御部132にセットす
る。FIG. 2 is a flow chart for explaining the data transfer operation and printer output operation in the present invention. First, the data transfer operation will be described with reference to the flowchart of FIG. Step 1 ... An area for expanding image data is secured in the system memory 5 at continuous addresses. Step 2 ... Expand the image data there. Step 3 ... The head address of the expanded image data 6 is set in the DMA address control unit 131 as the start address of the DMA transfer. The expanded data amount is set in the DMA count control unit 132 as the transfer size.
【0022】ステップ4…FIFO14に空き領域があ
り、且つバス3が使用できれば、イメージデータ6をF
IFO14へDMA転送する。 ステップ5…DMAカウント制御部132の値から、D
MA転送したデータサイズをカウントダウンする。DM
Aカウント制御部132の新しい値は、まだDMA転送
されないで残っているデータ量を示す。また、DMAア
ドレス制御部131の開始アドレスを、転送されずに残
っているイメージデータ6の先頭アドレスの値に変え
る。 ステップ6…DMA転送が終了したかどうかチェックす
る。DMAカウント制御部132の値がゼロであれば、
予定したDMA転送は終了したことになる。 ステップ7…まだ終了していなければ、FIFO14が
満杯になったかどうか調べる。まだ空きがあれば、ステ
ップ4に戻り、DMA転送を続ける。Step 4 ... If there is a free area in the FIFO 14 and the bus 3 can be used, the image data 6
DMA transfer to IFO14. Step 5: From the value of the DMA count control unit 132, D
The size of the transferred data is counted down. DM
The new value of the A count control unit 132 indicates the amount of data remaining before being DMA-transferred. Also, the start address of the DMA address control unit 131 is changed to the value of the start address of the image data 6 that remains untransferred. Step 6 ... It is checked whether the DMA transfer is completed. If the value of the DMA count control unit 132 is zero,
The scheduled DMA transfer has ended. Step 7 ... If not, check to see if the FIFO 14 is full. If there is still a space, the process returns to step 4 to continue the DMA transfer.
【0023】次に、図2(ロ)のフローチャートに従っ
て、プリントインターフェース制御部2からプリンタ1
2へのデータ転送動作を説明する。 ステップ1…プリンタ12からのページ同期信号(垂直
同期信号)が来ているかどうかチェックする。 ステップ2…来ていれば、ライン同期信号(水平同期信
号)も来ているかどうかチェックする。 ステップ3…両方の同期信号が来ていれば、プリンタ1
2へデータを出力しなければならないが、FIFO14
にデータがあるかどうか調べる。Next, according to the flow chart of FIG.
The data transfer operation to 2 will be described. Step 1 ... It is checked whether a page sync signal (vertical sync signal) from the printer 12 is received. Step 2 ... If it comes, it is checked whether the line sync signal (horizontal sync signal) is also coming. Step 3 ... If both sync signals are received, the printer 1
The data must be output to the FIFO2, but the FIFO14
Check if there is data in.
【0024】ステップ4…FIFO14にデータがなけ
れば、出力すべきなのにデータが存在しないという状態
になっているので、エラーであるとの処理をする。 ステップ5…FIFO14にデータがあれば、シフタ9
を介してプリンタ12へ出力する。 ステップ6…FIFO14からシフタ9へは、予めCP
U4により設定されたライン幅分のデータが送られるよ
う、FIFO制御部15で制御されるが、そのデータ量
が転送されたかどうかをチェックする。1ライン分転送
されると、ライン数制御部103の値が、1だけカウン
トダウンされる。 ステップ7…設定されたライン数分だけ転送したかどう
かチェックする。ライン数制御部103の値がゼロとな
っていれば、転送は終了している。転送終了していれ
ば、プリントインターフェース制御部2の動作を終了さ
せる。 用紙にプリントされた状態は、従来と同じで、図7のよ
うになる。Step 4 ... If there is no data in the FIFO 14, it means that there is no data although it should be output, so it is processed as an error. Step 5 ... If there is data in the FIFO 14, shifter 9
Output to the printer 12 via. Step 6: CP from the FIFO 14 to the shifter 9 in advance
The FIFO control unit 15 controls so that the data for the line width set by U4 is sent. It is checked whether or not the data amount has been transferred. When one line is transferred, the value of the line number control unit 103 is decremented by 1. Step 7 ... It is checked whether the set number of lines have been transferred. If the value of the line number control unit 103 is zero, the transfer is completed. If the transfer is completed, the operation of the print interface controller 2 is ended. The state of being printed on the paper is the same as the conventional one, and is as shown in FIG.
【0025】(第2の実施例)図3は、本発明の第2の
実施例にかかわるプリンタ制御装置を示す図である。符
号は図1のものに対応し、104はライン幅制御部であ
る。第1の実施例と異なる点は、プリント出力制御部1
0にライン幅制御部104を追加した点である。第1の
実施例では、ライン幅がDMA転送のアクセス単位
(例、8画素単位)でしか設定できなかったが、第2の
実施例では、イメージデータが前記アクセス単位でしか
用意されていなくっても、ライン幅は1画素単位の精度
で印刷できるようにしたものである。(Second Embodiment) FIG. 3 is a diagram showing a printer control apparatus according to the second embodiment of the present invention. Reference numerals correspond to those in FIG. 1, and 104 is a line width control unit. The difference from the first embodiment is that the print output control unit 1
The point is that the line width control unit 104 is added to 0. In the first embodiment, the line width can be set only in the access unit of DMA transfer (for example, in units of 8 pixels), but in the second embodiment, the image data is prepared only in the access unit. However, the line width can be printed with an accuracy of one pixel unit.
【0026】図9は、第2の実施例によるプリント状態
を示す図である。符号は図7のものに対応し、27はイ
メージの印刷ライン幅、28はイメージの設定ライン幅
である。Kの添字の付いたD1K, D2K,DMKは、DMA
転送のアクセス単位の画素数(例、8画素)より少ない
画素数(例、1画素)のデータである。FIG. 9 is a diagram showing a printing state according to the second embodiment. Reference numerals correspond to those in FIG. 7, 27 is a print line width of the image, and 28 is a set line width of the image. D 1K, D 2K and D MK with the suffix K are DMA
The data has the number of pixels (eg, 1 pixel) smaller than the number of pixels of the access unit for transfer (eg, 8 pixels).
【0027】イメージデータ上でのライン幅の設定は、
第1の実施例(図1)と同様にして、CPU4によって
FIFO制御部15に対して行われる。ここでの設定
は、前記アクセス単位データ幾つで1ラインとするかと
いうように、アクセス単位データを単位として行われ
る。もし、ここで設定されたライン幅のイメージデータ
を全てプリンタ12に送って印刷すると、最初のライン
は、図9のD11からD1Nまでが印刷されるというよう
に、図9に図示したイメージの設定ライン幅28の幅に
印刷される。これは第1の実施例と同様である(図7参
照)。For setting the line width on the image data,
Similar to the first embodiment (FIG. 1), the processing is performed by the CPU 4 on the FIFO control unit 15. The setting here is made in units of access unit data, such as how many access unit data are used for one line. If all the image data of the line width set here is sent to the printer 12 and printed, the first line is printed from D 11 to D 1N of FIG. 9, and the image shown in FIG. 9 is displayed. The width of the set line width 28 is printed. This is similar to the first embodiment (see FIG. 7).
【0028】一方、ライン幅制御部104には、実際に
印刷するライン幅を、FIFO制御部15に設定された
ライン幅より短い範囲で、1画素単位で設定する。シフ
タ9からプリンタ12への出力の制御はプリント出力制
御部10によって行われるが、その際、ライン幅制御部
104で設定したライン幅を超える部分のデータは、印
刷を行わないデータ値(例えば、ゼロ)に強制的に変更
されて出力される。従って、実際に印刷されるライン幅
は、図9に図示するイメージの印刷ライン幅27とな
る。ライン幅制御部104での設定は1画素単位で行う
から、ライン幅を1画素単位で調節できる。なお、イメ
ージデータ値の強制的変更は、FIFO14からシフタ
9へ出力する時に行ってもよい。On the other hand, in the line width control unit 104, the line width to be actually printed is set in units of one pixel within a range shorter than the line width set in the FIFO control unit 15. The control of the output from the shifter 9 to the printer 12 is performed by the print output control unit 10. At that time, the data of the portion exceeding the line width set by the line width control unit 104 is a data value that does not print (for example, It is forcibly changed to zero) and output. Therefore, the line width actually printed is the print line width 27 of the image shown in FIG. Since the setting in the line width control unit 104 is performed in the unit of one pixel, the line width can be adjusted in the unit of one pixel. The image data value may be forcibly changed when the FIFO 14 outputs it to the shifter 9.
【0029】(第3の実施例)図4は、本発明の第3の
実施例にかかわるプリンタ制御装置を示す図である。符
号は図1のものに対応し、16は拡張FIFO制御部で
ある。拡張FIFO制御部16は、FIFO14からシ
フタ9への出力を制御すると共に、シフタ9からプリン
タ12への出力の制御にも関与する。即ち、シフタ9か
らプリンタ12へ出力している時、1画素単位で所定の
ライン幅分だけ出力すると、出力を一旦停止する。そし
て、次のライン同期信号が来た時、出力を再開する。(Third Embodiment) FIG. 4 is a diagram showing a printer control apparatus according to the third embodiment of the present invention. Reference numerals correspond to those in FIG. 1, and 16 is an extended FIFO control unit. The extended FIFO control unit 16 controls the output from the FIFO 14 to the shifter 9 and also controls the output from the shifter 9 to the printer 12. That is, when outputting from the shifter 9 to the printer 12, if the output is for a predetermined line width per pixel, the output is temporarily stopped. Then, when the next line synchronization signal arrives, the output is restarted.
【0030】一方、システムメモリ5にイメージデータ
6を展開する際、実際に印刷しようとしているライン幅
に合わせ、それに必要なデータを展開する。即ち、第2
の実施例では、図9の最初のラインに例をとれば、デー
タD1Kの次のデータから最後のD1Nまでのデータは、ラ
イン幅を超える位置のデータであったために印刷され
ず、無駄なデータとして終わってしまったが、第3の実
施例では、そのような無駄なデータの展開は最初からし
ない。On the other hand, when developing the image data 6 in the system memory 5, the necessary data is developed in accordance with the line width to be actually printed. That is, the second
In the embodiment of the present invention, taking the first line in FIG. 9 as an example, the data from the data next to the data D 1K to the last data D 1N is not printed because it is the data at the position exceeding the line width and is wasted. However, in the third embodiment, such useless data expansion is not performed from the beginning.
【0031】第3の実施例(図4)のシステムメモリ5
では、1ライン目のデータとしてD11〜D1Kまでが展開
されているが、印刷しようとしているライン幅がDMA
転送のアクセス単位データの倍数ではない場合には、1
ラインの末端のデータD1Kは該アクセス単位以下のデー
タ(例えば、3画素とか2画素)となる。2ライン目の
最初の部分のデータD21のデータサイズは、1ライン目
の末端のデータD1Kと合わせて1つのアクセス単位デー
タとなるようなデータサイズとされる。他のラインの末
端および先頭も、同様に展開される。System memory 5 of the third embodiment (FIG. 4)
Then, D 11 to D 1K are expanded as the data of the first line, but the line width to be printed is DMA.
1 if it is not a multiple of the transfer access unit data
The data D 1K at the end of the line is data below the access unit (for example, 3 pixels or 2 pixels). The data size of the data D 21 in the first part of the second line is set to be one access unit data together with the data D 1K at the end of the first line. The ends and heads of the other lines are similarly expanded.
【0032】FIFO14へ転送されたD1KとD21は、
やがてシフタ9へ出力されるが、シフタ9から1画素単
位でプリンタ12へ出力して行き、D1Kのデータを送り
終えたところで、拡張FIFO制御部16はライン幅分
だけ送出したことを知る。そこでプリンタ12への出力
を停止する。D21のデータの送出は、プリンタ12から
次のライン同期信号が来てから開始されるが、そのデー
タは2ライン目の先頭からの印刷に使用される。D 1K and D 21 transferred to the FIFO 14 are
Eventually, the data is output to the shifter 9, but from the shifter 9 to the printer 12 pixel by pixel, and when the data of D 1K has been sent, the extended FIFO control unit 16 knows that the line width has been sent. Therefore, the output to the printer 12 is stopped. The transmission of the data of D 21 is started after the next line synchronization signal comes from the printer 12, and the data is used for printing from the beginning of the second line.
【0033】図8は、第3の実施例によるプリント状態
を示す図である。符号は、図7のものに対応している。
前記した動作により、データD11〜D1Kで1ライン目が
印刷され、データD21〜D2Kで2ライン目が印刷されて
いる。D1KはDMA転送のアクセス単位以下のデータで
あるから、イメージの印刷ライン幅27は、任意の画素
数の長さとすることが出来る。FIG. 8 is a diagram showing a print state according to the third embodiment. The reference numerals correspond to those in FIG. 7.
The operation described above, the first line in the data D 11 to D 1K is printed, the second line in the data D 21 to D 2K are printed. Since D 1K is data equal to or less than the access unit of DMA transfer, the print line width 27 of the image can be set to the length of an arbitrary number of pixels.
【0034】図10は、DMA制御部13の他の構成例
を示す図である。現アドレス検知部31は、DMA転送
中の現在のアドレスを検知する。アドレス比較部30
は、その現在のアドレスと比較アドレス提供部32のア
ドレスとを比較する。比較アドレス提供部32には、D
MA転送開始アドレス321とDMA転送終了アドレス
322とが設定されており、それらとの比較により、転
送の開始と終了とを判断する。FIG. 10 is a diagram showing another configuration example of the DMA control unit 13. The current address detection unit 31 detects the current address during the DMA transfer. Address comparison unit 30
Compares the current address with the address of the comparison address providing unit 32. In the comparison address providing unit 32, D
The MA transfer start address 321 and the DMA transfer end address 322 are set, and the start and end of the transfer are determined by comparing them.
【0035】[0035]
【発明の効果】以上述べた如く、本発明のプリンタ制御
装置によれば、システムメモリに展開されたイメージデ
ータは、DMA転送によりプリントインターフェース制
御部内の一時記憶手段(FIFO)に随時送られる。こ
のDMA転送は、プリンタのプリントするタイミング
(例、ライン同期信号等)とは無関係に、バスが空いて
いる時に随時行えるので、プリントするタイミングにイ
メージデータが間に合わなくなることはない。従って、
1ページのイメージデータを保持しておけるメモリを、
プリントインターフェース制御部内に持つ必要がない。
また、イメージデータをシステムメモリの連続アドレス
領域に展開しておき、DMA転送を各ライン毎ではなく
連続的に行うので、各ラインの先頭アドレスを記録する
ためのテーブルなどは設ける必要がない。従って、コス
トが安くなる。As described above, according to the printer control apparatus of the present invention, the image data expanded in the system memory is sent to the temporary storage means (FIFO) in the print interface control section by DMA transfer at any time. This DMA transfer can be performed at any time when the bus is idle, regardless of the printing timing of the printer (for example, line synchronization signal, etc.), so that the image data will not fall behind the printing timing. Therefore,
A memory that can hold one page of image data,
It is not necessary to have it in the print interface control unit.
Further, since the image data is expanded in the continuous address area of the system memory and the DMA transfer is continuously performed instead of each line, it is not necessary to provide a table or the like for recording the head address of each line. Therefore, the cost is reduced.
【図1】 本発明の第1の実施例にかかわるプリンタ制
御装置を示す図FIG. 1 is a diagram showing a printer control device according to a first embodiment of the present invention.
【図2】 本発明におけるデータ転送動作およびプリン
タ出力動作を説明するフローチャートFIG. 2 is a flowchart illustrating a data transfer operation and a printer output operation according to the present invention.
【図3】 本発明の第2の実施例にかかわるプリンタ制
御装置を示す図FIG. 3 is a diagram showing a printer control device according to a second embodiment of the present invention.
【図4】 本発明の第3の実施例にかかわるプリンタ制
御装置を示す図FIG. 4 is a diagram showing a printer control device according to a third embodiment of the present invention.
【図5】 従来のプリンタ制御装置を示す図FIG. 5 is a diagram showing a conventional printer control device.
【図6】 シフタの動作を説明する図FIG. 6 is a diagram for explaining the operation of the shifter.
【図7】 ライン幅がDMA転送のアクセス単位の画素
数の倍数とされているプリント状態を示す図FIG. 7 is a diagram showing a print state in which the line width is a multiple of the number of pixels in the access unit of DMA transfer.
【図8】 第3の実施例によるプリント状態を示す図FIG. 8 is a diagram showing a print state according to a third embodiment.
【図9】 第2の実施例によるプリント状態を示す図FIG. 9 is a diagram showing a print state according to a second embodiment.
【図10】DMA制御部の他の構成例を示す図FIG. 10 is a diagram showing another configuration example of a DMA control unit.
1…プリンタ制御装置、2…プリントインターフェース
制御部、3…バス、4…CPU、5…システムメモリ、
6…イメージデータ、7…イメージメモリ、8…ライン
バッファ、9…シフタ、10…プリント出力制御部、1
01…左マージン制御部、102…上マージン制御部、
103…ライン数制御部、104…ライン幅制御部、1
1…外部記憶装置、12…プリンタ、13…DMA制御
部、14…FIFO、15…FIFO制御部、16…拡
張FIFO制御部、20…用紙、21…イメージ、22
…ライン同期信号、23…上マージン、24…イメージ
のライン数、25…ページ同期信号、26…左マージ
ン、27…イメージの印刷ライン幅、28…イメージの
設定ライン幅、30…アドレス比較部、31…現アドレ
ス検知部、32…比較アドレス提供部1 ... Printer control device, 2 ... Print interface control unit, 3 ... Bus, 4 ... CPU, 5 ... System memory,
6 ... Image data, 7 ... Image memory, 8 ... Line buffer, 9 ... Shifter, 10 ... Print output control unit, 1
01 ... left margin control unit, 102 ... upper margin control unit,
103 ... Line number control unit, 104 ... Line width control unit, 1
DESCRIPTION OF SYMBOLS 1 ... External storage device, 12 ... Printer, 13 ... DMA control part, 14 ... FIFO, 15 ... FIFO control part, 16 ... Extended FIFO control part, 20 ... Paper, 21 ... Image, 22
... line synchronization signal, 23 ... upper margin, 24 ... image line number, 25 ... page synchronization signal, 26 ... left margin, 27 ... image print line width, 28 ... image setting line width, 30 ... address comparison unit, 31 ... Current address detection unit, 32 ... Comparison address provision unit
Claims (3)
システムメモリと、該システムメモリから転送されたイ
メージデータを印刷条件に適合するよう制御しながらプ
リンタへ出力するプリントインターフェース制御部とを
具えたプリンタ制御装置において、前記システムメモリ
の連続アドレス領域にイメージデータを展開する手段を
具えると共に、前記プリントインターフェース制御部の
構成を、イメージデータの一時記憶手段と、前記システ
ムメモリに展開されたイメージデータを前記一時記憶手
段にDMA転送する手段と、前記一時記憶手段から入力
されたイメージデータをプリンタへ1画素単位で出力す
るデータ変換手段と、設定されたライン幅のイメージデ
ータを前記一時記憶手段から前記データ変換手段へ出力
する際の制御を行う一時記憶制御手段と、該データ変換
手段からプリンタへの出力を制御するプリント出力制御
手段とを有する構成としたことを特徴とするプリンタ制
御装置。1. A printer comprising a CPU, a system memory in which image data is expanded, and a print interface control unit for outputting the image data transferred from the system memory to a printer while controlling the image data to meet printing conditions. The control device comprises means for expanding image data in a continuous address area of the system memory, and the structure of the print interface control unit includes a temporary storage means for image data and an image data expanded in the system memory. Means for DMA transfer to the temporary storage means, data conversion means for outputting the image data input from the temporary storage means to the printer in units of one pixel, and image data of a set line width from the temporary storage means. Performs control when outputting to data conversion means A printer control device comprising a temporary storage control means and a print output control means for controlling output from the data conversion means to a printer.
画素単位プリンタへ出力すると、一時記憶制御手段にC
PUにより設定されているライン幅の残りイメージデー
タの値を印刷されない値に強制的に変更して出力するラ
イン幅制御部を、プリント出力制御手段内に設けたこと
を特徴とする請求項1記載のプリンタ制御装置。2. When the image data is output from a line head to a predetermined pixel unit printer, the temporary storage control means C
The line width control unit for forcibly changing the value of the remaining image data of the line width set by the PU to a value that is not printed and outputting the line width control unit is provided in the print output control means. Printer controller.
段からプリンタへ出力するイメージデータのライン幅
を、CPUにより設定されたライン幅とは異なったライ
ン幅に制御することも行う一時記憶制御手段としたこと
を特徴とする請求項1記載のプリンタ制御装置。3. The temporary storage control means for controlling the temporary storage control means so that the line width of the image data output from the data conversion means to the printer is different from the line width set by the CPU. The printer control device according to claim 1, wherein
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16417093A JP3334258B2 (en) | 1993-06-08 | 1993-06-08 | Printer control device and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16417093A JP3334258B2 (en) | 1993-06-08 | 1993-06-08 | Printer control device and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06344607A true JPH06344607A (en) | 1994-12-20 |
| JP3334258B2 JP3334258B2 (en) | 2002-10-15 |
Family
ID=15788064
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16417093A Ceased JP3334258B2 (en) | 1993-06-08 | 1993-06-08 | Printer control device and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3334258B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1989002608A1 (en) * | 1987-09-14 | 1989-03-23 | Aster Corporation | Fiber optic coupler |
| JPH0995015A (en) * | 1995-09-29 | 1997-04-08 | Tec Corp | Color printer |
-
1993
- 1993-06-08 JP JP16417093A patent/JP3334258B2/en not_active Ceased
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1989002608A1 (en) * | 1987-09-14 | 1989-03-23 | Aster Corporation | Fiber optic coupler |
| JPH0995015A (en) * | 1995-09-29 | 1997-04-08 | Tec Corp | Color printer |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3334258B2 (en) | 2002-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05336385A (en) | Image processing device | |
| JP3334258B2 (en) | Printer control device and method | |
| JP3414021B2 (en) | Image output device | |
| JP3017600B2 (en) | Image display method and apparatus | |
| JP3039503B2 (en) | Control device and control method in printer system | |
| JP3159855B2 (en) | Access circuit for image memory in printing apparatus and printing apparatus | |
| JP3396831B2 (en) | Printer system | |
| JPH06340130A (en) | Control device of printer | |
| JPH08152978A (en) | Controller for printer engine | |
| JPH09288639A (en) | Information processing device | |
| JPS63222864A (en) | Page printer control | |
| JPH07195760A (en) | Printer controller | |
| JPH0930080A (en) | Page printer device | |
| JPH0924662A (en) | Printer | |
| JP3210598B2 (en) | Print control device and print control method | |
| JPS62159219A (en) | printer control device | |
| JPH11320985A (en) | Output method and device, and storage medium | |
| JPS6349824A (en) | Printer control system | |
| JPH05212913A (en) | Image forming device | |
| JP2001239707A (en) | Printer control device and data transfer method thereof | |
| JPH0713849A (en) | Image processing device | |
| JPH06295281A (en) | Print controller | |
| JP2001166901A (en) | High-speed rotation image data transfer system | |
| JPH07195761A (en) | Printer | |
| JPH06295282A (en) | Print controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RVOP | Cancellation by post-grant opposition |