JPH063591B2 - Control method of reception data in communication control device - Google Patents

Control method of reception data in communication control device

Info

Publication number
JPH063591B2
JPH063591B2 JP61138796A JP13879686A JPH063591B2 JP H063591 B2 JPH063591 B2 JP H063591B2 JP 61138796 A JP61138796 A JP 61138796A JP 13879686 A JP13879686 A JP 13879686A JP H063591 B2 JPH063591 B2 JP H063591B2
Authority
JP
Japan
Prior art keywords
data
bank
reception
memory
cpu
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.)
Expired - Fee Related
Application number
JP61138796A
Other languages
Japanese (ja)
Other versions
JPS62295157A (en
Inventor
康成 鈴村
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 JP61138796A priority Critical patent/JPH063591B2/en
Publication of JPS62295157A publication Critical patent/JPS62295157A/en
Publication of JPH063591B2 publication Critical patent/JPH063591B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、通信回線を介して他の通信設備との間でブロ
ードキャストデータ等の送・受信を行なう通信制御装置
において、受信データをCPUにて参照するための制御
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of application) The present invention relates to a communication control device for transmitting / receiving broadcast data or the like to / from another communication facility via a communication line, and the received data to a CPU. Control method for reference.

(従来の技術) 従来、この種の通信制御装置としては、第6図に示す如
くブロードキャストデータの送・受信バッファに2バン
クメモリを用いたものが知られている。すなわち、図に
おいて1'は通信制御装置、2はメモリ21,22を備えた2
バンクメモリ、4は通信回線、5はこの通信回線4を介
してデータを送・受信するコントローラや計算機の如き
他の通信設備(以下、コントローラという)、6はシス
テムバス、7は中央処理装置(以下、CPUという)、
11はメモリ切替制御部、13はシステムバス制御部、17は
受信フラグをそれぞれ示している。なお、便宜上、第6
図では通信回線4との間のデータの送・受信手段やシス
テムバス6とのインターフェース手段を省略してある。
(Prior Art) Conventionally, as this type of communication control device, one using a two-bank memory for a broadcast data transmission / reception buffer as shown in FIG. 6 is known. That is, in the figure, 1'is a communication control device, 2 is a memory provided with memory 21,
Bank memory, 4 is a communication line, 5 is another communication facility (hereinafter referred to as a controller) such as a controller or a computer that sends and receives data via the communication line 4, 6 is a system bus, and 7 is a central processing unit ( Hereinafter referred to as CPU),
Reference numeral 11 is a memory switching control unit, 13 is a system bus control unit, and 17 is a reception flag. In addition, for convenience, the sixth
In the figure, the means for sending / receiving data to / from the communication line 4 and the interface means to the system bus 6 are omitted.

この通信制御装置1'において、通信回線4を介してブロ
ードキャストデータを他のコントローラ5との間で送・
受信する場合の動作の概要を説明する。まず送信側にお
いて、図示するように通信回線4側に接続されているメ
モリ21には、現在この通信制御装置1'がコントローラ5
に送信しているブロードキャストデータが格納されてお
り、他方、システムバス6に接続されているメモリ22
は、CPU7が新たな送信データを準備するための作業
領域として使用される。
In this communication control device 1 ', the broadcast data is sent to and from the other controller 5 via the communication line 4.
The outline of the operation for receiving will be described. First, on the transmission side, as shown in the figure, the memory 21 connected to the communication line 4 side has the communication controller 1'currently connected to the controller 5
Memory 22 which stores the broadcast data being transmitted to the other side, and is connected to the system bus 6 on the other hand.
Is used as a work area for the CPU 7 to prepare new transmission data.

ここで、通信制御装置1'からコントローラ5に送信して
いるブロードキャストデータを変更する動作としては、
システムバス6に接続されたメモリ22に対してCPU7
が新しい送信データを設定し、その後、送信メモリ切替
要求を出力する。通信制御装置1'では、かかる切替要求
に従い、メモリ切替制御部11を介してメモリの接続を切
り替える。すなわち、メモリ22は通信回線4に、またメ
モリ21はシステムバス6側にそれぞれ接続替えされる。
Here, as the operation of changing the broadcast data transmitted from the communication control device 1 ′ to the controller 5,
CPU 7 for memory 22 connected to system bus 6
Sets new transmission data, and then outputs a transmission memory switching request. The communication control device 1 ′ switches the memory connection via the memory switching control unit 11 in accordance with the switching request. That is, the memory 22 is connected to the communication line 4, and the memory 21 is connected to the system bus 6 side.

一方、ブロードキャストデータを受信する場合には、通
信回線4に接続されたメモリ21はブロードキャストデー
タの受信バッファとして、またシステムバス6側に接続
されたメモリ22はCPU7の参照領域として用いられ
る。
On the other hand, when receiving broadcast data, the memory 21 connected to the communication line 4 is used as a broadcast data reception buffer, and the memory 22 connected to the system bus 6 side is used as a reference area of the CPU 7.

通信制御装置1'は、受信フラグ17がセットされていない
場合に限り、通信回線4上のブロードキャストデータを
メモリ21に格納する。この時、ブロードキャストデータ
の受信が正常に終了していたならば受信フラグ17をセッ
トし、以後のCPU7からの受信メモリ切替要求によっ
てメモリ切替が直ちに行なえる状態にしておく。ここ
で、メモリ切替とはそれまで通信回線4に接続されてい
た2バンクメモリ2内のメモリをシステムバス6側に接
続し、逆にシステムバス6に接続されていたメモリを通
信回線4に接続することをいう。
The communication control device 1 ′ stores the broadcast data on the communication line 4 in the memory 21 only when the reception flag 17 is not set. At this time, if the reception of the broadcast data is completed normally, the reception flag 17 is set, and the memory switching can be immediately performed by the subsequent reception memory switching request from the CPU 7. Here, the memory switching is to connect the memory in the 2-bank memory 2 that was connected to the communication line 4 to the system bus 6 side, and conversely connect the memory that was connected to the system bus 6 to the communication line 4. It means to do.

通信制御装置1'は、受信フラグ17がセットされている場
合には新たなブロードキャストデータの受信処理を行な
わず、CPU7からの受信メモリ切替要求を受け付ける
とメモリ切替を行なう。そして、メモリ切替が行なわれ
ると受信フラグ17をクリアする。なお、前回の受信メモ
リ切替要求から今回の受信メモリ切替要求までの間に、
新たなブロードキャストデータの受信が行なわれていな
いか、あるいは行なわれていたとしてもその何れもが正
常に終了しなかった場合には、受信フラグ17がセットさ
れていないため、通信制御装置1'はメモリ切替を行なわ
ず、CPU7は前回と同じブロードキャストデータを参
照し続けることとなる。
When the reception flag 17 is set, the communication control device 1 ′ does not perform new broadcast data reception processing, but performs memory switching when receiving a reception memory switching request from the CPU 7. When the memory is switched, the reception flag 17 is cleared. In addition, between the last reception memory switching request and this reception memory switching request,
If new broadcast data is not received, or if any of them is not normally completed, the reception flag 17 is not set, and the communication control device 1'is The CPU 7 continues to refer to the same broadcast data as the previous time without switching the memory.

ここでCPU7は、まず受信メモリ切替要求を出力し、
通信制御装置1'がそれを受けた後で2バンクメモリ2を
アクセスすることによりブロードキャストデータを参照
する。
Here, the CPU 7 first outputs a reception memory switching request,
The communication control device 1 ′ refers to the broadcast data by accessing the 2-bank memory 2 after receiving it.

以上のような動作に従い、CPU7がある一定の周期で
受信メモリ切替要求を出力した場合にCPU7が参照で
きるブロードキャストデータの更新状態は、第7図のタ
イミングチャートによって表わされる。この第7図にお
いて、ブロードキャストデータの受信タイミングとその
データをCPU7が参照できるタイミングとの関係に注
目すると、CPU7からの受信バンク切替要求が出力さ
れた後、初めて正常に受信できたデータd1,d2
4,d6,d7が次の受信メモリ切替要求によって参照
可能になることが明らかである。なお、図において符号
×は参照できないデータを示す。
According to the above operation, the update state of the broadcast data that the CPU 7 can refer to when the CPU 7 outputs the reception memory switching request at a certain cycle is represented by the timing chart of FIG. In FIG. 7, focusing on the relationship between the reception timing of the broadcast data and the timing at which the CPU 7 can refer to the data, the data d 1 that can be normally received for the first time after the reception bank switching request from the CPU 7 is output, d 2 ,
It is clear that d 4 , d 6 and d 7 can be referred to by the next reception memory switching request. In the figure, the symbol x indicates data that cannot be referred to.

このことから、CPU7がブロードキャストデータのリ
フレッシュ周期に対してさほど長くない一定周期にて受
信メモリ切替要求を常時出力している場合には、CPU
7は常にほぼ最新のブロードキャストデータを参照可能
であるということができる。
From this fact, when the CPU 7 constantly outputs the reception memory switching request at a constant period that is not so long as the refresh period of the broadcast data,
It can be said that 7 can always refer to almost the latest broadcast data.

(発明が解決しようとする問題点) ここで、通信制御装置1'に付随するCPU7がコントロ
ーラ5の動作の監視や制御のみを行なうような分散処理
システムでは、CPU7は、ある事象が発生した場合や
コントローラ5の状態のロギングのために、通信回線4
を介して時々送られてくるブロードキャストデータを参
照すればよく、この場合には必要に応じて不定期に1回
だけ受信メモリ切替要求を出力すればよいことになる。
(Problems to be Solved by the Invention) Here, in a distributed processing system in which the CPU 7 attached to the communication control device 1 ′ only monitors and controls the operation of the controller 5, the CPU 7 operates when an event occurs. And communication line 4 for logging the status of controller 5
It is only necessary to refer to the broadcast data that is sent from time to time via the Internet, and in this case, the reception memory switching request may be output only once irregularly as needed.

しかしながら、従来の制御方式では、前述したようにC
PU7が常時一定周期で受信メモリ切替要求を出力して
いない限りほぼ最新のブロードキャストデータを参照す
ることは不可能であり、必要が生じた場合にのみ1回だ
け受信メモリ切替要求を出力する場合には、CPU7は
かなり以前の価値のないデータしか参照できない事態を
生じる。
However, in the conventional control method, as described above, C
It is impossible to refer to the most recent broadcast data unless the PU 7 always outputs the reception memory switching request at a constant cycle. When the PU 7 outputs the reception memory switching request only once when necessary. Causes a situation in which the CPU 7 can only refer to valuable data that has existed for a long time.

従って、従来にあっては、前述の分散処理システムのよ
うに必要に応じてブロードキャストデータを参照すれば
よいような場合でも、CPU7は一定周期で常時、通信
制御装置1'に対して受信メモリ切替要求を出力しなくて
はならず、CPU7の負荷が増大するという問題があっ
た。また、ブロードキャストデータを参照する場合に受
信メモリ切替要求を2回出力する方式においては、1回
目と2回目の切替要求の間隔として新たなブロードキャ
ストデータを受信するに十分な時間を設定しなくてはな
らず、応答性が著しく低下するという欠点を有してい
た。
Therefore, in the conventional case, even when the broadcast data may be referred to as needed as in the above-described distributed processing system, the CPU 7 constantly switches the reception memory to the communication control device 1 ′ at a constant cycle. There is a problem that the load on the CPU 7 increases because the request must be output. In addition, in the method of outputting the reception memory switching request twice when referring to the broadcast data, it is necessary to set a sufficient time for receiving new broadcast data as the interval between the first and second switching requests. However, it has a drawback that the responsiveness is significantly lowered.

更に、別の方式として、ブロードキャストデータの正常
な受信が完了した時点で通信制御装置1'自身が自発的に
受信メモリを切り替えてしまう方法も考えられるが、こ
れによるとCPU7の処理との同期がとれなくなり、C
PU7側でブロードキャストデータの2度読みが必要に
なるという問題が生じる。
Further, as another method, a method in which the communication control device 1 ′ itself switches the reception memory voluntarily when the normal reception of the broadcast data is completed is conceivable. I can't get it, C
There is a problem that the PU 7 side needs to read the broadcast data twice.

本発明は上記の問題点を解決するべく提案されたもの
で、その目的とするところは、CPUが必要に応じて切
替要求を1回だけ出力すれば、常にその時点での最新の
ブロードキャストデータを参照できるようにしてCPU
の負荷の軽減および応答性の向上を図った通信制御方式
を提供することにある。
The present invention has been proposed to solve the above problems, and an object of the present invention is to always output the latest broadcast data at that time if the CPU outputs a switching request only once as needed. CPU for reference
The purpose of the present invention is to provide a communication control method that reduces the load on the device and improves the responsiveness.

(問題点を解決するための手段) 上記目的を達成するため、本発明においては、まず、通
信制御装置内の受信領域内に受信データを格納するデー
タ受信バンクと、受信データの受信タイミングに応じて
最新の受信データを更新するデータ更新バンクと、CP
Uにより常時参照されるデータ参照バンクとをそれぞれ
設定する。
(Means for Solving the Problems) In order to achieve the above object, in the present invention, first, according to a data reception bank for storing reception data in a reception area in a communication control device and a reception timing of the reception data. And a data update bank that updates the latest received data
Data reference banks that are always referenced by U are set.

そして、受信バッファとして設けられた3バンクメモリ
内の各メモリをデータの受信タイミングに応じてデータ
受信バンク,データ更新バンクおよびデータ参照バンク
にそれぞれ交互に対応させ、CPUからの受信バンク切
替要求により前記データ更新バンクに対応するメモリを
データ参照バンクに切り替えて対応させ、当該メモリに
格納されている最新の受信データを参照するようにした
ことを特徴とする。
Then, each memory in the three-bank memory provided as a reception buffer is made to correspond to the data reception bank, the data update bank, and the data reference bank alternately according to the reception timing of data, and the above-mentioned is made by the reception bank switching request from the CPU. It is characterized in that the memory corresponding to the data update bank is switched to the data reference bank so as to correspond to the latest received data stored in the memory.

(作用) 本発明では、CPUが参照していない2つのバンク、す
なわちデータ受信バンクおよびデータ更新バンクにて常
時、データの受信および更新処理を行なって最新の受信
データが常にデータ更新バンクに対応するメモリに格納
されるようにし、必要に応じてCPUから出力される受
信バンク切替要求により、前記メモリをデータ参照バン
クに対応させることで最新の受信データの参照を可能と
している。
(Operation) In the present invention, the two banks not referred to by the CPU, that is, the data reception bank and the data update bank, always receive and update data, and the latest received data always corresponds to the data update bank. The latest received data can be referred to by storing the data in the memory and making the memory correspond to the data reference bank in response to the reception bank switching request output from the CPU when necessary.

(実施例) 以下、図に沿って本発明の実施例を説明する。第1図は
本発明を適用した通信制御装置1の概念図を示すもの
で、この実施例においてはブロードキャストデータの受
信バッファとして3バンクメモリ3を用いた点が第6図
の従来例と異なっている。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 shows a conceptual diagram of a communication control device 1 to which the present invention is applied. In this embodiment, a point that a 3 bank memory 3 is used as a reception buffer for broadcast data is different from the conventional example shown in FIG. There is.

すなわち、第1図において、3バンクメモリ3はメモリ
31〜33を備えており、これらのメモリ31〜33はブロード
キャストデータの受信タイミングに従ってその何れか1
つが通信回線4に接続され、また別の1つがシステムバ
ス6を介してCPU7に接続され、更に残りの1つが何
れにも接続されないようになっている。図示例ではいま
メモリ31が通信回線4に接続され、またメモリ33がシス
テムバス6に接続されているが、かかる接続構成は固定
的なものではない。
That is, in FIG. 1, the 3-bank memory 3 is a memory.
31-33, one of these memories 31-33 according to the reception timing of broadcast data.
One is connected to the communication line 4, another one is connected to the CPU 7 via the system bus 6, and the remaining one is not connected to any one. In the illustrated example, the memory 31 is now connected to the communication line 4 and the memory 33 is connected to the system bus 6, but such a connection configuration is not fixed.

なお、他の構成は第6図と同様であり、5は他のコント
ローラ、11はメモリ切替制御部、12は通信回線制御部、
13はシステムバス制御部、17は受信フラグをそれぞれ示
している。
The other configurations are the same as those in FIG. 6, 5 is another controller, 11 is a memory switching control unit, 12 is a communication line control unit,
Reference numeral 13 is a system bus control unit, and 17 is a reception flag.

次に、3バンクメモリ3の機能を第2図を参照しつつ説
明する。図において、Aは通信回線4に接続されて受信
データを格納するデータ受信バンク、Bはシステムバス
6に接続されてCPU7により受信データが参照される
データ参照バンク、Cは通信回線4およびシステムバス
6の何れにも接続されておらず、データ受信バンクA内
の最新の受信データを常時格納するデータ更新バンクを
それぞれ示す。ここで、前述したようにバンクA〜Cは
第1図のメモリ31,33,32に対応するものではない。
Next, the function of the 3-bank memory 3 will be described with reference to FIG. In the figure, A is a data reception bank connected to the communication line 4 for storing received data, B is a data reference bank connected to the system bus 6 and the received data is referred to by the CPU 7, and C is the communication line 4 and the system bus. 6 shows data update banks which are not connected to any of 6 and always store the latest received data in the data reception bank A. Here, as described above, the banks A to C do not correspond to the memories 31, 33 and 32 in FIG.

これらのバンクA〜において、バンクAには通信回線4
上のブロードキャストデータが必ず格納される。仮り
に、データの受信が正常に終了した場合には受信フラグ
17がセットされ、バンクAとバンクCとの間でバンク切
替300が行なわれる。ここでバンク切替とは、後述する
如くバンクAに対応するメモリをバンクCに対応させる
べく切り替えることをいう。
In these bank A to, bank A has a communication line 4
The above broadcast data is always stored. If the data reception ends normally, the reception flag
17 is set, and bank switching 300 is performed between bank A and bank C. Here, the bank switching means switching the memory corresponding to the bank A so as to correspond to the bank C as described later.

以後、新たなデータが通信回線4上に送られる毎にその
データはバンクAに格納され、受信が正常に終了した場
合には受信フラグ17がセットされ続ける。ここで、受信
フラグ17が予めセットされていれば、そのセット状態が
維持される。このように受信フラグ17がセットされてい
る状態では、必ずバンクCに対応するメモリにブロード
キャストデータが格納されている。
Thereafter, each time new data is sent to the communication line 4, the data is stored in the bank A, and the reception flag 17 is continuously set when the reception is normally completed. Here, if the reception flag 17 is set in advance, the set state is maintained. When the reception flag 17 is set in this manner, the broadcast data is always stored in the memory corresponding to the bank C.

一方、CPU7から受信バンク切替要求が通信制御装置
1に向けて出力された場合には、通信制御装置1は受信
フラグ17をチェックする。この時、受信フラグ17がセ
ットされていればバンクCとバンクBとの間でバンク切
替301を行い、受信フラグ17をクリアする。この処理に
より、バンクCに対応するメモリに格納されていた最新
のブロードキャストデータが、システムバス6に接続さ
れたバンクBに対応することとなり、CPU7によって
このデータを参照することが可能となる。
On the other hand, when the reception bank switching request is output from the CPU 7 to the communication control device 1, the communication control device 1 checks the reception flag 17. At this time, if the reception flag 17 is set, bank switching 301 is performed between the bank C and the bank B to clear the reception flag 17. By this processing, the latest broadcast data stored in the memory corresponding to the bank C corresponds to the bank B connected to the system bus 6, and the CPU 7 can refer to this data.

第3図は先に説明した第7図に対応するもので、3バン
クメモリ3の各メモリ31〜33におけるデータの更新状態
をタイミングチャートにて示したものである。図におい
て、ブロードキャストデータd1を受信するタイミング
において、第2図におけるバンクAがメモリ32に、バン
クBがメモリ31に、またバンクCがメモリ33にそれぞれ
対応する。データd1の受信が正常に終了すると、受信
フラグ17がセットされ、バンクA,Cに対応するメモリ
32,33間でバンク切替が行なわれる。そして、CPU7
から受信バンク切替要求が出力され、受信フラグ17のセ
ット状態を確かめてからバンクC,Bに対応するメモリ
33,31間でバンク切替が行なわれると共に受信フラグ17
がクリアされる。これにより、CPU7はバンクBのデ
ータd1を参照することができる。
FIG. 3 corresponds to FIG. 7 described above and is a timing chart showing a data update state in each of the memories 31 to 33 of the 3-bank memory 3. In the figure, at the timing of receiving the broadcast data d 1 , bank A in FIG. 2 corresponds to the memory 32, bank B corresponds to the memory 31, and bank C corresponds to the memory 33. When the reception of the data d 1 is completed normally, the reception flag 17 is set and the memory corresponding to the banks A and C is set.
Bank switching is performed between 32 and 33. And CPU7
The receiving bank switching request is output from the memory, the memory corresponding to the banks C and B is confirmed after confirming the set state of the receiving flag 17.
Bank switching between 33 and 31 and reception flag 17
Is cleared. As a result, the CPU 7 can refer to the data d 1 of the bank B.

以後同様に、データd1の後に送られてきたデータd2
受信するタイミングではバンクAがメモリ33に、また
データd3を受信するタイミングではバンクAがメモリ
31に対応し、同様にしてバンクB,Cに対応するメモ
リも順次変化していくものであるが、何れにしてもCP
U7からの受信バンク切替要求があれば、受信フラグ1
7をチェックした後に最新のデータd4,d7……等をバ
ンクBにて参照することができるものである。
Similarly, the bank A corresponds to the memory 33 when the data d 2 sent after the data d 1 is received, and the bank A corresponds to the memory 31 when the data d 3 is received. The memory corresponding to B and C also changes sequentially, but in any case CP
If there is a reception bank switching request from U7, reception flag 1
It is possible to refer to the latest data d 4 , d 7, ... Etc. in the bank B after checking 7.

次いで、第4図に基づき、この実施例における通信制御
装置1の構成を詳細に説明する。図において、3バンク
メモリ3のメモリ31〜33はそれぞれ同一のアドレスに重
なって割り付けられており、これらを各バンクA〜Cの
何れに対応させるかの選択制御はバンク切替制御部11が
行い、通信回線制御部12,システムバス制御部13および
CPU7はどのメモリ31〜33をアクセスしているかを意
識する必要はない。
Next, the configuration of the communication control device 1 in this embodiment will be described in detail with reference to FIG. In the figure, the memories 31 to 33 of the three-bank memory 3 are allocated so as to overlap with each other at the same address, and the bank switching control unit 11 performs selection control as to which of the banks A to C they correspond to. The communication line controller 12, the system bus controller 13, and the CPU 7 do not need to be aware of which memory 31-33 is being accessed.

通信回線制御部12は、通信回線4上のブロードキャスト
データを受信すると、システムバス制御部13および3バ
ンクメモリ3のアクセス権の排他制御を行なった後、3
バンクメモリ3に対して受信したブロードキャストデー
タの書き込みを行なう。また、14はバンク切替単位指定
部であり、このバンク切替単位指定部14は、3バンクメ
モリ3のアクセスされたアドレスからバンク切替を行な
う単位であるブロックのどこがアクセスされているかを
判定し当該ブロックのバンク切替情報を用意するように
バンク切替情報メモリ15にブロック番号を出力する。な
お、バンク切替単位指定部14は、前述の如く全体が1つ
の切替単位にて構成されている場合には不要となる。
When the communication line control unit 12 receives the broadcast data on the communication line 4, the communication line control unit 12 performs exclusive control of the access right of the system bus control unit 13 and the three-bank memory 3 and then
The received broadcast data is written to the bank memory 3. Further, reference numeral 14 is a bank switching unit designating unit, and this bank switching unit designating unit 14 judges from the accessed address of the three-bank memory 3 which of the blocks, which is a unit for performing bank switching, is being accessed. The block number is output to the bank switching information memory 15 so as to prepare the bank switching information. It should be noted that the bank switching unit designating section 14 is not necessary when the whole is configured by one switching unit as described above.

一方、バンク切替制御部11は、通信回線制御部12,シス
テムバス制御部13のうちの何れが3バンクメモリ3をア
クセスしているかをチェックすると共に、受信正常終了
100およびCPU7からの受信バンク切替要求101が出力
されているか否か等をチェックする。仮りに、受信正常
終了100が検出されれば、3バンクメモリ3のメモリ31
〜33のうちの何れかに選択信号を送出する。また、CP
U7からの受信バンク切替要求101が検出された場合に
は、新たなバンク切替情報を作成し、バンク切替情報メ
モリ15の内容を更新する。
On the other hand, the bank switching control unit 11 checks which one of the communication line control unit 12 and the system bus control unit 13 is accessing the three-bank memory 3, and normally terminates the reception.
It is checked whether 100 and the reception bank switching request 101 from the CPU 7 are output. If the normal reception end 100 is detected, the memory 31 of the 3-bank memory 3
Send a select signal to any of ~ 33. Also, CP
When the reception bank switching request 101 from U7 is detected, new bank switching information is created and the contents of the bank switching information memory 15 are updated.

次に、第5図にバンク切替情報メモリ15のフォーマット
を示す。このメモリ15はバンク切替状態情報16と前記受
信フラグ17とからなっており、バンク切替状態情報16
は、3バンクメモリ3のメモリ31〜33がそれぞれ第2図
におけるバンクA〜Cのどれに対応するかを表わすもの
である。
Next, FIG. 5 shows the format of the bank switching information memory 15. This memory 15 is composed of bank switching state information 16 and the reception flag 17, and the bank switching state information 16
Indicates that the memories 31 to 33 of the three bank memory 3 correspond to the banks A to C in FIG. 2, respectively.

なお、データを他の通信制御装置5に送信する場合の動
作については、第2図におけるバンクCが存在しないも
のとすれば、従来の2バンクメモリの場合の制御方式と
同一であるため、詳述を省略する。
Note that the operation when transmitting data to another communication control device 5 is the same as the control method in the case of the conventional two-bank memory, assuming that bank C in FIG. 2 does not exist. Omitted.

以上のように、この実施例においては、3バンクメモリ
3を用いることやバンク切替情報メモリ15等によってメ
モリ容量が増加すると共に、バンク切替制御部11の動作
が若干煩雑になるが、近年におけるメモリの価格低下を
背景として、メモリ容量の増加がハードウェアのコスト
アップの大きな要因となる心配はなく、また、バンク切
替情報メモリ15の更新処理や実際に選択されるメモリ31
〜33の選択シーケンスは一種の変換テーブルとみなすこ
とができ、ROM等によって簡単に実現可能であるた
め、本発明の有用性を損なうおそれはない。
As described above, in this embodiment, the memory capacity increases due to the use of the three-bank memory 3 and the bank switching information memory 15 and the like, and the operation of the bank switching control unit 11 becomes slightly complicated. There is no concern that the increase in memory capacity will be a major factor in increasing the cost of hardware against the background of the price decrease of the bank switching information memory 15 and the memory 31 actually selected.
The selection sequences of ~ 33 can be regarded as a kind of conversion table, and can be easily realized by a ROM or the like, so that the usefulness of the present invention is not impaired.

(発明の効果) 以上詳述したように本発明によれば、3バンクメモリを
データ受信バンク、データ更新バンクおよびデータ参照
バンクにそれぞれ対応させ、CPUが参照していないデ
ータ受信バンク、データ更新バンクを使用してデータの
受信および更新処理を行なうようにしたから、CPU
は、必要に応じて受信バンク切替要求を出力すればデー
タ参照バンクにて常に最新の受信データを参照すること
ができる。
(Effects of the Invention) As described in detail above, according to the present invention, the three-bank memory is made to correspond to the data reception bank, the data update bank, and the data reference bank, respectively, and the data reception bank and the data update bank not referred to by the CPU. Is used to receive and update data, the CPU
Can output the reception bank switching request as necessary to always refer to the latest reception data in the data reference bank.

従って、通信制御装置を分散処理システム等に用いた場
合には、従来の如くCPUが常に切替要求を出力すると
いった無駄は処理が不要となり、CPUの負荷の軽減、
処理能力の向上を図ることができる。
Therefore, when the communication control device is used in a distributed processing system or the like, there is no need for wasteful processing such that the CPU always outputs a switching request as in the conventional case, and the load on the CPU is reduced.
The processing capacity can be improved.

また、従来の如くデータを受信してからこれをCPUが
参照できるまでの遅れ時間を短縮することができ、応答
性を向上させることが可能である。
In addition, it is possible to shorten the delay time from when the data is received until the CPU can refer to the data as in the conventional case, and it is possible to improve the responsiveness.

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

第1図は本発明が適用される通信制御装置の一実施例を
示す概略的なブロック図、第2図は3バンクメモリの概
念説明図、第3図は受信データのタイミングに応じてC
PUが参照できるデータを説明するためのタイミングチ
ャート、第4図は通信制御装置の詳細な構成を示すブロ
ック図、第5図はバンク切替情報メモリのフォーマット
の説明図、第6図は従来例を示す通信制御装置のブロッ
ク図、第7図は同じく受信データのタイミングに応じて
CPUが参照できるデータを説明するためのタイミング
チャートである。 1…通信制御装置、3…3バンクメモリ 31,32,33…メモリ、4…通信回線 7…CPU、A…データ受信バンク B…データ更新バンク、C…データ参照バンク
FIG. 1 is a schematic block diagram showing an embodiment of a communication control device to which the present invention is applied, FIG. 2 is a conceptual explanatory diagram of a 3-bank memory, and FIG. 3 is a C diagram according to the timing of received data.
A timing chart for explaining data that can be referred to by a PU, FIG. 4 is a block diagram showing a detailed configuration of a communication control device, FIG. 5 is an explanatory diagram of a format of a bank switching information memory, and FIG. 6 is a conventional example. FIG. 7 is a block diagram of the communication control device shown, and FIG. 7 is a timing chart for explaining the data that can be referred to by the CPU according to the timing of the received data. 1 ... Communication control device, 3 ... 3 bank memory 31, 32, 33 ... Memory, 4 ... Communication line 7 ... CPU, A ... Data receiving bank B ... Data update bank, C ... Data reference bank

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】通信回線を介して他の通信設備との間でデ
ータを送・受信し、かつ受信データをCPUからの要求
により参照可能とした通信制御装置において、 前記通信制御装置内の受信領域内に受信データを格納す
るデータ受信バンクと、受信データの受信タイミングに
応じて最新の受信データを更新するデータ更新バンク
と、前記CPUにより常時参照されるデータ参照バンク
とをそれぞれ設定すると共に、前記受信領域内に設けら
れた3つのメモリを前記受信タイミングに応じてデータ
受信バンク,データ更新バンクおよびデータ参照バンク
にそれぞれ交互に対応させ、前記CPUからの受信バン
ク切替要求により前記データ更新バンクに対応するメモ
リを前記データ参照バンクに切り替えて対応させ、当該
メモリ内の前記最新の受信データを参照するようにした
ことを特徴とする通信制御装置における受信データの制
御方式。
1. A communication control device capable of transmitting / receiving data to / from another communication facility via a communication line and making it possible to refer to the received data by a request from a CPU, the reception in the communication control device. A data reception bank for storing reception data in the area, a data update bank for updating the latest reception data according to the reception timing of the reception data, and a data reference bank constantly referred to by the CPU are set, and The three memories provided in the reception area are made to correspond to the data reception bank, the data update bank, and the data reference bank alternately according to the reception timing, and the data update bank is set to the data update bank in response to the reception bank switching request from the CPU. The corresponding memory is switched to the data reference bank to make it correspond to the latest reception data in the memory. A method of controlling received data in a communication control device, characterized in that the data is referred to.
JP61138796A 1986-06-14 1986-06-14 Control method of reception data in communication control device Expired - Fee Related JPH063591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61138796A JPH063591B2 (en) 1986-06-14 1986-06-14 Control method of reception data in communication control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61138796A JPH063591B2 (en) 1986-06-14 1986-06-14 Control method of reception data in communication control device

Publications (2)

Publication Number Publication Date
JPS62295157A JPS62295157A (en) 1987-12-22
JPH063591B2 true JPH063591B2 (en) 1994-01-12

Family

ID=15230424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61138796A Expired - Fee Related JPH063591B2 (en) 1986-06-14 1986-06-14 Control method of reception data in communication control device

Country Status (1)

Country Link
JP (1) JPH063591B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6500257B1 (en) 1998-04-17 2002-12-31 Agilent Technologies, Inc. Epitaxial material grown laterally within a trench and method for producing same
JP2011039698A (en) * 2009-08-07 2011-02-24 Sanyo Electric Co Ltd Arithmetic processor

Also Published As

Publication number Publication date
JPS62295157A (en) 1987-12-22

Similar Documents

Publication Publication Date Title
JPH07112201B2 (en) Method and apparatus for assigning addresses to remote terminals in a LAN
JPH063591B2 (en) Control method of reception data in communication control device
JPH06274463A (en) Data communication system
KR20010102481A (en) Method and apparatus for the block transfer of data
JP2002297210A (en) Data transmitter
JP3016788B2 (en) Device communication / cache matching processing method
JPH0323026B2 (en)
JPH0115900B2 (en)
JPH06351079A (en) Repeating communication equipment for air conditioner
JP2853607B2 (en) Communication system between jobs
JPS6028459B2 (en) Data transmission method
JPH03228162A (en) Unit number setting system
JPH0439938B2 (en)
JP2944193B2 (en) Data receiving device
JP2980163B2 (en) Data transfer method
US20020026565A1 (en) A method and apparatus for controlling memory access by a plurality of devices
JPH063938B2 (en) Data transfer buffer system
JPS60258638A (en) Control system of magnetic disk device
JPH0245208B2 (en) BASUKETSUGOSHISUTEMUNODEETATENSOSEIGYOHOSHIKI
JPH0314279B2 (en)
JPH04107595A (en) Display system
JPH10240317A (en) Module device
JPH05143498A (en) Method for coping with communication fault in distributed system
JPH10210085A (en) Data transmission controller
JPH063937B2 (en) Data transfer method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees