JPH02189663A - Input/output data transfer system - Google Patents

Input/output data transfer system

Info

Publication number
JPH02189663A
JPH02189663A JP1009107A JP910789A JPH02189663A JP H02189663 A JPH02189663 A JP H02189663A JP 1009107 A JP1009107 A JP 1009107A JP 910789 A JP910789 A JP 910789A JP H02189663 A JPH02189663 A JP H02189663A
Authority
JP
Japan
Prior art keywords
data
input
cpu
interface
data transfer
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
JP1009107A
Other languages
Japanese (ja)
Inventor
Nobutaka Yoshida
信隆 吉田
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP1009107A priority Critical patent/JPH02189663A/en
Publication of JPH02189663A publication Critical patent/JPH02189663A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明は、入出力データ転送方式に関し、主としてマイ
クロコンピュータのインテリジェント/OP (入出カ
プロセッサ)の制御に好適なものである。
The present invention relates to an input/output data transfer system, and is mainly suitable for controlling an intelligent/OP (input/output processor) of a microcomputer.

【従来の技術】[Conventional technology]

従来のマイクロコンピュータにおいて、中央処理ユニッ
) (CPU)と入出力インタフェース間のデータ転送
には、CPUの入出力命令で行なうデータ転送方式と、
入出力インタフェースをCPUのアドレス空間にマツピ
ングして一般のメモリのリード・ライト命令でプログラ
ムモードで行なうデータ転送方式と、DMA (直接メ
モリアクセス)によるデータ転送方式とがある。
In conventional microcomputers, there are two methods for data transfer between the central processing unit (CPU) and the input/output interface:
There are two types of data transfer methods: one in which the input/output interface is mapped to the address space of the CPU and carried out in a program mode using general memory read/write commands, and the other in which data transfer is performed using DMA (direct memory access).

【発明が解決しようとする課題】[Problem to be solved by the invention]

従来、cpuと直結の単純な入出力(以下、Iloと称
する)インタフェースは、外部と一対一に対応している
ので、入出力データのチェックは必要としなかったし、
また実際上出来なかった。しかしながら、近年のマイク
ロコンピュータの性能向上に伴い、より多くの機能をI
/Oインタフェースに持たせるようになった。このため
、I/Oインタフェースの入出力によるCPUの負荷を
軽減するために、I/Oインタフェース内にマイクロコ
ンピュータを内蔵してデータの加工、バッファリング等
の機能を持たせたインテリジェントIOP (入出カプ
ロセッサ)が使用されるようになって来た。このため、
CPUとIOPとの間のデータ転送量が増加し、転送デ
ータの誤りが発生する可能性が出て来た。 このようなインテリジェントIOPとのデータ転送には
、従来からのcpuの人出命令を使用する方式と、IO
P側にDMAコントローラを載せて、DMA転送を行な
う方式とがある。だが、一般にマイクロコンピュータで
はバスコントローラがないものが多く、DMA転送方式
は不向きである。そのため、IOPとのデータ転送にお
いて、運送データのチェックは現在行なわれていない。 また、IOPにバッファメモリを有する場合は、多くの
アドレス空間が必要となるので、CPUから/OPへの
データ転送では、I/O制御レジスタを介して、一連の
データをIOP側のバッファメモリに、順次転送してい
る。しかしながら、このバッファメモリを用いる方式で
は、CPUが、−度にIOP側のデータを見ることが出
来ないので、IOP側において、何らかの方法で、入出
力データをチェックする必要が生じていた。 本発明の目的は、上述の問題点に鑑み、転送されるデー
タの誤り発生による入出力インタフェースの誤動作を防
止し、信頼性を向上した入出力データ転送方式を提供す
ることにある。
Conventionally, the simple input/output (hereinafter referred to as Ilo) interface directly connected to the CPU has a one-to-one correspondence with the outside, so there was no need to check input/output data.
Again, I couldn't actually do it. However, as the performance of microcomputers has improved in recent years, more functions have been added to the I
/O interface now has it. Therefore, in order to reduce the load on the CPU due to the input/output of the I/O interface, an intelligent IOP (input/output interface), which has a built-in microcomputer in the I/O interface and has functions such as data processing and buffering, is used. processors) have come into use. For this reason,
As the amount of data transferred between the CPU and IOP increases, there is a possibility that errors in the transferred data will occur. For data transfer with such intelligent IOPs, there are two methods: the traditional method of using CPU commands, and the method of using IO
There is a method in which a DMA controller is mounted on the P side and DMA transfer is performed. However, many microcomputers generally do not have a bus controller, so the DMA transfer method is not suitable. Therefore, transportation data is not currently checked during data transfer with the IOP. Also, if the IOP has a buffer memory, a large amount of address space is required, so when transferring data from the CPU to the /OP, a series of data is transferred to the buffer memory on the IOP side via the I/O control register. , are transferred sequentially. However, in the system using this buffer memory, the CPU cannot see the data on the IOP side at any time, so it is necessary to check the input/output data on the IOP side by some method. SUMMARY OF THE INVENTION In view of the above-mentioned problems, an object of the present invention is to provide an input/output data transfer method that prevents malfunctions of an input/output interface due to errors in transferred data and improves reliability.

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

かかる目的を達成するため、本発明は、CP[IからI
/Oインタフェースに、またI/Oインタフェースから
CPUに、データを転送する際において、送信側で一連
のデータの最後にチェックSUNを付加して送信し、受
信側で、受信されたデータとチェックSUNとを照合す
ることにより受信データの誤りを検出することを特徴と
する。
In order to achieve such an objective, the present invention provides
When transferring data to the /O interface or from the I/O interface to the CPU, the sending side adds a check SUN to the end of a series of data and sends it, and the receiving side adds the received data and check SUN. It is characterized by detecting errors in received data by comparing the received data.

【作 用] 本発明は、CPUからI/Oインタフェースへ、またI
/OインタフェースからCPUへ、データを転送する際
に、送信側で一連のデータの最後にチェックSUMのコ
ードを付加して送出し、受信側で転送されたデータとチ
ェックSt1Mとの照合によりデータの誤りを検出する
ようにしたので、データの誤りによるI/Oインタフェ
ースの誤動作が防止でき、信頼性の向上が得られる。 【実施例】 以下、図面を参照して本発明の実施例を詳細に説明する
。 第1図は本発明の実施例のデータの構成を示す。 ここで、21はデータ開始コード(STX) 、22は
データ開始コードの反転データ(STX) 、23はデ
ータバイト数、24はデータ、および25はETX  
(テキスト終了キャラクタ)またはETB  (伝送ブ
ロック終結キャラクタ)である。データを複数ブロック
に分割する場合は、この25はETBとなる。2゛6は
本発明を構成するチェックサム(StlM)のBCG 
 (ブロックチェックキャラクタ)であり、一連の転送
データの最後(25)に付加され、受信側においてエラ
ーチェックに用いられる。 第2図は本発明の実施例の全体の概略回路構成を示す。 ここで、1は全体の演算制御を司うcpu、2は第5図
に示すような本発明に係わる制御手順をあらかじめ格納
したROM (リードオンリメモリ)、3はCPUIの
作業領域等に用いられるRAM  (ランダムアクセス
メモリ)、および4は外部入出力装置の制御や入出力デ
ータの加工、保存、転送などを行なう■op (入出カ
プロセッサ)である。CPUI′と他の構成要素2〜4
はメインバス11を介して接続している。 第3図は第2図のl0P4の回路構成を示す。ここで、
5はloPd間のデータ転送制御に用いる制御レジスタ
、6はデイアルボー)RAM 、7はMPU  (マイ
クロプロセッサ)、8は第5図に示すような本発明に係
わる制御手順をあらかじめ格納したROM、9はRAM
 、および/Oは外部入力装置とデータの送受を行なう
I/Oインタフェースである。MPU7はデイアルボ−
) RAM6と制御レジスタ5を介してメインバス11
に接続し、メインバス11を通じてデータの転送を行な
う。 第4図は第3図の制御レジスタ5の構成を示す。 ここで、31はデバイスステータスレジスタ(STR)
、32はデータレジスタ(DTR) 、33はアドレス
レジスタ(ADH) 、および34は割込制御レジスタ
(IRGX)である。 次ニ第5図(A) 、(B)のフローチャートを参照し
て、本発明の動作手順を説明する。 第2図のcpuiから第3図のl0P4にデータを転送
する場合は、第5図(A)に示すように、CPUIは一
連のデータを複数のブロックに分割し、各プロ・ンク毎
にチェックサム(BCC)のコードを付加し、チェック
サム付のデータを転送する(ステップ31〜S6)、デ
ータ転送終了で、l0Pd側に割り込みを出力する(ス
テップS7)。 l0Pd側では上述の割込みに応じて第5図(B)に示
すように、受信データのBCCを計算しくステ・ンプS
ll、  512) 、受信したデータのチエ・ンクサ
ムと照合する(ステップ313)、チェックサムと計算
値が一致していれば、そのデータの送信処理を行ない(
ステップ514)、メインCPUIにデバイスエンドを
通知する(ステップ315)。チエ・ンクサムと計算値
が不一致であるデータエラー時には、メインCPUIに
デバイスエラーを通知する(ステ・ンプ516)。 外部の入出力装置からのデータの入力の場合は、l0P
4側からデータ転送要求をCPUIに通知して第5図(
A)の手順を実行し、CP[11は、順次l0P4から
のデータを読み込み、第5図(B)の手順に従ってデー
タのチェックを行なう。
[Function] The present invention can be used from a CPU to an I/O interface, or from an I/O interface.
When transferring data from the /O interface to the CPU, the sending side adds a check SUM code to the end of a series of data and sends it out, and the receiving side checks the data by comparing the transferred data with check St1M. Since errors are detected, malfunctions of the I/O interface due to data errors can be prevented, and reliability can be improved. Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 shows the structure of data in an embodiment of the present invention. Here, 21 is the data start code (STX), 22 is the inverted data of the data start code (STX), 23 is the number of data bytes, 24 is the data, and 25 is the ETX.
(End of Text Character) or ETB (End of Transmission Block Character). When data is divided into multiple blocks, this 25 becomes ETB. 2 and 6 are the BCG of the checksum (StlM) that constitutes the present invention.
(block check character) is added to the end (25) of a series of transfer data and is used for error checking on the receiving side. FIG. 2 shows an overall schematic circuit configuration of an embodiment of the present invention. Here, 1 is a CPU in charge of overall arithmetic control, 2 is a ROM (read only memory) in which control procedures related to the present invention as shown in FIG. 5 are stored in advance, and 3 is used as a work area of the CPUI, etc. RAM (Random Access Memory), and 4 an OP (input/output processor) that controls external input/output devices and processes, stores, and transfers input/output data. CPUI' and other components 2-4
are connected via the main bus 11. FIG. 3 shows the circuit configuration of l0P4 in FIG. 2. here,
5 is a control register used for data transfer control between loPds, 6 is a data transfer RAM, 7 is an MPU (microprocessor), 8 is a ROM pre-stored with the control procedure according to the present invention as shown in FIG. RAM
, and /O are I/O interfaces for transmitting and receiving data with external input devices. MPU7 is day albo-
) Main bus 11 via RAM 6 and control register 5
The main bus 11 is connected to the main bus 11 to transfer data. FIG. 4 shows the structure of the control register 5 of FIG. Here, 31 is the device status register (STR)
, 32 is a data register (DTR), 33 is an address register (ADH), and 34 is an interrupt control register (IRGX). Next, the operating procedure of the present invention will be explained with reference to the flowcharts of FIGS. 5(A) and 5(B). When transferring data from the CPU in Figure 2 to the l0P4 in Figure 3, the CPU divides the series of data into multiple blocks and checks each block for each block, as shown in Figure 5 (A). A sum (BCC) code is added and data with a checksum is transferred (steps 31 to S6). When the data transfer is completed, an interrupt is output to the l0Pd side (step S7). On the l0Pd side, in response to the above-mentioned interrupt, as shown in FIG.
ll, 512), checks the check sum of the received data (step 313), and if the check sum and the calculated value match, the data is transmitted (
Step 514), and notify the main CPUI of the device end (Step 315). In the event of a data error where the chain sum and the calculated value do not match, the main CPU is notified of the device error (step 516). When inputting data from an external input/output device, use l0P.
The data transfer request is notified from the 4 side to the CPUI and the process shown in Fig. 5 (
Executing the procedure A), CP[11 sequentially reads data from l0P4 and checks the data according to the procedure shown in FIG. 5(B).

【発明の効果】【Effect of the invention】

以上説明したように、本発明によれば、転送データの最
後にチェックサムを付加し、I/Oインタフェース側で
そのチェックサムを基にデータのエラーを検出するよう
にしたので、データの誤りによる170インタフエース
の誤動作を防止することができて信幀性が向上するとい
う効果が得られる。
As explained above, according to the present invention, a checksum is added to the end of transferred data, and data errors are detected based on the checksum on the I/O interface side. This has the effect of preventing malfunctions of the H.170 interface and improving reliability.

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

第1図は本発明の一実施例の転送データの構成を示すフ
ォーマット図、 第2図は、本発明の一実施例の全体の概略回路構成を示
すブロック図、 第3図は、第2図のIOPの回路構成を示すブロック図
、 第4図は第3図の制御レジスタの構成を示す配置構成図
、 第5図は本発明の一実施例のCPUとIOP間の制御手
順を示すフローチャートである。 1 ・・・ メインCPU。 2 ・・・ ROM。 3 ・・・ RAM。 4 ・・・ IOP。 5 ・・・ 制御レジスタ、 6 ・・・ デイアルポートRAM、 7 ・・・ MPU。 8 ・・・ ROM。 9 ・・・ RAM、 /O  ・・・ IOインタフェース、26  ・・・
 転送データのチェックS U M (BCC) 。 見/O 見2図 11 メインBUS 第3図 光4図 亮
FIG. 1 is a format diagram showing the configuration of transfer data according to an embodiment of the present invention, FIG. 2 is a block diagram showing the overall schematic circuit configuration of an embodiment of the present invention, and FIG. FIG. 4 is a block diagram showing the circuit configuration of the IOP in FIG. 4; FIG. 4 is a layout diagram showing the configuration of the control register in FIG. 3; FIG. be. 1... Main CPU. 2...ROM. 3...RAM. 4...IOP. 5...Control register, 6...Dial port RAM, 7...MPU. 8...ROM. 9...RAM, /O...IO interface, 26...
Transfer data check SUM (BCC). View/O View 2 Figure 11 Main BUS Figure 3 Light 4 Figure Ryo

Claims (1)

【特許請求の範囲】 CPUからI/Oインタフェースに、また該I/Oイン
タフェースから前記CPUに、データを転送する際にお
いて、 送信側で一連のデータの最後にチェックSUMを付加し
て送信し、 受信側で、受信された前記データと前記チェックSUM
とを照合することにより受信データの誇りを検出するこ
とを特徴とする入出力データ転送方式。
[Scope of Claims] When transferring data from the CPU to the I/O interface and from the I/O interface to the CPU, the sending side adds a check SUM to the end of a series of data and sends the data, On the receiving side, the received data and the check SUM
An input/output data transfer method characterized by detecting the quality of received data by comparing it with the data.
JP1009107A 1989-01-18 1989-01-18 Input/output data transfer system Pending JPH02189663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1009107A JPH02189663A (en) 1989-01-18 1989-01-18 Input/output data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1009107A JPH02189663A (en) 1989-01-18 1989-01-18 Input/output data transfer system

Publications (1)

Publication Number Publication Date
JPH02189663A true JPH02189663A (en) 1990-07-25

Family

ID=11711406

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1009107A Pending JPH02189663A (en) 1989-01-18 1989-01-18 Input/output data transfer system

Country Status (1)

Country Link
JP (1) JPH02189663A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260273A (en) * 2005-03-17 2006-09-28 Ricoh Co Ltd Subsystem module, information processing apparatus, and data transfer method in subsystem module
JP2008294757A (en) * 2007-05-24 2008-12-04 Fuji Xerox Co Ltd Data transmitting apparatus, data sending apparatus, data receiving apparatus and data transmission system
US7627614B2 (en) 2005-03-03 2009-12-01 Oracle International Corporation Lost write detection and repair
US9767178B2 (en) 2013-10-30 2017-09-19 Oracle International Corporation Multi-instance redo apply
US9892153B2 (en) 2014-12-19 2018-02-13 Oracle International Corporation Detecting lost writes
US10152500B2 (en) 2013-03-14 2018-12-11 Oracle International Corporation Read mostly instances
US10691722B2 (en) 2017-05-31 2020-06-23 Oracle International Corporation Consistent query execution for big data analytics in a hybrid database
US10698771B2 (en) 2016-09-15 2020-06-30 Oracle International Corporation Zero-data-loss with asynchronous redo shipping to a standby database
US10747752B2 (en) 2015-10-23 2020-08-18 Oracle International Corporation Space management for transactional consistency of in-memory objects on a standby database
US10891291B2 (en) 2016-10-31 2021-01-12 Oracle International Corporation Facilitating operations on pluggable databases using separate logical timestamp services
US11475006B2 (en) 2016-12-02 2022-10-18 Oracle International Corporation Query and change propagation scheduling for heterogeneous database systems
US11657037B2 (en) 2015-10-23 2023-05-23 Oracle International Corporation Query execution against an in-memory standby database

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627614B2 (en) 2005-03-03 2009-12-01 Oracle International Corporation Lost write detection and repair
JP2006260273A (en) * 2005-03-17 2006-09-28 Ricoh Co Ltd Subsystem module, information processing apparatus, and data transfer method in subsystem module
JP2008294757A (en) * 2007-05-24 2008-12-04 Fuji Xerox Co Ltd Data transmitting apparatus, data sending apparatus, data receiving apparatus and data transmission system
US10152500B2 (en) 2013-03-14 2018-12-11 Oracle International Corporation Read mostly instances
US10642861B2 (en) 2013-10-30 2020-05-05 Oracle International Corporation Multi-instance redo apply
US9767178B2 (en) 2013-10-30 2017-09-19 Oracle International Corporation Multi-instance redo apply
US9892153B2 (en) 2014-12-19 2018-02-13 Oracle International Corporation Detecting lost writes
US10747752B2 (en) 2015-10-23 2020-08-18 Oracle International Corporation Space management for transactional consistency of in-memory objects on a standby database
US11657037B2 (en) 2015-10-23 2023-05-23 Oracle International Corporation Query execution against an in-memory standby database
US10698771B2 (en) 2016-09-15 2020-06-30 Oracle International Corporation Zero-data-loss with asynchronous redo shipping to a standby database
US10891291B2 (en) 2016-10-31 2021-01-12 Oracle International Corporation Facilitating operations on pluggable databases using separate logical timestamp services
US11475006B2 (en) 2016-12-02 2022-10-18 Oracle International Corporation Query and change propagation scheduling for heterogeneous database systems
US10691722B2 (en) 2017-05-31 2020-06-23 Oracle International Corporation Consistent query execution for big data analytics in a hybrid database

Similar Documents

Publication Publication Date Title
US4730308A (en) Interface between a computer bus and a serial packet link
JPS5914778B2 (en) data processing equipment
US5313588A (en) SCSI controller and method for use on an information processing system
US6108755A (en) Asynchronous access system to a shared storage
JPS6336338A (en) Interrupt demand generator
EP0385703A2 (en) Keyboard interface control
JPH022176B2 (en)
JPH0764886A (en) Processor provided with serial interface device
JP3261665B2 (en) Data transfer method and data processing system
JPS603049A (en) Bus interface apparatus
JP2870837B2 (en) Arbitration circuit of central processing unit
JPS605370A (en) Common bus control system
JPS61202205A (en) Transfer device for numerically controlled data
JPS6292060A (en) Parallel processing system
JPS59177631A (en) Dma control system
JPS61165160A (en) Bus controlling system
JPH061425B2 (en) Keyboard interface control circuit
JPH0329533A (en) Ic for transmission
JPS6378257A (en) Input-output controller
JPH01312658A (en) Computer system
JPS63153635A (en) Specification system for data transfer speed
JPH0353663B2 (en)
JPH04267450A (en) Data input control system
JPS63304356A (en) Check system for normalcy of dma data
JPH07306840A (en) Computer system