JPH0497416A - Control system for receiving buffer - Google Patents
Control system for receiving bufferInfo
- Publication number
- JPH0497416A JPH0497416A JP2216272A JP21627290A JPH0497416A JP H0497416 A JPH0497416 A JP H0497416A JP 2216272 A JP2216272 A JP 2216272A JP 21627290 A JP21627290 A JP 21627290A JP H0497416 A JPH0497416 A JP H0497416A
- Authority
- JP
- Japan
- Prior art keywords
- data
- receiving
- buffer memory
- buffer
- signal
- 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
Links
- 239000000872 buffer Substances 0.000 title claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 claims description 8
- 238000007405 data analysis Methods 0.000 claims description 3
- 230000015654 memory Effects 0.000 abstract description 12
- 102100033265 Integrator complex subunit 2 Human genes 0.000 abstract description 3
- 108050002021 Integrator complex subunit 2 Proteins 0.000 abstract description 3
- 102100024061 Integrator complex subunit 1 Human genes 0.000 abstract 1
- 101710092857 Integrator complex subunit 1 Proteins 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 2
- 241001455214 Acinonyx jubatus Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はホストコンピュータからのプリントアウトした
いデータを記憶する複数のノ〈・ンファメモリから成る
受信バッファの制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for controlling a reception buffer consisting of a plurality of buffer memories for storing data to be printed out from a host computer.
従来、この種の受信バッファの制御方式は、以下に示す
3つのタイミングの場合において受信/<ッファを切り
換えて、受信済のデータを格納しである受信バッファを
解析部に対してリリースする制御方式となっていた。Conventionally, a control method for this type of reception buffer is a control method in which the reception buffer is switched between reception and buffer at the following three timings, and the reception buffer containing the received data is released to the analysis unit. It became.
(1)受信バッファが受信データでいっばいの状態とな
った場合。(1) When the receive buffer becomes full of received data.
(2)通信モードが変るなどの特別な要因か発生した場
合。(2) When a special factor such as a change in communication mode occurs.
(3)ファームウェア自身が内部発生のタイマによって
予め設定した一定時間ごとに受信ハ・ンファを監視して
データの受信済の受信バッファが存在していた場合。(3) When the firmware itself monitors the reception buffer at preset intervals using an internally generated timer and there is a reception buffer that has already received data.
上述した従来の受信バッファの制御方式において、第3
項に上げた受信バッファの切り換えタイミングの必要性
は、受信したデータがひとつの受信バッファの容量に満
たない場合の受信データの検索の意味から生ずるもので
ある。In the conventional reception buffer control method described above, the third
The need for the reception buffer switching timing mentioned in the above section arises from the meaning of searching for received data when the received data does not fill the capacity of one reception buffer.
しかし、従来の受信バッファの制御方式は、ファームウ
ェア1身が受信バッファを一定時間て監視するため、必
然的に他の処理を行う時間が少なくなり、装置全体の動
作や性能に大きく影響を与える。また、監視する時間が
短いと、受信バッファを切り換える為の処理が受信する
データに対して多くなり、そのオーバーヘッドに要する
時間が無駄になり、また監視する時間かあまり長いと受
は取ったデータを認識する反応かにふくなる。再に最適
な時間を設定しても種々のデータ長に対する平均となる
為、必ず無駄が生じたり、反応が遅くなる場合があると
いう欠点かあある。However, in the conventional reception buffer control method, the firmware itself monitors the reception buffer for a certain period of time, which inevitably reduces the time for performing other processes, which greatly affects the operation and performance of the entire device. Also, if the monitoring time is too short, the amount of processing required to switch the receive buffer will be greater than the amount of data being received, and the time required for that overhead will be wasted; if the monitoring time is too long, the received data will be The reaction of recognizing it is sudden. Even if the optimum time is set again, it will be averaged over various data lengths, so there will always be waste or a slow response.
本発明の受信バッファの制御方式は、ホストコンピュー
タからのデータストローブ信号を内部のカウンターの開
始、クリア信号及び前記内部の起動用として受信して予
め設定した期間後に制御部への第1及び第2の割込信号
を8力するタイマ処理手段と、前記第1の割込信号によ
り起動して複数ある受信バッファの中で現在使用してい
た受信バッファをデータ解析部に対してリリースし、空
いている受信バッファのひとつを使用できるよう設定を
行うリリース手段と、前記データストローブ信号に対応
した前記制御部への前記第2の割込5信号により起動し
て前記ホストコンピュータからのデータを読込み前記受
信バッファに格納するデータ受信手段とを有している。The control method of the reception buffer of the present invention includes receiving a data strobe signal from a host computer as an internal counter start, clear signal, and internal start-up signal, and after a preset period, transmits the first and second data strobe signals to the control unit. a timer processing means that outputs an interrupt signal of a release means for making settings so that one of the reception buffers in the host computer can be used; and a release means for reading data from the host computer and reading the data from the host computer by the second interrupt 5 signal to the control unit corresponding to the data strobe signal. and data receiving means for storing data in a buffer.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示すブロック図、第2図は
本実施例におけるデータストローブ信号から制御部への
割込信号の発生のタイムチャートを示す図、第3図は本
実施例における制御部の処理の一例を示す流れ図である
。FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing a time chart of generation of an interrupt signal from a data strobe signal to the control unit in this embodiment, and FIG. 3 is a diagram showing this embodiment. 3 is a flowchart showing an example of processing of a control unit in FIG.
第1図において、本実施例はホストコンピュータ(図示
省略)にインタフェースするインタフェース部1と、イ
ンタフェース部1を介してホストコンピュータからのデ
ータを受信するデータ受信部3と、インタフェース部1
を介してホストコンピュータからのデータストローブ信
号から制御部7への予め定められたタイミングの割込信
号を発生するタイマ処理部6と、受信したデータを蓄積
する複数のバッファメモリから構成する受信バッファ4
と、受信バッファ4のリリース処理を行うリリース処理
部8と、受信バッファ4からのデータを解析するデータ
解析部つと、本実施例全体を制御する制御部(以下CP
Uと記す)7とを有して構成している。In FIG. 1, this embodiment includes an interface unit 1 that interfaces with a host computer (not shown), a data receiving unit 3 that receives data from the host computer via the interface unit 1, and an interface unit 1.
a timer processing unit 6 that generates an interrupt signal at a predetermined timing from a data strobe signal from the host computer to the control unit 7 via the host computer; and a reception buffer 4 that includes a plurality of buffer memories that accumulate received data.
, a release processing unit 8 that performs release processing of the reception buffer 4, a data analysis unit that analyzes data from the reception buffer 4, and a control unit (hereinafter referred to as CP) that controls the entire embodiment.
(denoted as U) 7.
次に、本実施例の動作について第1図、第2図および第
3図を用いて説明する。Next, the operation of this embodiment will be explained using FIG. 1, FIG. 2, and FIG. 3.
ホストコンピュータからのデータ2は、はぼ同時に入力
したデータストローブ信号によりタイマ処理部6で発生
した割込信号(Intl>によって起動されたCPU7
によりデータ受信部3を介して受信バッファ4に読み込
まれる(S20)。Data 2 from the host computer is sent to the CPU 7 activated by an interrupt signal (Intl>) generated in the timer processing section 6 by a data strobe signal inputted at almost the same time.
The data is read into the reception buffer 4 via the data reception section 3 (S20).
次に、CPU7は受信バッファ4内のデータを受信して
いるバッファメモリの受信可容量をチエツクする(S2
1)。バッファメモリの切り換えが必要(S22)の場
合にはデータを受信してバッファメモリを切り換え、空
きのバッファメモリにデータを受信させる(323>。Next, the CPU 7 checks the receivable capacity of the buffer memory receiving the data in the reception buffer 4 (S2
1). If it is necessary to switch the buffer memory (S22), data is received, the buffer memory is switched, and an empty buffer memory receives the data (323>).
切り替えられたバッファメモリに対してはCPU7はリ
リース処理部8を起動しリリース処理部8はリリース処
理を行う(S24)。The CPU 7 activates the release processing unit 8 for the switched buffer memory, and the release processing unit 8 performs release processing (S24).
第2図に示すように、チータストローブ信号の最終を受
信してがら予め設定した時間にタイマ処理部6はCPU
7へ割込信号(Int2)を送出する。割込信号(In
t2)を受信したCPU7はリリース処理部8を起動し
、リリース処理部8は受信バッファ4内のデータを受信
したバッファメモリをデータ受信部3がら切り離し、デ
ータ解析部9で読込ませるように制御する。As shown in FIG. 2, at a preset time while receiving the final cheetah strobe signal, the timer processing section 6
An interrupt signal (Int2) is sent to 7. Interrupt signal (In
t2), the CPU 7 activates the release processing section 8, and the release processing section 8 controls the buffer memory that has received the data in the reception buffer 4 to be separated from the data reception section 3 and to be read by the data analysis section 9. .
以上説明したように本発明は、ホストコンピュータから
の最終のデータ受信後予め設定した一定時間経過したタ
イミングで受信バッファを切り換える動作を従来のよう
にファームウェアが行うのではなく、タイマ処理手段及
びリリース手段で行うことにより、装置内部に生する無
駄な時間を削減できて、受信性能を従来より向上させ、
装置の性能をも従来より向上させることができる効果か
ある。As explained above, the present invention does not have the firmware perform the operation of switching the reception buffer at a preset period of time after receiving the last data from the host computer, as in the conventional case, but uses a timer processing means and a release means. By doing this, you can reduce wasted time inside the device, improve reception performance compared to before,
This also has the effect of improving the performance of the device compared to conventional methods.
折部。Oribe.
Claims (1)
のカウンターの開始、クリア信号及び前記内部の起動用
として受信して予め設定した期間後に制御部への第1及
び第2の割込信号を出力するタイマ処理手段と、前記第
1の割込信号により起動して複数ある受信バッファの中
で現在使用していた受信バッファをデータ解析部に対し
てリリースし、空いている受信バッファのひとつを使用
できるよう設定を行うリリース手段と、前記データスト
ローブ信号に対応した前記制御部への前記第2の割込信
号により起動して前記ホストコンピュータからのデータ
を読込み前記受信バッファに格納するデータ受信手段と
を有することを特徴とする受信バッファの制御方式。a timer processing means that receives a data strobe signal from the host computer as an internal counter start and clear signal and for starting the internal unit, and outputs first and second interrupt signals to the control unit after a preset period; Then, it is activated by the first interrupt signal, releases the currently used receive buffer among the multiple receive buffers to the data analysis unit, and sets it so that one of the free receive buffers can be used. and data receiving means that is activated by the second interrupt signal to the control unit corresponding to the data strobe signal to read data from the host computer and store it in the reception buffer. Features a receive buffer control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2216272A JPH0497416A (en) | 1990-08-16 | 1990-08-16 | Control system for receiving buffer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2216272A JPH0497416A (en) | 1990-08-16 | 1990-08-16 | Control system for receiving buffer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0497416A true JPH0497416A (en) | 1992-03-30 |
Family
ID=16685944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2216272A Pending JPH0497416A (en) | 1990-08-16 | 1990-08-16 | Control system for receiving buffer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0497416A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007272577A (en) * | 2006-03-31 | 2007-10-18 | Nec Corp | Buffer circuit and buffer control method |
US8354691B2 (en) | 2010-09-09 | 2013-01-15 | Denso Corporation | Lateral insulated-gate bipolar transistor |
-
1990
- 1990-08-16 JP JP2216272A patent/JPH0497416A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007272577A (en) * | 2006-03-31 | 2007-10-18 | Nec Corp | Buffer circuit and buffer control method |
US8354691B2 (en) | 2010-09-09 | 2013-01-15 | Denso Corporation | Lateral insulated-gate bipolar transistor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070297433A1 (en) | Method and apparatus for double buffering | |
JPH0141075B2 (en) | ||
KR930014041A (en) | Selective playback | |
JPH08115290A (en) | Data transfer device | |
JPH0497416A (en) | Control system for receiving buffer | |
JP2837698B2 (en) | Direct memory access controller | |
JPS61125670A (en) | Data transfer device | |
JPH05334230A (en) | Dual port memory access control circuit | |
JPH09305527A (en) | Dma controller | |
JP2817893B2 (en) | Device status reporting method | |
JPH02133849A (en) | Transfer process system for received data | |
JPH09198305A (en) | Memory controller | |
JPH0520253A (en) | Data processor | |
JPS6294042A (en) | Communication control equipment | |
JPH1196019A (en) | Method for controlling interruption | |
JPH0281254A (en) | Multi-processor controller | |
JPH02288744A (en) | Transmission data output control circuit | |
JPH0540658A (en) | Magnetic disk controller | |
JPH0276054A (en) | Bus control system | |
JP2001195348A (en) | Microcomputer | |
JPH08235101A (en) | Method for accessing same memory from plural devices | |
JPH06214941A (en) | Dma control circuit | |
JPH06309870A (en) | Memory access controller | |
KR20020078683A (en) | Control apparatus for access of storage medium | |
JPH04195649A (en) | Data processor |