JPH0475120A - Universal interface circuit - Google Patents

Universal interface circuit

Info

Publication number
JPH0475120A
JPH0475120A JP18804190A JP18804190A JPH0475120A JP H0475120 A JPH0475120 A JP H0475120A JP 18804190 A JP18804190 A JP 18804190A JP 18804190 A JP18804190 A JP 18804190A JP H0475120 A JPH0475120 A JP H0475120A
Authority
JP
Japan
Prior art keywords
output
input
terminal
line
voltage
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
JP18804190A
Other languages
Japanese (ja)
Inventor
Hideto Iwasaka
岩坂 英人
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.)
Junkosha Co Ltd
Original Assignee
Junkosha 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 Junkosha Co Ltd filed Critical Junkosha Co Ltd
Priority to JP18804190A priority Critical patent/JPH0475120A/en
Publication of JPH0475120A publication Critical patent/JPH0475120A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To connect a personal computer to external equipment by utilizing an interface of RS232C standard by using the output line and input line of the interface of RS232C standard, two photocouplers, and a fixed resistor. CONSTITUTION:This circuit is formed by using three, first to third output lines and one input line provided at the interface 1 of RS232 standard, the two photocouplers PC1, PC2 provided for input and output, and the fixed resistors R1, R2. A voltage of +PV is supplied to the first output line, and the voltage of +PV or -PV to the second output line selectively, and the voltage of -PV to the third output line by the personal computer, and it is read whether the voltage of the input line is of +PV or -PV by the personal computer. In such a way, no out-fitted power source is required, and also, the interface of RS232C standard is connected to the external equipment.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、パーソナルコンピュータ(以下、パソコンと
いう)に装備されているRS232C規格インターフェ
ースを汎用化するための汎用インターフェース回路に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a general-purpose interface circuit for generalizing an RS232C standard interface installed in a personal computer (hereinafter referred to as a personal computer).

[従来の技術] パソコンで外部機器を制御しようとする場合、入出力拡
張インターフェースポードを用いるのが一般的であるか
、たかだか入出力1ビツトずつあれば事足りるというよ
うな場合(このような場合か少なくない)、上記の入出
力拡張インターフェースボードを用いると、ビット当た
りの単価か非常に高くなり不経済である。
[Prior art] When trying to control external equipment with a personal computer, it is common to use an input/output expansion interface port, or in cases where at most one input/output bit is sufficient (in such cases However, if the above-mentioned input/output expansion interface board is used, the unit cost per bit becomes extremely high, making it uneconomical.

一方、パソコンには、通常RS232C規格+7)イン
ターフェースか標準装備されており、このインターフェ
ースの出力線と入力線のうちの幾つかは、外部機器制御
用に利用できる可能性がある。
On the other hand, personal computers are usually equipped with an RS232C standard+7) interface as standard, and some of the output lines and input lines of this interface may be used for controlling external equipment.

[発明が解決しようとする課題] しかし、このRS232C規格のインターフェースは、
信号電圧レベルが一12V/+12Vと特殊であり、そ
のまま外部機器と接続することはできない。
[Problem to be solved by the invention] However, the interface of this RS232C standard,
The signal voltage level is special at 112V/+12V, so it cannot be connected to external equipment as is.

そこで、レベル変換用のICを挿入することか考えられ
るが、そうするとIC用の電源を外付けで設ける必要が
あり、結局、装置が複雑化しコストアップを招く。
Therefore, it may be possible to insert an IC for level conversion, but this would require an external power supply for the IC, which would eventually complicate the device and increase costs.

本発明は、上記事情を考慮してなされたもので、外付電
源か不要で、しかも低コストでRS232C規格インタ
ーフェースと外部機器とを接続できるようにする汎用イ
ンターフェース回路を提供することを目的とする。
The present invention has been made in consideration of the above circumstances, and aims to provide a general-purpose interface circuit that does not require an external power supply and can connect an RS232C standard interface and external equipment at low cost. .

[課題を解決するための手段] 本発明の汎用インターフェース回路は、ノクーノナルコ
ンピュータに装備されているRS232C規格インター
フェースを汎用化するためのものであり、 RS232C規格インターフェースに備わる第1〜第3
の3本の出力線及び1つの入力線と、入力用及び出力用
に設けた2つのフォトカプラと、固定抵抗とを用い、 上記第1の出力線と入力線との間に上記固定抵抗を接続
し、 上記入力用フォトカプラの発光素子の両端子を外部機器
との接続用入力端子として、該フォトカプラの受光素子
の一方の端子をRS232C規格インターフェースの入
力線に接続すると共に、他方の端子を第3の出力線に接
続し、 また、出力用のフォトカプラの受光素子の両端子を外部
機器との接続用出力端子として、該フォトカプラの発光
素子の一方の端子を第2の出力線に接続すると共に、他
方の端子を第3の出力線に接続し、 そして、パーソナルコンピュータにより第1の出力線に
+PVの電圧を供給し、第2の出力線に十P■または−
PVの電圧を選択的に供給し、第3の出力線に−PVの
電圧を供給し、またパーソナルコンピュータにより上記
入力線の電圧が+P■か−PVかを読み取るようにした
ことを特徴としている。
[Means for Solving the Problems] The general-purpose interface circuit of the present invention is for generalizing the RS232C standard interface equipped in a computer, and includes first to third interfaces provided in the RS232C standard interface.
Using three output lines and one input line, two photocouplers provided for input and output, and a fixed resistor, the fixed resistor is connected between the first output line and the input line. Connect both terminals of the light emitting element of the input photocoupler as input terminals for connection with external equipment, connect one terminal of the light receiving element of the photocoupler to the input line of the RS232C standard interface, and connect the other terminal to the input line of the RS232C standard interface. is connected to the third output line, and both terminals of the light receiving element of the photocoupler for output are used as output terminals for connection with external equipment, and one terminal of the light emitting element of the photocoupler is connected to the second output line. and the other terminal is connected to the third output line, and the personal computer supplies +PV voltage to the first output line and 10P or - to the second output line.
The device is characterized in that the voltage of PV is selectively supplied, the voltage of -PV is supplied to the third output line, and the personal computer reads whether the voltage of the input line is +P■ or -PV. .

[作用] 上記インターフェース回路と外部機器とを接続する場合
、入力用フォトカプラの入力端子と、出力用フォトカプ
ラの出力端子とを、それぞれ外部機器に接続する。
[Operation] When connecting the above interface circuit to an external device, the input terminal of the input photocoupler and the output terminal of the output photocoupler are respectively connected to the external device.

それにより、外部機器からの信号によって、入力用フォ
トカプラの発光素子が点灯/消灯される。
Thereby, the light emitting element of the input photocoupler is turned on/off in response to a signal from the external device.

消灯状態のとき、受光素子はOFF状態である。When the light is off, the light receiving element is in the OFF state.

このときRS232C規格インターフェースの入力線に
は、固定抵抗を介して第1の出力線の電圧+PVが人力
される。また、発光素子か点灯状態のときは、受光素子
かON状態となり、入力線には、受光素子を介して第3
の出力線の電圧−pvが人力される。したがって、外部
機器からの信号がフォトカプラを介してパソコン側に入
力されることになる。
At this time, the voltage +PV of the first output line is applied to the input line of the RS232C standard interface via a fixed resistor. Also, when the light emitting element is in the lighting state, the light receiving element is also in the ON state, and the input line is connected to the third
The voltage -pv of the output line is manually input. Therefore, signals from external equipment are input to the personal computer via the photocoupler.

一方、出力については、第2の出力線を十PV/または
−PVにすると、出力用フォトカプラの発光素子が点灯
/または消灯する。そして、発光素子の状態に応じて受
光素子は○N/またはOFFし、したがってパソコンで
第2の出力線の電圧を制御することにより外部機器をコ
ントロールすることができる。
On the other hand, regarding the output, when the second output line is set to 10 PV/or -PV, the light emitting element of the output photocoupler turns on/off. Then, depending on the state of the light-emitting element, the light-receiving element is turned ON/OFF, and therefore, by controlling the voltage of the second output line with the personal computer, external equipment can be controlled.

[実施例] 以下、本発明の一実施例を図面を裟照して説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.

添付図において、1はパーソナルコンビエータに装備さ
れているRS232C規格インターフェースであり、R
Sは送信要求用の出力端子(第1の出力線ン、DRはデ
ータセットレディ用の入力端子(入力線)、SDは送信
データ用出力端子(第2の出力線)、ERはデータ端末
レディ用の出力端子(第3の出力線)である。
In the attached diagram, 1 is an RS232C standard interface equipped on the personal combinator;
S is the output terminal for transmission request (first output line), DR is the input terminal (input line) for data set ready, SD is the output terminal for transmission data (second output line), ER is data terminal ready. This is the output terminal (third output line) for

パソコンの指令により、RSm子は+12Vi:固定さ
れている。また、パソコンにより所定のタイミングでD
R端子の電圧(+1.2Vまたは一12V)が読み取ら
れる。また、パソコンにより、SD端子は+12Vか一
12Vかに選択的に設定される。さらに、ER端子はパ
ソコンの指令により一12Vに固定されている。
The RSm child is fixed at +12Vi according to a command from the personal computer. In addition, D
The voltage at the R terminal (+1.2V or -12V) is read. Further, the SD terminal is selectively set to +12V or -12V by the personal computer. Furthermore, the ER terminal is fixed at -12V by a command from a personal computer.

そして、上記4つの端子RS,DRSSDSERと、2
つのフォトカプラpct、pc2と、2つの固定抵抗R
1、R2とで実施例の汎用インターフェース回路が構成
されている。
Then, the above four terminals RS, DRSSDSER, and 2
two photocouplers pct, pc2 and two fixed resistors R
1 and R2 constitute the general-purpose interface circuit of the embodiment.

即ち、RS端子とDR端子間には、固定抵抗R1が接続
されている。人力用フォトカプラPCIのダイオード(
発光禁子ンDIのアノード、カソードは外部機器との接
続用入力端子とされ、同カブラPC1のトランジスタ(
受光素子)TriのコレクタはDR端子に、また同トラ
ンンスタTr1のエミッタはER端子にそれぞれ接続さ
れている。
That is, a fixed resistor R1 is connected between the RS terminal and the DR terminal. Diode of photocoupler PCI for human power (
The anode and cathode of the light-emitting device DI are used as input terminals for connection with external equipment, and the transistor (
The collector of the light receiving element Tri is connected to the DR terminal, and the emitter of the transistor Tr1 is connected to the ER terminal.

さらに、出力用のフォトカプラPC2については、トラ
ンジスタ(受光素子)Tr2のコレクタ、エミッタが外
部機器との接続用出力端子とされ、ダイオード(発光素
子)D2のアノードが電流宣言用の固定抵抗R2を介し
てSD端子に、また同ダイオードD2のカソードがER
m子にそれぞれ接続されている。
Furthermore, regarding the output photocoupler PC2, the collector and emitter of the transistor (light receiving element) Tr2 are used as output terminals for connection with external equipment, and the anode of the diode (light emitting element) D2 is connected to the fixed resistor R2 for current declaration. The cathode of the same diode D2 is connected to the SD terminal through the ER terminal.
Each is connected to m children.

このように構成されたインタテフェース回路と外部機器
とを接続する場合、入力用フォトカプラPCIのダイオ
ードD1のアノード、カソードを外部機器の制御信号出
力端子に接続する。また、出力用フォトカプラPC2の
トランジスタTr2のコレクタ、エミッタを外部機器の
制御信号入力端子に接続する。
When connecting the interface circuit configured in this manner to an external device, the anode and cathode of the diode D1 of the input photocoupler PCI are connected to the control signal output terminal of the external device. Further, the collector and emitter of the transistor Tr2 of the output photocoupler PC2 are connected to a control signal input terminal of an external device.

それにより、外部機器によって、入力用フォトカプラP
CIのダイオードD1が点灯/消灯される。そして、消
灯状態のとき、トランジスタTr1はOFF状態である
。このときRS232C規格インターフェースのDR端
子には、固定抵抗R1を介してRS端子の電圧+12V
が入力される。
As a result, the input photocoupler P can be
The diode D1 of CI is turned on/off. When the light is off, the transistor Tr1 is in the OFF state. At this time, the voltage of the RS terminal +12V is applied to the DR terminal of the RS232C standard interface via the fixed resistor R1.
is input.

また、ダイオードD1が点灯状態のときは、トランジス
タTriがON状態となり、DRAW子には、トランジ
スタTrlを介してER端子の電圧−12vか入力され
る。したがって、外部機器の信号がフォトカプラPCI
を介してDR端子に人力されることになる。
Furthermore, when the diode D1 is in the lit state, the transistor Tri is in the ON state, and the voltage of the ER terminal -12V is input to the DRAW child via the transistor Trl. Therefore, the signal from the external device is connected to the photocoupler PCI.
It will be manually input to the DR terminal via the DR terminal.

一方、出力については、SD端子を+12v/または一
12Vにすると、出力用フォトカプラPC2のダイオー
ドD2が点灯/または消灯する。
On the other hand, regarding the output, when the SD terminal is set to +12V/- or -12V, the diode D2 of the output photocoupler PC2 turns on/off.

そして、ダイオードD2の状態に応じてトランジスタT
r2はON/または0FFL、したがってパソコンでD
R端子の電圧を制御することにより外部機器をコントロ
ールすることができる。
Then, depending on the state of the diode D2, the transistor T
r2 is ON/or 0FFL, so D on the computer
External equipment can be controlled by controlling the voltage at the R terminal.

このインターフェース回路は、外部機器側の信号電圧レ
ベルが、入力用フォトカプラPCIのダイオードD1、
出力用フォトカプラPC2のトランジスタTr2の各規
格内にある場合であれば、すべて適用でき応用範囲が広
い。そして、信号電圧レベルの異なるRS232C規格
インターフェースと外部機器との間での信号の授受を可
能にする。
In this interface circuit, the signal voltage level on the external device side is the diode D1 of the input photocoupler PCI,
As long as the transistor Tr2 of the output photocoupler PC2 is within the respective specifications, it can be applied to a wide range of applications. Then, it is possible to exchange signals between the RS232C standard interface and external equipment having different signal voltage levels.

[発明の効果] 以上説明したように、本発明の汎用インターフェース回
路によれば、RS232C規格のインターフェースを利
用してパソコンと外部機器とを接続することができる。
[Effects of the Invention] As described above, according to the general-purpose interface circuit of the present invention, a personal computer and an external device can be connected using an interface of the RS232C standard.

また、このインターフェース回路は、特別な外付電源を
必要とせず、しかもフォトカプラと固定抵抗だけで構成
されているので、構造簡単で安価である。また、このイ
ンターフェース回路を用いた場合、フォトカプラにより
パソコンと外部機器とが電気的に完全に絶縁されるので
、信号線上にノイズが入りにくい。
Furthermore, this interface circuit does not require a special external power supply and is composed only of a photocoupler and a fixed resistor, so it is simple in structure and inexpensive. Furthermore, when this interface circuit is used, the personal computer and external equipment are completely electrically isolated by the photocoupler, making it difficult for noise to enter the signal line.

さらに、このインターフェース回路は、非常に小さく構
成することができ、RS232Cコネクタ内に実装する
ことも可能で、そうすることにより、余分なスペースを
要しない等の効果を奏する。
Furthermore, this interface circuit can be configured very small and can also be mounted within the RS232C connector, thereby providing advantages such as not requiring extra space.

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

添付図面は本発明の一実施例の回路図である。 1 −RS 232 C規格インターフェースPCI・
 入力用フォトカプラ P C2、−−出力用フォトカプラ D1.D2  ・ダイオード(発光素子)Trl、Tr
2・・・・・トランジスタ(受光素子)R1,R2・ 
固定抵抗 RS・・・第1の出力端子 DR・−・入力端子 SD・・・・・第2の出力端子 ER・・・・第3の出力端子
The accompanying drawing is a circuit diagram of one embodiment of the present invention. 1-RS 232 C standard interface PCI/
Input photocoupler P C2, --output photocoupler D1. D2 ・Diode (light emitting element) Trl, Tr
2...Transistor (light receiving element) R1, R2.
Fixed resistance RS...First output terminal DR...Input terminal SD...Second output terminal ER...Third output terminal

Claims (1)

【特許請求の範囲】 パーソナルコンピュータに装備されているRS232C
規格インターフェースを汎用化するインターフェース回
路であって、 RS232C規格インターフェースに備わる第1〜第3
の3本の出力線及び1つの入力線と、入力用及び出力用
に設けた2つのフォトカプラと、固定抵抗とを用い、 上記第1の出力線と入力線との間に上記固定抵抗を接続
し、 上記入力用フォトカプラの発光素子の両端子を外部機器
との接続用入力端子として、該フォトカプラの受光素子
の一方の端子をRS232C規格インターフェースの入
力線に接続すると共に、他方の端子を第3の出力線に接
続し、 また、出力用のフォトカプラの受光素子の両端子を外部
機器との接続用出力端子として、該フォトカプラの発光
素子の一方の端子を第2の出力線に接続すると共に、他
方の端子を第3の出力線に接続し、 そして、パーソナルコンピュータにより第1の出力線に
+PVの電圧を供給し、第2の出力線に+PVまたは−
PVの電圧を選択的に供給し、第3の出力線に−PVの
電圧を供給し、またパーソナルコンピュータにより上記
入力線の電圧が+PVか−PVかを読み取るようにした
ことを特徴とする汎用インターフェース回路。
[Claims] RS232C installed in a personal computer
An interface circuit for generalizing the standard interface, which includes first to third circuits provided in the RS232C standard interface.
Using three output lines and one input line, two photocouplers provided for input and output, and a fixed resistor, the fixed resistor is connected between the first output line and the input line. Connect both terminals of the light emitting element of the input photocoupler as input terminals for connection with external equipment, connect one terminal of the light receiving element of the photocoupler to the input line of the RS232C standard interface, and connect the other terminal to the input line of the RS232C standard interface. is connected to the third output line, and both terminals of the light receiving element of the photocoupler for output are used as output terminals for connection with external equipment, and one terminal of the light emitting element of the photocoupler is connected to the second output line. and the other terminal is connected to the third output line, and the personal computer supplies the voltage of +PV to the first output line, and the voltage of +PV or - to the second output line.
PV voltage is selectively supplied, a -PV voltage is supplied to a third output line, and a personal computer reads whether the voltage of the input line is +PV or -PV. interface circuit.
JP18804190A 1990-07-18 1990-07-18 Universal interface circuit Pending JPH0475120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18804190A JPH0475120A (en) 1990-07-18 1990-07-18 Universal interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18804190A JPH0475120A (en) 1990-07-18 1990-07-18 Universal interface circuit

Publications (1)

Publication Number Publication Date
JPH0475120A true JPH0475120A (en) 1992-03-10

Family

ID=16216644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18804190A Pending JPH0475120A (en) 1990-07-18 1990-07-18 Universal interface circuit

Country Status (1)

Country Link
JP (1) JPH0475120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07175747A (en) * 1993-12-17 1995-07-14 Hiroo Mine External signal input/output method applying standardized interface for transmission of data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07175747A (en) * 1993-12-17 1995-07-14 Hiroo Mine External signal input/output method applying standardized interface for transmission of data

Similar Documents

Publication Publication Date Title
KR900003205B1 (en) Input circuit
JPH0475120A (en) Universal interface circuit
MY103949A (en) Serial data transfer circuit for a semiconductor memory device
JPH0812579B2 (en) interface
FI982046A (en) chipset
US4196360A (en) Interface driver circuit
JPS6043052U (en) transmission device
US5233602A (en) Switching system for computers with 2-bit condition-representing signals
KR880001872Y1 (en) Multi-drop transmission method
SU1653158A1 (en) Optoelectronic flip-flop
JPH079468Y2 (en) Signal input device
KR940007752Y1 (en) Device for key board interface
KR100222780B1 (en) Data communication circuit in the home automation
SU1413707A1 (en) Optronic transducer
EP0486985B1 (en) Comparator
KR890001420Y1 (en) Series communication control circuit
JPH0224293Y2 (en)
JP2933814B2 (en) I / O module switching device
JPS61248150A (en) Interface circuit
JPH04123693A (en) Terminal equipment for remote control
KR930022212A (en) Terminal transmission interface circuit for multidrop connection
JPS59164354U (en) optical transceiver
JPS5945605U (en) Programmable sequence controller
JPS60193717U (en) switching circuit
JPH1185348A (en) Data transfer system