JPH0817413B2 - Communication control circuit - Google Patents
Communication control circuitInfo
- Publication number
- JPH0817413B2 JPH0817413B2 JP62098108A JP9810887A JPH0817413B2 JP H0817413 B2 JPH0817413 B2 JP H0817413B2 JP 62098108 A JP62098108 A JP 62098108A JP 9810887 A JP9810887 A JP 9810887A JP H0817413 B2 JPH0817413 B2 JP H0817413B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- data
- guarantee
- transmission
- 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
Links
Landscapes
- Communication Control (AREA)
Description
【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第5図、第6図) 発明が解決しようとする問題点 問題点を解決するための手段(第1図) 作用 実施例 (a)一実施例の説明 (第2図、第3図、第4図) (b)他の実施例の説明 発明の効果 〔概要〕 送信データの送信終了後の最終データ保障時間経過後
RS信号をオフとする通信制御回路において、ダミーデー
タ発生回路とRS信号をオフするタイミング制御を行う保
障回路を設けることによって、プログラムで最終データ
の保障制御をする必要を省くものである。DETAILED DESCRIPTION [Table of Contents] Outline Industrial field of application Conventional technology (Figs. 5 and 6) Problems to be solved by the invention Means for solving problems (Fig. 1) Action Embodiment (a) Description of one embodiment (FIGS. 2, 3, and 4) (b) Description of another embodiment [Outline of the invention] [Outline] Elapse of final data guarantee time after completion of transmission of transmission data rear
In the communication control circuit for turning off the RS signal, by providing a dummy data generating circuit and a guarantee circuit for performing timing control for turning off the RS signal, it is possible to omit the need for guarantee control of final data by a program.
本発明はデータ通信においてRS(送信要求)−CS(送
信可)制御を用いてデータの送信を行う通信制御回路に
関し、特に回線終端装置へのRS信号オフのタイミング制
御を回路内で実行できる通信制御回路に関する。The present invention relates to a communication control circuit for transmitting data by using RS (transmission request) -CS (transmission possible) control in data communication, and in particular, communication in which timing control of RS signal off to a line termination device can be executed in the circuit. Regarding the control circuit.
データ通信を行うには、装置としてデータ通信制御を
効率良く行うことが求められている。In order to perform data communication, it is required that the device efficiently perform data communication control.
第5図(A)に示す1対の通信装置1a、1bが電話回線
lを利用して通信を行うには、モデム(変復調装置)を
含む回線終端装置2a、2bを介在させて行う必要がある。In order for the pair of communication devices 1a and 1b shown in FIG. 5 (A) to communicate using the telephone line 1, it is necessary to intervene the line termination devices 2a and 2b including a modem (modulator / demodulator). is there.
このような通信装置1a、1bは回線終端装置2a、2bに、
送信に際しては、RS(送信要求)信号を発し、CS(送信
可)信号を受けてからSD(送信データ)信号を発し、一
方受信に際しては、CD(キャリアデテクト)信号と、RD
(受信データ)信号を受けるように定められている。Such communication devices 1a and 1b are connected to the line termination devices 2a and 2b,
At the time of transmission, it issues an RS (transmission request) signal, after receiving a CS (transmission possible) signal, it issues an SD (transmission data) signal, while on the other hand, it receives a CD (carrier detect) signal and RD.
It is defined to receive the (received data) signal.
この送信制御において、RS−CS制御を行うには、第5
図(B)に示す如く、RS信号オンとし、CS信号がオンと
なってデータの送信を開始し、送信終了時最後のデータ
を渡した後、ダミーデータを追加して、最終データから
時間T0だけRS信号を遅らせてオフするようにしている。In this transmission control, to perform RS-CS control, the fifth
As shown in the figure (B), when the RS signal is turned on, the CS signal is turned on, data transmission is started, the last data is passed at the end of transmission, dummy data is added, and time T is passed from the last data. The RS signal is delayed by 0 and turned off.
即ち、最終データが相手側に到達する前にRS信号をオ
フしてしまうと、回線終端装置が動作を停止してしま
い、データの保障ができないため、最終データが確実に
回線終端装置等へ届くことを時間保障し、RS信号をオフ
するものである。That is, if the RS signal is turned off before the final data reaches the other end, the line terminating device stops operating, and the data cannot be guaranteed. Therefore, the final data reliably reaches the line terminating device. That guarantees the time and turns off the RS signal.
このため従来、第6図に示す如く、通信装置1a(1b)
内では、CPU3にバスBUSを介し通信制御回路4が設けら
れ、通信制御回路4が回線終端装置2a(2b)に接続され
ている。通信制御回路4の送信側はRS信号用のレジスタ
40と送信データバッファ41とで構成されており、CPU3の
プログラムによって、レジスタ40のRS制御信号を管理
し、且つ送信データバッファ41に送信すべきデータを次
々とバスBUSを介してセットして、データ送信を行わし
める。Therefore, conventionally, as shown in FIG. 6, the communication device 1a (1b)
Inside, the CPU 3 is provided with the communication control circuit 4 via the bus BUS, and the communication control circuit 4 is connected to the line terminating device 2a (2b). The transmission side of the communication control circuit 4 is a register for RS signals
It is composed of 40 and the transmission data buffer 41, manages the RS control signal of the register 40 by the program of the CPU 3, and sets the data to be transmitted to the transmission data buffer 41 one after another via the bus BUS, Send data.
プログラムはレジスタ40にセットするRS制御信号を管
理しているので、プログラムは送信終了時最後のデータ
を通信制御回路4に渡してからプログラムの方でタイマ
監視或いは最終データの次に複数バイトのダミーデータ
を追加して通信制御回路4に渡すことにより、RS制御信
号をオフするようにしていた。Since the program manages the RS control signal set in the register 40, the program passes the last data at the end of transmission to the communication control circuit 4 and then the program monitors the timer or a dummy of a plurality of bytes next to the final data. The RS control signal is turned off by adding data and passing it to the communication control circuit 4.
このように、従来技術では、プログラムが最終データ
の保障処理を行う必要があるため、次のデータ通信処理
を行うまでの前処理は前述の保障処理を意識せずには行
えない。As described above, in the related art, since the program needs to perform the guarantee process of the final data, the pre-process until the next data communication process cannot be performed without being aware of the guarantee process.
即ち、最終データ送出後も、ダミーデータの作成、送
出、RS信号のオフ、オフ確認という処理がプログラムに
課せられ、プログラムの負担が大きいという問題があ
り、次の処理に早期に移行できないという問題も生じて
いた。That is, even after the final data is transmitted, the process of creating and transmitting dummy data, turning off the RS signal, and confirming the off is imposed on the program, and there is a problem that the load of the program is heavy and the process cannot be moved to the next process early. Was also occurring.
本発明は、プログラムの負担を軽減して送信制御しう
る通信制御回路を提供することを目的とする。An object of the present invention is to provide a communication control circuit capable of controlling transmission while reducing the load on a program.
第1図は本発明の原理説明図である。 FIG. 1 is an explanatory view of the principle of the present invention.
図中、第6図で示したものと同一のものは同一の記号
で示してあり、42は保障回路であり、レジスタ40のRS制
御信号がオフとなったことに応じてRS信号をオフするタ
イミングを制御するものであり、43はダミーデータの発
生回路であり、保障回路42によって最終データの保障形
態としてダミーデータを発生するものである。In the figure, the same components as those shown in FIG. 6 are designated by the same symbols, and 42 is a guarantee circuit, which turns off the RS signal in response to the RS control signal of the register 40 being turned off. Timing control is provided, and 43 is a dummy data generation circuit, which is used by the guarantee circuit 42 to generate dummy data as a form of guaranteeing the final data.
本発明では、保障回路42がプログラムによってレジス
タ40のRS制御信号がオフされると、最終データの保障形
態処理を行い、即ちダミーデータを発生し、しかる後に
RS信号をオフするようにしている。In the present invention, when the guarantee circuit 42 turns off the RS control signal of the register 40 by the program, the guarantee form process of the final data is performed, that is, the dummy data is generated, and thereafter,
The RS signal is turned off.
従って、プログラムは最終データとRS制御信号オフを
回路4へ渡せば、最終データの保障処理を行わなくてよ
いので、負荷が軽減される。Therefore, if the program passes the final data and the RS control signal OFF to the circuit 4, it is not necessary to guarantee the final data, and the load is reduced.
(a) 一実施例の説明 第2図は本発明の一実施例構成図であり、第3図は第
2図の要部説明図である。(A) Description of an Embodiment FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is an explanatory view of main parts of FIG.
図中、第1図及び第5図で示したものと同一のものは
同一の信号で示してあり、42aは保障形態レジスタであ
り、RSオフ制御の最終データの保障形態がCPU3(プログ
ラム)よりセットされるものであり、第3図に示すよう
に、最終データの保障をするか否かを示す保障ビット
と、最終データを保障する際に最終データの次に送信す
るデータ(ダミーデータ)が同期コードかマークパター
ンかを指定するダミーデータ指定と、RS信号をオフにし
た時点でプログラム(CPU3)に対し割込を上げるか否か
を示し割込有無と、ダミーデータの送出バイト数がセッ
トされる。In the figure, the same components as those shown in FIGS. 1 and 5 are indicated by the same signals, 42a is a guarantee mode register, and the guarantee mode of the final data of RS OFF control is from the CPU3 (program). As shown in FIG. 3, a guarantee bit indicating whether or not the final data is guaranteed and a data (dummy data) to be transmitted next to the final data when guaranteeing the final data are set. Specify the dummy data to specify the sync code or mark pattern, and indicate whether to interrupt the program (CPU3) when the RS signal is turned off. To be done.
42bは最終データ保障回路であり、レジスタ40のRS制
御信号SRSがオン(“0")からオフ(“1")になった時
に保障形態レジスタ42aの内容により、最終データ保障
処理期間デート信号GSを“ロー”(「0」)とし、且つ
この期間に保障形態レジスタ42aの内容に従って保障処
理を行うものであり、42cはアンドゲートであり、RS制
御信号SRSとゲート信号GSとの論理積をとり、RS信号を
発するもの、43aは同期コード発生部であり、最終デー
タ保障回路42bの選択出力に応じ同期コードを送出する
もの、43bはマーク発生部であり、最終データ保障回路4
2bの選択出力に応じマークを出力するものである。Reference numeral 42b is a final data guarantee circuit. When the RS control signal SRS of the register 40 is turned on (“0”) to off (“1”), the final data guarantee processing period date signal GS is set according to the contents of the guarantee mode register 42a. Is "low"("0"), and the guarantee process is performed in accordance with the contents of the guarantee mode register 42a during this period. 42c is an AND gate, and the logical product of the RS control signal SRS and the gate signal GS is calculated. That is, the one that issues the RS signal, 43a is the sync code generator, that sends the sync code according to the selected output of the final data guarantee circuit 42b, and 43b is the mark generator, the final data guarantee circuit 4
The mark is output according to the selective output of 2b.
44aはオアゲートであり、送信データバッファ41、同
期コード発生部43a、マーク発生部43bの出力の論理和を
とるもの、44bは転送用シフトレジスタであり、オアゲ
ート44aの出力を規定の送信タイミングでシフトして送
信データSDとして回線終端装置2a(2b)に出力するも
の、45は出力レジスタであり、アンドゲート42cの出力
であるRS信号がセットされ、バスBUSを介しプログラム
(CPU3)がRS信号オフを読みとれるようにしたものであ
る。44a is an OR gate, which takes the logical sum of the outputs of the transmission data buffer 41, the synchronization code generation unit 43a, and the mark generation unit 43b, and 44b is a transfer shift register, which shifts the output of the OR gate 44a at the specified transmission timing. And output as transmission data SD to the line terminating device 2a (2b), 45 is an output register, the RS signal which is the output of the AND gate 42c is set, and the program (CPU3) turns off the RS signal via the bus BUS. Is designed to be read.
第4図は本発明の一実施例動作説明図である。 FIG. 4 is a diagram for explaining the operation of the embodiment of the present invention.
プログラムは予め、保障形態レジスタ42aに前述の第
3図の保障形態内容をセットする。このセットは、最初
だけでよく、変更する以外は、後にセットする必要はな
い。The program previously sets the guarantee form contents of FIG. 3 in the guarantee form register 42a. This set only needs to be set first and does not need to be set later, except for changes.
次に、プログラムはバスBUSを介し入力レジスタ40のR
S制御信号SRSをオン(“0")とすると、ゲート信号GSは
“1"であるから、RS信号がオフ“1"からオン“0"に変わ
り、回線終端装置に伝えられる。Next, the program passes the R of the input register 40 via the bus BUS.
When the S control signal SRS is turned on (“0”), since the gate signal GS is “1”, the RS signal changes from off “1” to on “0” and is transmitted to the line terminating equipment.
プログラムは図示しないルートで回線終端装置からCS
(送信可)信号のオンを検出すると、送信を開始する。The program is from the line terminating equipment to CS
When the (transmission enabled) signal is detected to be on, transmission is started.
即ち、バスBUSより送信データを送信データを送信デ
ータバッファ41にセットし、オアゲート44a、転送用シ
フトレジスタ44bを介し送信データSDとして回線終端装
置を出力して送信を行う。That is, the transmission data is set from the bus BUS in the transmission data buffer 41, and the line terminating device is output as the transmission data SD via the OR gate 44a and the transfer shift register 44b to perform transmission.
一電文を送信終了する場合、プログラムは送信データ
バッファ41に最終データを渡した後、バスBUSを介し入
力レジスタ40のRS制御信号SRSをオフ“1"とする。When ending the transmission of one message, the program passes the final data to the transmission data buffer 41, and then turns off the RS control signal SRS of the input register 40 via the bus BUS to “1”.
最終データ保障回路42bは入力レジスタ40のRS制御信
号SRSがオフされたことにより、最終データ送出後、予
めセットされた保障形態レジスタ42aの内容をもとに動
作を行い、それが終了した時点で回線終端装置に対して
RS信号をオフとする。Since the RS control signal SRS of the input register 40 is turned off, the final data guarantee circuit 42b operates based on the preset contents of the guarantee mode register 42a after the final data is transmitted, and at the end of that operation. For line terminator
Turn off the RS signal.
即ち、最終データ保障回路42bは、バイトカウンタ、
フリップフロップ、ゲートで構成され、RS制御信号SRS
のオフによって保障形態レジスタ42aの内容をロード
し、保障ビットが“1"であれば、保障を行うため、ゲー
ト信号GSを“ロー”としてRS信号をオン“0"に保ち、ダ
ミーデータ指定部に従って同期コード、又はマーク発生
回路43a、43bのいずれかを選択し、送信データバッファ
41の動作を禁止し、送出バイト数分選択した発生回路43
a又は43bから同期コード又はマークを発生せしめオアゲ
ート44a、転送用シフトレジスタ44bを介し回線終端装置
へ与える。バイトアウンタでダミーコードを送出バイト
数分送出したと検出すると、最終データ保障処理が終了
し、これによってゲート信号GSを“ハイ”(“1")とす
る。従って、アンドゲート42cからRS信号は最終データ
保障処理終了後オフ“1"となる。That is, the final data security circuit 42b uses the byte counter,
Comprised of flip-flop and gate, RS control signal SRS
The content of the security mode register 42a is loaded by turning off the switch, and if the security bit is "1", the gate signal GS is set to "low" and the RS signal is kept on to "0" to ensure the security. Select either the sync code or the mark generation circuits 43a, 43b according to
Generating circuit 43 that prohibits the operation of 41 and selects the number of bytes to send 43
A synchronization code or mark is generated from a or 43b and is given to the line terminating device via an OR gate 44a and a transfer shift register 44b. When the byte counter detects that the dummy code has been transmitted for the number of transmission bytes, the final data guarantee process is completed, and the gate signal GS is set to "high"("1"). Therefore, the RS signal from the AND gate 42c is turned off "1" after the final data guarantee process is completed.
このアンドゲート42cの出力RS信号は出力レジスタ45
にセットされる。従って、最終データ保障回路42bは保
障形態レジスタ42aの割込有無が割込有(イネーブル)
と指定されていれば、このRS信号のオフで割り込みを発
生するが、割込無(ディセーブル)であっても、プログ
ラムが次の送信データの送信の際出力レジスタ45のRS信
号をリードして、RS信号のオフを確認できる。The output RS signal of the AND gate 42c is output to the output register 45.
Is set to Therefore, in the final data guarantee circuit 42b, the presence / absence of an interrupt in the guarantee mode register 42a has an interrupt (enabled).
If this is specified, an interrupt will be generated when this RS signal is turned off, but the program will read the RS signal of the output register 45 when the next transmission data is sent, even if no interrupt (disable) is specified. You can confirm that the RS signal is off.
一方、保障形態レジスタ42aの保障ビットが“0"なら
ば、保障を行わず、RS制御信号SRSのオフによって直ち
にRS信号をオフとする。On the other hand, if the security bit of the security mode register 42a is "0", security is not performed and the RS signal is immediately turned off by turning off the RS control signal SRS.
上述の如く、保障形態レジスタ42aにRSオフ制御にお
ける最終データの保障形態を予めセットすることによっ
て種々の保障形態処理が可能となる。As described above, by presetting the guarantee form of the final data in the RS off control in the guarantee form register 42a, various guarantee form processes can be performed.
(b) 他の実施例の説明 上述の実施例では、RS信号のオフ時に割り込みを発生
させているが、この方法として、RS信号がオフとなると
CS信号もオフとなるのでCS信号のオフ時点で割り込みを
上げるようにしてもよく、予め保障形態が固定なら、バ
スBUSに接続されたレジスタ42aを設ける必要はない。(B) Description of Other Embodiments In the above-mentioned embodiments, an interrupt is generated when the RS signal is turned off.
Since the CS signal is also turned off, the interrupt may be raised when the CS signal is turned off. If the guarantee form is fixed in advance, it is not necessary to provide the register 42a connected to the bus BUS.
以上本発明を実施例により説明したが、本発明は本発
明の主旨に従い種々の変形が可能であり、本発明からこ
れらを排除するものではない。Although the present invention has been described with reference to the embodiments, the present invention can be variously modified according to the gist of the present invention, and these modifications are not excluded from the present invention.
以上説明した様に、本発明によれば、プログラムは最
終データを通信制御回路に渡し、最終データの保障処理
を行うことなく、RS信号のオフ制御が行えるので、次に
送信するデータの準備ができる等負荷が軽減されるとい
う効果を奏し、より効率の良いデータ通信ができる。
又、通信制御回路をLSI化することによって、これに要
するコストアップも最小限で済むという効果も奏する。As described above, according to the present invention, the program passes the final data to the communication control circuit, and the RS signal OFF control can be performed without performing the guarantee processing of the final data. As a result, the effect of reducing the equal load can be achieved, and more efficient data communication can be performed.
Further, by implementing the communication control circuit as an LSI, there is an effect that cost increase required for this can be minimized.
第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図、 第3図は第2図の保障形態レジスタの説明図、 第4図は本発明の一実施例動作説明図、 第5図はRS−CS制御の説明図、 第6図は従来技術の説明図である。 図中、4……通信制御回路、 40……入力レジスタ、 41……送信データバッファ、 42……保障回路、 43……ダミーデータ発生回路。 FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 is a structural diagram of an embodiment of the present invention, FIG. 3 is an explanatory diagram of a security mode register of FIG. 2, and FIG. Explanatory drawing, FIG. 5 is explanatory drawing of RS-CS control, and FIG. 6 is explanatory drawing of a prior art. In the figure, 4 ... Communication control circuit, 40 ... Input register, 41 ... Transmission data buffer, 42 ... Security circuit, 43 ... Dummy data generation circuit.
Claims (1)
と、送信すべきデータがセットされる送信データバッフ
ァ(41)とを有し、 送信データの送信終了後の最終データ保障時間経過後に
RS信号をオフとする通信制御回路において、 ダミーデータの発生回路(43)と、 該レジスタ(40)のRS制御信号がオフとなったことに応
じてRS信号をオフするタイミングを制御する保障回路
(42)とを設け、 該保障回路(42)が該発生回路(43)からダミーデータ
を送信せしめて最終データの保障形態処理を行った後、
該RS信号をオフとすることを特徴とする通信制御回路。1. A register (40) in which an RS control signal is set.
And a transmission data buffer (41) in which the data to be transmitted is set, and after the end of the final data guarantee time after the transmission of the transmission data has elapsed.
In a communication control circuit for turning off the RS signal, a dummy data generation circuit (43) and a security circuit for controlling the timing of turning off the RS signal in response to the turning off of the RS control signal of the register (40) (42) is provided, and after the guarantee circuit (42) transmits dummy data from the generation circuit (43) to perform a guarantee form process of final data,
A communication control circuit, characterized in that the RS signal is turned off.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62098108A JPH0817413B2 (en) | 1987-04-21 | 1987-04-21 | Communication control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62098108A JPH0817413B2 (en) | 1987-04-21 | 1987-04-21 | Communication control circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63263861A JPS63263861A (en) | 1988-10-31 |
| JPH0817413B2 true JPH0817413B2 (en) | 1996-02-21 |
Family
ID=14211130
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62098108A Expired - Lifetime JPH0817413B2 (en) | 1987-04-21 | 1987-04-21 | Communication control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0817413B2 (en) |
-
1987
- 1987-04-21 JP JP62098108A patent/JPH0817413B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63263861A (en) | 1988-10-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0235199B1 (en) | Communication protocol selection for data processing system | |
| US4390969A (en) | Asynchronous data transmission system with state variable memory and handshaking protocol circuits | |
| JPH01277928A (en) | Printer | |
| JPH0817413B2 (en) | Communication control circuit | |
| JPH03164961A (en) | Apparatus and method for transmitting data via serial data bus | |
| US5812878A (en) | System for DMA transfer wherein controller waits before execution of next instruction until a counter counts down from a value loaded by said controller | |
| JPH11504741A (en) | Method and apparatus for reducing latency on an interface by overlaying transmitted packets | |
| JPS6330044A (en) | Mode carrier control system | |
| JP2893897B2 (en) | Serial I/O Device | |
| JPS6373289A (en) | Cryptographer | |
| JPH0234518B2 (en) | ||
| KR100262263B1 (en) | How Buses Work Between Processors and Devices in Electronic Switching Systems | |
| KR19980051899A (en) | Interrupt Generator on the I²C Bus | |
| JPH0724832Y2 (en) | Automatic transmission / reception switching circuit | |
| KR100244471B1 (en) | Direct memory access controller and control method | |
| GB2203616A (en) | Improvements in or relating to data communication systems | |
| JPS6374244A (en) | High speed data reception system | |
| JPH0722284B2 (en) | Communication control device | |
| JPS61186046A (en) | System for controlling terminal equipment connection | |
| JPH077954B2 (en) | Control device | |
| JPH10116248A (en) | Two-way transfer method | |
| JPH0426576B2 (en) | ||
| JPH06105921B2 (en) | Communication control device | |
| JPS60254846A (en) | Circuit switching system of cdt device | |
| JPH02149049A (en) | Communication control method |