JPH0497416A - Control system for receiving buffer - Google Patents

Control system for receiving buffer

Info

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
Application number
JP2216272A
Other languages
Japanese (ja)
Inventor
Kazumi Yanagidaira
一美 柳平
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2216272A priority Critical patent/JPH0497416A/en
Publication of JPH0497416A publication Critical patent/JPH0497416A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To improve the operation and performance of the whole device by providing this control system with a timer processing means, a releasing means and a data receiving means. CONSTITUTION:Data 2 from a host computer are inputted to a receiving buffer 4 by a CPU 7 started by an interruption signal Int1 generated from a timer processing part 3 based upon a data strobe signal inputted almost simultaneously with the data 2 through the data receiving part 3. Then, the CPU 7 checks the receivable capacity of a buffer memory receiving data out of the buffers 4, and when the switching of the buffer memory is necessary, the buffer memory is switched and an idle buffer memory is allowed to receive data. After the lapse of a previously set time from the reception of the end of a data strobe signal, the timer processing part 6 sends an interruption signal Int2 to the CPU 7, which receives the signal Int2 and starts the release processing part 8. Consequently, useless time generated in the device can be reduced, receiving performance can be improved as compared with a convensional case and the performance of the device itself can also be improved as compared with the conventional case.

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.

〔従来の技術〕[Conventional technology]

従来、この種の受信バッファの制御方式は、以下に示す
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.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

上述した従来の受信バッファの制御方式において、第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.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の受信バッファの制御方式は、ホストコンピュー
タからのデータストローブ信号を内部のカウンターの開
始、クリア信号及び前記内部の起動用として受信して予
め設定した期間後に制御部への第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.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 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. .

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、ホストコンピュータから
の最終のデータ受信後予め設定した一定時間経過したタ
イミングで受信バッファを切り換える動作を従来のよう
にファームウェアが行うのではなく、タイマ処理手段及
びリリース手段で行うことにより、装置内部に生する無
駄な時間を削減できて、受信性能を従来より向上させ、
装置の性能をも従来より向上させることができる効果か
ある。
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)

【特許請求の範囲】[Claims] ホストコンピュータからのデータストローブ信号を内部
のカウンターの開始、クリア信号及び前記内部の起動用
として受信して予め設定した期間後に制御部への第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.
JP2216272A 1990-08-16 1990-08-16 Control system for receiving buffer Pending JPH0497416A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
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