JPH02301251A - Interface discrimination circuit - Google Patents

Interface discrimination circuit

Info

Publication number
JPH02301251A
JPH02301251A JP1121868A JP12186889A JPH02301251A JP H02301251 A JPH02301251 A JP H02301251A JP 1121868 A JP1121868 A JP 1121868A JP 12186889 A JP12186889 A JP 12186889A JP H02301251 A JPH02301251 A JP H02301251A
Authority
JP
Japan
Prior art keywords
interface
dte
dce
signal line
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.)
Pending
Application number
JP1121868A
Other languages
Japanese (ja)
Inventor
Takeshi Kuno
久野 威
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.)
Iwatsu Electric Co Ltd
Original Assignee
Iwatsu Electric Co Ltd
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 Iwatsu Electric Co Ltd filed Critical Iwatsu Electric Co Ltd
Priority to JP1121868A priority Critical patent/JPH02301251A/en
Publication of JPH02301251A publication Critical patent/JPH02301251A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To easily discriminate the kind of the interface by discriminating whether the interface is a data terminator interface or a data terminal equipment interface depending on the difference of the output of a voltage comparator corresponding to the difference from the voltage level of a signal line. CONSTITUTION:A connector 5 is provided at one terminal of a DCE side cable 4 of a data terminator of a discrimination changeover circuit 3 including a voltage comparator and the connector 5 is coupled freely with a connector A of the DCE 1. Moreover, a connector 8 of a cable 7 at the side of a data terminal equipment DTE of the discrimination changeover circuit 3 is coupled removably with the connector 9 of the DTE 2. The DCE 1 and the DTE 2 include an interface respectively and the discrimination changeover circuit 3 discriminates the content of the interface for the DCE 1 and the DTE 2 to connect the both so as to be in matching with the content. Since the DTE interface or the DCE interface is discriminated by the voltage comparator, then the kind of the interface is recognized automatically.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は通信回路におけるインタフェースがデ−タ終端
装](DCE)インタフェースかデータ端末装[(DT
E)インタフェースかを自動的に判別するためのインタ
フェース判別回路に関するものである。
[Detailed Description of the Invention] [Industrial Field of Application] The present invention is applicable to communication circuits in which the interface is a data termination equipment (DCE) interface or a data terminal equipment [(DT
E) This relates to an interface discriminating circuit for automatically discriminating whether it is an interface.

[従来の技術] データ通信回路の伝送路にはDCEを介してDTEが接
続される。DCEとDTEとの接続は、通常、DCEコ
ネクタにケーブルの一端側コネクタを結合させ、ケーブ
ルの他端側コネクタをDTEコネクタに結合することに
よって達成される。
[Prior Art] A DTE is connected to a transmission line of a data communication circuit via a DCE. Connection between the DCE and DTE is typically accomplished by coupling one end of the cable to the DCE connector and the other end of the cable to the DTE connector.

DTE及びDCEは例えばJIS規格C6361及びE
TA規格R8−232Cで定められたインタフェース(
以下、R1−232Cインタフエースと言う)を含む。
DTE and DCE are, for example, JIS standards C6361 and E.
Interface specified by TA standard R8-232C (
(hereinafter referred to as the R1-232C interface).

[発明が解決しようとする課題] ところで、DCF、とDTEは固定的に接続されていな
いので、DCEに対して常に同一構成のDTEが接続さ
れるとは限らず、異なる構成のDTEが接続されること
がある0例えば、パソコンとパソコン周辺装置とを接続
する場合に、パソコンに常に同一形式の周辺装置が接続
されるとは限らない、また、パソコン周辺装置が常にD
TEインタフェースに設計されたR3−232Cインタ
フエースを含むとは限らず、DCEインタフェースに設
計されたR3−232Cインタフエースを含むことがあ
る。パソコン周辺装置のR3−2320インタフエース
がDTEインタフェースの場合とDCEインタフェース
の場合とではパソコンに対する接続を変えなければなら
ない、この接続変更を行うために、まずインタフェース
の判別を行わなければならない、今、R3−232Cイ
ンタフエースについて述べたが、別のインタフェースに
おいても同様な問題がある。
[Problems to be Solved by the Invention] By the way, since the DCF and DTE are not fixedly connected, DTEs with the same configuration are not always connected to the DCE, and DTEs with different configurations may be connected. For example, when connecting a computer to a computer peripheral device, the same type of peripheral device may not always be connected to the computer, or the computer peripheral device may not always be connected to the computer.
It does not necessarily include an R3-232C interface designed as a TE interface, but may include an R3-232C interface designed as a DCE interface. If the R3-2320 interface of the computer peripheral device is a DTE interface or a DCE interface, the connection to the computer must be changed. In order to change the connection, the interface must first be determined. Now, Although the R3-232C interface has been described, similar problems exist with other interfaces.

そこで、本発明の目的は通信回線に接続されているイン
タフェースがDTEインタフェースかDCBインタフェ
ースかを容易に判別することができる回路を提供するこ
とにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a circuit that can easily determine whether an interface connected to a communication line is a DTE interface or a DCB interface.

[課題を解決するための手段] 上記目的を達成するための本発明は、インタフェースが
データ終端装置(DCE)インタフェースかデータ端末
装fi(DTE)インタフェースかを判別するものであ
って、前記インタフェースの信号線に接続された電圧比
較器を含み、前記信号線の電圧レベルの相違に対応した
前記電圧比較器の出力の相違によって前記データ終端装
置インタフェースか前記データ端末装置インタフェース
かを判別するように構成されていることを特徴とするイ
ンタフェース判別回路に係わるものである。
[Means for Solving the Problems] To achieve the above object, the present invention determines whether an interface is a data termination equipment (DCE) interface or a data terminal equipment fi (DTE) interface, The device includes a voltage comparator connected to a signal line, and is configured to determine whether the interface is the data termination device interface or the data terminal device interface based on a difference in output of the voltage comparator corresponding to a difference in voltage level of the signal line. The present invention relates to an interface discrimination circuit characterized in that:

また、一対のインタフェースを判別するために、一対の
インタフェースをスイッチによって選択的に共通の電圧
比較器に接続することが望ましい。
Further, in order to discriminate between a pair of interfaces, it is desirable to selectively connect the pair of interfaces to a common voltage comparator using a switch.

[作 用] 本発明では電圧比較器によってDTEインタフェースか
DCEインタフェースかを判別するので、インタフェー
スの種類を自動的に知ることができる。
[Function] In the present invention, since the voltage comparator determines whether the interface is a DTE interface or a DCE interface, the type of interface can be automatically known.

[実施例] 次に、第1図〜第6図を参照して本発明の一実施例に係
わるDCEインタフェースとDTEインタフェースとの
判別及び切換回路について説明する。
[Embodiment] Next, a circuit for determining and switching between a DCE interface and a DTE interface according to an embodiment of the present invention will be described with reference to FIGS. 1 to 6.

第1図はDCElとDTE2との接続関係を示すもので
あり、両者は本発明に係わるインタフェース判別切換回
路3を介して相互に接続されている。即ち、判別切換図
F!@3のDCE側ケーブル4の一端にはコネクタ5が
設けられ、このコネクタ5がDCElのコネクタ6に離
脱自在に結合されている。また、判別切換回路3のDT
EfllJケーブル7のコネクタ8はDTE2のコネク
タ9に離脱自在に結合されている。
FIG. 1 shows the connection relationship between DCEl and DTE2, both of which are connected to each other via an interface discrimination switching circuit 3 according to the present invention. That is, discrimination switching diagram F! A connector 5 is provided at one end of the DCE side cable 4 of @3, and this connector 5 is detachably connected to a connector 6 of the DCEl. In addition, the DT of the discrimination switching circuit 3
The connector 8 of the EflJ cable 7 is detachably connected to the connector 9 of the DTE 2.

DCEl及びDTE2はR3−232Cインタフエース
をそれぞれ含む0判別切換回路3はDCEl及びDTE
2のR3−232Cインタフエースの内容(種類)を判
断し、これに適合するように両者を接続するように構成
されている。
DCEl and DTE2 each include an R3-232C interface.0 discrimination switching circuit 3 includes DCEl and DTE2, respectively.
The system is configured to determine the content (type) of the R3-232C interface of No. 2 and to connect the two in accordance with the content (type) of the R3-232C interface.

第2図は第1図の判別切換回路3の構成を詳しく示すも
のであり、判別回路10とケーブル切換回路11とから
成る。一方のR8−232Cインタフエース12は例え
ばパソコン等のDCHに含まれているものであり、他方
のR3−232Cインタフェース13は例えばパソコン
周辺装置等のDTEに含まれているものである。R3−
2320インタフエース12に接続されたDCEIFJ
コネクタ6及びR3−232Cインタフエース13に接
続されたDTE側コネクタ9は、第4図及び第5図に示
すような端子を有する。即ち、各コネクタ6.9は、保
安接地端子FG、送信データ端子SD、受信データ端子
RD、送信要求端子R3、送信可通知端子C8、信号接
地端子SG、受信線信号検出端子CD、データターミナ
ルレディ端子ERをそれぞれ有する。なお、第4図及び
第5図において端子に付加されている矢印は信号方向を
示す、また、1〜8.20はビン番号を示す。
FIG. 2 shows in detail the configuration of the discrimination switching circuit 3 shown in FIG. 1, which consists of a discrimination circuit 10 and a cable switching circuit 11. One R8-232C interface 12 is included, for example, in a DCH of a personal computer, and the other R3-232C interface 13 is included in a DTE, such as a peripheral device of a personal computer. R3-
DCEIFJ connected to 2320 interface 12
The DTE side connector 9 connected to the connector 6 and the R3-232C interface 13 has terminals as shown in FIGS. 4 and 5. That is, each connector 6.9 has a safety ground terminal FG, a transmission data terminal SD, a reception data terminal RD, a transmission request terminal R3, a transmission permission notification terminal C8, a signal ground terminal SG, a reception line signal detection terminal CD, and a data terminal ready. Each has a terminal ER. Note that in FIGS. 4 and 5, arrows attached to terminals indicate signal directions, and 1 to 8.20 indicate bin numbers.

第2図において判別回路10には、DCE側SD信号線
14とDCE側RD信号線15とが接続されている共に
、DTEIFISD信号線16とDTE側RD信号線1
7とが接続されている。DTE側SD信号線16及びR
,D信号線17は切換回路11と信号線18.19を介
してR3−232Cインタフエース13に接続されてい
る。また、DCEffllR3−232Cインタフエー
ス12とDTE側R3二2320インタフェース13の
SD、RD以外の信号線20.21は切換口1i411
を介して接続されている。
In FIG. 2, the discrimination circuit 10 is connected to a DCE side SD signal line 14 and a DCE side RD signal line 15, as well as a DTEIFISD signal line 16 and a DTE side RD signal line 1.
7 is connected. DTE side SD signal line 16 and R
, D signal lines 17 are connected to the R3-232C interface 13 via the switching circuit 11 and signal lines 18 and 19. In addition, signal lines 20.21 other than SD and RD of the DCEffll R3-232C interface 12 and the DTE side R3-2320 interface 13 are connected to the switching port 1i411.
connected via.

判別回路10は、SDとRDとに基づいてDCEf!I
!lR3−232Cインタフエース12がDTE側イフ
ィンタフエース機能しているか否かを判定すると共に、
DTE側R3−232Cインタフエース13がDCEI
II!Iインタフェース機能を有しているか否かを判定
し、この判定結果を制御線22によって切換回路11に
与えるように構成されている。切換回路11は、例えば
第4図又は第5図のようにR3−232Cインタフエー
ス12.13間の接続を切換えるように構成されている
The determination circuit 10 determines DCEf! based on SD and RD. I
! Determining whether the lR3-232C interface 12 is functioning as the DTE side interface, and
DTE side R3-232C interface 13 is DCEI
II! It is configured to determine whether or not it has an I interface function, and to provide the result of this determination to the switching circuit 11 via a control line 22. The switching circuit 11 is configured to switch the connection between the R3-232C interfaces 12 and 13, as shown in FIG. 4 or 5, for example.

判別回路10は、第3図に示すように、第1〜第6のス
イッチ23.24.25.26.27.28と、第1〜
第4の電圧比較器29.30.31.32と、第1及び
第2のORゲート33.34と、第1及び第2の抵抗3
5.36と、マイクロコンピュータ37と、第1及び第
2の基準電圧源38.39とから成る。第1及び第2の
スイッチ23.24は相互に接続されていると共にSD
信号線14.16に直列に接続され、第3及び第4のス
イッチ25.26は相互に接続されていると共に、RD
信号線15.17に直列に接続されている。
As shown in FIG. 3, the discrimination circuit 10 includes first to sixth switches 23.24.25.26.27.28,
a fourth voltage comparator 29.30.31.32, a first and second OR gate 33.34 and a first and second resistor 3
5.36, a microcomputer 37, and first and second reference voltage sources 38.39. The first and second switches 23,24 are connected to each other and
The third and fourth switches 25.26 are connected in series to the signal line 14.16, and the third and fourth switches 25.26 are connected to each other and the RD
It is connected in series to signal line 15.17.

第1の比較器29の非反転入力端子は第1の基準電圧源
38に接続され、反転入力端子は第1及び第2のスイッ
チ23.24のの相互間に接続されている。第2の比較
器30の非反転入力端子は第1及び第2のスイッチ23
.24の相互間に接続され、反転入力端子は第2の基準
電圧源39に接続されている。第3の比較器31の非反
転入力端子は第1の基準電圧源38に接続され、反転入
力端子は第3及び第4のスイッチ25.26の相互間に
接続されている。第4の比較器32の非反転入力端子は
第3及び第4のスイッチ25.26の相互間に接続され
、反転入力端子は第2の基準電圧源39に接続されてい
る。
The non-inverting input terminal of the first comparator 29 is connected to the first reference voltage source 38, and the inverting input terminal is connected between the first and second switches 23, 24. The non-inverting input terminal of the second comparator 30 is connected to the first and second switches 23
.. 24, and the inverting input terminal is connected to a second reference voltage source 39. The non-inverting input terminal of the third comparator 31 is connected to the first reference voltage source 38, and the inverting input terminal is connected between the third and fourth switches 25, 26. The non-inverting input terminal of the fourth comparator 32 is connected between the third and fourth switches 25 , 26 , and the inverting input terminal is connected to the second reference voltage source 39 .

第1及び第2の比較器29.30の出力端子は第1のO
Rゲート33を介してマイクロコンピュータ37に接続
され、第3及び第4の比較器31.32の出力端子は第
2のORゲート34を介してマイクロコンピュータ37
に接続されている。
The output terminals of the first and second comparators 29.30 are connected to the first O
The output terminals of the third and fourth comparators 31 and 32 are connected to the microcomputer 37 via the R gate 33, and the output terminals of the third and fourth comparators 31 and 32 are connected to the microcomputer 37 via the second OR gate 34.
It is connected to the.

第1の抵抗35は第5のスイッチ27を介して第1の比
較器29の反転入力端子と第2の比較器30の非反転入
力端子とにそれぞれ接続され、第2の抵抗36は第6の
スイッチ28を介して第3の比較器31の反転入力端子
と第4の比較器32の非反転入力端子とにそれぞれ接続
されている。
The first resistor 35 is connected to the inverting input terminal of the first comparator 29 and the non-inverting input terminal of the second comparator 30 via the fifth switch 27, and the second resistor 36 is connected to the sixth are connected to the inverting input terminal of the third comparator 31 and the non-inverting input terminal of the fourth comparator 32 via the switch 28 .

マイクロコンピュータ37は、ROMやRAMを含み、
所定のプログラムに従って第1〜第6のスイッチ23〜
24をオン・オフ制御し、DTEインタフェースとDC
Eインタフェースとの判別を示す信号を制御線22によ
って第2図の切換回路11に与える。
The microcomputer 37 includes ROM and RAM,
The first to sixth switches 23 to 23 according to a predetermined program
24 on/off control, DTE interface and DC
A signal indicating discrimination with the E interface is applied to the switching circuit 11 in FIG. 2 via the control line 22.

第1の基準電圧源38は、R3−232Cインタフエー
ス12.13のマイナス側しきい値電圧を与える回路で
あり、第2の基準電圧源39はR3−232Cインタフ
エース12.13のプラス側しきい値電圧を与える回路
である。R3−2320インタフエース12.13のマ
イナス側しきい値電圧は一3■であり、プラス側しきい
1ift電圧は+3vである。従って、−3V以上の電
圧と+3V以上の電圧とが有効なものとなる。なお、第
3図のSD線14.16、RD線15.17は第2図で
同一符号で示すものと対応しており、受信回路、又は信
号線がプルアップされた受信回路、又は送信回路に接続
される。ここで、受信回路とはDTEtR器のR□受信
回路又はDCE機器のSD線受信回路であり、送信回路
とはDTE機器のSD線送信回路又はDECtll器の
RD線送信回路である。
The first reference voltage source 38 is a circuit that provides a negative threshold voltage of the R3-232C interface 12.13, and the second reference voltage source 39 is a circuit that provides a negative threshold voltage of the R3-232C interface 12.13. This is a circuit that provides a threshold voltage. The negative threshold voltage of the R3-2320 interface 12.13 is -3V, and the positive threshold voltage is +3V. Therefore, voltages of −3V or higher and +3V or higher are effective. Note that the SD line 14.16 and the RD line 15.17 in FIG. 3 correspond to those indicated by the same reference numerals in FIG. connected to. Here, the receiving circuit is an R□ receiving circuit of a DTEtR device or an SD line receiving circuit of a DCE device, and the transmitting circuit is an SD line transmitting circuit of a DTE device or an RD line transmitting circuit of a DECtll device.

第1及び第2の抵抗35.36の値は、SD信号111
4とRD信号線15に送信回路が接続され、第1、第3
、第5及び第6のスイッチ23.25.27.28がオ
ン状態にある場合に、SD信号線14のA点及びRD信
号線15のB点電圧が第1の基準電圧源3ね正単下及び
第2の基準電圧源39の電圧以上即ちSD傷信号びRD
信号のマイナス側のしきい値電圧−3V以下、及びプラ
ス側のしきい値電圧+3v以上になるように設定されて
いる。また、第1及び第2の抵抗35.36の値は、S
D信号線14とRD信号線15に受信回路又はプルアッ
プされた受信回路が接続され、第1、第3、第5及び第
6のスイッチ23.25.27.28がオン状態にある
場合に、SD信号線14のA点及びRD信号線15のB
点の電圧が第1の基準電圧源38の電圧即ちマイナス側
しきい値電圧(−3V)と第2の基準電圧源39の電圧
即ちプラス側しきい値電圧(+3V)との間になるよう
に設定されている。
The values of the first and second resistors 35.36 are the SD signal 111
4 and the RD signal line 15, a transmitting circuit is connected to the first and third
, when the fifth and sixth switches 23, 25, 27, 28 are in the on state, the voltage at point A of the SD signal line 14 and point B of the RD signal line 15 is the positive voltage of the first reference voltage source 3. The voltage of the lower and second reference voltage sources 39 or higher, that is, the SD flaw signal and RD
It is set so that the threshold voltage on the minus side of the signal is -3V or less, and the threshold voltage on the plus side of the signal is greater than +3V. Also, the values of the first and second resistors 35.36 are S
When a reception circuit or a pull-up reception circuit is connected to the D signal line 14 and the RD signal line 15, and the first, third, fifth, and sixth switches 23, 25, 27, and 28 are in the on state. , point A of the SD signal line 14 and point B of the RD signal line 15
The voltage at the point is between the voltage of the first reference voltage source 38, that is, the negative threshold voltage (-3V), and the voltage of the second reference voltage source 39, that is, the positive threshold voltage (+3V). is set to .

第6図は切換回路11の一部を示すものであり、SD信
号線16.18とRD信号線17.19との接続を変え
るためのスイッチS1、S2、S3、S4を有する。ス
イッチS1はSD信号線16.18の相互間に接続され
、スイッチS2はRD信号線17.19の相互間に接続
され、スイッチS3はRD信号線17とSD信号線18
との間に接続され、スイッチS4はSD信号線16とR
D信号線19との間に接続されている。スイッチS1、
S2は制御線22から与えられる切換え信号に応答し、
スイッチS3、S4は制御線22に接続されたNOT回
路40の出力に応答する。従って、スイッチ$1、S2
とスイッチS3、S4とは互いに逆に動作する。なお、
第6図のSD信号線16.18とRD信号線17.19
は第2図で同一符号で示すものに対応している。
FIG. 6 shows a part of the switching circuit 11, which includes switches S1, S2, S3, and S4 for changing the connection between the SD signal line 16.18 and the RD signal line 17.19. Switch S1 is connected between SD signal lines 16.18, switch S2 is connected between RD signal lines 17.19, and switch S3 is connected between RD signal line 17 and SD signal line 18.
The switch S4 is connected between the SD signal line 16 and R
It is connected between the D signal line 19 and the D signal line 19 . switch S1,
S2 is responsive to a switching signal applied from control line 22;
Switches S3 and S4 are responsive to the output of a NOT circuit 40 connected to control line 22. Therefore, switch $1, S2
and switches S3 and S4 operate inversely to each other. In addition,
SD signal line 16.18 and RD signal line 17.19 in Figure 6
correspond to those indicated by the same reference numerals in FIG.

次に動作を説明する。Next, the operation will be explained.

マイクロコンピュータ37は、所定のプログラムに従っ
て第2図において判別切換回路3の両端にR3−232
Cインタフエース12.13が接続されているか否かを
判定し、その後、R3−232Cインタフエース12.
13がDCEインタフェースかDTEインタフェースか
を判別する。
In accordance with a predetermined program, the microcomputer 37 connects R3-232 to both ends of the discrimination switching circuit 3 in FIG.
Determine whether the R3-232C interface 12.13 is connected, and then connect the R3-232C interface 12.13.
13 is a DCE interface or a DTE interface.

まず、R3−232Cインタフエース12が接続されて
いる否かを判定する時には、マイクロコンピュータ37
によって第1、第3、第5及び第6のスイッチ23.2
5.27.28をオン状態になし、第2及び第4のスイ
ッチ24.26はオフ状態になす、DCF、1のR3−
232Cインタフエース12が接続されていれば、SD
信号線14とRD信号線15とのいずれかに送信回路(
出力回路)が接続されているので、R3−232Cイン
タフエース12の規格電圧(−3V以下、+3V以上)
がSD信号線14又はRD信号線15に入力される。S
D傷信号14又はRD信号線15に規格電圧が入力する
と、第1〜第4の比較器29〜32のいずれかの出力が
高レベル(H)になり、ORゲート33.34のずれか
の出力も高レベル(H)になり、これがR3−232C
インタフエース12が接続されていることを示す信号と
してマイクロコンピュータ37に入力する。
First, when determining whether or not the R3-232C interface 12 is connected, the microcomputer 37
by the first, third, fifth and sixth switch 23.2
5.27.28 is turned on, the second and fourth switches 24.26 are turned off, R3- of DCF, 1
If the 232C interface 12 is connected, the SD
A transmitting circuit (
Since the output circuit) is connected, the standard voltage of R3-232C interface 12 (-3V or less, +3V or more)
is input to the SD signal line 14 or the RD signal line 15. S
When the standard voltage is input to the D flaw signal 14 or the RD signal line 15, the output of any one of the first to fourth comparators 29 to 32 becomes high level (H), and the output of one of the OR gates 33 and 34 becomes high level (H). The output also becomes high level (H), which is R3-232C.
The signal is input to the microcomputer 37 as a signal indicating that the interface 12 is connected.

R3−232Cインタフエース13が接続されているか
否かを判定する時には、マイクロコンピュータ37によ
って第2、第4、第5及び第6のスイッチ24.26.
27.28をオン状態になし、第1及び第3のスイッチ
23.25をオフ状態になす、R3−232Cインタフ
エース13が接続されている時には、SD信号線16又
はRD信号線17にR3−232Cインタフエース13
の規格電圧(−3v以下、+3V以上)が得られ、第1
〜第4の比較器29〜32のいずれかの出力が高レベル
になり、ORゲート33.34のずれかの出力も高レベ
ルになり、これがR3−2320インタフエース13が
接続されていることを示す信号としてマイクロコンピュ
ータ37に送られる。
When determining whether or not the R3-232C interface 13 is connected, the microcomputer 37 selects the second, fourth, fifth, and sixth switches 24, 26, .
When the R3-232C interface 13 is connected, the R3-232C interface 13 is connected to the SD signal line 16 or the RD signal line 17. 232C interface 13
The standard voltage (-3V or less, +3V or more) is obtained, and the first
~The output of one of the fourth comparators 29 to 32 becomes high level, and the output of one of the OR gates 33 and 34 also becomes high level, which indicates that the R3-2320 interface 13 is connected. The signal is sent to the microcomputer 37 as a signal indicating the signal.

R3−232Cインタフエース12がDCEインタフェ
ース機能を有しているか又はDTEインタフェース機能
を有しているかを判定する時には、第1及び第5のスイ
ッチ23.27をオン状態になし、第2、第3、第4、
第6のスイッチ24.25.26.28はオフ状態にな
す、この時R3−232Cインタフエース12がDTE
インタフェースの場合には、R8−232Cインタフエ
ース12のSD信号線14に送信回路(出力回路)が接
続されるために、第1及び第2の比較器29.30にR
8−232Cインタフエース12の規格電圧が入力し、
これがマイナス側しきい値に設定された基準電圧(−3
V)又はプラス側しきい値に設定された基準電圧(+3
V)と比較され、比較器29又は30の出力が高レベル
になり、ORゲート33の出力も高レベルになり、これ
がDTEインタフェースを示す信号としてマイクロコン
ピュータ37に与えられる。
When determining whether the R3-232C interface 12 has a DCE interface function or a DTE interface function, the first and fifth switches 23 and 27 are turned on, and the second and third switches 23 and 27 are turned on. , 4th,
The sixth switch 24.25.26.28 is turned off, at which time the R3-232C interface 12 is
In the case of an interface, since a transmitting circuit (output circuit) is connected to the SD signal line 14 of the R8-232C interface 12, R is connected to the first and second comparators 29 and 30.
The standard voltage of 8-232C interface 12 is input,
This is the reference voltage (-3
V) or the reference voltage set to the positive threshold (+3
V), the output of the comparator 29 or 30 becomes high level, the output of the OR gate 33 also becomes high level, and this is given to the microcomputer 37 as a signal indicating the DTE interface.

一方、R3−232Cインタフエース12がDCEイン
タフェースである場合には、R8−2320インタフエ
ース12のSD信号線14に受信回路又はプルアップさ
れた受信回路が接続される。
On the other hand, when the R3-232C interface 12 is a DCE interface, a receiving circuit or a pull-up receiving circuit is connected to the SD signal line 14 of the R8-2320 interface 12.

受信回路が接続されている場合には、SD信号線14が
マイナス側しきい値電圧(−3V)とプラス側しきい値
電圧(+3v)との間の値であるので、第1及び第2の
比較器29及び30の出力が低レベル(L)になり、O
Rゲート33の出力も低レベルになり、これがDCBイ
ンタフェースを示す信号としてマイクロコンピュータ3
7に与えられる。
When the receiving circuit is connected, the SD signal line 14 has a value between the negative threshold voltage (-3V) and the positive threshold voltage (+3V), so the first and second The outputs of comparators 29 and 30 become low level (L), and O
The output of the R gate 33 also becomes low level, and this is sent to the microcomputer 3 as a signal indicating the DCB interface.
7 is given.

R3−232Cインタフエース13がDCEインタフェ
ースかDTEインタフェースかを判定する時には、第2
及び第5のスイッチ24.27をオン状態になし、第1
、第3、第4及び第6のスイッチ23.25.26.2
8をオフ状態になす。
When determining whether the R3-232C interface 13 is a DCE interface or a DTE interface, the second
and the fifth switch 24.27 is turned on, and the first switch 24.27 is turned on.
, third, fourth and sixth switches 23.25.26.2
8 to the off state.

この時、R,S−232Cインタフエース13がDTE
の場合には、SD信号線16に送信回路(出力回路)が
接続されているなめに、SD信号線16に規格電圧(−
3V以下、+3V以上)が得られ、第1及び第2の比較
器29.30の出力のいずれかが高レベルとなり、OR
ゲート33の出力も高レベルとなり、これがDTEイン
タフェースを示す信号としてマイクロコンピュータ37
に入力する。
At this time, the R, S-232C interface 13 is
In this case, since the transmission circuit (output circuit) is connected to the SD signal line 16, the standard voltage (-
3V or less, +3V or more), one of the outputs of the first and second comparators 29.30 becomes high level, and the OR
The output of the gate 33 also becomes high level, and this is sent to the microcomputer 37 as a signal indicating the DTE interface.
Enter.

一方、R3−232Cインタフエース13がDCEイン
タフェースの場合には、受信回路が接続されるために、
SD信号線16がマイナス側しきい値電圧(−3V)と
プラス側しきい値電圧(+3V)との間の状態になり、
第1及び第2の比較器29.30の出力が低レベルとな
り、ORゲート33の出力も低レベルになり、これがD
CEインタフェースを示す信号としてマイクロコンピュ
ータ37に与えられる。
On the other hand, when the R3-232C interface 13 is a DCE interface, since the receiving circuit is connected,
The SD signal line 16 is in a state between the negative threshold voltage (-3V) and the positive threshold voltage (+3V),
The outputs of the first and second comparators 29 and 30 are at a low level, and the output of the OR gate 33 is also at a low level, which causes D
It is given to the microcomputer 37 as a signal indicating the CE interface.

マイクロコンピュータ37は、R3−232Cインタフ
エース12.13がDTEかDCEかを判定し、これに
基づいて切換回路11に制御信号を与える。今、第6図
の制御線22に高レベルの信号が入力したとすれば、ス
イッチS1 、S2がオン、スイッチ33 、S4がオ
フになり、SD信号線16と18が接続され、且つRD
信号線17と19も接続される。一方、制御線22に低
レベルの信号が入力しなとすれば、スイッチS1 、 
S2がオフになり、スイッチS3、S4がオンになって
、SD信号線16とRD信号線19とが接続され、また
RD信号線17とSD信号線18とが接続される。また
、判別完了後のデータ通信時には、スイッチ23.24
.25.26をオン制御する。SD信号線とRD信号線
以外の信号線においても、必要に応じて第4図又は第5
図に示すような接続切換えが行われる。
The microcomputer 37 determines whether the R3-232C interface 12.13 is DTE or DCE, and provides a control signal to the switching circuit 11 based on this determination. Now, if a high-level signal is input to the control line 22 in FIG.
Signal lines 17 and 19 are also connected. On the other hand, if a low level signal is not input to the control line 22, the switches S1,
S2 is turned off, switches S3 and S4 are turned on, and the SD signal line 16 and RD signal line 19 are connected, and the RD signal line 17 and SD signal line 18 are connected. In addition, at the time of data communication after the determination is completed, the switches 23 and 24 are
.. 25 and 26 are turned on. For signal lines other than the SD signal line and RD signal line, follow the steps shown in Figure 4 or 5 as necessary.
Connection switching is performed as shown in the figure.

上述のように本実施例によれば、DTEインタフェース
かDCEインタフェースがを自動的に判定することがで
き、更に2つのインタフェース間の接続を自動的に切換
えることができる。
As described above, according to this embodiment, it is possible to automatically determine whether the interface is a DTE interface or a DCE interface, and furthermore, it is possible to automatically switch the connection between the two interfaces.

[変形例コ 本発明は上述の実施例に限定されるものでなく、例えば
次の変形が可能なものである。
[Modifications] The present invention is not limited to the above-described embodiments, and for example, the following modifications are possible.

(1) 第7図に示すように1台のパーソナルコンピュ
ータ40にR3−232C切換器41を介して複数台の
DTE又はDCE周辺装置42.43.44.45を接
続し、R3−232C切換器41に実施例の判別回路3
と同一の機能を持たせてもよい、この場合にはパーソナ
ルコンピュータ40のR8−232Cインタフエースと
周辺装置42〜45のインタフェースとの種類の変化に
拘わらず、ケーブルの差替えなしに自動的に接続を変え
ることができる。
(1) As shown in FIG. 7, a plurality of DTE or DCE peripheral devices 42, 43, 44, 45 are connected to one personal computer 40 via an R3-232C switch 41, and the R3-232C switch 41 is the discrimination circuit 3 of the embodiment.
In this case, the R8-232C interface of the personal computer 40 and the interfaces of the peripheral devices 42 to 45 may be automatically connected without replacing cables, regardless of the type of interface. can be changed.

(2) 第8図に示すようにプロトコルアナライザ50
と回線装W、51とを接続する場合において、プロトコ
ルアナライザのインタフェース部分に本発明を応用する
ことができる。プロトコルアナライザでシュミレーショ
ンを行なう場合には、プログラムで、DCE側、/DT
E側の指定を行なうが、本発明を使用すると自動的にD
CE/DTEの判別が行える。
(2) Protocol analyzer 50 as shown in Figure 8
The present invention can be applied to the interface part of the protocol analyzer when connecting the line equipment W and 51. When performing a simulation with a protocol analyzer, program the DCE side, /DT
The E side is specified, but when this invention is used, the D side is automatically specified.
CE/DTE can be distinguished.

(3)  R3−232Cインタフエース以外にも適用
可能である。
(3) Applicable to interfaces other than R3-232C.

[発明の効果] 以上説明したように、本発明によれば、DCEインタフ
ェースかDTEインタフェースかを自動的に判別するこ
とができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to automatically determine whether the interface is a DCE interface or a DTE interface.

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

第1図は本発明の一実施例に係わる判別切換回路とDC
EとDTEとの関係を示すブロック図、第2図は2つの
R3−232Cインタフエースと判別切換回路との関係
を示すブロック図、第3図は第2図の判別回路を詳しく
示す回路図、第4図及び第5図は2つのR3−232C
インタフ工−ス間の接続関係をそれぞれ示す図、第6図
は第2図の切換回路の一部を示す図、第7図は及び第8
図は変形例をそれぞれ示すブロック図である。 1・・・DCE、2・・・DTE、3・・・判別切換回
路、10・・・判別回路、11・・・切換回路、12.
13・・・R3−232Cインタフエース、29.30
,31.32・・・比較器。
FIG. 1 shows a discrimination switching circuit and a DC circuit according to an embodiment of the present invention.
FIG. 2 is a block diagram showing the relationship between the two R3-232C interfaces and the discrimination switching circuit, FIG. 3 is a circuit diagram showing the discrimination circuit in FIG. 2 in detail, Figures 4 and 5 show two R3-232C
6 is a diagram showing a part of the switching circuit of FIG. 2, and FIG. 7 is a diagram showing the connection relationship between interfaces.
The figures are block diagrams showing modified examples. 1...DCE, 2...DTE, 3...Discrimination switching circuit, 10...Discrimination circuit, 11...Switching circuit, 12.
13...R3-232C interface, 29.30
, 31.32... Comparator.

Claims (1)

【特許請求の範囲】 [1]インタフェースがデータ終端装置(DCE)イン
タフェースかデータ端末装置(DTE)インタフェース
かを判別するものであつて、前記インタフェースの信号
線に接続された電圧比較器を含み、前記信号線の電圧レ
ベルの相違に対応した前記電圧比較器の出力の相違によ
つて前記データ終端装置インタフェースか前記データ端
末装置インタフェースかを判別するように構成されてい
ることを特徴とするインタフェース判別回路。 [2]相互に接続される第1及び第2のインタフェース
がDCEインタフェースかDTEインタフェースかを判
別するためのものであり、前記第1のインタフェースの
送信データ信号線と前記第2のインタフェースの送信デ
ータ信号線との間に互いに直列に接続された第1及び第
2のスイッチ(23)(24)と、 前記第1及び第2のスイッチ(23)(24)の相互間
に接続された一方の入力端子と基準電圧源に接続された
他方の入力端子とを有する電圧比較器とを具備し、前記
第1のインタフェースを判定する時には前記第1のスイ
ッチを介して前記電圧比較器に前記第1のインタフェー
スを接続して前記基準電圧と前記第1のインタフェース
の電圧レベルとの比較に基づいてDCEインタフェース
かDTEインタフェースかを判定し、前記第2のインタ
フェースを判定する時には前記第2のスイッチを介して
前記電圧比較器に前記第2のインタフェースを接続して
前記基準電圧と前記第2のインタフェースの電圧レベル
との比較に基づいてDCEインタフェースかDTEイン
タフェースかを判定するように構成されていることを特
徴とするインタフェース判別回路。
[Scope of Claims] [1] A device that determines whether an interface is a data termination equipment (DCE) interface or a data terminal equipment (DTE) interface, and includes a voltage comparator connected to a signal line of the interface, The interface determination is characterized in that it is configured to determine whether the interface is the data termination device interface or the data terminal device interface based on a difference in the output of the voltage comparator corresponding to a difference in the voltage level of the signal line. circuit. [2] The purpose is to determine whether the first and second interfaces connected to each other are a DCE interface or a DTE interface, and the transmission data signal line of the first interface and the transmission data of the second interface first and second switches (23) (24) connected in series between the signal line; and one switch connected between the first and second switches (23) (24). a voltage comparator having an input terminal and the other input terminal connected to a reference voltage source, and when determining the first interface, the first interface is connected to determine whether it is a DCE interface or a DTE interface based on a comparison between the reference voltage and the voltage level of the first interface, and when determining the second interface, the second interface is connected. and the second interface is connected to the voltage comparator to determine whether the interface is a DCE interface or a DTE interface based on a comparison between the reference voltage and the voltage level of the second interface. Features an interface discrimination circuit.
JP1121868A 1989-05-15 1989-05-15 Interface discrimination circuit Pending JPH02301251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1121868A JPH02301251A (en) 1989-05-15 1989-05-15 Interface discrimination circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1121868A JPH02301251A (en) 1989-05-15 1989-05-15 Interface discrimination circuit

Publications (1)

Publication Number Publication Date
JPH02301251A true JPH02301251A (en) 1990-12-13

Family

ID=14821920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1121868A Pending JPH02301251A (en) 1989-05-15 1989-05-15 Interface discrimination circuit

Country Status (1)

Country Link
JP (1) JPH02301251A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6398246A (en) * 1986-10-15 1988-04-28 Yamatake Honeywell Co Ltd Line control system for communication equipment
JPS6398245A (en) * 1986-10-15 1988-04-28 Yamatake Honeywell Co Ltd Line control system for communication equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6398246A (en) * 1986-10-15 1988-04-28 Yamatake Honeywell Co Ltd Line control system for communication equipment
JPS6398245A (en) * 1986-10-15 1988-04-28 Yamatake Honeywell Co Ltd Line control system for communication equipment

Similar Documents

Publication Publication Date Title
EP0419010B1 (en) Circuit and method for automatic input-output configuration through local area network detection
US5761463A (en) Method and apparatus for logic network interfacing with automatic receiver node and transmit node selection capability
US5194758A (en) Automatic switching circuit
CA2113075C (en) Automatic detector and selector of rs-232 or v.35 interface
JPH1069339A (en) Interface mechanism for connecting external equipment
EP0948184A2 (en) Information terminal apparatus
JP2002116853A (en) Usb mounted electronic equipment and use cable to be used therefor
CN217388288U (en) Electronic equipment interface protection circuit and electronic equipment
JPH02301251A (en) Interface discrimination circuit
JPH06224976A (en) Interface conversion circuit for half duplex serial transmission
JPH04247742A (en) Bus line termination system
JP3036991B2 (en) Balanced transmission line disconnection detection circuit
JP3930633B2 (en) Automatic signal switching device
JPH02122730A (en) Signal line terminating system
CN212781164U (en) Circuit and system capable of simultaneously detecting grounding condition and reverse connection of zero line and live line
JPH08288979A (en) Interface changeover method and its device for data transfer device
CN116126765B (en) Signal transmission circuit and method
JP2898024B2 (en) I / O terminal
JP2851085B2 (en) Terminal power off detection method
JP2508580B2 (en) Bus termination control system
KR950010850B1 (en) Apparatus for transmitting remote control signals
JPH08321840A (en) Automatic terminal changeover device
KR200226092Y1 (en) Serial communication driver circuit
JPH0453337A (en) Communication equipment
JPS6034861B2 (en) Serial data transfer circuit