JPH09300739A - Receiving buffer control device and recording apparatus - Google Patents

Receiving buffer control device and recording apparatus

Info

Publication number
JPH09300739A
JPH09300739A JP8122007A JP12200796A JPH09300739A JP H09300739 A JPH09300739 A JP H09300739A JP 8122007 A JP8122007 A JP 8122007A JP 12200796 A JP12200796 A JP 12200796A JP H09300739 A JPH09300739 A JP H09300739A
Authority
JP
Japan
Prior art keywords
address
reception buffer
data
storage means
buffer
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
JP8122007A
Other languages
Japanese (ja)
Inventor
Akira Kuribayashi
明 栗林
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 JP8122007A priority Critical patent/JPH09300739A/en
Publication of JPH09300739A publication Critical patent/JPH09300739A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a receiving buffer control device and a recording apparatus effectively putting the empty region within the receiving buffer constituting a ring buffer to practical use to reduce throughput. SOLUTION: The start address of one end of the receiving buffer constituting a ring buffer and the completion address of the other end thereof are stored in registers 16a, 17a and the start address and completion address of the arbitrary empty region ensured within the receiving buffer, for example, a region storing the data of down-load data are also stored in registers 16b, 17b to effectively control the region performing the usual processing of the data within the receiving buffer and the empty region storing other data to maximally put the memory region within the receiving buffer to practical use.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、記録装置のデータ
入力部においてリングバッファ構成をもつ受信バッファ
の制御を行う受信バッファ制御装置に関するものであ
る。また、本発明は、受信バッファの一部を、ダウンロ
ードしたデータを記憶するダウンロードファイバとして
利用する記録装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reception buffer control device for controlling a reception buffer having a ring buffer structure in a data input section of a recording device. The present invention also relates to a recording device that uses a part of the reception buffer as a download fiber for storing downloaded data.

【0002】[0002]

【従来の技術】従来、記録装置の入力部には、外部(ホ
スト側)から受信した入出力データ(印字データ等)を
バッファ記憶するための受信バッファが設けられてい
る。この受信バッファはリングバッファの形態に構成さ
れており、この受信バッファに対するデータの入出力制
御が受信バッファ制御装置によって行われる。この受信
バッファ制御装置は、一般に、受信バッファに記憶され
た未処理のデータ数をカウントするアップダウンカウン
タと、受信バッファへのデータ書き込みアドレスを生成
する書き込みアドレス生成カウンタと、書き込みアドレ
スを表すカウント値を書き込みアドレス生成カウンタへ
設定するカウント設定回路と、受信バッファからのデー
タの読み出しアドレスを生成する読み出しアドレス生成
カウンタと、読み出し開始アドレスを表すカウント値を
読み出しアドレス生成カウンタに設定するカウント値設
定回路と、受信バッファの終了アドレス値を記憶するレ
ジスタと、受信バッファ書き込みアドレスと受信バッフ
ァの終了アドレスを比較する比較器と、受信バッファの
読み出しアドレスと受信バッファの終了アドレスとを比
較する比較器とを有している。
2. Description of the Related Art Conventionally, a receiving buffer for storing input / output data (print data or the like) received from the outside (host side) in a buffer is provided in an input unit of a recording apparatus. This reception buffer is configured in the form of a ring buffer, and the input / output control of data with respect to this reception buffer is performed by the reception buffer control device. This reception buffer control device generally has an up / down counter that counts the number of unprocessed data stored in the reception buffer, a write address generation counter that generates a data write address to the reception buffer, and a count value that represents the write address. To a write address generation counter, a read address generation counter that generates a read address of data from the reception buffer, and a count value setting circuit that sets a count value representing a read start address to the read address generation counter. , A register that stores the end address value of the receive buffer, a comparator that compares the receive buffer write address with the end address of the receive buffer, and a ratio that compares the read address of the receive buffer with the end address of the receive buffer. And a vessel.

【0003】未処理の受信バッファ数をカウントするカ
ウンタは、アップダウンカウンタで構成でき、記録装置
の内部動作が受信バッファの書き込みサイクルの時は、
カウントアップが有効になり、受信バッファのアクセス
終了直後にカウントアップする。また、記録装置の内部
動作が受信バッファの読み出しサイクルの時は、カウン
トダウンが有効になり、受信バッファのアクセス終了直
後にカウントダウンする。
A counter for counting the number of unprocessed receive buffers can be constituted by an up / down counter, and when the internal operation of the recording apparatus is a write cycle of the receive buffer,
Count-up becomes valid and counts up immediately after access to the receive buffer is completed. Further, when the internal operation of the recording apparatus is the read cycle of the reception buffer, the countdown becomes valid, and the countdown is performed immediately after the access of the reception buffer is completed.

【0004】書き込みアドレス生成カウンタと、読み出
しアドレス生成カウンタとは、それぞれ、アップカウン
タで構成され、書き込みアドレス生成カウンタは、記録
装置の内部動作が受信バッファの書き込みサイクルの時
に動作状態になり、受信バッファのアクセス終了直後に
カウントアップする。また、読み出しアドレス生成カウ
ンタは、記録装置の内部動作が受信バッファの読み出し
サイクルの時に動作状態になり、受信バッファのアクセ
ス終了直後にカウントアップする。
The write address generation counter and the read address generation counter are each configured by an up counter, and the write address generation counter is in an operating state when the internal operation of the recording apparatus is the write cycle of the reception buffer and the reception buffer. Immediately after the end of the access of, it counts up. Further, the read address generation counter is in an operating state when the internal operation of the recording device is a read cycle of the reception buffer, and counts up immediately after the access of the reception buffer is completed.

【0005】ホストからデータの受信を行うと、記録装
置の内部動作は、受信データの受信バッファへの書き込
みサイクルになり、未処理の受信データ数をカウントす
るカウンタと書き込みアドレスを生成するカウンタは、
カウント可能な状態になる。受信バッファに受信データ
の書き込みが行われると、受信バッファのアクセス終了
後、それぞれのカウンタはカウントアップし、未処理受
信データ数は+1される。また、書き込みアドレスは、
次の書き込みアドレスを示す。
When data is received from the host, the internal operation of the recording apparatus becomes a write data write cycle to the receive buffer, and the counter for counting the number of unprocessed receive data and the counter for generating the write address are
It becomes possible to count. When the reception data is written in the reception buffer, each counter is incremented after the access of the reception buffer is completed, and the number of unprocessed reception data is incremented by one. The write address is
Indicates the next write address.

【0006】記録装置の制御部がホストからのデータの
受信を確認すると、記録装置の内部動作は受信データの
読み出しサイクルに切り替わり、未処理受信データ数を
カウントするカウンタは、カウントダウン動作が有効に
なり、読み出しアドレス生成カウンタは、動作可能な状
態になる。受信データの受信バッファからの読み出しが
行われると、受信バッファのアクセス終了後、未処理受
信データ数は−1される。また、読み出しアドレス生成
カウンタは1つカウントアップし、次の読み出しアドレ
スを示す。
When the control unit of the recording apparatus confirms the reception of the data from the host, the internal operation of the recording apparatus is switched to the read cycle of the received data, and the counter for counting the number of unprocessed received data becomes effective in the countdown operation. The read address generation counter becomes operable. When the reception data is read from the reception buffer, the number of unprocessed reception data is decremented by 1 after the access of the reception buffer is completed. In addition, the read address generation counter counts up by 1 and indicates the next read address.

【0007】受信バッファの最終アドレスはレジスタに
予め設定されており、書き込みアドレスおよび読み出し
アドレスがレジスタに設定されたアドレスに達すると、
それぞれのアドレスに対応した比較器からアドレスの一
致を示す信号が出力される。書き込みアドレス生成カウ
ンタおよび読み出しアドレス生成カウンタは、最終アド
レスとの一致を示す信号が出力されると、それぞれのカ
ウント値設定回路を介して、受信バッファの開始アドレ
スを示すカウント値が設定される。以上により、受信バ
ッファは、リングバッファ構成をなす。
The final address of the receiving buffer is preset in the register, and when the write address and the read address reach the addresses set in the register,
A signal corresponding to each address is output from the comparator corresponding to each address. When a signal indicating a match with the final address is output, the write address generation counter and the read address generation counter set the count value indicating the start address of the reception buffer via the respective count value setting circuits. As described above, the reception buffer has a ring buffer configuration.

【0008】記録装置の制御部は、受信データの書き込
みサイクルと読み出しサイクルを時分割で処理するた
め、見かけ上、ホストからデータを受信しながら印字動
作を行うことができる。
Since the control unit of the recording apparatus processes the writing cycle and the reading cycle of the received data in a time-division manner, it is possible to apparently perform the printing operation while receiving the data from the host.

【0009】記録装置が、ダウンロードデータを受信可
能なようにモード設定されると、その制御部は、ダウン
ロードデータを記録する領域を受信バッファ内に確保し
て、受信バッファの最終アドレスをレジスタに設定す
る。そして、ホストより、ダウンロードデータが送信さ
れると、制御部は、ダウンロードデータをあらかじめ確
保した領域に記憶していく。
When the recording device is set to the mode in which the download data can be received, the control unit secures an area for recording the download data in the reception buffer and sets the final address of the reception buffer in the register. To do. Then, when the download data is transmitted from the host, the control unit stores the download data in the reserved area.

【0010】[0010]

【発明が解決しようとする課題】従来の受信バッファ
は、カウンタを用いて書き込みアドレスおよび読み出し
アドレスを生成するリングバッファの構成をとるので、
受信バッファとして連続したメモリ領域が必要である。
しかもまた、ダウンロードデータを入力可能にした場
合、ホストから送信されるダウンロードデータのデータ
量を予め認識することは不可能であるので、記録装置と
して確保可能な容量を予め確保しておかないと、一旦ダ
ウンロードデータを受信した後から容量を増やすこと
は、大変困難である。このため、ダウンロードデータ量
が少ないにもかかわらず、ダウンドーロデータ記憶領域
を確保可能な最大量を記録装置内部に予め確保しておか
なければならない。その結果、受信データ用の領域が少
なくなり、データ受信のスループットが低下するという
問題点がある。
Since the conventional receiving buffer has a ring buffer structure for generating a write address and a read address by using a counter,
A continuous memory area is required as a receive buffer.
Moreover, when the download data can be input, it is impossible to recognize the data amount of the download data transmitted from the host in advance. Therefore, it is necessary to secure in advance a capacity that can be secured as a recording device. It is very difficult to increase the capacity after receiving the download data once. Therefore, even if the download data amount is small, the maximum amount that can secure the downdolo data storage area must be secured in advance inside the recording device. As a result, there is a problem that the area for receiving data is reduced and the throughput of data reception is reduced.

【0011】そこで、本発明の目的は、リングバッファ
を構成する受信バッファ内の空き領域を有効に活用し、
スループットの低減を図ることが可能な受信バッファ制
御装置およびこの装置を具えた記録装置を提供すること
にある。
Therefore, an object of the present invention is to effectively utilize the free area in the receiving buffer which constitutes the ring buffer,
An object of the present invention is to provide a reception buffer control device capable of reducing the throughput and a recording device equipped with this device.

【0012】[0012]

【課題を解決するための手段】本発明では、受信バッフ
ァに記憶された未処理のデータ数をカウントするカウン
ト手段と、前記受信バッファへの書き込みアドレスを生
成する書き込みアドレス生成手段と、前記書き込みアド
レス生成手段へ予め定めたアドレスを設定する第1のア
ドレス設定手段と、前記受信バッファからの読み出しア
ドレスを生成する読み出しアドレス生成手段と、前記読
み出しアドレス生成手段へ予め定めたアドレスを設定す
る第2のアドレス設定手段と、前記受信バッファの連続
した開始アドレスを記憶する第1の記憶手段と、前記受
信バッファの連続した終了アドレスを記憶する第2の記
憶手段と、前記書き込みアドレス生成手段により生成さ
れた書き込みアドレスと前記第2の記憶手段に書き込み
まれた最終アドレスとを比較する第1の比較手段と、前
記読み出しアドレス生成手段により生成された読み出し
アドレスと前記第2の記憶手段に書き込みまれた最終ア
ドレスとを比較する第2の比較手段とを具備することに
よって、受信バッファ制御装置を構成することができ
る。
According to the present invention, a counting means for counting the number of unprocessed data stored in a receiving buffer, a writing address generating means for generating a writing address to the receiving buffer, and the writing address. First address setting means for setting a predetermined address in the generating means, read address generating means for generating a read address from the reception buffer, and second address setting means for setting a predetermined address in the read address generating means. It is generated by the address setting means, the first storage means for storing the continuous start address of the reception buffer, the second storage means for storing the continuous end address of the reception buffer, and the write address generation means. The write address and the final address written in the second storage means. And a second comparing means for comparing the read address generated by the read address generating means with the final address written in the second storage means. , A reception buffer control device can be configured.

【0013】また、本発明では、開始アドレスと終了ア
ドレスとによって限界された受信バッファに記憶された
未処理のデータの個数をカウントするカウント手段と、
前記受信バッファへの書き込みアドレスを生成する書き
込みアドレス生成手段と、前記書き込みアドレス生成手
段に対して予め定めたアドレスを設定する第1のアドレ
ス設定手段と、前記受信バッファからの読み出しアドレ
スを生成する読み出しアドレス生成手段と、前記読み出
しアドレス生成手段に対して予め定めたアドレスを設定
する第2のアドレス設定手段と、前記受信バッファにお
ける連続した少なくとも2つの開始アドレスを記憶する
第1の記憶手段と、前記受信バッファにおける連続した
少なくとも2つの終了アドレスを記憶する第2の記憶手
段と、前記第2の記憶手段に記憶されたアドレスと前記
書き込みアドレス生成手段により生成された書き込みア
ドレスとを比較する第1の比較手段と、前記第2の記憶
手段に記憶されたアドレスと前記読み出しアドレス生成
手段により生成された読み出しアドレスとを比較する第
2の比較手段とを具備することによって、受信バッファ
制御装置を構成することができる。
Further, according to the present invention, counting means for counting the number of unprocessed data stored in the reception buffer, which is limited by the start address and the end address,
Write address generating means for generating a write address to the receiving buffer, first address setting means for setting a predetermined address for the write address generating means, and reading for generating a read address from the receiving buffer. Address generation means, second address setting means for setting a predetermined address for the read address generation means, first storage means for storing at least two consecutive start addresses in the reception buffer, and Second storage means for storing at least two consecutive end addresses in the reception buffer, and a first storage means for comparing the address stored in the second storage means with the write address generated by the write address generation means. Stored in the comparison means and the second storage means By and a second comparator means for comparing the read address generated by the address and the read address generating means, it is possible to configure the receiving buffer control unit.

【0014】また、上述した受信バッファ制御装置にお
いて、以下のような構成を付加させることができる。
Further, the following structure can be added to the above-mentioned reception buffer control device.

【0015】例えば、前記第1の記憶手段に、前記受信
バッファの一つの固定された開始アドレスと、前記受信
バッファの所定の位置を示す開始アドレスとを記憶させ
る。そして、前記受信バッファの一つの開始アドレスが
固定値の場合、開始アドレスを記憶する前記第1の記憶
手段の数を、終了アドレスを記憶する前記第2の記憶手
段の数よりも一つ少なくして構成することができる。
For example, one fixed start address of the reception buffer and a start address indicating a predetermined position of the reception buffer are stored in the first storage means. When one start address of the reception buffer has a fixed value, the number of the first storage means for storing the start address is reduced by one less than the number of the second storage means for storing the end address. Can be configured.

【0016】前記第2の記憶手段に、前記受信バッファ
の一つの固定された終了アドレスと、前記受信バッファ
の所定の位置を示す終了アドレスとを記憶させる。そし
て、前記受信バッファの一つの終了アドレスが固定値の
場合、終了アドレスを記憶する前記第2の記憶手段の数
が開始アドレスを記憶する前記第1の記憶手段の数より
も一つ少なくして構成することができる。
The second storage means stores one fixed end address of the reception buffer and an end address indicating a predetermined position of the reception buffer. When one end address of the reception buffer is a fixed value, the number of the second storage means for storing the end address is set to be one less than the number of the first storage means for storing the start address. Can be configured.

【0017】前記第1の記憶手段を前記開始アドレスを
各々別個に記憶する少なくとも2つの記憶手段により構
成したり、また、前記第2の記憶手段を前記終了アドレ
スを各々別個に記憶する少なくとも2つの記憶手段によ
り構成することができる。また、前記書き込みアドレス
生成手段と前記読み出しアドレス生成手段とを、それぞ
れカウンタを用いて構成することができる。
The first storage means may be composed of at least two storage means each storing the start address separately, and the second storage means at least two storage means each separately storing the end address. It can be configured by storage means. Further, the write address generating means and the read address generating means can be configured using counters, respectively.

【0018】前記カウント手段はカウント値を1つずつ
加算・減算するアップダウンカウンタを用いて構成する
ことができる。この場合、当該アップダウンカウンタは
前記受信バッファへの書き込みサイクル時に1つ加算さ
れ、前記受信バッファからの読み出しサイクル時に1つ
減算される。
The counting means can be constructed by using an up / down counter for adding / subtracting count values one by one. In this case, the up / down counter is incremented by 1 in the write cycle to the receive buffer and decremented by 1 in the read cycle from the receive buffer.

【0019】また、本発明は、前述した受信バッファ制
御装置を用いて記録装置を構成することができる。すな
わち、前記受信バッファに対して前記入出力用データの
入出力制御を行う前述した受信バッファ制御装置と、開
始アドレスと終了アドレスとによって限界され、かつ入
出力用データを一時記憶する受信バッファと、前記入出
力用データが記憶される記憶部と、前記記憶部に対して
前記入出力用データの書き込みみおよび読み出ししの制
御を行う記憶制御部とによって、記録装置を構成するこ
とができる。
Further, according to the present invention, a recording device can be constructed by using the above-mentioned receiving buffer control device. That is, the above-mentioned reception buffer control device that controls the input / output of the input / output data with respect to the reception buffer, a reception buffer that is limited by a start address and an end address, and temporarily stores the input / output data, A recording device can be configured by a storage unit that stores the input / output data and a storage control unit that controls writing and reading of the input / output data to and from the storage unit.

【0020】また、上述した記録装置において、以下の
ような構成を付加させることができる。
Further, the following configuration can be added to the recording apparatus described above.

【0021】例えば、前記入出力用データの入出力速度
を制御する速度制御部をさらに設け、前記受信バッファ
の空き領域を当該入出力用データに含まれる他の情報デ
ータの記憶領域として用いることができる。
For example, a speed controller for controlling the input / output speed of the input / output data may be further provided, and the free area of the reception buffer may be used as a storage area for other information data included in the input / output data. it can.

【0022】前記受信バッファの空き領域が前記他の情
報データの量よりも多い場合には、前記受信バッファか
ら未処理のデータを読み出しして処理を行い、前記受信
バッファ内に前記他の情報データを記憶するための空き
領域を確保することができる。
When the free area of the reception buffer is larger than the amount of the other information data, unprocessed data is read from the reception buffer and processed, and the other information data is stored in the reception buffer. It is possible to secure an empty area for storing the.

【0023】また、前記受信バッファの空き領域が前記
他の情報データの量よりも少ない場合には、前記速度制
御部を起動させ前記入出力用データの受信速度を低速に
するとともに、前記受信バッファからの未処理のデータ
の読み出ししと当該データの処理を行い、前記受信バッ
ファ内に前記他の情報データを記憶するための空き領域
を確保することができる。このように、前記受信バッフ
ァ内に確保された空き領域に前記低速の受信速度で前記
他の情報データの記憶を行った後、当該受信速度を前記
低速から定常の速度に戻して未処理のデータを処理する
ことができる。
When the free area of the reception buffer is smaller than the amount of the other information data, the speed control unit is activated to reduce the reception speed of the input / output data and the reception buffer It is possible to read the unprocessed data from and to process the data, and to secure a free area in the reception buffer for storing the other information data. As described above, after the other information data is stored in the empty area secured in the reception buffer at the low reception speed, the reception speed is returned from the low speed to the steady speed and the unprocessed data is processed. Can be processed.

【0024】また、前記受信バッファの空き領域に記憶
された前記他の情報データの記憶領域を示す開始アドレ
スと、前記受信バッファの前記一端の開始アドレスと
を、前記第1の記憶手段に記憶させることができる。ま
た、前記受信バッファの空き領域に記憶された前記他の
情報データの記憶領域を示す終了アドレスと、前記受信
バッファの前記他端の終了アドレスとを、前記第2の記
憶手段に記憶させることができる。
Further, a start address indicating a storage area of the other information data stored in the free area of the reception buffer and a start address of the one end of the reception buffer are stored in the first storage means. be able to. Further, an end address indicating a storage area of the other information data stored in the free area of the reception buffer and an end address of the other end of the reception buffer may be stored in the second storage means. it can.

【0025】この他に、前記入出力用データとしては印
字データを用いることができる。また、前記受信バッフ
ァ制御装置を前記記憶制御部内に具えて構成したり、外
部装置との間で前記入出力用データの入出力処理を行う
インターフェース部を具えて構成することができる。
In addition to this, print data can be used as the input / output data. Further, the reception buffer control device can be provided in the storage control unit, or an interface unit for performing input / output processing of the input / output data with an external device can be provided.

【0026】[0026]

【発明の実施の形態】本発明の実施の形態について説明
する。図1は、本発明記録装置の構成の一例を示す。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described. FIG. 1 shows an example of the configuration of the recording apparatus of the present invention.

【0027】図1において、1は、記録装置全体を制御
する制御部である。2は、ホストからの印字情報の入力
を行う入力インタフェース部である。3は、印字情報の
受信速度を遅くなるように制御する受信速度制御部であ
る。
In FIG. 1, reference numeral 1 is a control unit for controlling the entire recording apparatus. An input interface unit 2 inputs print information from the host. A reception speed control unit 3 controls the reception speed of print information to be slow.

【0028】4は、受信バッファ200を含むメモリ5
への書き込み読み出しを制御するメモリ制御部である。
5は、受信バッファ200としての領域を含むメモリで
ある。6は、ホストからの印字情報に含まれるダウンロ
ードコマンドを検出するダウンロードコマンド検出部で
ある。7は、データバスである。メモリ制御部4には、
受信バッファ200の書き込みアドレス、読み出しアド
レス等を管理する受信バッファ制御部100を有してい
る。なお、その他記録装置に必要な部分についての説明
は省略する。
Reference numeral 4 denotes a memory 5 including a reception buffer 200.
It is a memory control unit that controls writing and reading to and from.
Reference numeral 5 is a memory including an area serving as the reception buffer 200. A download command detection unit 6 detects a download command included in the print information from the host. 7 is a data bus. The memory control unit 4 includes
The reception buffer 200 has a reception buffer control unit 100 that manages write addresses and read addresses of the reception buffer 200. It should be noted that description of other parts necessary for the recording apparatus is omitted.

【0029】図2は、本発明による受信バッファ制御部
100の詳細な回路構成例を示すブロック図である。
FIG. 2 is a block diagram showing a detailed circuit configuration example of the reception buffer control unit 100 according to the present invention.

【0030】図2において、11は、未処理受信データ
数をカウントするアップダウンカウンタである。12は
受信データを受信バッファ200に書き込む書き込みア
ドレスを生成する書き込みアドレス生成カウンタであ
る。13は、受信データを受信バッファ200から読み
出す読み出しアドレスを生成する読み出しアドレス生成
カウンタである。14は、カウンタ12にカウント値を
ロードするカウント値設定回路である。15は、カウン
タ13にカウント値をロードするカウント値設定回路で
ある。
In FIG. 2, 11 is an up / down counter for counting the number of unprocessed received data. Reference numeral 12 is a write address generation counter that generates a write address for writing the received data in the reception buffer 200. A read address generation counter 13 generates a read address for reading the received data from the reception buffer 200. Reference numeral 14 is a count value setting circuit that loads the count value into the counter 12. Reference numeral 15 is a count value setting circuit that loads the count value into the counter 13.

【0031】16aは、受信バッファ200の第1の開
始アドレス値を記憶する第1のレジスタである。16b
は、受信バッファ200の第2の開始アドレス値を記憶
する第2のレジスタである。17aは、受信バッファ2
00の第1の終了アドレス値を記憶する第3のレジスタ
である。17bは、受信バッファ200の第2の終了ア
ドレス値を記憶する第4のレジスタである。
Reference numeral 16a is a first register for storing the first start address value of the reception buffer 200. 16b
Is a second register that stores the second start address value of the receive buffer 200. 17a is the reception buffer 2
00 is a third register for storing a first end address value of 00. 17b is a fourth register that stores the second end address value of the reception buffer 200.

【0032】18aは、カウンタ12のカウント値とレ
ジスタ17aに記憶された第1の終了アドレス値とを比
較する第1の比較器である。18bは、カウンタ12の
カウント値とレジスタ17bに記憶された第2の終了ア
ドレス値とを比較する第2の比較器である。19aは、
カウンタ13のカウント値とレジスタ17aに記憶され
た第1の終了アドレス値とを比較する第3の比較器であ
る。19bは、カウンタ13のカウント値とレジスタ1
7bに記憶された第2の終了アドレス値とを比較する第
4の比較器である。
Reference numeral 18a is a first comparator for comparing the count value of the counter 12 with the first end address value stored in the register 17a. Reference numeral 18b is a second comparator that compares the count value of the counter 12 with the second end address value stored in the register 17b. 19a is
A third comparator for comparing the count value of the counter 13 and the first end address value stored in the register 17a. 19b is the count value of the counter 13 and the register 1
7b is a fourth comparator for comparing with the second end address value stored in 7b.

【0033】カウント値設定回路14および15は、そ
れぞれ、入力端子AおよびBに入力した信号に応じて、
端子Qから出力されるデータを選択する。入力端子Aに
信号が入力されると、入力端子D1に入力されているデ
ータを出力端子Qから出力し、入力端子Bに信号が入力
されると、入力端子D2に入力されているデータを出力
端子Qから出力する。
The count value setting circuits 14 and 15 respectively respond to the signals input to the input terminals A and B, respectively.
The data output from the terminal Q is selected. When a signal is input to the input terminal A, the data input to the input terminal D1 is output from the output terminal Q, and when a signal is input to the input terminal B, the data input to the input terminal D2 is output. Output from terminal Q.

【0034】受信バッファ200内におけるダウンロー
ドバッファ領域と、受信バッファ200に対する書き込
みアドレスおよび読み出しアドレスとの位置関係を示す
図である。図3において、Aはメモリ5内に確保された
受信バッファ200の開始アドレスである。Bは、受信
バッファ200の終了アドレスである。Dは、受信バッ
ファ200内に確保されたダウンロードバッファ210
の開始アドレスの1アドレス前のアドレス、すなわち、
受信バッファ200の終了アドレスである。Cは、ダウ
ンロードバッファ210の終了アドレスの1アドレス次
のアドレス、すなわち、受信バッファ200の開始アド
レスである。Rは、受信バッファ200からの読み出し
アドレスである。Wは、受信バッファ200への書き込
みアドレスである。従って、RとWの間の領域(ハッチ
ング領域内)には未処理の受信データが記憶されている
ことがわかる。
FIG. 3 is a diagram showing the positional relationship between the download buffer area in the reception buffer 200 and the write address and read address for the reception buffer 200. In FIG. 3, A is a start address of the reception buffer 200 secured in the memory 5. B is the end address of the reception buffer 200. D is a download buffer 210 secured in the reception buffer 200.
The address one address before the start address of, that is,
This is the end address of the reception buffer 200. C is an address one address after the end address of the download buffer 210, that is, the start address of the reception buffer 200. R is a read address from the reception buffer 200. W is a write address to the reception buffer 200. Therefore, it can be seen that unprocessed received data is stored in the area between R and W (in the hatched area).

【0035】アップダウンカウンタ11は、受信バッフ
ァ200への書き込みサイクル時にカウントアップが有
効になり、受信バッファ200からの読み出しサイクル
時にカウントダウンが有効になり、それぞれ、受信バッ
ファ200のアクセス終了後に動作する。カウンタ12
は、受信バッファ200への書き込みサイクル時に動作
状態になり、カウンタ13は受信バッファ200からの
読み出しサイクル時に動作状態になり、それぞれ、受信
バッファ200のアクセス終了後にカウントアプする。
The up-down counter 11 is enabled to count up during a write cycle to the receive buffer 200 and is enabled to count down during a read cycle from the receive buffer 200, and each operates after the access to the receive buffer 200 is completed. Counter 12
Is in an operating state during a write cycle to the receiving buffer 200, and the counter 13 is in an operating state during a reading cycle from the receiving buffer 200, and each counts up after the access to the receiving buffer 200 is completed.

【0036】次に、動作について示す。ホストからの印
字情報の受信に先立って、制御部1は、受信バッファ2
00の開始アドレス値をレジスタ16aに設定し、およ
び受信バッファ200の終了アドレス値をレジスタ17
aに設定しておくものとする。これら開始アドレス値お
よび終了アドレス値は、記録装置内のメモリ5に確保で
きる受信バッファ200の最大容量値とする。
Next, the operation will be described. Prior to receiving the print information from the host, the control unit 1 sets the reception buffer 2
00 is set in the register 16a, and the end address value of the receiving buffer 200 is set in the register 17a.
It shall be set to a. The start address value and the end address value are the maximum capacity value of the reception buffer 200 that can be secured in the memory 5 in the recording device.

【0037】ホストからの印字情報が入力インタフェー
ス部2を介して入力されると、記録装置内部は受信デー
タの書き込みサイクルになり、メモリ制御部4は受信バ
ッファ制御部100の書き込みアドレス生成カウンタ1
2の示すアドレスに受信データを自動的に書き込む。カ
ウンタ11および12に供給しているクロック信号は、
受信バッファ200へのアクセス終了後に出力されるの
で、アップダウンカウンタ11とカウンタ12はそれぞ
れ1づつカウントアップされる。これにより、アップダ
ウンカウンタ11のカウント値により未処理受信データ
が1つ受信バッファ200に記憶されたことが示され
る。また、カウンタ12により次の受信バッファ200
への書き込みアドレスが示される。
When print information from the host is input through the input interface unit 2, the inside of the recording apparatus enters a write data write cycle, and the memory control unit 4 causes the write address generation counter 1 of the receive buffer control unit 100.
Received data is automatically written to the address indicated by 2. The clock signals supplied to the counters 11 and 12 are
Since it is output after the access to the reception buffer 200 is completed, the up / down counter 11 and the counter 12 are each incremented by one. Thus, the count value of the up / down counter 11 indicates that one unprocessed received data is stored in the reception buffer 200. In addition, the counter 12 causes the next reception buffer 200
The write address to is shown.

【0038】ホストから印字情報が入力される度毎に、
上述した動作が繰り返され、受信バッファ200にデー
タが順次に記憶されていく。
Each time print information is input from the host,
The above-described operation is repeated, and the data is sequentially stored in the reception buffer 200.

【0039】制御部1は、受信バッファ200に未処理
データが記憶されていることが確認されると、受信バッ
ファ200からのデータ読み出し動作に入る。制御部1
は、受信バッファ200の読み出しレジスタ2000を
介して読み出しを行う。受信バッファ200の読み出し
レジスタ2000をアクセスすると、受信データ読み出
しサイクルになり、メモリ制御部4は、カウンタ13に
よって示される受信読み出しアドレスからデータを読み
出し、制御部1に出力する。カウンタ13に接続してい
るクロック信号は、受信バッファ200からのアクセス
終了後に出力され、それによりカウンタ13は1カウン
トアップされて次の読み出しアドレスを示す。アップダ
ウンカウンタ11は、読み出しサイクルには、カウント
ダウン動作が有効になるため、カウント値が1つダウン
する。従って、未処理受信データ数が1つ減ったことが
示される。制御部1が受信バッファ200の読み出しレ
ジスタ2000をアクセスする度毎に、上記動作が繰り
返され、受信バッファ200からデータが順次読み出さ
れる。
When it is confirmed that the unprocessed data is stored in the reception buffer 200, the control unit 1 starts the data reading operation from the reception buffer 200. Control unit 1
Reads through the read register 2000 of the reception buffer 200. When the read register 2000 of the reception buffer 200 is accessed, a reception data read cycle starts, and the memory control unit 4 reads data from the reception read address indicated by the counter 13 and outputs the data to the control unit 1. The clock signal connected to the counter 13 is output after the access from the reception buffer 200 is completed, whereby the counter 13 is incremented by 1 to indicate the next read address. The count-down operation of the up-down counter 11 is reduced by one during the read cycle because the count-down operation is enabled. Therefore, it is indicated that the number of unprocessed received data has decreased by one. Each time the control unit 1 accesses the read register 2000 of the reception buffer 200, the above operation is repeated and the data is sequentially read from the reception buffer 200.

【0040】カウンタ12およびカウンタ13のカウン
ト値とレジスタ17aに設定された第1の最終アドレス
値とは、それぞれ、比較器18aおよび19aで常に比
較され、両者が一致すると、一致信号が出力される。こ
の一致信号が出力されると、これら一致信号は、それぞ
れ、カウント値設定回路14および15の入力端子Aお
よびBに供給され、レジスタ16aおよび16bに設定
された受信バッファ200の第1および第2の開始アド
レスが、それぞれ、カウンタ12および13に設定され
る。これにより受信バッファ200の書き込みアドレス
および読み出しアドレスは、最初に戻り、持ってリング
バッファを構成する。
The count values of the counter 12 and the counter 13 and the first final address value set in the register 17a are constantly compared by the comparators 18a and 19a, respectively, and when they match, a match signal is output. . When this coincidence signal is output, these coincidence signals are supplied to the input terminals A and B of the count value setting circuits 14 and 15, respectively, and the first and second reception buffers 200 set in the registers 16a and 16b. The start addresses of are set in the counters 12 and 13, respectively. As a result, the write address and the read address of the reception buffer 200 return to the beginning and have the ring buffer.

【0041】ホストよりダウンロードデータを送信する
ためダウンロードコマンドが送信されると、ダウンロー
ドコマンド検出部6は、インタフェース部2を介してそ
のコマンドを検出して制御部1に通知する。制御部1
は、メモリ制御部4に受信データの受信バッファ200
への自動転送を禁止すると共に、インタフェース部2か
らダウンロードコマンドおよびそれぞれに続く印字情報
等のダウンロードデータを入力し、コマンドの解析を行
う。その解析の結果、最初のダウンロードコマンドの受
信の場合には、ダウンロードデータを受信バッファ20
0の空き領域に記憶しておく。ここで、制御部1は、ホ
ストからの印字情報の出力がタイムアウトにならないよ
うに低速での受信を行う。
When a download command is transmitted from the host to transmit the download data, the download command detecting section 6 detects the command via the interface section 2 and notifies the control section 1 of the command. Control unit 1
Is a reception buffer 200 for receiving data in the memory control unit 4.
In addition to prohibiting the automatic transfer to, the interface unit 2 inputs a download command and subsequent download data such as print information to analyze the command. As a result of the analysis, when the first download command is received, the download data is received in the reception buffer 20.
It is stored in the empty area of 0. Here, the control unit 1 performs reception at low speed so that the output of print information from the host does not time out.

【0042】ダウンロードデータのデータ量は、コマン
ドの解析で認識でき、受信バッファ200の空き領域が
ダウンロードデータより多い場合には、制御部1は受信
バッファ200より未処理データを読み出し、その処理
を行って受信バッファ200の空き領域の容量を確保す
る。受信バッファ200にダウンロードデータが記憶さ
れると、制御部1は、ダウンロードデータを記憶した領
域の開始アドレス−1のアドレスDと終了アドレス+1
のアドレスCをそれぞれメモリ制御部4のレジスタ17
bおよびレジスタ16bに書き込み、ついでメモリ制御
部4を通常の受信バッファ制御に切り替え、ホストから
のデータの受信を行う。
The data amount of the download data can be recognized by analyzing the command. When the free area of the receiving buffer 200 is larger than the download data, the control unit 1 reads the unprocessed data from the receiving buffer 200 and performs the processing. To secure the capacity of the free area of the reception buffer 200. When the download data is stored in the reception buffer 200, the control unit 1 controls the address D of the start address -1 and the end address +1 of the area storing the download data.
To the register 17 of the memory control unit 4 respectively.
b and the register 16b, and then the memory control unit 4 is switched to the normal reception buffer control to receive the data from the host.

【0043】レジスタ16a,16b,17a,17b
にアドレス値が書き込まれると、受信バッファ200の
領域に対する各アドレス値の位置関係は図3(A)〜
(F)のようになる。ここで、A点のアドレスはレジス
タ16aに書き込まれる第1の開始アドレス、B点のア
ドレスはレジスタ17aに書き込まれた第1の終了アド
レス、C点のアドレスはレジスタ16bに書き込まれる
第2の開始アドレス、D点のアドレスはレジスタ17b
に書き込まれた第2の終了アドレスを示す。
Registers 16a, 16b, 17a, 17b
When the address value is written in, the positional relationship of each address value with respect to the area of the reception buffer 200 is shown in FIG.
It becomes like (F). Here, the address at the point A is the first start address written in the register 16a, the address at the point B is the first end address written in the register 17a, and the address at the point C is the second start address written in the register 16b. The address and the address of the D point are the register 17b
Indicates the second end address written in.

【0044】受信データの記憶状態が図3の(A)の時
点でデータ受信を行い、書き込みアドレスがD点のアド
レスに達すると、比較器18bが一致信号を出力する。
比較器18bの一致信号をカウント値設定回路14が受
けると、カウント値設定回路14はカウンタ12にレジ
スタ16bのアドレス値、すなわちC点で示される第2
の開始アドレスを設定する。データ受信が行われると、
第2の開始アドレスから受信データの記憶を開始する。
Data is received when the storage state of the received data is as shown in FIG. 3A, and when the write address reaches the address at point D, the comparator 18b outputs a coincidence signal.
When the count value setting circuit 14 receives the coincidence signal of the comparator 18b, the count value setting circuit 14 causes the counter 12 to indicate the address value of the register 16b, that is, the second value indicated by the point C.
Set the start address of. When data is received,
Storage of received data is started from the second start address.

【0045】受信データの読み出しアドレスに関して
は、同様に、読み出しアドレスが第2の終了アドレスに
達すると、カウンタ13は比較器19bの一致信号によ
り第2の開始アドレスが設定される。制御部1が受信デ
ータの読み出し動作をさらに行うと、第2の開始アドレ
スよりデータの読み出しを行う。
Regarding the read address of the received data, similarly, when the read address reaches the second end address, the counter 13 is set to the second start address by the coincidence signal of the comparator 19b. When the control unit 1 further performs the read operation of the received data, the data is read from the second start address.

【0046】従って、ダウンロードデータの記憶された
領域を跳ばして受信データの書き込み、読み出しが行わ
れる。
Therefore, the received data is written and read by skipping the area where the download data is stored.

【0047】ダウンロードデータのデータ量について
は、受信バッファ200の空き領域画ダウンロードデー
タ量よりも少ない場合は、制御部1は、受信速度制御部
3を起動させホストからのデータの受信を低速にする。
その間に制御部1は、受信バッファ200からのデータ
の読み出しとそのデータの処理を行い、受信バッファ2
00内の空き領域を確保する。受信バッファ200内に
ダウンロードデータを記憶できる領域が確保できると、
上記と同様の動作を行いダウンロードデータの記憶を行
う。
When the download data amount is smaller than the free area image download data amount of the reception buffer 200, the control unit 1 activates the reception speed control unit 3 to slow down the reception of data from the host. .
In the meantime, the control unit 1 reads data from the reception buffer 200 and processes the data,
Secure a free area in 00. If an area for storing download data can be secured in the reception buffer 200,
The same operation as above is performed and the download data is stored.

【0048】また、ダウンロードデータの記憶がいった
ん行われた後に、再度ダウンロードコマンドを受信した
場合、ダウンロードデータと受信データとの関係は図3
の(A)から(F)の場合が考えられる。図3における
(B),(D)および(F)の場合、ダウンロード済み
の領域の前後に未処理受信バッファ200が存在するた
め、新しいダウンロードデータを追加することができな
い。そこで、制御部1は、ダウンロードコマンド検出部
6より、コマンド検出信号が入力されたときに、受信速
度制御部3を起動させ、ホストからの印字情報の入力速
度が低速になるように制御する。制御部1は、その間に
受信バッファ200から未処理受信データを読み出し処
理を行い受信バッファ200内の空き領域を確保するよ
うに動作する。受信データの処理が進み、ダウンロード
データ領域の前領域または後領域に空き領域ができる
と、その領域に新たなダウンロードデータを追加記憶し
ていく。
When the download command is received again after the download data is once stored, the relationship between the download data and the received data is shown in FIG.
The cases of (A) to (F) are considered. In the case of (B), (D) and (F) in FIG. 3, new download data cannot be added because the unprocessed receive buffer 200 exists before and after the downloaded area. Therefore, the control unit 1 activates the reception speed control unit 3 when the command detection signal is input from the download command detection unit 6, and controls the input speed of print information from the host to be low. During this time, the control unit 1 operates to read the unprocessed reception data from the reception buffer 200 and to secure a free area in the reception buffer 200. When the processing of the received data progresses and a free area is formed in the area before or after the download data area, new download data is additionally stored in the area.

【0049】新たなダウンロードデータを、既に記憶し
ている領域の前領域に追加した場合、制御部1は追加後
のダウンロードデータ領域の開始アドレス−1のアドレ
ス値をレジスタ16bに書き直す。新たなダウンロード
データを、既に記憶している領域の後領域に追加した場
合は、追加後のダウンロードデータ領域の終了アドレス
+1のアドレス値をレジスタ17bに書き直す。その後
に、制御部1は、入力データの受信速度を通常速度に戻
し、通常の受信動作を開始させる。その後の受信バッフ
ァ200への受信データの書き込み、読み出し動作は、
上述したところと同様の動作を行い、追加されたダウン
ロードデータを含めた全ダウンロード領域を除いて受信
データを記憶することが可能である。
When new download data is added to the area before the area already stored, the control unit 1 rewrites the address value of the start address-1 of the added download data area in the register 16b. When new download data is added to the rear area of the already stored area, the address value of the end address of the added download data area + 1 is rewritten in the register 17b. After that, the control unit 1 returns the input data reception speed to the normal speed and starts the normal reception operation. Subsequent write and read operations of received data in the receive buffer 200 are
It is possible to perform the same operation as described above and store the received data except for the entire download area including the added download data.

【0050】[0050]

【発明の効果】以上説明したように、本発明によれば、
リングバッファを構成する受信バッファの両端部の開始
アドレスと終了アドレス、および、その受信バッファ内
の空き領域を示す開始アドレスと終了アドレスを管理す
ることによって、受信バッファ領域の任意の空き領域に
任意の容量のダウンロードデータを記憶することが可能
となり、ダウンロードデータを記憶した場合でも残りの
受信バッファ領域を全て受信バッファに利用できるの
で、記録装置のメモリを有効に利用し、スループットの
低下を押さえられるという効果がある。
As described above, according to the present invention,
By managing the start address and end address of both ends of the receive buffer that configures the ring buffer, and the start address and end address that indicate the free area in the receive buffer, any free area in the receive buffer area can be managed. It becomes possible to store a large amount of download data, and even if the download data is stored, the remaining receive buffer area can be used for the receive buffer, so that the memory of the recording device can be effectively used and the decrease in throughput can be suppressed. effective.

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

【図1】本発明の実施の一形態である記憶装置の構成の
一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of a configuration of a storage device according to an embodiment of the present invention.

【図2】受信バッファ制御装置の構成の一例を示す回路
図である。
FIG. 2 is a circuit diagram showing an example of a configuration of a reception buffer control device.

【図3】受信バッファ内に設けられたダウンロードバッ
ファ領域と、この領域を含む開始・終了アドレス、書込
み・読出しアドレスの位置関係を示す模式図である。
FIG. 3 is a schematic diagram showing a positional relationship between a download buffer area provided in a reception buffer, a start / end address and a write / read address including this area.

【符号の説明】 1 制御部 2 インターフェース部 3 速度制御部 4 記憶制御部 5 記憶部 6 情報信号検出部(ダウンロードコマンド検出部) 11 カウント手段 12 書込アドレス生成手段 13 読出アドレス生成手段 14 第1のアドレス設定手段 15 第2のアドレス設定手段 16a,16b 第1の記憶手段 17a,17b 第2の記憶手段 18a,18b 第1の比較手段 19a,19b 第2の比較手段 100 受信バッファ制御装置 200 受信バッファ[Description of Codes] 1 control unit 2 interface unit 3 speed control unit 4 storage control unit 5 storage unit 6 information signal detection unit (download command detection unit) 11 counting unit 12 write address generating unit 13 read address generating unit 14 first Address setting means 15 second address setting means 16a, 16b first storage means 17a, 17b second storage means 18a, 18b first comparison means 19a, 19b second comparison means 100 reception buffer control device 200 reception buffer

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 受信バッファに記憶された未処理のデー
タ数をカウントするカウント手段と、 前記受信バッファへの書込アドレスを生成する書き込み
アドレス生成手段と、 前記書き込みアドレス生成手段へ予め定めたアドレスを
設定する第1のアドレス設定手段と、 前記受信バッファからの読み出しアドレスを生成する読
み出しアドレス生成手段と、 前記読み出しアドレス生成手段へ予め定めたアドレスを
設定する第2のアドレス設定手段と、 前記受信バッファの連続した開始アドレスを記憶する第
1の記憶手段と、 前記受信バッファの連続した終了アドレスを記憶する第
2の記憶手段と、 前記書き込みアドレス生成手段により生成された書き込
みアドレスと前記第2の記憶手段に書き込みまれた最終
アドレスとを比較する第1の比較手段と、 前記読み出しアドレス生成手段により生成された読み出
しアドレスと前記第2の記憶手段に書き込みまれた最終
アドレスとを比較する第2の比較手段とを具備したこと
を特徴とする受信バッファ制御装置。
1. A count means for counting the number of unprocessed data stored in a reception buffer, a write address generation means for generating a write address for the reception buffer, and a predetermined address for the write address generation means. A first address setting means for setting a read address from the reception buffer, a second address setting means for setting a predetermined address to the read address generating means, First storage means for storing consecutive start addresses of the buffer, second storage means for storing consecutive end addresses of the reception buffer, write address generated by the write address generation means, and the second First comparing hand for comparing with the final address written in the storage means When the reception buffer control apparatus characterized by comprising a second comparing means for comparing the generated read address and the second final address write or a in the storage means by the said read address generating means.
【請求項2】 開始アドレスと終了アドレスとによって
限界された受信バッファに記憶された未処理のデータの
個数をカウントするカウント手段と、 前記受信バッファへの書き込みアドレスを生成する書き
込みアドレス生成手段と、 前記書き込みアドレス生成手段に対して予め定めたアド
レスを設定する第1のアドレス設定手段と、 前記受信バッファからの読み出しアドレスを生成する読
み出しアドレス生成手段と、 前記読み出しアドレス生成手段に対して予め定めたアド
レスを設定する第2のアドレス設定手段と、 前記受信バッファにおける連続した少なくとも2つの開
始アドレスを記憶する第1の記憶手段と、 前記受信バッファにおける連続した少なくとも2つの終
了アドレスを記憶する第2の記憶手段と、 前記第2の記憶手段に記憶されたアドレスと前記書き込
みアドレス生成手段により生成された書き込みアドレス
とを比較する第1の比較手段と、 前記第2の記憶手段に記憶されたアドレスと前記読み出
しアドレス生成手段により生成された読み出しアドレス
とを比較する第2の比較手段とを具備したことを特徴と
する受信バッファ制御装置。
2. Counting means for counting the number of unprocessed data stored in the reception buffer limited by a start address and an end address, and a write address generation means for generating a write address for the reception buffer. First address setting means for setting a predetermined address for the write address generation means, read address generation means for generating a read address from the reception buffer, and predetermined for the read address generation means Second address setting means for setting an address, first storage means for storing at least two consecutive start addresses in the reception buffer, and second storage means for storing at least two consecutive end addresses in the reception buffer Storage means and the second storage means First comparing means for comparing the generated address with the write address generated by the write address generating means, an address stored in the second storage means and a read address generated by the read address generating means. And a second comparing means for comparing the receiving buffer control device and the receiving buffer control device.
【請求項3】 前記第1の記憶手段は、前記受信バッフ
ァの一つの固定された開始アドレスと、前記受信バッフ
ァの所定の位置を示す開始アドレスとを記憶することを
特徴とする請求項1または2記載の受信バッファ制御装
置。
3. The first storage means stores one fixed start address of the reception buffer and a start address indicating a predetermined position of the reception buffer. 2. The reception buffer control device described in 2.
【請求項4】 前記受信バッファの一つの開始アドレス
が固定値の場合、開始アドレスを記憶する前記第1の記
憶手段の数が終了アドレスを記憶する前記第2の記憶手
段の数よりも一つ少ないことを特徴とする請求項3記載
の受信バッファ制御装置。
4. When one start address of the reception buffer is a fixed value, the number of the first storage means for storing the start address is one more than the number of the second storage means for storing the end address. 4. The reception buffer control device according to claim 3, wherein the number is small.
【請求項5】 前記第2の記憶手段は、前記受信バッフ
ァの一つの固定された終了アドレスと、前記受信バッフ
ァの所定の位置を示す終了アドレスとを記憶する請求項
1または2記載の受信バッファ制御装置。
5. The reception buffer according to claim 1, wherein the second storage means stores one fixed end address of the reception buffer and an end address indicating a predetermined position of the reception buffer. Control device.
【請求項6】 前記受信バッファの一つの終了アドレス
が固定値の場合、終了アドレスを記憶する前記第2の記
憶手段の数が開始アドレスを記憶する前記第1の記憶手
段の数よりも一つ少ないことを特徴とする請求項5記載
の受信バッファ制御装置。
6. When one end address of the reception buffer has a fixed value, the number of the second storage means for storing the end address is one more than the number of the first storage means for storing the start address. The reception buffer control device according to claim 5, wherein the reception buffer control device is small.
【請求項7】 前記第1の記憶手段は、前記開始アドレ
スを各々別個に記憶する少なくとも2つの記憶手段から
なることを特徴とする請求項1,2または3記載の受信
バッファ制御装置。
7. The reception buffer control device according to claim 1, wherein the first storage means comprises at least two storage means for storing the start address separately.
【請求項8】 前記第2の記憶手段は、前記終了アドレ
スを各々別個に記憶する少なくとも2つの記憶手段から
なることを特徴とする請求項1,2または5記載の受信
バッファ制御装置。
8. The reception buffer control device according to claim 1, wherein said second storage means comprises at least two storage means for respectively storing said end address separately.
【請求項9】 前記書き込みアドレス生成手段と前記読
み出しアドレス生成手段とは、それぞれカウンタを用い
て構成されることを特徴とする請求項1ないし8のいず
れかに記載の受信バッファ制御装置。
9. The reception buffer control device according to claim 1, wherein each of the write address generation means and the read address generation means is configured by using a counter.
【請求項10】 前記カウント手段はカウント値を1つ
ずつ加算・減算するアップダウンカウンタを用いて構成
され、当該アップダウンカウンタは前記受信バッファへ
の書き込みサイクル時に1つ加算され、前記受信バッフ
ァからの読み出しサイクル時に1つ減算されることを特
徴とする請求項1ないし9のいずれかに記載の受信バッ
ファ制御装置。
10. The counting means is configured by using an up / down counter that adds / subtracts count values one by one, and the up / down counter is incremented by one during a write cycle to the receive buffer, and the up / down counter is added from the receive buffer. 10. The reception buffer control device according to claim 1, wherein one is subtracted during the read cycle of.
【請求項11】 開始アドレスと終了アドレスとによっ
て限界され、かつ入出力用データを一時記憶する受信バ
ッファと、 前記受信バッファに対して前記入出力用データの入出力
制御を行う請求項1ないし10のいずれかに記載の受信
バッファ制御装置と、 前記入出力用データが記憶される記憶部と、 前記記憶部に対して前記入出力用データの書き込みおよ
び読み出しの制御を行う記憶制御部とを具備したことを
特徴とする記録装置。
11. A reception buffer, which is limited by a start address and an end address and temporarily stores input / output data, and input / output control of the input / output data is performed on the reception buffer. The reception buffer control device according to claim 1, a storage unit that stores the input / output data, and a storage control unit that controls writing and reading of the input / output data to and from the storage unit. A recording device characterized by the above.
【請求項12】 前記入出力用データの入出力速度を制
御する速度制御部とをさらに具備し、 前記受信バッファの空き領域を当該入出力用データに含
まれる他の情報データの記憶領域として用いることを特
徴とする請求項11記載の記録装置。
12. A speed control unit for controlling an input / output speed of the input / output data, wherein the free area of the reception buffer is used as a storage area for other information data included in the input / output data. The recording apparatus according to claim 11, wherein:
【請求項13】 前記受信バッファの空き領域が前記他
の情報データの量よりも多い場合、前記受信バッファか
ら未処理のデータを読み出して処理を行い、前記受信バ
ッファ内に前記他の情報データを記憶するための空き領
域を確保することを特徴とする請求項12記載の記録装
置。
13. When the free area of the reception buffer is larger than the amount of the other information data, the unprocessed data is read from the reception buffer for processing, and the other information data is stored in the reception buffer. 13. The recording apparatus according to claim 12, wherein a free area for storing is secured.
【請求項14】 前記受信バッファの空き領域が前記他
の情報データの量よりも少ない場合、前記速度制御部を
起動させ前記入出力用データの受信速度を低速にすると
ともに、前記受信バッファからの未処理のデータの読み
出しと当該データの処理を行い、前記受信バッファ内に
前記他の情報データを記憶するための空き領域を確保す
ることを特徴とする請求項12記載の記録装置。
14. When the free area of the reception buffer is smaller than the amount of the other information data, the speed control unit is activated to reduce the reception speed of the input / output data, and 13. The recording apparatus according to claim 12, wherein an unprocessed data is read and the data is processed to secure an empty area for storing the other information data in the reception buffer.
【請求項15】 前記受信バッファ内に確保された空き
領域に前記低速の受信速度で前記他の情報データの記憶
を行った後、当該受信速度を前記低速から定常の速度に
戻して未処理のデータを処理することを特徴とする請求
項14記載の記録装置。
15. After the other information data is stored in the empty area secured in the reception buffer at the low reception speed, the reception speed is returned from the low speed to the steady speed and is not processed. The recording device according to claim 14, which processes data.
【請求項16】 前記受信バッファの空き領域に記憶さ
れた前記他の情報データの記憶領域を示す開始アドレス
と、前記受信バッファの前記一端の開始アドレスとを、
前記第1の記憶手段に記憶することを特徴とする請求項
12ないし15のいずれかに記載の記録装置。
16. A start address indicating a storage area of the other information data stored in an empty area of the reception buffer, and a start address of the one end of the reception buffer,
The recording device according to claim 12, wherein the recording device stores the data in the first storage unit.
【請求項17】 前記受信バッファの空き領域に記憶さ
れた前記他の情報データの記憶領域を示す終了アドレス
と、前記受信バッファの前記他端の終了アドレスとを、
前記第2の記憶手段に記憶することを特徴とする請求項
12ないし16のいずれかに記載の記録装置。
17. An end address indicating a storage area of the other information data stored in an empty area of the reception buffer, and an end address of the other end of the reception buffer,
The recording device according to any one of claims 12 to 16, wherein the recording device stores in the second storage means.
【請求項18】 前記入出力用データは、印字データで
あることを特徴とする請求項11ないし17のいずれか
に記載の記録装置。
18. The recording apparatus according to claim 11, wherein the input / output data is print data.
【請求項19】 前記受信バッファ制御装置を、前記記
憶制御部内に具えたことを特徴とする請求項11ないし
18のいずれかに記載の記録装置。
19. The recording device according to claim 11, wherein the reception buffer control device is provided in the storage control unit.
【請求項20】 外部装置との間で前記入出力用データ
の入出力処理を行うインターフェース部を具えたことを
特徴とする請求項11ないし19のいずれかに記載の記
録装置。
20. The recording apparatus according to claim 11, further comprising an interface unit that performs input / output processing of the input / output data with an external device.
JP8122007A 1996-05-16 1996-05-16 Receiving buffer control device and recording apparatus Pending JPH09300739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8122007A JPH09300739A (en) 1996-05-16 1996-05-16 Receiving buffer control device and recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8122007A JPH09300739A (en) 1996-05-16 1996-05-16 Receiving buffer control device and recording apparatus

Publications (1)

Publication Number Publication Date
JPH09300739A true JPH09300739A (en) 1997-11-25

Family

ID=14825264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8122007A Pending JPH09300739A (en) 1996-05-16 1996-05-16 Receiving buffer control device and recording apparatus

Country Status (1)

Country Link
JP (1) JPH09300739A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG90731A1 (en) * 1999-06-17 2002-08-20 Nec Corp Method and system for filter-processing by ensuring a memory space for a ring-buffer in digital signal processor
JP2011136571A (en) * 2001-11-09 2011-07-14 Canon Inc Image forming apparatus and image forming method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG90731A1 (en) * 1999-06-17 2002-08-20 Nec Corp Method and system for filter-processing by ensuring a memory space for a ring-buffer in digital signal processor
JP2011136571A (en) * 2001-11-09 2011-07-14 Canon Inc Image forming apparatus and image forming method

Similar Documents

Publication Publication Date Title
US5410708A (en) Multi-register interrupt controller with multiple interrupt detection capability
US20020080662A1 (en) Data processor having instruction cache with low power consumption
US5138703A (en) Method of and apparatus for expanding system bus
JPH09300739A (en) Receiving buffer control device and recording apparatus
EP0721163A1 (en) Information processing apparatus with a mode setting circuit
EP1016962A2 (en) Prioritized data and instruction fetch
US6615292B1 (en) Data transfer apparatus performing DMA data transfer from non-consecutive addresses
KR100615694B1 (en) Control system for controlling plural function block
JP2005250683A (en) Microcomputer
JP3630350B2 (en) Memory data comparison method
JP2000040057A (en) Computer system, buffer controller and transferring method
US6505274B2 (en) Processor and system for controlling shared access to a memory
JP2924643B2 (en) Digital signal processing method and apparatus
JP2687476B2 (en) Vector data processing device
JP2814849B2 (en) Communication control device
JP3266610B2 (en) DMA transfer method
JPH09198305A (en) Memory controller
JPH0736806A (en) Dma system
JP3207890B2 (en) Memory access method for waveform storage device
JPS63197251A (en) Information processor
JPH0553982A (en) Memory control circuit
JPH10224410A (en) Data transfer system
JPH06195273A (en) Data communication equipment
JPH08272647A (en) Software evaluating device
JPH11242648A (en) Data transfer device