JPH06105922B2 - Communication control device - Google Patents

Communication control device

Info

Publication number
JPH06105922B2
JPH06105922B2 JP61186669A JP18666986A JPH06105922B2 JP H06105922 B2 JPH06105922 B2 JP H06105922B2 JP 61186669 A JP61186669 A JP 61186669A JP 18666986 A JP18666986 A JP 18666986A JP H06105922 B2 JPH06105922 B2 JP H06105922B2
Authority
JP
Japan
Prior art keywords
transmission
line
control unit
fifo
reception
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 - Lifetime
Application number
JP61186669A
Other languages
Japanese (ja)
Other versions
JPS6342545A (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.)
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 JP61186669A priority Critical patent/JPH06105922B2/en
Publication of JPS6342545A publication Critical patent/JPS6342545A/en
Publication of JPH06105922B2 publication Critical patent/JPH06105922B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

〔概要〕〔Overview〕

本発明は、回線共通制御部で回線アダプタと上位装置と
の間の経路が設定される通信制御装置において、 回線共通制御部と回線アダプタとの間に先入れ先出しメ
モリを挿入することにより、 回線アダプタの仕様変更にかかわるハードウェアの変更
を最小限にとどめることができるようにしたものであ
る。
The present invention relates to a communication control device in which a line between a line adapter and a host 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 is to make it possible to minimize the change in hardware related to the specification change.

〔従来の技術〕[Conventional technology]

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

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

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

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

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

本発明は、複数の通信回路のそれぞれに接続された回線
アダプタと、上位装置とこの回線アダプタとの間の経路
を設定する回線共通制御部とを備えた通信制御装置にお
いて、上記回線共通制御部と上記回線アダプタとの間の
送信経路に挿入された先入れ先出しメモリである第一の
メモリと、上記回線共通制御部と上記回線アダプタとの
間の受信経路に挿入された先入れ先出しメモリである第
二のメモリと、上記第一および第二のメモリを制御する
制御手段とを備え、上記制御手段は、所定の複数キャラ
クタの送信データを1単位として上記回線共通制御部か
ら上記第一のメモリに書込んだ後、上記回線アダプタに
1キャラクタごとに転送する手段と、所定の複数キャラ
クタの受信データが上記第二のメモリに蓄積された後上
記回線共通制御部へ所定の複数キャラクタの受信データ
を1単位として転送する手段とを含むことを特徴とす
る。
The present invention relates to a communication control device comprising a line adapter connected to each of a plurality of communication circuits, and a line common control unit for setting a path between a host device and this line adapter. And a first memory which is a first-in first-out memory inserted in the transmission path between the line adapter and a second memory which is a first-in first-out memory inserted in the reception path between the line common control unit and the line adapter. A memory and control means for controlling the first and second memories are provided, and the control means writes the transmission data of a predetermined plurality of characters as one unit from the line common control unit into the first memory. After that, a means for transferring each character to the line adapter and reception data of a plurality of predetermined characters are accumulated in the second memory, and then the line common control unit Characterized in that it comprises a means for transferring the received data of a predetermined plurality characters as a unit.

〔作用〕[Action]

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

また、受信時には回線アダプタからの受信要求がある毎
に回線アダプタから1キャラクタを読出し、受信FIFOメ
モリにスタックし、受信FIFOメモリにあらかじめ定めた
一定のキャラクタ数の受信データがスタックされると、
回線共通制御部に受信データと受信制御情報を順次連続
して引取らせる。
Also, at the time of reception, each time there is a reception request from the line adapter, one character is read from the line adapter, is stacked in the receive FIFO memory, and a predetermined number of characters of receive data is stacked in the receive FIFO memory,
The line common control unit is made to continuously receive the reception data and the 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 transmission data having a predetermined fixed number of characters is continuously transferred from the line common control unit to the transmission FIFO memory, and the line adapter is used. Each time there is a request for transmission from the transmission FIFO memory, one character is taken out from the transmission FIFO memory and only the effective character is transferred to the line adapter based on the effective display flag.

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

〔実施例〕〔Example〕

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

第1図は本発明の一実施例の構成を示すブロック構成図
である。この実施例装置は、マイクロプロセッサ(以
下、MPという。)6と、回線毎に送受信データを一時保
持すると共にマイクロプログラムを格納するメモリであ
るバッファメモリ(以下、BMという。)5と、図外の上
位装置のメインメモリとBM5とのデータ転送制御を行う
インタフェース制御部(以下、IFCという。)4と、回
線対応の送信FIFOメモリと受信FIFOメモリを含むFIFO制
御部1−1ないし1−8と、回線アダプタ2−1ないし
2−8と、MP6の指示によりBM5とFIFO制御部1−1ない
し1−8との送受信制御を行う回線共通制御部3と、プ
ロセッサバス100と、回線共通制御部3とFIFO制御部1
−1ないし1−8とを接続するデータバス200と、FIFO
制御部1−1ないし1−8とそれぞれ対応する回線アダ
プタを接続するデータバス300−1ないし300−8とを備
える。ここでは、FIFO制御部1−2ないし1−8および
回線アダプタ2−2ないし2−8は、それぞれFIFO制御
部1−1および回線アダプタ2−1と同一の機能であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. The apparatus of this embodiment includes a microprocessor (hereinafter, referred to as MP) 6, a buffer memory (hereinafter, referred to as BM) 5 which is a memory for temporarily storing transmission / reception data for each line and storing a micro program, and not shown. Interface control unit (hereinafter referred to as IFC) 4 that controls data transfer between the main memory of the higher-level device and BM5, and FIFO control units 1-1 to 1-8 including a line-compatible transmission FIFO memory and reception FIFO memory , The line adapters 2-1 to 2-8, the line common control unit 3 for controlling transmission / reception between the BM5 and the FIFO control units 1-1 to 1-8 according to the instruction of the MP6, the processor bus 100, and the line common control. Part 3 and FIFO control part 1
A data bus 200 for connecting -1 to 1-8, and a FIFO
The control units 1-1 to 1-8 and the data buses 300-1 to 300-8 connecting the corresponding line adapters are provided. Here, the FIFO control units 1-2 to 1-8 and the line adapters 2-2 to 2-8 have the same functions as the FIFO control unit 1-1 and the line adapter 2-1 respectively.

次に、第一の実施例装置の動作を第1図ないし第4図に
基づいて説明する。上位装置からの起動によってIFC4は
そのメインメモリから制御語を読出し解読し、メインメ
モリからBM5あるいはBM5からメインメモリへのデータ転
送を行う。MP6はBM5上のマイクロプログラムを実行し、
IFC4あるいは回線共通制御部3からの処理要求を受け、
IFC4あるいは回線共通制御部3へ制御コマンドを発行す
る。またMP6はBM5上に設けられた各回線対応の送受信バ
ッファ領域の管理を行う。回線共通制御部3はMP6から
の制御コマンドによって起動される。
Next, the operation of the first embodiment device will be described with reference to FIGS. Upon activation from the host device, IFC4 reads the control word from its main memory, decodes it, and transfers data from main memory to BM5 or from BM5 to main memory. MP6 runs the microprogram on BM5,
Receives processing request from IFC4 or line common control unit 3,
Issue a control command to the IFC4 or line common control unit 3. The MP6 also manages the send / receive buffer area for each line provided on the BM5. The line common control unit 3 is activated by a control command from MP6.

送信の場合は、送信の準備を行うコマンドを受領してFI
FO制御部1−1および回線アダプタ2−1の送信部を初
期設定し、あらかじめBM5上に設定された制御語を読出
し解読して、送信のDMA制御レジスタに送信データの転
送開始アドレスおよび転送バイト数を設定する。回線共
通制御部3は回線スキャン中にFIFO制御部1−1からの
送信要求を検出すると、送信のDMA制御レジスタに従っ
てBM5から4バイト読出して先頭に制御情報として送信
制御情報を付加し、1バイトずつ5バイト連続してデー
タバス200を介してFIFO制御部1−1に転送し、DMA制御
レジスタと転送バイト数のカウンタを更新する。同様
に、送信要求がある毎に5バイト連続してFIFO制御部1
−1にデータを送出し、送信終了時はMP6に処理要求を
行う。
For transmission, FI is received after receiving the command to prepare for transmission.
The FO controller 1-1 and the transmitter of the line adapter 2-1 are initialized, the control word set in advance on the BM5 is read and decoded, and the transfer start address and transfer byte of the transmission data are stored in the DMA control register for transmission. Set the number. When the line common control unit 3 detects a transmission request from the FIFO control unit 1-1 during line scanning, it reads 4 bytes from BM5 according to the transmission DMA control register, adds transmission control information as control information to the beginning, and adds 1 byte. 5 bytes each are continuously transferred to the FIFO control section 1-1 via the data bus 200, and the DMA control register and the transfer byte number counter are updated. Similarly, every time there is a transmission request, the FIFO control unit 1 continues for 5 bytes.
Send data to -1 and request processing to MP6 at the end of transmission.

一方、受信の場合は、受信の準備を行うコマンドをMP6
から受領してFIFO制御部1−1および回線アダプタ2−
1の受信部を初期設定し、BM5上の受信バッファの書込
み開始アドレスを要求し、確保した書込み開始アドレス
を受信のDMA制御レジスタに設定する。回線共通制御部
3は回線スキャン中にFIFO制御部1−1から受信要求を
検出すると、FIFO制御部1−1から1バイトずつ5バイ
ト連続して読出し、受信のDMA制御レジスタおよび受信
制御情報に従ってBM5に受信データを書込み、DMA制御レ
ジスタは更新される。FIFO制御部1−1から受信要求が
ある毎にDMA制御レジスタを更新しながらBM5上に受信デ
ータを蓄積してゆき、受信終了時はMP6に処理要求を行
う。
On the other hand, for reception, the command to prepare for reception is MP6.
Received from FIFO controller 1-1 and line adapter 2-
Initialize the receiving unit of 1, request the write start address of the receive buffer on BM5, and set the secured write start address in the receive DMA control register. When the line common control unit 3 detects a reception request from the FIFO control unit 1-1 during a line scan, it reads from the FIFO control unit 1-1 one byte at a time for 5 consecutive bytes, and according to the reception DMA control register and reception control information. Received data is written to BM5 and the DMA control register is updated. Each time there is a reception request from the FIFO control section 1-1, the DMA control register is updated and the reception data is accumulated on the BM5. At the end of reception, the processing request is sent to the MP6.

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

次に、本発明の特徴であるFIFO制御部について説明す
る。第2図はFIFO制御部1−1のブロック図であり、第
3図および第4図は送信制御情報(以下、TBPとい
う。)および受信制御情報(以下、RBPという。)のフ
ォーマット図である。このFIFO制御部1−1は送信FIFO
メモリ11−1と、受信FIFOメモリ12−1と、双方向ドラ
イバ13−1と、送信FIFOメモリ11−1から読出したTBP
を保持するレジスタ(以下、TBPRという。)16−1と、
受信FIFOメモリ12−1にRBPを書込むレジスタ(以下、R
BPRという。)17−1と、FIFO制御部1−1のステータ
スレジスタ(以下、FSTRという。)14−1と、回線アダ
プタ2−1のステータスを読出して保持するレジスタ
(以下、LSTRという。)15−1と、制御回路18−1と、
回線共通制御部3への割込み要求線400−1と、回線ア
ダプタ2−1からの割込み要求線500−1と、最終キャ
ラクタを送出したことを回線アダプタ2−1に指示する
コマンド書込み線600−1とを備える。
Next, the FIFO control unit, which is a feature of the present invention, will be described. FIG. 2 is a block diagram of the FIFO control section 1-1, and FIGS. 3 and 4 are format diagrams of transmission control information (hereinafter referred to as TBP) and reception control information (hereinafter referred to as RBP). . This FIFO control unit 1-1 is a transmission FIFO
The memory 11-1, the reception FIFO memory 12-1, the bidirectional driver 13-1, and the TBP read from the transmission FIFO memory 11-1
A register (hereinafter, referred to as TBPR) 16-1 for holding
A register that writes RBP to the receive FIFO memory 12-1 (hereinafter R
It is called BPR. ) 17-1, a status register (hereinafter referred to as FSTR) 14-1 of the FIFO control unit 1-1, and a register (hereinafter referred to as LSTR) 15-1 for reading and holding the status of the line adapter 2-1. And the control circuit 18-1,
An interrupt request line 400-1 to the line common control unit 3, an interrupt request line 500-1 from the line adapter 2-1 and a command writing line 600-instructing the line adapter 2-1 that the last character has been sent. 1 and 1.

回線共通制御部3からの送信データおよびTBPと回線共
通制御部3への受信データおよびRBPとはそれぞれ送信F
IFOメモリ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 3 are respectively transmitted F
The control information other than these is stacked in the IFO memory 11-1 and the reception FIFO memory 12-1, but the line common control unit 3 directly reads the line adapter 2-1 via the bidirectional driver 13-1. Or write.

まず、送信の場合について説明する。回線共通制御部3
からFIFO制御部1−1へデータバス200を介して送信制
御部のコマンドが送出されると、双方向ドライバ13−1
を介して回線アダプタ2−1へ書込まれ、この回線アダ
プタ2−1を送信状態にすると共に図外の制御回路によ
り送信の割込みマスクが解除され、送信FIFOメモリ11−
1の残りのバイト数が5バイト以上あれば、すなわち、
送信データ4バイトおよびTBP1バイト分の書込みが可能
であれば、FSTR14−1の送信キャラクタ要求ビットをオ
ン(論理「1」)にする。回線共通制御部3はFIFO制御
部1−1ないし1−8をスキャンしており、FIFO制御部
1−1のスキャンで割込み要求線400−1により割込み
を検出すると、回線共通制御部3はFSTR14−1を読出
す。このFSTR14−1には、FIFO制御部1−1から回線共
通制御部3への送信キャラクタ要求ビットと、受信キャ
ラクタ引取り要求ビットと、回線アダプタ2−1からの
送受信割込みをそのまま表示する送信割込み要求ビット
と、受信割込み要求ビットと、周辺割込み要求ビットと
の5ビットからなり、回線共通制御部3はFSTR14−1を
読出して送信キャラクタ要求ビットがオンであれば、TB
Pと送信データとを連続して5バイト送信FIFOメモリ11
−1に書込む。送信FIFOメモリ11−1には、TBP、TCR
0、TCR1、…、TCR3の順に送信データが書込まれる。TBP
のB0がオンの場合はTCR0が有効な送信キャラクタである
ことを示し、B0がオフの場合はTCR0が無効データである
ことを示す。同様に、B1とTCR1が対応し、B2のTCR2が対
応し、B3とTCR3に対応する。
First, the case of transmission will be described. Line common control unit 3
When a command from the transmission control unit is sent from the FIFO control unit 1-1 to the FIFO control unit 1-1 via the data bus 200, the bidirectional driver 13-1
Is written to the line adapter 2-1 through the line, the line adapter 2-1 is set to the transmission state, the transmission interrupt mask is released by the control circuit (not shown), and the transmission FIFO memory 11-
If the number of remaining bytes of 1 is 5 bytes or more, that is,
If 4 bytes of transmission data and 1 byte of TBP can be written, the transmission character request bit of FSTR14-1 is turned on (logic "1"). The line common control unit 3 scans the FIFO control units 1-1 to 1-8. When the interrupt is detected by the interrupt request line 400-1 by the scan of the FIFO control unit 1-1, the line common control unit 3 causes the FSTR14 Read -1. In this FSTR 14-1, a transmission character request bit from the FIFO control section 1-1 to the line common control section 3, a reception character takeover request bit, and a transmission interrupt for displaying the transmission / reception interrupt from the line adapter 2-1 as they are It consists of a request bit, a reception interrupt request bit, and a peripheral interrupt request bit. The line common control unit 3 reads FSTR14-1 and if the transmission character request bit is ON, TB
5 bytes of continuous transmission of P and transmission data FIFO memory 11
Write to -1. The transmission FIFO memory 11-1 has TBP and TCR.
Transmission data is written in the order of 0, TCR1, ..., TCR3. TBP
When B0 of is on, it indicates that TCR0 is a valid transmission character, and when B0 is off, it indicates that TCR0 is invalid data. Similarly, B1 and TCR1 correspond, TCR2 of B2 corresponds, and B3 and TCR3 correspond.

次に、回線アダプタ2−1から割込み要求線500−1を
介してFIFO制御部1−1に割込み要求があると、回線ア
ダプタ2−1のステータスレジスタを読出しLSTR15−1
に保持する。回線アダプタ2−1のステータスには、送
信キャラクタ要求ビット、受信キャラクタ引取り要求ビ
ット、送信割込みビット、受信割込みビットおよび周辺
割込みビットからなるが、送信割込みビット、受信割込
みビットおよび周辺割込みビットはLSTR15−1に読出す
ときと同時にFSTR14−1にもセットされる。送信FIFOメ
モリ11−1に1バイト以上スタックされていてかつLSTR
15−1に送信キャラクタ要求ビットがセットされている
と、制御回路18−1によって送信FIFOメモリ11−1から
1バイト読出しTBPR16−1にセットし、TBPR16−1にセ
ットされたTBPのB0がオンであれば、送信FIFOメモリ11
−1から1バイト(TCR0)読出し、データバス300−1
を介して回線アダプタ2−1の送信キャラクタレジスタ
に書込み、LSTR15−1の送信キャラクタ要求ビットをリ
セットして送信動作を終了する。ここで、TBPのB0がオ
フであれば、送信FIFOメモリ11−1からTCR0の空読出し
を行い、TBPのB1がオンであれば、さらに1バイトTCR1
を読出して回線アダプタ2−1の送信キャラクタレジス
タに書込む。この動作では、TBPのB0ないしB3まで順次
調べ、オンのBiに対応するTCRiを回線アダプタへ送出す
るようTCRi−1まで空読みする。同様にして、さらに回
線アダプタ2−1から割込み要求をLSTR15−1に読出す
と、送信FIFOメモリ11−1から順次TCRi+1を読出して
TCR3になるまで回線アダプタ2−1に送信データを送出
し、TCR3が送出されると次はTBPがTBPR16−1に読出さ
れ、前記動作を繰り返す。
Next, when there is an interrupt request from the line adapter 2-1 to the FIFO control section 1-1 via the interrupt request line 500-1, the status register of the line adapter 2-1 is read out and LSTR15-1
Hold on. The status of the line adapter 2-1 consists of a transmission character request bit, a reception character take-up request bit, a transmission interrupt bit, a reception interrupt bit and a peripheral interrupt bit. The transmission interrupt bit, the reception interrupt bit and the peripheral interrupt bit are LSTR15. It is also set in FSTR14-1 at the same time when it is read to -1. One byte or more is stacked in the transmission FIFO memory 11-1 and LSTR
When the transmission character request bit is set in 15-1, the control circuit 18-1 reads one byte from the transmission FIFO memory 11-1 and sets it in TBPR16-1, and the B0 of TBP set in TBPR16-1 is turned on. If so, transmit FIFO memory 11
-1 to 1 byte (TCR0) read, data bus 300-1
The transmission character register of the line adapter 2-1 is written to the transmission character request bit of LSTR15-1 and the transmission operation is completed. Here, if B0 of TBP is off, empty reading of TCR0 is performed from the transmission FIFO memory 11-1, and if B1 of TBP is on, one more byte TCR1
Is read and written in the transmission character register of the line adapter 2-1. In this operation, B0 to B3 of TBP are sequentially examined, and TCRi-1 corresponding to ON Bi is read idle until TCRi-1 is sent to the line adapter. Similarly, when an interrupt request is further read from the line adapter 2-1 to the LSTR15-1, TCRi + 1 is sequentially read from the transmission FIFO memory 11-1.
Transmission data is transmitted to the line adapter 2-1 until it becomes TCR3, and when TCR3 is transmitted, next, TBP is read to TBPR16-1 and the above operation is repeated.

この一連の送信動作で、TBPR16−1に読出されたTBPに
従って回線アダプタへ順次送信キャラクタを送出して有
するTBPのBi以降B3まで全てオフの場合は、Biに対するT
CR1からTCR3までは送信FIFOメモリ11−1から空読出し
を行って送信FIFOメモリ11−1から取り去る。また、TB
PR16−1にセットされたTBPのEOCビットがオンの場合
は、TBPのB0からB3まで送信キャラクタの送出または空
読みを行った後に、回線アダプタ2−1に書込み線600
−1および300−1を介して送信終了のコマンドを送出
する。また、制御回路により回線共通制御部3から送信
FIFOメモリ11−1に書込むバイト数、すなわち「0」な
いし「4」をカウントしており、このカウント値が
「0」の場合はTBPが送信FIFOメモリ11−1に書込まれ
るタイミングであり、このTBPのEOCビットを調査してオ
ンであれば、前述の送信割込みマスクをオンとし、TBP
に続く4バイトの送信データを送信FIFOメモリに書込ん
だ後に、FIFO制御部1−1から回線共通制御部3への送
信要求を抑止する。この送信の割込みマスクは、前述の
ように、書込み線600−1を介して送信終了のコマンド
を回線アダプタ2−1へ書込んだとき再び解除される。
In this series of transmission operations, transmission characters are sequentially transmitted to the line adapter in accordance with the TBP read by TBPR16-1, and if all of TBP from Bi to B3 are off, the T for Bi is
From CR1 to TCR3, empty reading is performed from the transmission FIFO memory 11-1, and the data is removed from the transmission FIFO memory 11-1. Also TB
If the EOC bit of TBP set in PR16-1 is on, after sending the transmission character from B0 to B3 of TBP or empty reading, write line 600 to line adapter 2-1.
-1 and 300-1 to send a transmission end command. In addition, the control circuit transmits from the line common control unit
It counts the number of bytes written to the FIFO memory 11-1, that is, "0" to "4". When this count value is "0", it is the timing at which TBP is written to the transmission FIFO memory 11-1. , If the EOC bit of this TBP is checked and it is on, the transmission interrupt mask is turned on and TBP is turned on.
After writing the 4 bytes of transmission data following to the transmission FIFO memory, the transmission request from the FIFO control unit 1-1 to the line common control unit 3 is suppressed. The interrupt mask of this transmission is canceled again when the transmission end command is written to the line adapter 2-1 via the write line 600-1, as described above.

次に、受信の場合について説明する。回線共通制御部3
から双方向ドライバ13−1を介して受信部初期設定およ
び受信制御のコマンドが回線アダプタ2−1へ書込まれ
ると、受信可能な状態になる。回線アダプタ2−1で1
キャラクタを受信すると、FIFO制御部1−1に割込み要
求線500−1を介して処理要求を行う。FIFO制御部1−
1はこの割込みを検出すると、LSTR15−1に回線アダプ
タ2−1のステータスを読出してセットし、ステータス
の受信キャラクタ引取り要求ビットがオンであれば、回
線アダプタ2−1の受信キャラクタレジスタから1キャ
ラクタ読出し受信FIFOメモリ12−1にスタックし、LSTR
15−1の受信キャラクタ引取り要求ビットをリセットす
る。以後同様に、回線アダプタ2−1から受信キャラク
タ引取り要求がある毎に受信FIFOメモリ12−1にスタッ
クしていき、4バイト(本実施例では、1キャラクタは
8ビットからなり1バイトと同じである。)スタックさ
れると、制御回路18−1によりRBPR17−1にRBPをセッ
トし、このRBPを受信FIFOメモリ12−1にスタックす
る。ここで、RBPのB0ないしB3は受信FIFOメモリ12−1
にスタックした受信キャラクタRCR0ないしRCR3にてそれ
ぞれ対応し、RCR0ないしRCR3の有効、無効状態を表す。
すなわち、B0ないしB3がオンの場合は対応するRCR0ない
しRCR3が有効受信データである。
Next, the case of reception will be described. Line common control unit 3
When a command for initial setting of the receiving section and a command for receiving control is written to the line adapter 2-1 via the bidirectional driver 13-1, the state becomes receivable. 1 in line adapter 2-1
When the character is received, a processing request is issued to the FIFO control section 1-1 via the interrupt request line 500-1. FIFO control unit 1-
When 1 detects this interrupt, it reads and sets the status of the line adapter 2-1 to LSTR15-1, and if the received character take-up request bit of the status is ON, 1 is received from the received character register of the line adapter 2-1. Stacked in character read / receive FIFO memory 12-1, and LSTR
Reset the received character take-up request bit of 15-1. After that, similarly, every time there is a request for receiving the received character from the line adapter 2-1, the received character is stacked in the receiving FIFO memory 12-1, and 4 bytes (in this embodiment, one character is 8 bits and is the same as 1 byte). After being stacked, the control circuit 18-1 sets the RBP in the RBPR 17-1 and stacks this RBP in the reception FIFO memory 12-1. Here, B0 to B3 of RBP are the reception FIFO memory 12-1.
The received characters RCR0 to RCR3 stacked on each correspond to each other, and represent the valid and invalid states of RCR0 to RCR3.
That is, when B0 to B3 are on, the corresponding RCR0 to RCR3 are valid reception data.

このように受信FIFOメモリ12−1にRBPを含めて5バイ
トスタックされると、制御回路によりFSTR14−1の受信
キャラクタ引取り要求ビットをオンにし、割込み線400
−1を介して回線共通制御部3に割込み要求を行う。回
線共通制御部3はFIFO制御部1−1をスキャンしたとき
に割込み要求があることを検出すると、FSTR14−1を読
出し、FSTR14−1の各ビットを調査して受信キャラクタ
引取り要求ビットがオンであれば、受信FIFOメモリ12−
1から5バイトを連続してRCR0からRBPの順に読出す。
回線共通制御部3では、このRBPに従って有効な受信キ
ャラクタのみをBM5へ転送する。なお、RBPのOEビット
は、回線アダプタ2−1からの割込み要求により読出し
たステータスに受信キャラクタ引取り要求ビットと受信
割込みビットが共にオンの場合にオンになる。すなわ
ち、回線アダプタ2−1でオーバランエラーが発生した
ことをRBPで回線共通制御部3に報告する。
When 5 bytes including RBP are stacked in the reception FIFO memory 12-1 in this way, the control circuit turns on the reception character take-up request bit of FSTR14-1 and interrupt line 400
An interrupt request is sent to the line common controller 3 via -1. When the line common control unit 3 detects that there is an interrupt request when scanning the FIFO control unit 1-1, it reads FSTR14-1, examines each bit of FSTR14-1 and turns on the receive character take-up request bit. If so, receive FIFO memory 12-
Reads 1 to 5 bytes in succession from RCR0 to RBP.
The line common control unit 3 transfers only valid received characters to BM5 according to this RBP. The OE bit of RBP is turned on when both the reception character take-up request bit and the reception interrupt bit 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 by RBP.

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

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

次に、第二の実施例装置の動作を第1図および第5図に
基づいて説明する。上位装置からの起動によってIFC4は
そのメインメモリから制御語を読出し解読し、メインメ
モリからBM5あるいはBM5からメインメモリへのデータ転
送を行う。MP6はBM5上のマイクロプラグラムを実行し、
IFC4あるいは回線共通制御部3からの処理要求を受付
け、IFC4あるいは回線共通制御部3へ制御コマンドを発
行する。また、MP6はBM5上に設けられた各回線対応の送
受信バッファ領域の管理を行う。回線共通制御部3はMP
6からの制御コマンドによって起動される。
Next, the operation of the apparatus of the second embodiment will be described with reference to FIGS. 1 and 5. Upon activation from the host device, IFC4 reads the control word from its main memory, decodes it, and transfers data from main memory to BM5 or from BM5 to main memory. MP6 runs a micro program on BM5,
It receives a processing request from the IFC4 or the line common controller 3, and issues a control command to the IFC4 or the line common controller 3. The MP6 also manages the send / receive buffer area for each line provided on the BM5. Line common control unit 3 is MP
It is started by the control command from 6.

送信の場合は、送信準備のためのコマンドを受領してFI
FO制御部1−1および回線アダプタ2−1の送信部を初
期設定し、あらかじめBM5上に設定された制御語を読出
し解読して、送信のDMA制御レジスタに送信データの転
送開始アドレスおよび転送バイト数を設定する。回線共
通制御部3は回線キスャン中にFIFO制御部1−1からの
送信要求を検出すると、送信のDMA制御レジスタに従っ
てBM5から4バイトを読出して有効または無効を表示す
る有効表示フラグを付加し、1バイトずつ4バイトを連
続してデータバス200を介してFIFO制御部1−1に転送
し、DMA制御レジスタと転送バイト数のカウントを更新
する。同様に送信要求がある毎に4バイトを連続してFI
FO制御部1−1にデータを読出し、送信終了時はMP6に
処理要求を行う。
In case of transmission, FI is received after receiving the command to prepare for transmission.
The FO controller 1-1 and the transmitter of the line adapter 2-1 are initialized, the control word set in advance on the BM5 is read and decoded, and the transfer start address and transfer byte of the transmission data are stored in the DMA control register for transmission. Set the number. When the line common control unit 3 detects a transmission request from the FIFO control unit 1-1 during the line scanning, it adds 4 bytes from BM5 according to the DMA control register for transmission and adds a valid display flag indicating valid or invalid, Four bytes one by one are continuously transferred to the FIFO control section 1-1 via the data bus 200, and the DMA control register and the count of the number of transfer bytes are updated. Similarly, every time there is a transmission request, 4 bytes are consecutively FI
Data is read to the FO control unit 1-1, and a processing request is sent to MP6 when the transmission is completed.

一方、受信の場合は、受信準備のコマンドをMP6から受
領するとFIFO制御部1−1および回線アダプタ2−1の
受信部を初期設定し、BM5上の受信バッファの書込み開
始アドレスをMP6に要求し、確保した書込み開始アドレ
スを受信のDMA制御レジスタに設定する。回線共通制御
部3は回線スキャン中にFIFO制御部1−1から受信要求
を検出すると、FIFO制御部1−1から有効表示フラグを
付加した受信データ4バイトを連続して読出し、受信の
DMA制御レジスタおよび有効表示フラグに従ってBM5に受
信データを書込み、DMA制御レジスタは更新される。FIF
O制御部1−1から受信要求がある毎にDMA制御レジスタ
を更新しながらBM5上に受信データを蓄積してゆき、受
信終了時はMP6に処理要求を行う。
On the other hand, in the case of reception, when the reception preparation command is received from MP6, the FIFO control unit 1-1 and the reception unit of the line adapter 2-1 are initialized and the write start address of the reception buffer on BM5 is requested to MP6. , Set the secured write start address in the receive DMA control register. When the line common control unit 3 detects a reception request from the FIFO control unit 1-1 during a line scan, it continuously reads out 4 bytes of reception data with a valid display flag from the FIFO control unit 1-1, and receives the reception data.
Received data is written to BM5 according to the DMA control register and valid display flag, and the DMA control register is updated. FIF
Whenever a reception request is received from the O control unit 1-1, the DMA control register is updated to accumulate the reception data on the BM5, and when the reception is completed, the MP6 is requested to process.

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

次に、本発明の特徴であるFIFO制御部について説明す
る。第5図はFIFO制御部1−1のブロック図である。こ
のFIFO制御部1−1は送信FIFOメモリ11−1と、受信FI
FOメモリ12−1と、双方向ドライバ13−1と、FIFO制御
部1−1のステータスレジスタ(以下、FSTRという。)
14−1と、回線アダプタのステータスを読出して保持す
るレジスタ(以下、LSTRという。)15−1と、送信終了
のコマンドを保持するレジスタ(以下、EOCRという。)
19−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 described. FIG. 5 is a block diagram of the FIFO control section 1-1. The FIFO control unit 1-1 includes a transmission FIFO memory 11-1 and a reception FIFO memory.
FO memory 12-1, bidirectional driver 13-1, and status register of the FIFO control section 1-1 (hereinafter referred to as FSTR).
14-1, a register for reading and holding the status of the line adapter (hereinafter referred to as LSTR) 15-1, and a register for holding a transmission end command (hereinafter referred to as EOCR).
19-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にスタックし、送信終了のコ
マンドはEOCR19−1に保持するが、これら以外の制御情
報を双方向ドライバ13−1を介して回線共通制御部3が
回線アダプタ2−1に直線にリードまたはライトする。
The transmission data from the line common control unit 3 and the reception data to the line common control unit 3 are stacked in the transmission FIFO memory 11-1 and the reception FIFO memory 12-1, respectively, and the transmission end command is held in the EOCR19-1. The line common control unit 3 linearly reads or writes the control information other than these to the line adapter 2-1 through the bidirectional driver 13-1.

まず、送信の場合について説明する。回線共通制御部3
からFIFO制御部1−1へデータバス200を介して送信制
御のコマンドが送出されると、双方向ドライバ13−1を
介して回線アダプタ2−1のコマンドレジスタに書込ま
れ、この回線アダプタ2−1を送信状態とすると共に、
図外の制御回路により送信の割込みマスクが解除され、
送信FIFOメモリ11−1の残りのバイト数が4バイト以上
あれば、FSTR14−1の送信キャラクタ要求ビットをオン
(論理「1」)にする。回線共通制御部3はFIFO制御部
1−1ないし1−8をスキャンしており、FIFO制御部1
−1のスキャンで割込み要求線400−1により割込みを
検出すると、回線共通制御部3はFSTR14−1を読み出
す。FSTR14−1には、FIFO制御部1−1から回線共通制
御部3への送信キャラクタ要求ビット、受信キャラクタ
引取り要求ビット、回線アダプタ2−1からの送受信割
込みをそのまま表示する送受信割込み要求ビットと受信
割込み要求ビットおよび周辺割込み要求ビットとの5ビ
ットからなり、回線共通制御部3はFSTR14−1を読出し
て送信キャラクタ要求ビットがオンであれば、有効表示
フラグと共に送信データの4バイトを連続して送信FIFO
メモリ11−1に書込む。送信FIFOメモリ11−1には送信
データがTCR0、TCR1、……、TCR3の順に書込まれる。有
効表示フラグB0がオンの場合はTCR0が有効なキャラクタ
であることを示し、B0がオフの場合はTCR0が無効データ
であることを示す。同様にB1とTCR1が対応し、B2とTCR2
が対応し、B3とTCR3が対応する。
First, the case of transmission will be described. Line common control unit 3
When a transmission control command is sent from the FIFO control unit 1-1 to the FIFO control unit 1-1 via the data bus 200, it is written in the command register of the line adapter 2-1 via the bidirectional driver 13-1. While setting -1 to the transmission state,
A control circuit (not shown) releases the transmission interrupt mask,
If the remaining number of bytes of the transmission FIFO memory 11-1 is 4 bytes or more, the transmission character request bit of FSTR 14-1 is turned on (logic "1"). The line common control unit 3 scans the FIFO control units 1-1 to 1-8, and the FIFO control unit 1
When the interrupt is detected by the interrupt request line 400-1 in the scan of -1, the line common control unit 3 reads FSTR14-1. The FSTR 14-1 includes a transmission character request bit from the FIFO control unit 1-1 to the line common control unit 3, a reception character takeover request bit, and a transmission / reception interrupt request bit for directly displaying a transmission / reception interrupt from the line adapter 2-1. It consists of 5 bits, a reception interrupt request bit and a peripheral interrupt request bit. The line common control unit 3 reads FSTR14-1 and if the transmission character request bit is ON, the valid display flag and 4 bytes of transmission data are consecutively set. Send FIFO
Write to memory 11-1. Transmission data is written in the transmission FIFO memory 11-1 in the order of TCR0, TCR1, ..., TCR3. When the valid display flag B0 is on, it indicates that TCR0 is a valid character, and when B0 is off, it indicates that TCR0 is invalid data. Similarly, B1 and TCR1 correspond, B2 and TCR2
Corresponds, and B3 and TCR3 correspond.

次に、回線アダプタ2−1から割込み要求線500−1を
介いてFIFO制御部1−1に割込み要求があると、回線ア
ダプタ2−1のステータスレジスタを読出しLSTR15−1
に保持する。回線アダプタ2−1のステータスには、送
信キャラクタ要求ビット、受信キャラクタ引取り要求ビ
ット、送信割込みビット、受信割込みビットおよび周辺
割込みビットからなるが、送信割込みビット、受信割込
みビットおよび周辺割込みビットはLSTR15−1に読出す
ときと同時にLSTR14−1にもセットされる。送信FIFOメ
モリ11−1に1バイト以上がスタックされていてかつLS
TR15−1に送信キャラクタ要求ビットがセットされてい
ると、制御回路18−1によって送信FIFOメモリ11−1か
ら1バイト(TCR0)を読出し、有効表示フラグB0がオン
であれば、データバス300−1を介して回線アダプタ2
−1の送信キャラクタレジスタに書込み、LSTR15−1の
送信キャラクタ要求ビットをリセットして送信動作を終
了する。ここで、TCR0に対応する有効表示フラグB0がオ
フであれば、送信FIFOメモリ1−1からTCTR0の空読出
しを行い、さらにTCR1を読出して対応する有効表示フラ
グB1がオンであれば、回線アダプタ2−1の送信キャラ
クタレジスタに書込む。このように送信FIFOメモリ11−
1から読出した有効表示フラグがオンになるまで空読出
しを行い、有効な送信キャラクタのみを回線アダプタ2
−1へ転送する。回線アダプタ2から送信要求がある毎
に同様の動作を繰返す。
Next, when there is an interrupt request from the line adapter 2-1 to the FIFO control section 1-1 via the interrupt request line 500-1, the status register of the line adapter 2-1 is read out and LSTR15-1
Hold on. The status of the line adapter 2-1 consists of a transmission character request bit, a reception character take-up request bit, a transmission interrupt bit, a reception interrupt bit and a peripheral interrupt bit. The transmission interrupt bit, the reception interrupt bit and the peripheral interrupt bit are LSTR15. It is also set in LSTR14-1 at the same time when it is read to -1. One byte or more is stacked in the transmission FIFO memory 11-1 and LS
When the transmission character request bit is set in TR15-1, one byte (TCR0) is read from the transmission FIFO memory 11-1 by the control circuit 18-1, and if the valid display flag B0 is on, the data bus 300- 1 through line adapter 2
-1 is written to the transmission character register, the transmission character request bit of LSTR15-1 is reset, and the transmission operation is ended. Here, if the valid display flag B0 corresponding to TCR0 is off, an empty read of TCTR0 is performed from the transmission FIFO memory 1-1, and if TCR1 is read and the corresponding valid display flag B1 is on, the line adapter is read. Write to the transmission character register 2-1. In this way, the transmit FIFO memory 11-
Empty reading is performed until the valid display flag read from 1 is turned on, and only valid transmission characters are sent to the line adapter 2
Transfer to -1. The same operation is repeated every time there is a transmission request from the line adapter 2.

以上のようにして送信キャラクタを転送してゆき、回線
共通制御部3がEOCR19−1に送信終了のコマンドを書込
むと前述の送信割込みマスクをオンにし、送信FIFOメモ
リ11−1から回線共通制御部3への送信要求を抑止し、
送信FIFOメモリ11−1に送信データを書込まないように
する。そして送信FIFOメモリ11−1にスタックされてい
るすべての有効な送信キャラクタを回線アダプタ2−1
へ転送すると、EOCR19−1の送信終了のコマンドを回線
アダプタ2−1のコマンドレジスタに書込み、同時に送
信割込みマスクを再び解除し、回線共通制御部3から送
信FIFOメモリ11−1への送信データの転送を可能にす
る。
The transmission character is transferred as described above, and when the line common control unit 3 writes a transmission end command in the EOCR 19-1, the above transmission interrupt mask is turned on and the line common control is performed from the transmission FIFO memory 11-1. Suppress the request to send to Part 3,
Do not write transmission data to the transmission FIFO memory 11-1. Then, all valid transmission characters stacked in the transmission FIFO memory 11-1 are transferred to the line adapter 2-1.
To the command register of the line adapter 2-1, the transmission interrupt mask is released again, and the transmission data from the line common control unit 3 to the transmission FIFO memory 11-1 is transferred to the transmission FIFO memory 11-1. Allow transfer.

次に、受信の場合について説明する。回線共通制御部3
から双方向ドライバ13−1を介して受信部初期設定およ
び受信制御のコマンドが回線アダプタ2−1に書込まれ
ると、受信可能状態になる。回線アダプタ2−1で1キ
ャラクタを受信すると、FIFO制御部1−1に割込み要求
線500−1を介して処理要求を行う。FIFO制御部1−1
はこの割込みを検出すると、LSTR15−1に回線アダプタ
のステータスを読出してセットし、ステータスの受信キ
ャラクタ引取り要求ビットがオンであれば、回線アダプ
タ2−1の受信キャラクタレジスタから1キャラクタ読
出し、受信FIFOメモリ12−1に有効表示フラグをオンと
してスタックし、LSTR15−1の受信キャラクタ引取り要
求ビットをリセットする。以後同様に、回線アダプタ2
−1から受信キャラクタ引取り要求がある毎に受信FIFO
メモリ12−1にスタックしてゆく。ここで、受信FIFOメ
モリ12−1にRCRiのキャラクタまでスタックし、その後
に回線アダプタから受信割込み要求があると、RCRi+1
からRCR3までのキャラクタにはダミーのデータが書込ま
れ、対応する有効表示フラグはB0ないしBiまでをオンに
し、Bi+1ないしB3までをオフにしてスタックする。こ
のように受信FIFOメモリ12−1に4バイトの受信キャラ
クタがスタックされると、制御回路18−1によりFSTR14
−1の受信キャラクタ引取り要求ビットをオンにし、割
込み線400−1を介して回線共通制御部3に割込み要求
を行う。回線共通制御部3はFIFO制御部1−1をスキャ
ンしたときに割込み要求があることを検出すると、FSTR
14−1を読出し、FSTR14−1の各ビットを調査して受信
キャラクタ引取り要求ビットがオンであれば、受信FIFO
メモリ12−1から4バイトを連続してRCR0からRCR3の順
に読出す。回線共通制御部3では、有効表示フラグに従
って有効な受信キャラクタのみをBM5へ転送する。
Next, the case of reception will be described. Line common control unit 3
When a command for receiving section initialization and reception control is written to the line adapter 2-1 via the bidirectional driver 13-1, the reception becomes ready. When the line adapter 2-1 receives one character, it makes a processing request to the FIFO control unit 1-1 via the interrupt request line 500-1. FIFO controller 1-1
When this interrupt is detected, the status of the line adapter is read and set in LSTR15-1, and if the receive character take-up request bit of the status is ON, one character is read from the receive character register of line adapter 2-1 and received. The valid display flag is turned on and stacked in the FIFO memory 12-1, and the received character take-up request bit of LSTR15-1 is reset. After that, similarly, line adapter 2
-1 Receive FIFO every time there is a request to receive the received character
Stack in memory 12-1. Here, when RCRi characters are stacked in the receive FIFO memory 12-1 and a receive interrupt request is issued from the line adapter after that, RCRi + 1
Dummy data is written to the characters from RCR3 to RCR3, and the corresponding valid display flags are set to B0 to Bi on and Bi + 1 to B3 off. When the 4-byte received character is stacked in the receive FIFO memory 12-1 in this way, the control circuit 18-1 causes the FSTR14
The received character take-up request bit of -1 is turned on, and an interrupt request is issued to the line common control unit 3 via the interrupt line 400-1. When the line common control unit 3 detects that there is an interrupt request when scanning the FIFO control unit 1-1, FSTR
14-1 is read, each bit of FSTR14-1 is examined, and if the receive character take-up request bit is on, the receive FIFO
4 bytes are continuously read from the memory 12-1 in the order of RCR0 to RCR3. The line common control unit 3 transfers only valid received characters to the BM5 according to the valid display flag.

以上、送信と受信について説明したが、送信FIFOメモリ
11−1および受信FIFOメモリ12−1にはFIFOメモリの残
りバイト数に空があれば、TCR0ないしTCR3あるいはRCR0
ないしRCR3をそれぞれ1組以上スタックすることも可能
である。また、前述したように、回線共通制御部3がFS
TR14−1を読出したときに送信割込みビット、受信割込
みビットおよび週辺割込みビットのいずれかがオンであ
る場合は、回線共通制御部3は回線アダプタ2−1から
双方向ドライバ13−1を介して送信割込み要因レジス
タ、受信割込み要因レジスタおよび周辺割込み要因レジ
スタを読出し、MP6に処理要求を行い、回線状態を制御
する。
The transmission and reception have been described above, but the transmission FIFO memory
11-1 and the reception FIFO memory 12-1 have TCR0 to TCR3 or RCR0 if there are empty bytes remaining in the FIFO memory.
It is also possible to stack one or more sets of each RCR3. In addition, as described above, the line common control unit 3
If any of the transmission interrupt bit, the reception interrupt bit, and the week side interrupt bit is on when TR14-1 is read, the line common control unit 3 causes the line adapter 2-1 to pass through the bidirectional driver 13-1. The transmit interrupt factor register, receive interrupt factor register, and peripheral interrupt factor register are read, and a processing request is sent to MP6 to control the line status.

次に、回線アダプタについて説明をする。第6図はHDLC
手順の送受信を行う回線アダプタの構成を示すブロック
構成図である。入出力制御回路21−1は回線アダプタ内
のリードまたはライト可能なレジスタの入出力制御を行
う回路であり、信号D0ないしD7はデータバス300−1と
授受され、アドレスA0ないしA2はリードレジスタ22′−
1またはライトレジスタ22−1のアドレスである。制御
線RDは読出しであることを指示する制御線であり、制御
線WRは書込みであることを指示する制御線である。ライ
トレジスタ22−1にはコマンドレジスタ、リセットレジ
スタおよび送信キャラクタレジスタがあり、コマンドレ
ジスタは回線アダプタの動作を制御するレジスタであ
り、リセットレジスタは回線アダプタ全体を初期状態に
するレジスタであり、送信キャラクタレジスタは送信キ
ャラクタを書込むレジスタである。リードレジスタ22′
−1には6種類のレジスタがあり、この内ステータスレ
ジスタは週辺割込みビット、送信キャラクタ要求ビッ
ト、送信割込みビット、受信割込みビットおよび受信キ
ャラクタ引取り要求ビットの5ビットからなり、それぞ
れ周辺割込みレジスタに割込み要因がセットされている
こと、送信キャラクタレジスタへの書込み要求、送信割
込みレジスタに割込み要因がセットされていること、受
信割込みレジスタに割込み要因がセットされていること
および受信キャラクタレジスタからの受信データの引取
り要求が表示されている。周辺状態レジスタは周辺入力
ピンPI1なしいPI5の状態を表示している。INT信号はス
テータスレジスタの各ビットをオアした信号であり、い
ずれかの割込みがあることを示している。
Next, the line adapter will be described. Figure 6 shows HDLC
It is a block block diagram which shows the structure of the line adapter which transmits and receives a procedure. The input / output control circuit 21-1 is a circuit for controlling input / output of a readable or writable register in the line adapter, and signals D 0 to D 7 are transmitted / received to / from the data bus 300-1 and addresses A 0 to A 2 Is the read register 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 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 initializes the entire line adapter. The register is a register for writing a transmission character. Read register 22 ′
-1 has 6 types of registers, of which the status register consists of 5 bits: week side interrupt bit, transmission character request bit, transmission interrupt bit, reception interrupt bit, and reception character take-up request bit. The interrupt factor is set in, the write request to the transmit character register, the interrupt factor is set in the transmit interrupt register, the interrupt factor is set in the receive interrupt register, and the receive from the receive character register A request to collect data is displayed. The peripheral status register indicates the status of the peripheral input pins PI1 and PI5. The INT signal is a signal obtained by ORing each bit of the status register and indicates that there is any interrupt.

送信キャラクタレジスタに送信データがセットされる
と、送受信制御回路24−1によって内部データバス700
−1を介して送信回路25−1の送信シフトレジスタに書
込まれ、ここで並列直列の変換を行い、ドライバ回路27
−1を介して回線へ送出される。ドライバ回路27−1は
送信データのコード変換およびレベル変換を行う。受信
時には、レシーバ回路28−1で回線上のデータをレベル
変換およびコード変換し、送受信制御回路24−1により
受信回路26−1の受信シフトレジスタに1ビットずつシ
フトし、1キャラクタ受信すると内部データバス700−
1を介してリードレジスタ22′−1の受信キャラクタレ
ジスタにセットされて、ステータスレジスタの受信デー
タ引取り要求のビットをオンにして割込み要求を行う。
When transmission data is set in the transmission character register, the transmission / reception control circuit 24-1 controls the internal data bus 700.
-1 is written in the transmission shift register of the transmission circuit 25-1 and the parallel-serial conversion is performed here.
Sent to the line via -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 performs level conversion and code conversion of the data on the line, the transmission / reception control circuit 24-1 shifts the received shift register of the reception circuit 26-1 bit by bit, and when one character is received, the internal data is received. Bus 700-
It is set in the receive character register of the read register 22'-1 via 1 and the bit of the receive data take-up request of the status register is turned on to make an interrupt request.

〔発明の効果〕〔The invention's effect〕

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

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

第1図は本発明実施例装置の構成を示すブロック構成
図。 第2図は第一実施例のFIFO制御部の構成を示すブロック
構成図。 第3図および第4図はTBPおよびRBPのフォーマット図。 第5図は第二実施例のFIFO制御部の構成を示すブロック
構成図。 第6図は回線アダプタの構成を示すブロック構成図。 1……FIFO制御部、2……回線アダプタ、3……回線共
通制御部、4……インタフェース制御部(IFC)、5…
…バッファメモリ(BM)、6……マイクロプロセッサ
(MP)、11……送信FIFOメモリ、12……受信FIFOメモ
リ、13……双方向ドライバ、14……ステータスレジスタ
(FSTR)、15……レジスタ(LSTR)、16……レジスタ
(TBPR)、17……レジスタ(RBPR)、18……制御回路、
19……レジスタ(EOCR)、21……入出力制御回路、22…
…ライトレジスタ、22′……リードレジスタ、23……割
込み制御回路、24……送受信制御回路、25……送信回
路、26……受信回路、27……ドライバ回路、28……レシ
ーバ回路、29……周辺入出力制御回路、100……プロセ
ッサバス、200、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 configuration diagram showing the configuration of the FIFO control unit of the first embodiment. Figures 3 and 4 are TBP and RBP format diagrams. FIG. 5 is a block diagram showing the structure of the FIFO control unit of the second embodiment. FIG. 6 is a block diagram showing the configuration of the line adapter. 1 ... FIFO control unit, 2 ... line adapter, 3 ... line common control unit, 4 ... interface control unit (IFC), 5 ...
… Buffer memory (BM), 6 …… Microprocessor (MP), 11 …… Transmission FIFO memory, 12 …… Reception FIFO memory, 13 …… Bidirectional driver, 14 …… Status register (FSTR), 15 …… Register (LSTR), 16 ... Register (TBPR), 17 ... Register (RBPR), 18 ... Control circuit,
19 ... Register (EOCR), 21 ... Input / output control circuit, 22 ...
... write register, 22 '... read register, 23 ... interrupt control circuit, 24 ... transmission / reception control circuit, 25 ... transmission circuit, 26 ... reception circuit, 27 ... driver circuit, 28 ... receiver circuit, 29 ... peripheral input / output control circuit, 100 ... processor bus, 200, 300 ... data bus, 400, 500 ... interrupt request line, 600 ... command write line for transmission end, 700 ...
… Internal data bus.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の通信回路のそれぞれに接続された回
線アダプタ(2−1〜2−8)と、 上位装置とこの回線アダプタとの間の経路を設定する回
線共通制御部(3)とを備えた通信制御装置において、 上記回線共通制御部と上記回線アダプタとの間の送信経
路に挿入された先入れ先出しメモリである第一のメモリ
(11)と、 上記回線共通制御部と上記回線アダプタとの間の受信経
路に挿入された先入れ先出しメモリである第二のメモリ
(12)と、 上記第一および第二のメモリを制御する制御手段と を備え、 上記制御手段は、 所定の複数キャラクタの送信データを1単位として上記
回線共通制御部から上記第一のメモリに書込んだ後、上
記回線アダプタに1キャラクタごとに転送する手段と、 所定の複数キャラクタの受信データが上記第二のメモリ
に蓄積された後上記回線共通制御部へ所定の複数キャラ
クタの受信データを1単位として転送する手段と を含むことを特徴とする通信制御装置。
1. A line adapter (2-1 to 2-8) connected to each of a plurality of communication circuits, and a line common control unit (3) for setting a route between a host device and this line adapter. A communication control device comprising: 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; the line common control unit and the line adapter; A second memory (12) which is a first-in first-out memory inserted in the reception path between the two and a control means for controlling the first and second memories, wherein the control means transmits a predetermined plurality of characters. Data is written as one unit from the line common control unit to the first memory and then transferred to the line adapter for each character. A communication control device which comprises a means for transferring as a unit of the received data of a predetermined plurality characters to the line common control unit after being stored in the memory.
JP61186669A 1986-08-08 1986-08-08 Communication control device Expired - Lifetime JPH06105922B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61186669A JPH06105922B2 (en) 1986-08-08 1986-08-08 Communication control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61186669A JPH06105922B2 (en) 1986-08-08 1986-08-08 Communication control device

Publications (2)

Publication Number Publication Date
JPS6342545A JPS6342545A (en) 1988-02-23
JPH06105922B2 true JPH06105922B2 (en) 1994-12-21

Family

ID=16192586

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH06105922B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0547086Y2 (en) * 1988-10-13 1993-12-10
DE102006051866A1 (en) 2006-10-31 2008-05-08 Robert Bosch Gmbh A method of transmitting a frame and method and system for transmitting a frame of data transmission block

Family Cites Families (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
JPS6342545A (en) 1988-02-23

Similar Documents

Publication Publication Date Title
EP0125561B1 (en) Data-processing system having multi-buffer adapter between a system channel and an input/output bus
US4942515A (en) Serial communications controller with FIFO register for storing supplemental data and counter for counting number of words within each transferred frame
US5133062A (en) RAM buffer controller for providing simulated first-in-first-out (FIFO) buffers in a random access memory
US4949301A (en) Improved pointer FIFO controller for converting a standard RAM into a simulated dual FIFO by controlling the RAM's address inputs
US5151999A (en) Serial communications controller for transfer of successive data frames with storage of supplemental data and word counts
JPS5810235A (en) Interface circuit
EP0539782B1 (en) Circuit for controlling data transfer from VME bus to SCSI disk drive
EP0260693B1 (en) Program mode access control system
US7035956B2 (en) Transmission control circuit, reception control circuit, communications control circuit, and communications control unit
US5896549A (en) System for selecting between internal and external DMA request where ASP generates internal request is determined by at least one bit position within configuration register
US6584512B1 (en) Communication DMA device for freeing the data bus from the CPU and outputting divided data
US7284077B2 (en) Peripheral interface system having dedicated communication channels
JP3703532B2 (en) Computer system with multiplexed address bus
JPH06105922B2 (en) Communication control device
JPH08314854A (en) Data transfer system and device relating to the same
JPH06105923B2 (en) Communication control device
EP2096551A1 (en) Channel device, information processing system and data transfer method
JP2533886B2 (en) Data transfer method
JPH0581165A (en) Data transfer circuit
JPS63228856A (en) Communication controller
JPS6367702B2 (en)
JP3442099B2 (en) Data transfer storage device
JP2826780B2 (en) Data transfer method
JPS6371766A (en) Buffer transferring system
JPS61138357A (en) Information transfer system between processors

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term