JPH0779344B2 - Half-duplex communication channel driver control method - Google Patents

Half-duplex communication channel driver control method

Info

Publication number
JPH0779344B2
JPH0779344B2 JP63116029A JP11602988A JPH0779344B2 JP H0779344 B2 JPH0779344 B2 JP H0779344B2 JP 63116029 A JP63116029 A JP 63116029A JP 11602988 A JP11602988 A JP 11602988A JP H0779344 B2 JPH0779344 B2 JP H0779344B2
Authority
JP
Japan
Prior art keywords
transmission
driver
communication
duplex communication
control method
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
JP63116029A
Other languages
Japanese (ja)
Other versions
JPH01286648A (en
Inventor
正 戸田
Original Assignee
山武ハネウエル株式会社
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 山武ハネウエル株式会社 filed Critical 山武ハネウエル株式会社
Priority to JP63116029A priority Critical patent/JPH0779344B2/en
Publication of JPH01286648A publication Critical patent/JPH01286648A/en
Publication of JPH0779344B2 publication Critical patent/JPH0779344B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、半2重通信路で使用される通信機器のドライ
バ制御方法に関し、特に、送信用ドライバのディスイネ
ーブル方法に関するものである。
Description: TECHNICAL FIELD The present invention relates to a driver control method for a communication device used in a half-duplex communication path, and more particularly to a method for disabling a transmission driver.

〔従来の技術〕[Conventional technology]

送信側と受信側とで線路が分離されていないため同時に
は1台しか送信することのできない通信路(以下「半2
重通信路」という)を使用する通信機器は、同時に複数
の通信機器が半2重通信路を電気的にドライブしようと
することを防止するために、自身が送信するとき以外は
送信用ドライバをディスイネーブルにしておかねばなら
ない。
Since the transmission side and the reception side do not have separate lines, only one communication channel can transmit at the same time (hereinafter referred to as "half 2").
A communication device that uses a “duplex communication path” uses a transmission driver except when it is transmitting by itself in order to prevent multiple communication devices from attempting to electrically drive the half-duplex communication path at the same time. Must be disabled.

半2重通信路を使用する一般的な通信システムを第3図
に示す。同図において、1〜3は通信機器、4は半2重
通信路、11,21,31はマイクロプロセッサ、12,22,32は通
信コントローラ、13,23,33は送信ドライバ、14,24,34は
受信レシーバであり、a1〜a3は制御信号である。
A general communication system using a half-duplex channel is shown in FIG. In the figure, 1-3 are communication devices, 4 are half-duplex communication paths, 11, 21, 31 are microprocessors, 12, 22, 32 are communication controllers, 13, 23, 33 are transmission drivers, 14, 24, 34 is a receiving receiver, and a1 to a3 are control signals.

上述したように、第3図において、通信機器1が送信し
ているときには、通信機器2と3とは半2重通信路4を
ドライブしてはいけない。すなわち、通信機器1のみが
送信用ドライバ13をイネーブルにし、他は送信用ドライ
バ23,33をディスイネーブルにしておかねばならない。
As described above, in FIG. 3, when the communication device 1 is transmitting, the communication devices 2 and 3 must not drive the half-duplex communication path 4. That is, only the communication device 1 must enable the transmission driver 13 and the other must disable the transmission drivers 23 and 33.

従って、各通信機器は送信を始める前に送信用ドライバ
をイネーブルにし、送信が完了した後で送信用ドライバ
をディスイネーブルにすることになる。そのために送信
ドライバをディスイネーブルにするタイミングが分から
ねばならない。すなわち、第4図に示すように、通信機
器1の通信コントローラ12に最後のデータを書き込んで
から送信ドライバ13をディスイネーブルにするまでの待
ち時間T1を設け(第4図(a),(b)参照)、通信機
器1は最後のデータDE送出後の時間T2で送信ドライバ13
をディスイネーブルにしなければならない(第4図
(d),(b)参照)。また、通信機器1は、通信機器
2の送信ドライバ23がイネーブルになる前の時間T3に送
信ドライバ13をディスイネーブルにしなければならない
(第4図(c)参照)。
Therefore, each communication device enables the transmission driver before starting the transmission and disables the transmission driver after the transmission is completed. Therefore, it is necessary to know the timing of disenabling the transmission driver. That is, as shown in FIG. 4, a waiting time T1 from writing the last data to the communication controller 12 of the communication device 1 to disenabling the transmission driver 13 is provided (see FIGS. 4 (a) and (b)). )), Communication device 1 transmits driver 13 at time T2 after sending the last data DE.
Must be disabled (see FIGS. 4 (d) and 4 (b)). In addition, the communication device 1 must disable the transmission driver 13 at time T3 before the transmission driver 23 of the communication device 2 is enabled (see FIG. 4 (c)).

通常通信コントローラには専用のIC(LSI)が使用さ
れ、マイクロプロセッサは送信データをバイト(8ビッ
ト)単位もしくは数バイトまとめて通信コントローラに
書き込むことができる。よって、マイクロプロセッサ
は、書き込んだデータがシリアルデータに変換されて全
て通信路上に送出されるまで待って、送信完了を確認し
てから、送信ドライバをディスイネーブルにすることに
なる。
Usually, a dedicated IC (LSI) is used for the communication controller, and the microprocessor can write transmission data in byte (8 bits) units or several bytes in a batch to the communication controller. Therefore, the microprocessor waits until the written data is converted into serial data and sent out on the communication path, confirms the completion of transmission, and then disables the transmission driver.

しかしながら、安価な通信コントローラの中には送出完
了を確認することのできないものもあり、そのような通
信コントローラを使用せざるをえない場合には従来以下
のような方法がとられていた。
However, some inexpensive communication controllers cannot confirm the completion of transmission, and in the case where such a communication controller has to be used, the following method has been conventionally used.

マイクロプロセッサがプログラムでループを組んで時
間をカウントする。
A microprocessor loops in a program to count time.

通信コントローラとは別にタイマをハードウェアとし
て持って、時間をカウントする。
A timer is provided as hardware separately from the communication controller to count time.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上記の方法はコストアップにはならないが、送出完了
の時間カウントをする間マイクロプロセッサは他の処理
をすることができなくなり、ソフトウェア構成の大きな
制約となる。
Although the above method does not increase the cost, the microprocessor cannot perform other processing while counting the time of completion of transmission, which is a great limitation on the software configuration.

上記の方法は、タイマがカウントする間マイクロプロ
セッサは他の処理をすることができるため、ソフトウェ
ア構成上の制約にはならないが、コストアップになる。
In the above method, the microprocessor can perform other processing while the timer counts, so it is not a constraint on the software configuration, but the cost is increased.

さらに、上記,の両方法ともに、通信コントローラ
自身が送出完了を検出するのとは異なり、余裕を見込ま
なければならないため、送出完了から送信ドライバのデ
ィスイネーブルまでの時間を必要最小時間よりも長くせ
ざるをえない。従って、その分時間ロスとなり、通信全
体のスループットを落とす要因となる。
Further, in both of the above methods, unlike the case where the communication controller itself detects the completion of transmission, a margin must be taken into consideration, so the time from the completion of transmission to the disabling of the transmission driver should be longer than the minimum required time. I have no choice. Therefore, a time loss is caused by that amount, which becomes a factor of reducing the throughput of the entire communication.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、半2重通信路において送出完了
の確認ができない通信コントローラを使用した場合で
も、ソフトウェア構成に制約を加えることなく、ハード
ウェアタイマの追加を必要とせず、通信路のスループッ
トを落とす時間ロスもない送出完了の確認方法を提供す
ることにある。
The present invention has been made in view of such a point, and an object thereof is to add a restriction to the software configuration even when a communication controller that cannot confirm the completion of transmission is used in a half-duplex communication path. Another object of the present invention is to provide a method of confirming the completion of transmission, which does not require the addition of a hardware timer and does not cause a time loss that reduces the throughput of a communication path.

〔課題を解決するための手段〕[Means for Solving the Problems]

このような目的を達成するために本発明による半2重通
信路ドライバ制御方法は、送信完了後の送信用ドライバ
をディスイネーブルにするタイミングを折り返し受信か
ら検出するようにしたものである。
In order to achieve such an object, the half-duplex communication path driver control method according to the present invention detects the timing of disenabling the transmission driver after the completion of transmission from the return reception.

〔作用〕[Action]

本発明による半2重通信路ドライバ制御方法において
は、受信データが最後の送信データと一致したときに送
信用ドライバがディスイネーブルにされる。
In the half-duplex channel driver control method according to the present invention, the transmission driver is disabled when the reception data matches the last transmission data.

〔実施例〕〔Example〕

半2重通信路の場合には、送信ドライバと受信レシーバ
とが通信路上でワイヤードオアされているため、送信と
同時に送信データの折り返し受信が可能であり、通信コ
ントローラに書き込まれた送信データが折り返し受信に
より受信されたならば、その送信データは通信路上への
送出が完了したことを意味する。一般に、送信完了の確
認ができない通信コントローラも受信済データ有無は確
認することができる。つまり、受信時に割り込み要求を
出したり、受信データの有無をプログラムで読み出すこ
とができる。従って、送信メッセージの最後のデータを
通信コントローラに書き込んだ後、折り返し受信を監視
し、最後の送信データが受信された時に送信用ドライバ
をディスイネーブルにすればよい。これを第1図および
第2図に示す。
In the case of the half-duplex communication path, since the transmission driver and the reception receiver are wired-OR on the communication path, the transmission data can be returned and received at the same time as the transmission, and the transmission data written in the communication controller can be returned. If received by reception, the transmission data means that transmission on the communication path is completed. In general, a communication controller that cannot confirm the completion of transmission can also confirm the presence or absence of received data. That is, it is possible to issue an interrupt request at the time of reception and read the presence / absence of received data by a program. Therefore, after writing the last data of the transmission message to the communication controller, the return reception may be monitored and the transmission driver may be disabled when the last transmission data is received. This is shown in FIGS. 1 and 2.

第1図は割り込みを使用しない場合の送出完了判定方法
を示すフローチャート、第2図は割り込みを使用する場
合の送出完了判定方法を示すフローチャートである。
FIG. 1 is a flow chart showing a method of judging the completion of sending when no interrupt is used, and FIG. 2 is a flowchart showing a method of judging the completion of sending when using an interrupt.

第1図において、通信コントローラに最後の送信データ
を書き込んだ後、受信データの有無をテストする(ステ
ップ51,52)。受信データが無い場合は待機状態とな
り、有る場合は受信データを読み込む(ステップ53)。
次に、最後の送信データと一致しているか否かを判定し
(ステップ54)、一致している場合には送信完了と判定
され、送信用ドライバをディスイネーブルにする(ステ
ップ55)。一致していない場合にはステップ52に戻り、
再度受信データの有無をテストする。
In FIG. 1, after writing the last transmission data to the communication controller, the presence or absence of the reception data is tested (steps 51 and 52). If there is no received data, the standby state is entered, and if there is, the received data is read (step 53).
Next, it is determined whether or not it matches the last transmission data (step 54). If they match, it is determined that the transmission is completed, and the transmission driver is disabled (step 55). If they do not match, return to step 52,
Test again for the presence of received data.

第2図に示す動作は、第1図に示す動作とほぼ同様であ
るが、割り込み処理が行なわれる点が異なる。すなわ
ち、ステップ51と同一内容のステップ61は送信側ルーチ
ンの一部であり、送信側ルーチンの処理において矢印IR
Iで示す受信割り込みが発生した場合、ステップ62〜64
の受信割り込みルーチンの処理を行なう。まず、受信デ
ータを読み込み(ステップ62)、受信データが最後の送
信データと一致しているか否かを判断し(ステップ6
3)、一致している場合には送信完了と判定され、送信
用ドライバをディスイネーブルにする(ステップ64)。
一致していない場合には矢印IR2で示すように送信側ル
ーチンに復帰リターンする。
The operation shown in FIG. 2 is almost the same as the operation shown in FIG. 1, except that interrupt processing is performed. That is, step 61 having the same contents as step 51 is a part of the transmission side routine, and the arrow IR
If the receive interrupt indicated by I occurs, steps 62-64
Performs the reception interrupt routine of. First, the received data is read (step 62), and it is determined whether the received data matches the last transmitted data (step 6).
3) If they match, it is determined that the transmission is completed, and the transmission driver is disabled (step 64).
If they do not match, the process returns to the transmitting side routine and returns as shown by the arrow IR2.

〔発明の効果〕 以上説明したように本発明による半2重通信路ドライバ
制御方法は、送信完了後の送信用ドライバをディスイネ
ーブルにするタイミングを折り返し受信から検出するこ
とにより、プログラムでループを組んで時間をカウント
する必要がなく、またハードウェアタイマを持つ必要も
ないので、半2重通信路において送出完了の確認ができ
ない通信コントローラを使用した場合でも、ソフトウェ
ア構成に制約を加えることなく、ハードウェアタイマを
追加を必要とせず、通信路のスループットを落とす時間
ロスもない送出完了の確認方法を得ることができる効果
がある。
[Effects of the Invention] As described above, the half-duplex communication path driver control method according to the present invention forms a loop by a program by detecting the timing of disenabling the transmission driver after the completion of transmission from the return reception. Since there is no need to count the time with a hardware timer, and there is no need to have a hardware timer, even when using a communication controller that cannot confirm the transmission completion in the half-duplex communication path, the hardware configuration is There is an effect that it is possible to obtain a method of confirming transmission completion without adding a wear timer and without time loss that reduces the throughput of the communication path.

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

第1図は本発明に係わる半2重通信路ドライバ制御方法
の一実施例を説明するためのフローチャート、第2図は
その第2の実施例を説明するためのフローチャート、第
3図は一般的な半2重通信路の通信システムを示す系統
図、第4図はイネーブルおよびディスイネーブルのタイ
ミングを示すタイムチャートである。 1,2,3……通信機器、4……半2重通信路、11,21,31…
…マイクロプロセッサ、12,22,32……通信コントロー
ラ、13,23,33……送信用ドライバ、14,24,34……受信用
レシーバ。
FIG. 1 is a flow chart for explaining an embodiment of a half-duplex communication path driver control method according to the present invention, FIG. 2 is a flow chart for explaining the second embodiment, and FIG. FIG. 4 is a system diagram showing a communication system of a half-duplex communication path, and FIG. 4 is a time chart showing enable and disable timings. 1,2,3 ... communication equipment, 4 ... half duplex communication path, 11,21,31 ...
… Microprocessor, 12,22,32 …… Communication controller, 13,23,33 …… Transmitting driver, 14,24,34 …… Receiver receiver.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】半2重通信路上への送出完了を確認できな
い通信コントローラを使用する通信機器における半2重
通信路ドライバ制御方法において、送信完了後の送信用
ドライバをディスイネーブルにするタイミングを折り返
し受信から検出することを特徴とする半2重通信路ドラ
イバ制御方法。
1. In a half-duplex communication path driver control method for a communication device using a communication controller that cannot confirm completion of transmission onto a half-duplex communication path, a timing for disabling a transmission driver after completion of transmission is folded back. A half-duplex communication path driver control method characterized by detecting from reception.
JP63116029A 1988-05-13 1988-05-13 Half-duplex communication channel driver control method Expired - Lifetime JPH0779344B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63116029A JPH0779344B2 (en) 1988-05-13 1988-05-13 Half-duplex communication channel driver control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63116029A JPH0779344B2 (en) 1988-05-13 1988-05-13 Half-duplex communication channel driver control method

Publications (2)

Publication Number Publication Date
JPH01286648A JPH01286648A (en) 1989-11-17
JPH0779344B2 true JPH0779344B2 (en) 1995-08-23

Family

ID=14676995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63116029A Expired - Lifetime JPH0779344B2 (en) 1988-05-13 1988-05-13 Half-duplex communication channel driver control method

Country Status (1)

Country Link
JP (1) JPH0779344B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5779747A (en) * 1980-11-06 1982-05-19 Toshiba Corp Coupling circuit
EP0281888B1 (en) * 1987-03-09 1992-10-07 Siemens Aktiengesellschaft Circuit arrangement for the subscriber line circuits of a digital time division multiplex telecommunication exchange

Also Published As

Publication number Publication date
JPH01286648A (en) 1989-11-17

Similar Documents

Publication Publication Date Title
US5740174A (en) Method and apparatus for performing collision detection and arbitration within an expansion bus having multiple transmission repeater units
US7039734B2 (en) System and method of mastering a serial bus
US4684885A (en) Arrangement for on-line diagnostic testing of an off-line standby processor in a duplicated processor configuration
US20070240011A1 (en) FIFO memory data pipelining system and method for increasing I²C bus speed
JPH0779344B2 (en) Half-duplex communication channel driver control method
US6775717B1 (en) Method and apparatus for reducing latency due to set up time between DMA transfers
JP2570847B2 (en) Data transfer method
US6880027B1 (en) System and method of evaluating universal serial bus function
CN113886297A (en) SPI concurrent communication SE device and method based on DMA
JPS6326576B2 (en)
EP0288191B1 (en) Method and apparatus for data transfer handshake pipelining
US20080256273A1 (en) Serial communication method and serial communication system
JPH1188381A (en) Communication system, usb function device, communication system control method and medium recording communication condition display program
JPH047620B2 (en)
JP3408046B2 (en) Data communication system and data communication method
US20020099890A1 (en) Apparatus and method for processing interruptions in a data transmission over a bus
JPS61182152A (en) Block transmitter of direct memory access system
JPH0477940B2 (en)
JP2692255B2 (en) Multi-drop communication method
JPS6117425B2 (en)
JPH0525214B2 (en)
JPS6027253A (en) Data transmission control system
JPH0863407A (en) Information transfer controller
JPS58120342A (en) Data transmission system
JPH0646736B2 (en) Communication failure detection method