JP2007213512A - Printer and printer controller - Google Patents

Printer and printer controller Download PDF

Info

Publication number
JP2007213512A
JP2007213512A JP2006035557A JP2006035557A JP2007213512A JP 2007213512 A JP2007213512 A JP 2007213512A JP 2006035557 A JP2006035557 A JP 2006035557A JP 2006035557 A JP2006035557 A JP 2006035557A JP 2007213512 A JP2007213512 A JP 2007213512A
Authority
JP
Japan
Prior art keywords
image processing
data transfer
processing circuit
raster
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006035557A
Other languages
Japanese (ja)
Inventor
Kiyoji Hane
喜代治 羽根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006035557A priority Critical patent/JP2007213512A/en
Publication of JP2007213512A publication Critical patent/JP2007213512A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent the processing speed of a printer from lowering without causing any underrun error. <P>SOLUTION: A printer controller includes; an image processing circuit which is provided with a raster buffer and outputs image data to a printing engine per raster; a CPU; a memory; and an arbitration circuit for arbitrating between a data transfer request from the image processing circuit and a memory access request from the CPU. When receiving a request for data transfer per raster from the image processing circuit, the arbitration circuit arbitrates so as to give priority to the memory access request from the CPU within a prescribed time after the start of data transfer and to give priority to the request for data transfer per raster from the image processing circuit after passage of the prescribed time. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、印刷装置に係り、特に、メモリアクセスの調停を行なう調停回路を有するプリンタコントローラに関する。   The present invention relates to a printing apparatus, and more particularly to a printer controller having an arbitration circuit that arbitrates memory access.

レーザ方式の印刷装置では、ビットマップ展開されたイメージデータを1ライン(ラスタ)単位で印刷エンジンに転送することで印刷が実行される。   In a laser type printing apparatus, printing is executed by transferring bitmap-developed image data to a print engine in units of one line (raster).

印刷エンジンに出力されるイメージデータは、ラスタバッファにいったん書き込まれ、印刷エンジンのラスタ処理周期に同期して読み出される。   The image data output to the print engine is once written in the raster buffer and read out in synchronization with the raster processing cycle of the print engine.

レーザ方式の印刷方式では、印刷エンジンへのイメージデータ転送を開始すると、ページの途中で処理を止めることはできない。このため、特許文献1に記載されているように、ラスタバッファへのイメージデータの書き込みが間に合わず、印刷エンジンに転送すべきイメージデータがラスタバッファに格納されていないとエラーが発生してしまう。このエラーを一般にアンダーランエラーと称している。   In the laser printing method, when image data transfer to the print engine is started, the process cannot be stopped in the middle of the page. For this reason, as described in Patent Document 1, writing of image data to the raster buffer is not in time, and an error occurs if the image data to be transferred to the print engine is not stored in the raster buffer. This error is generally referred to as an underrun error.

図7は、従来のレーザ方式の印刷装置におけるデータ転送処理関連の構成を説明するブロック図である。   FIG. 7 is a block diagram illustrating a configuration related to data transfer processing in a conventional laser type printing apparatus.

本図に示すように、メインメモリ130へのメモリアクセスを制御するメモリ制御回路110に、CPU120、入出力制御回路140、画像処理回路150が接続されている。メモリ制御回路110は、メインメモリ130へのアクセス処理を行なうメモリアクセス回路111と、CPU120からのアクセス要求・入出力制御回路140からのDMA要求・画像処理回路150からのDMA要求を調停する調停回路112を備えている。   As shown in the figure, a CPU 120, an input / output control circuit 140, and an image processing circuit 150 are connected to a memory control circuit 110 that controls memory access to the main memory 130. The memory control circuit 110 includes a memory access circuit 111 that performs access processing to the main memory 130, and an arbitration circuit that arbitrates access requests from the CPU 120, DMA requests from the input / output control circuit 140, and DMA requests from the image processing circuit 150. 112 is provided.

画像処理回路150は、メインメモリ130に格納された圧縮済画像データを、メモリ制御回路110を介したDMA転送で取得する。このために、DMA要求制御回路151を備えている。   The image processing circuit 150 acquires the compressed image data stored in the main memory 130 by DMA transfer via the memory control circuit 110. For this purpose, a DMA request control circuit 151 is provided.

画像処理回路150は、DMA転送された圧縮済画像データを解凍回路152により解凍し、得られたイメージデータをラスタバッファ153に一時的に格納する。そして、調整回路154が位置制御処理、画像調整処理等を施したうえで、ラスタ処理開始信号(ラスタスタート信号)に同期して印刷エンジン600に順次出力する。   The image processing circuit 150 decompresses the DMA-transferred compressed image data by the decompression circuit 152 and temporarily stores the obtained image data in the raster buffer 153. The adjustment circuit 154 performs position control processing, image adjustment processing, and the like, and sequentially outputs them to the print engine 600 in synchronization with a raster processing start signal (raster start signal).

なお、本例では、画像処理回路150は、2本のラスタバッファ153を備えており、交互にイメージデータを印刷エンジン600に出力するようになっている。すなわち、一方のラスタバッファ153がイメージデータを出力している間に、他方のラスタバッファ153が次のラスタのイメージデータを蓄積していることになる。   In this example, the image processing circuit 150 includes two raster buffers 153, and alternately outputs image data to the print engine 600. That is, while one raster buffer 153 is outputting image data, the other raster buffer 153 stores image data of the next raster.

特開2001−26151号公報JP 2001-26151 A

上述のように、ラスタバッファ153へのイメージデータの書き込みが、印刷エンジン600への転送に間に合わないと、アンダーランエラーが発生してしまう。   As described above, if the writing of the image data to the raster buffer 153 is not in time for the transfer to the print engine 600, an underrun error occurs.

そこで、メモリ制御回路110の調停回路112は、アンダーランエラーの発生を防ぐため、画像処理回路150からのDMA要求、特に圧縮済み画像データの読み込みのためのDMA要求を最優先に調停するようにしている。   Therefore, the arbitration circuit 112 of the memory control circuit 110 arbitrates the DMA request from the image processing circuit 150, particularly the DMA request for reading compressed image data, with the highest priority in order to prevent the occurrence of an underrun error. ing.

このため、印刷エンジン600へのイメージデータ転送開始後は、CPU120からの連続したアクセス要求が発生している場合でも、画像処理回路150からのDMA要求が優先され、CPU120の処理が分断されることになる。   For this reason, after the start of image data transfer to the print engine 600, even if continuous access requests from the CPU 120 are generated, the DMA request from the image processing circuit 150 is prioritized and the processing of the CPU 120 is divided. become.

一般に、CPU120における処理は、連続して行なう方が効率が良いため、画像処理回路150からのDMA要求が優先されることにより、CPU120の処理速度が低下することになる。また、CPU120がメモリアクセスを待たされることによる処理速度の低下も起こり得る。   In general, since it is more efficient to perform processing in the CPU 120 continuously, priority is given to the DMA request from the image processing circuit 150, so that the processing speed of the CPU 120 decreases. In addition, the processing speed may decrease due to the CPU 120 waiting for memory access.

本発明は、アンダーランエラーを発生させることなく、印刷装置の処理速度低下を防ぐことを目的とする。   An object of the present invention is to prevent a decrease in processing speed of a printing apparatus without causing an underrun error.

上記課題を解決するため本発明の第1の態様であるプリンタコントローラは、
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、データ転送の開始から所定時間内は、前記CPUからのメモリアクセス要求を優先して調停し、所定時間経過後は前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とする。
In order to solve the above problems, a printer controller according to a first aspect of the present invention provides:
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration for arbitrating a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
When there is a data transfer request in raster units from the image processing circuit, the arbitration circuit performs arbitration by giving priority to the memory access request from the CPU within a predetermined time from the start of data transfer, and the predetermined time has elapsed. Thereafter, arbitration is performed with priority given to data transfer requests in raster units from the image processing circuit.

すなわち、データ転送の開始から所定時間内は、画像処理回路へのデータ転送は、CPUからのメモリアクセス要求がない時間に行なわれることになる。これにより、画像処理回路からのデータ転送要求によりCPUの処理を分断させることが少なくなるため、印刷装置の処理速度低下を防ぐことができる。特に、所定時間内に画像処理回路へのデータ転送が終わってしまえば、CPUの処理に影響を与えないことになる。一方、所定経過時間後は、画像処理回路からのデータ転送要求を優先するためアンダーランエラーを発生させることを防ぐことができる。   That is, within a predetermined time from the start of data transfer, data transfer to the image processing circuit is performed at a time when there is no memory access request from the CPU. As a result, the processing of the CPU is less likely to be divided due to a data transfer request from the image processing circuit, and a reduction in processing speed of the printing apparatus can be prevented. In particular, if the data transfer to the image processing circuit is completed within a predetermined time, the CPU processing is not affected. On the other hand, after a predetermined elapsed time, since the data transfer request from the image processing circuit is given priority, it is possible to prevent the occurrence of an underrun error.

上記課題を解決するため本発明の第2の態様であるプリンタコントローラは、
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、データ転送の開始から所定時間内は、前記CPUからのメモリアクセス要求を優先して調停し、所定時間経過後に、前記画像処理回路へのデータ転送が終了しているかどうかを判断し、終了していない場合に、前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とする。
In order to solve the above problem, a printer controller according to a second aspect of the present invention provides:
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration that arbitrates a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
When there is a data transfer request in raster units from the image processing circuit, the arbitration circuit performs arbitration by giving priority to the memory access request from the CPU within a predetermined time from the start of data transfer, and the predetermined time has elapsed. Thereafter, it is determined whether or not the data transfer to the image processing circuit has been completed. If the data transfer has not been completed, the data transfer request from the image processing circuit is preferentially arbitrated. .

これにより、画像処理回路からのデータ転送要求によりCPUの処理を分断させることが少なくなるため、印刷装置の処理速度低下を防ぐことができる。また、所定経過時間後、画像処理回路へのデータ転送が終了していない場合には、画像処理回路からのデータ転送要求を優先するためアンダーランエラーを発生させることを防ぐことができる。   As a result, the processing of the CPU is less likely to be divided due to a data transfer request from the image processing circuit, and a reduction in processing speed of the printing apparatus can be prevented. In addition, when the data transfer to the image processing circuit is not completed after the predetermined elapsed time, it is possible to prevent the occurrence of an underrun error because priority is given to the data transfer request from the image processing circuit.

いずれの場合も、前記所定時間は、
イメージデータの印刷エンジンへの出力開始間隔と、前記ラスタバッファへの最大データ転送量とに基づいて算出することができる。
In either case, the predetermined time is
It can be calculated based on the output start interval of the image data to the print engine and the maximum data transfer amount to the raster buffer.

より具体的には、前記所定時間の算出は、前記ラスタバッファへの最大データ転送量から最大データ転送時間を見積もり、前記イメージデータの印刷エンジンへの出力開始間隔から引くことによって行なうことができる。   More specifically, the predetermined time can be calculated by estimating the maximum data transfer time from the maximum data transfer amount to the raster buffer and subtracting it from the output start interval of the image data to the print engine.

上記課題を解決するため本発明の第3の態様であるプリンタコントローラは、
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、転送すべきデータ量に基づいて基準時間を設定し、データ転送の開始から前記基準時間内は、前記CPUからのメモリアクセス要求を優先して調停し、前記基準時間経過後は前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とする。
In order to solve the above-described problem, a printer controller according to a third aspect of the present invention includes:
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration for arbitrating a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
The arbitration circuit sets a reference time based on the amount of data to be transferred when there is a raster-unit data transfer request from the image processing circuit, and within the reference time from the start of data transfer, the CPU Arbitration is performed with priority given to the memory access request from the memory, and arbitration is performed with priority given to the data transfer request in raster units from the image processing circuit after the reference time has elapsed.

これにより、画像処理回路からのデータ転送要求によりCPUの処理を分断させることが少なくなるため、印刷装置の処理速度低下を防ぐことができる。また、転送すべきデータ量から設定された基準時間後は、画像処理回路からのデータ転送要求を優先するためアンダーランエラーを発生させることを防ぐことができる。   As a result, the processing of the CPU is less likely to be divided due to a data transfer request from the image processing circuit, and a reduction in processing speed of the printing apparatus can be prevented. Further, after the reference time set from the amount of data to be transferred, it is possible to prevent the occurrence of an underrun error because priority is given to the data transfer request from the image processing circuit.

ここで、前記基準時間は、イメージデータの印刷エンジンへの出力開始間隔と、前記ラスタバッファへのデータ転送量とに基づいて算出することができる。   Here, the reference time can be calculated based on an output start interval of image data to the print engine and a data transfer amount to the raster buffer.

より具体的には、前記基準時間の算出は、前記ラスタバッファへのデータ転送量からデータ転送時間を見積もり、前記イメージデータの印刷エンジンへの出力開始間隔から引くことによって行なうことができる。   More specifically, the reference time can be calculated by estimating the data transfer time from the data transfer amount to the raster buffer and subtracting it from the output start interval of the image data to the print engine.

上記課題を解決するため本発明の第4の態様であるプリンタコントローラは、
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、データ転送の開始時は、前記CPUからのメモリアクセス要求を優先して調停し、転送すべき残りデータ量とデータ転送開始からの経過時間とが所定の条件を満たした場合に、前記基準時間経過後は前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とする。
In order to solve the above-described problem, a printer controller according to a fourth aspect of the present invention includes:
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration for arbitrating a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
The arbitration circuit performs arbitration by giving priority to the memory access request from the CPU at the start of data transfer when there is a data transfer request in raster units from the image processing circuit, and the remaining data amount to be transferred When the reference time elapses, the data transfer request from the image processing circuit is preferentially arbitrated when the reference time elapses.

これにより、画像処理回路からのデータ転送要求によりCPUの処理を分断させることが少なくなるため、印刷装置の処理速度低下を防ぐことができる。また、転送すべきデータ残量と経過時間とが所定の条件を満たした場合に、画像処理回路からのデータ転送要求を優先するためアンダーランエラーを発生させることを防ぐことができる。   As a result, the processing of the CPU is less likely to be divided due to a data transfer request from the image processing circuit, and a reduction in processing speed of the printing apparatus can be prevented. In addition, when the remaining amount of data to be transferred and the elapsed time satisfy predetermined conditions, it is possible to prevent the occurrence of an underrun error because priority is given to the data transfer request from the image processing circuit.

ここで、前記所定の条件は、データ転送開始からの経過時間から、イメージデータの印刷エンジンへの出力開始までの時間を算出し、この時間と前記転送すべき残りデータ量の転送時間との差があらかじめ定めた範囲内に入ることとすることができる。   Here, the predetermined condition is that the time from the elapsed time from the start of data transfer to the start of output of image data to the print engine is calculated, and the difference between this time and the transfer time of the remaining data amount to be transferred May fall within a predetermined range.

本発明は、上記の各プリンタコントローラを搭載した印刷装置も提供する。   The present invention also provides a printing apparatus equipped with each printer controller described above.

本発明の実施例について図面を参照して説明する。   Embodiments of the present invention will be described with reference to the drawings.

図1は、本発明を適用したレーザ方式の印刷装置におけるデータ転送処理関連の構成を説明するためのブロック図である。   FIG. 1 is a block diagram for explaining a configuration related to data transfer processing in a laser type printing apparatus to which the present invention is applied.

本図に示すように、メインメモリ30へのメモリアクセスを制御するメモリ制御回路10に、CPU20、入出力制御回路40、画像処理回路50が接続されている。メモリ制御回路10は、メインメモリ30へのアクセス処理を行なうメモリアクセス回路11と、CPU20からのアクセス要求・入出力制御回路40からのDMA要求・画像処理回路50からのDMA要求を調停する調停回路12を備えている。   As shown in the figure, a CPU 20, an input / output control circuit 40, and an image processing circuit 50 are connected to a memory control circuit 10 that controls memory access to the main memory 30. The memory control circuit 10 includes a memory access circuit 11 that performs access processing to the main memory 30, and an arbitration circuit that arbitrates access requests from the CPU 20, DMA requests from the input / output control circuit 40, and DMA requests from the image processing circuit 50. 12 is provided.

画像処理回路50は、メインメモリ30に格納された圧縮済画像データを、メモリ制御回路10を介したDMA転送で取得する。このために、DMA要求制御回路51を備えている。なお、圧縮済画像データは、画像データがラスタ単位で圧縮されたものである。   The image processing circuit 50 acquires the compressed image data stored in the main memory 30 by DMA transfer via the memory control circuit 10. For this purpose, a DMA request control circuit 51 is provided. The compressed image data is obtained by compressing image data in raster units.

この圧縮済画像データを解凍回路52により解凍し、得られたイメージデータをラスタバッファ53に一時的に蓄積する。そして、調整回路54が位置制御処理、画像調整処理等を施したうえで、ラスタ処理開始信号(ラスタスタート信号)に同期して印刷エンジン60に順次出力する。   The compressed image data is decompressed by the decompression circuit 52 and the obtained image data is temporarily stored in the raster buffer 53. The adjustment circuit 54 performs position control processing, image adjustment processing, and the like, and sequentially outputs them to the print engine 60 in synchronization with a raster processing start signal (raster start signal).

なお、画像処理回路50は、2本のラスタバッファ53を備えており、交互にイメージデータを印刷エンジン60に出力するようになっている。つまり、一方のラスタバッファ53にデータを蓄積している間に、他方のラスタバッファ53からイメージデータを出力していることになる。このため、アンダーランが発生するのは、ラスタバッファからイメージデータを出力後、次のラスタスタート信号までに、1ラスタ分のデータを蓄積できない場合である。   The image processing circuit 50 includes two raster buffers 53 and alternately outputs image data to the print engine 60. That is, while data is stored in one raster buffer 53, image data is output from the other raster buffer 53. For this reason, underrun occurs when data for one raster cannot be accumulated by the next raster start signal after outputting image data from the raster buffer.

ここで、印刷エンジン60の特性上、ラスタスタート信号は、一定の間隔で発生される。ラスタスタート信号の間隔は、印刷の解像度、印刷用紙のサイズ等に応じて定められる。   Here, due to the characteristics of the print engine 60, the raster start signal is generated at regular intervals. The interval between the raster start signals is determined according to the printing resolution, the size of the printing paper, and the like.

本実施例において、調停回路12は、転送カウンタ12aとタイマ12bとを備えている。転送カウンタ12aは、ラスタバッファ53へのDMA転送の回数をカウントする。DMA転送するデータ量は、あらかじめ画像処理回路のDMA要求制御回路51から通知されているため、処理中のラスタについて、何回のDMA転送が必要かを算出することができる。   In this embodiment, the arbitration circuit 12 includes a transfer counter 12a and a timer 12b. The transfer counter 12 a counts the number of DMA transfers to the raster buffer 53. Since the amount of data to be DMA transferred is notified in advance from the DMA request control circuit 51 of the image processing circuit, it is possible to calculate how many DMA transfers are required for the raster being processed.

したがって、ラスタバッファ53へのDMA転送の回数をカウントすることで、ラスタバッファ53へのDMA転送が終了したかどうか、あるいは、ラスタバッファ53への残り転送量(残り転送回数)等を把握することができる。   Therefore, by counting the number of DMA transfers to the raster buffer 53, it is possible to know whether the DMA transfer to the raster buffer 53 has been completed, or the remaining transfer amount (remaining transfer count) to the raster buffer 53. Can do.

タイマ12bは、ラスタスタートからの経過時間を計測する。これにより、次のラスタスタートまでの残時間等を把握することができる。したがって、転送カウンタ12aとタイマ12bとは、ラスタスタート毎にリセットされる。   The timer 12b measures the elapsed time from the raster start. This makes it possible to grasp the remaining time until the next raster start. Therefore, the transfer counter 12a and the timer 12b are reset at each raster start.

つぎに、本発明の第1の実施例におけるデータ転送処理について図2のフロー図を参照して説明する。   Next, data transfer processing in the first embodiment of the present invention will be described with reference to the flowchart of FIG.

本フロー図は、メインメモリ30に格納された圧縮済画像データを画像処理回路50にDMA転送する際の処理を示している。   This flowchart shows processing when DMA transfer of compressed image data stored in the main memory 30 to the image processing circuit 50 is performed.

本実施例では、画像処理回路50へのDMA転送開始時には、画像処理回路50からのDMA要求の優先度を下げておく。その結果、CPU20からのアクセス要求、入出力制御回路40からのDMA要求が、画像処理回路50からのDMA要求より優先されて処理される。   In this embodiment, when the DMA transfer to the image processing circuit 50 is started, the priority of the DMA request from the image processing circuit 50 is lowered. As a result, the access request from the CPU 20 and the DMA request from the input / output control circuit 40 are processed with priority over the DMA request from the image processing circuit 50.

そして、DMA転送開始からの経過時間が所定の基準時間を経過した時点で優先順位を切り替えて、画像処理回路50からのDMA要求を最優先に調停するようにする。   Then, the priority is switched when the elapsed time from the start of the DMA transfer has passed a predetermined reference time, so that the DMA request from the image processing circuit 50 is arbitrated to the highest priority.

これにより、CPU20の処理が、画像処理回路50へのDMA処理により分断されることを少なくして、印刷装置の処理速度低下を防ぐようにする。   Thereby, the processing of the CPU 20 is reduced from being divided by the DMA processing to the image processing circuit 50, and the processing speed of the printing apparatus is prevented from being lowered.

ここで、所定の基準時間は、例えば、以下のようにして決定することができる。すなわち、ラスタバッファ53に転送すべきデータ量から、DMA転送に要する時間をあらかじめ見積もることができる。転送すべきデータ量は、例えば、最も圧縮率の悪いケースを想定して見積もるようにする。また、DMA転送の効率も条件が悪い場合を想定して見積もるようにする。   Here, the predetermined reference time can be determined as follows, for example. That is, the time required for DMA transfer can be estimated in advance from the amount of data to be transferred to the raster buffer 53. The amount of data to be transferred is estimated assuming, for example, the worst compression rate. Also, the efficiency of DMA transfer is estimated on the assumption that the conditions are bad.

これにより、次のラスタスタートからどれだけ前にDMA転送を開始すれば、少なくとも、次のラスタスタートまでにラスタバッファ53へのDMA転送が完了するかを算出することができる。そして、所定の基準時間は、ラスタスタートからその時間までの時間と定めることができる。   As a result, it is possible to calculate how long the DMA transfer to the raster buffer 53 is completed at least before the next raster start by starting the DMA transfer before the next raster start. The predetermined reference time can be determined as the time from the raster start to that time.

画像処理回路50からのDMA要求があると、このDMA転送の優先順位が低い状態で、最初のラスタデータがラスタバッファ53に格納される(S101)。   When there is a DMA request from the image processing circuit 50, the first raster data is stored in the raster buffer 53 with the DMA transfer priority being low (S101).

そして、ラスタスタート信号(S102)により、印刷エンジン60へのイメージデータ出力が開始される。なお、画像処理回路50へのDMA転送に先立ち、ラスタスタート信号の間隔はすでに定められている。   Then, image data output to the print engine 60 is started by the raster start signal (S102). Prior to the DMA transfer to the image processing circuit 50, the interval between the raster start signals is already determined.

同時に、タイマ12bの計時がスタートする(S103)。そして、基準時間が経過するまで(S104)、画像処理回路50へのDMA転送が優先順位の低いまま行なわれる。したがって、CPU20からのメインメモリ30へのアクセス要求は、DMA転送により分断されないため、CPU20の処理効率の低下を防ぐことができる。   At the same time, the timer 12b starts counting (S103). Until the reference time elapses (S104), DMA transfer to the image processing circuit 50 is performed with low priority. Therefore, since the access request to the main memory 30 from the CPU 20 is not divided by the DMA transfer, it is possible to prevent the processing efficiency of the CPU 20 from being lowered.

そして、基準時間が経過すると(S104:Y)、調停回路12は、画像処理回路50へのDMA転送を最優先に調停する。   When the reference time has elapsed (S104: Y), the arbitration circuit 12 arbitrates the DMA transfer to the image processing circuit 50 with the highest priority.

そして、次のラスタスタート信号(S106)で、ラスタバッファ53に蓄積されたイメージデータを印刷エンジン60に出力する。基準時間は、基準時間経過後に画像処理回路50へのDMA転送を開始しても、ラスタバッファ53へのデータ格納が間に合うように設定されているため、アンダーランエラーを防ぐことができる。   In response to the next raster start signal (S106), the image data stored in the raster buffer 53 is output to the print engine 60. Even if the DMA transfer to the image processing circuit 50 is started after the lapse of the reference time, the reference time is set so that data storage in the raster buffer 53 is in time, so that an underrun error can be prevented.

処理(S103)移行の処理を、DMA転送すべきラスタが終了するまで(S107)、繰り返すことにより、1ページ分の印刷が実行される。   By repeating the process (S103) until the raster to be DMA transferred is completed (S107), printing for one page is executed.

このように、本発明の第1の実施例によれば、アンダーランエラーを発生させることなく、印刷装置の処理速度低下を防ぐことができる。   Thus, according to the first embodiment of the present invention, it is possible to prevent a decrease in the processing speed of the printing apparatus without causing an underrun error.

図3は、本実施例におけるDMA転送の様子を模式的に示したタイミング図である。本図に示すように、ラスタスタート信号により、ラスタ単位のDMA転送が開始する。DMA転送開始時においては、CPU20からの要求が優先されるため、調停回路12は、CPU20からのCPUリクエストと画像処理回路50からのVDMAリクエストが重なった場合にはCPUリクエストを優先するように調停する。この結果、メモリバスはCPU20が優先的に使用することになる。   FIG. 3 is a timing chart schematically showing the state of DMA transfer in this embodiment. As shown in the figure, DMA transfer in units of rasters is started by a raster start signal. Since the request from the CPU 20 is given priority at the start of DMA transfer, the arbitration circuit 12 arbitrates so that the CPU request is given priority when the CPU request from the CPU 20 and the VDMA request from the image processing circuit 50 overlap. To do. As a result, the memory bus is preferentially used by the CPU 20.

一方。画像処理回路50からのVDMAリクエストによるDMA転送は、CPUリクエストがないタイミングで行なわれる。   on the other hand. The DMA transfer by the VDMA request from the image processing circuit 50 is performed at a timing when there is no CPU request.

そして、基準時間経過後は、調停回路内の内部信号により優先順位が切り替わり、調停回路12は、画像処理回路50からのVDMAリクエストが最優先となるように調停する。この結果、メモリバスは画像処理回路50が優先的に使用することになる。   After the reference time elapses, the priority is switched by an internal signal in the arbitration circuit, and the arbitration circuit 12 arbitrates so that the VDMA request from the image processing circuit 50 has the highest priority. As a result, the image processing circuit 50 preferentially uses the memory bus.

つぎに、本発明の第2の実施例におけるデータ転送処理について図4のフロー図を参照して説明する。   Next, data transfer processing in the second embodiment of the present invention will be described with reference to the flowchart of FIG.

本実施例と第1の実施例との相違点は、基準時間が経過した時点で、画像処理回路50へのDMA転送が終了しているかどうかを判断し、終了していない場合に、画像処理回路50へのDMA転送の優先順位を高くすることである。   The difference between the present embodiment and the first embodiment is that when the reference time has elapsed, it is determined whether or not the DMA transfer to the image processing circuit 50 has been completed. The priority of DMA transfer to the circuit 50 is to be increased.

このため、画像処理回路50へのDMA転送回数を転送カウンタ12aを用いてカウントし、転送に必要なDMA転送回数と比較することで、画像処理回路50へのDMA転送が終了しているかどうかを判断する。   For this reason, the number of DMA transfers to the image processing circuit 50 is counted using the transfer counter 12a, and compared with the number of DMA transfers necessary for transfer, it is determined whether or not the DMA transfer to the image processing circuit 50 has been completed. to decide.

本実施例においても、画像処理回路50からのDMA要求があると、このDMA転送の優先順位が低い状態で、最初のラスタデータがラスタバッファ53に格納される(S201)。   Also in this embodiment, when there is a DMA request from the image processing circuit 50, the first raster data is stored in the raster buffer 53 with the DMA transfer priority being low (S201).

そして、ラスタスタート信号(S202)により、印刷エンジン60へのイメージデータ出力が開始される。なお、画像処理回路50へのDMA転送に先立ち、ラスタスタート信号の間隔はすでに定められている。また、画像処理回路50へ転送すべきデータ量が画像処理回路50から通知されるため、必要なDMA転送回数を算出することができる。   Then, image data output to the print engine 60 is started by the raster start signal (S202). Prior to the DMA transfer to the image processing circuit 50, the interval between the raster start signals is already determined. Further, since the amount of data to be transferred to the image processing circuit 50 is notified from the image processing circuit 50, the necessary number of DMA transfers can be calculated.

同時に、タイマ12bの計時がスタートする(S203)。そして、基準時間が経過するまで(S204)、画像処理回路50へのDMA転送が優先順位の低いまま行なわれる。したがって、CPU20からのメインメモリ30へのアクセス要求は、DMA転送により分断されないため、CPU20の処理効率の低下を防ぐことができる。   At the same time, the timer 12b starts counting (S203). Until the reference time elapses (S204), DMA transfer to the image processing circuit 50 is performed with low priority. Therefore, since the access request to the main memory 30 from the CPU 20 is not divided by the DMA transfer, it is possible to prevent the processing efficiency of the CPU 20 from being lowered.

なお、画像処理回路50へのDMA転送が行なわれるたびに転送カウンタ12aの値を増やすようにする。   The value of the transfer counter 12a is increased every time DMA transfer to the image processing circuit 50 is performed.

そして、基準時間が経過すると(S204:Y)、調停回路12は、転送カウンタ12aの値と、転送に必要なDMA転送回数と比較することで、画像処理回路50へのDMA転送が終了しているかどうかを判断する(S205)。   When the reference time elapses (S204: Y), the arbitration circuit 12 compares the value of the transfer counter 12a with the number of DMA transfers necessary for transfer, thereby completing the DMA transfer to the image processing circuit 50. It is determined whether or not (S205).

その結果、画像処理回路50へのDMA転送が終了していると判断した場合には(S205:Y)、画像処理回路50へのDMA転送の優先順位を上げる必要がないため、優先順位を変更することなく次のラスタスタート信号を待つ。   As a result, when it is determined that the DMA transfer to the image processing circuit 50 has been completed (S205: Y), it is not necessary to increase the priority of the DMA transfer to the image processing circuit 50, so the priority is changed. Without waiting for the next raster start signal.

一方、まだ画像処理回路50へのDMA転送が終了していないと判断した場合には(S205:N)、画像処理回路50へのDMA転送を最優先に調停する(S206)。   On the other hand, if it is determined that the DMA transfer to the image processing circuit 50 has not been completed (S205: N), the DMA transfer to the image processing circuit 50 is arbitrated with the highest priority (S206).

そして、次のラスタスタート信号(S207)で、ラスタバッファ53に蓄積されたイメージデータを印刷エンジン60に出力する。基準時間は、基準時間経過後に画像処理回路50へのDMA転送を開始しても、ラスタバッファ53へのデータ格納が間に合うように設定されているため、アンダーランエラーを防ぐことができる。   In response to the next raster start signal (S207), the image data stored in the raster buffer 53 is output to the print engine 60. Even if the DMA transfer to the image processing circuit 50 is started after the lapse of the reference time, the reference time is set so that data storage in the raster buffer 53 is in time, so that an underrun error can be prevented.

処理(S203)移行の処理を、DMA転送すべきラスタが終了するまで(S208)、繰り返すことにより、1ページ分の印刷が実行される。なお、必要なDMA転送回数の算出およびDMA転送回数のカウントは、毎ラスタ毎に行なうようにする。   By repeating the process of the process (S203) until the raster to be DMA-transferred is completed (S208), printing for one page is executed. The calculation of the necessary number of DMA transfers and the count of the number of DMA transfers are performed for each raster.

このように、本発明の第2の実施例によれば、アンダーランエラーを発生させることなく、印刷装置の処理速度低下を防ぐことができる。さらに、不要な優先順位の切替を行なわないようにすることができる。   Thus, according to the second embodiment of the present invention, it is possible to prevent a decrease in the processing speed of the printing apparatus without causing an underrun error. Furthermore, unnecessary priority switching can be prevented from being performed.

つぎに、本発明の第3の実施例におけるデータ転送処理について図5のフロー図を参照して説明する。   Next, data transfer processing in the third embodiment of the present invention will be described with reference to the flowchart of FIG.

本実施例と第1の実施例との相違点は、DMA転送すべきデータ量に基づいて、基準時間を各ラスタ毎に算出することである。   The difference between this embodiment and the first embodiment is that the reference time is calculated for each raster based on the amount of data to be DMA transferred.

このため、基準時間がラスタ毎に異なることになる。すなわち、転送すべきデータ量が多いラスタについては基準時間が短くなり、転送すべきデータ量が少ないラスタについては基準時間が長くなる。   For this reason, the reference time differs for each raster. That is, the reference time is short for a raster with a large amount of data to be transferred, and the reference time is long for a raster with a small amount of data to be transferred.

本実施例においても、画像処理回路50からのDMA要求があると、このDMA転送の優先順位が低い状態で、最初のラスタデータがラスタバッファ53に格納される(S301)。この際に、DMA転送の回数をカウントする。   Also in this embodiment, when there is a DMA request from the image processing circuit 50, the first raster data is stored in the raster buffer 53 with the DMA transfer priority being low (S301). At this time, the number of DMA transfers is counted.

そして、ラスタスタート信号(S302)により、印刷エンジン60へのイメージデータ出力が開始される。なお、画像処理回路50へのDMA転送に先立ち、ラスタスタート信号の間隔はすでに定められている。   Then, image data output to the print engine 60 is started by the raster start signal (S302). Prior to the DMA transfer to the image processing circuit 50, the interval between the raster start signals is already determined.

そして、画像処理回路50から通知された画像処理回路50へ転送すべきデータ量に基づいて、基準時間を設定する(S303)。基準時間は、そのラスタのデータ量を転送するために必要な時間を見積もり、次のラスタスタートからどれだけ前にDMA転送を開始すれば、少なくとも、次のラスタスタートまでにラスタバッファ53へのDMA転送が完了するかを算出することで求めることができる。   Then, a reference time is set based on the amount of data to be transferred to the image processing circuit 50 notified from the image processing circuit 50 (S303). The reference time estimates the time required to transfer the data amount of the raster, and if DMA transfer is started before the next raster start, at least the DMA to the raster buffer 53 by the next raster start. It can be obtained by calculating whether the transfer is completed.

同時に、タイマ12bの計時がスタートする(S304)。そして、基準時間が経過するまで(S305)、画像処理回路50へのDMA転送が優先順位の低いまま行なわれる。したがって、CPU20からのメインメモリ30へのアクセス要求は、DMA転送により分断されないため、CPU20の処理効率の低下を防ぐことができる。   At the same time, the timer 12b starts counting (S304). Until the reference time elapses (S305), DMA transfer to the image processing circuit 50 is performed with low priority. Therefore, since the access request to the main memory 30 from the CPU 20 is not divided by the DMA transfer, it is possible to prevent the processing efficiency of the CPU 20 from being lowered.

そして、基準時間が経過すると(S305:Y)、調停回路12は、画像処理回路50へのDMA転送を最優先に調停する。   When the reference time has elapsed (S305: Y), the arbitration circuit 12 arbitrates the DMA transfer to the image processing circuit 50 with the highest priority.

そして、次のラスタスタート信号(S307)で、ラスタバッファ53に蓄積されたイメージデータを印刷エンジン60に出力する。基準時間は、基準時間経過後に画像処理回路50へのDMA転送を開始しても、ラスタバッファ53へのデータ格納が間に合うように設定されているため、アンダーランエラーを防ぐことができる。   In response to the next raster start signal (S307), the image data stored in the raster buffer 53 is output to the print engine 60. Even if the DMA transfer to the image processing circuit 50 is started after the lapse of the reference time, the reference time is set so that data storage in the raster buffer 53 is in time, so that an underrun error can be prevented.

処理(S303)移行の処理を、DMA転送すべきラスタが終了するまで(S308)、繰り返すことにより、1ページ分の印刷が実行される。   By repeating the process (S303) until the raster to be DMA transferred is completed (S308), printing for one page is executed.

このように、本発明の第3の実施例によれば、アンダーランエラーを発生させることなく、印刷装置の処理速度低下を防ぐことができる。さらに、転送すべきデータ量に応じて基準時間を変化させるため、より実態にあった制御が可能となり、印刷装置の処理速度低下を一層防ぐことができる。   Thus, according to the third embodiment of the present invention, it is possible to prevent a decrease in the processing speed of the printing apparatus without causing an underrun error. Furthermore, since the reference time is changed in accordance with the amount of data to be transferred, more realistic control is possible, and a reduction in processing speed of the printing apparatus can be further prevented.

つぎに、本発明の第4の実施例におけるデータ転送処理について図6のフロー図を参照して説明する。   Next, data transfer processing in the fourth embodiment of the present invention will be described with reference to the flowchart of FIG.

本実施例と第1の実施例との相違点は、画像処理回路50へ転送すべき残データ量と、次のラスタスタート信号までの時間をリアルタイムに取得し、これ以上、画像処理回路50へのDMA転送の優先順位が低い状態が続くと、ラスタバッファ53へのデータ蓄積が間に合わなくなるおそれがある時点で優先順位を切り替えるようにすることである。   The difference between the present embodiment and the first embodiment is that the remaining data amount to be transferred to the image processing circuit 50 and the time until the next raster start signal are acquired in real time, and further to the image processing circuit 50. If the DMA transfer priority level continues to be low, the priority level is switched when there is a possibility that data accumulation in the raster buffer 53 may not be in time.

このため、調停回路12は、画像処理回路50へのDMA転送回数を転送カウンタ12aを用いてカウントすることで、画像処理回路50へ転送すべき残データ量(残転送回数)を取得し、タイマ12bでラスタスタートからの経過時間を計測することで、次のラスタスタート信号までの時間を取得する。   For this reason, the arbitration circuit 12 counts the number of DMA transfers to the image processing circuit 50 using the transfer counter 12a, thereby acquiring the remaining data amount (number of remaining transfers) to be transferred to the image processing circuit 50, and the timer. By measuring the elapsed time from the raster start in 12b, the time until the next raster start signal is acquired.

そして、残データ量の転送に必要な時間を見積もり、その時間が次のラスタスタート信号までの時間とほぼ一致した時点を転送可能限界と判断し、画像処理回路50へのDMA転送を最優先に調停する。一致したかどうかは、厳密なものでなくてもよく、その時間の差があらかじめ定めた範囲内に入ったことで判断すれば足りる。ただし、転送可能限界の判定は、種々の方法を採用することができる。   Then, the time necessary for transferring the remaining data amount is estimated, and when the time almost coincides with the time until the next raster start signal, it is determined that the transfer is possible, and the DMA transfer to the image processing circuit 50 is given the highest priority. Mediate. Whether or not they coincide with each other does not have to be exact, and it is sufficient to judge that the time difference is within a predetermined range. However, various methods can be adopted to determine the transferable limit.

本実施例においても、画像処理回路50からのDMA要求があると、このDMA転送の優先順位が低い状態で、最初のラスタデータがラスタバッファ53に格納される(S401)。   Also in this embodiment, when there is a DMA request from the image processing circuit 50, the first raster data is stored in the raster buffer 53 in a state where the priority of the DMA transfer is low (S401).

そして、ラスタスタート信号(S402)により、印刷エンジン60へのイメージデータ出力が開始される。なお、画像処理回路50へのDMA転送に先立ち、ラスタスタート信号の間隔はすでに定められている。また、画像処理回路50へ転送すべきデータ量が画像処理回路50から通知されるため、必要なDMA転送回数を算出することができる。そして、DMA転送が行なわれるたびに、残りのDMA転送回数を算出する。   Then, image data output to the print engine 60 is started by the raster start signal (S402). Prior to the DMA transfer to the image processing circuit 50, the interval between the raster start signals is already determined. Further, since the amount of data to be transferred to the image processing circuit 50 is notified from the image processing circuit 50, the necessary number of DMA transfers can be calculated. Each time a DMA transfer is performed, the remaining number of DMA transfers is calculated.

同時に、タイマ12bの計時がスタートする(S403)。DMA転送の開始時においては、画像処理回路50へのDMA転送の優先順位は低く設定されている。したがって、CPU20からのメインメモリ30へのアクセス要求は、DMA転送により分断されないため、CPU20の処理効率の低下を防ぐことができる。   At the same time, the timer 12b starts counting (S403). At the start of DMA transfer, the priority of DMA transfer to the image processing circuit 50 is set low. Therefore, since the access request to the main memory 30 from the CPU 20 is not divided by the DMA transfer, it is possible to prevent the processing efficiency of the CPU 20 from being lowered.

調停回路12は、残りのDMA転送回数とラスタスタートからの経過時間を取得する(S404)。そして、残りのDMA転送回数に必要な時間を見積もり、その時間と次のラスタスタート信号までの時間とに基づいて、転送可能限界状態になったかどうかを判断する(S405)。ここでは、残データ量の転送に必要な時間と、次のラスタスタート信号までの時間とがほぼ一致した時点を転送可能限界と判断する。   The arbitration circuit 12 acquires the remaining number of DMA transfers and the elapsed time from the raster start (S404). Then, the time required for the remaining number of DMA transfers is estimated, and based on the time and the time until the next raster start signal, it is determined whether or not a transferable limit state has been reached (S405). Here, the time when the time required for transferring the remaining data amount substantially coincides with the time until the next raster start signal is determined as the transferable limit.

その結果、転送可能限界に達していないと判断した場合には(S405:N)、画像処理回路50へのDMA転送の優先順位を上げる必要がないため、優先順位の切替は行なわず、DMA転送を継続する。   As a result, when it is determined that the transfer limit has not been reached (S405: N), there is no need to increase the priority of the DMA transfer to the image processing circuit 50, so the priority is not switched and the DMA transfer is not performed. Continue.

一方、転送可能限界に達したと判断した場合には(S405:Y)、画像処理回路50へのDMA転送を最優先に調停する(S406)。なお、CPU20の処理状況等によっては、優先順位の切替が必要ないまま、DMA転送が終了する場合もある。   On the other hand, if it is determined that the transfer limit has been reached (S405: Y), the DMA transfer to the image processing circuit 50 is arbitrated with the highest priority (S406). Note that, depending on the processing status of the CPU 20, the DMA transfer may be completed without switching the priority order.

そして、次のラスタスタート信号(S407)で、ラスタバッファ53に蓄積されたイメージデータを印刷エンジン60に出力する。   In response to the next raster start signal (S407), the image data stored in the raster buffer 53 is output to the print engine 60.

転送可能限界は、その状態となった時点で画像処理回路50へのDMA転送の優先順位を上げても、ラスタバッファ53へのデータ格納が間に合うように設定されているため、アンダーランエラーを防ぐことができる。   The transferable limit is set so that the data storage in the raster buffer 53 is in time even if the priority of DMA transfer to the image processing circuit 50 is increased at that time, so an underrun error is prevented. be able to.

処理(S403)移行の処理を、DMA転送すべきラスタが終了するまで(S408)、繰り返すことにより、1ページ分の印刷が実行される。   By repeating the process (S403) until the raster to be DMA-transferred is completed (S408), printing for one page is executed.

このように、本発明の第4の実施例によれば、アンダーランエラーを発生させることなく、印刷装置の処理速度低下を防ぐことができる。さらに、画像処理回路50へ転送すべき残データ量と、次のラスタスタート信号までの時間をリアルタイムに取得し、これ以上、画像処理回路50へのDMA転送の優先順位が低い状態が続くと、ラスタバッファ53へのデータ蓄積が間に合わなくなるおそれがある時点で優先順位を切り替えるようにしている。これにより、より実態にあった制御が可能となり、CPU20の処理の分断を一層防ぐことができるため、印刷装置の処理速度低下をさらに防ぐことができる。   Thus, according to the fourth embodiment of the present invention, it is possible to prevent a decrease in the processing speed of the printing apparatus without causing an underrun error. Further, the remaining data amount to be transferred to the image processing circuit 50 and the time until the next raster start signal are acquired in real time, and if the priority of DMA transfer to the image processing circuit 50 continues to be lower than this, The priority order is switched when there is a possibility that data storage in the raster buffer 53 may not be in time. As a result, more realistic control is possible, and the processing of the CPU 20 can be further prevented from being divided, so that a reduction in the processing speed of the printing apparatus can be further prevented.

本実施例の印刷装置におけるデータ転送処理関連の構成を説明するブロック図。FIG. 3 is a block diagram illustrating a configuration related to data transfer processing in the printing apparatus according to the embodiment. 第1の実施例におけるデータ転送処理を説明するフロー図。The flowchart explaining the data transfer process in a 1st Example. 本実施例のデータ転送処理を説明するタイミング図。FIG. 6 is a timing chart for explaining data transfer processing according to the embodiment. 第2の実施例におけるデータ転送処理を説明するフロー図。The flowchart explaining the data transfer process in a 2nd Example. 第3の実施例におけるデータ転送処理を説明するフロー図。The flowchart explaining the data transfer process in a 3rd Example. 第4の実施例におけるデータ転送処理を説明するフロー図。The flowchart explaining the data transfer process in a 4th Example. 従来の印刷装置におけるデータ転送処理関連の構成を説明するブロック図。FIG. 6 is a block diagram illustrating a configuration related to data transfer processing in a conventional printing apparatus.

符号の説明Explanation of symbols

10…メモリ制御回路、11…メモリアクセス回路、12…調停回路、12a…転送カウンタ、12b…タイマ、20…CPU、30…メインメモリ、40…入出力制御回路、50…画像処理回路、51…DMA要求制御回路、52…解凍回路、53…ラスタバッファ、54…調整回路、60…印刷エンジン、110…メモリ制御回路、111…メモリアクセス回路、112…調停回路、130…メインメモリ、140…入出力制御回路、150…画像処理回路、151…DMA要求制御回路、152…解凍回路、153…ラスタバッファ、154…調整回路、160…印刷エンジン

DESCRIPTION OF SYMBOLS 10 ... Memory control circuit, 11 ... Memory access circuit, 12 ... Arbitration circuit, 12a ... Transfer counter, 12b ... Timer, 20 ... CPU, 30 ... Main memory, 40 ... Input / output control circuit, 50 ... Image processing circuit, 51 ... DMA request control circuit 52 ... decompression circuit 53 ... raster buffer 54 ... adjustment circuit 60 ... print engine 110 ... memory control circuit 111 ... memory access circuit 112 ... arbitration circuit 130 ... main memory 140 ... input Output control circuit 150... Image processing circuit 151... DMA request control circuit 152. Decompression circuit 153 Raster buffer 154 Adjustment circuit 160 Print engine

Claims (10)

ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、データ転送の開始から所定時間内は、前記CPUからのメモリアクセス要求を優先して調停し、所定時間経過後は前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とするプリンタコントローラ。
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration for arbitrating a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
When there is a data transfer request in raster units from the image processing circuit, the arbitration circuit performs arbitration by giving priority to the memory access request from the CPU within a predetermined time from the start of data transfer, and the predetermined time has elapsed. Thereafter, the printer controller performs arbitration by giving priority to data transfer requests in raster units from the image processing circuit.
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、データ転送の開始から所定時間内は、前記CPUからのメモリアクセス要求を優先して調停し、所定時間経過後に、前記画像処理回路へのデータ転送が終了しているかどうかを判断し、終了していない場合に、前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とするプリンタコントローラ。
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration that arbitrates a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
When there is a data transfer request in raster units from the image processing circuit, the arbitration circuit performs arbitration by giving priority to the memory access request from the CPU within a predetermined time from the start of data transfer, and the predetermined time has elapsed. Thereafter, it is determined whether or not the data transfer to the image processing circuit has been completed. If the data transfer has not been completed, the data transfer request from the image processing circuit is preferentially arbitrated. Printer controller.
請求項1または2に記載のプリンタコントローラであって、
前記所定時間は、
イメージデータの印刷エンジンへの出力開始間隔と、前記ラスタバッファへの最大データ転送量とに基づいて算出されることを特徴とするプリンタコントローラ。
The printer controller according to claim 1 or 2,
The predetermined time is
A printer controller, which is calculated based on an output start interval of image data to a print engine and a maximum data transfer amount to the raster buffer.
請求項2に記載のプリンタコントローラであって、
前記所定時間の算出は、前記ラスタバッファへの最大データ転送量から最大データ転送時間を見積もり、前記イメージデータの印刷エンジンへの出力開始間隔から引くことによって行なわれることを特徴とするプリンタコントローラ。
The printer controller according to claim 2,
The printer controller according to claim 1, wherein the predetermined time is calculated by estimating a maximum data transfer time from a maximum data transfer amount to the raster buffer and subtracting it from an output start interval of the image data to the print engine.
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、転送すべきデータ量に基づいて基準時間を設定し、データ転送の開始から前記基準時間内は、前記CPUからのメモリアクセス要求を優先して調停し、前記基準時間経過後は前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とするプリンタコントローラ。
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration for arbitrating a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
The arbitration circuit sets a reference time based on the amount of data to be transferred when there is a raster-unit data transfer request from the image processing circuit, and within the reference time from the start of data transfer, the CPU A printer controller characterized in that arbitration is performed with priority given to a memory access request from the image processing unit, and arbitration is performed with priority given to a data transfer request in raster units from the image processing circuit after the reference time has elapsed.
請求項5に記載のプリンタコントローラであって、
前記基準時間は、
イメージデータの印刷エンジンへの出力開始間隔と、前記ラスタバッファへのデータ転送量とに基づいて算出されることを特徴とするプリンタコントローラ。
The printer controller according to claim 5, wherein
The reference time is
A printer controller, which is calculated based on an output start interval of image data to a print engine and a data transfer amount to the raster buffer.
請求項6に記載のプリンタコントローラであって、
前記基準時間の算出は、前記ラスタバッファへのデータ転送量からデータ転送時間を見積もり、前記イメージデータの印刷エンジンへの出力開始間隔から引くことによって行なわれることを特徴とするプリンタコントローラ。
The printer controller according to claim 6, wherein
The calculation of the reference time is performed by estimating a data transfer time from a data transfer amount to the raster buffer and subtracting it from an output start interval of the image data to the print engine.
ラスタバッファを備え、印刷エンジンにラスタ単位でイメージデータを出力する画像処理回路と、CPUと、メモリと、前記画像処理回路からのデータ転送要求と、前記CPUからのメモリアクセス要求とを調停する調停回路とを備えたプリンタコントローラであって、
前記調停回路は、前記画像処理回路からのラスタ単位のデータ転送要求があった場合に、データ転送の開始時は、前記CPUからのメモリアクセス要求を優先して調停し、転送すべき残りデータ量とデータ転送開始からの経過時間とが所定の条件を満たした場合に、前記基準時間経過後は前記画像処理回路からのラスタ単位のデータ転送要求を優先して調停することを特徴とするプリンタコントローラ。
An image processing circuit that includes a raster buffer and outputs image data in raster units to the print engine, a CPU, a memory, an arbitration that arbitrates a data transfer request from the image processing circuit and a memory access request from the CPU A printer controller comprising a circuit,
The arbitration circuit performs arbitration by giving priority to the memory access request from the CPU at the start of data transfer when there is a data transfer request in raster units from the image processing circuit, and the remaining data amount to be transferred And an elapsed time from the start of data transfer satisfy a predetermined condition, and after the reference time has elapsed, arbitration is performed with priority given to a raster unit data transfer request from the image processing circuit. .
請求項8に記載のプリンタコントローラであって、
前記所定の条件は、
データ転送開始からの経過時間から、イメージデータの印刷エンジンへの出力開始までの時間を算出し、この時間と前記転送すべき残りデータ量の転送時間との差があらかじめ定めた範囲内に入ることであることを特徴とするプリンタコントローラ。
The printer controller according to claim 8, comprising:
The predetermined condition is:
Calculate the time from the start of data transfer to the start of output of image data to the print engine, and the difference between this time and the transfer time of the remaining data amount to be transferred falls within a predetermined range. A printer controller characterized by the above.
請求項1〜9のいずれか一項に記載したプリンタコントローラを搭載した印刷装置。

A printing apparatus equipped with the printer controller according to claim 1.

JP2006035557A 2006-02-13 2006-02-13 Printer and printer controller Pending JP2007213512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006035557A JP2007213512A (en) 2006-02-13 2006-02-13 Printer and printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006035557A JP2007213512A (en) 2006-02-13 2006-02-13 Printer and printer controller

Publications (1)

Publication Number Publication Date
JP2007213512A true JP2007213512A (en) 2007-08-23

Family

ID=38491856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006035557A Pending JP2007213512A (en) 2006-02-13 2006-02-13 Printer and printer controller

Country Status (1)

Country Link
JP (1) JP2007213512A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012038065A (en) * 2010-08-06 2012-02-23 Ricoh Co Ltd Semiconductor integrated circuit and information storage method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012038065A (en) * 2010-08-06 2012-02-23 Ricoh Co Ltd Semiconductor integrated circuit and information storage method

Similar Documents

Publication Publication Date Title
US7702841B2 (en) Semiconductor integrated circuit and image processing apparatus having the same
US20130254444A1 (en) Image processing apparatus
KR20180088279A (en) Memory access system, method for controlling the same, computer-readable storage medium, and image forming apparatus
TWI753063B (en) Data transfer apparatus and data transfer method
US9760507B2 (en) Data processing device and data processing method
US9026697B2 (en) Data processing apparatus
JP2007213512A (en) Printer and printer controller
JP4895865B2 (en) Controller device, line synchronization error determination method, and image processing device
JP5583563B2 (en) Data processing device
JP2019220787A (en) Control device, image forming apparatus, control method, and control program
JP4175974B2 (en) Image data transfer control device
JPH0713923A (en) Bus control method
JP2008252748A (en) Receiving frame processor and receiving frame processing system
JP5736847B2 (en) Image forming apparatus and control method thereof
JP5334173B2 (en) Data transfer system and retry control method
JP2005321933A (en) Data input and output device and data input and output method
JP2005182505A (en) Data transfer controller and image forming apparatus
JP2005115421A (en) Memory access arbiter and memory access arbitration method
JP2005174145A (en) Data processing method, data processor, program, and storage medium
JP2006171887A (en) Bus controller and information processing system
JP6213003B2 (en) Communication control device, image processing device, communication control program
JP2010020815A (en) Fifo access circuit
JP2005107818A (en) Arbitration device and image forming device using it
JP3939078B2 (en) Data write control circuit
CN113711192A (en) Information processing apparatus