JPH07178972A - Device and method for image recording - Google Patents

Device and method for image recording

Info

Publication number
JPH07178972A
JPH07178972A JP32377793A JP32377793A JPH07178972A JP H07178972 A JPH07178972 A JP H07178972A JP 32377793 A JP32377793 A JP 32377793A JP 32377793 A JP32377793 A JP 32377793A JP H07178972 A JPH07178972 A JP H07178972A
Authority
JP
Japan
Prior art keywords
image
dma
memory
recording
buffer memory
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
Application number
JP32377793A
Other languages
Japanese (ja)
Other versions
JP2958229B2 (en
Inventor
Tomoo Iiizumi
知男 飯泉
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP32377793A priority Critical patent/JP2958229B2/en
Publication of JPH07178972A publication Critical patent/JPH07178972A/en
Application granted granted Critical
Publication of JP2958229B2 publication Critical patent/JP2958229B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To shorten a latency of other processing to access to an image memory such as plotting processing by controlling a state of DMA transfer from the image memory to a buffer memory in accordance with condition of data transfer from the buffer memory to a printer engine. CONSTITUTION:An image data expanded (plotted) in an image memory 5 is transferred to an FIFO 4 by a DMA circuit 2. From the FIFO 4, images are fetched sequentially in accordance with operating speed of an engine and outputted. When a considerable quantity of non-outputted data is present in the FIFO 4 (for example, when 3/4 of it is non-outputted), the transfer to the FIFO 4 by the DMA circuit 2 is inhibited, and a DMA transfer of an image generated by a plotting circuit 1 is performed. When the quantity of the data in the FIFO 4 becomes small, a burst transfer of a predetermined quantity of unit to the FIFO 4 is performed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像記録装置及び方法、
詳しくは上位装置から受信した印刷データに基づく画像
を所定の記録媒体上に記録し、出力する印刷装置及び方
法に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to an image recording apparatus and method,
More specifically, the present invention relates to a printing apparatus and method for recording an image based on print data received from a higher-level device on a predetermined recording medium and outputting the image.

【0002】[0002]

【従来の技術】近年、レーザビームプリンタに代表され
るページプリンタが急速に普及しつつある。
2. Description of the Related Art In recent years, page printers typified by laser beam printers have rapidly become popular.

【0003】通常、この種の装置においては、1ページ
分のビットマップメモリを備えているか、1ページ分の
数分の1のビットマップメモリを備えている。後者の方
式は、バンド(1ページのイメージを横方向に何当分か
したときの1つの帯状部分)単位に画像の記録をおこな
うことになり、メモリ容量が少なく済むのでコスト的に
有利である。
In general, this type of apparatus has a bitmap memory for one page or a fraction of a bitmap memory for one page. The latter method is advantageous in terms of cost because an image is recorded in units of bands (one band-shaped portion when one page image is divided in the horizontal direction), which requires less memory capacity.

【0004】一般にバンド毎に記録するには、或るバン
ドのイメージをメモリに展開した際にプリンタエンジン
にそのメモリ中のラインイメージをバッファメモリ(F
IFOメモリ)にDMA転送する。FIFOメモリに転
送された1ライン分のイメージデータは、プリンタエン
ジンの動作速度に合わせて順次読み出されてシリアルデ
ータに変換され、プリンタエンジンに出力される。
Generally, in order to record each band, when an image of a certain band is developed in a memory, a line image in the memory is stored in a buffer memory (F) in a printer engine.
DMA transfer to IFO memory). The image data for one line transferred to the FIFO memory is sequentially read according to the operating speed of the printer engine, converted into serial data, and output to the printer engine.

【0005】FIFOメモリに転送済みのビットマップ
メモリ上のライン部分は、次のバンドイメージにための
描画対象になる。
The line portion on the bit map memory which has been transferred to the FIFO memory becomes a drawing target for the next band image.

【0006】[0006]

【発明が解決しようとする課題】ページプリンタの場
合、公知の如く、一旦、記録紙が感光ドラムまで搬送さ
れ、レーザビームによる走査および現像処理が開始され
ると、その動作を止めるわけにはいかない。
In the case of a page printer, as is well known, once the recording paper is conveyed to the photosensitive drum and the scanning and developing processing by the laser beam is started, the operation cannot be stopped. .

【0007】これは、バンド単位に画像を記録する装置
でも同様である。ここで、受信した印刷データが多量に
あって、しかもそれによる描画内容が複雑な場合を想定
してみると、途中のバンドイメージを展開処理がまだ完
了していないうちに、そのバンドイメージのFIFOへ
のDMA転送要求時期になってしまう危惧がある。
This also applies to an apparatus for recording an image in band units. Here, supposing that the received print data is large and the drawing contents due to the received print data are complicated, the FIFO of the band image is processed before the expansion processing of the band image in the middle is completed. There is a fear that it will be the time to request the DMA transfer to.

【0008】このような状態になると、もはや正常な出
力像は望めない。
In such a state, a normal output image can no longer be expected.

【0009】従って、バンドイメージ展開に費やす時間
を多くしなければならないが、これまでのこの種の装置
では、ビットマップメモリからDMA転送でFIFOメ
モリに転送する情報量(バースト長)は固定であり、且
つ、そのタイミングも固定で行われいたので、描画処理
に割り当てられる時間が自ずと限られていた。
Therefore, it is necessary to increase the time spent for developing the band image. However, in this type of device so far, the amount of information (burst length) transferred from the bitmap memory to the FIFO memory by DMA transfer is fixed. Moreover, since the timing is fixed, the time allotted to the drawing process is naturally limited.

【0010】[0010]

【課題を解決するための手段】本発明は、かかる問題点
に鑑みなされたものであり、バッファメモリからプリン
タエンジンへのデータ転送の状況に応じて、画像メモリ
からバッファメモリへのDMA転送状態を制御すること
で、描画処理など画像メモリに対してアクセスする他の
処理の待ち時間を軽減することを可能にする画像記録装
置及び方法を提供しようとするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and determines the DMA transfer state from the image memory to the buffer memory according to the status of data transfer from the buffer memory to the printer engine. An object of the present invention is to provide an image recording apparatus and method that can reduce the waiting time of other processing such as drawing processing for accessing an image memory by controlling.

【0011】この課題を解決するため、本発明の画像処
理装置は以下に示す構成を備える。すなわち、上位装置
からの印刷データに基づく可視画像を所定の記録媒体上
に記録する記録手段を備える画像記録装置において、出
力イメージデータを展開する画像メモリと、該画像メモ
リに展開されたイメージデータを前記記録手段の記録速
度に合わせて転送するためのバッファメモリと、前記画
像メモリ内のイメージデータを前記バッファメモリにD
MA転送するDMA手段と、前記バッファメモリ内の未
転送のイメージデータの量に応じて、前記DMA手段に
よる転送状態を制御する制御手段とを備える。
In order to solve this problem, the image processing apparatus of the present invention has the following configuration. That is, in an image recording apparatus including a recording unit that records a visible image based on print data from a higher-level device on a predetermined recording medium, an image memory that expands output image data and an image data expanded in the image memory are displayed. A buffer memory for transferring in accordance with the recording speed of the recording means, and image data in the image memory is stored in the buffer memory.
DMA means for MA transfer and control means for controlling the transfer state by the DMA means according to the amount of untransferred image data in the buffer memory.

【0012】また、他の発明は以下の構成を備えるすな
わち、上位装置からの印刷データに基づく可視画像を所
定の記録媒体上に記録する記録手段を備える画像記録装
置において、出力イメージデータを展開する画像メモリ
と、該画像メモリに展開されたイメージデータを前記記
録手段の記録速度に合わせて転送するためのバッファメ
モリと、前記画像メモリ内のイメージデータを前記バッ
ファメモリにDMA転送するとともに、前記画像メモリ
へ展開するイメージデータをDMA転送するDMA手段
と、前記バッファメモリ内の未転送のイメージデータの
量に応じて、前記DMA手段の獲得優先順位を制御する
制御手段とを備える。
Another aspect of the invention is to develop output image data in an image recording apparatus having the following configuration, that is, in an image recording apparatus having recording means for recording a visible image based on print data from a higher-level device on a predetermined recording medium. An image memory, a buffer memory for transferring the image data expanded in the image memory at the recording speed of the recording means, and DMA transfer of the image data in the image memory to the buffer memory, and the image DMA means for DMA-transferring the image data to be expanded in the memory, and control means for controlling the acquisition priority of the DMA means according to the amount of untransferred image data in the buffer memory.

【0013】また、本願発明の画像処理方法は以下に示
す工程を備える。すなわち、上位装置からの印刷データ
に基づく可視画像を所定の記録媒体上に記録する画像記
録方法において、出力イメージデータ展開用の画像メモ
リに展開されたイメージデータを、所定の記録手段の記
録速度に合わせて転送するためのバッファメモリにDM
A転送する工程と、前記バッファメモリ内の未転送のイ
メージデータの量に応じて、DMA転送状態を制御する
工程とを備える。
Further, the image processing method of the present invention comprises the following steps. That is, in an image recording method of recording a visible image based on print data from a higher-level device on a predetermined recording medium, the image data expanded in an image memory for output image data expansion is set to a recording speed of a predetermined recording unit. DM in the buffer memory for transferring together
A transfer step and a step of controlling the DMA transfer state according to the amount of untransferred image data in the buffer memory are provided.

【0014】また、本願発明の画像処理方法は以下に示
す工程を備える。すなわち、上位装置からの印刷データ
に基づく可視画像を所定の記録媒体上に記録する画像記
録方法において、出力イメージデータ展開用の画像メモ
リに展開されたイメージデータを、所定の記録手段の記
録速度に合わせて転送するためのバッファメモリにDM
A転送するとともに、前記画像メモリへ展開するイメー
ジデータをDMA転送する工程と、前記バッファメモリ
内の未転送のイメージデータの量に応じて、前記DMA
の獲得優先順位を制御する工程とを備える。
Further, the image processing method of the present invention comprises the following steps. That is, in an image recording method of recording a visible image based on print data from a higher-level device on a predetermined recording medium, the image data expanded in an image memory for output image data expansion is set to a recording speed of a predetermined recording unit. DM in the buffer memory for transferring together
A transfer and A DMA transfer of the image data to be expanded in the image memory, and the DMA according to the amount of untransferred image data in the buffer memory.
And controlling the acquisition priority of the.

【0015】[0015]

【作用】かかる本発明の構成或いは工程において、画像
メモリに展開されたイメージデータをバッファメモリに
転送する際、バッファメモリに格納されている未出力イ
メージデータの量に応じて、一回の転送にかかる情報量
を換え、画像メモリにアクセスする他の描画手段の待ち
時間を短縮させる。
In the structure or process of the present invention, when the image data expanded in the image memory is transferred to the buffer memory, the transfer is performed once depending on the amount of the non-output image data stored in the buffer memory. By changing the amount of such information, the waiting time of other drawing means for accessing the image memory is shortened.

【0016】[0016]

【実施例】以下、添付図面に従って本発明にかかる実施
例を詳細に説明する。
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

【0017】<装置構成の説明>図1は、実施例におけ
るレーザビームプリンタの主要部分(プリンタコントロ
ーラ)のブロック構成図を示している。
<Explanation of Device Configuration> FIG. 1 is a block diagram showing the main part (printer controller) of the laser beam printer in the embodiment.

【0018】同図において、1はイメージ描画を行う描
画回路、2はDMA転送を行うDMA回路、3はDMA
バースト長カウンタである。また、4はプリンタエンジ
ンへ転送されるイメージを記憶するFIFOメモリであ
り、1ラインもしくは複数ライン分の容量を有する。5
はビットマップイメージを展開する画像メモリ、6はビ
デオ回路、7はエンジン、8はバスである。9はプリン
タコントローラおよび装置全体の制御を司るCPUであ
る。10はCPU9によって処理される処理手順(プロ
グラム)およびフォントデータなどを記憶しているRO
M、11はCPUのワークエリアとして使用されたり、
受信バッファなどにも活用されるRAMである。また、
12は上位装置(ホストコンピュータ)から印刷データ
を受信するためのインタフェースである。
In the figure, 1 is a drawing circuit for drawing an image, 2 is a DMA circuit for performing a DMA transfer, and 3 is a DMA.
It is a burst length counter. Reference numeral 4 is a FIFO memory that stores an image transferred to the printer engine, and has a capacity of one line or a plurality of lines. 5
Is an image memory for developing a bitmap image, 6 is a video circuit, 7 is an engine, and 8 is a bus. A CPU 9 controls the printer controller and the entire apparatus. An RO 10 stores a processing procedure (program) processed by the CPU 9 and font data.
M and 11 are used as CPU work areas,
This is a RAM that is also used as a reception buffer. Also,
Reference numeral 12 is an interface for receiving print data from a host device (host computer).

【0019】エンジン7の構造とその動作を図2に基づ
いて説明する。尚、本実施例のレーザビームプリンタは
ホストコンピュータから文字パターンの登録や定着書式
(フォームデータ)などの登録が行える。
The structure and operation of the engine 7 will be described with reference to FIG. The laser beam printer of this embodiment can register a character pattern and a fixing form (form data) from a host computer.

【0020】同図において、740はLBP本体であ
り、外部に接続されているホストコンピュータから供給
される文字情報(文字コード)やフォーム情報あるいは
マクロ命令などを入力して記憶するとともに、それらの
情報に従って対応する文字パターンやフォームパターン
などを作成し、記録媒体である記録紙上に像を形成す
る。700は操作のためのスイッチおよびLCD表示器
などが配されている操作パネル、701はLBP740
全体に制御およびホストコンピュータから供給される文
字情報などを解析するプリンター制御ユニットであり、
図1に示した各回路構成を含んでいる。この制御ユニッ
ト701は、主に文字情報を対応する文字パターンをビ
デオ信号に変換してレーザドライバ702に出力する。
レーザドライバ702は半導体レーザ703を駆動する
ための回路であり、入力されたビデオ信号に応じて半導
体レーザ703から発射されるレーザ光704をオンオ
フ切り替えする。レーザ光704は回転多面鏡705で
左右方向に振られ静電ドラム706上を走査する。これ
により、静電ドラム706上には文字パターン等の静電
潜像が形成される。この潜像は、静電ドラム706周囲
の現像ユニット707により現像された後、記録紙に転
写される。この記録紙にはカットシートを用い、カット
シート記録紙はLBP740に装着した着脱自在の用紙
カセット708に収納され、給紙ローラ709および配
送ローラ710と711とにより装置内に取り込まれ
て、静電ドラム706に供給される。そして、現像器7
07によって静電ドラム706上に付着されたトナー像
は、搬送されてきた記録紙に転写される。その後、記録
紙は定着器712方向に搬送され、トナーが定着され、
最終的に排出ローラ713によって外部に排出される。
In the figure, reference numeral 740 denotes an LBP main body, which inputs and stores character information (character code) supplied from an externally connected host computer, form information, macro commands, and the like. A corresponding character pattern or form pattern is created in accordance with the above, and an image is formed on the recording paper which is a recording medium. 700 is an operation panel on which switches for operation and an LCD display are arranged, and 701 is an LBP 740.
A printer control unit that analyzes the entire control and character information supplied from the host computer.
Each circuit configuration shown in FIG. 1 is included. The control unit 701 mainly converts the corresponding character pattern of character information into a video signal and outputs the video signal to the laser driver 702.
The laser driver 702 is a circuit for driving the semiconductor laser 703, and switches on / off the laser light 704 emitted from the semiconductor laser 703 according to an input video signal. The laser light 704 is swung in the left-right direction by the rotating polygon mirror 705 and scans the electrostatic drum 706. As a result, an electrostatic latent image such as a character pattern is formed on the electrostatic drum 706. The latent image is developed by the developing unit 707 around the electrostatic drum 706 and then transferred to the recording paper. A cut sheet is used as this recording paper, and the cut sheet recording paper is stored in a removable paper cassette 708 mounted on the LBP 740, and is taken into the apparatus by a paper feed roller 709 and delivery rollers 710 and 711, and electrostatically discharged. It is supplied to the drum 706. And the developing device 7
The toner image adhered on the electrostatic drum 706 by 07 is transferred to the conveyed recording paper. After that, the recording paper is conveyed toward the fixing device 712, the toner is fixed,
Finally, it is discharged to the outside by the discharge roller 713.

【0021】<動作説明>上記構成において、CPU9
は、ホストコンピュータから送られたデータを受信し、
一度RAM11の受信バッファに貯える。続いて、その
データに従って、印字すべき画像データを発生するため
中間コードを生成し、それを描画回路1へ出力する。描
画回路1は、DMA回路2を通じてバーストメモリアク
セス等で、画像メモリ5に指示された画像イメージデー
タを書き込む。
<Description of Operation> In the above configuration, the CPU 9
Receives the data sent from the host computer,
It is temporarily stored in the reception buffer of the RAM 11. Then, according to the data, an intermediate code for generating image data to be printed is generated and output to the drawing circuit 1. The drawing circuit 1 writes the instructed image image data in the image memory 5 through burst memory access or the like through the DMA circuit 2.

【0022】一方、ある範囲(バンド)の画像イメージ
データが描画し終えたところで、CPU9はビデオ回路
6に起動をかけ、エンジン7へ画像イメージデータの転
送を指示する。
On the other hand, when the drawing of the image image data of a certain range (band) is completed, the CPU 9 activates the video circuit 6 and instructs the engine 7 to transfer the image image data.

【0023】ビデオ回路6は、DMA回路2に画像メモ
リ5の画像データを読み出し、FIFO4へ入力するよ
うに指示を出する。これにより、画像メモリ5からは1
ラインのイメージがFIFO4へ転送される。FIFO
4に転送されたイメージデータはエンジン7の動作速度
に合わせて順次読み出され、不図示のパラレル・シリア
ル変換でシリアル信号に変換されてエンジン7に転送さ
れる。
The video circuit 6 instructs the DMA circuit 2 to read the image data of the image memory 5 and input it to the FIFO 4. As a result, the image memory 5
The image of the line is transferred to FIFO4. FIFO
The image data transferred to No. 4 is sequentially read according to the operating speed of the engine 7, converted into a serial signal by parallel-serial conversion (not shown), and transferred to the engine 7.

【0024】ここで、DMA回路2ではバスの使用効率
を上げるために、バーストリードでRAM5をアクセス
しデータ転送を行うが、バーストの長さはDMAバース
ト長カウンタ3によって4ワードまたは2ワードのいず
れかにセットされる。尚、DMA回路2は、そのソース
であるCPU9、描画回路1の優先順位、ビデオ回路6
は、描画回路1、CPU9の優先順位でDMAを受付け
るようになっているものとする。
Here, in the DMA circuit 2, the data is transferred by accessing the RAM 5 by burst read in order to improve the bus usage efficiency. The burst length is either 4 words or 2 words by the DMA burst length counter 3. It is set to crab. The DMA circuit 2 includes the CPU 9 as the source, the priority of the drawing circuit 1, the video circuit 6
It is assumed that the drawing circuit 1 and the CPU 9 are adapted to receive the DMA in the order of priority.

【0025】さて、印字を行いながら(エンジン7にシ
リアル信号の転送を行いながら)、次の印字用のイメー
ジデータの描画処理を描画回路1が行う場合には、ビデ
オ回路6のDMAが優先して実行され、そのDMAサイ
クルが終了して始めて描画回路1によるDMAが実行さ
れる。図4は第1の実施例の動作を説明したフローチャ
ートで、動作の開始後に、S1にてFIFO内のデータ
量のカウンタをクリアする。その後、FIFO内のデー
タ残量をまずステップS2で判断する。なお、この判断
は1つのDMAサイクルが終了して、次にどの回路から
DMAの処理をするかを決定する時点に行う。判断の結
果、もしFIFO内のデータ残量が1/2ならばステッ
プS4でDMAのバースト転送量を4にセットする。ま
た、ステップS3でFIFO内データ残量が3/4以下
〜1/2か否かを判断して、もし、3/4〜1/2であ
ればステップS5でDMAのバースト転送量を2にセッ
トする。また、FIFO内のデータ残量が3/4以上な
らばDMAの要求はせずに、ステップS2からのFIF
Oデータ残量の判断を繰返す。ステップS4,S5でD
MAのバースト転送量がセットされたなら、続いてステ
ップS6が実行され、DMA回路にDMAサービスの要
求を発行する。次に、ステップS7でDMAの転送が行
なわれるまで待ち、DMA転送が行なわれたら再びステ
ップS2からのFIFOデータ残量の判定を行う。
When the drawing circuit 1 performs the drawing process of the image data for the next printing while printing (while transferring the serial signal to the engine 7), the DMA of the video circuit 6 has priority. The drawing circuit 1 executes the DMA only after the DMA cycle is completed. FIG. 4 is a flowchart for explaining the operation of the first embodiment. After the operation is started, the counter of the data amount in the FIFO is cleared in S1. After that, the remaining amount of data in the FIFO is first determined in step S2. It should be noted that this determination is made at the time when one DMA cycle ends and it is determined from which circuit the DMA processing will be performed next. If the result of determination is that the remaining amount of data in the FIFO is 1/2, the burst transfer amount of DMA is set to 4 in step S4. In step S3, it is determined whether the remaining data amount in the FIFO is 3/4 or less to 1/2, and if it is 3/4 to 1/2, the burst transfer amount of DMA is set to 2 in step S5. set. If the remaining amount of data in the FIFO is 3/4 or more, the DMA request is not issued and the FIFO from step S2
O Repeat determination of remaining amount of data. D in steps S4 and S5
When the burst transfer amount of MA is set, step S6 is subsequently executed to issue a DMA service request to the DMA circuit. Next, in step S7, the process waits until DMA transfer is performed, and when the DMA transfer is performed, the remaining FIFO data from step S2 is determined again.

【0026】図5は図4とほぼ同じフローチャートだ
が、DMAの転送を待つステップS7を省き、常にFI
FOの残量をステップS12,S13で判断する。これ
によって、1度FIFO内データ残量が3/4になっ
て、DMAのバースト長を2としてDMA要求を待って
いる間に、FIFO内のデータが読み出され、FIFO
のデータ残量が1/2になってしまう場合にも、DMA
のバースト転送量を2/4に上げることを可能としてい
る。
FIG. 5 is almost the same flow chart as FIG. 4, except that step S7 waiting for DMA transfer is omitted and FI is always used.
The remaining amount of FO is determined in steps S12 and S13. As a result, once the remaining amount of data in the FIFO becomes 3/4, the data in the FIFO is read out while waiting for a DMA request with the DMA burst length set to 2, and the FIFO is read.
Even if the remaining amount of data becomes half, the DMA
It is possible to increase the burst transfer amount of 2 to 2/4.

【0027】ここで、実施例の特徴は、FIFO4に貯
っているデータ(未出力データ)の量が1/2以下の場
合には4ワード、1/2より大きい場合には2ワード、
更に3/4より大きい場合には、DMA転送を行わない
ようにする。これによって、これまで一定のDMA転送
量であった場合と比較し、FIFOメモリに残っている
データ量が多ければ多いほど、描画回路1の待っている
時間が短くて済み、次の描画動作を速く行うことができ
る。
Here, the feature of the embodiment is 4 words when the amount of data (non-output data) stored in the FIFO 4 is less than 1/2, 2 words when it is greater than 1/2,
If it is more than 3/4, DMA transfer is not performed. As a result, the larger the amount of data remaining in the FIFO memory is, the shorter the waiting time of the drawing circuit 1 is, and the next drawing operation is performed, as compared with the case where the DMA transfer amount is constant. You can do it fast.

【0028】<第2の実施例の説明>図3は、第2の実
施例の回路ブロック図である。図示において、1〜9は
上記実施例(第1の実施例)と同じで、異なるのは、D
MAのバースト長カウンタ3の代わりにDMA優先順位
判定回路13がある点である。本第2の実施例では、一
回のDMAでの転送されるデータ量は一定であるとす
る。
<Description of Second Embodiment> FIG. 3 is a circuit block diagram of the second embodiment. In the figure, 1 to 9 are the same as the above-described embodiment (first embodiment), and the difference is that D
The DMA priority determination circuit 13 is provided instead of the burst length counter 3 of the MA. In the second embodiment, it is assumed that the amount of data transferred in one DMA is constant.

【0029】DMA優先順位判定回路13にはFIFO
4よりFIFO内の残りのデータ量を示す3/4信号
と、1/2信号が入力されている。もし、FIFO内に
貯っているデータ量が1/2未満の場合は、DMAの優
先順位を描画回路1より上げ、1/2より大きく3/4
より少ない場合はDMAの優先順位を描画回路1より低
く設定する。また、3/4より大きい場合は、DMAの
転送要求は出さない。これにより、FIFOのデータ残
り量が多い(1/2以上)では、描画回路のDMAが優
先されて行われ、描画回路1の待ち時間が低減でき、回
路全体のスループットを向上できる。
The DMA priority determination circuit 13 has a FIFO.
4, a 3/4 signal indicating the remaining amount of data in the FIFO and a 1/2 signal are input. If the amount of data stored in the FIFO is less than 1/2, the priority of DMA is raised above the drawing circuit 1 and is greater than 1/2 and 3/4.
If it is smaller, the priority of DMA is set lower than that of the drawing circuit 1. If it is larger than 3/4, no DMA transfer request is issued. As a result, when the remaining amount of data in the FIFO is large (1/2 or more), the DMA of the drawing circuit is given priority, the waiting time of the drawing circuit 1 can be reduced, and the throughput of the entire circuit can be improved.

【0030】図6は、第2の実施例の動作を説明したフ
ローチャートで、動作の開始後、ステップS21にてF
IFOのデータ量のカウンタをクリアする。その後、F
IFO内のデータ残量をステップS22で判断し、もし
FIFO内のデータ残量が1/2ならばDMAの優先順
位をステップS28でレベル1に設定する。尚、ここで
レベル1はレベル2より高い優先順位とする。
FIG. 6 is a flow chart for explaining the operation of the second embodiment. After the operation starts, in step S21, F
Clear the IFO data amount counter. Then F
The remaining amount of data in the IFO is determined in step S22. If the remaining amount of data in the FIFO is 1/2, the priority of DMA is set to level 1 in step S28. Here, the level 1 has a higher priority than the level 2.

【0031】もし、FIFO内のデータ残量が1/2〜
3/4の場合は、ステップS23で判定され、もし3/
4〜1/2であればステップS29にてDMAの優先順
位をレベル2に設定する。また、FIFO内のデータ残
量が3/4以上であれば、ステップS30にてDMAの
要求を出さない。
If the remaining amount of data in the FIFO is 1/2 to
In the case of 3/4, it is determined in step S23, and if 3 /
If 4-1 / 2, the priority of DMA is set to level 2 in step S29. If the remaining data amount in the FIFO is 3/4 or more, no DMA request is issued in step S30.

【0032】なお、たとえば、第1の実施例と第2の実
施例とを組み合わせ、FIFO4に貯えられている情報
量に応じてDMAの優先順位と転送長を変えることも考
えられる。
Note that, for example, it is possible to combine the first embodiment and the second embodiment to change the priority order and transfer length of the DMA according to the amount of information stored in the FIFO 4.

【0033】また、DMAの条件を変えるFIFOのデ
ータの残り量も特に1/2、3/4に限ったものではな
く、これらはビデオ回路の必要量(エンジンの速度など
に依存する)と、DMAのサイクル長から決定される。
Further, the remaining amount of the FIFO data for changing the condition of the DMA is not particularly limited to 1/2 and 3/4, and these are the required amount of the video circuit (depending on the engine speed etc.), It is determined from the DMA cycle length.

【0034】また、FIFOのデータ量も2段階のセン
ス信号ではなく、2より大きい場合もDMAの優先順位
や1回のDMAの転送量をもっと細かく設定することも
ありうる。
Also, when the data amount of the FIFO is not a two-stage sense signal but is larger than 2, the priority of DMA or the transfer amount of one DMA may be set more finely.

【0035】更に、上記実施例におけるFIFO4をダ
ブルバッファメモリ(一方が出力中にもう一方が書き込
みを行うことができる一対のバッファメモリ)で構成す
るようにしてもよい。
Further, the FIFO 4 in the above embodiment may be constituted by a double buffer memory (a pair of buffer memories capable of writing while one is outputting and the other is writing).

【0036】尚、上記実施例では、バンド単位に画像を
記録する例を説明したが、これに限るものではなく、1
ページ分のビットマップイメージを展開可能なメモリを
備えてもよい。なぜなら、FIFO4へデータ転送した
ラインについては、DMA回路2が画像メモリ5をアク
セスしていない間をぬって次のページのイメージ描画お
よび展開処理が行えるからである。
In the above embodiment, an example in which an image is recorded in band units has been described, but the present invention is not limited to this.
A memory capable of expanding a bitmap image for a page may be provided. This is because, for the line transferred to the FIFO 4, the image drawing and expansion processing of the next page can be performed before the DMA circuit 2 is accessing the image memory 5.

【0037】また、実施例では、レーザビームプリンタ
を例にしたが、これによっても本願発明が限定されるも
のではなく、LEDプリンタなど他の方式のページプリ
ンタにも同様に適応できることは容易に推察されよう。
In the embodiment, the laser beam printer is taken as an example, but the present invention is not limited to this, and it is easily inferred that the invention can be similarly applied to a page printer of another system such as an LED printer. Will be done.

【0038】更に、記録ヘッドを搭載したキャリッジを
往復移動し、画像を記録する種類のプリンタであって
も、適応できる。この場合、記録機構の速度が電子写真
方式のプリンタと比較して遅いので、従来技術の項で説
明したような深刻な問題はないが、その処理速度を向上
させることには変わりはないからである。
Further, the present invention can be applied to a printer of a type in which an image is recorded by reciprocally moving a carriage having a recording head. In this case, since the speed of the recording mechanism is slower than that of the electrophotographic printer, there is no serious problem as described in the section of the prior art, but there is no change in improving the processing speed. is there.

【0039】LBPのビデオ回路の様に必ず一定のデー
タを読み出す優先順位の高いDMA要因と、描画回路の
様に様々な長さのDMA転送が適宜発生する場合に、描
画回路のDMA要求について、DMAの実行の遅延を少
なくすることができる。なお、本実施例はハードウエア
により実現しているが、図4、5、6のフローチャート
に係るプログラムをROMに記憶させておくこと(ソフ
トウエア)により実現できる。
Regarding a DMA factor of a high priority such as an LBP video circuit which always reads out certain data, and a DMA request of the drawing circuit when a DMA transfer of various lengths occurs appropriately like the drawing circuit, The delay in executing the DMA can be reduced. Although the present embodiment is realized by hardware, it can be realized by storing the program according to the flowcharts of FIGS. 4, 5 and 6 in the ROM (software).

【0040】[0040]

【発明の効果】以上説明したように本発明によれば、バ
ッファメモリからプリンタエンジンへのデータ転送の状
況に応じて、画像メモリからバッファメモリへのDMA
転送状態を制御することで、描画処理など画像メモリに
対してアクセスする他の処理の待ち時間を軽減すること
が可能になる。
As described above, according to the present invention, the DMA from the image memory to the buffer memory is performed according to the status of data transfer from the buffer memory to the printer engine.
By controlling the transfer state, it is possible to reduce the waiting time for other processing such as drawing processing for accessing the image memory.

【0041】[0041]

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

【図1】第1の実施例におけるプリンタコントローラ部
のブロック構成図である。
FIG. 1 is a block configuration diagram of a printer controller unit in a first embodiment.

【図2】実施例における装置の構造断面図である。FIG. 2 is a structural cross-sectional view of a device in an example.

【図3】第2の実施例におけるプリンタコントローラ部
のブロック構成図である。
FIG. 3 is a block configuration diagram of a printer controller unit in a second embodiment.

【図4】第1の実施例の処理内容を示すフローチャート
である。
FIG. 4 is a flowchart showing the processing contents of the first embodiment.

【図5】第1の実施例の処理内容の変形例を示すフロー
チャートである。
FIG. 5 is a flowchart showing a modification of the processing contents of the first embodiment.

【図6】第2の実施例の処理内容を示すフローチャート
である。
FIG. 6 is a flowchart showing the processing contents of the second embodiment.

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

1 描画回路2 DMA回路 3 DMAバースト長カウンタ 4 FIFO 5 画像メモリ 6 ビデオ回路 7 エンジン 8 バス 9 CPU 10 ROM 11 RAM 12 I/F 13 DMA優先順位制御回路 1 Drawing Circuit 2 DMA Circuit 3 DMA Burst Length Counter 4 FIFO 5 Image Memory 6 Video Circuit 7 Engine 8 Bus 9 CPU 10 ROM 11 RAM 12 I / F 13 DMA Priority Control Circuit

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 上位装置からの印刷データに基づく可視
画像を所定の記録媒体上に記録する記録手段を備える画
像記録装置において、 出力イメージデータを展開する画像メモリと、 該画像メモリに展開されたイメージデータを前記記録手
段の記録速度に合わせて転送するためのバッファメモリ
と、 前記画像メモリ内のイメージデータを前記バッファメモ
リにDMA転送するDMA手段と、 前記バッファメモリ内の未転送のイメージデータの量に
応じて、前記DMA手段による転送状態を制御する制御
手段とを備えることを特徴とする画像記録装置。
1. An image recording apparatus comprising recording means for recording a visible image based on print data from a higher-level device on a predetermined recording medium, and an image memory for expanding output image data, and an image memory expanded in the image memory. A buffer memory for transferring the image data in accordance with the recording speed of the recording means; a DMA means for transferring the image data in the image memory to the buffer memory by DMA; and an untransferred image data in the buffer memory. An image recording apparatus comprising: a control unit that controls a transfer state by the DMA unit according to an amount.
【請求項2】 前記制御手段は、前記バッファメモリ内
の未転送のイメージデータの量が多いほど、前記DMA
手段による1回の転送情報量を少なくすることを特徴と
する請求項第1項に記載の画像記録装置。
2. The DMA controller controls the DMA as the amount of untransferred image data in the buffer memory increases.
The image recording apparatus according to claim 1, wherein the amount of information transferred at one time by the means is reduced.
【請求項3】 前記制御手段は、前記バッファメモリ内
の未転送のイメージデータの量が所定以上ある場合、前
記DMA手段による画像メモリから前記バッファメモリ
へのDMA転送を禁止することを特徴とする請求項第1
項又は第2項に記載の画像記録装置。
3. The control means prohibits DMA transfer from the image memory to the buffer memory by the DMA means when the amount of untransferred image data in the buffer memory is more than a predetermined value. Claim 1
The image recording device according to item 2 or item 2.
【請求項4】 上位装置からの印刷データに基づく可視
画像を所定の記録媒体上に記録する記録手段を備える画
像記録装置において、 出力イメージデータを展開する画像メモリと、 該画像メモリに展開されたイメージデータを前記記録手
段の記録速度に合わせて転送するためのバッファメモリ
と、 前記画像メモリ内のイメージデータを前記バッファメモ
リにDMA転送するとともに、前記画像メモリへ展開す
るイメージデータをDMA転送するDMA手段と、 前記バッファメモリ内の未転送のイメージデータの量に
応じて、前記DMA手段の獲得優先順位を制御する制御
手段とを備えることを特徴とする画像記録装置。
4. An image recording device comprising recording means for recording a visible image based on print data from a higher-level device on a predetermined recording medium, and an image memory for expanding output image data, and an image memory expanded in the image memory. A buffer memory for transferring image data according to the recording speed of the recording means, a DMA for transferring the image data in the image memory to the buffer memory, and a DMA for transferring the image data to be expanded to the image memory. An image recording apparatus comprising: means for controlling the acquisition priority of the DMA means in accordance with the amount of untransferred image data in the buffer memory.
【請求項5】 前記制御手段は、前記バッファメモリ内
の未転送のイメージデータの量が多いほど、前記DMA
手段による前記画像メモリから前記バッファメモリへの
1回の転送情報量を少なくすることを特徴とする請求項
第4項に記載の画像記録装置。
5. The DMA controller controls the DMA as the amount of untransferred image data in the buffer memory increases.
The image recording apparatus according to claim 4, wherein the amount of information transferred by the means from the image memory to the buffer memory at one time is reduced.
【請求項6】 前記制御手段は、前記バッファメモリ内
の未転送のイメージデータの量が所定以上ある場合、前
記DMA手段による画像メモリから前記バッファメモリ
へのDMA転送を禁止することを特徴とする請求項第4
項又は第5項に記載の画像記録装置。
6. The control means prohibits DMA transfer from the image memory to the buffer memory by the DMA means when the amount of untransferred image data in the buffer memory is more than a predetermined value. Claim 4
The image recording apparatus according to item 5 or 5.
【請求項7】 上位装置からの印刷データに基づく可視
画像を所定の記録媒体上に記録する画像記録方法におい
て、 出力イメージデータ展開用の画像メモリに展開されたイ
メージデータを、所定の記録手段の記録速度に合わせて
転送するためのバッファメモリにDMA転送する工程
と、 前記バッファメモリ内の未転送のイメージデータの量に
応じて、DMA転送状態を制御する工程とを備えること
を特徴とする画像記録方法。
7. An image recording method for recording a visible image based on print data from a higher-level device on a predetermined recording medium, wherein image data expanded in an image memory for output image data expansion is recorded in a predetermined recording means. An image characterized by including a step of performing a DMA transfer to a buffer memory for transfer according to a recording speed, and a step of controlling a DMA transfer state according to the amount of untransferred image data in the buffer memory. Recording method.
【請求項8】 前記制御工程は、前記バッファメモリ内
の未転送のイメージデータの量が多いほど、DMAによ
る1回の転送情報量を少なくすることを特徴とする請求
項第7項に記載の画像記録方法。
8. The control process according to claim 7, wherein the larger the amount of untransferred image data in the buffer memory is, the smaller the transfer information amount of one transfer by DMA is. Image recording method.
【請求項9】 前記制御工程は、前記バッファメモリ内
の未転送のイメージデータの量が所定以上ある場合、D
MAによる前記画像メモリから前記バッファメモリへの
DMA転送を禁止することを特徴とする請求項第7項又
は第8項に記載の画像記録方法。
9. The control step, if the amount of untransferred image data in the buffer memory is more than a predetermined value, D
9. The image recording method according to claim 7 or 8, wherein DMA transfer from the image memory to the buffer memory by MA is prohibited.
【請求項10】 上位装置からの印刷データに基づく可
視画像を所定の記録媒体上に記録する画像記録方法にお
いて、 出力イメージデータ展開用の画像メモリに展開されたイ
メージデータを、所定の記録手段の記録速度に合わせて
転送するためのバッファメモリにDMA転送するととも
に、前記画像メモリへ展開するイメージデータをDMA
転送する工程と、 前記バッファメモリ内の未転送のイメージデータの量に
応じて、前記DMAの獲得優先順位を制御する工程とを
備えることを特徴とする画像記録方法。
10. An image recording method for recording a visible image based on print data from a higher-level device on a predetermined recording medium, wherein image data expanded in an image memory for output image data expansion is recorded in a predetermined recording means. The DMA data is transferred to a buffer memory for transfer according to the recording speed, and the image data to be expanded in the image memory is DMA transferred.
An image recording method comprising: a transfer step; and a step of controlling the acquisition priority of the DMA according to the amount of untransferred image data in the buffer memory.
【請求項11】 前記制御工程は、前記バッファメモリ
内の未転送のイメージデータの量が多いほど、DMAに
よる前記画像メモリから前記バッファメモリへの1回の
転送情報量を少なくすることを特徴とする請求項第10
項に記載の画像記録方法。
11. The control step reduces the amount of information transferred by the DMA from the image memory to the buffer memory once, as the amount of untransferred image data in the buffer memory increases. Claim 10
The image recording method described in the item.
【請求項12】 前記制御工程は、前記バッファメモリ
内の未転送のイメージデータの量が所定以上ある場合、
DMAによる画像メモリから前記バッファメモリへのD
MA転送を禁止することを特徴とする請求項第10項又
は第11項に記載の画像記録装置。
12. The control step, when the amount of untransferred image data in the buffer memory is a predetermined amount or more,
D from the image memory to the buffer memory by DMA
The image recording apparatus according to claim 10 or 11, wherein MA transfer is prohibited.
JP32377793A 1993-12-22 1993-12-22 Printing apparatus and control method thereof Expired - Fee Related JP2958229B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32377793A JP2958229B2 (en) 1993-12-22 1993-12-22 Printing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32377793A JP2958229B2 (en) 1993-12-22 1993-12-22 Printing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JPH07178972A true JPH07178972A (en) 1995-07-18
JP2958229B2 JP2958229B2 (en) 1999-10-06

Family

ID=18158508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32377793A Expired - Fee Related JP2958229B2 (en) 1993-12-22 1993-12-22 Printing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP2958229B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996037873A1 (en) * 1995-05-26 1996-11-28 National Semiconductor Corporation Display controller capable of accessing graphics data from a shared system memory
US5821910A (en) * 1995-05-26 1998-10-13 National Semiconductor Corporation Clock generation circuit for a display controller having a fine tuneable frame rate
US5900886A (en) * 1995-05-26 1999-05-04 National Semiconductor Corporation Display controller capable of accessing an external memory for gray scale modulation data
JP2009099065A (en) * 2007-10-18 2009-05-07 Canon Inc Recording device and data transfer method
JP4481458B2 (en) * 2000-08-25 2010-06-16 キヤノン株式会社 Data processing circuit of imaging device
JP2012011603A (en) * 2010-06-29 2012-01-19 Canon Inc Information processing apparatus, image output apparatus, information processing method, and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996037873A1 (en) * 1995-05-26 1996-11-28 National Semiconductor Corporation Display controller capable of accessing graphics data from a shared system memory
US5821910A (en) * 1995-05-26 1998-10-13 National Semiconductor Corporation Clock generation circuit for a display controller having a fine tuneable frame rate
US5900886A (en) * 1995-05-26 1999-05-04 National Semiconductor Corporation Display controller capable of accessing an external memory for gray scale modulation data
JP4481458B2 (en) * 2000-08-25 2010-06-16 キヤノン株式会社 Data processing circuit of imaging device
JP2009099065A (en) * 2007-10-18 2009-05-07 Canon Inc Recording device and data transfer method
JP2012011603A (en) * 2010-06-29 2012-01-19 Canon Inc Information processing apparatus, image output apparatus, information processing method, and program

Also Published As

Publication number Publication date
JP2958229B2 (en) 1999-10-06

Similar Documents

Publication Publication Date Title
JPH07178972A (en) Device and method for image recording
JPH10129050A (en) Printing processor
JP3466803B2 (en) Laser beam printer, print control method and apparatus
JP2981400B2 (en) Printing apparatus and data processing method for printing apparatus
JP2988820B2 (en) Output control device and output control method
JP3159855B2 (en) Access circuit for image memory in printing apparatus and printing apparatus
JP3715796B2 (en) Printing control apparatus, data processing method for printing control apparatus, and storage medium storing computer-readable program
JPH05270055A (en) Image recording method and device, and information processing method
JPH04323058A (en) Output method and apparatus
JPH07160443A (en) Printer and its state informing method
JP3377292B2 (en) Printing device
JPH07195761A (en) Printer
JPS60160264A (en) Control system of bit map memory
JP3001081B2 (en) Printer
JP2989727B2 (en) Printing apparatus and printing method
JPH068538A (en) Printer
JPH1086458A (en) Printing method and apparatus, and memory medium
JPH10823A (en) Apparatus and method for controlling print
JPH10307689A (en) Printing processing device and method therefor
JP2001239707A (en) Printer controller and method for transferring data
JPH07137367A (en) Image processing device
JPH09274545A (en) Printing controller, printing control method and storage medium storing control program
JPH08290627A (en) Method and apparatus for printing
JPH106577A (en) Access circuit of image memory and printer using it
JPH07299931A (en) Printer and control thereof

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990621

LAPS Cancellation because of no payment of annual fees