JPH0897863A - Serial communication equipment - Google Patents

Serial communication equipment

Info

Publication number
JPH0897863A
JPH0897863A JP23010994A JP23010994A JPH0897863A JP H0897863 A JPH0897863 A JP H0897863A JP 23010994 A JP23010994 A JP 23010994A JP 23010994 A JP23010994 A JP 23010994A JP H0897863 A JPH0897863 A JP H0897863A
Authority
JP
Japan
Prior art keywords
circuit
differential
voltage
signal
serial communication
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
JP23010994A
Other languages
Japanese (ja)
Inventor
Tasuku Yuguchi
翼 湯口
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.)
Keyence Corp
Original Assignee
Keyence Corp
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 Keyence Corp filed Critical Keyence Corp
Priority to JP23010994A priority Critical patent/JPH0897863A/en
Publication of JPH0897863A publication Critical patent/JPH0897863A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To obtain a serial communication equipment with a small circuit scale, whereby serial communication following plural interface standards is executed. CONSTITUTION: A voltage +12V and the voltage -12V are applied to a differential transmission circuit 2 by switches 5 and 6 at the time of transmission in RS232C communication and the voltage +5V and ground potential 0V are applied to the differential transmission circuit 2 by the switches 5 and 6 at the time of transmission in RS422 communication. A clipping circuit 4 is connected to the input terminals I30 and I31 of a differential reception circuit 3. At the time of reception in RS232C communication, a reception signal restricted by the clipping circuit 4 is given to one of the input terminals I30 of the circuit 3 and the other input terminal is pulled-up to +2.5V. At the time of reception in RS422 communication, a differential signal is given to the input terminals I30 and I31 of the differential reception circuit 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はシリアルデータを送受信
するシリアル通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial communication device for transmitting / receiving serial data.

【0002】[0002]

【従来の技術】RS232Cのような不平衡型インタフ
ェース規格に従うシリアル通信では、接地ラインに対し
て一本の信号線が設けられ、例えば、データ“1”に対
応して信号線に電圧+5〜+15Vが与えられ、データ
“0”に対応して信号線に電圧−5〜−15Vが与えら
れる。
2. Description of the Related Art In serial communication complying with an unbalanced interface standard such as RS232C, one signal line is provided for a ground line. For example, a voltage of +5 to +15 V is applied to the signal line corresponding to data "1". Are applied, and voltages of -5 to -15V are applied to the signal line corresponding to the data "0".

【0003】これに対して、RS422のような平衡型
インタフェース規格に従うシリアル通信では、接地ライ
ンに対して2本の相補な信号線が設けられ、それらの信
号線に差動信号が与えられる。例えば、データ“1”に
対応して一方の信号線に電圧+5Vが与えられ、かつ他
方の信号線に電圧0Vが与えられ、データ“0”に対応
して一方の信号線に電圧0Vが与えられ、かつ他方の信
号線に電圧+5Vが与えられる。この場合、2つの信号
線の電圧差は±5Vとなる。
On the other hand, in serial communication complying with a balanced interface standard such as RS422, two complementary signal lines are provided with respect to the ground line, and differential signals are given to these signal lines. For example, a voltage + 5V is applied to one signal line corresponding to data "1", a voltage 0V is applied to the other signal line, and a voltage 0V is applied to one signal line corresponding to data "0". And the voltage + 5V is applied to the other signal line. In this case, the voltage difference between the two signal lines is ± 5V.

【0004】以下、RS232Cインタフェース規格に
従うシリアル通信をRS232C通信と呼び、RS42
2インタフェース規格に従うシリアル通信をRS422
通信と呼ぶ。また、RS232Cインタフェース規格に
従う信号をRS232C信号と呼び、RS422インタ
フェース規格に従う信号をRS422信号と呼ぶ。
Hereinafter, serial communication conforming to the RS232C interface standard will be referred to as RS232C communication, and RS42
Serial communication conforming to the 2-interface standard RS422
Called communication. A signal complying with the RS232C interface standard is called an RS232C signal, and a signal complying with the RS422 interface standard is called an RS422 signal.

【0005】図7は、RS232C通信およびRS42
2通信が可能な従来のシリアル通信装置の一例を示すブ
ロック図である。図7のシリアル通信装置は、シリアル
通信制御回路11、RS232C送信回路12、RS4
22差動送信回路13、RS232C受信回路14、R
S422差動受信回路15およびスイッチ16を含む。
FIG. 7 shows RS232C communication and RS42.
It is a block diagram which shows an example of the conventional serial communication apparatus which can perform 2 communication. The serial communication device of FIG. 7 includes a serial communication control circuit 11, an RS232C transmission circuit 12, and an RS4.
22 differential transmission circuit 13, RS232C reception circuit 14, R
The S422 differential receiving circuit 15 and the switch 16 are included.

【0006】RS232C通信における送信時には、R
S232C送信回路12が、シリアル通信制御回路11
から与えられる送信データSDをRS232C信号SD
2に変換して出力端子O11から出力する。RS422
通信における送信時には、RS422差動送信回路13
が、シリアル通信制御回路11から与えられる送信デー
タSDをRS422信号SD4A,SD4Bに変換して
それぞれ出力端子O12,O13から出力する。ここ
で、RS422信号SD4Bは、RS422信号SD4
Aの反転信号である。
At the time of transmission in RS232C communication, R
The S232C transmission circuit 12 uses the serial communication control circuit 11
The transmission data SD given from RS232C signal SD
It is converted to 2 and output from the output terminal O11. RS422
At the time of transmission in communication, the RS422 differential transmission circuit 13
Converts the transmission data SD given from the serial communication control circuit 11 into RS422 signals SD4A and SD4B and outputs them from output terminals O12 and O13, respectively. Here, the RS422 signal SD4B is the RS422 signal SD4.
It is an inverted signal of A.

【0007】RS232C通信における受信時には、ス
イッチ16の可動接点aが接点bの側に切り替えられ
る。RS232C受信回路14は、入力端子I11に送
信されてきたRS232C信号RD2を入力し、それを
受信データRDに変換してスイッチ16を介してシリア
ル通信制御回路11に与える。RS422通信における
受信時には、スイッチ16の可動接点aが接点cの側に
切り替えられる。RS422差動受信回路15は、入力
端子I12,I13に送信されてきたRS422信号R
D4A,RD4Bを入力し、それらを受信データRDに
変換してスイッチ16を介してシリアル通信制御回路1
1に与える。ここで、RS422信号RD4Bは、RS
422信号RD4Aの反転信号である。
During reception in RS232C communication, the movable contact a of the switch 16 is switched to the contact b side. The RS232C reception circuit 14 inputs the RS232C signal RD2 transmitted to the input terminal I11, converts the RS232C signal RD2 into reception data RD, and supplies the reception data RD to the serial communication control circuit 11 via the switch 16. When receiving in RS422 communication, the movable contact a of the switch 16 is switched to the contact c side. The RS422 differential receiving circuit 15 receives the RS422 signal R transmitted to the input terminals I12 and I13.
D4A and RD4B are input, they are converted into reception data RD, and the serial communication control circuit 1 is provided via the switch 16.
Give to one. Here, RS422 signal RD4B is RS
This is an inverted signal of the 422 signal RD4A.

【0008】図8は、RS232C通信およびRS42
2通信が可能な従来のシリアル通信装置の他の例を示す
ブロック図である。図8のシリアル通信装置は、図7の
シリアル通信装置と同様に、シリアル通信制御回路1
1、RS232C送信回路12、RS422差動送信回
路13、RS232C受信回路14、RS422差動受
信回路15およびスイッチ16を含み、さらにスイッチ
17,18を含む。スイッチ16,17,18は連動し
ている。
FIG. 8 shows RS232C communication and RS42.
It is a block diagram which shows the other example of the conventional serial communication apparatus which can perform 2 communication. The serial communication device of FIG. 8 is similar to the serial communication device of FIG.
1, RS232C transmitting circuit 12, RS422 differential transmitting circuit 13, RS232C receiving circuit 14, RS422 differential receiving circuit 15, and switch 16, and further includes switches 17 and 18. The switches 16, 17, and 18 are interlocked.

【0009】RS232C通信における送信時には、ス
イッチ16,17,18の可動接点aが接点bの側に切
り替えられる。RS232C送信回路12は、シリアル
通信制御回路11から与えられる送信データSDをRS
232C信号SD2に変換して出力端子O14から出力
する。RS422通信における送信時には、スイッチ1
6,17,18の可動接点aが接点cの側に切り替えら
れる。RS422差動送信回路13は、シリアル通信制
御回路11から与えられる送信データSDをRS422
信号SD4A,SD4Bに変換してそれぞれ出力端子O
14,O15から出力する。
At the time of transmission in RS232C communication, the movable contact a of the switches 16, 17, 18 is switched to the contact b side. The RS232C transmission circuit 12 transmits the transmission data SD supplied from the serial communication control circuit 11 to RS.
It is converted into a 232C signal SD2 and output from the output terminal O14. When transmitting in RS422 communication, switch 1
The movable contacts a of 6, 17, and 18 are switched to the contact c side. The RS422 differential transmission circuit 13 converts the transmission data SD given from the serial communication control circuit 11 into RS422.
Signals SD4A and SD4B are converted to output terminals O
Output from 14 and O15.

【0010】RS232C通信における受信時には、ス
イッチ16,17,18の可動接点aが接点bの側に切
り替えられる。RS232C受信回路14は、入力端子
I14に送信されてきたRS232C信号RD2を入力
し、それを受信データRDに変換してシリアル通信制御
回路11に与える。RS422通信における受信時に
は、スイッチ16,17,18の可動接点aが接点cの
側に切り替えられる。RS422差動受信回路15は、
入力端子I14,I15に送信されてきたRS422信
号RD4A,RD4Bを入力し、それらを受信データR
Dに変換してシリアル通信制御回路11に与える。
At the time of reception in RS232C communication, the movable contacts a of the switches 16, 17, and 18 are switched to the contact b side. The RS232C reception circuit 14 inputs the RS232C signal RD2 transmitted to the input terminal I14, converts the RS232C signal RD2 into reception data RD, and supplies the reception data RD to the serial communication control circuit 11. At the time of reception in RS422 communication, the movable contacts a of the switches 16, 17, and 18 are switched to the contact c side. The RS422 differential receiving circuit 15
The RS422 signals RD4A and RD4B transmitted to the input terminals I14 and I15 are input, and they are received data R
It is converted to D and given to the serial communication control circuit 11.

【0011】図9の(a)および(b)はRS232C
送信回路12の構成を示す回路図である。図9の(a)
に示すように、RS232C送信回路12はバッファ1
20からなる。図9の(b)に示すように、バッファ1
20は、2つのバイポーラトランジスタ121,122
および2つの抵抗123,124からなる。
9A and 9B show RS232C.
3 is a circuit diagram showing a configuration of a transmission circuit 12. FIG. FIG. 9 (a)
As shown in FIG.
It consists of 20. As shown in FIG. 9B, the buffer 1
20 is two bipolar transistors 121, 122
And two resistors 123 and 124.

【0012】バッファ120の正電源端子P120には
例えば電圧+12V(最大+15V)が与えられ、負電
源端子P121には例えば電圧−12V(最大−15
V)が与えられる。バッファ120の入力端子I120
に送信データSDが与えられ、出力端子O120から例
えば+12Vまたは−12VのRS232C信号SD2
が出力される。
For example, a voltage + 12V (maximum + 15V) is applied to the positive power supply terminal P120 of the buffer 120, and a voltage -12V (maximum -15V) is applied to the negative power supply terminal P121.
V) is given. Input terminal I120 of the buffer 120
To the RS232C signal SD2 of + 12V or -12V from the output terminal O120.
Is output.

【0013】図10はRS422差動送信回路13の構
成を示す回路図である。図10に示すように、RS23
2C差動送信回路13はバッファ130およびインバー
タ131からなる。
FIG. 10 is a circuit diagram showing the structure of the RS422 differential transmission circuit 13. As shown in FIG.
The 2C differential transmission circuit 13 includes a buffer 130 and an inverter 131.

【0014】バッファ130の電源端子P130には例
えば電圧+5Vが与えられ、インバータ131の接地端
子P131には接地電位0Vが与えられる。バッファ1
30およびインバータ131の共通の入力端子I130
に送信データSDが与えられ、出力端子O130,O1
31から互いに相補なRS422信号SD4A,SD4
Bが出力される。
For example, a voltage + 5V is applied to the power supply terminal P130 of the buffer 130, and a ground potential 0V is applied to the ground terminal P131 of the inverter 131. Buffer 1
30 and the common input terminal I130 of the inverter 131
To the output terminals O130 and O1
31 to RS422 signals SD4A and SD4 complementary to each other
B is output.

【0015】図11の(a)および(b)はRS232
C受信回路14の構成を示す回路図である。図11の
(a)に示すように、RS232C受信回路14はバッ
ファ140からなる。図11の(b)に示すように、バ
ッファ140は、バイポーラトランジスタ141、抵抗
142,143,144およびダイオード145からな
る。
FIGS. 11A and 11B show RS232.
6 is a circuit diagram showing a configuration of a C reception circuit 14. FIG. As shown in FIG. 11A, the RS232C receiving circuit 14 includes a buffer 140. As shown in FIG. 11B, the buffer 140 includes a bipolar transistor 141, resistors 142, 143, 144 and a diode 145.

【0016】バッファ140の正電源端子P140には
例えば電圧+12V(最大15V)が与えられ、負電源
端子P141には例えば電圧−12V(最大−15V)
が与えられる。バッファ140の入力端子I140に例
えば+12Vまたは−12VのRS232C信号RD2
が与えられ、出力端子O140から受信データRDが出
力される。
For example, a voltage + 12V (maximum 15V) is applied to the positive power supply terminal P140 of the buffer 140, and a voltage -12V (maximum -15V) is applied to the negative power supply terminal P141.
Is given. For example, the RS232C signal RD2 of + 12V or -12V is input to the input terminal I140 of the buffer 140.
And the received data RD is output from the output terminal O140.

【0017】図12はRS422差動受信回路15の構
成を示す回路図である。図12に示すように、RS42
2差動受信回路15は差動増幅器150からなる。差動
増幅器150の電源端子P150には例えば電圧+5V
が与えられ、接地端子P151には接地電位0Vが与え
られる。差動増幅器150の入力端子I150および反
転入力端子I151には互いに相補なRS422信号R
D4A,RD4Bが与えられ、出力端子O150から受
信データRDが出力される。
FIG. 12 is a circuit diagram showing the structure of the RS422 differential receiving circuit 15. As shown in FIG.
The two-differential receiving circuit 15 includes a differential amplifier 150. For example, the voltage + 5V is applied to the power supply terminal P150 of the differential amplifier 150.
And a ground potential 0V is applied to the ground terminal P151. The RS422 signal R complementary to each other is input to the input terminal I150 and the inverting input terminal I151 of the differential amplifier 150.
D4A and RD4B are given, and the reception data RD is output from the output terminal O150.

【0018】[0018]

【発明が解決しようとする課題】上記のように、図7の
シリアル通信装置においては、RS232C通信のため
にRS232C送信回路12、RS232C受信回路1
4、出力端子O11および入力端子I11を設け、RS
422通信のためにRS422差動送信回路、RS42
2差動受信回路15、出力端子O12,O13および入
力端子I12,I13を設け、スイッチ16によりRS
232C通信とRS422通信とを切り替えている。
As described above, in the serial communication device of FIG. 7, the RS232C transmitter circuit 12 and the RS232C receiver circuit 1 are used for RS232C communication.
4, an output terminal O11 and an input terminal I11 are provided, and RS
RS422 differential transmission circuit for RS422 communication, RS42
2 The differential receiving circuit 15, the output terminals O12 and O13, and the input terminals I12 and I13 are provided, and the RS is switched by the switch 16.
232C communication and RS422 communication are switched.

【0019】これに対して、図8のシリアル通信装置で
は、RS232C通信のためにRS232C送信回路1
3およびRS232C受信回路14を設け、RS422
通信のためにRS422差動送信回路13およびRS4
22差動受信回路15を設け、かつ共通の出力端子O1
4,O15および共通の入力端子I14,I15を設
け、スイッチ16,17,18によりRS232C通信
とRS422通信とを切り替えている。
On the other hand, in the serial communication device of FIG. 8, the RS232C transmission circuit 1 is used for RS232C communication.
3 and RS232C receiver circuit 14 are provided, and RS422
RS422 differential transmission circuit 13 and RS4 for communication
22 a differential receiving circuit 15 is provided and a common output terminal O1
4, O15 and common input terminals I14, I15 are provided, and the switches 16, 17, 18 switch between RS232C communication and RS422 communication.

【0020】このように、従来のシリアル通信装置で
は、RS232C通信およびRS422通信の送信およ
び受信のための回路がそれぞれ必要となるので、回路規
模が大きくなり、小型化の障害となるとともに、製品コ
ストが高くなる。また、図8のシリアル通信装置では、
図7のシリアル通信装置に比べて出力端子および入力端
子の数が少なくなるが、多接点のスイッチが必要とな
る。
As described above, in the conventional serial communication device, circuits for transmitting and receiving RS232C communication and RS422 communication are required respectively, so that the circuit scale becomes large, hindering downsizing, and the product cost. Becomes higher. Further, in the serial communication device of FIG.
The number of output terminals and input terminals is smaller than that of the serial communication device of FIG. 7, but a switch with multiple contacts is required.

【0021】本発明の目的は、小さな回路規模で複数の
インタフェース規格に従うシリアル通信を行うことがで
きるシリアル通信装置を提供することである。
An object of the present invention is to provide a serial communication device capable of performing serial communication complying with a plurality of interface standards with a small circuit scale.

【0022】[0022]

【課題を解決するための手段】本発明に係るシリアル通
信装置は、シリアル送信データを互いに相補な第1およ
び第2の信号からなる差動信号に変換し、第1および第
2の信号の両方または一方をシリアルに送信する差動送
信手段と、差動信号または単一信号をシリアルに受信
し、差動信号または単一信号と一定電位とをシリアル受
信データに変換する差動受信手段と、差動送信手段に供
給する電源電圧を切り替える電源電圧切替え手段とを備
える。
A serial communication apparatus according to the present invention converts serial transmission data into a differential signal composed of complementary first and second signals, and outputs both the first and second signals. Or differential transmission means for transmitting one of them serially, differential reception means for receiving a differential signal or a single signal serially, and converting the differential signal or single signal and a constant potential into serial reception data, Power supply voltage switching means for switching the power supply voltage supplied to the differential transmission means.

【0023】特に、受信された差動信号または単一信号
の電圧を所定の範囲内に制限する電圧制限手段をさらに
備えることが好ましい。
In particular, it is preferable to further include voltage limiting means for limiting the voltage of the received differential signal or single signal within a predetermined range.

【0024】[0024]

【作用】本発明に係るシリアル通信装置においては、イ
ンタフェース規格に応じて差動送信手段に供給される電
源電圧が切り替えられる。平衡型インタフェース規格に
従う通信における送信時には、差動送信手段によりシリ
アル送信データが平衡型インタフェース規格に従う互い
に相補な第1および第2の信号に変換され、それらがシ
リアルに送信される。不平衡型インタフェース規格に従
う通信における送信時には、差動送信手段によりシリア
ル送信信号が不平衡型インタフェース規格に従う電圧を
有する第1および第2の信号に変換され、それらの一方
がシリアルに送信される。
In the serial communication device according to the present invention, the power supply voltage supplied to the differential transmission means is switched according to the interface standard. During transmission in communication according to the balanced interface standard, serial transmission data is converted by the differential transmission means into first and second signals complementary to each other according to the balanced interface standard, and these signals are serially transmitted. During transmission in communication according to the unbalanced interface standard, the differential transmission means converts the serial transmission signal into first and second signals having a voltage according to the unbalanced interface standard, and one of them is transmitted serially.

【0025】平衡型インタフェース規格に従う通信にお
ける受信時には、平衡型インタフェース規格に従う電圧
差を有する差動信号がシリアルに受信され、その差動信
号が差動受信手段によりシリアル受信データに変換され
る。不平衡型インタフェース規格に従う通信における受
信時には、不平衡型インタフェース規格に従う電圧を有
する単一信号がシリアルに受信され、その単一信号と一
定電位とが差動受信手段によりシリアル受信データに変
換される。
At the time of reception in the communication conforming to the balanced interface standard, a differential signal having a voltage difference conforming to the balanced interface standard is serially received, and the differential signal is converted into serial reception data by the differential receiving means. When receiving in communication according to the unbalanced interface standard, a single signal having a voltage according to the unbalanced interface standard is serially received, and the single signal and a constant potential are converted into serial reception data by the differential receiving means. .

【0026】特に、受信された差動信号または単一信号
の電圧を所定の範囲内に制限する電圧制限手段をさらに
備えた場合には、複数のインタフェース規格に従う受信
信号のうちいずれかが差動受信手段の許容電圧を越えて
いる場合に、差動受信手段の破壊が防止される。
In particular, when a voltage limiting means for limiting the voltage of the received differential signal or single signal within a predetermined range is further provided, one of the received signals complying with a plurality of interface standards is differential. The breakdown of the differential receiving means is prevented when the allowable voltage of the receiving means is exceeded.

【0027】[0027]

【実施例】図1は本発明の一実施例によるシリアル通信
装置の構成を示すブロック図である。このシリアル通信
装置はRS232C通信およびRS422通信を行うこ
とができる。
1 is a block diagram showing the configuration of a serial communication apparatus according to an embodiment of the present invention. This serial communication device can perform RS232C communication and RS422 communication.

【0028】図1のシリアル通信装置は、シリアル通信
制御回路1、差動送信回路2、差動受信回路3、クリッ
ピング回路4、スイッチ5,6、電流制限抵抗7,8お
よびプルアップ抵抗9を含む。スイッチ5,6は連動し
ている。
The serial communication device of FIG. 1 includes a serial communication control circuit 1, a differential transmission circuit 2, a differential reception circuit 3, a clipping circuit 4, switches 5, 6, current limiting resistors 7, 8 and a pull-up resistor 9. Including. The switches 5 and 6 are interlocked.

【0029】電源端子P1には電圧+12Vが与えら
れ、電源端子P2には電圧+5Vが与えられ、電源端子
P3には電圧−12Vが与えられる。接地端子P4には
接地電位0Vが与えられる。差動受信回路3には、常
時、電源端子P2に与えられる電圧+5Vおよび接地端
子P4に与えられる接地電位0Vが供給されている。図
1の例では、スイッチ5,6が電源電圧切り替え回路を
構成する。
The power supply terminal P1 is supplied with a voltage + 12V, the power supply terminal P2 is supplied with a voltage + 5V, and the power supply terminal P3 is supplied with a voltage -12V. A ground potential 0V is applied to the ground terminal P4. The differential receiving circuit 3 is always supplied with a voltage + 5V applied to the power supply terminal P2 and a ground potential 0V applied to the ground terminal P4. In the example of FIG. 1, the switches 5 and 6 form a power supply voltage switching circuit.

【0030】RS232C通信時には、スイッチ5,6
の可動接点aが接点bの側に切り替えられる。それによ
り、電源端子P1に与えられる電圧+12Vおよび電源
端子P3に与えられる電圧−12Vが差動送信回路2に
供給される。
During RS232C communication, switches 5 and 6
The movable contact a of is switched to the contact b side. As a result, the voltage + 12V applied to the power supply terminal P1 and the voltage -12V applied to the power supply terminal P3 are supplied to the differential transmission circuit 2.

【0031】送信時には、差動送信回路2が、シリアル
通信制御回路1から与えられる送信データSDをRS2
32C信号SD2に変換して出力端子O1から出力す
る。受信時には、入力端子I1に送信されてくるRS2
32C信号RD2が電流制限抵抗7を介して差動受信回
路3の入力端子I30に入力される。このとき、入力端
子I2の電圧はプルアップ抵抗9により+2.5Vに固
定される。また、クリッピング回路4により差動受信回
路3の入力端子I30,I31の電圧が0V〜+5Vの
範囲内に制限される。差動受信回路3は、入力されたR
S232C信号RD2を受信データRDに変換し、シリ
アル通信制御回路1に与える。
At the time of transmission, the differential transmission circuit 2 transmits the transmission data SD supplied from the serial communication control circuit 1 to RS2.
The 32C signal SD2 is converted and output from the output terminal O1. RS2 transmitted to the input terminal I1 during reception
The 32C signal RD2 is input to the input terminal I30 of the differential receiving circuit 3 via the current limiting resistor 7. At this time, the voltage of the input terminal I2 is fixed to + 2.5V by the pull-up resistor 9. Further, the clipping circuit 4 limits the voltage of the input terminals I30 and I31 of the differential receiving circuit 3 within the range of 0V to + 5V. The differential receiving circuit 3 receives the input R
The S232C signal RD2 is converted into the reception data RD and given to the serial communication control circuit 1.

【0032】RS422通信時には、スイッチ5,6の
可動接点aが接点cの側に切り替えられる。それによ
り、電源端子P2に与えられる電圧+5Vおよび接地端
子P4に与えられる接地電位0Vが差動送信回路2に供
給される。
During RS422 communication, the movable contact a of the switches 5 and 6 is switched to the contact c side. As a result, the voltage + 5V applied to the power supply terminal P2 and the ground potential 0V applied to the ground terminal P4 are supplied to the differential transmission circuit 2.

【0033】送信時には、差動送信回路2が、シリアル
通信制御回路1から与えられる送信データSDをRS4
22信号SD4A,SD4Bに変換して出力端子O1,
O2からそれぞれ出力する。
At the time of transmission, the differential transmission circuit 2 transmits the transmission data SD supplied from the serial communication control circuit 1 to RS4.
22 signals SD4A, SD4B converted to output terminals O1,
Output from O2 respectively.

【0034】受信時には、入力端子I1,I2に送信さ
れてくるRS422信号RD4A,RD4Bがそれぞれ
電流制限抵抗7,8を介して差動受信回路3の入力端子
I30,I31に入力される。差動受信回路3は、入力
されたRS422信号RD4A,RD4Bを受信データ
RDに変換し、シリアル通信制御回路1に与える。
At the time of reception, RS422 signals RD4A and RD4B transmitted to the input terminals I1 and I2 are input to the input terminals I30 and I31 of the differential receiving circuit 3 via the current limiting resistors 7 and 8, respectively. The differential reception circuit 3 converts the input RS422 signals RD4A, RD4B into reception data RD and gives it to the serial communication control circuit 1.

【0035】図2はシリアル通信制御回路1の構成を示
すブロック図である。図2に示すように、シリアル通信
制御回路1は、CPU(中央演算処理装置)10および
シリアル通信制御IC11を含む。
FIG. 2 is a block diagram showing the configuration of the serial communication control circuit 1. As shown in FIG. 2, the serial communication control circuit 1 includes a CPU (Central Processing Unit) 10 and a serial communication control IC 11.

【0036】CPU10は、送信時に、パラレル送信デ
ータをシリアル通信制御IC11に与え、受信時に、シ
リアル通信制御IC11からパラレル受信データを受け
る。シリアル通信制御IC11は、送信時に、CPU1
0から与えられたパラレル送信データをシリアル送信デ
ータSDに変換して出力し、受信時に、入力されたシリ
アル受信データRDをパラレル受信データに変換してC
PU10に与える。
The CPU 10 gives parallel transmission data to the serial communication control IC 11 at the time of transmission, and receives parallel reception data from the serial communication control IC 11 at the time of reception. The serial communication control IC 11 sends the data to the CPU 1 when transmitting.
The parallel transmission data given from 0 is converted into the serial transmission data SD and output, and at the time of reception, the input serial reception data RD is converted into the parallel reception data and C
Give to PU10.

【0037】図3は差動送信回路2の構成を示す回路図
である。図3に示すように、差動送信回路2は、CMO
S回路からなるバッファ20およびインバータ21によ
り構成される。出力端子O22は接地されている。
FIG. 3 is a circuit diagram showing the configuration of the differential transmission circuit 2. As shown in FIG. 3, the differential transmission circuit 2 includes a CMO.
The buffer 20 is composed of an S circuit and an inverter 21. The output terminal O22 is grounded.

【0038】RS232C通信時には、バッファ20の
電源端子P20に電圧+12Vが与えられ、インバータ
21の電源端子P21に電圧−12Vが与えられる。そ
れにより、入力端子I20に与えられる送信データSD
が例えば+12Vまたは−12VのRS232C信号S
D2に変換されて出力端子O20から出力される。この
とき、出力端子O21からはRS232C信号SDの反
転信号が出力される。
During RS232C communication, a voltage + 12V is applied to the power supply terminal P20 of the buffer 20, and a voltage -12V is applied to the power supply terminal P21 of the inverter 21. Thereby, the transmission data SD given to the input terminal I20
Is an RS232C signal S of + 12V or -12V, for example.
It is converted to D2 and output from the output terminal O20. At this time, an inverted signal of the RS232C signal SD is output from the output terminal O21.

【0039】RS422通信時には、バッファ20の電
源端子P20に電圧+5Vが与えられ、インバータ21
の電源端子P21に接地電位0Vが与えられる。それに
より、入力端子I20に与えられる送信データSDが例
えば+5Vまたは0VのRS422信号SD4Aおよび
0Vまたは+5VのRS422信号SD4Bに変換され
てそれぞれ出力端子O20,O21から出力される。
During RS422 communication, the voltage + 5V is applied to the power supply terminal P20 of the buffer 20, and the inverter 21
The ground potential 0V is applied to the power supply terminal P21 of the. Thereby, the transmission data SD given to the input terminal I20 is converted into, for example, the RS422 signal SD4A of + 5V or 0V and the RS422 signal SD4B of 0V or + 5V, and output from the output terminals O20 and O21, respectively.

【0040】図4は差動受信回路3の構成を示す回路図
である。図4に示すように、差動受信回路3は差動増幅
器30からなる。この差動受信回路3の構成は、図12
に示したRS422差動受信回路15の構成と同様であ
る。
FIG. 4 is a circuit diagram showing the configuration of the differential receiving circuit 3. As shown in FIG. 4, the differential receiving circuit 3 includes a differential amplifier 30. The configuration of the differential receiving circuit 3 is shown in FIG.
The configuration is the same as that of the RS422 differential receiving circuit 15 shown in FIG.

【0041】差動増幅器30の電源端子P30には常時
電圧+5Vが与えられ、接地端子P31には常時接地電
位0Vが与えられる。RS232C通信時には、差動増
幅器30の入力端子I30に、図1のクリッピング回路
4により0〜+5Vの範囲内に制限されたRS232C
信号RD2が与えられ、入力端子I31の電圧は図1の
プルアップ抵抗9により+2.5Vに固定されている。
それにより、RS232C信号RD2と電圧+2.5V
との電圧差が受信データRDに変換されて出力端子O3
0から出力される。
The power supply terminal P30 of the differential amplifier 30 is always supplied with a voltage + 5V, and the ground terminal P31 is always supplied with a ground potential 0V. At the time of RS232C communication, the RS232C input terminal I30 of the differential amplifier 30 is limited to the range of 0 to + 5V by the clipping circuit 4 of FIG.
The signal RD2 is given, and the voltage of the input terminal I31 is fixed to + 2.5V by the pull-up resistor 9 of FIG.
As a result, RS232C signal RD2 and voltage + 2.5V
Is converted into the reception data RD and the output terminal O3
It is output from 0.

【0042】本実施例では、クリッピング回路4を用い
て入力端子I30,I31に入力される電圧を0〜+5
Vの範囲内に制限しているので、差動受信回路3を構成
するICの入力許容電圧が例えば−2V〜+7Vである
場合に、そのICの破壊が防止される。
In the present embodiment, the voltage input to the input terminals I30 and I31 is set to 0 to +5 by using the clipping circuit 4.
Since the voltage is limited to within the range of V, when the input allowable voltage of the IC configuring the differential receiving circuit 3 is, for example, −2V to + 7V, the destruction of the IC is prevented.

【0043】RS422通信時には、差動増幅器30の
入力端子I30に例えば+5Vまたは0VのRS422
信号RD4Aが与えられ、入力端子I31に例えば0V
または+5VのRS422信号RD4Bが与えられる。
RS422信号RD4A,RD4Bは受信データRDに
変換されて出力端子O30から出力される。
During RS422 communication, RS422 of + 5V or 0V is applied to the input terminal I30 of the differential amplifier 30, for example.
The signal RD4A is applied to the input terminal I31 of, for example, 0V.
Alternatively, a + 5V RS422 signal RD4B is provided.
The RS422 signals RD4A and RD4B are converted into reception data RD and output from the output terminal O30.

【0044】図5はクリッピング回路4の構成を示す回
路図である。図5に示すように、クリッピング回路4
は、5Vのツェナー電圧を有するツェナーダイオード4
0,41,42,43からなる。ツェナーダイオード4
0,41により入力端子I30と接地端子との間に印加
される電圧が0〜+5Vの範囲内に制限され、ツェナー
ダイオード42,43により入力端子I31と接地端子
との間に印加される電圧が0〜+5Vの範囲内に制限さ
れる。
FIG. 5 is a circuit diagram showing the configuration of the clipping circuit 4. As shown in FIG. 5, the clipping circuit 4
Is a Zener diode 4 having a Zener voltage of 5V
It consists of 0, 41, 42, 43. Zener diode 4
0, 41 limits the voltage applied between the input terminal I30 and the ground terminal within the range of 0 to +5 V, and the Zener diodes 42, 43 reduce the voltage applied between the input terminal I31 and the ground terminal. It is limited to the range of 0 to + 5V.

【0045】図1のシリアル通信装置においては、差動
送信回路2に供給する電源電圧をスイッチ5,6を用い
て切り替えることにより、RS232C通信およびRS
422通信におけるデータ送信を可能としている。ま
た、差動受信回路3に入力される電圧をクリッピング回
路4を用いて制限することにより、RS232C通信お
よびRS422通信におけるデータ受信を可能としてい
る。
In the serial communication device of FIG. 1, the power supply voltage supplied to the differential transmission circuit 2 is switched by using the switches 5 and 6, whereby RS232C communication and RS
Data transmission in 422 communication is possible. Further, by limiting the voltage input to the differential receiving circuit 3 by using the clipping circuit 4, it is possible to receive data in RS232C communication and RS422 communication.

【0046】図6は電源電圧切り替え回路の他の例を示
す回路図である。図6の電源電圧切り替え回路は、5V
の定電圧を出力する三端子レギュレータ50、抵抗5
1、7Vのツェナー電圧を有するツェナーダイオード5
2およびスイッチ53,54を含む。
FIG. 6 is a circuit diagram showing another example of the power supply voltage switching circuit. The power supply voltage switching circuit of FIG.
Three-terminal regulator 50 that outputs the constant voltage of
Zener diode 5 having a zener voltage of 1 and 7 V
2 and switches 53 and 54.

【0047】正電源端子P5に電圧+15Vが与えら
れ、接地端子P6に接地電位0Vが与えられ、負電源端
子P7に電圧−12Vが与えられる。出力端子P8は図
3の差動送信回路2の電源端子P20に接続され、出力
端子P9は差動送信回路2の電源端子P21に接続され
る。
Voltage + 15V is applied to positive power supply terminal P5, ground potential 0V is applied to ground terminal P6, and voltage -12V is applied to negative power supply terminal P7. The output terminal P8 is connected to the power supply terminal P20 of the differential transmission circuit 2 of FIG. 3, and the output terminal P9 is connected to the power supply terminal P21 of the differential transmission circuit 2.

【0048】RS232C通信時には、スイッチ53が
オフにされる。それにより、ノードNの電圧がツェナー
ダイオード52により+7Vとなり、三端子レギュレー
タ50により出力端子P8から電圧+12Vが出力され
る。また、スイッチ54の可動接点aが接点bの側に切
り替えられる。それにより、出力端子P9から電圧−1
2Vが出力される。
During RS232C communication, the switch 53 is turned off. As a result, the voltage of the node N becomes + 7V by the Zener diode 52, and the voltage + 12V is output from the output terminal P8 by the three-terminal regulator 50. Further, the movable contact a of the switch 54 is switched to the contact b side. As a result, the voltage -1 is output from the output terminal P9.
2V is output.

【0049】RS422通信時には、スイッチ53がオ
ンにされる。それにより、ノードNの電圧が0Vとな
り、三端子レギュレータ50により出力端子P8から電
圧+5Vが出力される。また、スイッチ54の可動接点
aが接点cの側に切り替えられる。それにより、出力端
子P9の電位が0Vとなる。
During RS422 communication, the switch 53 is turned on. As a result, the voltage of the node N becomes 0V, and the three-terminal regulator 50 outputs the voltage + 5V from the output terminal P8. Further, the movable contact a of the switch 54 is switched to the contact c side. As a result, the potential of the output terminal P9 becomes 0V.

【0050】上記実施例のシリアル通信装置において
は、差動送信回路2、差動受信回路3、出力端子O1,
O2および入力端子I1,I2がRS232C通信時お
よびRS422通信時に共通に用いられるので、回路規
模が小さくなる。したがって、シリアル通信装置の小型
化および低コスト化が図られる。
In the serial communication device of the above embodiment, the differential transmission circuit 2, the differential reception circuit 3, the output terminals O1,
Since O2 and the input terminals I1 and I2 are commonly used during RS232C communication and RS422 communication, the circuit scale is reduced. Therefore, it is possible to reduce the size and cost of the serial communication device.

【0051】本発明は、RS232C通信およびRS4
22通信に限らず、その他の複数のインタフェース規格
に従うシリアル通信が可能なシリアル通信装置に適用す
ることができる。
The present invention is based on RS232C communication and RS4.
The present invention can be applied not only to the 22 communication but also to a serial communication device capable of performing serial communication according to other plural interface standards.

【0052】[0052]

【発明の効果】以上のように本発明によれば、小さな回
路規模で複数のインタフェース規格に従うシリアル通信
が可能なシリアル通信装置が得られる。したがって、シ
リアル通信装置の小型化および低コスト化が図られる。
As described above, according to the present invention, it is possible to obtain a serial communication device capable of serial communication complying with a plurality of interface standards with a small circuit scale. Therefore, it is possible to reduce the size and cost of the serial communication device.

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

【図1】本発明の一実施例によるシリアル通信装置の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a serial communication device according to an embodiment of the present invention.

【図2】図1に示されるシリアル通信制御回路の構成を
示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a serial communication control circuit shown in FIG.

【図3】図1に示される差動送信回路の構成を示す回路
図である。
FIG. 3 is a circuit diagram showing a configuration of a differential transmission circuit shown in FIG.

【図4】図1に示される差動受信回路の構成を示す回路
図である。
FIG. 4 is a circuit diagram showing a configuration of the differential receiving circuit shown in FIG.

【図5】図1に示されるクリッピング回路の構成を示す
回路図である。
5 is a circuit diagram showing a configuration of a clipping circuit shown in FIG.

【図6】電源電圧切り替え回路の他の例を示す回路図で
ある。
FIG. 6 is a circuit diagram showing another example of a power supply voltage switching circuit.

【図7】従来のシリアル通信装置の一例を示すブロック
図である。
FIG. 7 is a block diagram showing an example of a conventional serial communication device.

【図8】従来のシリアル通信装置の他の例を示すブロッ
ク図である。
FIG. 8 is a block diagram showing another example of a conventional serial communication device.

【図9】図7および図8に示されるRS232C送信回
路の構成を示す回路図である。
9 is a circuit diagram showing a configuration of an RS232C transmission circuit shown in FIGS. 7 and 8. FIG.

【図10】図7および図8に示されるRS422差動送
信回路の構成を示す回路図である。
10 is a circuit diagram showing a configuration of an RS422 differential transmission circuit shown in FIGS. 7 and 8. FIG.

【図11】図7および図8に示されるRS232C受信
回路の構成を示す回路図である。
11 is a circuit diagram showing a configuration of an RS232C receiving circuit shown in FIGS. 7 and 8. FIG.

【図12】図7および図8に示されるRS422差動受
信回路の構成を示す回路図である。
12 is a circuit diagram showing a configuration of an RS422 differential receiving circuit shown in FIGS. 7 and 8. FIG.

【符号の説明】[Explanation of symbols]

1 シリアル通信制御回路 2 差動送信回路 3 差動受信回路 4 クリッピング回路 5,6 スイッチ 7,8 電流制限抵抗 9 プルアップ抵抗 なお、各図中同一符号は同一または相当部分を示す。 1 Serial Communication Control Circuit 2 Differential Transmission Circuit 3 Differential Reception Circuit 4 Clipping Circuit 5, 6 Switch 7, 8 Current Limiting Resistor 9 Pull-up Resistor In addition, the same reference numerals in the drawings indicate the same or corresponding parts.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シリアル送信データを互いに相補な第1
および第2の信号からなる差動信号に変換し、前記第1
および第2の信号の両方または一方をシリアルに送信す
る差動送信手段と、 差動信号または単一信号をシリアルに受信し、前記差動
信号または前記単一信号と一定電位とをシリアル受信デ
ータに変換する差動受信手段と、 前記差動送信手段に供給する電源電圧を切り替える電源
電圧切替え手段とを備えたシリアル通信装置。
1. A first complementary serial transmission data to each other.
And a second signal, which is converted into a differential signal,
And differential transmission means for serially transmitting either or both of the second signal and serially received differential signal or single signal and serially receiving the differential signal or single signal and a constant potential. A serial communication device comprising: a differential receiving means for converting into a differential voltage; and a power supply voltage switching means for switching a power supply voltage supplied to the differential transmitting means.
【請求項2】 前記受信された前記差動信号または前記
単一信号の電圧を所定の範囲内に制限する電圧制限手段
をさらに備えたことを特徴とする請求項1記載のシリア
ル通信装置。
2. The serial communication device according to claim 1, further comprising voltage limiting means for limiting the voltage of the received differential signal or the received single signal within a predetermined range.
JP23010994A 1994-09-27 1994-09-27 Serial communication equipment Pending JPH0897863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23010994A JPH0897863A (en) 1994-09-27 1994-09-27 Serial communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23010994A JPH0897863A (en) 1994-09-27 1994-09-27 Serial communication equipment

Publications (1)

Publication Number Publication Date
JPH0897863A true JPH0897863A (en) 1996-04-12

Family

ID=16902708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23010994A Pending JPH0897863A (en) 1994-09-27 1994-09-27 Serial communication equipment

Country Status (1)

Country Link
JP (1) JPH0897863A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002149293A (en) * 2000-11-07 2002-05-24 Sony Corp Device and method for inputting-outputting data
KR100428988B1 (en) * 2000-10-30 2004-04-28 티아크 가부시키가이샤 Universal serial bus device
US7400959B2 (en) 2004-08-27 2008-07-15 Caterpillar Inc. System for customizing responsiveness of a work machine
KR100949588B1 (en) * 2008-03-17 2010-03-25 올라이트라이프주식회사 Half duplex communication apparatus for transmitting-receiving power or data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100428988B1 (en) * 2000-10-30 2004-04-28 티아크 가부시키가이샤 Universal serial bus device
JP2002149293A (en) * 2000-11-07 2002-05-24 Sony Corp Device and method for inputting-outputting data
US7400959B2 (en) 2004-08-27 2008-07-15 Caterpillar Inc. System for customizing responsiveness of a work machine
US7702443B2 (en) 2004-08-27 2010-04-20 Caterpillar Inc. System for customizing responsiveness of a machine
KR100949588B1 (en) * 2008-03-17 2010-03-25 올라이트라이프주식회사 Half duplex communication apparatus for transmitting-receiving power or data

Similar Documents

Publication Publication Date Title
KR0167471B1 (en) Cmos simultaneous transmission bidirectional driver receiver
US5864584A (en) Circuitry for allowing two drivers to communicate with two receivers using one transmission line
EP0788059A1 (en) Driver circuit device
KR950703229A (en) Expanded Microcomputer System for Controlling Radio Frequency Interference
WO1995024089A2 (en) A termination network and a control circuit
EP0539230A2 (en) High speed, low power high common mode range voltage mode differential driver circuit
JP3189546B2 (en) Transmitter / receiver circuit
JPH0535668A (en) Signal processor
US6720801B2 (en) RS-232 bus data tap apparatus
US6445223B1 (en) Line driver with an integrated termination
JP3498042B2 (en) Electronic device and electronic device system including the same
JPH0897863A (en) Serial communication equipment
JPH0223054B2 (en)
US4178582A (en) Digital signal transmitter/receiver system including programmable self-test capability
US6850091B2 (en) Bi-directional impedance matching circuit
US4163907A (en) Three logic state input buffers
US20020000845A1 (en) Complementary current mode driver for high speed data communications
US7679680B2 (en) Apparatus in a TV receiver for automatically detecting the type of keyboard attached thereto
US6378026B1 (en) Connection detection circuit and method
JP2000307413A (en) Current converting circuit and communication network
CN114564431B (en) Hybrid transmit side driver and method of using the same
KR100300025B1 (en) Input buffer apparatus
US20150236692A1 (en) Driving signal generating circuit and power semiconductor device driving apparatus including the same
US3638075A (en) Communication line relay system
JPH11154834A (en) Operational amplifier