JPH0235500B2 - - Google Patents

Info

Publication number
JPH0235500B2
JPH0235500B2 JP55164846A JP16484680A JPH0235500B2 JP H0235500 B2 JPH0235500 B2 JP H0235500B2 JP 55164846 A JP55164846 A JP 55164846A JP 16484680 A JP16484680 A JP 16484680A JP H0235500 B2 JPH0235500 B2 JP H0235500B2
Authority
JP
Japan
Prior art keywords
data
transmission
processing device
transmitting
circuit
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
JP55164846A
Other languages
Japanese (ja)
Other versions
JPS5789358A (en
Inventor
Zenichi Yashiro
Mineo Nishiwaki
Shuhei Arima
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP55164846A priority Critical patent/JPS5789358A/en
Publication of JPS5789358A publication Critical patent/JPS5789358A/en
Publication of JPH0235500B2 publication Critical patent/JPH0235500B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor

Description

【発明の詳細な説明】 本発明は、データ通信に於ける回線制御方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a line control system in data communications.

データ通信を行う為の通信制御装置は、例えば
第1図に示すように、プロセツサ110とメモリ
120とを有する処理装置100と、複数の回線
制御部200と、データ通信回線300とから構
成されている。
A communication control device for performing data communication includes, for example, as shown in FIG. 1, a processing device 100 having a processor 110 and a memory 120, a plurality of line control units 200, and a data communication line 300. There is.

ここで、処理装置100と回線制御部200の
間ではキヤラクタ(伝送制御文字と一般の文字が
含まれる)の転送が、また回線制御部200とデ
ータ通信回線300との間では送信データと受信
データの転送が行われている。また、処理装置1
00での通信手順は、同期ベーシツク手順に従つ
ている。
Here, characters (including transmission control characters and general characters) are transferred between the processing device 100 and the line control unit 200, and transmitted data and received data are transferred between the line control unit 200 and the data communication line 300. transfer is taking place. In addition, the processing device 1
The communication procedure at 00 follows the synchronous basic procedure.

処理装置100の処理負荷軽減の為に、回線制
御部200に、自動データ送受信機能、ダイレク
トメモリアクセス(DMA)機能を設けることが
提案されている。ここで、同期ベーシツク手順の
テキスト開始信号STXやテキスト終了信号ETX
等の処理装置100に於ける処理を必要とし、こ
の間はDMA転送を停止させる必要がある。これ
は同期ベーシツク手順では、処理装置100が受
信する伝送制御文字の種類に対応して状態を変化
させており、この状態が決定されるまで次のキヤ
ラクタは受信できないためである。
In order to reduce the processing load on the processing device 100, it has been proposed that the line control unit 200 be provided with an automatic data transmission/reception function and a direct memory access (DMA) function. Here, the text start signal STX and text end signal ETX of the synchronous basic procedure are
etc., and it is necessary to stop DMA transfer during this time. This is because, in the synchronous basic procedure, the state is changed in accordance with the type of transmission control character received by the processing device 100, and the next character cannot be received until this state is determined.

また、伝送制御文字の送受信時、処理装置10
0は複数のデータ通信回線300を時分割的に制
御処理しているものであるから、他のデータ通信
回線からの伝送制御文字の処理を同時に行う必要
があり、このため伝送制御文字についての処理が
終了するまでに時間がかかることがある。この場
合に、データ通信回線300と回線制御部の間で
データのオーバラン又はアンダランが発生する。
Also, when transmitting and receiving transmission control characters, the processing device 10
0 controls multiple data communication lines 300 in a time-sharing manner, so it is necessary to process transmission control characters from other data communication lines at the same time. It may take some time to finish. In this case, data overrun or underrun occurs between the data communication line 300 and the line control unit.

以下に、通常のDMA転送の技術について説明
する。
Below, the technology of normal DMA transfer will be explained.

通常のDMA転送方式は、コンピユータシステ
ムでの、周辺装置とメモリ間のデータ転送を、中
央処理装置のメモリに対する書込みや読出しの機
能を用いずに、DMA転送実行装置により実行す
る方式である。DMA転送実行装置には、予め中
央処理装置から転送元あるいは転送先となるメモ
リのアドレスが送られている。そこで、DMA転
送実行装置は、中央制御装置あるいは周辺装置か
ら起動がかかると予め通知されたアドレスに基づ
き、周辺装置とメモリ間のデータの転送を実行す
る。DMA転送方式では、中央処理装置の書込み
や読出しの機能を用いず、データの転送を行うた
めに、メモリでのデータ転送実行中でも中央処理
装置は、データ転送以外の処理を継続して実行す
ることができる。
A typical DMA transfer method is a method in which data transfer between a peripheral device and a memory in a computer system is performed by a DMA transfer execution device without using the memory writing and reading functions of the central processing unit. The DMA transfer execution device is sent in advance from the central processing unit the address of the memory to be the transfer source or the transfer destination. Therefore, the DMA transfer execution device executes data transfer between the peripheral device and the memory based on an address that is notified in advance from the central control device or the peripheral device when it is activated. In the DMA transfer method, data is transferred without using the write or read functions of the central processing unit, so the central processing unit continues to perform processes other than data transfer even while data is being transferred in memory. Can be done.

なお、通常のDMA転送方式でのメモリ内の連
続するアドレスへの書込みや読出しは、中央処理
装置からDMA転送実行装置に初期値となるメモ
リのアドレスと転送するデータ数を予め通知し、
DMA転送実行装置がデータを1単位転送するご
とにアドレを+1することにより行われている。
Note that when writing to or reading from consecutive addresses in memory using the normal DMA transfer method, the central processing unit notifies the DMA transfer execution device of the initial value memory address and the number of data to be transferred in advance.
This is done by incrementing the address by 1 each time the DMA transfer execution device transfers one unit of data.

以下に従来技術の詳細について説明する。 The details of the prior art will be explained below.

第2図は従来の回線制御部の要部ブロツク線図
であり、210はインタフエース制御回路、22
0はデータ送受信回路、230は自動データ送受
信回路、310は送信回線、320は受信回線、
330は送信タイミング信号線、340は受信タ
イミング信号線である。この回線制御部200の
データ送受信回路220は、受信回線320から
の受信データをキヤラクタへ組立てる処理及び処
理装置100からのキヤラクタを送信データへ分
解する処理を行うものでインタフエース制御回路
210を介して処理装置100との間に並列形式
でデータの送受信を行い、データ通信回線とは、
タイミング信号ST,RTに同期して直列形式で
データの送受信を行うものである。
FIG. 2 is a block diagram of the main parts of a conventional line control section, in which 210 is an interface control circuit, 22
0 is a data transmission/reception circuit, 230 is an automatic data transmission/reception circuit, 310 is a transmission line, 320 is a reception line,
330 is a transmission timing signal line, and 340 is a reception timing signal line. The data transmitting/receiving circuit 220 of the line control unit 200 performs the processing of assembling the received data from the receiving line 320 into characters and the processing of disassembling the characters from the processing device 100 into transmission data. A data communication line is a line that transmits and receives data to and from the processing device 100 in a parallel format.
Data is transmitted and received in serial format in synchronization with timing signals ST and RT.

データ通信回線を複数収容する場合、処理装置
100のメモリ120との間でのキヤラクタの転
送に関してDMA機能を有する自動データ送受信
回路230を設けることにより、プロセツサ11
0が伝送制御文字以外の一般の文字についての転
送処理を行う必要がなくなり、データのオーバー
ランやアンダランが発生する確率が低くなる。
When accommodating a plurality of data communication lines, the processor 11
There is no need to perform transfer processing for general characters other than 0 as a transmission control character, and the probability of data overrun or underrun occurring is reduced.

ここで、DMA転送の対象となる文字は、メモ
リ120からデータ送受信回路220への転送で
は伝送制御文字と一般の文字で、データ送受信回
路220からメモリ120への転送では、一般の
文字である。
Here, the characters targeted for DMA transfer are transmission control characters and general characters when transferred from the memory 120 to the data transmission/reception circuit 220, and general characters when transferred from the data transmission/reception circuit 220 to the memory 120.

自動データ送受信回路230は、上記の通常の
DMA転送方式でのDMA転送実行装置の機能を
有している。ここで、自動データ送受信回路23
0には、DMA転送を行うために必要なメモリ1
20内のアドレスが処理装置100から予め通知
されている。
The automatic data transmitting/receiving circuit 230 has the above-mentioned normal
It has the function of a DMA transfer execution device in the DMA transfer method. Here, automatic data transmission/reception circuit 23
0 contains the memory 1 required to perform DMA transfer.
The address within 20 is notified in advance by the processing device 100.

しかし、テキスト開始信号STX、テキスト終
了信号ETX、伝送制御拡張信号DLE、同期信号
SYN等の処理装置100に於ける処理を必要と
する伝送制御文字を送受信する時には、以下に述
べる処理が必要なためにオーバランやアンダーラ
ンが発生する確率は高い。
However, text start signal STX, text end signal ETX, transmission control extension signal DLE, synchronization signal
When transmitting and receiving transmission control characters such as SYN that require processing in the processing device 100, there is a high probability that overruns and underruns will occur because the processing described below is necessary.

つまり、伝送制御文字がデータ送受信回路22
0に入力された時点で、自動データ送受信回路2
30に対してDMAの起動を停止するとともに、
処理装置100に対して、割り込み信号が発生す
る。この割り込み信号を受けた処理装置100
が、割り込みの種類により、伝送制御文字の種類
を判断して対応する処理を開始し、その伝送制御
文字の処理が終了すると、その旨をデータ送受信
回路220に通知し、再び自動データ送受信回路
230が起動される。DMA転送が再開される。
このように、処理装置100が、伝送制御文字の
処理を行つている間にデータ送受信回路220と
処理装置100の間のキヤラクタの転送が行えな
いため、受信回線320からデータ送受信回路2
20への受信データのオーバラン又はデータ送受
信回路220から送信回線310への送信データ
のアンダランが発生する可能性があつた。
In other words, the transmission control character is
0, the automatic data transmitting/receiving circuit 2
In addition to stopping DMA startup for 30,
An interrupt signal is generated to the processing device 100. The processing device 100 that received this interrupt signal
determines the type of transmission control character based on the type of interrupt and starts corresponding processing, and when the processing of the transmission control character is completed, it notifies the data transmission/reception circuit 220 to that effect, and then starts the automatic data transmission/reception circuit 230 again. is started. DMA transfer is resumed.
In this way, while the processing device 100 is processing transmission control characters, characters cannot be transferred between the data transmission and reception circuit 220 and the processing device 100.
There was a possibility that an overrun of received data to the transmission line 310 or an underrun of transmission data from the data transmission/reception circuit 220 to the transmission line 310 would occur.

なお、プロセツサが伝送制御文字を受信した場
合の処理は、公知のベーシツク手順で規定された
状態遷移に基づいている。ここで、プロセツサの
データ転送に関する状態は各データ通信回線ごと
に規定されており、この状態は、伝送制御文字を
受信すれば、この状態は変化する。
Note that the processing performed when the processor receives a transmission control character is based on state transitions defined by a known basic procedure. Here, the state regarding data transfer of the processor is defined for each data communication line, and this state changes when a transmission control character is received.

例えば、あるデータ通信回線から、STXの到
来をプロセツサが認知した場合には、プロセツサ
の状態はデータ受付状態からデータ受信状態へ遷
移する。データ受信状態では、プロセツサは、こ
のデータ通信回線から送られてくる一般の文字の
列を1かたまりのデータであると判断する。さら
に、ETXを受信すれば、プロセツサは、1かた
まりのデータを受信し終えたと判断して、データ
受付状態へ遷移する。
For example, when the processor recognizes the arrival of STX from a certain data communication line, the state of the processor changes from the data reception state to the data reception state. In the data reception state, the processor determines that a string of ordinary characters sent from this data communication line is one block of data. Furthermore, if ETX is received, the processor determines that it has finished receiving one block of data, and transitions to the data reception state.

本発明は、簡単な構成により上記の従来技術の
欠点であるデータのオーバラン又はアンダランの
発生を防止することを目的とするものである。以
下、実施例について詳細に説明する。
An object of the present invention is to prevent the occurrence of data overruns or underruns, which are the drawbacks of the above-mentioned prior art, with a simple configuration. Examples will be described in detail below.

第3図は本発明の実施例のブロツク線図であ
り、第2図と同一符号は同一部分を示し、240
は送信フアーストインフアーストアウト(FIFO)
キユー、250は受信フアーストインフアースト
アウト(FIFO)キユー、260はタイミング信
号ST,RTの数倍(例えば2倍)の速度のタイ
ミング信号ST′,RT′を作成するタイミング作成
回路である。送信FIFOキユー240及び受信
FIFOキユー250とデータ送受信回路220と
の間は、タイミング作成回路260で作成したタ
イミング信号ST′,RT′に同期してデータが転送
される。
FIG. 3 is a block diagram of an embodiment of the present invention, in which the same reference numerals as in FIG. 2 indicate the same parts, and 240
is transmit first-in-first-out (FIFO)
The queue 250 is a receiving first-in-first-out (FIFO) queue, and the reference numeral 260 is a timing generation circuit that generates timing signals ST' and RT' at several times (for example, twice) the speed of the timing signals ST and RT. Transmission FIFO queue 240 and reception
Data is transferred between the FIFO queue 250 and the data transmission/reception circuit 220 in synchronization with timing signals ST' and RT' created by the timing creation circuit 260.

また、通常の状態ではデータ送受信回路220
はタイミング信号ST′,RT′の速度でキヤラクタ
の組立分解を行う。
In addition, under normal conditions, the data transmission/reception circuit 220
Assembles and disassembles the character at the speed of timing signals ST' and RT'.

ここで、自動データ送受信回路230は、通常
のDMA転送の機能を有しており、データ送受信
回路220とメモリ120間の文字の転送を行つ
ている。DMA転送の対象となる文字は、メモリ
120からデータ送受信回路220への転送では
伝送制御文字と一般の文字で、データ送受信回路
220からメモリ120への転送では、一般の文
字である。
Here, the automatic data transmitting/receiving circuit 230 has a normal DMA transfer function and transfers characters between the data transmitting/receiving circuit 220 and the memory 120. Characters to be subjected to DMA transfer are transmission control characters and general characters in transfer from the memory 120 to the data transmission/reception circuit 220, and general characters in transfer from the data transmission/reception circuit 220 to the memory 120.

自動データ送受信回路230は、通常のDMA
転送方式でのDMA転送実行装置の機能を有して
いる。ここで、自動データ送受信回路230に
は、予めDMA転送を行うために必要なメモリ1
20内のアドレスが処理装置100から通知され
ている。
The automatic data transmitting/receiving circuit 230 is a normal DMA
It has the function of a DMA transfer execution device in the transfer method. Here, the automatic data transmitting/receiving circuit 230 includes memory 1 necessary for performing DMA transfer in advance.
The address within 20 has been notified from the processing device 100.

データ送受信回路220は、受信データからキ
ヤラクタへの組立てを終了した時点で、自動デー
タ送受信回路230にその旨を通知する。自動デ
ータ送受信回路230は、データ送受信回路22
0からの通知を受けた時点で、データ送受信回路
220内の文字を1文字、メモリ120へDMA
転送する。
When the data transmitting/receiving circuit 220 finishes assembling the received data into a character, it notifies the automatic data transmitting/receiving circuit 230 to that effect. The automatic data transmitting/receiving circuit 230 is the data transmitting/receiving circuit 22
Upon receiving the notification from 0, DMA transfers one character in the data transmission/reception circuit 220 to the memory 120.
Forward.

処理装置100で転送すべきキヤラクタが生じ
た場合には、自動データ送受信回路230に、そ
の旨を通知する。自動データ送受信回路230
は、処理装置100からの通知を受けた時点で、
予め処理装置100から送られたアドレスに従い
メモリ120内のキヤラクタをデータ送受信回路
220へDMA転送する。また、メモリ120内
の連続するアドレスに記憶された文字の転送は、
予め処理装置100から転送すべきデータのアド
レスの初期値と文字数を自動データ送受信回路2
30に通知することにより、通常のDMA転送方
式に従つて行われる。
When a character to be transferred is generated in the processing device 100, the automatic data transmission/reception circuit 230 is notified of this fact. Automatic data transmission/reception circuit 230
At the time of receiving the notification from the processing device 100,
The characters in the memory 120 are DMA-transferred to the data transmitting/receiving circuit 220 according to the address sent from the processing device 100 in advance. Furthermore, the transfer of characters stored at consecutive addresses in the memory 120 is as follows:
The automatic data transmitting/receiving circuit 2 determines the initial value of the address and number of characters of the data to be transferred from the processing device 100 in advance.
30, this is done according to the normal DMA transfer method.

なお、DMA転送の実行により、データ送受信
回路220の受信FIFO250からの受信データ
の読込み及び送信FIFO240への送信データの
転送動作は、中断されることない。
Note that, due to execution of the DMA transfer, the operations of the data transmitting/receiving circuit 220 to read the received data from the receive FIFO 250 and to transfer the transmit data to the transmit FIFO 240 are not interrupted.

データ通信回線でのデータは、タイミング信号
ST,RTに同期しているため、送信回線310
と受信回線320の速度はタイミング信号ST,
RTと同一の速度である。また、データ送受信回
路220から送信FIFOキユー240へのデータ
速度は送信回線310へ送信されるデータ速度の
数倍(例えば2倍)のデータ速度である。さら
に、送信されるデータがない場合でも同期信号
SYNがデータ送受信回路220で発生され連続
して送信FIFOキユー240へ転送されている。
ここで、出力より入力の速度の方が速いため、こ
の送信FIFOキユー240は通常満杯の状態であ
る。また同様に受信FIFOキユー250からデー
タ送受信回路220へのデータ速度は受信回線3
20から受信される速度の数倍(例えば2倍)の
データ速度となつており、入力より出力データ速
度の方が速いため通常空の状態である。
Data on a data communication line is a timing signal
Since it is synchronized with ST and RT, the transmission line 310
and the speed of the receiving line 320 are determined by the timing signal ST,
The speed is the same as RT. Further, the data rate from the data transmitting/receiving circuit 220 to the transmitting FIFO queue 240 is several times (for example, twice) the data rate transmitted to the transmitting line 310. In addition, synchronization signals can be used even when there is no data to be transmitted.
SYN is generated by the data transmitting/receiving circuit 220 and continuously transferred to the transmitting FIFO queue 240.
Here, since the input speed is faster than the output speed, this transmit FIFO queue 240 is normally full. Similarly, the data rate from the reception FIFO queue 250 to the data transmission/reception circuit 220 is the reception line 3.
The data rate is several times (for example, twice) the rate received from 20, and the output data rate is faster than the input, so it is normally empty.

このように、送信FIFOキユー240は通常デ
ータが満杯になるように制御され、受信FIFOキ
ユー250は通常空になるように制御されるもの
である。
In this way, the transmitting FIFO queue 240 is normally controlled to be full of data, and the receiving FIFO queue 250 is normally controlled to be empty.

送信FIFOキユー240は送信待ちデータが満
杯であるか否かの検出機能を有し、満杯であるこ
とを検出した信号はタイミング作成回路260に
加えられ、それによつてタイミング信号ST′の発
生が停止される。又受信FIFOキユー250は蓄
積内容が零であるか否かの検出機能を有し、零で
あることを検出した信号はタイミング作成回路2
60に加えられ、それによつてタイミング信号
RT′の発生が停止される。
The transmission FIFO queue 240 has a function of detecting whether the data waiting to be transmitted is full or not, and the signal detected to be full is applied to the timing generation circuit 260, thereby stopping the generation of the timing signal ST'. be done. In addition, the reception FIFO queue 250 has a function of detecting whether or not the accumulated content is zero, and the signal detected as zero is sent to the timing generation circuit 2.
60, thereby timing signal
The generation of RT' is stopped.

送信FIFOキユー240には、タイミング信号
ST′に同期してデータ送受信回路220からデー
タが転送されて蓄積され、タイミング信号STに
同期して送信データSDが送信FIFOキユー240
から送信回線310に送出される。又受信FIFO
キユー250には受信回線320からの受信デー
タRDがタイミング信号RTに同期して蓄積され、
タイミング信号RT′に同期してデータ送受信回路
220により読出される。
The transmission FIFO queue 240 has a timing signal.
Data is transferred and accumulated from the data transmitting/receiving circuit 220 in synchronization with ST', and the transmission data SD is transferred to the transmission FIFO queue 240 in synchronization with the timing signal ST.
The signal is sent to the transmission line 310. Also receive FIFO
The received data RD from the receiving line 320 is stored in the queue 250 in synchronization with the timing signal RT.
The data is read out by the data transmitting/receiving circuit 220 in synchronization with the timing signal RT'.

自動データ送受信回路230によりメモリ12
0からデータ送受信回路220に伝送制御文字が
受信された場合、または受信FIFOキユー250
からの伝送制御文字がデータ送受信回路220に
設定された場合には、データ送受信回路220か
ら自動データ送受信回路230に対しDMAの起
動を停止する旨の指示を出すとともに、処理装置
100に対して割り込み信号が発生し、それと同
時にタイミング信号ST′,RT′の発生が停止され
る。さらに、この割り込み信号を受けた処理装置
100が、割り込みの種類により、伝送制御文字
の種類を判断して処理を開始し、その伝送制御文
字の処理が終了すると、その旨をデータ送受信回
路220に通知し、再び自動データ送受信回路2
30が起動されてDMA転送が再開され、それと
同時にタイミング信号ST′,RT′の発生が再開さ
れる。
The automatic data transmitting/receiving circuit 230 allows the memory 12 to
0 to the data transmitting/receiving circuit 220, or when the receiving FIFO queue 250
When a transmission control character is set in the data transmitting/receiving circuit 220, the data transmitting/receiving circuit 220 issues an instruction to the automatic data transmitting/receiving circuit 230 to stop the activation of DMA, and also sends an interrupt to the processing device 100. The signal is generated, and at the same time, the generation of timing signals ST' and RT' is stopped. Furthermore, the processing device 100 that receives this interrupt signal determines the type of transmission control character based on the type of interrupt and starts processing, and when the processing of the transmission control character is completed, a notification to that effect is sent to the data transmission/reception circuit 220. Notify the automatic data transmission/reception circuit 2 again.
30 is activated and DMA transfer is restarted, and at the same time, generation of timing signals ST' and RT' is restarted.

なお、伝送制御文字としては、STX(テキスト
開始信号)、ETX(テキスト終了信号)、DLE(伝
送制御拡張信号)、SYN(同期信号)等があり、
プロセツサ110が伝送制御文字を受信した場合
の処理は、公知のベーシツク手順で規定された状
態遷移に基づいて処理が行われている。処理装置
100においてベーシツク手順で規定された状態
遷移に基づく伝送制御文字の処理が行われている
間、送信FIFOキユー240に蓄積された送信デ
ータが送信回線310に送出され、又受信FIFO
キユー250には受信回線320より受信データ
RDが蓄積される。
Transmission control characters include STX (text start signal), ETX (text end signal), DLE (transmission control extension signal), SYN (synchronization signal), etc.
When processor 110 receives a transmission control character, processing is performed based on state transitions defined by a known basic procedure. While the processing device 100 is processing transmission control characters based on the state transition specified in the basic procedure, the transmission data accumulated in the transmission FIFO queue 240 is sent out to the transmission line 310, and the transmission data accumulated in the transmission FIFO queue 240 is sent to the transmission line 310, and
The queue 250 receives data received from the receiving line 320.
RD is accumulated.

なお、DMA転送の実行中で有つても、タイミ
ング信号ST′,RT′が発生されているかぎり、デ
ータ送受信回路220と受信FIFOキユー250
の間及びデータ送受信回路220と送信FIFOキ
ユー240の間のデータ転送動作は、中断される
ことない。
Note that even if DMA transfer is in progress, as long as the timing signals ST' and RT' are generated, the data transmission/reception circuit 220 and reception FIFO queue 250
Data transfer operations between the data transmitting/receiving circuit 220 and the transmitting FIFO queue 240 are not interrupted.

次に、DMA転送中であり、かつタイミング信
号ST′,RT′が発生されている場合での動作を説
明する。
Next, the operation when DMA transfer is in progress and timing signals ST' and RT' are being generated will be described.

データ送受信回路220は、受信FIFOキユー
250からの受信データを読み込んだら、受信デ
ータから一般の文字への組立てを終了した時点
で、自動データ送受信回路230にその旨を通知
する。自動データ送受信回路230は、データ送
受信回路220からの通知を受けた時点で、他の
データ通信回線に対応した回線制御部200とメ
モリ120との間のDMA転送が行われていない
場合は、データ送受信回路220内の一般の文字
を1文字、メモリ120へDMA転送する。他の
データ通信回線に対応した回線制御部200とメ
モリ120との間のDMA転送が行われている場
合は、その終了を待ち、メモリ120へDMA転
送する。
After reading the received data from the reception FIFO queue 250, the data transmitting/receiving circuit 220 notifies the automatic data transmitting/receiving circuit 230 when it finishes assembling the received data into general characters. If the automatic data transmitting/receiving circuit 230 receives the notification from the data transmitting/receiving circuit 220 and DMA transfer between the line control unit 200 and the memory 120 corresponding to another data communication line is not performed, the automatic data transmitting/receiving circuit 230 transfers the data. One general character in the transmitter/receiver circuit 220 is DMA-transferred to the memory 120. If a DMA transfer is being performed between the line control unit 200 corresponding to another data communication line and the memory 120, the DMA transfer to the memory 120 is performed after waiting for its completion.

処理装置100で転送すべき文字がが生じた場
合には、自動データ送受信回路230に、その旨
を通知する。自動データ送受信回路230は、処
理装置100からの通知を受けた時点で、他のデ
ータ通信回線に対応した回線制御部200とメモ
リ120との間のDMA転送が行われていない場
合は、予め記憶したアドレスに従いメモリ120
内の文字をデータ送受信回路220へDMA転送
する。他のデータ通信回線に対応した回線制御部
200とメモリ120との間のDMA転送が行わ
れている場合は、その終了を待ち、データ送受信
回路220へ文字のDMA転送する。
When a character to be transferred occurs in the processing device 100, the automatic data transmitting/receiving circuit 230 is notified of this fact. If DMA transfer between the line control unit 200 corresponding to another data communication line and the memory 120 is not performed at the time of receiving the notification from the processing device 100, the automatic data transmission/reception circuit 230 stores data in advance. Memory 120 according to the address
The characters within are DMA transferred to the data transmitting/receiving circuit 220. If a DMA transfer is being performed between the line control unit 200 and the memory 120 corresponding to another data communication line, wait for the completion of the DMA transfer, and then DMA transfer the characters to the data transmitting/receiving circuit 220.

前述の如く、送信FIFOキユー240及び受信
FIFOキユー250を設けたことにより、例えば
テキスト開始信号STX、テキスト終了信号
ETX、伝送制御拡張信号DLE、同期信号SYN等
の処理装置100での処理を必要とする伝送制御
文字、を受信あるいは送信する場合にも、処理装
置100における処理時間が送信回線310ある
いは受信回線320の転送速度より余分にかかつ
ても、送信の場合には既に送信FIFOキユー24
0に蓄積されている送信データSDを送信回線3
10に送出することによりデータ送受信回路22
0でのアンダランの防止が可能であり、また受信
の場合は受信回線320からの受信データRDを
受信FIFOキユー250に蓄積しておくことによ
りデータ送受信回路220でのオーバランを防止
することが可能となる。
As mentioned above, the transmit FIFO queue 240 and receive
By providing the FIFO queue 250, for example, text start signal STX, text end signal
Even when receiving or transmitting transmission control characters that require processing by the processing device 100, such as ETX, transmission control extension signal DLE, and synchronization signal SYN, the processing time in the processing device 100 is In the case of transmission, the transmission FIFO queue 24 is already
Transfer the transmission data SD stored in 0 to transmission line 3
10, the data transmitting/receiving circuit 22
0 can be prevented, and in the case of reception, by storing the received data RD from the reception line 320 in the reception FIFO queue 250, it is possible to prevent an overrun in the data transmission/reception circuit 220. Become.

以上説明したように、本発明は、データが満杯
になるように制御される送信FIFOキユー240
及びデータが空になるように制御される受信
FIFOキユー250を設けたことにより、処理装
置100の処理を必要とするSTX,ETE,
DLE,SYN等の伝送制御文字の送信又は受信時
に、その伝送制御文字の処理が完了するまで、送
信FIFOキユー240に蓄積されたデータを送出
し、又受信FIFOキユー250に受信データを蓄
積することができるので、データのオーバラン及
びアンダランを防止することができる利点があ
る。
As explained above, the present invention provides a transmission FIFO queue 240 that is controlled to be full of data.
and reception controlled so that the data is empty.
By providing the FIFO queue 250, STX, ETE, etc. that require processing by the processing device 100,
When transmitting or receiving a transmission control character such as DLE or SYN, transmit the data accumulated in the transmission FIFO queue 240 and accumulate the received data in the reception FIFO queue 250 until the processing of the transmission control character is completed. This has the advantage of preventing data overruns and underruns.

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

第1図は通信制御装置のブロツク線図、第2図
は従来の回線制御部のブロツク線図、第3図は本
発明の実施例の回線制御部のブロツク線図であ
る。 100は処理装置、110はプロセツサ、12
0はメモリ、200は回線制御部、210はイン
タフエース制御部、220はデータ送受信回路、
230は自動データ送受信回路、240は送信
FIFOキユー、250は受信FIFOキユー、260
はタイミング作成回路、300はデータ通信回
線、310は送信回線、320は受信回線、33
0は送信タイミング信号線、340は受信タイミ
ング信号線である。
FIG. 1 is a block diagram of a communication control device, FIG. 2 is a block diagram of a conventional line control section, and FIG. 3 is a block diagram of a line control section according to an embodiment of the present invention. 100 is a processing device, 110 is a processor, 12
0 is a memory, 200 is a line control section, 210 is an interface control section, 220 is a data transmission/reception circuit,
230 is an automatic data transmission/reception circuit, 240 is a transmission
FIFO queue, 250 is receive FIFO queue, 260
3 is a timing generation circuit, 300 is a data communication line, 310 is a transmission line, 320 is a reception line, 33
0 is a transmission timing signal line, and 340 is a reception timing signal line.

Claims (1)

【特許請求の範囲】 1 プロセツサとメモリとを有する処理装置と、
データ通信回線を収容した回線制御部とから構成
され、回線制御部と処理装置との間で転送される
キヤラクタとして一般の文字と伝送制御文字があ
り、前記回線制御部が処理装置からのキヤラクタ
と処理装置への一般の文字をDMA転送する回路
を備えている通信制御装置に於いて、 前記データ通信回線からの受信データを受信し
てキヤラクタとして組立てた後、前記処理装置へ
転送し、あるいは前記処理装置からのキヤラクタ
を受信して該キヤラクタを送信データに分解し、
前記データ通信回線へ向け転送するデータ送受信
回路と、該データ送受信回路と前記データ通信回
線との間に送信データを蓄積する送信フアースト
インフアーストアウトキユーおよび受信データを
蓄積する受信フアーストインフアーストアウトキ
ユーを設け、 前記データ送受信回路で受信したキヤラクタが
伝送制御文字である場合には、前記データ送受信
回路は、処理装置にその旨を連絡し、前記処理装
置での前記伝送制御文字の処理が終了するまで、
前記受信フアーストインフアーストアウトキユー
から前記データ送受信回路への入力を停止し、ま
た前記データ送受信回路から前記送信フアースト
インフアーストアウトキユーへの送信データの出
力を停止する制御を行い、 送信フアーストインフアーストアウトキユーは
上記データ通信回線にデータを送信するタイミン
グより速いタイミングで上記データ送受信回路よ
り送信データを受入れて送信データが満杯となる
ようにタイミング作成回路により制御され、 受信フアーストインフアーストアウトキユー
は、上記データ通信回線より受信データを受入れ
るタイミングより速いタイミングで上記データ送
受信回路に受信データを転送して受信データが空
となるように前記タイミング作成回路により制御
されることを特徴とする回線制御方式。
[Claims] 1. A processing device having a processor and a memory;
It consists of a line control unit that accommodates a data communication line, and characters transferred between the line control unit and the processing device include general characters and transmission control characters. In a communication control device equipped with a circuit for DMA transfer of general characters to a processing device, the received data from the data communication line is received and assembled as a character, and then transferred to the processing device, or receiving a character from a processing device and decomposing the character into transmission data;
a data transmission/reception circuit that transfers data to the data communication line; a transmission first-in-first-out queue that stores transmission data between the data transmission and reception circuit and the data communication line; and a reception first-input queue that stores reception data. A strikeout queue is provided, and if the character received by the data transmitting/receiving circuit is a transmission control character, the data transmitting/receiving circuit notifies a processing device to that effect and causes the processing device to process the transmission control character. until the end of
performing control to stop input from the receiving first-in-first-out queue to the data transmitting/receiving circuit and stopping output of transmitting data from the data transmitting/receiving circuit to the transmitting first-in-first-out queue; The first-in-first-out queue is controlled by a timing generation circuit so that the data to be sent is received from the data transmission/reception circuit at a timing faster than the timing at which data is sent to the data communication line, and the data to be sent is full. The in-first-out queue is controlled by the timing generation circuit so that the received data is transferred to the data transmitting/receiving circuit at a timing faster than the timing at which the received data is accepted from the data communication line so that the received data becomes empty. Characteristic line control method.
JP55164846A 1980-11-22 1980-11-22 Line control system Granted JPS5789358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55164846A JPS5789358A (en) 1980-11-22 1980-11-22 Line control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55164846A JPS5789358A (en) 1980-11-22 1980-11-22 Line control system

Publications (2)

Publication Number Publication Date
JPS5789358A JPS5789358A (en) 1982-06-03
JPH0235500B2 true JPH0235500B2 (en) 1990-08-10

Family

ID=15801026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55164846A Granted JPS5789358A (en) 1980-11-22 1980-11-22 Line control system

Country Status (1)

Country Link
JP (1) JPS5789358A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6014555A (en) * 1983-07-06 1985-01-25 Fuji Facom Corp Serial data receiver
US5247616A (en) * 1989-10-23 1993-09-21 International Business Machines Corporation Computer system having different communications facilities and data transfer processes between different computers

Also Published As

Publication number Publication date
JPS5789358A (en) 1982-06-03

Similar Documents

Publication Publication Date Title
US4494190A (en) FIFO buffer to cache memory
US5019966A (en) Dual processors using busy signal for controlling transfer for predetermined length data when receiving processor is processing previously received data
JPH05282241A (en) Method and device for burst data transfer
JPH01277928A (en) Printer
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JPH0235500B2 (en)
JP2570847B2 (en) Data transfer method
JP2752456B2 (en) Channel device
JPH0249584B2 (en)
JPS6188635A (en) Signal transmitting and receiving circuit
JP2945123B2 (en) Communications system
JP2552015B2 (en) Data transfer device
JPH023345B2 (en)
JPS63228855A (en) Communication controller
JPH10116245A (en) Dma controller
JP3146864B2 (en) Unidirectional loop transmission circuit
JPH10320345A (en) Bus controller
JPH0417492B2 (en)
JPS6294042A (en) Communication control equipment
JPS61264829A (en) Control system for interruption of network controller
JPH08272719A (en) Communication interface circuit
JPH03270334A (en) Reception controller in start-stop synchronizing communication
JPS6015973B2 (en) Communication control device
JPH0697447B2 (en) Communication controller of processing device
JPH02258358A (en) Communication controller in laser printer