JPH03113554A - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPH03113554A
JPH03113554A JP1251309A JP25130989A JPH03113554A JP H03113554 A JPH03113554 A JP H03113554A JP 1251309 A JP1251309 A JP 1251309A JP 25130989 A JP25130989 A JP 25130989A JP H03113554 A JPH03113554 A JP H03113554A
Authority
JP
Japan
Prior art keywords
data
storage device
transfer
area
serial communication
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
JP1251309A
Other languages
Japanese (ja)
Inventor
Tomihisa Takasugi
高杉 富久
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1251309A priority Critical patent/JPH03113554A/en
Publication of JPH03113554A publication Critical patent/JPH03113554A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To prevent the deterioration of the processing capability of a microprocessor by providing a 2nd storage device to duplicate the data transfer area of a 1st storage device to use both data transfer areas of the 1st storage device by switching a bus switch and using no microprocessor for transfer of data. CONSTITUTION:The bus switch 40 is actuated when a serial communication port 30 confirms the end of transfer of a single telegram. Thus the transfer data areas 22A and 22B of the 1st storage device 20 are switched with each other. A microprocessor MPU 10 has an access to the area 22A to process the inputted telegram. Meanwhile the telegrams inputted under such conditions, are written into the area 22B. In other words, both areas 22A and 22B are switched with each other to transfer the input data received from the port 30 and to process the data via the MPU 10 for each input of a telegram. As a result, the MPU 10 is not required for the transfer of data. Thus it is possible to prevent the deterioration of the processing capability of the MPU 10 due to the transfer of data.

Description

【発明の詳細な説明】 〔概 要〕 シリアル通信ポートに入力されるデータの、記憶装置へ
の転送方式に関し、 第1の記憶装置の中のデータ転送領域を二重化する第2
の記憶装置を設け、バススイッチにて切替え使用し、デ
ータ転送にマイクロプロセッサを介入させないようにす
ることにより、マイクロプロセッサの処理能力を低下さ
せることのないデータ転送方式を提供することを目的と
し、バススイッチにより、シリアル通信ポートを転送デ
ータ領域、第2の記憶装置の一方に接続し、マイクロプ
ロセッサは他方に接続しておき、シリアル通信ポートが
受信したデータを、順次転送し、■電文の受信、転送が
終了する毎に、バススイッチにより、転送データ領域と
第2の記憶装置とを切替え、マイクロプロセッサによる
、入力された電文に対する処理と、入力する電文の記憶
装置への転送を、転送データ領域と第2の記憶装置とを
交互に切替え使用するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a method of transferring data input to a serial communication port to a storage device, a second storage device that duplicates the data transfer area in a first storage device is provided.
The purpose of the present invention is to provide a data transfer method that does not reduce the processing capacity of a microprocessor by providing a storage device, switching between uses using a bus switch, and eliminating the need for the microprocessor to intervene in data transfer. Connect the serial communication port to one of the transfer data area and the second storage device using the bus switch, connect the microprocessor to the other, and sequentially transfer the data received by the serial communication port, and receive the message. , Each time the transfer is completed, the bus switch switches between the transfer data area and the second storage device, and the microprocessor processes the input message and transfers the input message to the storage device. The area and the second storage device are configured to be switched and used alternately.

〔産業上の利用分野〕[Industrial application field]

本発明は、シリアル通信ポートから入力されるデータの
、記憶装置への転送方式に関する。
The present invention relates to a method for transferring data input from a serial communication port to a storage device.

回線を通じて送られてくるデータを、取り込み処理を行
う処理システムにおいて、データの受信は、シリアル通
信ポートで受信し、受信したデータの記憶装置への転送
はダイレクトメモリアクセスコントローラで行っている
In a processing system that takes in and processes data sent through a line, the data is received by a serial communication port, and the received data is transferred to a storage device by a direct memory access controller.

このような、記憶装置へのデータ転送はマイクロプロセ
ッサの処理とは関係なく独立に実行し、マイクロプロセ
ッサの処理能力を低下させないデータ転送方式であるこ
とが要求されている。
There is a demand for a data transfer method that performs data transfer to a storage device independently of the processing of the microprocessor and does not reduce the processing ability of the microprocessor.

〔従来の技術〕[Conventional technology]

第3図は従来例を説明するブロック図、第4図は従来例
のフローチャートを説明する図である。
FIG. 3 is a block diagram illustrating a conventional example, and FIG. 4 is a diagram illustrating a flowchart of the conventional example.

第3図の従来例は、各種処理を行うマイクロプロセッサ
(以下MPUと称する)10と、各種データを記憶する
領域および、シリアル通信ポート30から転送してきた
データを記憶する領域をもつ記憶装置2OAと、 回線を通じて送られてくるデータを受信するシリアル通
信ポート30と、 記憶装置20Aとシリアル通信ポート30間のデータ転
送の制御を行う動作を制御するダイレクトメモリアクセ
スコントローラ(以下DMACと称する)50とより構
成されている。
The conventional example shown in FIG. 3 includes a microprocessor (hereinafter referred to as MPU) 10 that performs various processes, a storage device 2OA that has an area for storing various data, and an area for storing data transferred from a serial communication port 30. , a serial communication port 30 that receives data sent through the line, and a direct memory access controller (hereinafter referred to as DMAC) 50 that controls the operation of controlling data transfer between the storage device 20A and the serial communication port 30. It is configured.

上述の従来例の動作を、第4図に示すフローチャートで
説明する。
The operation of the above-mentioned conventional example will be explained with reference to the flowchart shown in FIG.

■ シリアル通信ポート30に1キヤラクタ(通常8ビ
ツト、16ビツト等)のデータ入力。
■ Input data of one character (usually 8 bits, 16 bits, etc.) to the serial communication port 30.

■ シリアル通信ポート30はデータ入力により、DM
AC50にDMA  REQUEST送出。
■ Serial communication port 30 allows DM by inputting data.
Send DMA REQUEST to AC50.

■ DMAC50はMPUl0にHOLD  REQU
EST送出。
■ DMAC50 HOLD REQU to MPU10
EST transmission.

■ MPUl0はHOLD  REQUESTを確認す
ると、処理を中断し、バスを開放し、HOLD  AC
KをDMAC50に戻す。
■ When MPUl0 confirms HOLD REQUEST, it interrupts the process, releases the bus, and starts HOLD AC.
Return K to DMAC50.

■ DMAC50はシリアル通信ポート30にDMA 
 ACKを戻すと同時に、シリアル通信ポート30から
記憶装置2OAにデータを転送する。
■ DMAC50 connects DMA to serial communication port 30.
At the same time as returning the ACK, data is transferred from the serial communication port 30 to the storage device 2OA.

■ データ転送が終了すると、DMAC50はHOLD
  REQUESTを取り下げMPUl0はバスを使用
し通常処理を再開する。
■ When data transfer is completed, DMAC50 becomes HOLD.
The MPU10 cancels the REQUEST and resumes normal processing using the bus.

■ 次の受信データがあるときには、■に戻り、転送処
理を実行する。
■ When there is next received data, return to step (■) and execute the transfer process.

一 〔発明が解決しようとする課題〕 上述の従来例では、他装置との通信等で、シリアル通信
ポートと記憶装置との間でデータ転送を行うときには、
シリアル通信ポートに1キヤラクタのデータが入力する
毎に、MPUにHOLDREQUESTが送出され、M
PUの処理が中断し、バスが開放されるためにMPUの
処理能力が低下する。
[Problems to be Solved by the Invention] In the above-mentioned conventional example, when data is transferred between a serial communication port and a storage device for communication with another device, etc.
Every time one character of data is input to the serial communication port, HOLDREQUEST is sent to the MPU, and M
Since the PU processing is interrupted and the bus is released, the processing capacity of the MPU is reduced.

本発明は、第1の記憶装置の中のデータ転送領域を二重
化する第2の記憶装置を設け、バススイッチにて切替え
使用し、データ転送にマイクロプロセッサを介入させな
いようにすることにより、マイクロプロセッサの処理能
力を低下させることのないデータ転送方式を提供するこ
とを目的とする。
The present invention provides a second storage device that duplicates the data transfer area in the first storage device, uses a bus switch to switch between uses, and prevents the microprocessor from intervening in data transfer. The purpose of the present invention is to provide a data transfer method that does not reduce processing capacity.

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

第1図は本発明の詳細な説明するブロック図を示す。 FIG. 1 shows a block diagram illustrating the invention in detail.

第1図に示す本発明の実施例ブロック図中の10は、各
種処理を行うMPUであり、 20は、各種データを記憶する領域21とシリアル通信
ポー)0からの転送データを記憶する領域22Aを有す
る第1の記憶装置であり、22Bは、第1の記憶装置2
0の中の、転送データ領域22Aを二重化する第2の記
憶装置であり、 30は、回線を通じて送られて(るデータを受信するシ
リアル通信ポートであり、 40は、第1の記憶装置20の中の転送データ領域22
Aと、第2の記憶装置22Bとを切り換えるバススイッ
チであり、 かかる手段を具備することにより本課題を解決するため
の手段とする。
10 in the block diagram of the embodiment of the present invention shown in FIG. 1 is an MPU that performs various processes, and 20 is an area 21 for storing various data and an area 22A for storing data transferred from the serial communication port 0. 22B is the first storage device having the first storage device 2.
0 is a second storage device that duplicates the transfer data area 22A; 30 is a serial communication port that receives data sent through the line; 40 is a second storage device that duplicates the transfer data area 22A; Transfer data area 22 inside
This is a bus switch that switches between the storage device A and the second storage device 22B, and by providing such means, it is a means for solving this problem.

〔作 用〕[For production]

第1の記憶装置20のデータ転送領域22A以外の領域
21は常に、MPUl0に接続されている。
Areas 21 of the first storage device 20 other than the data transfer area 22A are always connected to MPU10.

まず、初期状態で、MPUl0は、データ転送に関して
は、第2の記憶装置22Bに接続され、シリアル通信ポ
ート30は第1の記憶装置20のデータ転送領域22A
に接続されているものとする。
First, in the initial state, MPU10 is connected to the second storage device 22B for data transfer, and the serial communication port 30 is connected to the data transfer area 22A of the first storage device 20.
Assume that it is connected to.

この状態で、シリアル通信ポート30にデータが入力す
ると、入力したデータを、データ転送領域22Aに1キ
ヤラクタずつ順次転送する。
In this state, when data is input to the serial communication port 30, the input data is sequentially transferred character by character to the data transfer area 22A.

l電文の転送が終了したことを、シリアル通信ポート3
0が確認したときには、バススイッチ40を動作させ、
第1の記憶装置20の中の転送データ領域22Aと第2
の記憶装置22Bとを切替え、MPUl0は、転送デー
タ領域22Aをアクセスし、入力された電文に対する処
理を行い、この間に入力する電文は第2の記憶装置22
Bに書き込むように接続する。
lInform the serial communication port 3 that the message transfer has been completed.
When 0 is confirmed, operate the bus switch 40,
The transfer data area 22A in the first storage device 20 and the second
The MPU10 accesses the transfer data area 22A and processes the input message, and the message input during this time is transferred to the second storage device 22B.
Connect to write to B.

l電文の入力毎に、シリアル通信ポート30からの入力
データの転送とMPUl0からの処理を、転送データ領
域22Aと第2の記憶領域22Bとを交互に切替え使用
することにより、データ転送にはMPUl0が介入する
ことがなくなるので、データ転送によりMPUl0の処
理能力が低下することがなくなる。
Each time a message is input, the transfer data area 22A and the second storage area 22B are alternately used to transfer input data from the serial communication port 30 and process from MPU10, so that MPU10 is used for data transfer. Since the processor no longer intervenes, the processing capacity of MPU10 does not decrease due to data transfer.

〔実施例〕〔Example〕

以下本発明の要旨を第1図〜第2図に示す実施例により
具体的に説明する。
The gist of the present invention will be specifically explained below with reference to embodiments shown in FIGS. 1 and 2.

第1図は本発明の詳細な説明するブロック図、第2図は
本発明の実施例のフローチャートを説明する図、をそれ
ぞれ示す。なお、全図を通じて同一符号は同一対象物を
示す。
FIG. 1 is a block diagram illustrating the present invention in detail, and FIG. 2 is a diagram illustrating a flowchart of an embodiment of the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

第1図に示す本発明の実施例は、第1の記憶装置20の
中のデータ転送領域22Aと、第2の記憶装置ff12
2Bとをバススイッチ40で切替え使用する構成として
いる。
The embodiment of the present invention shown in FIG. 1 has a data transfer area 22A in the first storage device 20 and a
The bus switch 40 is used to switch between the 2B and 2B.

第1図に示す実施例の動作を、第2図に示すフローチャ
ートで説明する。
The operation of the embodiment shown in FIG. 1 will be explained with reference to the flowchart shown in FIG.

第1の記憶装置20の中の領域21は常にMPUl0に
接続されている。
Area 21 in the first storage device 20 is always connected to MPU10.

(1)受信電文の処理に関しては、MPUl0は、第2
の記憶装置22Bに接続され、第1の記憶語=9 置20の中のデータ転送領域22Aはシリアル通信ポー
ト30に接続されて、処理を実行している。
(1) Regarding the processing of the received message, MPUl0
The data transfer area 22A in the storage device 20 is connected to the serial communication port 30 and executes processing.

(2)  シリアル通信ポート30に1キヤラクタのデ
ータ入力。
(2) Input one character data to serial communication port 30.

(3)  シリアル通信ポート30は、第1の記憶装置
20の中のデータ転送領域22Aにデータ転送。
(3) The serial communication port 30 transfers data to the data transfer area 22A in the first storage device 20.

(4)  電文が終了してないときは、(3)に戻り、
シリアル通信ポート30よりデータ転送領域22Aへの
データ転送を継続する。
(4) If the message has not finished, return to (3).
Data transfer from the serial communication port 30 to the data transfer area 22A continues.

(5)1電文が終了したときには、バススイッチ40に
より、データ転送領域22Aと第2の記憶装置22Bと
を切り替える。
(5) When one message is completed, the bus switch 40 switches between the data transfer area 22A and the second storage device 22B.

(6)MPUIOは、データ転送領域22Aをアクセス
して、入力された電文に対する処理を行う。
(6) The MPUIO accesses the data transfer area 22A and processes the input message.

この状態で、シリアル通信ポート30に入力するデータ
は、第2の記憶装置22Bに転送する。
In this state, data input to the serial communication port 30 is transferred to the second storage device 22B.

上述のように、データ転送M域を2つ設け、シリアル通
信ポートで受信したデータの転送と、MPUからの処理
を交互に切替え使用することにより、データ受信、転送
にはMPUが介入しする必0 要がなくなり、データ転送によるMPUの処理能力を防
ぐことが可能となる。
As mentioned above, by providing two data transfer M areas and alternately using the transfer of data received at the serial communication port and the processing from the MPU, the MPU does not have to intervene in data reception and transfer. 0, and it becomes possible to prevent the processing capacity of the MPU from being affected by data transfer.

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

以上のような本発明によれば、データ転送にMPUを介
入させることがなくなり、データ転送にかかわるMPU
の処理能力の低下を、防止することのできるデータ転送
方式を提供することができる。
According to the present invention as described above, there is no need for the MPU to intervene in data transfer, and the MPU involved in data transfer
It is possible to provide a data transfer method that can prevent a decrease in the processing capacity of the computer.

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

第1図は本発明の詳細な説明するブロック図、第2図は
本発明の実施例のフローチャートを説明する図、 第3図は従来例を説明するブロック図、第4図は従来例
のフローチャートを説明する図、をそれぞれ示す。 図において、 10は、MPU。 20は、第1の記憶装置、 20Aは、記憶装置、 21は、各種データの記憶領域 22Aは、データ転送領域、 22Bは、第2の記憶装置、 30は、シリアル通信ポート、 40は、バススイッチ、 50は、DMAC。 をそれぞれ示す。 本発明の詳細な説明するブロック図 第1図 本発明の実施例のフローチャートを説明する図第2図 従来例を説明するブロック図 第3図 従来例のフローチャートを説明する図 第4図
FIG. 1 is a block diagram explaining the present invention in detail, FIG. 2 is a diagram explaining a flowchart of an embodiment of the present invention, FIG. 3 is a block diagram explaining a conventional example, and FIG. 4 is a flowchart of a conventional example. , respectively, are shown. In the figure, 10 is an MPU. 20 is a first storage device; 20A is a storage device; 21 is a storage area for various data; 22A is a data transfer area; 22B is a second storage device; 30 is a serial communication port; 40 is a bus The switch 50 is a DMAC. are shown respectively. Fig. 1 is a block diagram explaining the detailed explanation of the present invention Fig. 2 is a block diagram explaining a conventional example Fig. 3 is a block diagram explaining a conventional example Fig. 4 is a drawing explaining a flow chart of a conventional example

Claims (1)

【特許請求の範囲】 マイクロプロセッサ(10)と、各種データを記憶する
領域(21)とデータ転送領域(22A)を有する第1
の記憶装置(20)と、シリアル通信ポート(30)か
らなる処理システムにおいて、 前記シリアル通信ポート(30)で受信したデータを転
送し、該データを書き込む前記第1の記憶装置(20)
の中の、前記転送データ領域(22A)を二重化する第
2の記憶装置(22B)と、前記第1の記憶装置(20
)の中の転送データ領域(22A)と、前記第2の記憶
装置(22B)とを切り換えるバススイッチ(40)を
設け、前記バススイッチ(40)により、前記シリアル
通信ポート(30)を前記転送データ領域(22A)、
前記第2の記憶装置(22B)の一方に接続し、前記マ
イクロプロセッサ(10)は他方に接続しておき、前記
シリアル通信ポート(30)が受信したデータを、順次
転送し、1電文の受信、転送が終了する毎に、前記バス
スイッチ(40)により、前記転送データ領域(22A
)と前記第2の記憶装置(22B)とを切替え、前記マ
イクロプロセッサ(10)による、入力された電文に対
する処理と、入力する電文の記憶装置への転送を、前記
転送データ領域(22A)と前記第2の記憶装置(22
B)とを交互に切替え使用することを特徴とするデータ
転送方式。
[Claims] A first processor having a microprocessor (10), an area (21) for storing various data, and a data transfer area (22A).
In a processing system comprising a storage device (20) and a serial communication port (30), the first storage device (20) transfers data received by the serial communication port (30) and writes the data.
a second storage device (22B) that duplicates the transfer data area (22A);
) is provided, and a bus switch (40) is provided to switch between the transfer data area (22A) and the second storage device (22B), and the bus switch (40) allows the serial communication port (30) to switch between the transfer data area (22A) and the second storage device (22B). data area (22A),
The second storage device (22B) is connected to one side, and the microprocessor (10) is connected to the other, and data received by the serial communication port (30) is sequentially transferred to receive one message. , each time the transfer is completed, the bus switch (40) switches the transfer data area (22A
) and the second storage device (22B), and the microprocessor (10) processes the input message and transfers the input message to the storage device with the transfer data area (22A). The second storage device (22
A data transfer method characterized by alternately switching and using B).
JP1251309A 1989-09-27 1989-09-27 Data transfer system Pending JPH03113554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1251309A JPH03113554A (en) 1989-09-27 1989-09-27 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1251309A JPH03113554A (en) 1989-09-27 1989-09-27 Data transfer system

Publications (1)

Publication Number Publication Date
JPH03113554A true JPH03113554A (en) 1991-05-14

Family

ID=17220892

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1251309A Pending JPH03113554A (en) 1989-09-27 1989-09-27 Data transfer system

Country Status (1)

Country Link
JP (1) JPH03113554A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9120615B2 (en) 2011-06-01 2015-09-01 Idemitsu Kosan Co., Ltd. Storage device for granular material

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9120615B2 (en) 2011-06-01 2015-09-01 Idemitsu Kosan Co., Ltd. Storage device for granular material

Similar Documents

Publication Publication Date Title
JPH04346151A (en) Data processor
JPH03113554A (en) Data transfer system
CN101833523B (en) Data access method
JPH0769882B2 (en) Input / output control system having cross-call function and dynamic configuration change method in the system
JPS6055752A (en) Packet processing system
JPS61271555A (en) Transferring system for direct memory access
JPH03262063A (en) Bus control circuit for dma transfer
JP2003167837A (en) Communication mediating device
JPH01147763A (en) Input/output control system for terminal concentrator
JPS62181551A (en) Gate way device
JPH10341257A (en) Packet processing unit
JPH04101260A (en) Bus controlling system
JPH0346855B2 (en)
JPS60196866A (en) Data processor
JPS5824256A (en) Line circuit control system of communication controller
JPH04301945A (en) High efficiency multicast system
JPS58222635A (en) Polling transmission system
JPS6240571A (en) Data transfer control circuit
JPS615652A (en) Polling control transmission processing system of hdlc procedure
JPH0447345B2 (en)
JPH08320842A (en) Data transfer control system
JPH0256149A (en) Communication processor
JPS6336459A (en) High speed dma transferring system
JPH01219942A (en) Buffer control system
JPH0429101B2 (en)