JP3499043B2 - Printing device - Google Patents
Printing deviceInfo
- Publication number
- JP3499043B2 JP3499043B2 JP13553995A JP13553995A JP3499043B2 JP 3499043 B2 JP3499043 B2 JP 3499043B2 JP 13553995 A JP13553995 A JP 13553995A JP 13553995 A JP13553995 A JP 13553995A JP 3499043 B2 JP3499043 B2 JP 3499043B2
- Authority
- JP
- Japan
- Prior art keywords
- buffer
- memory
- data
- size
- interface means
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【産業上の利用分野】本発明は、パーソナルコンピュー
タ等の出力装置として利用される印字装置に関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing device used as an output device for a personal computer or the like.
【0002】[0002]
【従来の技術】近年、ホストコンピュータの性能向上や
インターフェースの性能向上により、印字装置は高速
化、高機能化が求められてきている。特に、レーザーダ
イオードやLEDアレイ等を光源として用いる電子写真
方式の印字装置は、印字速度が高速でかつ高印字品質が
得られるため著しく利用分野が拡大している。2. Description of the Related Art In recent years, due to improvements in the performance of host computers and the performance of interfaces, there has been a demand for higher speed and higher functionality of printers. In particular, electrophotographic printers using a laser diode, an LED array, or the like as a light source have been greatly expanded in their fields of application because of high printing speed and high printing quality.
【0003】この種の印字装置について、図面を参照し
ながら以下に説明する。図11は従来の印字装置の構成
を示すブロック図である。図11に示すように、印字装
置1は、ホストコンピュータ2から送られてくる印字デ
ータを処理するコントローラ部3と用紙上に印字を行な
う印字部4とで構成されている。A printer of this type will be described below with reference to the drawings. FIG. 11 is a block diagram showing the configuration of a conventional printing device. As shown in FIG. 11, the printing apparatus 1 is composed of a controller section 3 for processing print data sent from the host computer 2 and a printing section 4 for printing on paper.
【0004】また、コントローラ部3は、印字データを
処理する中央処理装置(以下、CPUと称す)5と、C
PU5を動作させるプログラムや印字のフォントデータ
が格納されている読みだし専用メモリ(以下、ROMと
称す)6と、ホストコンピュータ2からの印字データを
受信するインターフェース手段7と、受信したデータを
一時格納するI/Oバッファや画像データ等を格納する
ランダムアクセスメモリ(以下、RAMと称す)8と、
RAM8に格納された画像データをシリアルデータに変
換して印字部4へ出力するパラレル/シリアル変換手段
9とで構成されている。Further, the controller section 3 includes a central processing unit (hereinafter referred to as CPU) 5 for processing print data, and a C
A read-only memory (hereinafter referred to as ROM) 6 in which a program for operating the PU 5 and font data for printing are stored, interface means 7 for receiving print data from the host computer 2, and temporarily storing the received data. A random access memory (hereinafter referred to as RAM) 8 for storing an I / O buffer, image data, etc.
The parallel / serial conversion unit 9 converts the image data stored in the RAM 8 into serial data and outputs the serial data to the printing unit 4.
【0005】上記構成において、RAM8内におけるI
/Oバッファとしての割り付けサイズは、一般に印字装
置の全体の性能を考慮し決定される。また、ホストコン
ピュータ2から送られてくるデータは、インターフェー
ス手段7を介してI/Oバッファに蓄えられると共に、
ROM9内のプログラムに従いCPU5によって読み出
される。In the above configuration, I in the RAM 8
The allocation size as the / O buffer is generally determined in consideration of the overall performance of the printing apparatus. Further, the data sent from the host computer 2 is stored in the I / O buffer via the interface means 7, and
It is read by the CPU 5 according to the program in the ROM 9.
【0006】[0006]
【発明が解決しようとする課題】しかしながら上記のよ
うな従来の印字装置では、RAM8内においてI/Oバ
ッファとしての割り付けサイズは固定されているため、
印字データの量、データの受信速度、メモリの使用状況
によっては、装置全体の性能を十分に引き出すことがで
きないという問題点を有していた。However, in the conventional printing device as described above, since the allocation size as the I / O buffer is fixed in the RAM 8,
Depending on the amount of print data, the data reception speed, and the usage status of the memory, there is a problem that the performance of the entire apparatus cannot be fully brought out.
【0007】本発明は、上記問題点を解決するもので、
印字データの量、データの受信速度、メモリの使用状況
に関係なく、RAM内のメモリ資源を有効に利用するこ
とができ、装置全体の性能を十分に引き出すことができ
る高性能の印字装置を提供することを目的とする。The present invention solves the above problems,
Providing a high-performance printing device that can effectively utilize the memory resources in RAM regardless of the amount of print data, data reception speed, and memory usage status, and can bring out the full performance of the device. The purpose is to do.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
に本発明の請求項1に記載の印字装置は、ホストコンピ
ュータと通信するインターフェース手段と、データを記
憶するメモリ資源から割り付けられ、前記インターフェ
ース手段を介して入力されたデータを蓄積するI/Oバ
ッファと、前記メモリ資源の使用状況を検知するメモリ
資源検知手段と、前記メモリ資源検知手段の検知内容に
応じて、前記I/Oバッファとしての前記割り付けのサ
イズを、前記メモリ資源の未使用容量および前記I/O
バッファの割り付けサイズの合計と前記I/Oバッファ
の割り付けサイズとの比率が所定の割合となるように、
コントロールするI/Oバッファコントロール手段とを
備えた構成とする。In order to achieve the above object, a printer according to claim 1 of the present invention is allocated from an interface means for communicating with a host computer and a memory resource for storing data, and the interface is provided. and I / O buffer for storing data input through the unit, a memory resource detection means for detecting the usage of the memory resource, in accordance with the detection contents of the memory resource detecting means, as the I / O buffer The size of the allocation of the unused capacity of the memory resource and the I / O
Total allocation size of buffer and the I / O buffer
So that the ratio with the allocation size of
The I / O buffer control means for controlling is provided.
【0009】請求項3に記載の印字装置は、複数種類の
インターフェース手段におけるそれぞれの使用状況を検
知するI/F使用状況検知手段を備え、請求項1に記載
のI/Oバッファコントロール手段を、前記I/F使用
状況検知手段が未使用と判定したインターフェース手段
に対しては、メモリ資源からのI/Oバッファとしての
割り付けを行わないよう構成する。According to a third aspect of the present invention, there is provided a printing apparatus including an I / F use status detecting means for detecting respective use statuses of a plurality of types of interface means, and the I / O buffer control means according to the first aspect. The interface means that the I / F usage status detecting means determines to be unused is not allocated from the memory resource as an I / O buffer.
【0010】請求項4に記載の印字装置は、請求項1に
記載のI/Oバッファコントロール手段を、ホストコン
ピュータからインターフェース手段へのデータの転送速
度に応じて、メモリ資源からのI/Oバッファとしての
割り付けのサイズをコントロールするよう構成する。According to a fourth aspect of the present invention, there is provided a printer according to the first aspect, wherein the I / O buffer control means according to the first aspect is an I / O buffer from a memory resource depending on a data transfer rate from the host computer to the interface means. Configure to control the size of the allocation as.
【0011】請求項6に記載の印字装置は、請求項1に
記載のI/Oバッファを、固定サイズの一次I/Oバッ
ファと前記一次I/Oバッファの整数倍の二次I/Oバ
ッファとで構成し、インターフェース手段を介して前記
一次I/Oバッファが蓄積したデータを、前記二次I/
Oバッファに転写するよう構成する。According to a sixth aspect of the present invention, there is provided a printer according to the first aspect, wherein the primary I / O buffer having a fixed size and a secondary I / O buffer which is an integral multiple of the primary I / O buffer. And the data accumulated in the primary I / O buffer via the interface means to the secondary I / O buffer.
It is configured to transfer to O buffer.
【0012】[0012]
【作用】請求項1の構成によると、メモリ資源の使用状
況に応じて、I/Oバッファおよび画像データ格納用の
メモリ資源の全容量あるいは未使用サイズとI/Oバッ
ファの容量との比率を変更することによって、未使用サ
イズとともにI/Oバッファの容量を再設定し、そのメ
モリ資源からのI/Oバッファとしての割り付けサイズ
を増減する。According to the first aspect of the invention, the I / O buffer and the image data are stored depending on the usage status of the memory resources .
Total capacity of memory resources or unused size and I / O buffer
By changing the ratio with the capacity of the
Size, the capacity of the I / O buffer is reset , and the allocation size of the memory resource as an I / O buffer is increased or decreased.
【0013】請求項3の構成によると、未使用のインタ
ーフェース手段に対しては、メモリ資源からのI/Oバ
ッファとしての割り付けを行わないようにし、その分、
メモリ資源内におけるユーザーの使用可能な領域を増大
して、メモリ不足エラーを減少する。According to the third aspect of the present invention, unused interface means is not allocated from the memory resource as an I / O buffer.
Increase the user's available space within the memory resource to reduce out-of-memory errors.
【0014】請求項4の構成によると、ホストコンピュ
ータのデータの転送速度性能に合わせ、その性能に応じ
て、メモリ資源からのI/Oバッファとしての割り付け
サイズをコントロールする。According to the structure of claim 4, the allocation size as the I / O buffer from the memory resource is controlled according to the data transfer rate performance of the host computer, according to the performance.
【0015】請求項6の構成によると、一次バッファと
二次バッファとを持たせることにより、コントローラ部
をハードウェアにより構成して、その構成を簡略化す
る。According to the structure of claim 6, by providing the primary buffer and the secondary buffer, the controller unit is configured by hardware and the configuration is simplified.
【0016】[0016]
【実施例】以下、本発明の実施例の印字装置について、
図面を参照しながら説明する。なお、図11に示した従
来例と同様の作用をなす同一部品については同じ符号を
付し、その説明は省略する。Embodiments of the printing apparatus according to the present invention will be described below.
A description will be given with reference to the drawings. The same parts having the same functions as those of the conventional example shown in FIG. 11 are designated by the same reference numerals, and the description thereof will be omitted.
【0017】本発明の第1の実施例の印字装置について
説明する。図1は第1の実施例に於ける印字装置のブロ
ック図を示す。図1において、CPU5を動作させるプ
ログラムやフォントデータが格納されているROM6に
は、コントローラ部3内に装着されているRAM8のメ
モリ資源としてのメモリ容量とその使用状況を検知する
メモリ資源検知手段6a、RAM8内のI/Oバッファ
8aとしての割り付けの容量サイズを制御するI/Oバ
ッファコントロール手段6bが含まれている。A printer according to the first embodiment of the present invention will be described. FIG. 1 shows a block diagram of a printer according to the first embodiment. In FIG. 1, a ROM 6 in which a program for operating the CPU 5 and font data are stored, a memory capacity as a memory resource of a RAM 8 mounted in the controller unit 3 and a memory resource detecting means 6a for detecting the usage status thereof. , An I / O buffer control means 6b for controlling the capacity size of the allocation as the I / O buffer 8a in the RAM 8.
【0018】上記構成において、本実施例の主要部分で
あるI/Oバッファコントロール手段6bを中心に、そ
の動作を図2、図3、図4により説明する。図2は電源
立ち上げ時のI/Oバッファコントロール手段6bの初
期化処理を示すフローチャートである。ステップ#1に
て、装置に装着されているRAM8の容量Nを、メモリ
チェックにより検知する。本実施例ではRAM8の容量
は、標準メモリ装着時2メガバイト(以下、MBと記
す)で、メモリを追加することによる最大メモリ装着時
で34MBとなるように構成されている。In the above structure, the operation of the I / O buffer control means 6b, which is the main part of this embodiment, will be mainly described with reference to FIGS. FIG. 2 is a flow chart showing the initialization processing of the I / O buffer control means 6b when the power is turned on. At step # 1, the capacity N of the RAM 8 mounted on the device is detected by a memory check. In this embodiment, the capacity of the RAM 8 is 2 megabytes (hereinafter referred to as MB) when the standard memory is installed, and is 34 MB when the maximum memory is installed by adding the memory.
【0019】続いてステップ#2にて、I/Oバッファ
8aの容量を装着メモリサイズの1/100となるよう
設定する。従って、標準の2MB装着時では20キロバ
イト(以下、KBと記す)となり、34MB装着時では
340KBとなる。Then, in step # 2, the capacity of the I / O buffer 8a is set to be 1/100 of the mounted memory size. Therefore, it becomes 20 kilobytes (hereinafter referred to as KB) when the standard 2 MB is installed, and 340 KB when the 34 MB is installed.
【0020】図3はI/Oバッファコントロール手段6
bの正常動作中の処理を示すフローチャートであり、定
期的に本処理が繰り返される。本処理が起動されると、
まずステップ#3にて、インターフェース手段7をディ
スエーブルにして一時的にホストコンピュータ2からの
データ受信を禁止し、ステップ#4にて、RAM8内の
使用されていない容量を検知する。FIG. 3 shows the I / O buffer control means 6
It is a flow chart which shows processing during normal operation of b, and this processing is repeated periodically. When this process is started,
First, in step # 3, the interface means 7 is disabled to temporarily prohibit data reception from the host computer 2, and in step # 4, an unused capacity in the RAM 8 is detected.
【0021】続いて、I/Oバッファ8a内に残されて
いるデータが処理されるまで、本処理は休止状態となり
ステップ#5を繰り返す。ステップ#5にて、I/Oバ
ッファ8aが空であることが確認されると、ステップ#
6にて、I/Oバッファ8aの再設定を、ステップ#4
にて検知した未使用容量Mと現在のI/Oバッファサイ
ズの合計の1/10となるように行ない、ステップ#7
にて、インターフェース手段7を再びイネーブルとして
ホストコンピュータ2からのデータ受信を再び可能とし
処理を終了する。Then, this process is put into a rest state and step # 5 is repeated until the data remaining in the I / O buffer 8a is processed. If it is confirmed in step # 5 that the I / O buffer 8a is empty, step # 5
In step 6, the I / O buffer 8a is reset.
The unused capacity M detected in step S1 and the current I / O buffer size are set to 1/10 of the total, and step # 7
Then, the interface means 7 is re-enabled to enable data reception from the host computer 2 again, and the processing is ended.
【0022】図4はI/Oバッファコントロール手段6
bのメモリ不足エラー発生時の処理を示すフローチャー
トである。一般に本タイプの印字装置に於いては、RA
M8は画像データ、ダウンロードフォント、ダウンロー
ドマクロ等の蓄積に使用されるため、使用状況によって
は、メモリ容量不足によるメモリ不足エラーが発生する
ことが知られている。FIG. 4 shows the I / O buffer control means 6
It is a flowchart which shows the process at the time of the memory shortage error of b. Generally, in this type of printer, RA
Since M8 is used to store image data, download fonts, download macros, etc., it is known that a memory shortage error may occur due to insufficient memory capacity depending on the usage situation.
【0023】メモリ不足エラー発生時のI/Oバッファ
コントロール手段6bの動作は、ステップ#8にて、イ
ンターフェース手段7をディスエーブルとし、ステップ
#9にて、I/Oバッファ8aの空き容量と必要メモリ
サイズを比較し、I/Oバッファ8aの空き容量が必要
メモリサイズより大きい場合、ステップ#10にて、I
/Oバッファ8aの空きエリアを開放し、ステップ#1
1にて、I/Oバッファ8a内に残されているデータが
処理されるまでI/Oバッファコントロール手段6b
は、ステップ#11を繰り返す。The operation of the I / O buffer control means 6b upon occurrence of a memory shortage error is such that the interface means 7 is disabled in step # 8, and the available capacity of the I / O buffer 8a is required in step # 9. If the free space of the I / O buffer 8a is larger than the required memory size by comparing the memory sizes, in step # 10, I
Release the empty area of the / O buffer 8a, and step # 1
1, the I / O buffer control means 6b is operated until the data remaining in the I / O buffer 8a is processed.
Repeats step # 11.
【0024】ステップ#11にて、I/Oバッファ8a
が空であることが確認されると、ステップ#13にて、
インターフェース手段7を再びイネーブルとし処理を終
了する。In step # 11, the I / O buffer 8a
If is confirmed to be empty, in step # 13,
The interface means 7 is enabled again, and the process ends.
【0025】一方、ステップ#9にて、必要メモリサイ
ズ分のI/Oバッファ8aの空きがない場合について
は、ステップ#12にて、メモリ不足エラーのままと
し、処理を終了する。On the other hand, if there is no free space in the I / O buffer 8a for the required memory size in step # 9, the memory shortage error is left as it is in step # 12, and the process is terminated.
【0026】本発明の第2の実施例の印字装置について
説明する。ここでは、本実施例を、従来例で説明した印
字装置に於いて、インターフェース手段7内に2つのイ
ンターフェース(以下、I/Fと記す)を有する場合に
適用させて説明する。A printing apparatus according to the second embodiment of the present invention will be described. Here, the present embodiment will be described by applying it to the case where the interface device 7 has two interfaces (hereinafter referred to as I / F) in the printing apparatus described in the conventional example.
【0027】図5は第2の実施例に於ける印字装置のブ
ロック図を示す。図5において、CPU5を動作させる
プログラムやフォントデータが格納されているROM6
には、コントローラ部3内に装着されているRAM8の
メモリ容量とその使用状況を検知するメモリ資源検知手
段6a、RAM8内の受信用のI/Oバッファの容量を
制御するI/Oバッファコントロール手段6bに加え、
インターフェース手段7の使用状況を検知するI/F使
用状況検知手段6cが含まれている。FIG. 5 shows a block diagram of the printing apparatus in the second embodiment. In FIG. 5, a ROM 6 in which programs for operating the CPU 5 and font data are stored
Is a memory resource detecting means 6a for detecting the memory capacity of the RAM 8 mounted in the controller section 3 and its usage, and an I / O buffer control means for controlling the capacity of the receiving I / O buffer in the RAM 8. In addition to 6b,
I / F usage status detection means 6c for detecting the usage status of the interface means 7 is included.
【0028】上記構成において、本実施例の主要部分で
あるI/Oバッファコントロール手段6bを中心に、そ
の動作を図6、図7により説明する。図6は電源立ち上
げ時のI/Oバッファコントロール手段6bとI/F使
用状況検知手段6cの初期化処理を示すフローチャート
である。まずステップ#14にて、装置に装着されてい
るRAM8の容量を、メモリチェックにより検知する。
本実施例では、RAM8の容量Nは、標準時では2MB
で最大時では34MBであるものとする。In the above structure, the operation of the I / O buffer control means 6b, which is the main part of this embodiment, will be mainly described with reference to FIGS. FIG. 6 is a flow chart showing the initialization processing of the I / O buffer control means 6b and the I / F usage status detection means 6c when the power is turned on. First, in step # 14, the capacity of the RAM 8 mounted on the apparatus is detected by a memory check.
In this embodiment, the capacity N of the RAM 8 is 2 MB in standard time.
It is assumed that the maximum is 34 MB.
【0029】続いてステップ#15にて、それぞれのI
/FについてI/Oバッファ8a、8bの容量を装着メ
モリサイズの1/200となるよう設定する。従って、
標準時では10KBとなり、34MB拡張時では170
KBとなる。Then, in step # 15, each I
For / F, the capacities of the I / O buffers 8a and 8b are set to be 1/200 of the mounted memory size. Therefore,
It becomes 10 KB in standard time and 170 in 34 MB expansion.
It becomes KB.
【0030】図7はI/Oバッファコントロール手段6
bの正常動作中の処理を示すフローチャートであり、定
期的に本処理が繰り返される。本処理が起動されると、
まずステップ#16にて、I/F使用状況検知手段6c
は、それぞれのI/Fの使用状況を、インターフェース
手段7を通してI/Oバッファコントロール手段6bに
一定時間T内にデータが取り込まれたかどうかによって
検知する。未使用のI/Fが有りと検知された場合、ス
テップ#18にて、インターフェース手段7により未使
用I/Fをディスエーブルとし、続いてステップ#19
にて、未使用I/Fに対応するI/Oバッファの再設定
を、I/OバッファサイズがI/F使用時の3/5、つ
まりN×0.002のサイズとなるように行なう。FIG. 7 shows the I / O buffer control means 6
It is a flow chart which shows processing during normal operation of b, and this processing is repeated periodically. When this process is started,
First, in step # 16, the I / F usage status detecting means 6c
Detects the usage status of each I / F according to whether or not data is taken into the I / O buffer control means 6b through the interface means 7 within a certain time T. When it is detected that there is an unused I / F, the unused I / F is disabled by the interface means 7 in step # 18, and then step # 19.
Then, the I / O buffer corresponding to the unused I / F is reset so that the I / O buffer size becomes 3/5 that when the I / F is used, that is, the size of N × 0.002.
【0031】続いてステップ#20にて、インターフェ
ース手段7により未使用のI/Fをイネーブルとし処理
を終了する。一方、ステップ#17にて、未使用のI/
Fが無しと検知された場合、ステップ#21にて、未使
用状態から使用状態へ変化したI/Fが有りかどうかの
判定を行ない、有りと判定された場合、ステップ#22
にて、そのI/Fをディスエーブルとし、ステップ#2
3にて、I/Oバッファ8aまたはI/Oバッファ8b
内に残されているデータが処理されるまで、I/Oバッ
ファコントロール手段6bはステップ#23を繰り返
す。Then, in step # 20, the unused I / F is enabled by the interface means 7 and the process is terminated. On the other hand, in step # 17, the unused I /
If F is detected to be absent, then in step # 21 it is determined whether or not there is an I / F that has changed from the unused state to the used state, and if it is determined to be present, step # 22.
Then, that I / F is disabled, and step # 2
3, I / O buffer 8a or I / O buffer 8b
The I / O buffer control means 6b repeats step # 23 until the data remaining therein is processed.
【0032】ステップ#23にて、I/Oバッファ8a
またはI/Oバッファ8bが空になったことが確認され
ると、ステップ#24にて、I/Oバッファ8aまたは
I/Oバッファ8bの再設定を、I/Oバッファのサイ
ズをN×0.005に戻し、続いてステップ#20に
て、インターフェース手段7をイネーブルとし処理を終
了する。また、ステップ#21にて、未使用状態から使
用状態へ変化したI/Fがない場合、そのまま処理を終
了する。In step # 23, the I / O buffer 8a
Alternatively, when it is confirmed that the I / O buffer 8b has become empty, in step # 24, the I / O buffer 8a or the I / O buffer 8b is reset and the size of the I / O buffer is set to N × 0. Then, in step # 20, the interface means 7 is enabled, and the process ends. In step # 21, if there is no I / F that has changed from the unused state to the used state, the process ends.
【0033】本発明の第3の実施例の印字装置について
説明する。図8は第3の実施例に於ける印字装置のブロ
ック図を示す。図8において、第1の実施例で説明した
装置との相違は、ROM6内にインターフェース手段7
を通して一次I/Oバッファ8cへ取り込まれるデータ
の量から、転送速度Vを検知する転送速度検知手段6d
と、一次I/Oバッファ8cの整数倍の容量からなる二
次I/Oバッファ8dを有する点である。A printing apparatus according to the third embodiment of the present invention will be described. FIG. 8 shows a block diagram of the printing apparatus according to the third embodiment. In FIG. 8, the difference from the device described in the first embodiment is that the interface means 7 is provided in the ROM 6.
Transfer rate detecting means 6d for detecting the transfer rate V from the amount of data taken into the primary I / O buffer 8c through
And a secondary I / O buffer 8d having a capacity that is an integral multiple of that of the primary I / O buffer 8c.
【0034】上記構成において、転送速度検知手段6d
とI/Oバッファコントロール手段6bを中心に、その
動作を図9、図10により説明する。図9は電源立ち上
げ時のI/Oバッファコントロール手段6bと転送速度
検知手段6dの初期化処理を示すフローチャートであ
る。まずステップ#25にて、装置に装着されているR
AM8の容量を、メモリチェックにより検知する。本実
施例では、RAM8の容量Nは、標準時では2MBで最
大時では34MBであるものとする。In the above structure, the transfer speed detecting means 6d
The operation of the I / O buffer control means 6b will be described with reference to FIGS. FIG. 9 is a flow chart showing the initialization processing of the I / O buffer control means 6b and the transfer speed detection means 6d when the power is turned on. First, in step # 25, the R mounted on the device
The capacity of AM8 is detected by a memory check. In this embodiment, the capacity N of the RAM 8 is 2 MB in the standard time and 34 MB in the maximum time.
【0035】続いてステップ#26にて、一次I/Oバ
ッファ8cのサイズを10KBに設定し、二次I/Oバ
ッファ8dの容量を装着メモリサイズの1/100とな
るよう設定する。従って、二次I/Oバッファ8dの容
量は標準時では20KBとなり、34KB拡張時では3
40KBとなる。Then, in step # 26, the size of the primary I / O buffer 8c is set to 10 KB, and the capacity of the secondary I / O buffer 8d is set to 1/100 of the mounted memory size. Therefore, the capacity of the secondary I / O buffer 8d is 20 KB in standard time, and is 3 KB in 34 KB expansion.
It will be 40 KB.
【0036】図10はI/Oバッファコントロール手段
6bと転送速度検知手段6dの正常動作中の処理を示す
フローチャートであり、定期的に本処理が繰り返され
る。本処理が起動されると、まずステップ#27にて、
転送速度検知手段6dは、インターフェース手段7を通
してI/Oバッファコントロール手段6bに一定時間T
内に取り込まれたデータの量から、ホストコンピュータ
からのデータ転送速度Vを算出する。続いてステップ#
28にて、転送速度Vに対応したバッファ容量を表1よ
り決定し、バッファ容量が前回と異なるかどうかを、ス
テップ#29にて判定し、異なると判定された場合に
は、ステップ#30にて、インターフェース手段7をデ
ィスエーブルとし、二次I/Oバッファ8d内に残され
ているデータが処理されるまで、I/Oバッファコント
ロール手段6bはステップ#31を繰り返す。FIG. 10 is a flow chart showing the processing during normal operation of the I / O buffer control means 6b and the transfer speed detection means 6d, and this processing is periodically repeated. When this process is started, first in step # 27,
The transfer rate detecting means 6d sends the I / O buffer control means 6b through the interface means 7 a predetermined time T.
The data transfer rate V from the host computer is calculated from the amount of data taken in. Then step #
At 28, the buffer capacity corresponding to the transfer speed V is determined from Table 1, and it is determined at step # 29 whether or not the buffer capacity is different from the previous time. Then, the interface means 7 is disabled, and the I / O buffer control means 6b repeats step # 31 until the data remaining in the secondary I / O buffer 8d is processed.
【0037】ステップ#31にて、二次I/Oバッファ
8dが空になったことが確認されると、ステップ#32
にて、二次I/Oバッファ8dの再設定を、二次I/O
バッファ8dのサイズを表1より決定されたバッファ容
量に設定し、続いてインターフェース手段7をイネーブ
ルとし処理を終了する。When it is confirmed in step # 31 that the secondary I / O buffer 8d is empty, step # 32
To reset the secondary I / O buffer 8d.
The size of the buffer 8d is set to the buffer capacity determined from Table 1, then the interface means 7 is enabled, and the process is ended.
【0038】一方、ステップ#29にて、バッファ容量
が同じと判定された場合は、そのまま処理を終了する。
また、インターフェース手段7の動作は、受信データを
受け取るとCPU5にバスの開放要求を行ない、受理さ
れるとバス上にデータを出力し、RAM8内の一次I/
Oバッファ8cにデータを書き込む。一次I/Oバッフ
ァ8cはリングバッファ構成となっており、リングバッ
ファがフルに近づいたとき、I/Oバッファコントロー
ル手段6bは、一次I/Oバッファ8c内のデータを二
次I/Oバッファ8dへ転送するようインターフェース
手段7へ指示を出し、インターフェース手段7はI/F
をディスエーブルとし一次I/Oバッファ8c内のデー
タを二次I/Oバッファ8dへ転送する。On the other hand, if it is determined in step # 29 that the buffer capacities are the same, the process is terminated.
The operation of the interface means 7 requests the CPU 5 to release the bus when receiving the received data, outputs the data on the bus when the data is received, and outputs the primary I / O in the RAM 8.
Data is written in the O buffer 8c. The primary I / O buffer 8c has a ring buffer configuration, and when the ring buffer approaches full, the I / O buffer control means 6b transfers the data in the primary I / O buffer 8c to the secondary I / O buffer 8d. The interface means 7 is instructed to transfer to the I / F.
Is disabled and the data in the primary I / O buffer 8c is transferred to the secondary I / O buffer 8d.
【0039】転送が終了するとインターフェース手段7
はI/Fを再びイネーブルとし、一次I/Oバッファ8
cへデータの取り込みを始める。以上の第1、第2およ
び第3の実施例の動作により、印字データの量、データ
の受信速度、メモリの使用状況に関係なく、メモリ資源
を有効に利用することができ、装置全体の性能を十分に
引き出すことができる。When the transfer is completed, the interface means 7
Re-enables the I / F and the primary I / O buffer 8
Start importing data to c. By the operations of the first, second and third embodiments described above, the memory resources can be effectively used regardless of the amount of print data, the data receiving speed, and the use status of the memory, and the performance of the entire apparatus can be improved. Can be fully pulled out.
【0040】その結果、よりハイパフォーマンスで低価
格な高性能の印字装置を実現することができる。As a result, it is possible to realize a high-performance printing apparatus with higher performance and lower cost.
【0041】[0041]
【表1】 [Table 1]
【0042】[0042]
【発明の効果】以上のように本発明によれば、メモリ資
源の使用状況に応じて、I/Oバッファおよび画像デー
タ格納用のメモリ資源の全容量あるいは未使用サイズと
I/Oバッファの容量との比率を変更することによっ
て、未使用サイズとともにI/Oバッファの容量を再設
定し、そのメモリ資源からのI/Oバッファとしての割
り付けサイズを増減することができる。As described above, according to the present invention, the I / O buffer and the image data can be changed depending on the usage status of the memory resources.
The total capacity or unused size of memory resources for storing data
By changing the ratio with the capacity of the I / O buffer
Reset the I / O buffer capacity along with the unused size.
Constant, and it is possible to increase or decrease the allocation size of the I / O buffer from the memory resources.
【0043】また、未使用のインターフェース手段に対
しては、メモリ資源からのI/Oバッファとしての割り
付けを行わないようにすることができ、その分、メモリ
資源内におけるユーザーの使用可能な領域を増大して、
メモリ不足エラーを減少することができる。Further, it is possible not to allocate the I / O buffer from the memory resource to the unused interface means, and the area usable by the user in the memory resource is correspondingly allocated. Increasing,
Out-of-memory errors can be reduced.
【0044】また、ホストコンピュータのデータの転送
速度性能に合わせ、その性能に応じて、メモリ資源から
のI/Oバッファとしての割り付けサイズをコントロー
ルすることができる。Further, according to the data transfer rate performance of the host computer, the allocation size as the I / O buffer from the memory resource can be controlled according to the performance.
【0045】また、一次バッファと二次バッファとを持
たせることにより、コントローラ部を、ハードウェアに
より構成して、その構成を簡略化することができる。以
上のため、印字データの量、データの受信速度、メモリ
の使用状況に関係なく、メモリ資源を有効に利用するこ
とができ、装置全体の性能を十分に引き出すことができ
る。Further, by providing the primary buffer and the secondary buffer, the controller section can be configured by hardware and the configuration can be simplified. As described above, the memory resources can be effectively used regardless of the amount of print data, the data reception speed, and the memory usage status, and the performance of the entire apparatus can be sufficiently brought out.
【0046】その結果、よりハイパフォーマンスで低価
格な高性能の印字装置を実現することができる。As a result, it is possible to realize a high-performance printing apparatus of higher performance and lower cost.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明の第1の実施例の印字装置のブロック図FIG. 1 is a block diagram of a printer according to a first embodiment of the present invention.
【図2】同実施例のI/Oバッファコントロール手段の
初期化のフローチャートFIG. 2 is a flowchart of initialization of I / O buffer control means of the same embodiment.
【図3】同実施例のI/Oバッファコントロール手段の
正常時のフローチャートFIG. 3 is a flowchart of a normal operation of the I / O buffer control means of the embodiment.
【図4】同実施例のI/Oバッファコントロール手段の
エラー時のフローチャートFIG. 4 is a flowchart of the I / O buffer control means of the embodiment when an error occurs.
【図5】本発明の第2の実施例の印字装置のブロック図FIG. 5 is a block diagram of a printer according to a second embodiment of the present invention.
【図6】同実施例のI/Oバッファコントロール手段の
初期化のフローチャートFIG. 6 is a flowchart for initializing the I / O buffer control means of the embodiment.
【図7】同実施例のI/Oバッファコントロール手段の
正常時のフローチャートFIG. 7 is a flow chart of the I / O buffer control means of the same embodiment when normal.
【図8】本発明の第3の実施例の印字装置のブロック図FIG. 8 is a block diagram of a printer according to a third embodiment of the present invention.
【図9】同実施例のI/Oバッファコントロール手段の
初期化のフローチャートFIG. 9 is a flowchart for initializing the I / O buffer control means of the embodiment.
【図10】同実施例のI/Oバッファコントロール手段
の正常時のフローチャートFIG. 10 is a flow chart of the I / O buffer control means of the embodiment when it is normal.
【図11】従来の印字装置のブロック図FIG. 11 is a block diagram of a conventional printing device.
7 インターフェース手段 6a メモリ資源検知手段 6b I/Oバッファコントロール手段 6c I/F使用状況検知手段 6d 転送速度検知手段 8a I/Oバッファ 8c 一次I/Oバッファ 8d 二次I/Oバッファ 7 Interface means 6a Memory resource detection means 6b I / O buffer control means 6c I / F usage status detection means 6d Transfer speed detection means 8a I / O buffer 8c Primary I / O buffer 8d Secondary I / O buffer
フロントページの続き (56)参考文献 特開 平6−305204(JP,A) 特開 平4−361348(JP,A) 特開 平4−364556(JP,A) 特開 平2−30557(JP,A) 特開 平2−224191(JP,A) 特開 平4−29863(JP,A) 特開 平5−278273(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 3/12 G06F 13/10 330 Continuation of the front page (56) Reference JP-A-6-305204 (JP, A) JP-A-4-361348 (JP, A) JP-A-4-364556 (JP, A) JP-A-2-30557 (JP , A) JP-A-2-224191 (JP, A) JP-A-4-29863 (JP, A) JP-A-5-278273 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB) Name) G06F 3/12 G06F 13/10 330
Claims (6)
フェース手段と、 データを記憶するメモリ資源から割り付けられ、前記イ
ンターフェース手段を介して入力されたデータを蓄積す
るI/Oバッファと、 前記メモリ資源の使用状況を検知するメモリ資源検知手
段と、 前記メモリ資源検知手段の検知内容に応じて、前記I/
Oバッファとしての前記割り付けのサイズを、前記メモ
リ資源の未使用容量および前記I/Oバッファの割り付
けサイズの合計と前記I/Oバッファの割り付けサイズ
との比率が所定の割合となるように、コントロールする
I/Oバッファコントロール手段とを備えた印字装置。1. An interface means for communicating with a host computer, an I / O buffer allocated from memory resources for storing data, and accumulating data input via the interface means, and a usage status of the memory resources. and memory resources detection means for detecting, in response to detecting the content of the memory resource detecting means, the I /
The size of the allocation as O buffer is
Allocation of unused resource capacity and I / O buffer
Total size and I / O buffer allocation size
And a I / O buffer control unit for controlling the ratio so that the ratio of the ratio and the ratio becomes a predetermined ratio .
た請求項1に記載の印字装置。2. The printer according to claim 1, comprising a plurality of types of interface means.
するI/F使用状況検知手段を備え、I/Oバッファコ
ントロール手段を、前記I/F使用状況検知手段が未使
用と判定したインターフェース手段に対しては、メモリ
資源からのI/Oバッファとしての割り付けを行わない
よう構成した請求項2に記載の印字装置。3. An I / F usage status detecting means for detecting a usage status of the interface means, wherein the I / O buffer control means is provided for the interface means which the I / F usage status detecting means determines to be unused. 3. The printer according to claim 2, wherein the printer is configured not to be allocated as an I / O buffer from a memory resource.
ストコンピュータからインターフェース手段へのデータ
の転送速度に応じて、メモリ資源からのI/Oバッファ
としての割り付けのサイズをコントロールするよう構成
した請求項1に記載の印字装置。4. The I / O buffer control means is configured to control the size of allocation as an I / O buffer from memory resources according to the transfer rate of data from the host computer to the interface means. The printing device described in 1.
意のI/Oバッファのメモリ資源からの割り付けのサイ
ズを物理的に確保するよう構成し、前記任意のI/Oバ
ッファは、インターフェース手段からのデータを逐次蓄
積する請求項1に記載の印字装置。5. The I / O buffer control means is configured to physically secure the size of the allocation from the memory resource of the arbitrary I / O buffer, and the arbitrary I / O buffer is provided from the interface means. The printing device according to claim 1, wherein data is sequentially stored.
/Oバッファと前記一次I/Oバッファの整数倍の二次
I/Oバッファとで構成し、インターフェース手段を介
して前記一次I/Oバッファが蓄積したデータを、前記
二次I/Oバッファに転写する請求項1に記載の印字装
置。6. The I / O buffer is a fixed size primary I
/ O buffer and a secondary I / O buffer that is an integral multiple of the primary I / O buffer, and stores the data accumulated in the primary I / O buffer via the interface means in the secondary I / O buffer. The printing device according to claim 1, wherein the printing is performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13553995A JP3499043B2 (en) | 1995-06-02 | 1995-06-02 | Printing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13553995A JP3499043B2 (en) | 1995-06-02 | 1995-06-02 | Printing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08328766A JPH08328766A (en) | 1996-12-13 |
| JP3499043B2 true JP3499043B2 (en) | 2004-02-23 |
Family
ID=15154153
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13553995A Expired - Fee Related JP3499043B2 (en) | 1995-06-02 | 1995-06-02 | Printing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3499043B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4542880B2 (en) * | 2004-11-25 | 2010-09-15 | 日立オムロンターミナルソリューションズ株式会社 | Automatic transaction equipment |
-
1995
- 1995-06-02 JP JP13553995A patent/JP3499043B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08328766A (en) | 1996-12-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6683696B1 (en) | Filter based data imaging method for an image forming device | |
| JP3226095B2 (en) | Network printer | |
| EP0840202B1 (en) | Dynamic peripheral control of I/O buffers in peripherals with modular I/O | |
| JP2004157966A (en) | End point memory control method and device, usb device, and storage medium | |
| JP3007103B2 (en) | Printing control device | |
| US7505166B2 (en) | Method of controlling print job schedule and printing system using the method | |
| CN100378619C (en) | Information processing apparatus and control method thereof | |
| US7212306B2 (en) | System and method for allocating random access memory in a multifunction peripheral device | |
| JP3499043B2 (en) | Printing device | |
| JP2011046034A (en) | Image processor, image processing method, image processing program, and recording medium | |
| US8614822B2 (en) | Print data processing apparatus, print data processing method, and storage medium | |
| US20050162694A1 (en) | Printer control device | |
| EP1035467B1 (en) | Printer and printer data processing method | |
| US6731395B1 (en) | Network printer with watch dog timer | |
| US20060082827A1 (en) | Network printer to control a print queue and method thereof | |
| JP4356994B2 (en) | Print control apparatus, print control method, and program | |
| US20030202208A1 (en) | System and method for managing storage of data in printing devices | |
| JP3289826B2 (en) | Network printer and network printing method | |
| JP2002063072A (en) | Information processing apparatus and printer having the same | |
| JPH08249142A (en) | Printing equipment | |
| JP2001018493A (en) | Printer, printer control method, and recording medium recording processing for the printer | |
| JP4252958B2 (en) | Print control device | |
| JP3703227B2 (en) | Information processing apparatus and information transfer method thereof | |
| JP2002123377A (en) | PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND STORAGE MEDIUM | |
| JP2000255141A (en) | Print processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |