JPS6211953A - Interface circuit - Google Patents

Interface circuit

Info

Publication number
JPS6211953A
JPS6211953A JP15208385A JP15208385A JPS6211953A JP S6211953 A JPS6211953 A JP S6211953A JP 15208385 A JP15208385 A JP 15208385A JP 15208385 A JP15208385 A JP 15208385A JP S6211953 A JPS6211953 A JP S6211953A
Authority
JP
Japan
Prior art keywords
terminal
data
level
output
signal
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
JP15208385A
Other languages
Japanese (ja)
Inventor
So Akazawa
赤沢 創
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP15208385A priority Critical patent/JPS6211953A/en
Publication of JPS6211953A publication Critical patent/JPS6211953A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To attain the normal working of an interface circuit to a signal varying in both positive and negative directions and at the same to omit another power supply, by connecting two input terminals to an output terminal via diodes respectively and connecting a switch means to one of both diodes. CONSTITUTION:A switch SW is turned on when no signal of an H level is supplied to a terminal IN02 and the application level of a terminal IN01 is delivered to a terminal OUT01. Then the SW is turned on and off in response to the data applied to a data terminal when no signal of an H level is supplied to the IN01. When the signal applied from a data terminal 3 is kept at an L level, the SE is turned on and the L level of a data terminal 2 is applied to a computer 4 connected to the terminal OUT01. When the signal applied from the terminal 3 is kept under an H level, the SE is turned off and the H level applied from the terminal 3 is applied to the device 4 via a diode D02. When the signal applied from the IN01 is kept at an H level, the SE is turned off and the signal of an H level is applied to the OUT01 via a diode D01 to obtain an equal output waveform.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はコンピュータ等のインターフェース回路に係り
、特に複数の装置と他の装置とを接続するインターフェ
ース回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an interface circuit for computers and the like, and more particularly to an interface circuit for connecting a plurality of devices and other devices.

〔従来の技術〕[Conventional technology]

コンピュータシステムには本体装置と端末装置とを接続
する入出力端子を有している。これらの端子を介して本
体装置と端末装置とが接続され。
The computer system has an input/output terminal for connecting the main unit and the terminal device. The main unit and the terminal device are connected through these terminals.

データの送受がなされる。この入出力端子は接続するコ
ネクタの形状の他に端子に出力される電気的レベルやさ
らには制御方法が機器によって異っている。この様な入
出力端子の相違をなくする為に、現在では規格化された
インターフェースをほとんどのコンピュータシステムは
有している。たとえばモデムインターフェースはモデム
−公衆回線−モデムを介してコンピュータシステム間の
データ伝送さらには端末とコンピユークシステム間のデ
ータ伝送を可能とした標準インターフェースである。ま
た、パーソナルコンピュータ等にも前述したモデムイン
ターフェースは設けられており。
Data is sent and received. In addition to the shape of the connector to which this input/output terminal is connected, the electrical level output to the terminal and the control method differ depending on the device. In order to eliminate such differences in input/output terminals, most computer systems now have standardized interfaces. For example, a modem interface is a standard interface that allows data transmission between a computer system and between a terminal and a computer system via a modem, a public line, and a modem. Furthermore, personal computers and the like are also equipped with the modem interface described above.

たとえばR5232C規格が取り入れられている。For example, the R5232C standard has been adopted.

前述した様にモデムインターフェースは各コンピュータ
システムに設けられており、異機種間のデータ伝送とし
ては非常に有効なインターフェースである。しかしなが
ら、後述する理由により1個のインターフェース回路に
対して1台の装置しか接続できないので、複数の端末装
置を接続する場合には特別の回路を設けて接続していた
。第7図。
As mentioned above, a modem interface is provided in each computer system, and is a very effective interface for data transmission between different types of computers. However, for reasons described later, only one device can be connected to one interface circuit, so when connecting a plurality of terminal devices, a special circuit has been provided for connection. Figure 7.

第8図は従来の回路の回路構成図である。第7図はダイ
オードDI、D2を各データ出力装置に接続される端子
INI、IN2に接続し、ワイヤードオア回路を構成し
てデータ入力装置に端子OUTを介して出力する様に構
成されている。この構成は、端子INI、IN2に加わ
る信号が正方向の電圧レベルである時にはOUTに正常
な信号が出力される。たとえば端子TNIや端子IN2
の少なくとも一方に+5Vが加わった時には端子OUT
にほぼ+5■が加わる様になっている。(ダイオードの
ジャンクション電圧分実際には低下する)すなわち、端
子TNIよりデータが加わり、端子rN2からはデータ
が加わらない(例えば ○N)場合には、端子OUTか
らは端子INより加わったデータが出力される。またそ
の逆の時には端子OUTからは端子IN2より加わった
データが出力される。
FIG. 8 is a circuit diagram of a conventional circuit. In FIG. 7, diodes DI and D2 are connected to terminals INI and IN2 connected to each data output device to form a wired OR circuit and output to the data input device via the terminal OUT. With this configuration, when the signals applied to the terminals INI and IN2 are at positive voltage levels, a normal signal is output to OUT. For example, terminal TNI or terminal IN2
When +5V is applied to at least one of the terminals, the terminal OUT
Approximately +5■ is added to . (It actually decreases by the junction voltage of the diode.) In other words, if data is added from terminal TNI and no data is added from terminal rN2 (for example, ○N), the data added from terminal IN is output from terminal OUT. be done. In the opposite case, the data added from the terminal IN2 is output from the terminal OUT.

端子TNI、IN2に接続される機器の入力端子は端子
OUTに接続される機器の出力端子が共通に接続される
。複数の入力に対し1個の出力が接続されることは、共
通に複数の入力にデータが加わるので1問題は発生しな
い。これに対し、複数の出力を1個の入力に加えること
はデータの破壊となる。たとえば一方の出力が+5■他
方の出力がOVとなった時には、1個の入力にどの電圧
レベルが加わるか不明であり、これによりデータが受信
できなくなる。これを防止する為に、第7図等の回路が
必要となるのである。しかしながら第7図の回路はワイ
ヤードオアの論理によっているが、これは端子INI、
1N2より加わる信号の電圧レベルが正方向に対して変
化する場合であり、正負両方向の電圧レベルが加わる時
には問題が発生する。たとえば正方向に+12■、負方
向に−12Vと変化する時には共に端子INI、IN2
に負方向の電圧−12Vが加わり、ダイオードD+。
The input terminals of the devices connected to the terminals TNI and IN2 are commonly connected to the output terminals of the devices connected to the terminal OUT. Connecting one output to a plurality of inputs does not cause any problem because data is commonly added to the plurality of inputs. In contrast, adding multiple outputs to a single input results in data destruction. For example, when one output becomes +5 and the other output becomes OV, it is unclear which voltage level will be applied to one input, and as a result, data cannot be received. In order to prevent this, a circuit such as that shown in FIG. 7 is required. However, the circuit in FIG. 7 uses wired-OR logic, which means that the terminals INI,
This is a case where the voltage level of the signal applied from 1N2 changes in the positive direction, and a problem occurs when voltage levels in both positive and negative directions are applied. For example, when changing to +12V in the positive direction and -12V in the negative direction, both terminals INI and IN2
A negative voltage of -12V is applied to the diode D+.

D2に逆電圧が加わることによって共にオフとなって端
子○UTはオープン状態となってしまう。
When a reverse voltage is applied to D2, both are turned off and the terminal UT becomes open.

モデムインターフェースの場合には正負両方向に信号電
圧が変化するので、前述した第7図の回路は使用できな
い。第8図はそれを解決した回路である。端子IN1.
IN2より加わる+12V、−12Vと変換する信号を
バッファBufl、 BaF2によってTTLレベルに
変換してオアゲートORに加え、さらにそのTTLレベ
ルの信号をレベル変換回路Lveで再度+12Vと一1
2Vに変化する信号レベルに変換して端子OUTに出力
する。この回路によって端子INI、IN2より加わる
信号はオア加算されて端子OUTに出力される。この出
力は当然ながら+12Vと一12Vに変化する。第8図
の従来の回路は正負両方向に変化する信号に対しても誤
動作しないが、オアゲートOR等を動作させる為の5■
電源さらにはレベル変換回路L VQを動作させる為の
+12Vの電源が必要となる。
In the case of a modem interface, the signal voltage changes in both positive and negative directions, so the circuit shown in FIG. 7 described above cannot be used. Figure 8 shows a circuit that solves this problem. Terminal IN1.
The signal to be converted into +12V and -12V applied from IN2 is converted to TTL level by buffer Bufl and BaF2 and added to the OR gate OR, and furthermore, the TTL level signal is converted to +12V and -11 again by level conversion circuit Lve.
The signal level is converted to 2V and output to the terminal OUT. By this circuit, the signals applied from the terminals INI and IN2 are OR-added and output to the terminal OUT. This output naturally changes to +12V and -12V. The conventional circuit shown in Fig. 8 does not malfunction even with signals that change in both positive and negative directions, but in order to operate an OR gate, etc.
In addition, a +12V power supply is required to operate the level conversion circuit LVQ.

さらに第7図の回路と比べ部品点数が多くコストが高く
なってしまう。
Furthermore, compared to the circuit shown in FIG. 7, the number of parts is large and the cost is high.

〔発明の目的〕[Purpose of the invention]

本発明は上記従来の欠点に鑑み1両方向に変化する信号
に対しても正常に動作し、特別な電源も必要とせず、さ
らに低コストなインターフェース回路を提供することを
目的とした。
In view of the above-mentioned drawbacks of the conventional art, it is an object of the present invention to provide an interface circuit that operates normally even with signals changing in one and both directions, does not require a special power supply, and is further cost-effective.

〔発明の要点〕[Key points of the invention]

上記目的は本発明によれば、少なくとも第1゜第2の入
力端子と1個の出力端子とを有し、前記第1並びに第2
の入力端子は第1.第2のダイオードを介して出力端子
に接続され、第1のダイオードには並列に第1のスイッ
チ手段が接続されたことを特徴としたインターフェース
回路を提供することによって達成される。
According to the present invention, the above object has at least a first and a second input terminal and one output terminal, and the first and second
The input terminal of . This is achieved by providing an interface circuit which is connected to the output terminal via a second diode and has a first switch means connected in parallel to the first diode.

〔発明の実施例〕[Embodiments of the invention]

以下5図面を用いて本発明の詳細な説明する。 The present invention will be described in detail using the following five drawings.

第1図は本発明の第1の実施例の回路構成図である。1
は本発明の実施例のインターフェース回路である。デー
タ端末2は端子lN0Iに、データ端末3は端子lNO
2にそれぞれ接続されている。端子lN0Iの一方の端
子はダイオードDo+とスイッチSWの並列回路を介し
て端子0UT01の一方の端子に接続されている。そし
て更にその端子0UTOIの一方端子には端子lNO2
の一方の端子がダイオードDO2を介して接続されてい
る。端子lN0L、lNO2,0UTOLの他の端子は
共通に接地されている。スイッチSWは図示しない制御
回路によってオン、オフするが、そのオンとなる条件は
入力TNOI、1N02に共に負のレベル(ローレベル
)が入力した時あるいは端子lNO2に負の信号が入力
した時である。
FIG. 1 is a circuit diagram of a first embodiment of the present invention. 1
is an interface circuit according to an embodiment of the present invention. Data terminal 2 is connected to terminal lN0I, and data terminal 3 is connected to terminal lNOI.
2 are connected to each other. One terminal of the terminal lN0I is connected to one terminal of the terminal 0UT01 via a parallel circuit of a diode Do+ and a switch SW. Furthermore, one terminal of the terminal 0UTOI has a terminal lNO2.
One terminal of is connected via a diode DO2. The other terminals of terminals lN0L, lNO2, and 0UTOL are commonly grounded. The switch SW is turned on and off by a control circuit (not shown), and the condition for turning it on is when a negative level (low level) is input to both the inputs TNOI and 1N02, or when a negative signal is input to the terminal 1NO2. .

第2図は第1゛図に示した本発明の実施例のタイ・ミン
グチャート図である。端子TNO2に正のレベル(ハイ
レベル)が入力しない(データ端末3がデータを送信し
ていない・モードI NX 1)時  ゛にはスイッチ
SWはオンとなり、端子lN0Iに加ワルレベル(ハイ
レベル・ローレベル> がm子0UTOLに出力される
。また端子lN0Iにハイレベルが入力しない(データ
端末2がデータを送信していない・モードI NX 2
)時にはスイッチSWはデータ端末に加わるデータに対
応してオン、オフする。データ端末3より加わる信号が
ローレベルの時にはスイッチSWはオンとなり、端子0
UTOIに接続されているコンピュータ装置4にはデー
タ端末2のローレベルが加わる。データ端末3より加わ
る信号がハイレベルの時にはスイッチSWはオフとなり
、データ端末3より加わるハイレベルがダイオードDQ
2を介してコンピュータ装置4に加わる(尚、コンピュ
ータ装置4の入力端子には負荷抵抗Rが接続されている
)。
FIG. 2 is a timing chart of the embodiment of the present invention shown in FIG. 1. When a positive level (high level) is not input to the terminal TNO2 (data terminal 3 is not transmitting data, mode IN level> is output to m child 0UTOL.Also, high level is not input to terminal lN0I (data terminal 2 is not transmitting data/mode I NX 2
) Sometimes the switch SW turns on and off in response to data applied to the data terminal. When the signal applied from data terminal 3 is low level, switch SW is turned on, and terminal 0
The low level of the data terminal 2 is applied to the computer device 4 connected to the UTOI. When the signal applied from the data terminal 3 is high level, the switch SW is turned off, and the high level applied from the data terminal 3 is connected to the diode DQ.
2 to the computer device 4 (a load resistor R is connected to the input terminal of the computer device 4).

すなわち、データ端末3より加わる信号がローレベルの
時にはスイッチSWを介してデータ端末2のローレベル
がコンピュータ装置4に加わる様に構成されており、そ
れぞれの端子に加わる信号は正常にコンピュータ装置4
に加わる様になる。第2図において、モードINXIに
おけるスイッチSWのオン、オフを表す点線部は端子l
N0L。
That is, when the signal applied from the data terminal 3 is low level, the low level of the data terminal 2 is applied to the computer device 4 via the switch SW, and the signals applied to each terminal are normally sent to the computer device 4.
It becomes like joining. In Fig. 2, the dotted line portion indicating on/off of the switch SW in mode INXI is the terminal l.
N0L.

lNO2が共に負となった時にのみスイッチSWをオン
とした様に制御した場合を表している。端子lN0Iよ
り加わる信号がハイレベルの時には前述とは異なりスイ
ッチSWはオフであるが、ダイオードDo+を介してハ
イレベルが出力端子0’UTO1に加わるので、出力波
形は同じとなる。
This shows a case where the switch SW is controlled to be turned on only when both lNO2 become negative. When the signal applied from the terminal 1N0I is at high level, the switch SW is off unlike the above case, but since the high level is applied to the output terminal 0'UTO1 via the diode Do+, the output waveform is the same.

尚、第1図の本発明の実施例ではオア加算を行っている
ので、端子lN0I、lNO2より共に信号が入力した
(混合領域I NM I X)時にはそのオア加算の結
果が端子0UTOIより出力される。
In the embodiment of the present invention shown in FIG. 1, OR addition is performed, so when signals are input from both terminals lN0I and lNO2 (mixed region INM I X), the result of the OR addition is output from terminal 0UTOI. Ru.

コンピュータシステムによっては特にモデムインターフ
ェース(R3232C)等のシステムではこの様な信号
を受信することはできないが、これは同時にデータ端末
よりデータを出力しない様にシステムを構成することに
よってそれを防止できる。
Some computer systems, especially those with modem interfaces (R3232C), cannot receive such signals, but this can be prevented by configuring the system so that no data is output from the data terminal at the same time.

第3図は本発明の第2の実施例の回路構成図である。第
1図に示した本発明の第1の実施例のスイッチをPNP
のトランジスタTrで構成している。ダイオードDn+
に並列にトランジスタTr 。
FIG. 3 is a circuit configuration diagram of a second embodiment of the present invention. The switch of the first embodiment of the present invention shown in FIG.
It is composed of transistors Tr. Diode Dn+
Transistor Tr in parallel with.

のコレクタとエミッタが接続され、端子lNO2に抵抗
を介してベースが接続されている。端子■NO2にロー
レベルが加わった時には抵抗Rを介してトランジスタT
、のベースにローレベルが加わるのでトランジスタT7
のコレクタ・エミッタ間は端子lN0Iにローレベルが
加わった場合に−10= ばオンとなりコレクタ・エミッタを介してそのローレベ
ルが端子0UTOIに出力される。一方。
The collector and emitter are connected, and the base is connected to the terminal lNO2 via a resistor. When a low level is applied to the terminal NO2, the transistor T is connected via the resistor R.
Since a low level is applied to the base of transistor T7
When a low level is applied to the terminal lN0I, -10= is turned on between the collector and emitter, and the low level is output to the terminal 0UTOI via the collector and emitter. on the other hand.

&lil子lN0Lにハイレベルが加わった場合にはコ
レクタ・エミッタ間に逆電圧が加わるので、オフとなり
トランジスタには電流は流れず、ダイオードDo)を介
してハイレベルが端子0’UTMに出力される。このト
ランジスタT7のオン、オフの動作は前述したタイミン
グチャート図のスイッチSWのオン、オフを表す点線に
対応する。尚。
When a high level is applied to N0L, a reverse voltage is applied between the collector and emitter, so the transistor turns off and no current flows through the transistor, and a high level is output to terminal 0'UTM via the diode Do). . The on/off operation of the transistor T7 corresponds to the dotted line representing the on/off state of the switch SW in the timing chart described above. still.

トランジスタT7をたとえばMOS)ランジスタとした
時にはタイミングチャート図の実線に対応する。
When the transistor T7 is, for example, a MOS transistor, it corresponds to the solid line in the timing chart.

前述した様に本発明の実施例においては電源を用いずに
正負両方向に変化する信号の論理和を行って端子0UT
OLに出力している。
As mentioned above, in the embodiment of the present invention, signals that change in both positive and negative directions are logically summed without using a power supply, and the terminal 0UT is
It is output to OL.

第4図は本発明の第1.第2の実施例の応用構成図であ
る。
FIG. 4 shows the first embodiment of the present invention. FIG. 7 is an applied configuration diagram of the second embodiment.

本発明の実施例のインターフェース回路1−1〜1−5
の一方の入力を次段の入力に加えて計5段の直列回路を
構成している。そしてそのインク−フェース回路1−1
の端子lNO2−5にデータ端末10の出力を接続し、
インターフェース回路1−1〜1−5(7)他方の端子
lN0L−1〜lN0L−5にデータ端末5〜9の出力
を接続している。そしてインターフェース回路1−1の
端子0UTO1,−1をデータ端末5〜1oの入力に共
通に接続している。たとえばデータ端末1oより出力さ
れたデータはインターフェース回路1−5〜1−1を順
次通過してデータ端末5〜10の入力にそれぞれ加わる
。この構成により。
Interface circuits 1-1 to 1-5 according to embodiments of the present invention
One input is added to the input of the next stage, forming a total of five stages of series circuits. And the ink-face circuit 1-1
Connect the output of the data terminal 10 to the terminal lNO2-5 of the
The outputs of the data terminals 5 to 9 are connected to the other terminals lN0L-1 to lN0L-5 of the interface circuits 1-1 to 1-5 (7). The terminals 0UTO1 and -1 of the interface circuit 1-1 are commonly connected to the inputs of the data terminals 5 to 1o. For example, data output from the data terminal 1o sequentially passes through the interface circuits 1-5 to 1-1 and is applied to the inputs of the data terminals 5 to 10, respectively. With this configuration.

いずれのデータ端末より出力されたデータも全てのデー
タ端末に加わる。データ端末はそれぞれCPU等のイン
テリジェント機能を有しており、加わるデータを選択し
て取込む様にすることによって目的のデータ端末にその
データが伝送される様になる。すなわち9本発明のイン
ターフェース回路を用いることにより、簡単なL A 
N (Local AreaNetwork )を構成
することができる。
Data output from any data terminal is added to all data terminals. Each data terminal has an intelligent function such as a CPU, and by selecting and importing data to be added, the data is transmitted to the target data terminal. In other words, by using the interface circuit of the present invention, a simple LA
N (Local AreaNetwork) can be configured.

第5図は本発明の第1.第2の実施例の他の応用構成図
である。第4図と同様に本発明の実施例のインターフェ
ース回路1−6〜1−9は直列接続されており、データ
端末1〜5のデータ出力はインターフェース回路1−9
の端子lNO2−9に接続している。そしてインターフ
ェース回路1−6〜1−9の端子TNOI−6〜lN0
L−9にはデータ端末11〜14の出力が接続されてい
る。これにより、いずれのデータ端末より出力されたデ
ータはオア加算されてインターフェース回路1−6の端
子0UTOL〜6より出力され。
FIG. 5 shows the first embodiment of the present invention. FIG. 7 is another applied configuration diagram of the second embodiment. Similarly to FIG. 4, the interface circuits 1-6 to 1-9 of the embodiment of the present invention are connected in series, and the data outputs of the data terminals 1 to 5 are connected to the interface circuits 1-6 to 1-9.
It is connected to terminal lNO2-9 of. And terminals TNOI-6 to lN0 of interface circuits 1-6 to 1-9
The outputs of data terminals 11 to 14 are connected to L-9. As a result, data output from any data terminal is OR-added and output from terminals 0UTOL-6 of the interface circuit 1-6.

共用コンピュータ16に加わる。共通コンピュータ16
は補助記憶装置17.1B、プリンタ19゜磁気テープ
装置20を有しており、1台のデータ端末より各インタ
ーフェース回路を介して加わる信号で必要としたデータ
をたとえばプリント出力する。またたとえば補助記憶装
置17.18内に格納されているプログラム等を読出す
命令等が加わった時には共用コンピュータ16によって
読出され、共用コンピュータ16の出力が各データ端末
11〜15の入力に共通に接続している端子より出力さ
れ、要求したデータ端末はそのプロゲラムを取込む。デ
ータ端末が簡単なパーソナルコンピュータ等で構成され
ていても本発明の実施例を用いることにより共通コンピ
ュータ16に接続されている装置さらには共通コンピュ
ータ16の処理殿能をそれぞれのデータ端末11〜15
で使用することができる。尚、共用コンピュータにデー
タ端末11〜15のうちの1台がアクセスしている時に
は他の装置はそれをアクセスすることはできない。この
応用回路も前述したと同様に簡単な回路でLAN等のシ
ステムが構成可能となっている。
Join the shared computer 16. common computer 16
has an auxiliary storage device 17.1B, a printer 19.degree. magnetic tape device 20, and prints out, for example, required data using signals applied from one data terminal via each interface circuit. For example, when a command to read a program stored in the auxiliary storage device 17, 18 is added, it is read out by the shared computer 16, and the output of the shared computer 16 is commonly connected to the input of each data terminal 11 to 15. The program is output from the terminal that is connected to the program, and the data terminal that requested it receives the program program. Even if the data terminals are constituted by simple personal computers or the like, by using the embodiment of the present invention, the processing capabilities of the devices connected to the common computer 16 and the common computer 16 can be increased to the respective data terminals 11 to 15.
It can be used in Note that when one of the data terminals 11 to 15 is accessing the shared computer, no other device can access it. This application circuit can also be used to configure a system such as a LAN using a simple circuit as described above.

前述した第1.第2の実施例においてはスイッチ手段た
とえばトランジスタを1個設け2個の入力レベルに対し
てオン、オフを行っている。しかしながら、この第1.
第2の実施例においては。
The above-mentioned 1. In the second embodiment, a switch means, for example, one transistor, is provided to turn on and off in response to two input levels. However, this first.
In the second embodiment.

2個の入力に共にローレベル(負電圧)が入力した時に
のみローレベルが出力される様に構成されている。ある
いは他方の入力にローレベルが加わった時に一方の入力
がスイッチによって出力される様に構成されている。そ
の為、1個の入力を未接続とした時にはローレベルが出
力されない問題が発生する。第3図点線の抵抗R′とダ
イオードDbはこれを解決するものであり、端子lNO
2が未接続であっても、端子lN0Iよりローレベルが
加わった時に抵抗Ri)、ダイオードDbを介してベー
スに負電圧を加えトランジスタT、をオンとし、出力に
ローレベルが加わる様に動作する。
It is configured such that a low level is output only when low level (negative voltage) is input to both inputs. Alternatively, one input is configured to be output by a switch when a low level is applied to the other input. Therefore, when one input is left unconnected, a problem arises in which a low level is not output. The resistor R' and diode Db indicated by the dotted line in Figure 3 solve this problem, and the terminal lNO
Even if 2 is not connected, when a low level is applied from the terminal lN0I, a negative voltage is applied to the base through the resistor Ri) and the diode Db, turning on the transistor T, and it operates so that a low level is applied to the output. .

第6図は前述した第3図(黒線部抵抗Rb、ダイオード
Dしを含む)の回路を端子lN0L、lNO2の両方に
設け、一方が未接続であっても動作する本発明の第3の
実施例の回路構成図である。
FIG. 6 shows a third embodiment of the present invention in which the circuit shown in FIG. 3 (including the black line resistor Rb and diode D) is provided at both terminals lN0L and lNO2, and operates even if one of them is unconnected. FIG. 2 is a circuit configuration diagram of an example.

先ず端子lNl1.端子lNl2に共にデータ端末等が
接続されている場合を説明する。端子lN11、端子I
NI 2の少なくとも一方にハイレベルたとえば12V
が加わった時にはダイオードDDIやダイオードD[1
2を介して、出力0UT12にハイレベルが加わった時
には抵抗R13を介して端子INI 1に加わったロー
レベルがトランジスタT、2のベース、また抵抗R14
を介して端子lNl2に加わったローレベルがトランジ
スタT、+のベースにそれぞれ加わることによってトラ
ンジスタT、l、T、2を共にオンとし、端子INI 
1と端子INI 2に加わったローレベルがそれぞれト
ランジスタT、l、T、2(7)コレクタ・エミッタを
介して端子0UT12に出力され、前述した第1.第2
の実施例と同様の動作となる。
First, terminal lNl1. A case will be explained in which a data terminal or the like is also connected to the terminal lNl2. Terminal lN11, terminal I
At least one of NI 2 has a high level, e.g. 12V.
When added, diode DDI and diode D[1
When a high level is applied to the output 0UT12 via resistor R13, a low level applied to the terminal INI1 is applied to the base of transistors T and 2, and also to the resistor R14.
The low level applied to the terminal lNl2 via
The low levels applied to terminals INI and INI2 are output to terminal OUT12 via the collector-emitters of transistors T, I, T, and T2 (7), respectively, and the low levels applied to terminals INI and INI2 are outputted to terminal OUT12 through the collector-emitters of transistors T, I, T, and 2 (7), respectively. Second
The operation is similar to that of the embodiment.

次に端子INI 1にのみデータ端末が接続された場合
を説明する。ハイレベルが端子INI 1に加わった時
にはダイオードDa+を介して端子0UT12にハイレ
ベルが出力される。ローレベルが端子INI 1に加わ
った時には、第3図に示したと同様に抵抗R++とダイ
オードD を介してトランジスタT、−+にローレベル
が加わり、トランジスタT、lをオンとした。これによ
り端子INIIに加わったローレベルがトランジスタT
、−+のコレクタ・エミッタを介して端子0UT12に
出力される。前述とは逆に端子INI 2にのみデータ
端末が接続された場合にも前述と同様に動作する。即ち
、ハイレベルが端子lNl2に入力した時にはダイオ−
ドD[12を介して端子0UT12にハイレベルが出力
される。そして。
Next, a case where a data terminal is connected only to terminal INI 1 will be explained. When a high level is applied to the terminal INI1, a high level is outputted to the terminal 0UT12 via the diode Da+. When a low level is applied to the terminal INI1, a low level is applied to the transistors T, -+ through the resistor R++ and the diode D, turning on the transistors T and l, in the same way as shown in FIG. As a result, the low level applied to the terminal INII is transferred to the transistor T.
, -+ are outputted to the terminal 0UT12 via the collector-emitter. Contrary to the above case, even when a data terminal is connected only to the terminal INI 2, the same operation as above is performed. That is, when a high level is input to the terminal lNl2, the diode
A high level is output to the terminal 0UT12 via the terminal D[12. and.

ローレベルが入力した時には、抵抗RにダイオードDb
zを介してトランジスタT、2にローレベルが加わり、
トランジスタT、2をオンとした。これにより端子lN
l2に加わったローレベルがトランジスタTr2のコレ
クタ・エミッタを介して端子0UT12に出力される。
When a low level is input, a diode Db is connected to the resistor R.
A low level is applied to the transistor T,2 through z,
Transistors T and 2 were turned on. This allows the terminal lN
The low level applied to l2 is output to the terminal 0UT12 via the collector-emitter of the transistor Tr2.

よって、端子lN11.12の一方がデータ端末に未接
続であっても、接続されたデータ端末のレベルが正常に
端子0UT12に出力される。なお、抵抗 R11゜R
12に対し直列に接続されたダイオードD、、 。
Therefore, even if one of the terminals IN11.12 is not connected to a data terminal, the level of the connected data terminal is normally output to the terminal 0UT12. In addition, the resistance R11゜R
Diodes D, , connected in series to 12.

D、ユは一方の端子にハイレベルが加わり、他方の端子
にローレベルが加わった時に抵抗R14゜R13を介し
て電流が流れるのを防止するものである。たとえば、端
子INII、lNl2の両方にデータ端末が接続され、
端子INIIにローレベル、端子lNl2にハイレベル
が加わった時に。
D and U prevent current from flowing through the resistors R14 and R13 when a high level is applied to one terminal and a low level is applied to the other terminal. For example, a data terminal is connected to both terminals INII and lNl2,
When a low level is applied to the terminal INII and a high level is applied to the terminal INII.

抵抗R12と抵抗R13を介して電流が流れるのをダイ
オードDI、2が防止している。
Diode DI,2 prevents current from flowing through resistor R12 and resistor R13.

以上の本発明の実施例は全て正論理の信号に対して動作
する回路である。すなわち、データを送出しない時には
常に入力にローレベルが加わる場合に動作する回路であ
る。本発明は正論理のデータに限らず負論理のデータに
関しても同様の動作が可能である。第9図、第10図は
負論理データに対して動作する本発明の第4.第5の実
施側の回路構成図である。第9図は第2図における本発
明の第2の実施例のダイオードDn+、Do2を逆方向
に接続(D+ +、D+ 2) しさらにトランジスタ
T、をNPN)ランジスタT、′としたものであり、他
の構成は全て第2図と同様である。
All of the embodiments of the present invention described above are circuits that operate on positive logic signals. That is, this is a circuit that operates when a low level is always applied to the input when not transmitting data. The present invention is capable of similar operation not only for positive logic data but also for negative logic data. 9 and 10 show the fourth embodiment of the present invention which operates on negative logic data. It is a circuit block diagram of the 5th implementation side. In FIG. 9, the diodes Dn+ and Do2 of the second embodiment of the present invention in FIG. 2 are connected in opposite directions (D+ +, D+ 2), and the transistor T is replaced with an NPN transistor T,'. , all other configurations are the same as in FIG.

又、第10図は第6図に示した本発明の第3の実施例の
ダイオードDI>l+ Dbz+ Do 1. Do 
2を逆方向に接続(Db+ ’、 Dhz’、  D+
 1゜DI2)L、、さらにトランジスタT y + 
+ T r 2をNPN)ランジスタT r l ’ 
I T y’ 2′としたものであり、他の構成は全て
第6図と同様である。
Further, FIG. 10 shows the diode DI>l+ Dbz+ Do 1. of the third embodiment of the present invention shown in FIG. Do
2 in the opposite direction (Db+ ', Dhz', D+
1゜DI2)L, and further transistor T y +
+ T r 2 to NPN) transistor T r l'
I T y'2', and all other configurations are the same as in FIG.

第9図、第10図の第4.第5の実施例において共に端
子INI 1 ’がハイレベルが加わり、端子lNO2
’にデータ信号(データに対応してハイし・ベルとロー
レベルが変わる)が加わった場合には端子TNO2’に
加わったデータ信号が端子0UTOLに出力される。ま
た逆に端子TNO2’にハイレベルが加わり、端子lN
0I1.’にデータ信号が加わった場合には端子lNO
2’に加わった信号がデータ端子OtJ Tに出力され
る。この動作ではトランジスタT、lやトランジスタT
、l、 T、 2Jは前述した第2.第3の実施例と同
様の状態でオン、オフとなる。尚、第10図に示した本
発明の第5の実施例は、第6図に示した本発明の第3の
実施例に示した様に、一方の端子にデータ端末が接続さ
れていなくても動作し。
4 in Figures 9 and 10. In the fifth embodiment, a high level is added to both terminals INI1' and terminal INO2.
When a data signal (the level changes from high to low depending on the data) is added to the terminal TNO2', the data signal applied to the terminal TNO2' is output to the terminal 0UTOL. Conversely, a high level is added to the terminal TNO2', and the terminal lN
0I1. If a data signal is applied to ', the terminal lNO
2' is output to the data terminal OtJT. In this operation, transistors T, l and transistor T
, l, T, 2J are the second. It turns on and off in the same state as in the third embodiment. The fifth embodiment of the present invention shown in FIG. 10 differs from the third embodiment of the invention shown in FIG. 6 in that the data terminal is not connected to one terminal. Also works.

接続されてデータ端末からの入力データを出力する。Connected to output input data from a data terminal.

以上1本発明の実施例を用いて説明したが1本発明は、
データ端末の出力データを1 +l1ilの出力端子に
出力するばかりでなく、たとえば複数のコンピュータか
らのプリントデータをプリンタ等に出力することも可能
である。
The above description has been made using the embodiments of the present invention; however, the present invention has the following features:
In addition to outputting the output data of the data terminal to the 1+l1il output terminal, it is also possible to output print data from a plurality of computers to a printer or the like.

〔発明の効果〕〔Effect of the invention〕

以上述べた様に本発明は抵抗、ダイオードさらにはトラ
ンジスタによって複数のデータ端末等より出力される正
負両方向の電圧レベルを有するデータを1個の端子に出
力するものであり、さらに前述したトランジスタは信号
レベルでオン、オフするので本発明によれば正負両方向
に変化する信号に対しても正常に動作し、別な電源を必
要とせず、さらに低コストなインターフェース回路を得
ることができる。
As described above, the present invention outputs data having both positive and negative voltage levels output from a plurality of data terminals to a single terminal using resistors, diodes, and even transistors. Since it is turned on and off depending on the level, the present invention operates normally even with signals that change in both positive and negative directions, does not require a separate power supply, and can provide an interface circuit at a lower cost.

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

第1図は本発明の第1の実施例の回路構成図。 第2図は第1図の第1の実施例のタイムチャート図。 第3図は本発明の第2の実施例の回路構成図。 第4図、第5図は本発明の実施例の応用回路構成図。 第6図は一方の端子が未接続であっても他方の端子より
加わる信号を出力する本発明の第3の実施例の回路構成
図。 第7図、第8図は従来のインターフェース回路の回路構
成図。 第9図、第10図は負論理データで動作する本発明の第
4.第5の実施例の回路構成図である。 Dot、D[12,Do+’、DO2’・ ・ ・ダイ
オード。 Tf+  ’rr’l  T、+、Tr2.Tyl’+
  Ty2’・・・トランジスタ。 SW・・・スイッチ。 R,R++〜R14 ・・・抵抗。 特許 出願人   カシオ計算機株式会社第1図
FIG. 1 is a circuit configuration diagram of a first embodiment of the present invention. FIG. 2 is a time chart diagram of the first embodiment shown in FIG. FIG. 3 is a circuit configuration diagram of a second embodiment of the present invention. FIG. 4 and FIG. 5 are applied circuit configuration diagrams of an embodiment of the present invention. FIG. 6 is a circuit configuration diagram of a third embodiment of the present invention, which outputs a signal applied from the other terminal even if one terminal is not connected. 7 and 8 are circuit configuration diagrams of conventional interface circuits. 9 and 10 show the fourth embodiment of the present invention which operates with negative logic data. FIG. 3 is a circuit configuration diagram of a fifth embodiment. Dot, D[12, Do+', DO2'... Diode. Tf+ 'rr'l T, +, Tr2. Tyl'+
Ty2'...transistor. SW...Switch. R, R++~R14...Resistance. Patent Applicant Casio Computer Co., Ltd. Figure 1

Claims (5)

【特許請求の範囲】[Claims] (1)少なくとも第1、第2の入力端子と1個の出力端
子とを有し、前記第1並びに第2の入力端子は第1、第
2のダイオードを介して出力端子に接続され、第1のダ
イオードには並列に第1のスイッチ手段が接続されたこ
とを特徴としたインターフェース回路。
(1) It has at least first and second input terminals and one output terminal, the first and second input terminals are connected to the output terminal via the first and second diodes, and the first and second input terminals are connected to the output terminal via the first and second diodes. An interface circuit characterized in that a first switch means is connected in parallel to the first diode.
(2)前記第1のスイッチ手段はスイッチ制御端子を有
し該スイッチ制御端子は第2の入力端子に接続されたこ
とを特徴とした特許請求の範囲第1項記載のインターフ
ェース回路。
(2) The interface circuit according to claim 1, wherein the first switch means has a switch control terminal, and the switch control terminal is connected to a second input terminal.
(3)前記第1のスイッチ手段は第1のトランジスタと
第1の抵抗より成り、前記スイッチ制御端子は第1の抵
抗を介して前記第1のトランジスタのベースに接続され
たことを特徴とした特許請求の範囲第2項記載のインタ
ーフェース回路。
(3) The first switch means includes a first transistor and a first resistor, and the switch control terminal is connected to the base of the first transistor via the first resistor. An interface circuit according to claim 2.
(4)前記第2のダイオードには並列に第2のスイッチ
手段が接続され、該第2のスイッチ手段のスイッチ制御
端子は第1の入力端子に接続されたことを特徴とした特
許請求の範囲第2項記載のインターフェース回路。
(4) A second switch means is connected in parallel to the second diode, and a switch control terminal of the second switch means is connected to the first input terminal. The interface circuit according to item 2.
(5)前記第1、第2のスイッチ手段は第2、第3のト
ランジスタと、第2、第3、第4、第5の抵抗より成り
、該第2、第3の抵抗は前記第2、第3のトランジスタ
のコレクタとベースに接続され、前記第1、第2のスイ
ッチ手段のスイッチ制御端子は前記第4、第5の抵抗を
介して前記第2、第3のトランジスタのベースに接続さ
れたことを特徴とした特許請求の範囲第4項記載のイン
ターフェース回路。
(5) The first and second switch means are composed of second and third transistors, and second, third, fourth, and fifth resistors, and the second and third resistors are the second and third transistors. , connected to the collector and base of a third transistor, and the switch control terminals of the first and second switch means are connected to the bases of the second and third transistors via the fourth and fifth resistors. The interface circuit according to claim 4, characterized in that:
JP15208385A 1985-07-10 1985-07-10 Interface circuit Pending JPS6211953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15208385A JPS6211953A (en) 1985-07-10 1985-07-10 Interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15208385A JPS6211953A (en) 1985-07-10 1985-07-10 Interface circuit

Publications (1)

Publication Number Publication Date
JPS6211953A true JPS6211953A (en) 1987-01-20

Family

ID=15532679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15208385A Pending JPS6211953A (en) 1985-07-10 1985-07-10 Interface circuit

Country Status (1)

Country Link
JP (1) JPS6211953A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5897800A (en) * 1996-07-17 1999-04-27 Mitsubishi Denki Kabushiki Kaisha Laser beam machine based on optically scanning system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5897800A (en) * 1996-07-17 1999-04-27 Mitsubishi Denki Kabushiki Kaisha Laser beam machine based on optically scanning system

Similar Documents

Publication Publication Date Title
EP0168231A2 (en) A combination circuit
JPH07105803B2 (en) Simultaneous bidirectional transceiver
US5327019A (en) Double edge single data flip-flop circuitry
US4486880A (en) Output multiplexer having one gate delay
JP2003152522A (en) Universal pecl/lvds output structure circuit
EP0193459B1 (en) Ttl tristate output device
JPS6211953A (en) Interface circuit
US5913075A (en) High speed communication between high cycle rate electronic devices using a low cycle rate bus
JP3288259B2 (en) Tri-level signal input circuit
JPS59225422A (en) Bidirectional bus buffer
US6160422A (en) Power saving clock buffer
KR890004998B1 (en) Gate circuits for micro computer system
JP2760017B2 (en) Logic circuit
US5334887A (en) ECL latch circuit
US4277698A (en) Delay type flip-flop
JP2782946B2 (en) Semiconductor integrated circuit
US5905394A (en) Latch circuit
KR100225688B1 (en) Symmetric selector circuit for event logic
JP2590410B2 (en) Count data output circuit
JPH06149429A (en) Pull-up resistor switching circuit
JPS63156422A (en) Two-way input/output circuit
JPS6290028A (en) Logic circuit
JPH0422320B2 (en)
JPS58115934A (en) Superconduction logical circuit
JPH06176593A (en) Shift register