JPS6342546A - Communication control equipment - Google Patents

Communication control equipment

Info

Publication number
JPS6342546A
JPS6342546A JP61186670A JP18667086A JPS6342546A JP S6342546 A JPS6342546 A JP S6342546A JP 61186670 A JP61186670 A JP 61186670A JP 18667086 A JP18667086 A JP 18667086A JP S6342546 A JPS6342546 A JP S6342546A
Authority
JP
Japan
Prior art keywords
transmission
character
line
memory
control unit
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.)
Granted
Application number
JP61186670A
Other languages
Japanese (ja)
Other versions
JPH06105923B2 (en
Inventor
Yoshinobu Ikeda
池田 義伸
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 JP61186670A priority Critical patent/JPH06105923B2/en
Publication of JPS6342546A publication Critical patent/JPS6342546A/en
Publication of JPH06105923B2 publication Critical patent/JPH06105923B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To connect a high-speed line adapter by writing transmission data, which consists of a prescribed number of characters including an effective display flag for each character, in the first memory from a common control part and providing a means which transfers transmission data, which indicates that the effective display flag is effective, for each character to the line adapter connected to the first memory. CONSTITUTION:In case of transmission, a command is written in a command register of a line adapter 2-1 through a bidirectional driver 13-1 when the command of transmission control is transmitted from a line common control part 3 to a FIFO control part 1-1 through a data bus 200. An FSTR 14-1 consists of 5 bits, namely, the bit of transmission character request from the FIFO control part 1-1 to the line common control part 3, the bit of reception character acceptance request, the bit of transmission/reception interrupt request where the transmission/reception interrupt from the line adapter 2-1 is displayed as it is, the bit of reception interrupt request, and the bit of peripheral interrupt request, and the line common control part 3 reads out contents of the FSTR 14-1, and the control part 3 writes continuously 4-byte transmission data in a transmission FIFO memory 11-1 together with the effective display flag if the bit of transmission character request is turned on.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、通信制御装置の仕様変更の対応手段に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to means for responding to changes in specifications of a communication control device.

〔概要〕〔overview〕

本発明は、回線共通制御部で回線アダプタと上位装置と
の間の経路が設定される通信制御装置において、 回線共通制御部と回線アダプタとの間に先入れ先出しメ
モリを挿入することにより、 回線アダプタの仕様変更にかかわる/’t−ドウエアの
変更を最小限にとどめることができるようにしたもので
ある。
The present invention provides a communication control device in which a route between a line adapter and a higher-level device is set by a line common control unit, by inserting a first-in, first-out memory between the line common control unit and the line adapter. This makes it possible to minimize changes in the /'t-ware related to specification changes.

(従来の技術) この種の通信制御装置は、回線共通制御部が複数の回線
アダプタからの処理要求を順次スキャンし、処理要求が
あれば該当する回線アダプタに対し送信データの送出、
受信データの引取り、回線制御コマンドの送出および回
線状態レジスタの読出しなどを行い、複数の回線を一括
管理する。
(Prior Art) In this type of communication control device, a line common control unit sequentially scans processing requests from multiple line adapters, and if there is a processing request, sends transmission data to the corresponding line adapter.
It manages multiple lines at once by receiving received data, sending line control commands, reading line status registers, etc.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

したがって高速の回線アダプタを実装した場合あるいは
回線アダプタを多数実装した場合は、その都度回線共通
制御部を設計し直して処理能力を増強するか、回線共通
制御部と回線アダプタを接続するバスのビット幅を広く
する必要があった。
Therefore, when a high-speed line adapter or a large number of line adapters are installed, it is necessary to redesign the line common control unit each time to increase the processing capacity, or to increase the processing capacity of the bus that connects the line common control unit and the line adapters. It needed to be wider.

本発明は、このような欠点を除去するもので、ハードウ
ェアの変更を最小限にとどめることのできる通信制御装
置を提供することを目的とする。
The present invention aims to eliminate such drawbacks and to provide a communication control device that can minimize changes in hardware.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、複数の通信回路のそれぞれに接続された回線
アダプタと、上位装置とこの回線アダプタとの間の経路
を設定する回線共通制御部とを備えた通信制御装置にお
いて、上記回線共通制御部と上記回線アダプタとの間の
送信経路に挿入された先入れ先出しメモリである第一の
メモリと、上記回線共通制御部と上記回線アダプタとの
間の受信経路に挿入された先入れ先出しメモリである第
二のメモリと、上記第一および第二のメモリを制御する
制御手段とを備えたことを特徴とする。
The present invention provides a communication control device including a line adapter connected to each of a plurality of communication circuits and a line common control unit that sets a route between a host device and the line adapter. a first memory that is a first-in, first-out memory inserted in a transmission path between the line common controller and the line adapter; and a second memory that is a first-in, first-out memory that is inserted in a reception path between the line common control unit and the line adapter. The device is characterized by comprising a memory and control means for controlling the first and second memories.

上記制御手段は、送信データの1キャラタごとに有効表
示フラグを含む所定キャラクタ数の送信データを上記共
通制御部から上記第一のメモリに書込み、有効フラグが
有効であることを示す送信データを1キャラクタごとに
このメモリに接続された回線アダプタに転送する手段と
、受信データの1キャラクタごとに付された有効表示フ
ラグと共に受信データを1キャラクタごとに上記第二の
メモリに書込み、この第二のメモリに所定のキャラクタ
数がスタックされたときに、有効表示フラグが有効であ
ることを示す受信データを1キャラクタごとに上記回線
共通制御部に転送する手段とを有してもよい。
The control means writes a predetermined number of transmission data including a valid display flag for each character of the transmission data from the common control unit to the first memory, and writes one transmission data indicating that the validity flag is valid. A means for transferring each character to a line adapter connected to this memory, and writing the received data character by character to the second memory together with a valid display flag attached to each character of the received data. It may also include means for transmitting received data indicating that the validity display flag is valid, character by character, to the line common control unit when a predetermined number of characters are stacked in the memory.

また、上記制御手段は、lキャラタの送信制御情報を含
む所定キャラクタ数の送信データを上記回線共通制御部
から上記第一のメモリに書込み、送信制御情報が有効で
あることを示す送信データを1キャラクタごとにこのメ
モリに接続された回線アダプタに転送する手段と、受信
データを1キャラクタごとに上記第二のメモリに書込み
、この第二のメモリに所定のキャラクタ数がスタックさ
れたときに、lキャラクタの受信制御情報を含む受信デ
ータを上記回線共通制御部に転送する手段とを有しても
よい。
Further, the control means writes transmission data of a predetermined number of characters including transmission control information of 1 character from the line common control unit to the first memory, and writes transmission data of 1 character indicating that the transmission control information is valid. A means for transferring each character to a line adapter connected to this memory, and a means for writing received data character by character to the second memory, and when a predetermined number of characters are stacked in this second memory, l. It may also include means for transferring received data including character reception control information to the line common control section.

〔作用〕 第一実施例では、送信時には、送信制御情報を含めて予
め定めた一定のキャラクタ数の送信データを連続して回
線共通制御部から送信FIFOへ転送し、回線アダプタ
からの送信要求がある毎に送信制御情報に従って送信F
IFOメモリから1キャラクタずつ取り出して回線アダ
プタへ転送する。
[Operation] In the first embodiment, at the time of transmission, transmission data of a predetermined number of characters including transmission control information is continuously transferred from the line common control unit to the transmission FIFO, and a transmission request from the line adapter is received. Transmit F according to the transmission control information every time
Extract each character from the IFO memory and transfer it to the line adapter.

また、受信時には回線アダプタからの受信要求がある毎
に回線アダプタから1キャラクタを読出し、受信FIF
Oメモリにスタックし、受信FIFOメそりにあらかじ
め定めた一定のキャラクタ数の受信データがスタックさ
れると、回線共通制御部に受信データと受信制御情報を
順次連続して引取らせる。
Also, during reception, each time there is a reception request from the line adapter, one character is read out from the line adapter, and the reception FIF
When received data of a predetermined number of characters are stacked in the O memory and received data of a predetermined number of characters are stacked in the receive FIFO memory, the line common control unit is made to sequentially and continuously receive the received data and reception control information.

第二実施例では、送信時には、送信データにキャラクタ
単位の有効表示フラグを付加し、あらかじめ定めた一定
のキャラクタ数の送信データを連続して回線共通制御部
から送信FIFOメモリへ転送し、回線アダプタからの
送信要求がある毎に送信FIFOメモリから1キャラク
タずつ取り出して、有効表示フラグに基づいて有効キャ
ラクタのみを回線アダプタへ転送する。
In the second embodiment, at the time of transmission, a valid display flag for each character is added to the transmission data, and the transmission data of a predetermined number of characters is continuously transferred from the line common control unit to the transmission FIFO memory, and the line adapter Each time there is a transmission request from the transmission FIFO memory, one character is taken out from the transmission FIFO memory, and only the valid characters are transferred to the line adapter based on the validity display flag.

また、受信時には、回線アダプタからの受信要求がある
毎に回線アダプタから1キャラクタを読出し、受信FI
FOメモリに有効表示フラグを付加してスタックし、受
信FIFOメそりに予め定めた一定のキャラクタ数の受
信データがスタックされると、回線共通制御部に受信デ
ータを順次連続して引取らせる。
Also, during reception, each time there is a reception request from the line adapter, one character is read out from the line adapter, and the reception FI
When a valid display flag is added to the FO memory and received data of a predetermined number of characters is stacked in the receive FIFO memory, the line common control unit is made to sequentially and continuously receive the received data.

〔実施例〕〔Example〕

以下、本発明実施例を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.

第1図は本発明の一実施例の構成を示すブロック構成図
である。この実施例装置は、マイクロプロセッサ(以下
、MPという。)6と、回線毎に送受信データを一時保
持すると共にマイクロプログラムを格納するメモリであ
るバッファメモリ (以下、BMという。)5と、図外
の上位装置のメインメモリと8M5とのデータ転送制御
を行うインタフェース制御部(以下、IFCという。)
4と、回線対応の送信FIFOメモリと受信FIFOメ
モリを含むFIFO制御部1−1ないし1−8と、回線
アダプタ2−1ないし2−8と、MP6の指示により8
M5とFIFO制御部1−1ないし1−8との送受信制
御を行う回線共通制御部3と、プロセッサバス100と
、回線共通制御部3とF t F oill?31部1
−1ないし1−8とを接続するデータバス200と、F
IFO制御部1−1ないし1−8とそれぞれ対応する回
線アダプタを接続するデータバス300−1ないし30
0−8とを備える。ここでは、F I F O*Ji!
It部1−2ないし1−8および回線アダプタ2−2な
いし2−8は、それぞれFIFO制御部1−1および回
線アダプタ2−1 と同一の機能である。
FIG. 1 is a block configuration diagram showing the configuration of an embodiment of the present invention. This embodiment device includes a microprocessor (hereinafter referred to as MP) 6, a buffer memory (hereinafter referred to as BM) 5, which is a memory that temporarily holds transmitted and received data for each line and stores a microprogram. An interface control unit (hereinafter referred to as IFC) that controls data transfer between the main memory of the host device and the 8M5.
4, FIFO controllers 1-1 to 1-8 including line-compatible transmission FIFO memory and reception FIFO memory, line adapters 2-1 to 2-8, and
A line common control unit 3 that controls transmission and reception between M5 and FIFO control units 1-1 to 1-8, a processor bus 100, a line common control unit 3, and F t F oil? 31 part 1
-1 to 1-8, and a data bus 200 connecting F
Data buses 300-1 to 300 connect IFO control units 1-1 to 1-8 and corresponding line adapters, respectively.
0-8. Here, F I F O*Ji!
It sections 1-2 to 1-8 and line adapters 2-2 to 2-8 have the same functions as FIFO control section 1-1 and line adapter 2-1, respectively.

次に、第一の実施例装置の動作を第1図ないし第4図に
基づいて説明する。上位装置からの起動によってIFC
4はそのメインメモリから制御語を続出し解読し、メイ
ンメモリから8M5あるいは8M5からメインメモリへ
のデータ転送を行う。
Next, the operation of the apparatus of the first embodiment will be explained based on FIGS. 1 to 4. IFC by starting from the host device
4 sequentially reads and decodes control words from its main memory, and transfers data from the main memory to 8M5 or from 8M5 to the main memory.

MP6は8MS上のマイクロプログラムを実行し、IF
C4あるいは回線共通制御部3からの処理要求を受付け
、IFC4あるいは回線共通制御部3へ制御コマンドを
発行する。またMP6は8MS上に設けられた各回線対
応の送受信バッファ領域の管理を行う。回線共通制御部
3はMP6からの制御コマンドによって起動される。
MP6 executes the microprogram on 8MS, and the IF
It accepts processing requests from the C4 or line common control unit 3, and issues control commands to the IFC4 or line common control unit 3. Furthermore, the MP6 manages the transmitting and receiving buffer area corresponding to each line provided on the 8MS. The line common control unit 3 is activated by a control command from the MP6.

送信の場合は、送信の準備を行うコマンドを受領してF
IFO制御部1−1および回線アダプタ2−1の送信部
を初期設定し、あらかじめ8MS上に設定された制御語
を読出し解読して、送信のD M A制御レジスタに送
信データの転送開始アドレスおよび転送バイト数を設定
する。回線共通制御部3は回線スキャン中にF I F
 O*j?i1部1−1からの送信要求を検出すると、
送信のDMAa御レジ入レジスタて8M5から4バイト
読出して先頭に制御情報として送信制御情報を付加し、
1バイトずつ5バイト連続してデータバス200を介し
てFIFO制御部1−1に転送し、DMA制御レジスタ
と転送バイト数のカウンタを更新する。同様に、送信要
求がある毎に5バイト連続してFIFO制御部1−1に
データを送出し、送信終了時はMP6に処理要求を行う
For sending, receive the command to prepare for sending and press F.
Initialize the IFO control unit 1-1 and the transmission unit of the line adapter 2-1, read and decode the control word set in advance on 8MS, and write the transmission data transfer start address and the transmission data into the transmission DMA control register. Set the number of bytes to transfer. The line common control unit 3 performs F I F during line scanning.
O*j? When a transmission request from i1 unit 1-1 is detected,
Read 4 bytes from 8M5 in the DMAa register for transmission, add transmission control information as control information to the beginning,
Five bytes are successively transferred one byte at a time to the FIFO control unit 1-1 via the data bus 200, and the DMA control register and transfer byte number counter are updated. Similarly, every time there is a transmission request, five consecutive bytes of data are sent to the FIFO control unit 1-1, and when the transmission ends, a processing request is made to the MP6.

一方、受信の場合は、受信の準備を行うコマンドをMP
6から受領してFIFO制御部1−1および回線アダプ
タ2−1の受信部を初期設定し、8MS上の受信バッフ
ァの書込み開始アドレスを要求し、確保した書込み開始
アドレスを受信のDMA制御レジスタに設定する。回線
共通制御部3は回線スキャン中にFIFO制御部1−1
から受信要求を検出すると、PIFOf?JI御部1−
1から1バイトずつ5バイト連続して読出し、受信のD
MA制御レジスタおよび受信制御情報に従って8M5に
受信データを書込み、DMA制御レジスタは更新される
。FIFO制御部1−1から受信要求がある毎にDMA
w1′4TJレジスタを更新しながら8MS上に受信デ
ータを蓄積してゆき、受信終了時はMP6に処理要求を
行う。
On the other hand, in the case of reception, the command to prepare for reception is sent to MP.
6, initializes the FIFO control unit 1-1 and the receiving unit of line adapter 2-1, requests the write start address of the receive buffer on 8MS, and writes the secured write start address to the receive DMA control register. Set. The line common control unit 3 uses the FIFO control unit 1-1 during line scanning.
When a reception request is detected from PIFOf? JI Gobe 1-
Read 5 bytes continuously from 1 byte at a time, receive D
The received data is written to 8M5 according to the MA control register and reception control information, and the DMA control register is updated. DMA every time there is a reception request from the FIFO control unit 1-1.
The received data is accumulated on the 8MS while updating the w1'4TJ register, and upon completion of reception, a processing request is made to the MP6.

すなわち、送信の場合は、IFC4を介して上位装置か
ら8M5に送信データが一時蓄積され、さらに回線共通
制御部3により8M5からFIFO制御部lへ転送され
る。また、受信の場合は、FIFO制御部lからの受信
データは回線共通制御部3によって8MS上に一時蓄積
され、IFC4によって上位のメインメモリに転送され
る。
That is, in the case of transmission, transmission data is temporarily stored in the 8M5 from the host device via the IFC 4, and is further transferred from the 8M5 to the FIFO control unit l by the line common control unit 3. In the case of reception, the received data from the FIFO control unit 1 is temporarily stored on 8MS by the line common control unit 3, and transferred to the upper main memory by the IFC 4.

次に、本発明の特徴であるFIFO制御部について説明
する。第2図はFIFO制御部1−1のブロック図であ
り、第3図および第4図は送信制御情報(以下、TBP
という。)および受信制御情報(以下、RBPという。
Next, the FIFO control unit, which is a feature of the present invention, will be explained. FIG. 2 is a block diagram of the FIFO control unit 1-1, and FIGS. 3 and 4 are transmission control information (hereinafter referred to as TBP)
That's what it means. ) and reception control information (hereinafter referred to as RBP).

)のフォーマット図である。このFIFO?blJ御部
1−1は送体部1FOメモ1月1−1と、受信FIFO
メモ1月2−1と、双方向ドライバ13−1と、送信F
IFOメモリ11−1から読出したTBPを保持するレ
ジスタ(以下、TBPRという。) 16−1と、受信
FIFOメモリ12−1にRBPを書込むレジスタ(以
下、RBPRという、)17−1と、FIFO制御部1
−1のステータスレジスタ(以下、FSTRという。)
 14−1と、回線アダプタ2−1のステータスを読出
して保持するレジスタ(以下、LSTRという。)15
〜lと、制御回路18−1と、回線共通制御部3への割
込み要求vA400−1と、回線アダプタ2−1からの
割込み要求!500−1と、最終キャラクタを送出した
ことを回線アダプタ2−1に指示するコマンド書込み線
600−1とを備える。
) is a format diagram. This FIFO? blJ control section 1-1 has sending section 1FO memo January 1-1 and receiving FIFO
Memo January 2-1, bidirectional driver 13-1, and sending F
A register (hereinafter referred to as TBPR) 16-1 that holds the TBP read from the IFO memory 11-1, a register (hereinafter referred to as RBPR) 17-1 that writes the RBP to the receiving FIFO memory 12-1, and a FIFO Control part 1
-1 status register (hereinafter referred to as FSTR)
14-1, and a register (hereinafter referred to as LSTR) 15 that reads and holds the status of the line adapter 2-1.
~l, the control circuit 18-1, the interrupt request vA400-1 to the line common control unit 3, and the interrupt request from the line adapter 2-1! 500-1, and a command write line 600-1 for instructing the line adapter 2-1 that the final character has been sent.

回線共通制御部3からの送信データおよびTBPと回線
共通制御8部3への受信データおよびRBPとはそれぞ
れ送信FIFOメモリ11−1および受信FIFOメモ
リ12−1にそれぞれスタックされるが、これら以外の
制御情報は、双方向ドライバ13−1を介して回線共通
制御部3が回線アダプタ2−1に直接にリードまたはラ
イトする。
The transmission data and TBP from the line common control unit 3 and the reception data and RBP to the line common control unit 8 3 are stacked in the transmission FIFO memory 11-1 and the reception FIFO memory 12-1, respectively, but other than these The line common control unit 3 directly reads or writes the control information to the line adapter 2-1 via the bidirectional driver 13-1.

まず、送信の場合について説明する。回線共通制御部3
からFIFO制御部1−1へデータバス200を介して
送信制御部のコマンドが送出されると、双方向ドライバ
13−1を介して回線アダプタ2−1へ書込まれ、この
回線アダプタ2−1を送信状態にすると共に図外の制御
回路により送信の割込みマスクが解除され、送信FIF
Oメモリ11−1の残りのバイト数が5バイト以上あれ
ば、すなわち、送信データ4バイトおよびTBPIバイ
ト分の書込みが可能であれば、FSTR14−1の送信
キャラクタ要求ビットをオン(論理「l」)にする。回
線共通制御部3はFIFO制御部1−1ないし1−8を
スキャンしており、FIFO制御部1−1のスキャンで
割込み要求線400−1により割込みを検出すると、回
線共通制御部3はFSTR14−1を読出す。このF 
S T R14−1ニは、FIFO制御部1−1から回
線共通制御部3への送信キャラクタ要求ビットと、受信
キャラクタ引取り要求ビットと、回線アダプタ2−1か
らの送受信割込みをそのまま表示する送信割込み要求ビ
ットと、受信割込み要求ビア)と、周辺割込み要求ビッ
トとの5ビツトからなり、回線共通制御部3はFSTR
14−1を読出して送信キャラクタ要求ビットがオンで
あれば、TBPと送信データとを連続して5バイト送信
FIFOメモリ11−1に書込む。送信FIFOメモリ
11−1には、TBP、TCROlTCRI、−1TC
R3の順に送信データが書込まれる。TBPのBOがオ
ンの場合はTCROが有効な送信キャラクタであること
を示し、BOがオフの場合はTCROが無効データであ
ることを示す。同様に、BlとTCRlが対応し、B2
とTCR2が対応し、B3とTCR3に対応する。
First, the case of transmission will be explained. Line common control unit 3
When a command from the transmission control section is sent from the FIFO control section 1-1 to the FIFO control section 1-1 via the data bus 200, it is written to the line adapter 2-1 via the bidirectional driver 13-1. At the same time, the control circuit (not shown) cancels the transmission interrupt mask, and the transmission FIF
If the remaining number of bytes in the O memory 11-1 is 5 or more, that is, if it is possible to write 4 bytes of transmission data and TBPI bytes, turn on the transmission character request bit of the FSTR 14-1 (logic "L"). ). The line common control unit 3 scans the FIFO control units 1-1 to 1-8, and when an interrupt is detected on the interrupt request line 400-1 during scanning of the FIFO control unit 1-1, the line common control unit 3 -1 is read. This F
STR14-1D is a transmitter that directly displays the transmission character request bit from the FIFO control unit 1-1 to the line common control unit 3, the reception character withdrawal request bit, and the transmission/reception interrupt from the line adapter 2-1. It consists of 5 bits: an interrupt request bit, a receive interrupt request via), and a peripheral interrupt request bit.
14-1 and if the transmission character request bit is on, TBP and transmission data are successively written into the 5-byte transmission FIFO memory 11-1. The transmission FIFO memory 11-1 includes TBP, TCROlTCRI, -1TC
Transmission data is written in the order of R3. When BO of TBP is on, it indicates that TCRO is a valid transmission character, and when BO is off, it indicates that TCRO is invalid data. Similarly, Bl and TCRl correspond, and B2
and TCR2 correspond to B3 and TCR3.

次に、回線アダプタ2−1から割込み要求線500−1
を介してF I F Oili?21部1−1に割込み
要求があると、回線アダプタ2−1のステータスレジス
タを読出しLSTR15−1に保持する。回線アダプタ
2−1のステータスには、送信キャラクタ要求ビット、
受信キャラクタ引取り要求ビット、送信割込みビット、
受信割込みビットおよび周辺割込みビットからなるが、
送信割込みビット、受信割込みビットおよび周辺割込み
ビットはLSTR15−1に読出すときと同時にFST
R14−1にもセットされる。
Next, from the line adapter 2-1 to the interrupt request line 500-1
Via F I F Oili? When the 21 section 1-1 receives an interrupt request, the status register of the line adapter 2-1 is read out and held in the LSTR 15-1. The status of line adapter 2-1 includes the transmission character request bit,
Receive character takeover request bit, transmission interrupt bit,
Consists of receive interrupt bits and peripheral interrupt bits.
The transmit interrupt bit, receive interrupt bit, and peripheral interrupt bit are read out to the FST at the same time as they are read to LSTR15-1.
It is also set in R14-1.

送信FIFOメモリ11−1に1バイト以上スタックさ
れていてかつLSTR15−1に送信キャラクタ要求ビ
ットがセントされていると、制御回路18−1によって
送信FIFOメモリ11−1から1バイト読出しTBP
R16−1にセットし、TBPR16−1にセットされ
たTBPのBOがオンであれば、送信FIFOメモリ1
1−1から1バイト (TCRO)続出し、データバス
300−1を介して回線アダプタ2−1の送信キャラク
タレジスタに書込み、L S T R15−1の送信キ
ャラクタ要求ビットをリセットして送信動作を終了する
。ここで、TBPのBOがオフであれば、送信FIFO
メモリ11−1からTCROの空読出しを行い、TBP
の81がオンであれば、さらに1バイトTCRIを読出
して回線アダプタ2−1の送信キャラクタレジスタに書
込む。この動作では、TBPのBOないしB3まで順次
調べ、オンのBiに対応するTCRiを回線アダプタへ
送出するようT CRi−1まで空読みする。同様にし
て、さらに回線アダプタ2−1から割込み要求をLST
R15−1に読出すと、送信FIFOメモリ11−1か
ら順次T CRi+1を読出してTCR3になるまで回
線アダプタ2−1に送信データを送出し、TCR3が送
出されると次はTBPがTBPR16−1に読出され、
前記動作を繰り返す。
If 1 byte or more is stacked in the transmission FIFO memory 11-1 and a transmission character request bit is sent to the LSTR 15-1, the control circuit 18-1 reads 1 byte from the transmission FIFO memory 11-1 TBP.
If set to R16-1 and BO of TBP set to TBPR16-1 is on, transmit FIFO memory 1
One byte (TCRO) is generated one after another from 1-1 and written to the transmission character register of line adapter 2-1 via data bus 300-1, and the transmission character request bit of LST R15-1 is reset to start the transmission operation. finish. Here, if the TBP BO is off, the transmit FIFO
Performs an empty read of TCRO from memory 11-1 and sets TBP
If 81 is on, 1 byte TCRI is further read out and written to the transmission character register of line adapter 2-1. In this operation, BO to B3 of the TBP are checked sequentially, and up to TCRi-1 is read blankly so as to send TCRi corresponding to Bi turned on to the line adapter. Similarly, an interrupt request is sent from line adapter 2-1 to LST.
When read to R15-1, TCRi+1 is sequentially read from the transmission FIFO memory 11-1, and the transmission data is sent to the line adapter 2-1 until TCR3 is sent. When TCR3 is sent, TBP is then changed to TBPR16-1. is read out,
Repeat the above operation.

この一連の送信動作で、T B P R16−1に読出
されたTBPに従って回線アダプタへ順次送信キャラク
タを送出して有するTBPのBi以降B3まで全てオフ
の場合は、Biに対するTCRIからTCR3までは送
信FIFOメモリから空読出しを行って送信FIFOメ
モ1月1−1から取り去る。
In this series of transmission operations, transmission characters are sequentially sent to the line adapter according to the TBP read in TBP R16-1, and if all of the TBPs from Bi to B3 are off, the characters from TCRI to TCR3 for Bi are not transmitted. A blank read is performed from the FIFO memory and removed from the transmit FIFO memo January 1-1.

また、TBPR16〜lにセットされたTBPのEOC
ビフトがオンの場合は、TBPのBOからB3まで送信
キャラクタの送出または空読みを行った後に、回線アダ
プタ2−1に書込み線600−1および300−1を介
して送信終了のコマンドを送出する。
Also, the EOC of TBP set to TBPR16~l
When Bift is on, after sending or empty reading the transmission characters from BO to B3 of TBP, sends a transmission end command to line adapter 2-1 via write lines 600-1 and 300-1. .

また、制御回路により回線共通制御部3から送信FIF
Oメモ1月1−1に書込むバイト数、すなわち「0」な
いし「4」をカウントしており、このカウント値がrO
Jの場合はTBPが送信FIFOメモリ11−1に書込
まれるタイミングであり、このTBPのEOCビットを
調査してオンであれば、前述の送信割込みマスクをオン
とし、TBPに続く4バイトの送信データを送信FIF
Oメモリ11−1に書込んだ後に、FIFO9t制御部
1−1から回線共通制御部3への送信要求を抑止する。
In addition, the control circuit also controls the transmitting FIF from the line common control unit 3.
The number of bytes written to O memo January 1-1, that is, "0" to "4", is counted, and this count value is rO
In the case of J, it is the timing when TBP is written to the transmission FIFO memory 11-1, and if the EOC bit of this TBP is checked and it is on, the above-mentioned transmission interrupt mask is turned on, and the 4 bytes following TBP are transmitted. Send data FIF
After writing to the O memory 11-1, the transmission request from the FIFO 9t control unit 1-1 to the line common control unit 3 is suppressed.

この送信の割込みマスクは、前述のように、書込み線6
00−1を介して送信終了のコマンドを回線アダプタ2
−1へ書込んだとき再び解除される。
The interrupt mask for this transmission is, as described above, the write line 6
Sends the command to end transmission via 00-1 to line adapter 2.
It is cleared again when written to -1.

次に、受信の場合について説明する。回線共通制御部3
から双方向ドライバ13−1を介して受信部初期設定お
よび受信制御のコマンドが回線アダプタ2−1へ書込ま
れると、受信可能な状態になる。
Next, the case of reception will be explained. Line common control unit 3
When commands for receiving unit initialization and reception control are written to the line adapter 2-1 via the bidirectional driver 13-1, the line adapter 2-1 becomes ready for reception.

回線アダプタ2−1で1キャラクタを受信すると、PI
FOfIIJ御部1−1に割込み要求線500−1を介
して処理要求を行う。FIFO制御部1−1はこの割込
みを検出すると、L S T R15−1に回線アダプ
タ2−1のステータスを読出してセットし、ステータス
の受信キャラクタ引取り要求ビットがオンであれば、回
線アダプタ2−1の受信キャラクタレジスタから1キャ
ラクタ続出し受信FIFOメモリ12−1にスタックし
、L S T R15−1の受信キャラクタ引取り要求
ビットをリセットする。以後同様に、回線アダプタ2−
1から受信キャラクタ引取り要求がある毎に受信FIF
Oメモリ12−1にスタックしていき、4バイト(本実
施例では、lキャラクタは8ビツトからなり1バイトと
同じである。)スタックされると、制御回路18−1に
よりRB P R17−1にRBPをセントし、このR
BPを受信FIFOメモリ12−1にスタックする。こ
こで、RBPのBOないしB3は受信FIFOメモリ1
2−1にスタックした受信キャラクタRCROないしR
CR3にてそれぞれ対応し、RCROないしRCR3の
有効、無効状態を表す。すなわち、BOないしB3がオ
ンの場合は対応するRCROないしRCR3が有効受信
データである。
When line adapter 2-1 receives one character, the PI
A processing request is made to the FOofIIJ control unit 1-1 via the interrupt request line 500-1. When the FIFO control unit 1-1 detects this interrupt, it reads and sets the status of the line adapter 2-1 in the LST R15-1, and if the received character takeover request bit in the status is on, the line adapter 2 One character is continuously outputted from the reception character register of -1 and stacked in the reception FIFO memory 12-1, and the reception character takeover request bit of LST R15-1 is reset. Thereafter, in the same way, line adapter 2-
Every time there is a request to pick up a received character from 1, the reception FIF
The characters are stacked in the O memory 12-1, and when 4 bytes (in this embodiment, the l character consists of 8 bits and is the same as 1 byte) are stacked, the control circuit 18-1 outputs the RB PR 17-1. Cent RBP to this R
The BP is stacked in the reception FIFO memory 12-1. Here, BO to B3 of RBP is the reception FIFO memory 1.
Received character RCRO or R stuck in 2-1
Each corresponds to CR3 and represents the valid/invalid state of RCRO to RCR3. That is, when BO to B3 are on, the corresponding RCRO to RCR3 are valid received data.

このように受信FIFOメモリ12−1にRBPを含め
て5バイトスタツクされると、制御回路によりF S 
T R14−1の受信キャラクタ引取り要求ビットをオ
ンにし、割込み線400−1を介して回線共通制御部3
に割込み要求を行う。回線共通制御部3はFIFO制御
部1−1をスキャンしたときに割込み要求があることを
検出すると、FSTR14−1を読出し、F S T 
R14−1の各ビットを調査して受信キャラクタ引取り
要求ビットがオンであれば、受信FIFOメモリ12−
1から5バイトを連続してRCROからRBPの順に続
出す。回線共通制御部3では、このRBPに従って有効
な受信キャラクタのみを8M5へ転送する。なお、RB
PのOEビットは、回線アダプタ2−1からの割込み要
求により読出したステータスに受信キャラクタ引取り要
求ヒ・ノドと受信割込みビットが共にオンの場合にオン
になる。すなわち、回線アダプタ2−1でオーバランエ
ラーが発生したことをRBPで回線共通制御部3に報告
する。
When 5 bytes including the RBP are stacked in the receive FIFO memory 12-1 in this way, the control circuit causes the F S
Turn on the received character takeover request bit of T R14-1, and send it to the line common control unit 3 via the interrupt line 400-1.
Make an interrupt request. When the line common control unit 3 detects that there is an interrupt request when scanning the FIFO control unit 1-1, it reads the FSTR 14-1 and sends the FST
Check each bit of R14-1, and if the receive character takeover request bit is on, the receive FIFO memory 12-
1 to 5 bytes are continuously output in the order of RCRO to RBP. The line common control unit 3 transfers only valid received characters to 8M5 according to this RBP. In addition, R.B.
The OE bit of P turns on when both the receive character takeover request high and receive interrupt bits are on in the status read by the interrupt request from the line adapter 2-1. That is, the fact that an overrun error has occurred in the line adapter 2-1 is reported to the line common control unit 3 using RBP.

受1言FIFOメモリ12−1にRCRiのキャラクタ
までスタックし、その後に回線アダプタから受信割込み
要求があると、RCRi+1からRCR3までキャラク
タにはダミーのデータが書込まれ、対応するRBPはB
OからBiまでをオンにし、B i+1からB3までを
オフにしてスタックする。
When the character RCRi is stacked in the reception FIFO memory 12-1 and a reception interrupt request is received from the line adapter after that, dummy data is written to the characters RCRi+1 to RCR3, and the corresponding RBP is set to B.
Turn on O to Bi, turn off B i+1 to B3, and stack.

以上、送信と受信について説明したが、送信FIFOメ
モリ11−1および受信FIFOメモリ12−1にはF
IFOメモリの残りバイト数に空があれば、TBPない
しTCR3あるいはRCROないしRBPをそれぞれ1
組以上スタックすることも可能である。また、前述した
ように、回線共通制御部3がFSTR14−1を読出し
たときに送信割込みビット、受信割込みビットおよび周
辺割込みビットがオンである場合は、回線共通制御部3
は回線アダプタ2−1から双方向ドライバ13−1を介
して送信割込み要因レジスタ、受信割込み要因レジスタ
および周辺割込み要因レジスタを読出し、MB2に処理
要求を行い、回線状態を制御する。
Transmission and reception have been explained above, but the transmission FIFO memory 11-1 and reception FIFO memory 12-1 have
If the number of remaining bytes in the IFO memory is empty, set TBP or TCR3 or RCRO or RBP to 1 each.
It is also possible to stack more than one pair. Furthermore, as described above, if the transmission interrupt bit, reception interrupt bit, and peripheral interrupt bit are on when the line common control unit 3 reads the FSTR 14-1, the line common control unit 3
reads the transmission interrupt cause register, reception interrupt cause register, and peripheral interrupt cause register from the line adapter 2-1 via the bidirectional driver 13-1, issues a processing request to MB2, and controls the line state.

次に、第二の実施例装置の動作を第1図および第5図に
基づいて説明する。上位装置からの起動によってIFC
4はそのメインメモリから制御語を続出し解読し、メイ
ンメモリから8M5あるいは8M5からメインメモリへ
のデータ転送を行う。
Next, the operation of the second embodiment device will be explained based on FIGS. 1 and 5. IFC by starting from the host device
4 sequentially reads and decodes control words from its main memory, and transfers data from the main memory to 8M5 or from 8M5 to the main memory.

MB2は8MS上のマイクロプログラムを実行し、I 
Fe2あるいは回線共通制御部3からの処理要求を受付
け、IFC4あるいは回線共通制御部3へ制御コマンド
を発行する。また、MB2は8MS上に設けられた各回
線対応の送受信バッファ領域の管理を行う。回線共通制
御部3はMB2からの制御コマンドによって起動される
MB2 executes the microprogram on 8MS and
It accepts a processing request from the Fe2 or the line common control unit 3, and issues a control command to the IFC4 or the line common control unit 3. Further, MB2 manages the transmission/reception buffer area corresponding to each line provided on the 8MS. The line common control section 3 is activated by a control command from the MB2.

送信の場合は、送信準備のためのコマンドを受領してF
IFO7td制御部Llおよび回線アダプタ2−1の送
信部を初期設定し、あらかじめ8MS上に設定された制
御語を続出し解読して、送信のDMA制御レジスタに送
信データの転送開始アドレスおよび転送バイト数を設定
する。回線共通制御部3は回線キスセン中にFIFO制
御部1−1からの送信要求を検出すると、送信のD M
 A ?tJ] JTmレジスタに従って8M5から4
バイトを読出して有効または無効を表示する有効表示フ
ラグを付加し、1バイトずつ4バイトを連続してデータ
バス200を介してFIFO制御部1−1に転送し、D
MA制御レジスタと転送バイト数のカウンタを更新する
。同様に送信要求がある毎に4バイトを連続してFIF
O制御部1−1にデータを送出し、送信終了時はMB2
に処理要求を行う。
For sending, receive the command to prepare for sending and press F.
Initialize the IFO7td control unit Ll and the transmission unit of the line adapter 2-1, successively read and decode the control words set in advance on 8MS, and write the transmission data transfer start address and number of transfer bytes to the transmission DMA control register. Set. When the line common control unit 3 detects a transmission request from the FIFO control unit 1-1 during line kissing, it sends a DM for transmission.
A? tJ] 8M5 to 4 according to JTm register
A valid display flag is added to read the bytes to indicate whether they are valid or invalid, and 4 bytes are successively transferred one byte at a time to the FIFO control unit 1-1 via the data bus 200.
Update the MA control register and transfer byte count counter. Similarly, every time there is a transmission request, 4 bytes are sent to the FIF
Sends data to O control unit 1-1, and sends data to MB2 when transmission is completed.
Make a processing request to.

一方、受信の場合は、受信準備のコマンドをMB2から
受領するとFIFO制御部1−1および回線アダプタ2
−1の受信部を初期設定し、8MS上の受信バッファの
書込み開始アドレスをMB2に要求し、確保した書込み
開始アドレスを受信のDM A II制御レジスタに設
定する。回線共通制御部3は回線スキャン中にFIFO
制御部1−1から受信要求を検出すると、FIFO制御
部1−1から有効表示フラグを付加した受信データ4バ
イトを連続して読出し、受信のDMA制御レジスタおよ
び有効表示フラグに従って8M5に受信データを書込み
、DMA制御レジスタは更新される。PIFO制御部1
−1から受信要求がある毎にDMA制御レジスタを更新
しながら8MS上に受信データを蓄積してゆき、受信終
了時はMP6に処理要求を行う。
On the other hand, in the case of reception, when a reception preparation command is received from MB2, FIFO control unit 1-1 and line adapter 2
-1's receiving unit is initialized, the write start address of the receive buffer on the 8MS is requested from MB2, and the secured write start address is set in the receive DMA II control register. The line common control unit 3 uses FIFO during line scanning.
When a reception request is detected from the control unit 1-1, 4 bytes of reception data with a valid indication flag added are read out continuously from the FIFO control unit 1-1, and the reception data is transferred to 8M5 according to the reception DMA control register and the validity indication flag. Write, DMA control registers are updated. PIFO control unit 1
-1, the received data is accumulated on the 8MS while updating the DMA control register every time there is a reception request, and when the reception is completed, a processing request is made to the MP6.

すなわち、送信の場合は、IFC4を介して上位装置か
ら8M5に送信データが一時蓄積され、さらに回線共通
制御部3により8M5からFIFO制御部1へ転送され
る。また、受信の場合は、FIFO制御部lからの受信
データは回線共通制御部3によって8MS上に一時蓄積
され、IFC4によって上位のメインメモリに転送され
る。
That is, in the case of transmission, transmission data is temporarily stored in the 8M5 from the host device via the IFC 4, and is further transferred from the 8M5 to the FIFO control unit 1 by the line common control unit 3. In the case of reception, the received data from the FIFO control unit 1 is temporarily stored on 8MS by the line common control unit 3, and transferred to the upper main memory by the IFC 4.

次に、本発明の特徴であるFIFO制御部について説明
する。第5図はFIFO制御部1−1のブロック図であ
る。このFIFO制御部1−1は送信FIFOメモリ1
1−1と、受信FIFOメモリ12−1と、双方向ドラ
イバ13−1と、FIFO制御部1−1のステータスレ
ジスタ(以下、FSTRという。)14−1と、回線ア
ダプタのステータスを続出して保持するレジスタ(以下
、LSTRという。) 15−1と、送信終了のコマン
ドを保持するレジスタ(以下、EOCRという。) 1
9−1と、制御回路18−1と、回線共通制御部3への
割込み要求線400−1と、回線アダプタ2−1からの
割込み要求線500−1とを備える。
Next, the FIFO control unit, which is a feature of the present invention, will be explained. FIG. 5 is a block diagram of the FIFO control section 1-1. This FIFO control unit 1-1 is a transmission FIFO memory 1.
1-1, the reception FIFO memory 12-1, the bidirectional driver 13-1, the status register (hereinafter referred to as FSTR) 14-1 of the FIFO control unit 1-1, and the status of the line adapter. A register to hold (hereinafter referred to as LSTR) 15-1 and a register to hold a transmission end command (hereinafter referred to as EOCR) 1
9-1, a control circuit 18-1, an interrupt request line 400-1 to the line common control unit 3, and an interrupt request line 500-1 from the line adapter 2-1.

回線共通制御部3からの送信データおよび回線共通制御
部3への受信データはそれぞれ送信FIFOメモリ11
−1および受信FIFOメモリ12−1にスタックし、
送信終了のコマンドはE OCR19−1に保持するが
、これら以外の;ν制御情報を双方向ドライバ13−1
を介して回線共通制御部3が回線アダプタ2−1に直接
にリードまたはライトする。
Transmission data from the line common control unit 3 and reception data to the line common control unit 3 are stored in the transmission FIFO memory 11, respectively.
-1 and receive FIFO memory 12-1,
The transmission end command is held in the E OCR 19-1, but other than these; ν control information is stored in the bidirectional driver 13-1.
The line common control unit 3 directly reads or writes to the line adapter 2-1 via the line adapter 2-1.

まず、送信の場合について説明する。回線共通制御部3
 h’うF I F O?lj’制御部1−1へデータ
バス2o。
First, the case of transmission will be explained. Line common control section 3
h'UF IFO? lj' data bus 2o to control unit 1-1;

を介して送信制御のコマンドが送出されると、双方向ド
ライバ13−1を介して回線アダプタ2−1のコマンド
レジスタに書込まれ、この回線アダプタ2−1を送信状
態とすると共に、図外の制御回路により送信の割込みマ
スクが解除され、送信FIFOメモ1月1−1の残りの
バイト数が4バイト以上あれば、F S T R14−
1の送信キャラクタ要求ビットをオン(論理「IJ)に
する。回線共通制御部3はFIFO制御部1−1ないし
1−8をスキャンしており、FIFO制御部1−1のス
キャンで′割込み要求線400−1により割込みを検出
すると、回線共通制御部3はFSTR14−1を読み出
す。FSTR14−1には、FIFO制御部1−1から
回線共通制御部3への送信キャラクタ要求ビット、受信
キャラクタ引取り要求ビット、回線アダプタ2−1から
の送受信割込みをそのまま表示する送受信割込み要求ビ
ットと受信割込み要求ビットおよび周辺割込み要求ビッ
トとの5ビツトからなり、回線共通制御部3はFSTR
14〜1を読出して送信キャラクタ要求ビットがオンで
あれば、有効表示フラグと共に送信データの4ハイドを
連続して送信FIFOメモリ11−1に書込む。送信F
IFOメモ1月1−1には送信データがTCRO,TC
R1、−1TCR3の順に書込まれる。有効表示フラグ
BOがオンの場合はTCROが有効なキャラクタである
ことを示し、BOがオフの場合はTCROが無効データ
であることを示す。同様にB1とTCR1が対応し、B
2とTCR2が対応し、B3とTCR3が対応する。
When a transmission control command is sent out via the If the transmission interrupt mask is canceled by the control circuit and the number of remaining bytes in the transmission FIFO memo January 1-1 is 4 bytes or more, FST R14-
1's transmission character request bit is turned on (logical "IJ").The line common control section 3 is scanning the FIFO control sections 1-1 to 1-8, and when the FIFO control section 1-1 is scanned, an interrupt request is issued. When an interrupt is detected via the line 400-1, the line common control unit 3 reads the FSTR 14-1.The FSTR 14-1 contains a transmission character request bit and a reception character input from the FIFO control unit 1-1 to the line common control unit 3. The line common control unit 3 consists of 5 bits: a receive request bit, a send/receive interrupt request bit that directly displays the send/receive interrupt from the line adapter 2-1, a receive interrupt request bit, and a peripheral interrupt request bit.
14 to 1 are read and if the transmission character request bit is on, four hides of transmission data are successively written to the transmission FIFO memory 11-1 together with a valid display flag. Send F
IFO memo January 1-1 sends data from TCRO, TC
R1 and -1TCR3 are written in this order. When the valid display flag BO is on, it indicates that TCRO is a valid character, and when BO is off, it indicates that TCRO is invalid data. Similarly, B1 and TCR1 correspond, and B
2 corresponds to TCR2, and B3 corresponds to TCR3.

次に、回線アダプタ2−1から割込み要求線500−1
を介してFIFO制御部1−1に割込み要求があると、
回線アダプタ2−1のステータスレジスタを読出しLS
TR15−1に保持する。回線アダプタ2−1のステー
タスには、送信キャラクタ要求ビット、受信キャラクタ
引取り要求ビット、送信割込みビット、受信割込みビッ
トおよび周辺割込みビットからなるが、送信割込みビッ
ト、受信割込みビットおよび周辺割込みビットはLST
R15−1に読出すときと同時にLSTR14−1にも
セントされる。
Next, from the line adapter 2-1 to the interrupt request line 500-1
When there is an interrupt request to the FIFO control unit 1-1 via
Read the status register of line adapter 2-1 LS
Maintain at TR15-1. The status of line adapter 2-1 consists of a transmit character request bit, a receive character takeover request bit, a transmit interrupt bit, a receive interrupt bit, and a peripheral interrupt bit, but the transmit interrupt bit, receive interrupt bit, and peripheral interrupt bit are LST.
When reading to R15-1, it is also sent to LSTR 14-1 at the same time.

送信FIFOメモリ11−1に1バイト以上がスタック
されていてかつLSTR15−1に送信キャラクタ要求
ビットがセットされていると、制御回路18−1によっ
て送信FIFOメモリ11−1から1バイト(TCRO
)を読出し、有効表示フラグBOがオンであれば、デー
タバス300−1を介して回線アダプタ2−1の送信キ
ャラクタレジスタに書込み、LSTR15−1の送信キ
ャラクタ要求ビットをリセットして送信動作を終了する
。ここで、TCROに対応する有効表示フラグBOがオ
フであれば、送信FIFOメそり1−1からTCROの
空読出しを行い、さらにTC:R1を読出して対応する
有効表示フラグB1がオンであれば、回線アダプタ2−
1の送信キャラクタレジスタに書込む。このように送信
FIFOメモリ11−1から読出した有効表示フラグが
オンになるまで空読出しを行い、有効な送信キャラクタ
のみを回線アダプタ2−1へ転送する。
If one byte or more is stacked in the transmit FIFO memory 11-1 and the transmit character request bit is set in the LSTR 15-1, the control circuit 18-1 stacks one byte (TCRO) from the transmit FIFO memory 11-1.
) is read, and if the valid display flag BO is on, it is written to the transmission character register of the line adapter 2-1 via the data bus 300-1, the transmission character request bit of LSTR 15-1 is reset, and the transmission operation ends. do. Here, if the valid display flag BO corresponding to TCRO is off, perform an empty read of TCRO from the transmission FIFO memory 1-1, and further read TC:R1, and if the corresponding valid display flag B1 is on, , line adapter 2-
Write to the transmit character register of 1. In this way, empty reading is performed until the valid display flag read from the transmission FIFO memory 11-1 turns on, and only valid transmission characters are transferred to the line adapter 2-1.

回線アダプタ2から送信要求がある毎に同様の動作を繰
返す。
The same operation is repeated every time there is a transmission request from the line adapter 2.

以上のようにして送信キャラクタを転送してゆき、回線
共通制御部3がE OCR19−1に送信終了のコマン
ドを書込むと前述の送信割込みマスクをオンにし、送信
FIFOメモリ11−1から回線共通制御部3への送信
要求を抑止し、送信FIFOメモリ11−1に送信デー
タを書込まないようにする。
Transmission characters are transferred as described above, and when the line common control unit 3 writes a transmission end command to the E OCR 19-1, the above-mentioned transmission interrupt mask is turned on, and the line common control unit 3 writes a transmission end command to the E OCR 19-1. A transmission request to the control unit 3 is suppressed, and transmission data is not written to the transmission FIFO memory 11-1.

そして送(iFIFoメモリ11−1にスタックされて
いるすべての有効な送信キャラクタを回線アダプタ2−
1へ転送すると、EOCR19−1の送信終了のコマン
ドを回線アダプタ2−1のコマンドレジスタに書込み、
同時に送信割込みマスクを再び解除し、回線共通制御部
3から送信FIFOメモ1月1−1への送信データの転
送を可能にする。
Then, transmit (transmit all valid transmit characters stacked in the iFIFo memory 11-1 to the line adapter 2-
1, writes the EOCR19-1 transmission end command to the command register of line adapter 2-1,
At the same time, the transmission interrupt mask is released again, and the transmission data can be transferred from the line common control section 3 to the transmission FIFO memo 1-1.

次に、受信の場合について説明する。回線共通制御部3
から双方向ドライバ13−1を介して受信部初期設定お
よび受信制御のコマンドが回線アダプタ2−1に書込ま
れると、受信可能状態になる。回線アダプタ2−1で1
キャラクタを受信すると、PIF01111部1−1に
割込み要求線500−1を介して処理要求を行う。FI
FO制御部1−1はこの割込みを検出すると、LSTR
15−1に回線アダプタのステータスを読出してセット
し、ステータスの受信キャラクタ引取り要求ビットがオ
ンであれば、回線アダプタ2−1の受信キャラクタレジ
スタから1キャラクタ読出し、受信FIFOメモリ12
−1に有効表示フラグをオンとしてスタックし、LST
R15−1の受信キャラクタ引取り要求ビットをリセッ
トする。以後同様に、回線アダプタ2−1から受信キャ
ラクタ引取り要求がある毎に受信FIFOメモリ12−
1にスタックしてゆ(。ここで、受信FIFOメモリ1
2−1にRCRiのキャラクタまでスタックし、その後
に回線アダプタから受信割込み要求があると、RCRi
 + 1からRCR3までのキャラクタにはダミーのデ
ータが書込まれ、対応する有効表示フラグはBOないし
Biまでをオンにし、Bi+1ないしB3までをオフに
してスタックする。このように受信FIFOメモリ12
−1に4バイトの受信キャラクタがスタックされると、
制御回路18−1によりF S T R14−1の受信
キャラクタ引取り要求ビットをオンにし、割込み線40
0−1を介して回線共通制御部3に割込み要求を行う。
Next, the case of reception will be explained. Line common control section 3
When commands for receiving unit initialization and reception control are written to the line adapter 2-1 via the bidirectional driver 13-1, the line adapter 2-1 becomes ready for reception. 1 with line adapter 2-1
When a character is received, a processing request is made to the PIF01111 unit 1-1 via the interrupt request line 500-1. FI
When the FO control unit 1-1 detects this interrupt, the FO control unit 1-1
15-1 to read and set the status of the line adapter, and if the received character takeover request bit in the status is on, one character is read from the receive character register of the line adapter 2-1, and the receive FIFO memory 12
-1 with the valid display flag turned on and stacked on LST
Reset the received character takeover request bit of R15-1. Thereafter, in the same way, each time there is a request for receiving a received character from the line adapter 2-1, the reception FIFO memory 12-
1 (.Here, receive FIFO memory 1
If the RCRi character is stacked in 2-1, and then there is a receive interrupt request from the line adapter, the RCRi
Dummy data is written in characters from +1 to RCR3, and the corresponding valid display flags are stacked with BO to Bi turned on and Bi+1 to B3 turned off. In this way, the reception FIFO memory 12
When a 4-byte received character is stacked on -1,
The control circuit 18-1 turns on the reception character takeover request bit of FST R14-1, and the interrupt line 40 is turned on.
An interrupt request is made to the line common control unit 3 via 0-1.

回線共通制御部3はFIFO制御部1−1をスキャンし
たときに割込み要求があることを検出すると、FSTR
14−1を読出し、FSTR14−1の各ビットを調査
して受信キャラクタ引取り要求ビットがオンであれば、
受信FIFOメモリ12−1から4バイトを連続してR
CROからRCR3の順に読出す。
When the line common control unit 3 detects an interrupt request when scanning the FIFO control unit 1-1, the FSTR
14-1, examine each bit of FSTR14-1, and if the received character takeover request bit is on,
Continuously R 4 bytes from receive FIFO memory 12-1
Read out in order from CRO to RCR3.

回線共通制御部3では、有効表示フラグに従って有効な
受信キャラクタのみをBM5へ転送する。
The line common control unit 3 transfers only valid received characters to the BM 5 according to the valid display flag.

以上、送信と受信について説明したが、送信FIFOメ
そり11−1および受信FIFOメモリ12−1にはF
IFOメモリの残りバイト数に空があれば、TCROな
いしTCR3あるいはRCROないしRCR3をそれぞ
れ1m以上スタックすることも可能である。また、前述
したように、回線共通制御部3がF S T R14−
1を読出したときに送信割込みビット、受信割込みビッ
トおよび周辺割込みビットのいずれかがオンである場合
は、回線共通制御部3は回線アダプタ2−1から双方向
ドライバ13−1を介して送信割込み要因レジスタ、受
信割込み要因レジスタおよび周辺割込み要因レジスタを
読出し、MP6に処理要求を行い、回線状態を制御する
Transmission and reception have been explained above, but the transmission FIFO memory 11-1 and reception FIFO memory 12-1 have
If there is space in the remaining number of bytes of the IFO memory, it is also possible to stack TCRO to TCR3 or RCRO to RCR3 of 1 m or more each. Further, as described above, the line common control unit 3
If any of the transmission interrupt bit, reception interrupt bit, or peripheral interrupt bit is on when reading 1, the line common control unit 3 issues a transmission interrupt from the line adapter 2-1 via the bidirectional driver 13-1. It reads the cause register, reception interrupt cause register, and peripheral interrupt cause register, issues a processing request to MP6, and controls the line state.

次に、回線アダプタについて説明をする。第6図はHD
LC手順の送受信を行う回線アダプタの構成を示すブロ
ック構成図である。入出力制御回路21−1は回線アダ
プタ内のリードまたはライト可能なレジスタの入出力制
御を行う回路であり、信号D0ないしり、はデータバス
300−1と授受され、アドレスA0ないしA2はリー
ドレジスタ22−1またはライトレジスタ22−1のア
ドレスである。制御線RDは読出しであることを指示す
る制御線であり、制御線W Rは書込みであることを指
示する制御線である。ライトレジスタ22−1にはコマ
ンドレジスタ、リセ・ノドレジスタおよび送信キャラク
タレジスタがあり、コマンドレジスタは回線アダプタの
動作を制御するレジスタであり、リセットレジスタは回
線アダプタ全体を初期状態にするレジスタであり、送信
キャラクタレジスタは送信キャラクタを書込むレジスタ
である。リードレジスタ22’−1には6種類のレジス
タがあり、この内ステータスレジスタは周辺割込みビッ
ト、送信キャラクタ要求ビット、送信割込みビット、受
信割込みビットおよび受信キャラクタ引取り要求ビット
の5ビツトからなり、それぞれ周辺割込みレジスタに割
込み要因がセットされていること、送信キャラクタレジ
スタへの書込み要求、送信割込みレジスタに割込み要因
がセットされていること、受信割込みレジスタに割込み
要因がセットされていることおよび受信キャラクタレジ
スタからの受信データの引取り要求が表示されている。
Next, I will explain the line adapter. Figure 6 is HD
FIG. 2 is a block configuration diagram showing the configuration of a line adapter that transmits and receives LC procedures. The input/output control circuit 21-1 is a circuit that performs input/output control of readable or writable registers in the line adapter, and signals D0 and SIR are exchanged with the data bus 300-1, and addresses A0 and A2 are read registers. 22-1 or the address of the write register 22-1. The control line RD is a control line for instructing reading, and the control line WR is a control line for instructing writing. The write register 22-1 includes a command register, a reset/node register, and a transmission character register, the command register is a register that controls the operation of the line adapter, and the reset register is a register that sets the entire line adapter to an initial state. The transmission character register is a register into which transmission characters are written. The read register 22'-1 has six types of registers, among which the status register consists of five bits: a peripheral interrupt bit, a transmit character request bit, a transmit interrupt bit, a receive interrupt bit, and a receive character takeover request bit. An interrupt factor is set in the peripheral interrupt register, a write request is made to the transmit character register, an interrupt factor is set in the transmit interrupt register, an interrupt factor is set in the receive interrupt register, and the receive character register A request to retrieve received data from is displayed.

周辺状態レジスタは周辺入力ピンpHないしPI5の状
態を表示している。INT(8号はステータスレジスタ
の各ビットをオアした信号であり、いずれかの割込みが
あることを示している。
The peripheral status register indicates the status of peripheral input pins pH through PI5. INT (No. 8 is a signal obtained by ORing each bit of the status register, and indicates that there is an interrupt.

送信キャラクタレジスタに送信データがセットされると
、送受信制御回路24−1によって内部データバス70
0−1を介して送信回路25−1の送信シフトレジスタ
に書込まれ、ここで並列直列の変換を行い、ドライバ回
路27−1を介して回線へ送出される。
When transmission data is set in the transmission character register, the transmission/reception control circuit 24-1 sends the internal data bus 70.
The signal is written to the transmission shift register of the transmission circuit 25-1 via 0-1, undergoes parallel-to-serial conversion, and is sent to the line via the driver circuit 27-1.

ドライバ回路27−1は送信データのコード変換および
レベル変換を行う。受信時には、レシーバ回路28−1
で回線上のデータをレベル変換およびコード変換し、送
受信制御回路24−1により受信回路26−1の受信シ
フトレジスタに1ビツトずつシフトし、lキャラクタ受
信すると内部データバス700−1を介してリードレジ
スタ22’−1の受信キャラクタレジスタにセットされ
て、ステータスレジスタの受信データ引取り要求のビッ
トをオンにして割込み要求を行う。
The driver circuit 27-1 performs code conversion and level conversion of transmission data. At the time of reception, the receiver circuit 28-1
The data on the line is level-converted and code-converted by the transmitting/receiving control circuit 24-1, and shifted bit by bit to the receiving shift register of the receiving circuit 26-1. When l characters are received, the data is read via the internal data bus 700-1. It is set in the reception character register of register 22'-1, and the reception data takeover request bit of the status register is turned on to issue an interrupt request.

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

本発明は、以上説明したように、回線共通制御部と回線
アダプタとの間にFIFO制御部を設けて、回線共通制
御部とFIFO制御部とのデータ転送をあらかじめ定め
たバイト数を連続して行うことにより、回線共通制御部
のハードウェアの変更を最小限とし、多数の回線アダプ
タあるいは高速の回線アダプタを接続可能にする効果が
ある。
As explained above, the present invention provides a FIFO control section between a line common control section and a line adapter, and transfers data between the line common control section and the FIFO control section by continuously transmitting a predetermined number of bytes. By doing so, it is possible to minimize changes in the hardware of the line common control unit and make it possible to connect a large number of line adapters or high-speed line adapters.

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

第1図は本発明実施例装置の構成を示すブロック構成図
。 第2図は第一実施例のFIFO制御部の構成を示すブロ
ック構成図。 第3図および第4図はTBPおよびRBPのフォーマッ
ト図。 第5図は第二実施例のFIFO制御部の構成を示すブロ
ック構成図。 第6図は回線アダプタの構成を示すブロック構成図。 1・・・PIF、O制御部、2・・・回線アダプタ、3
・・・回線共通制御部、4・・・インタフェース制御部
(IFC)、5・・・バッファメモリ (BM) 、6
・・・マイクロプロセッサ(MP) 、11・・・送信
FIFOメモリ、12・・・受信F■FOメモリ、13
・・・双方向ドライバ、14・・・ステータスレジスタ
(FSTR) 、15・・・レジスタ(LSTR)、1
6・・・レジスタ(TBPR)、17・・・レジスタ(
RBPR)、18・・・制御回路、19・・・レジスタ
(EOCR) 、21・・・入出力制御回路、22・・
・ライトレジスタ、22′ ・・・リードレジスタ、2
3・・・割込み制御回路、24・・・送受信制御回路、
25・・・送信回路、26・・・受信回路、27・・・
ドライバ回路、28・・・レシーバ回路、29・・・周
辺入出力制御回路、100・・・プロセッサバス、20
0.300・・・データハ゛ス、400.500・・・
割込み要求線、600・・・送信終了のコマンド書込み
線、700・・・内部データバス。
FIG. 1 is a block configuration diagram showing the configuration of an apparatus according to an embodiment of the present invention. FIG. 2 is a block diagram showing the configuration of the FIFO control section of the first embodiment. 3 and 4 are format diagrams of TBP and RBP. FIG. 5 is a block configuration diagram showing the configuration of the FIFO control section of the second embodiment. FIG. 6 is a block configuration diagram showing the configuration of the line adapter. 1... PIF, O control section, 2... Line adapter, 3
... line common control section, 4 ... interface control section (IFC), 5 ... buffer memory (BM), 6
...Microprocessor (MP), 11...Transmission FIFO memory, 12...Reception FFO memory, 13
...Bidirectional driver, 14...Status register (FSTR), 15...Register (LSTR), 1
6...Register (TBPR), 17...Register (
RBPR), 18... Control circuit, 19... Register (EOCR), 21... Input/output control circuit, 22...
・Write register, 22' ...Read register, 2
3... Interrupt control circuit, 24... Transmission/reception control circuit,
25... Transmission circuit, 26... Receiving circuit, 27...
Driver circuit, 28... Receiver circuit, 29... Peripheral input/output control circuit, 100... Processor bus, 20
0.300...database, 400.500...
Interrupt request line, 600... command write line for end of transmission, 700... internal data bus.

Claims (3)

【特許請求の範囲】[Claims] (1)複数の通信回路のそれぞれに接続された回線アダ
プタ(2−1〜2−8)と、 上位装置とこの回線アダプタとの間の経路を設定する回
線共通制御部(3)と を備えた通信制御装置において、 上記回線共通制御部と上記回線アダプタとの間の送信経
路に挿入された先入れ先出しメモリである第一のメモリ
(11)と、 上記回線共通制御部と上記回線アダプタとの間の受信経
路に挿入された先入れ先出しメモリである第二のメモリ
(12)と、 上記第一および第二のメモリを制御する制御手段と を備えたことを特徴とする通信制御装置。
(1) Comprising line adapters (2-1 to 2-8) connected to each of a plurality of communication circuits, and a line common control unit (3) that sets a route between the host device and this line adapter. In the communication control device, a first memory (11) which is a first-in, first-out memory inserted in a transmission path between the line common control unit and the line adapter, and a first memory (11) between the line common control unit and the line adapter. A communication control device comprising: a second memory (12) which is a first-in, first-out memory inserted into a reception path of the device; and a control means for controlling the first and second memories.
(2)制御手段は、 送信データの1キャラタごとに有効表示フラグを含む所
定キャラクタ数の送信データを上記共通制御部から上記
第一のメモリに書込み、有効フラグが有効であることを
示す送信データを1キャラクタごとにこのメモリに接続
された回線アダプタに転送する手段と、 受信データの1キャラクタごとに付された有効表示フラ
グと共に受信データを1キャラクタごとに上記第二のメ
モリに書込み、この第二のメモリに所定のキャラクタ数
がスタックされたときに、有効表示フラグが有効である
ことを示す受信データを1キャラクタごとに上記回線共
通制御部に転送する手段と を有する特許請求の範囲第(1)項に記載の通信制御装
置。
(2) The control means writes a predetermined number of characters of transmission data including a valid display flag for each character of the transmission data from the common control unit to the first memory, and writes the transmission data indicating that the validity flag is valid. means to transfer the received data character by character to the line adapter connected to this memory, and write the received data character by character to the second memory together with a valid display flag attached to each character of the received data, and and means for transmitting received data indicating that the valid display flag is valid character by character to the line common control unit when a predetermined number of characters are stacked in the second memory. The communication control device according to item 1).
(3)制御手段は、 1キャラタの送信制御情報を含む所定キャラクタ数の送
信データを上記回線共通制御部から上記第一のメモリに
書込み、送信制御情報が有効であることを示す送信デー
タを1キャラクタごとにこのメモリに接続された回線ア
ダプタに転送する手段と、 受信データを1キャラクタごとに上記第二のメモリに書
込み、この第二のメモリに所定のキャラクタ数がスタッ
クされたときに、1キャラクタの受信制御情報を含む受
信データを上記回線共通制御部に転送する手段と を有する特許請求の範囲第(1)項に記載の通信制御装
置。
(3) The control means writes a predetermined number of characters of transmission data including one character of transmission control information from the line common control unit to the first memory, and writes one character of transmission data indicating that the transmission control information is valid. a means for transferring each character to a line adapter connected to this memory; and a means for writing received data character by character to the second memory, and when a predetermined number of characters are stacked in this second memory, one The communication control device according to claim 1, further comprising means for transferring received data including character reception control information to the line common control section.
JP61186670A 1986-08-08 1986-08-08 Communication control device Expired - Lifetime JPH06105923B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61186670A JPH06105923B2 (en) 1986-08-08 1986-08-08 Communication control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61186670A JPH06105923B2 (en) 1986-08-08 1986-08-08 Communication control device

Publications (2)

Publication Number Publication Date
JPS6342546A true JPS6342546A (en) 1988-02-23
JPH06105923B2 JPH06105923B2 (en) 1994-12-21

Family

ID=16192605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61186670A Expired - Lifetime JPH06105923B2 (en) 1986-08-08 1986-08-08 Communication control device

Country Status (1)

Country Link
JP (1) JPH06105923B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56763A (en) * 1979-06-15 1981-01-07 Nec Corp Line connector
JPS58120347A (en) * 1982-01-11 1983-07-18 Nec Corp Line adaptor
JPS58120346A (en) * 1982-01-11 1983-07-18 Nec Corp Line adaptor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56763A (en) * 1979-06-15 1981-01-07 Nec Corp Line connector
JPS58120347A (en) * 1982-01-11 1983-07-18 Nec Corp Line adaptor
JPS58120346A (en) * 1982-01-11 1983-07-18 Nec Corp Line adaptor

Also Published As

Publication number Publication date
JPH06105923B2 (en) 1994-12-21

Similar Documents

Publication Publication Date Title
EP0185676B1 (en) Data processor having dynamic bus sizing
US5276684A (en) High performance I/O processor
CN1595381B (en) Bridge controllers, bridge and method for operating the bridge
US4041472A (en) Data processing internal communications system having plural time-shared intercommunication buses and inter-bus communication means
US6412032B1 (en) Interface for industrial controller network card
JPS61187057A (en) Channel expander
JPS6342546A (en) Communication control equipment
JPS6342545A (en) Communication control equipment
EP0690382A2 (en) Computer system with a multiplexed address bus and pipelined write operations
JP2859178B2 (en) Data transfer method between processors and ring buffer memory for data transfer between processors
US6865638B1 (en) Apparatus and method for transferring multi-byte words in a fly-by DMA operation
JPS6143370A (en) Multiplex processing system
JPS594045B2 (en) Line control processor in digital systems
AU544144B2 (en) Input/output system and method of communication for peripheral devices in data processing system
JPS63228856A (en) Communication controller
CA1233265A (en) Data processor having multiple bus cycle operand cycles
US20220237132A1 (en) Data transmission method and ping-pong dma architecture
KR100812705B1 (en) Method for Linking Host Data in Programmable Logic ControllerPLC
JPH0115100B2 (en)
JP2576236B2 (en) Communication method of programmable controller
JP3442099B2 (en) Data transfer storage device
CN116340217A (en) Data processing method and related device
JPH01161465A (en) Bus interface
JPH01161463A (en) Bus interface
JPH02307151A (en) Processor system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term