JPS61251252A - Processing method for data transfer - Google Patents

Processing method for data transfer

Info

Publication number
JPS61251252A
JPS61251252A JP60090876A JP9087685A JPS61251252A JP S61251252 A JPS61251252 A JP S61251252A JP 60090876 A JP60090876 A JP 60090876A JP 9087685 A JP9087685 A JP 9087685A JP S61251252 A JPS61251252 A JP S61251252A
Authority
JP
Japan
Prior art keywords
input
data
processing unit
central processing
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
JP60090876A
Other languages
Japanese (ja)
Inventor
Nobuaki Sugihara
杉原 伸秋
Hideya Sato
秀也 佐藤
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering 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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP60090876A priority Critical patent/JPS61251252A/en
Publication of JPS61251252A publication Critical patent/JPS61251252A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To exhaustively input data inputted continuously from outside equipments with a limited buffering capacity by transferring all of inputted data which are buffered until a receiving time of an instruction to a central processing unit against a Read instruction from a host central processing unit. CONSTITUTION:With the inputting of the data to an input/output device 1 from an outside device 14, the first one bite is stored at the preceding buffer which an input pointer 18 points out and also an input pointer is updated and an interrupt request is issued against a central processing unit 2. With receiving the interrupt request from the input/output device 1, the central processing unit 2 instantly issues the Read instruction to the input/output device 1. A microprogram 9 which receives the Read instruction in the input/output device 1 stores the value of the input pointer at that time at an input pointer work and transfers the receiving data which are existed from an effective data preceding address within buffer which is pointed by an output pointer to the receiving data which are stored at the input pointer work in an administration table to the central processing unit 2.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、データ転送処理方法に係り、特に、外部機器
より連続して入力されるデータのバッファリング制御方
法において、データ入力の取りこぼしを防止するのに好
適な上位主メモリへのデータ転送制御方法に関す名。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a data transfer processing method, and in particular, to a buffering control method for data continuously input from an external device, in which data input is prevented from being missed. A method for controlling data transfer to upper main memory that is suitable for

〔発明の背景〕[Background of the invention]

従来、中央処理装置とインテリジェント化された周辺入
出力装置間のデータ転送処理に於いて、外部機器より入
力されるデータに対して、そのデータの入力方式は、中
央処理装置からのデータ入力命令(Read−命令)に
より、外部機器からの入力を許可し命令に付随する入力
データ語数に従い、バッファに取シ込み、外部機器から
の入力データが入力要求語数に達すると上位中央処理装
置の主記憶装置へ転送するデータ転送処理方式と、デー
タ入力要求手段は前述した方式と同様ではあるがバッフ
ァを複数個持ち、交代バッファ制御を行うことによって
データの連続入力を可能としたデータ転送処理方式とが
ある。
Conventionally, in data transfer processing between a central processing unit and intelligent peripheral input/output devices, the data input method for data input from an external device is based on a data input command ( Read-command) allows input from an external device, reads the input data into the buffer according to the number of input data words accompanying the command, and when the input data from the external device reaches the requested number of input words, the input data is transferred to the main memory of the upper central processing unit. There are two types of data transfer processing methods: a data transfer processing method in which the data input request means is similar to the method described above, but has multiple buffers, and allows continuous input of data by performing alternating buffer control. .

前者の方式では、中央処理装置からの入力命令で初めて
外部機器からのデータを入力するため、データ入力完了
後の終了報告から次のデータ入力命令受けまでの間、外
部機器からのデータ入力が中断されるため、連続的に入
力されるデータに対しては次のRead命令まで一時的
に取シこぼしが発生するという欠点がある。又、後者の
方式でも複数個のバッファを交代制御しながら前述した
欠点を補い連続入力を可能としているが、複数個のバッ
ファを保有するために、メモリ容量が大きくなること、
さらに、中央処理装置のデータ処理が1バイト単位で行
なわれる場合、入力要求語数が1バイトで連続要求され
るために、1バイト転送毎にバッファが切シ換わること
となり交代バッファ制御の効果が薄くなること、又、交
代バッファ制御を行うため、の制御が複雑なため、バッ
ファ切シ換えに時間を要し、その間、一時的に取シこぼ
しが発生する場合がある等の欠点があった。
In the former method, data is input from the external device only after receiving an input command from the central processing unit, so data input from the external device is interrupted from the completion report after data input is completed until the next data input command is received. Therefore, there is a drawback that data that is input continuously is temporarily lost until the next Read command. In addition, the latter method compensates for the above-mentioned drawbacks and enables continuous input by alternately controlling multiple buffers, but the memory capacity increases due to holding multiple buffers.
Furthermore, when data processing by the central processing unit is performed in 1-byte units, the number of input requested words is 1 byte and continuous requests are made, so the buffer is switched every time 1 byte is transferred, making alternating buffer control less effective. In addition, since the control for alternating buffer control is complicated, it takes time to switch buffers, and during that time there is a possibility that a buffer may be temporarily lost.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、中央処理装置とインテリシェードな入
出力装置との間のデータ転送処理方法に於いて、上位中
央処理装置からのR6ad命令に対し、命令を受けた時
点までバッファリングした全ての入力データを中央処理
装置へ転送することにより、バッファ空き状態の時間を
多く発生させることにより、バッファ・フル状態を無く
シ、外部:機器より連続的に入力されるデータを限られ
たノ(不ファ容量で取シこぼしなく入力できるデータ転
送処理方法を提供することにある。
An object of the present invention is to provide a data transfer processing method between a central processing unit and an Intellishade input/output device, in response to an R6ad instruction from a higher-level central processing unit. By transferring the input data to the central processing unit, the buffer is free for a long time, thereby eliminating the buffer full state. An object of the present invention is to provide a data transfer processing method that allows data to be input without losing data at a high capacity.

〔発明の概要〕[Summary of the invention]

本発明のデータ転送処理方式は、入出力装置に接続され
る外部装置のデータ出力が、中央処理装置から発行され
るデータ・リード要求とは非同期に発生することに着目
し、従来、中央処理装置から発行されるデータ・リード
要求と同期して外部処理からのデータ入力を制御してい
た処理方式をデータ入力制御とデータ出力制御に独立さ
せ、データ入力とデータ出力とを非同期に処理させるこ
と、中央処理装置からのデータ・リード要求時はデータ
・リード要求骨は付は時点までのバッファリングした全
入力データを中央処理装置へ全て転送することで、バッ
ファの空き状態を多く作り出せる。
The data transfer processing method of the present invention focuses on the fact that data output from an external device connected to an input/output device occurs asynchronously with a data read request issued from a central processing unit. A processing method that previously controlled data input from an external process in synchronization with a data read request issued from a data read request is made independent of data input control and data output control, and data input and data output are processed asynchronously. When a data read request is made from the central processing unit, all input data that has been buffered up to the time of the data read request is transferred to the central processing unit, thereby creating a large amount of free buffer space.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を図面によ勺説明する。 An embodiment of the present invention will be explained below with reference to the drawings.

第1図は本発明が適用される計算機システムの構成例で
ある。入出力装置1はl0P3が制御するシリアル・ル
ープ・バス4に接続され、BPO4、主記憶装置6、シ
ステムバス7を主な構成とする中央処理装置2のもとて
外部装置14とのデータの入出力制御を行う。
FIG. 1 shows an example of the configuration of a computer system to which the present invention is applied. The input/output device 1 is connected to a serial loop bus 4 controlled by the l0P3, and data is exchanged with an external device 14 under the central processing unit 2, which mainly includes a BPO 4, a main memory 6, and a system bus 7. Performs input/output control.

MPU5を塔載した入出力装置1は、マイクロ・プログ
ラム9により動作し、シリアル・ループ・バス4を介し
て中央処理装置2との入出力を行うためのバス・インタ
フェース装置IOを持つ。
An input/output device 1 equipped with an MPU 5 operates according to a microprogram 9 and has a bus interface device IO for inputting and outputting data to and from the central processing unit 2 via a serial loop bus 4.

入出力データを一時記憶する送信バッファ、受信バッフ
ァ、および、その管理情報t’iR,AMII内に確保
され、外部装置14と入出力装置1は回線13および回
線インタフェース装置12を介し、マイクロ・プログラ
ム9Vcよりデータの入出力を行う。
A transmission buffer and a reception buffer for temporarily storing input/output data, and their management information t'iR and AMII are secured, and the external device 14 and the input/output device 1 communicate with the microprogram via the line 13 and the line interface device 12. Data input/output is performed from 9Vc.

第2図は第1図におけるRAMIIの詳細であり、本発
明が適用される実施例で、受信バッファ15および受信
バッファの管理テーブル16を示す。
FIG. 2 shows details of the RAM II in FIG. 1, and shows a reception buffer 15 and a reception buffer management table 16 in an embodiment to which the present invention is applied.

最初、中央処理装置2は入出力装置1ic対し、イニシ
ャライズ命令を発行する。入出力装置lを制御するマイ
クロ・プログラム9はこの命令を受けると、バッファ管
理テーブル16の入カボイ/り18と出力ポインタ17
に受信バッファ15の先頭アドレス20を格納した後、
回線インタフェース装ff112を起動し、外部装置1
4からのデータ受信可能状態で待機する。
First, the central processing unit 2 issues an initialize command to the input/output device 1ic. When the microprogram 9 that controls the input/output device 1 receives this instruction, it changes the input pointer 18 and output pointer 17 of the buffer management table 16.
After storing the start address 20 of the receive buffer 15 in
Start line interface device ff112 and connect external device 1.
Waits in a state ready to receive data from 4.

外部装置14から入出力装置l・\データが入力される
と、マイクロ・プログラム9の受信処理は、先ず、最初
の1バイトを入力ポインタ18の指すバッファを先頭に
格納すると同時に、入カポ1゛ンタ18を更新し、中央
処理装置2に対して割込要求を発行する。第二バイト目
以降は入力ポインタ18に従い、無条件にバッファリン
グと入カボイ/り18の更新を繰シ返す。
When input/output device l/\ data is input from the external device 14, the reception processing of the micro program 9 first stores the first byte in the buffer pointed to by the input pointer 18, and at the same time stores the input point 1. The controller 18 is updated and an interrupt request is issued to the central processing unit 2. From the second byte onwards, buffering and updating of the input pointer 18 are repeated unconditionally according to the input pointer 18.

中央処理装置2は入出力装置1からの割込要求を受ける
と直ちにEl、 ead命令を入出力装置lK対して発
行する。
Immediately upon receiving an interrupt request from the input/output device 1, the central processing unit 2 issues El and ead commands to the input/output device IK.

Read命令を受けた入出力装置1のマイクロプログラ
ム9#′i、その時点での入力ポインタ18の値を入力
ポインタ・ワーク19に記憶し、出力ポインタ17の指
すバッツァ内有効データ先頭アドレスの受信データから
管理テーブル16の入力ポインタ・ワーク19に記憶し
ているアドレスまでの受信データを中央処理装置21C
転送することにより、Read命令を受けた時点までの
全ての受信データが中央処理装置2に対し転送されるこ
とになる。この間、外部装置14からのデータ入力はそ
のまま、実行され、入力ポインタ18に従い、データが
継続してバッファリングされること、受信データの中央
処理装置2への転送は外部装置14からのデータ入力よ
りもはるかに早いことは勿論である。引き続き入力され
るデータは次のRead命令により、中央処理装置2へ
転送され、その都度、バッファが空きとなるためバッフ
ァ・フルトなることはない。
The microprogram 9#'i of the input/output device 1 that receives the Read command stores the value of the input pointer 18 at that point in the input pointer work 19, and outputs the received data at the starting address of valid data in the batza pointed to by the output pointer 17. The received data from to the address stored in the input pointer work 19 of the management table 16 is sent to the central processing unit 21C.
By transferring, all received data up to the time when the Read command is received will be transferred to the central processing unit 2. During this time, the data input from the external device 14 is executed as is, the data is continuously buffered according to the input pointer 18, and the received data is transferred to the central processing unit 2 from the data input from the external device 14. Of course, it is also much faster. Subsequently input data is transferred to the central processing unit 2 by the next Read command, and the buffer becomes empty each time, so the buffer never becomes full.

本データ転送処理方法によると、バッファ・フル状態が
無くなるため、限られたバッファ容量で外部機器からの
入力データを増りこぼすことのないバッファリングを容
易に行なえる。
According to this data transfer processing method, there is no buffer full state, so it is possible to easily buffer input data from an external device without overflowing it with a limited buffer capacity.

図中21はバッファ・ラスト・アドレス。In the figure, 21 is the buffer last address.

なお、第3図は受信データをバッファリングするマイク
ロプログラムのフローチャート、第4図は中央処理装置
へ受信データを転送するマイクロプログラムのフローチ
ャートである。
Note that FIG. 3 is a flowchart of a microprogram for buffering received data, and FIG. 4 is a flowchart for a microprogram for transferring received data to the central processing unit.

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

本発明によれば、外部装置が送信する連続し之データを
、取りこぼすことなく受信することが可能となったため
、インテリジェントな入出力装置を介した外部装置と中
央処理装置とのデータの転送効率が向上する。
According to the present invention, it has become possible to receive continuous data sent by an external device without missing it, thereby increasing the efficiency of data transfer between the external device and the central processing unit via the intelligent input/output device. will improve.

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

第1図は本発明の一実施例の計算機システムの構成図、
第2図は第1図におけるRAMの詳細図、第3図は受信
データをバッファリングするマイクロプログラムのフロ
ー・チャート、第4図は中央処理装置・\受信データを
転送するマイクロプログラムのフローチャートである。
FIG. 1 is a configuration diagram of a computer system according to an embodiment of the present invention.
Figure 2 is a detailed diagram of the RAM in Figure 1, Figure 3 is a flowchart of a microprogram that buffers received data, and Figure 4 is a flowchart of a microprogram that transfers received data to the central processing unit. .

Claims (1)

【特許請求の範囲】 1、中央処理装置の主記憶装置とインテリジェントな入
出力装置との間のデータ転送がシリアル・データ方式の
ループバスにより行われ、そのループバス上の伝送方式
がパケット伝送方式であり、連続的に無限に伝送するこ
とのできない前記インテリジェントな入出力装置のデー
タ転送処理方法において、 外部機器より連続して入力されるデータに対し、前記中
央処理装置からのデータ・リード要求が一時的に遅れて
も、オーバーフローすることのないメモリ容量をもつ一
つのバッファと、このバッファの有効データ管理を行う
ための外部機器からの入力ポインタ、前記主記憶装置へ
の転送用出力ポインタを設け、前記中央処理装置からの
データ・リード要求時に、要求時点まで外部機器より入
力したデータを全て転送し、データ転送処理後は必ずバ
ッファ内を空にすることを特徴とするデータ転送処理方
法。
[Claims] 1. Data transfer between the main memory of the central processing unit and the intelligent input/output device is performed by a serial data loop bus, and the transmission method on the loop bus is a packet transmission method. In the data transfer processing method for the intelligent input/output device that cannot transmit data continuously and indefinitely, a data read request from the central processing unit is made for data that is continuously input from an external device. A buffer with a memory capacity that will not overflow even if there is a temporary delay, an input pointer from an external device for managing valid data in this buffer, and an output pointer for transfer to the main storage device are provided. . A data transfer processing method, characterized in that when a data read request is made from the central processing unit, all data input from an external device up to the time of the request is transferred, and a buffer is always emptied after the data transfer process.
JP60090876A 1985-04-30 1985-04-30 Processing method for data transfer Pending JPS61251252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60090876A JPS61251252A (en) 1985-04-30 1985-04-30 Processing method for data transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60090876A JPS61251252A (en) 1985-04-30 1985-04-30 Processing method for data transfer

Publications (1)

Publication Number Publication Date
JPS61251252A true JPS61251252A (en) 1986-11-08

Family

ID=14010683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60090876A Pending JPS61251252A (en) 1985-04-30 1985-04-30 Processing method for data transfer

Country Status (1)

Country Link
JP (1) JPS61251252A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6452065U (en) * 1987-09-22 1989-03-30
JPH01185769A (en) * 1988-01-20 1989-07-25 Tokyo Electric Co Ltd Pos system
JPH02158839A (en) * 1988-12-12 1990-06-19 Fujitsu Ltd Data transferring method
JPH02242350A (en) * 1989-03-15 1990-09-26 Fujitsu Ltd Circulating file processing system for data processing system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5875944A (en) * 1981-10-30 1983-05-07 Seikosha Co Ltd Data transmission system
JPS59223042A (en) * 1983-06-01 1984-12-14 Yokogawa Hokushin Electric Corp Signal transmitting system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5875944A (en) * 1981-10-30 1983-05-07 Seikosha Co Ltd Data transmission system
JPS59223042A (en) * 1983-06-01 1984-12-14 Yokogawa Hokushin Electric Corp Signal transmitting system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6452065U (en) * 1987-09-22 1989-03-30
JPH01185769A (en) * 1988-01-20 1989-07-25 Tokyo Electric Co Ltd Pos system
JPH02158839A (en) * 1988-12-12 1990-06-19 Fujitsu Ltd Data transferring method
JPH02242350A (en) * 1989-03-15 1990-09-26 Fujitsu Ltd Circulating file processing system for data processing system

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
JPH08288941A (en) Computer system and message transfer method
JPH05173938A (en) Intermittent dma control system
JPS61251252A (en) Processing method for data transfer
EP0514080A2 (en) Transition signalling data communications
JPS6240751B2 (en)
JPH0145657B2 (en)
JPS61250758A (en) Communication controller
JPS6019023B2 (en) data processing equipment
JPH02170644A (en) Priority transmitting method for multimedia communication system
JPS59214933A (en) Processing method of search queue command
JPS61271555A (en) Transferring system for direct memory access
JPS60158750A (en) High-speed communication system
JPS61105674A (en) Image processing device
JPS638506B2 (en)
JPH01219942A (en) Buffer control system
JPH02155059A (en) Data transfer system
JPS60136853A (en) Data transfer system
JPS6378257A (en) Input-output controller
JPS6294042A (en) Communication control equipment
JPS61131154A (en) Data transfer control system
JPH0478249A (en) Communication control method
JPS63271563A (en) Data transfer device
JPS6168665A (en) Input/output controlling device of computer
JPH034348A (en) Control adapter for input/output device