JP2006140710A - Device and system for communication, and arbitrating method for communication - Google Patents

Device and system for communication, and arbitrating method for communication Download PDF

Info

Publication number
JP2006140710A
JP2006140710A JP2004327803A JP2004327803A JP2006140710A JP 2006140710 A JP2006140710 A JP 2006140710A JP 2004327803 A JP2004327803 A JP 2004327803A JP 2004327803 A JP2004327803 A JP 2004327803A JP 2006140710 A JP2006140710 A JP 2006140710A
Authority
JP
Japan
Prior art keywords
communication
communication line
transmission
signal
level
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.)
Withdrawn
Application number
JP2004327803A
Other languages
Japanese (ja)
Inventor
Kenichi Kinoshita
健一 木下
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2004327803A priority Critical patent/JP2006140710A/en
Publication of JP2006140710A publication Critical patent/JP2006140710A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To eliminate malfunction due to output of a device or system for communication even when the device or system is connected to a single signal line and to easily perform arbitration in case of a collision. <P>SOLUTION: When a one-wire communication device 12 serves as a transmission side and outputs a high level to an output portion Out, an NPN transistor 14 conducts between its collector and emitter. When another one-wire communication device 13 uses a communication line 11 having a low level, the low level is inputted to an input portion In, so transmission stops. The low level is inputted to a receiving means 26 only when a transmitting means 28 outputs the high level, so judgment for arbitration can easily be made. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、送信と受信とを1本の通信線で行い、調停機能を備える通信装置および通信システム、ならびに通信の調停方法に関する。   The present invention relates to a communication apparatus and communication system that perform transmission and reception through a single communication line and have an arbitration function, and a communication arbitration method.

従来から、図8に示すようなワンワイヤ通信回路が用いられている。単一の通信線1は、通信手段2,3の間で半二重式のデジタル信号通信を行わせることができる。ただし、通信手段2,3間は、接地または電源など、他にも接続がなされていることが前提となる。各通信手段2,3には、たとえばマイコン4,5などを含む制御部が設けられ、通信線1はマイコン4,5に対する割り込み入力となり、相手側の通信手段2,3が信号を送信するときだけ、割り込み処理によって受信処理を行う。相手側の通信手段2,3に信号を送信するときは、出力ポートなどを介してデジタル信号を導出する。信号の入出力の経路には、バッファなどが設けられるけれども、説明を簡略化するために省略する。   Conventionally, a one-wire communication circuit as shown in FIG. 8 has been used. The single communication line 1 can perform half-duplex digital signal communication between the communication means 2 and 3. However, it is assumed that there are other connections between the communication means 2 and 3 such as a ground or a power source. Each communication means 2, 3 is provided with a control unit including, for example, microcomputers 4, 5, and the communication line 1 becomes an interrupt input to the microcomputers 4, 5, and the counterpart communication means 2, 3 transmits a signal Only receive processing by interrupt processing. When a signal is transmitted to the communication means 2 and 3 on the other side, a digital signal is derived via an output port or the like. Although a buffer and the like are provided in the signal input / output path, they are omitted for the sake of simplicity.

通信線1は、両方の通信手段2,3の出力を、ローレベルがアクティブ側となるワイヤードORの関係を有するように接続している。このために、両方の通信手段2,3の入力In間を通信線1で接続している。各通信手段2,3の出力Outと通信線1との間には、ダイオード6,7がそれぞれ接続される。ダイオード6,7のアノード・カソードの方向は、通信手段2,3の出力Outがアクティブになるときに順方向となるようにする。すなわち、電源のハイレベル側が正電圧であるときには、ダイオード6,7は、アノードを通信線1に接続し、カソードを通信手段2,3の出力に接続する。   The communication line 1 connects the outputs of both the communication means 2 and 3 so as to have a wired OR relationship in which the low level is the active side. For this purpose, the communication lines 1 connect the inputs In of both communication means 2 and 3. Diodes 6 and 7 are connected between the output Out of each communication means 2 and 3 and the communication line 1, respectively. The directions of the anodes and cathodes of the diodes 6 and 7 are set to the forward direction when the output Out of the communication means 2 and 3 becomes active. That is, when the high level side of the power supply is a positive voltage, the diodes 6 and 7 connect the anode to the communication line 1 and connect the cathode to the output of the communication means 2 and 3.

また、各通信手段2,3で入力Inと電源のハイレベル側との間には、プルアップ抵抗8,9が接続されている。これによって、両方の通信手段2,3の出力が非アクティブ側となると、プルアップ抵抗8,9にはほとんど電流は流れず、通信線1のレベルはハイレベルとなる。いずれか一方、または両方の通信手段2,3の出力Outがローレベルとなれば、ダイオード6,7を介してプルアップ抵抗8,9に電流が流れ、電圧降下によって通信線1はローレベルとなる。説明の簡略化のため、ダイオード6,7の順方向電圧を0Vとし、電源のハイレベルを5Vとし、電源のローレベルを0Vとし、通信手段2,3の入力In側の入力インピーダンスを無限大とし、プルアップ抵抗8,9の抵抗値を1kΩとすると、各プルアップ抵抗8,9には5mAずつの電流が流れ、合計10mAの電流が出力側の通信手段2の出力Outに流れる。   In each of the communication means 2 and 3, pull-up resistors 8 and 9 are connected between the input In and the high level side of the power source. As a result, when the outputs of both the communication means 2 and 3 are inactive, almost no current flows through the pull-up resistors 8 and 9, and the level of the communication line 1 becomes high. If the output Out of one or both of the communication means 2 and 3 becomes low level, a current flows to the pull-up resistors 8 and 9 via the diodes 6 and 7, and the communication line 1 becomes low level due to the voltage drop. Become. For simplification of explanation, the forward voltage of the diodes 6 and 7 is set to 0V, the power supply high level is set to 5V, the power supply low level is set to 0V, and the input impedance on the input In side of the communication means 2 and 3 is infinite. Assuming that the resistance value of the pull-up resistors 8 and 9 is 1 kΩ, a current of 5 mA flows through each of the pull-up resistors 8 and 9, and a total current of 10 mA flows to the output Out of the communication means 2 on the output side.

通信手段2,3間のデジタル信号通信は、双方向で可能であるけれども、同時には一方向でしか可能ではない半二重式となる。すなわち、一方、たとえば通信手段2が送信側となり、他方の通信手段3が受信側となる。受信側となる通信手段3では、出力Outを非アクティブ側のハイレベルとしておき、送信側の通信手段2の出力Outから通信線1を介して送信されるデジタル信号を入力Inに受信する。通信手段2の出力Outがアクティブ側のローレベルになれば、電源のハイレベル側から両方のプルアップ抵抗8,9を通り、さらに通信手段2側のダイオード6を通って通信手段2の出力Outに電流が流れ、通信手段3の入力Inに接続されている通信線1の信号レベルはローレベルとなる。通信手段2の出力Outが非アクティブ側のハイレベルになれば、ダイオード6を通る電流はほとんどなくなり、通信線1の信号レベルはハイレベルとなって、通信手段3の入力Inにはハイレベルが与えられる。   Digital signal communication between the communication means 2 and 3 is possible in both directions, but at the same time, it becomes a half-duplex method which is possible only in one direction. That is, on the other hand, for example, the communication means 2 is a transmission side, and the other communication means 3 is a reception side. In the communication means 3 on the reception side, the output Out is set to the high level on the inactive side, and a digital signal transmitted via the communication line 1 from the output Out of the communication means 2 on the transmission side is received at the input In. When the output Out of the communication means 2 becomes the low level on the active side, the output Out of the communication means 2 passes through both the pull-up resistors 8 and 9 from the high level side of the power supply and further passes through the diode 6 on the communication means 2 side. Current flows, and the signal level of the communication line 1 connected to the input In of the communication means 3 becomes a low level. When the output Out of the communication means 2 becomes high level on the inactive side, almost no current flows through the diode 6, the signal level of the communication line 1 becomes high level, and the input In of the communication means 3 has high level. Given.

図9は、ワンワイヤ通信回路の他の例を示す(たとえば、特許文献1参照)。図9で図8の構成に対応している部分には、同一の参照符を付して重複する説明を省略する。本例では、プルアップ抵抗8は1つだけ通信線1と電源のハイレベル側との間に接続される。プルアップ抵抗8は、通信手段2,3のいずれの側かに設けることもできる。図8と同様な条件であれば、送信側の通信手段2,3の出力Outがローレベルのときに流れる電流は5mAとなる。図9でも、通信線1を介する半二重式のデジタル信号通信の基本的な動作は、図8と同様に行われる。   FIG. 9 shows another example of the one-wire communication circuit (see, for example, Patent Document 1). 9, parts corresponding to those in FIG. 8 are denoted by the same reference numerals, and redundant description is omitted. In this example, only one pull-up resistor 8 is connected between the communication line 1 and the high level side of the power supply. The pull-up resistor 8 can be provided on either side of the communication means 2 and 3. Under the same conditions as in FIG. 8, the current that flows when the output Out of the communication means 2 and 3 on the transmission side is at a low level is 5 mA. 9, the basic operation of half-duplex digital signal communication via the communication line 1 is performed in the same manner as in FIG.

通信線1を介する半二重式のデジタル通信を行う場合には、通信線1が空いていれば、どの通信手段2,3でもマスタとなって、送信を行うことができるマルチマスタ・プロトコルが採用されている。通信線1のようなバスに接続されるノードとしての複数の通信手段2,3は、CSMA/CD(Carrier Sense Multiple Access with Collision
Detection)方式で、バスに最初にアクセスしたノードが送信権を獲得する。ただし、複数のノードからの送信が競合するときには、送信権についての調停が必要となる。
When performing half-duplex digital communication via the communication line 1, there is a multi-master protocol that can be used as a master for transmission by any communication means 2 and 3 as long as the communication line 1 is available. It has been adopted. A plurality of communication means 2 and 3 as nodes connected to a bus such as the communication line 1 are CSMA / CD (Carrier Sense Multiple Access with Collision).
Detection) method, the first node that accesses the bus acquires the transmission right. However, when transmissions from a plurality of nodes compete, it is necessary to arbitrate the transmission right.

図10は、調停機能を備えるデジタル通信に使用されるデータフレームの概略的な構成を示す。先頭にはSOF(Start Of Frame)が1ビットあり、続いて識別情報(ID)によるアービトレーションフィールドが続く。さらにコントロールフィールド(Control
Field )、データフィールド(Data)、CRCフィールド、ACKフィールドおよびエンドオブフレーム(EOF)が続く。データフレームの送信では、アービトレーションフィールドで送信権の調停を行い、データフィールドでデータを送信する。
FIG. 10 shows a schematic configuration of a data frame used for digital communication having an arbitration function. At the top is 1 bit of SOF (Start Of Frame), followed by an arbitration field based on identification information (ID). Furthermore, the control field (Control
Field), data field (Data), CRC field, ACK field and end of frame (EOF). In data frame transmission, arbitration of transmission rights is performed in the arbitration field, and data is transmitted in the data field.

図11は、CAN(Controller Area Network)と呼ばれ、2本の通信線を使用する通信方式のデータフレームで、アービトレーションフィールドの送信によって、送信権についての調停を行う考え方を示す。図8,9では通信線1に2つの通信手段2,3が接続されているけれども、さらにもう1つ通信手段が接続されるとして、3つのノードがバスに接続される場合を想定する。あるタイミングで時刻t0からノードA〜Cの三者が同時に送信を開始して競合が生じるものとする。CANでは、2本の通信線間の電位差をバスのレベルとして、優先的なドミナントレベル(D)と受容的なレセシブレベル(R)とがあるものとして論理的に取扱う。ここでは、ハイレベルがレセシブレベルであり、ローレベルがドミナントレベルであるものとして説明する。各ノードには、相互に異なる識別情報(ID)が与えられている。時刻t0から、各ノードはLレベルのSOFを1ビット送信し、次に識別情報(ID)を送信する。識別情報は、複数のビットを有し、各ビットはLレベルかHレベルかであり、LレベルがHレベルに優先する。すなわち、あるノードがHレベルを出力していても、他にLレベルを出力するノードがあれば、バスはLレベルとなる。   FIG. 11 is called CAN (Controller Area Network), and shows a concept of performing arbitration on a transmission right by transmission of an arbitration field in a data frame of a communication method using two communication lines. 8 and 9, two communication means 2 and 3 are connected to the communication line 1, but assuming that another communication means is connected, three nodes are connected to the bus. Assume that the nodes A to C start transmission at the same time from time t0 and contention occurs. In CAN, the potential difference between two communication lines is logically treated as having a preferential dominant level (D) and a receptive recessive level (R) as a bus level. Here, it is assumed that the high level is a recessive level and the low level is a dominant level. Different identification information (ID) is given to each node. From time t0, each node transmits 1-bit L level SOF, and then transmits identification information (ID). The identification information has a plurality of bits, and each bit is L level or H level, and the L level has priority over the H level. That is, even if a certain node outputs an H level, if there is another node that outputs an L level, the bus is at an L level.

図11では、時刻t0から時刻t1までは、ノードA〜Cは同じようにHLが変化する識別情報を送信している。したがってノードA〜Cの三者の優劣は不明である。時刻t1で、ノードAはHレベルを出力しても、他のノードB,CはLレベルを出力するので、バスはLレベルとなり、ノードAは負けて送信→受信に切換えられる。さらに時刻t2で、ノードCがHレベルを出力し、ノードBがLレベルを出力するので、ノードCは負けて送信→受信に切換えられる。この三者では、ノードBが勝ち残って、最後まで送信する権利を得ることになる。破線は、ノードAおよびノードCが送信を続ける場合の信号波形を示す。複数のノードからの送信が競合するときには、先に送信するビットがLレベルとなるような識別情報が与えられるノードが優先する(たとえば、特許文献2,3参照)。   In FIG. 11, from time t0 to time t1, nodes A to C transmit identification information in which HL changes in the same manner. Therefore, the superiority or inferiority of the three nodes A to C is unknown. Even if node A outputs H level at time t1, the other nodes B and C output L level, so the bus becomes L level and node A loses and is switched from transmission to reception. Further, at time t2, since node C outputs H level and node B outputs L level, node C loses and is switched from transmission to reception. With these three parties, Node B will win and obtain the right to transmit to the end. A broken line shows a signal waveform when node A and node C continue transmission. When transmission from a plurality of nodes competes, priority is given to a node to which identification information is given so that a bit to be transmitted first is at L level (see, for example, Patent Documents 2 and 3).

図12は、図11に示すような調停を行うために、各ノードで行う送信手順を示す。CANでは、各ノードが送信するデータフレームの先頭には図10に示すようにSOFが設けられ、次にIDを含むアービトレーションフィールドが設けられる。送信開始後のステップs1では次に送信する信号のビットを用意し、ステップs2でその信号のビットを送信する。ステップs3では、送信する信号のビットがL出力であるか否かを判断する。L出力ではない、すなわちH出力と判断するときは、ステップs4で受信信号の入力チェックを行う。ステップs5では、入力チェックの結果、L入力となっているか否かを判断する。L入力ではない、すなわちH入力と判断されるときはステップs1に戻る。ステップs3でL出力と判断するときもステップs1に戻る。L出力時には必ずL入力と判断され、そのノードよりも優先するノードの存在を検知することができないからである。したがって、ステップs4ではH出力時にのみ、入力チェックを行うことになる。ステップs5でL入力と判断するときは、H出力にもかかわらず、他にL出力のノードが存在していることが検知されるので、ステップs6で受信を行い、受信が終了すれば、制御手順をいったん終了する。さらに送信が必要であれば、送信開始からの制御手順を実行する。   FIG. 12 shows a transmission procedure performed in each node in order to perform arbitration as shown in FIG. In CAN, an SOF is provided at the head of a data frame transmitted by each node, as shown in FIG. 10, and an arbitration field including an ID is provided next. In step s1 after the start of transmission, the bit of the signal to be transmitted next is prepared, and in step s2, the bit of the signal is transmitted. In step s3, it is determined whether or not the bit of the signal to be transmitted is an L output. When it is determined that the output is not the L output, that is, the H output, in step s4, the input of the received signal is checked. In step s5, it is determined whether the input check results in L input. When it is determined that the input is not the L input, that is, the H input, the process returns to step s1. When it is determined in step s3 that the output is L, the process returns to step s1. This is because at the time of L output, it is always determined that the input is L, and the presence of a node having priority over that node cannot be detected. Therefore, in step s4, an input check is performed only at H output. When it is determined in step s5 that there is an L input, it is detected that there is another L output node in spite of the H output. Therefore, if reception is performed in step s6 and the reception is completed, control is performed. End the procedure. If further transmission is necessary, a control procedure from the start of transmission is executed.

図13は、図8の各通信手段2,3での送信処理と受信のための割り込み処理との概要を示す。図13(a)は送信処理を示し、ステップa1で送信データなどを読み出すなどの信号準備を行う。ステップa2では、送信データのうち、次に送信する1ビット分が取り出され、ハイレベルであればステップa3でHi出力、ローレベルであればステップa4でLo出力がそれぞれ導出される。次にステップa5では次の信号が準備され、ステップa2に戻る。以下、次の信号がなくなるまで、ステップa2からステップa5までを繰り返す。なお、実際の送信処理では、ステップa1の信号準備で、たとえば一定のビット数のデータをシフトレジスタに設定し、ステップa2〜ステップa5は、シフトレジスタに設定されているデータを1ビットずつシフトしながら出力するだけである。ステップa2で信号レベルを判断して、信号レベルに応じてステップa3またはステップa4のいずれかを選択するように記載しているのは、ステップa4でLo出力を行うと、当該通信手段2,3の入力Inもローレベルとなり、破線で示すように、マイコン4,5への割り込みが発生することを明示するためである。   FIG. 13 shows an overview of transmission processing and interruption processing for reception in the communication means 2 and 3 in FIG. FIG. 13A shows transmission processing, and signal preparation such as reading transmission data and the like is performed in step a1. In step a2, one bit to be transmitted next is extracted from the transmission data. If it is high level, Hi output is derived in step a3, and if it is low level, Lo output is derived in step a4. Next, in step a5, the next signal is prepared, and the process returns to step a2. Thereafter, step a2 to step a5 are repeated until the next signal disappears. In actual transmission processing, for example, data of a certain number of bits is set in the shift register in the signal preparation in step a1, and in steps a2 to a5, the data set in the shift register is shifted bit by bit. Just output. It is described that the signal level is judged at step a2 and either step a3 or step a4 is selected according to the signal level. When Lo output is performed at step a4, the communication means 2, 3 This is to clearly indicate that an interrupt to the microcomputers 4 and 5 occurs as indicated by the broken line.

図13(b)は、通信線1を介する信号受信のための割り込み処理を示す。図8に示すように、通信線1は、マイコン4,5の割り込み入力Intに接続されているので、通信線1がローレベルになると、マイコン4,5には割り込みがかかり、割り込みが禁止されていない限り、そのときに実行中の処理を中断して割り込み処理を実行する。ステップb1では、通信手段2,3自身が図13(a)のステップa4でLo出力を行っているか否かを判断する。自身がLo出力ではないと判断すると、ステップb2で相手側の通信手段2,3から通信線1を介して送られてくるデジタル信号を受信するための受信処理を行う。ステップb1で自身がLo出力であると判断すると受信処理は行わない。ステップb2の受信処理が終了するとき、または受信処理を行わないときは、割り込みによって中断している処理に戻る。   FIG. 13B shows interrupt processing for signal reception via the communication line 1. As shown in FIG. 8, since the communication line 1 is connected to the interrupt input Int of the microcomputers 4 and 5, when the communication line 1 becomes low level, the microcomputers 4 and 5 are interrupted and the interrupts are prohibited. Unless otherwise, interrupt the current process and interrupt the current process. In step b1, it is determined whether or not the communication means 2 and 3 themselves are performing Lo output in step a4 of FIG. If it is determined that it is not Lo output, a reception process for receiving a digital signal sent from the communication means 2 and 3 on the other side via the communication line 1 is performed in step b2. If it is determined in step b1 that the output is Lo output, the reception process is not performed. When the reception process of step b2 ends or when the reception process is not performed, the process returns to the process interrupted by the interrupt.

図14は、図8,9の各通信手段2,3での送信処理としての他の例の概要を示す。ステップc1で信号の準備、たとえばシフトレジスタへのデータのセットを行った後、ステップc2では割り込みを禁止する。割り込みが禁止されれば、割り込み入力Intがローレベルになっても割り込み処理は行われない。ステップc3からステップc6までは、図13(a)のステップa2からステップa5までのそれぞれのステップと実質的には同等の動作を行う。すなわち、シフトレジスタに対して1ビット分ずつシフトを行わせながら、1ビット分の信号を送信する。ただし、ステップc2で割り込みを禁止しているので、ステップc5でLo出力を行っても、割り込みはかからない。したがって、受信処理では、図12(b)のステップb1のように、自身がLo出力であるか否かを判断する必要はなく、ステップb2の受信処理のみを常に行うようにすればよい。   FIG. 14 shows an outline of another example as a transmission process in each of the communication means 2 and 3 of FIGS. After signal preparation in step c1, for example, setting of data in the shift register, interrupt is prohibited in step c2. If the interrupt is prohibited, the interrupt process is not performed even if the interrupt input Int becomes low level. Step c3 to step c6 perform substantially the same operation as each step from step a2 to step a5 in FIG. That is, a signal for 1 bit is transmitted while shifting the shift register by 1 bit. However, since interrupt is prohibited in step c2, no interrupt is generated even if Lo output is performed in step c5. Therefore, in the reception process, it is not necessary to determine whether or not the terminal itself is Lo output as in step b1 in FIG.

特許第2845000号公報Japanese Patent No. 2845000 特開平8−18577号公報Japanese Patent Laid-Open No. 8-18577 特開平9−135255号公報JP-A-9-135255

図8,9に示すような従来のワンワイヤ通信回路は、送信と受信とを1本の通信線1で行うことができるけれども、送信するために出力した信号が、送信の相手側の通信手段ばかりではなく、送信側の通信手段自身にも入力されるので、相手側からの信号だけを受信するための工夫が必要となる。もし、送信側の通信手段自身の出力を相手側からの信号と混同すると、誤動作を起こすおそれがある。図12に示すように、割り込み処理の中で自身のLo出力か否かを判断するのは、相手側からの信号を受信するときに、判断を行う分だけ時間がかかってしまう。また、送信でLo出力を行うと、割り込み処理が起動されてしまい、受信処理は行わないで割り込み処理から戻るにしても、余分な時間がかかってしまう。送信開始直後に割り込みを禁止すると、信号の送信が全部終了するまでは、相手側からの信号を受信することができない。   Although the conventional one-wire communication circuit as shown in FIGS. 8 and 9 can perform transmission and reception by one communication line 1, the signal output for transmission is only the communication means on the transmission partner side. However, since it is also input to the communication means on the transmission side itself, a device for receiving only the signal from the other side is required. If the output of the communication means on the transmission side is confused with the signal from the other side, a malfunction may occur. As shown in FIG. 12, it takes time to determine whether or not it is the Lo output of itself during the interrupt process when receiving a signal from the other party. Further, if Lo output is performed in transmission, interrupt processing is activated, and it takes extra time to return from interrupt processing without performing reception processing. If interruption is prohibited immediately after the start of transmission, a signal from the other party cannot be received until the transmission of all signals is completed.

また、図8に示すように、通信線1の両側の通信手段2,3にプルアップ抵抗8,9をそれぞれ設ける場合、たとえば通信手段2のみがLo出力を行うと、両方のプルアップ抵抗8,9に電流が流れて、消費電力が大きくなる。図9に示すようにプルアップ抵抗8を1つにすれば、Lo出力時に流れる電流は図8の半分となり、消費電力は低減される。しかしながら、プルアップ抵抗8を1つしか使用しないと、プルアップ抵抗8とLo出力を行う通信手段2,3の出力部との間にしか電流が流れず、電流が流れない部分では電圧信号となるので、耐ノイズ性が低下してしまう。また、電流が流れないと、接触部分で電気絶縁性の酸化膜などを除去することができず、接触不良を生じるおそれがある。   As shown in FIG. 8, when the pull-up resistors 8 and 9 are provided in the communication means 2 and 3 on both sides of the communication line 1, respectively, for example, when only the communication means 2 performs Lo output, both pull-up resistors 8 and 9 are provided. , 9 flows, and the power consumption increases. If one pull-up resistor 8 is provided as shown in FIG. 9, the current flowing at the time of Lo output is half that of FIG. 8, and the power consumption is reduced. However, if only one pull-up resistor 8 is used, a current flows only between the pull-up resistor 8 and the output part of the communication means 2 and 3 that performs Lo output. As a result, the noise resistance is reduced. Further, if no current flows, the electrically insulating oxide film or the like cannot be removed at the contact portion, which may cause a contact failure.

たとえば、一方の通信手段2が送信側となり、他方の通信手段3が受信側となる頻度が高ければ、通信線1とプルアップ抵抗8との接続部から通信手段2側の部分には比較的大きな電流が流れるけれども、その接続部から通信手段3側にはほとんど電流が流れない。通信線1が通信手段2,3の出力部や入力部に接続される部分は、一般に端子やコネクタなどで、着脱可能に構成されている。着脱可能な部分では、導体と導体との接触で電気的な接続が行われる。導体と導体との接触部分にほとんど電流が流れないと、接触部分の酸化などで抵抗が大きくなり、接触不良が生じやすくなる。   For example, if one communication means 2 becomes the transmission side and the other communication means 3 becomes the reception side, the communication means 2 side and the communication means 2 side will be relatively less than the connection portion between the communication line 1 and the pull-up resistor 8. Although a large current flows, almost no current flows from the connecting portion to the communication means 3 side. The part where the communication line 1 is connected to the output part or the input part of the communication means 2 and 3 is generally configured to be detachable by a terminal, a connector or the like. In the detachable part, electrical connection is made by contact between the conductors. If almost no current flows through the contact portion between the conductors, resistance increases due to oxidation of the contact portion, and contact failure tends to occur.

さらに、図11に示すような複数のノード間での衝突回避の調停を行うときには、図12のステップs3に示すように、ノードは信号を送り出した直後に、信号がL出力か否かを判断して分岐を行う必要がある。図12の制御手順には、このような条件分岐が含まれるので動作が複雑化する。条件分岐の結果を予測するのは困難なので、プログラムコードの読込み、解釈、実行などを並行して行うパイプライン処理で高速化を図ることが困難となる。プログラムコードを先行して読込んでも、条件分岐の結果が予測と異なると、改めて分岐先からのプログラムコードを読込む必要があるからである。   Further, when arbitrating for collision avoidance between a plurality of nodes as shown in FIG. 11, as shown in step s3 of FIG. 12, the node determines whether or not the signal is L output immediately after sending out the signal. It is necessary to branch. Since the control procedure of FIG. 12 includes such a conditional branch, the operation is complicated. Since it is difficult to predict the result of conditional branching, it is difficult to increase the speed by pipeline processing in which program code is read, interpreted, and executed in parallel. This is because even if the program code is read in advance, if the result of the conditional branch differs from the prediction, it is necessary to read the program code from the branch destination again.

本発明の目的は、単一の信号線に接続しても、自身の出力による誤動作がなく、しかも競合時の調停も容易に行うことができる通信装置および通信システム、ならびに通信の調停方法を提供することである。   An object of the present invention is to provide a communication device and a communication system, and a communication arbitration method capable of performing arbitration at the time of competition without causing malfunction due to its own output even when connected to a single signal line. It is to be.

本発明は、空き状態で論理レベルが予め定める一方側となる単一の通信線に複数が接続可能で、通信線が空いていれば該論理レベルの一方側と他方側との間で変化する信号で情報を送信可能となる通信装置において、
通信線からの信号を受信するための受信手段と、
通信線へ信号を送信する送信手段と、
受信手段および送信手段と通信線との間に設けられ、送信手段から送信する信号の論理レベルが該一方側の時に通信線からの信号が受信手段に入力され、該論理レベルが他方側の時には受信手段に該論理レベルの一方側が入力されるように切換える切換手段と、
通信線に信号を送信していないときには送信手段から該論理レベルの一方側を出力させ、信号を送信するときに、受信手段に該論理レベルの他方側が入力されると、信号の送信を停止するように制御する制御手段とを、含むことを特徴とする通信装置である。
In the present invention, when a plurality of communication lines can be connected to a single communication line whose logical level is predetermined in a free state and the communication line is free, the logical level changes between one side and the other side. In a communication device that can transmit information by signal,
Receiving means for receiving a signal from the communication line;
A transmission means for transmitting a signal to the communication line;
Provided between the receiving means and the transmitting means and the communication line, when the logic level of the signal transmitted from the transmitting means is on the one side, the signal from the communication line is input to the receiving means, and when the logic level is on the other side Switching means for switching so that one side of the logic level is input to the receiving means;
When the signal is not transmitted to the communication line, one side of the logical level is output from the transmitting unit, and when the other side of the logical level is input to the receiving unit when transmitting the signal, the transmission of the signal is stopped. And a control means for controlling the communication device.

本発明に従えば、通信装置は、空き状態で論理レベルが予め定める一方側となる単一の通信線に複数が接続可能である。通信装置では、通信線が空いていれば該論理レベルの一方側と他方側との間で変化する信号で情報を送信可能とするために、受信手段と、送信手段と、切換手段と、制御手段とを含む。切換手段は、通信線からの信号を受信するための受信手段と、通信線へ信号を送信する送信手段との間に設けられ、送信手段から送信する信号の論理レベルが一方側の時に通信線からの信号が受信手段に入力され、論理レベルが他方側の時には受信手段に論理レベルの一方側が入力されるように切換える。すなわち、送信手段から論理レベルの他方側を出力するなら、信号線の論理レベルにかかわらず、受信手段には論理レベルの一方側が入力される。送信手段から論理レベルの一方側を出力するなら、信号線の論理レベルがそのまま受信手段に入力される。制御手段は、通信線に信号を送信していないときには送信手段から論理レベルの一方側を出力させ、信号を送信するときに、受信手段に論理レベルの他方側が入力されると、信号の送信を停止するように制御するので、送信手段からの出力の論理レベルを判断する必要がなく、制御手順を短縮し、簡単化することができるとともに、単一の信号線に接続しても、自身の出力による誤動作がなく、しかも競合時の調停も容易に行うことができる。   According to the present invention, a plurality of communication devices can be connected to a single communication line on one side whose logic level is predetermined in a free state. In the communication apparatus, if the communication line is free, in order to be able to transmit information with a signal that changes between one side and the other side of the logic level, a receiving unit, a transmitting unit, a switching unit, a control unit, Means. The switching means is provided between the receiving means for receiving the signal from the communication line and the transmitting means for transmitting the signal to the communication line, and when the logic level of the signal transmitted from the transmitting means is one side, When the logic level is on the other side, the signal is switched so that one side of the logic level is input to the receiving means. That is, if the other side of the logic level is output from the transmission unit, one side of the logic level is input to the reception unit regardless of the logic level of the signal line. If one side of the logic level is output from the transmission means, the logic level of the signal line is input to the reception means as it is. The control means outputs one side of the logic level from the transmission means when no signal is transmitted to the communication line, and transmits the signal when the other side of the logic level is input to the reception means when transmitting the signal. Since it is controlled to stop, it is not necessary to judge the logic level of the output from the transmission means, the control procedure can be shortened and simplified, and even if it is connected to a single signal line, its own There is no malfunction due to output, and arbitration at the time of competition can be easily performed.

また本発明で、前記制御手段は、送信開始時に、予め優先度を反映させて設定される識別情報を前記送信手段から送信させ、該識別情報の送信中に、前記受信手段に前記論理レベルの他方側が入力されると、送信を停止するように制御することを特徴とする。   In the present invention, the control means causes the transmission means to transmit identification information set in advance by reflecting priority at the start of transmission, and during the transmission of the identification information, the reception means has the logic level. When the other side is input, the transmission is controlled to stop.

本発明に従えば、単一の通信線を介する信号の送信を開始する時点で、制御手段は、予め優先度を反映させて設定される識別情報を送信手段から送信させる。識別情報を、優先度が高い通信手段には早期に論理レベルの他方側が出力されるように設定しておけば、制御手段が識別情報の送信中に、受信手段に論理レベルの他方側が入力されると、送信を停止するように制御するようにして、送信が競合しても、優先度に応じた調停を容易に行うことができる。   According to the present invention, at the time when transmission of a signal via a single communication line is started, the control unit causes the transmission unit to transmit identification information set in advance by reflecting the priority. If the identification information is set so that the other side of the logic level is output to the communication means with high priority at an early stage, the other side of the logic level is input to the receiving means while the control means is transmitting the identification information. Then, control is performed so as to stop transmission, so that arbitration according to priority can be easily performed even if transmission conflicts.

また本発明で、前記切換手段は、
前記通信線と前記送信手段との間に接続され、該通信線が前記論理レベルの一方側で該送信手段が該論理レベルの他方側のときに順方向となる方向で接続されたダイオードと、
スイッチング部と制御部とを有し、該通信線と前記受信手段との間にスイッチング部が接続され、制御部が送信手段に接続されて、制御部に入力される論理レベルが一方側か他方側かに応じてスイッチング部が導通または遮断するスイッチング素子とを、
含むことを特徴とする。
In the present invention, the switching means includes
A diode connected between the communication line and the transmission means, and connected in a forward direction when the communication line is on one side of the logic level and the transmission means is on the other side of the logic level;
A switching unit and a control unit, wherein the switching unit is connected between the communication line and the receiving unit, the control unit is connected to the transmitting unit, and the logic level input to the control unit is one side or the other A switching element in which the switching unit is turned on or off depending on the side,
It is characterized by including.

本発明に従えば、切換手段にはダイオードとスイッチング素子とが含まれる。ダイオードは、通信線と送信手段との間に接続され、通信線が論理レベルの一方側で送信手段が論理レベルの他方側のときに順方向となる方向で接続されので、通信線が空き状態で論理レベルが一方側のときに送信手段が論理レベルの他方側を出力すれば、順方向となり、通信線の論理レベルを送信手段の出力によって他方側に遷移させることができる。通信線が空き状態ではなく、論理レベルが他方側になっているときに、送信手段が論理レベルの一方側を出力しても、ダイオードは逆方向となり、送信手段の出力は通信線には影響しない。スイッチング素子は、スイッチング部と制御部とを有し、通信線と受信手段との間にスイッチング部が接続され、制御部が送信手段に接続されて、制御部に入力される論理レベルが一方側か他方側かに応じてスイッチング部が導通または遮断する。送信手段の出力が論理レベルの一方側であれば、スイッチング部が導通し、通信線の論理レベルが受信手段に入力される。送信手段の出力が論理レベルの他方側であれば、スイッチング部が遮断し、受信手段の入力は、通信線の論理レベルではなく、論理レベルの一方側となる。したがって、受信手段に論理レベルの他方側が入力されるのは、送信手段から論理レベルの一方側を出力し、かつ通信線の論理レベルが他方側となっているときに限られる。   According to the invention, the switching means includes a diode and a switching element. The diode is connected between the communication line and the transmission means, and is connected in the forward direction when the communication line is on one side of the logic level and the transmission means is on the other side of the logic level. When the transmission means outputs the other side of the logic level when the logic level is one side, the forward direction is established, and the logic level of the communication line can be shifted to the other side by the output of the transmission means. When the communication line is not idle and the logic level is on the other side, even if the transmission means outputs one side of the logic level, the diode is reversed, and the output of the transmission means does not affect the communication line. do not do. The switching element has a switching unit and a control unit, the switching unit is connected between the communication line and the receiving unit, the control unit is connected to the transmitting unit, and the logic level input to the control unit is on one side The switching unit is turned on or off depending on the other side. If the output of the transmission means is one side of the logic level, the switching unit is turned on and the logic level of the communication line is input to the reception means. If the output of the transmitting means is the other side of the logic level, the switching unit is cut off, and the input of the receiving means is not the logic level of the communication line but the one side of the logic level. Accordingly, the other side of the logic level is input to the receiving means only when one side of the logic level is output from the transmitting means and the logic level of the communication line is on the other side.

また本発明で、前記スイッチング素子はバイポーラトランジスタであり、
該バイポーラトランジスタは、前記受信手段にはコレクタ、前記送信手段にはベースがそれぞれ接続され、前記通信線にはエミッタが接続されることを特徴とする。
In the present invention, the switching element is a bipolar transistor,
The bipolar transistor is characterized in that a collector is connected to the receiving means, a base is connected to the transmitting means, and an emitter is connected to the communication line.

本発明に従えば、バイポーラトランジスタをスイッチング素子とし、受信手段にはコレクタ、送信手段にはベースがそれぞれ接続され、通信線にはエミッタが接続される。送信手段が論理レベルの一方側を出力すると、ベースに順方向のバイアスが印加され、コレクタとエミッタとの間が導通して、受信手段に通信線を接続することができる。送信手段が論理レベルの他方側を出力すると、ベースに順方向のバイアスが印加されず、受信手段は通信線とは切離される。   According to the present invention, the bipolar transistor is a switching element, the collector is connected to the receiving means, the base is connected to the transmitting means, and the emitter is connected to the communication line. When the transmitting means outputs one side of the logic level, a forward bias is applied to the base, and the collector and the emitter are electrically connected, and the communication line can be connected to the receiving means. When the transmitting means outputs the other side of the logic level, the forward bias is not applied to the base, and the receiving means is disconnected from the communication line.

また本発明で、前記スイッチング素子のスイッチング部が接続される前記受信手段と電源のハイレベル側との間にはプルアップ抵抗が接続され、
前記通信線と電源のローレベル側との間にはプルダウン抵抗が接続されることを特徴とする。
In the present invention, a pull-up resistor is connected between the receiving means to which the switching unit of the switching element is connected and the high level side of the power source,
A pull-down resistor is connected between the communication line and the low level side of the power supply.

本発明に従えば、スイッチング素子のスイッチング部が接続される受信手段と電源のハイレベル側との間にはプルアップ抵抗が接続されるので、送信手段が論理レベルの他方側を出力してスイッチング素子が遮断状態となると、受信手段には電源のハイレベル側が入力される。通信線が空いていて論理レベルの一方側であれば、順方向となるダイオードを介して送信手段からの論理レベルの他方側の出力に、通信線の論理レベルが遷移する。通信線に接続されるすべての送信手段から論理レベルの一方側が出力されれば、すべてのスイッチング素子は導通状態となり、通信線は論理レベルの一方側となる。通信線に接続される送信手段のうちに、論理レベルの一方側を出力するものと他方側を出力するものとがあれば、ダイオードによる論理和として、通信線の論理レベルは他方側となる。通信線に接続されるすべての送信手段から論理レベルの他方側が出力されると、すべてのスイッチング素子は遮断され、通信線はプルダウン抵抗を介して電源のローレベル側のみに接続される。電源のハイレベル側を論理レベルの一方側とし、電源のローレベル側を論理レベルの他方側として、通信線を介してシリアルデータの伝送を行うことができる。   According to the present invention, since the pull-up resistor is connected between the receiving means to which the switching unit of the switching element is connected and the high level side of the power supply, the transmitting means outputs the other side of the logic level and performs switching. When the element is cut off, the high level side of the power supply is input to the receiving means. If the communication line is free and is on one side of the logic level, the logic level of the communication line transitions to the output on the other side of the logic level from the transmitting means via a diode in the forward direction. If one side of the logic level is output from all the transmission means connected to the communication line, all the switching elements are turned on, and the communication line is on one side of the logic level. If there are transmission means connected to the communication line that output one side of the logic level and output that outputs the other side, the logic level of the communication line becomes the other side as a logical sum of the diodes. When the other side of the logic level is output from all the transmission means connected to the communication line, all the switching elements are cut off, and the communication line is connected only to the low level side of the power supply via the pull-down resistor. Serial data can be transmitted via a communication line with the high level side of the power supply as one side of the logic level and the low level side of the power supply as the other side of the logic level.

さらに本発明は、前述のいずれか1つに記載の通信装置が前記通信線を介して接続される複数の通信手段のうちの少なくとも一つの通信手段となり、
該通信手段の制御手段は、送信開始時に優先権を反映させた識別情報を送信して、識別情報のうちの論理レベルの一方側を送信中に、通信線から論理レベルの他方側を受信すれば送信を停止して、競合発生時の調停を行うことを特徴とする調停機能付き通信システムである。
Furthermore, the present invention provides at least one communication means of a plurality of communication means to which the communication device according to any one of the foregoing is connected via the communication line,
The control means of the communication means transmits the identification information reflecting the priority at the start of transmission, and receives the other side of the logical level from the communication line while transmitting one side of the logical level of the identification information. For example, the communication system with an arbitration function is characterized in that transmission is stopped and arbitration is performed when contention occurs.

本発明に従えば、調停機能付き通信システムでは、単一の通信線に、少なくとも一つの通信手段として、自身の出力による誤動作がなく、しかも競合時の調停も容易に行うことができる通信装置を使用することができる。複数の通信手段が通信線に接続されていても、通信装置を用いる通信手段の制御手段は、送信開始時に優先権を反映させた識別情報を送信して、識別情報のうちの論理レベルの一方側を送信中に、通信線から論理レベルの他方側を受信すれば送信を停止して、競合発生時の調停を行う。優先度の高い通信手段に、論理レベルの他方側が早く送信されるような識別情報を与えておけば、他の優先度が低い通信手段との間に競合が生じても、他の通信手段に優先して通信線を使用することができるように、調停を行うことができる。   According to the present invention, in a communication system with an arbitration function, a communication device that does not malfunction due to its own output and can easily perform arbitration at the time of competition as at least one communication means on a single communication line. Can be used. Even if a plurality of communication means are connected to the communication line, the control means of the communication means using the communication device transmits the identification information reflecting the priority at the start of transmission, and one of the logical levels of the identification information If the other side of the logic level is received from the communication line during transmission, the transmission is stopped and arbitration is performed when contention occurs. If communication information with high priority is given identification information so that the other side of the logical level is transmitted early, even if there is a conflict with other communication means with low priority, other communication means Arbitration can be performed so that the communication line can be used with priority.

さらに本発明は、空き状態で論理レベルが予め定める一方側となる単一の通信線に複数の通信手段を接続し、いずれの通信手段でも通信線が空いていれば該論理レベルの一方側と他方側との間で変化する信号で情報を送信可能となる通信で、送信が競合するときに調停を行う通信の調停方法において、
少なくとも一つの通信手段に、
通信線からの信号を受信するための受信手段と、
通信線へ信号を送信する送信手段と、
受信手段および送信手段と通信線との間に設けられ、送信手段から送信する信号の論理レベルが該一方側の時に通信線からの信号が受信手段に入力され、該論理レベルが他方側の時には受信手段に該論理レベルの一方側が入力されるように切換える切換手段とを設けておき、
通信線に信号を送信していないときには送信手段から該論理レベルの一方側を出力させ、信号を送信するときに、受信手段に該論理レベルの他方側が入力されると、信号の送信を停止することを特徴とする通信の調停方法である。
Furthermore, the present invention connects a plurality of communication means to a single communication line whose logical level is predetermined on one side in a free state, and if any communication means has a free communication line, In the communication arbitration method that performs arbitration when transmission competes in communication that enables transmission of information with a signal that changes between the other side,
At least one communication means,
Receiving means for receiving a signal from the communication line;
A transmission means for transmitting a signal to the communication line;
Provided between the receiving means and the transmitting means and the communication line, when the logic level of the signal transmitted from the transmitting means is on the one side, the signal from the communication line is input to the receiving means, and when the logic level is on the other side Switching means for switching so that one side of the logic level is input to the receiving means;
When the signal is not transmitted to the communication line, one side of the logical level is output from the transmitting unit, and when the other side of the logical level is input to the receiving unit when transmitting the signal, the transmission of the signal is stopped. This is a communication arbitration method.

本発明に従えば、空き状態で論理レベルが予め定める一方側となる単一の通信線に複数の通信手段を接続して行う通信では、いずれの通信手段でも通信線が空いていれば該論理レベルの一方側と他方側との間で変化する信号で情報を送信可能となるけれども、複数の通信手段が通信線が空き状態であると判断して、同時に送信を開始する送信の競合が生じ、調停が必要となる。通信線に接続される複数の通信手段のうちの少なくとも一つには、通信線に対する信号の受信および送信のための受信手段および送信手段とともに、切換手段を設ける。切換手段は、受信手段および送信手段と通信線との間に設けられ、送信手段から送信する信号の論理レベルが一方側の時に通信線からの信号が受信手段に入力され、論理レベルが他方側の時には受信手段に論理レベルの一方側が入力されるように切換えるようにする。通信線に送信手段から出力する信号の論理レベルが一方側である時に、切換手段が通信線からの信号が受信手段に入力されるように切換えるので、信号線の論理レベルが他方側となっていれば、受信手段に論理レベルの他方側が入力され、他の通信手段が通信線を介して論理レベルの他方側を出力していることが判る。受信手段に論理レベルの他方側が入力されて、他の通信手段が通信線を使用していることが判るときには、送信を停止するので、競合を回避するように、調停することができる。   According to the present invention, in communication performed by connecting a plurality of communication means to a single communication line whose logical level is predetermined in a free state, if any communication means is free, the logic Although it is possible to transmit information with a signal that changes between one side and the other side of the level, a plurality of communication means determine that the communication line is idle, and contention for transmission that simultaneously starts transmission occurs. Mediation is required. At least one of the plurality of communication means connected to the communication line is provided with a switching means together with a reception means and a transmission means for receiving and transmitting signals with respect to the communication line. The switching means is provided between the receiving means and the transmitting means and the communication line. When the logic level of the signal transmitted from the transmitting means is on one side, the signal from the communication line is input to the receiving means, and the logic level is on the other side. In this case, the receiving means is switched so that one side of the logic level is input. When the logic level of the signal output from the transmitting means to the communication line is on one side, the switching means switches so that the signal from the communication line is input to the receiving means, so the logic level of the signal line is on the other side. Then, it can be seen that the other side of the logic level is input to the receiving unit, and the other communication unit outputs the other side of the logic level via the communication line. When the other side of the logic level is input to the receiving means and it is known that the other communication means is using the communication line, the transmission is stopped, so that arbitration can be performed so as to avoid contention.

本発明によれば、受信手段に論理レベルの他方側が入力されるのは、送信手段が論理レベルの一方側を送信し、通信線が論理レベルの他方側となっているときに限られる。受信手段に入力される論理レベルが他方側となるときに信号の送信を停止するように制御するので、送信手段からの出力の論理レベルを判断する必要がなく、制御手順を短縮し、簡単化することができるとともに、単一の信号線に接続しても、自身の出力による誤動作がなく、しかも競合時の調停も容易に行うことができる。   According to the present invention, the other side of the logic level is input to the receiving means only when the transmitting means transmits one side of the logic level and the communication line is on the other side of the logic level. Since control is performed so that signal transmission is stopped when the logical level input to the receiving means is on the other side, it is not necessary to determine the logical level of the output from the transmitting means, and the control procedure is shortened and simplified. In addition, even if connected to a single signal line, there is no malfunction due to its own output, and arbitration at the time of contention can be easily performed.

また本発明によれば、単一の通信線を介する信号の送信を開始時に競合が生じても、予め優先度を反映させて設定される識別情報を送信手段から送信させて、優先度に応じた調停を容易に行うことができる。   According to the present invention, even if contention occurs at the start of transmission of a signal via a single communication line, identification information set in advance by reflecting priority is transmitted from the transmission unit, and the response is made according to the priority. Arbitration can be performed easily.

また本発明によれば、切換手段にはダイオードとスイッチング素子とが含まれ、通信線が論理レベルの一方側で送信手段が論理レベルの他方側のときには、順方向とダイオードを介して、通信手段の論理レベルが一方側であれば他方側に遷移させるとともに、スイッチング素子を遮断させて、受信手段には論理レベルの一方側を入力させることができる。通信線が空き状態ではなく、論理レベルが他方側になっているときに、送信手段が論理レベルの一方側を出力しても、ダイオードは逆方向となり、送信手段の出力は通信線には影響しない。送信手段の出力が論理レベルの一方側であれば、スイッチング部が導通して通信線の論理レベルが受信手段に入力される。受信手段に論理レベルの他方側が入力されるのは、送信手段から論理レベルの一方側を出力し、かつ通信線の論理レベルが他方側となっているときに限られるので、他の通信手段が通信線に論理レベルの他方側を出力していることを、容易に確認することができる。送信手段の出力が論理レベルの他方側となるときにスイッチング素子のスイッチング部が遮断されるので、受信部に論理レベルの一方側が入力されても、送信手段と受信手段との間に流れる電流は少なく、電力消費を低減することができる。   According to the present invention, the switching means includes a diode and a switching element. When the communication line is on one side of the logic level and the transmitting means is on the other side of the logic level, the communication means is connected via the forward direction and the diode. If the logic level is one side, it is possible to make a transition to the other side, cut off the switching element, and input one side of the logic level to the receiving means. When the communication line is not idle and the logic level is on the other side, even if the transmission means outputs one side of the logic level, the diode is reversed, and the output of the transmission means does not affect the communication line. do not do. If the output of the transmission means is one side of the logic level, the switching unit is turned on and the logic level of the communication line is input to the reception means. The other side of the logical level is input to the receiving means only when the one side of the logical level is output from the transmitting means and the logical level of the communication line is on the other side. It can be easily confirmed that the other side of the logic level is output to the communication line. Since the switching unit of the switching element is cut off when the output of the transmission unit is on the other side of the logic level, even if one side of the logic level is input to the reception unit, the current flowing between the transmission unit and the reception unit is Less power consumption can be reduced.

また本発明によれば、バイポーラトランジスタのコレクタを受信手段に、ベースを送信手段に、エミッタを通信線に、それぞれ接続し、送信手段から出力される論理レベルに応じて、受信手段と通信線との間のスイッチングを行うことができる。   According to the present invention, the collector of the bipolar transistor is connected to the receiving means, the base is connected to the transmitting means, the emitter is connected to the communication line, and the receiving means and the communication line are connected according to the logic level output from the transmitting means. Can be switched between.

また本発明によれば、電源のハイレベル側を論理レベルの一方側とし、電源のローレベル側を論理レベルの他方側として、通信線を介してシリアルデータの伝送を行うことができる。   Further, according to the present invention, serial data can be transmitted via a communication line, with the high level side of the power source set as one side of the logic level and the low level side of the power source set as the other side of the logic level.

さらに本発明によれば、自身の出力による誤動作がなく、しかも競合時の調停も容易に行うことができる通信装置を複数の通信手段のうちの少なくとも一つとして使用し、単一の通信線を介して通信可能に接続することができる。通信装置を用いる通信手段の制御手段は、送信開始時に優先権を反映させた識別情報を送信して、容易に調停を行うことができる。   Furthermore, according to the present invention, a communication device that is free from malfunction due to its own output and that can easily perform arbitration during competition is used as at least one of a plurality of communication means, and a single communication line is used. It can connect so that communication is possible. The control means of the communication means using the communication device can easily perform arbitration by transmitting the identification information reflecting the priority at the start of transmission.

さらに本発明によれば、空き状態で論理レベルが予め定める一方側となる単一の通信線に複数の通信手段を接続して行う通信では、いずれの通信手段でも通信線が空いていれば送信可能となるマルチマスタ・プロトコルで信号の送信を行うことができる。送信競合時の調停は、受信手段に入力される信号線の論理レベルが他方側となっていれば送信を停止することで、簡単に行うことができる。   Furthermore, according to the present invention, in communication performed by connecting a plurality of communication means to a single communication line having a predetermined logical level in one idle state, transmission is performed if any communication means is free. Signals can be transmitted using the multi-master protocol that is possible. Arbitration at the time of transmission competition can be easily performed by stopping transmission if the logic level of the signal line input to the receiving means is on the other side.

図1は、本発明の実施の一形態であるワンワイヤ通信システム10の概略的な電気的構成を示す。ワンワイヤ通信システム10では、見かけ上、単一の通信線11を介して、複数のワンワイヤ通信装置12,13間での半二重式のデジタル信号通信が行われる。各ワンワイヤ通信装置12,13は、入力部Inと出力部Outとを備えている。各ワンワイヤ通信装置12,13の入力部Inは、バイポーラ型のNPNトランジスタ14,15のコレクタにそれぞれ接続される。NPNトランジスタ14,15のエミッタ間に通信線11が接続される。NPNトランジスタ14,15のエミッタとワンワイヤ通信装置12,13の出力部Outとの間には、ダイオード16,17がそれぞれ接続される。ダイオード16,17の接続方向は、アノードが通信線11側でカソードが通信手段12,13の出力部Out側となるようにする。NPNトランジスタ14,15のコレクタは、プルアップ抵抗18,19を介して電源の正電圧側にも接続される。NPNトランジスタ14,15のベースは、電流制限用のベース抵抗20,21を介して、ワンワイヤ通信装置12,13の出力部Outにそれぞれ接続される。   FIG. 1 shows a schematic electrical configuration of a one-wire communication system 10 according to an embodiment of the present invention. In the one-wire communication system 10, apparently, half-duplex digital signal communication is performed between the plurality of one-wire communication devices 12 and 13 via the single communication line 11. Each one-wire communication device 12 and 13 includes an input unit In and an output unit Out. Input portions In of the one-wire communication devices 12 and 13 are connected to collectors of bipolar NPN transistors 14 and 15, respectively. A communication line 11 is connected between the emitters of the NPN transistors 14 and 15. Diodes 16 and 17 are connected between the emitters of the NPN transistors 14 and 15 and the output part Out of the one-wire communication devices 12 and 13, respectively. The diodes 16 and 17 are connected such that the anode is on the communication line 11 side and the cathode is on the output unit Out side of the communication means 12 and 13. The collectors of the NPN transistors 14 and 15 are also connected to the positive voltage side of the power supply via the pull-up resistors 18 and 19. The bases of the NPN transistors 14 and 15 are connected to the output units Out of the one-wire communication devices 12 and 13 via current limiting base resistors 20 and 21, respectively.

各ワンワイヤ通信装置12,13では、NPNトランジスタ14,15、ダイオード16,17、プルアップ抵抗18,19、およびベース抵抗20,21が切換手段22,23をそれぞれ形成する。また、各ワンワイヤ通信装置12,13には、制御手段となるマイコン24,25がそれぞれ設けられている。各ワンワイヤ通信装置12,13の入力部Inおよび出力部Outには、受信手段26,27および送信手段28,29がそれぞれ設けられる。   In each one-wire communication device 12, 13, NPN transistors 14, 15, diodes 16, 17, pull-up resistors 18, 19, and base resistors 20, 21 form switching means 22, 23, respectively. The one-wire communication devices 12 and 13 are respectively provided with microcomputers 24 and 25 serving as control means. Receiving means 26 and 27 and transmitting means 28 and 29 are provided in the input part In and the output part Out of each one-wire communication device 12 and 13, respectively.

すなわち、切換手段22,23にはダイオード16,17と、スイッチング素子であるNPNトランジスタ14,15とが含まれる。ダイオード16,17は、通信線11と送信手段28,29との間に接続され、通信線11がハイレベル、すなわち論理レベルの一方側で送信手段28,29がローレベル、すなわち論理レベルの他方側のときに順方向となる方向で接続されので、通信線11が空き状態で論理レベルが一方側のときに送信手段28,29が論理レベルの他方側を出力すれば、順方向となり、通信線11の論理レベルを送信手段28,29の出力によって他方側に遷移させることができる。通信線11が空き状態ではなく、論理レベルが他方側になっているときに、送信手段28,29が論理レベルの一方側を出力しても、ダイオード16,17は逆方向となり、送信手段28,29の出力は通信線11には影響しない。スイッチング素子であるNPNトランジスタ14,15は、コレクタ・エミッタ間によって形成されるスイッチング部とベースによって形成される制御部とを有し、通信線11と受信手段26,27との間にスイッチング部が接続され、制御部が送信手段28,29に接続されて、制御部に入力される論理レベルが一方側か他方側かに応じてスイッチング部が導通または遮断する。送信手段28,29の出力が論理レベルの一方側であれば、スイッチング部が導通し、通信線11の論理レベルが受信手段26,27に入力される。送信手段28,29の出力が論理レベルの他方側であれば、スイッチング部が遮断し、受信手段26,27の入力は、通信線11の論理レベルではなく、論理レベルの一方側となる。したがって、受信手段26,27に論理レベルの他方側が入力されるのは、送信手段28,29から論理レベルの一方側を出力し、かつ通信線11の論理レベルが他方側となっているときに限られる。   That is, the switching means 22 and 23 include diodes 16 and 17 and NPN transistors 14 and 15 as switching elements. The diodes 16 and 17 are connected between the communication line 11 and the transmission means 28 and 29. The communication line 11 is at the high level, that is, one side of the logic level, and the transmission means 28 and 29 are at the low level, that is, the other at the logic level. If the transmission means 28 and 29 output the other side of the logical level when the communication line 11 is idle and the logical level is one side, the forward direction is established. The logic level of the line 11 can be shifted to the other side by the outputs of the transmitting means 28 and 29. When the communication line 11 is not in an idle state and the logic level is on the other side, even if the transmission means 28 and 29 output one side of the logic level, the diodes 16 and 17 are in the opposite direction, and the transmission means 28 , 29 does not affect the communication line 11. The NPN transistors 14 and 15 which are switching elements have a switching unit formed by a collector and an emitter and a control unit formed by a base, and the switching unit is provided between the communication line 11 and the receiving means 26 and 27. Connected, the control unit is connected to the transmission means 28, 29, and the switching unit is turned on or off depending on whether the logic level input to the control unit is one side or the other side. If the output of the transmission means 28, 29 is one side of the logic level, the switching unit is turned on, and the logic level of the communication line 11 is input to the reception means 26, 27. If the outputs of the transmitting means 28 and 29 are on the other side of the logic level, the switching unit is cut off, and the inputs of the receiving means 26 and 27 are on the one side of the logic level instead of the logic level of the communication line 11. Therefore, the other side of the logic level is input to the receiving means 26 and 27 when one side of the logic level is output from the transmitting means 28 and 29 and the logic level of the communication line 11 is the other side. Limited.

なお、図示を省略しているけれども、ワンワイヤ通信装置12,13は接地を共通にしている。各ワンワイヤ通信装置12,13には、接地の電位を基準に、所定のハイレベルの正電圧を発生する電源が個別または共通に接続される。プルアップ抵抗18,19は、入力部Inをこのような電源の正電圧側に接続している。したがって、実際のデジタル信号の転送では、少なくとも接地が信号の戻り経路として機能している。   Although not shown, the one-wire communication devices 12 and 13 share a common ground. Each of the one-wire communication devices 12 and 13 is connected individually or commonly to a power source that generates a predetermined high-level positive voltage with reference to the ground potential. The pull-up resistors 18 and 19 connect the input part In to the positive voltage side of such a power supply. Therefore, in actual digital signal transfer, at least the ground functions as a signal return path.

図1のワンワイヤ通信システム10は、通信線11の両側のワンワイヤ通信装置12,13の出力部Outが一方の論理状態であるハイレベルをともに出力しているとき、通信線11の論理状態もハイレベルとなる。出力部Outがハイレベルであると、NPNトランジスタ14,15の制御部であるベースは順方向にバイアスされ、コレクタ・エミッタ間のスイッチング部は導通状態となって低インピーダンス状態となる。しかしながら、通信線11もハイレベルであるので、プルアップ抵抗18,19およびNPNトランジスタ14,15のコレクタ・エミッタ間を通って通信線11まで流れる電流は少なく、プルアップ抵抗18,19での電圧降下も小さくなって、ワンワイヤ通信装置12,13の入力部Inにはハイレベルが入力される。   In the one-wire communication system 10 of FIG. 1, when the output units Out of the one-wire communication devices 12 and 13 on both sides of the communication line 11 output both high levels that are one logical state, the logical state of the communication line 11 is also high. Become a level. When the output unit Out is at a high level, the base, which is the control unit of the NPN transistors 14 and 15, is biased in the forward direction, and the switching unit between the collector and the emitter is in a conductive state and is in a low impedance state. However, since the communication line 11 is also at a high level, the current flowing through the collectors and emitters of the pull-up resistors 18 and 19 and the NPN transistors 14 and 15 to the communication line 11 is small, and the voltage at the pull-up resistors 18 and 19 is low. The drop is also reduced, and a high level is input to the input unit In of the one-wire communication devices 12 and 13.

一方の通信手段、たとえばワンワイヤ通信装置12が送信側となって出力部Outに他方の論理状態であるローレベルが出力されると、NPNトランジスタ14のベースはハイレベルの通信線11に接続されるエミッタに対して逆方向の電圧でバイアスされ、コレクタ・エミッタ間は遮断状態となって高インピーダンスとなる。ダイオード16は順方向にバイアスされて導通状態となり、通信線11からワンワイヤ通信装置12の出力部Outに電流が流れて、通信線11の論理状態をローレベルに遷移させる。通信線11に流れる電流は、他方のワンヤイヤ通信装置13側のNPNトランジスタ15のコレクタ・エミッタ間とプルアップ抵抗19とを介して、電源の正電圧側から供給される。この電流による電圧降下で、ワンヤイヤ通信装置13の入力部Inの論理状態はローレベルとなる。ワンワイヤ通信装置13の出力部Outの論理状態がハイレベルであれば、NPNトランジスタ15は導通状態を続け、通信線11と出力部Outとの間のダイオード17は逆方向にバイアスされて遮断状態を続ける。ワンワイヤ通信装置12の出力部Outからハイレベルの論理状態が出力されれば、NPNトランジスタ15のコレクタ・エミッタ間が導通状態を続けていても、通信線11の論理状態がハイレベルとなって、プルアップ抵抗19およびNPNトランジスタ15のコレクタ・エミッタ間を流れる電流は少なくなり、ワンワイヤ通信装置13の入力部Inの論理状態はハイレベルとなる。   When one communication means, for example, the one-wire communication device 12 becomes a transmission side and the low level which is the other logic state is output to the output unit Out, the base of the NPN transistor 14 is connected to the high-level communication line 11. It is biased with a voltage in the reverse direction with respect to the emitter, and the collector-emitter is cut off and becomes high impedance. The diode 16 is biased in the forward direction and becomes conductive, and a current flows from the communication line 11 to the output unit Out of the one-wire communication device 12 to change the logic state of the communication line 11 to a low level. The current flowing through the communication line 11 is supplied from the positive voltage side of the power supply via the collector-emitter of the NPN transistor 15 on the other one-sided communication device 13 side and the pull-up resistor 19. Due to the voltage drop due to this current, the logic state of the input unit In of the one-year communication device 13 becomes a low level. If the logic state of the output unit Out of the one-wire communication device 13 is high, the NPN transistor 15 continues to be in a conductive state, and the diode 17 between the communication line 11 and the output unit Out is biased in the reverse direction so as to be in a cut-off state. to continue. If a high-level logic state is output from the output unit Out of the one-wire communication device 12, even if the collector-emitter state of the NPN transistor 15 continues to be conductive, the logic state of the communication line 11 becomes high level. The current flowing between the collector and the emitter of the pull-up resistor 19 and the NPN transistor 15 decreases, and the logic state of the input unit In of the one-wire communication device 13 becomes a high level.

このようにして、ワンワイヤ通信装置13では、出力部Outからハイレベルを出力していれば、通信線11を介して接続されるワンワイヤ通信装置12から送信されるデジタル信号を入力部Inで受信することができる。同様にして、ワンワイヤ通信装置12でも、出力部Outからハイレベルを出力させるようにして、ワンワイヤ通信装置13から送信されるデジタル信号を入力部Inで受信することができる。   In this way, if the one-wire communication device 13 outputs a high level from the output unit Out, the input unit In receives a digital signal transmitted from the one-wire communication device 12 connected via the communication line 11. be able to. Similarly, the one-wire communication device 12 can also receive a digital signal transmitted from the one-wire communication device 13 at the input unit In by outputting a high level from the output unit Out.

なお、ワンワイヤ通信装置12,13の一方の出力部Outがローレベルになり、他方の出力部がハイレベルのときに、ハイレベル側のプルアップ抵抗およびNPNトランジスタ、通信線、ローレベル側のダイオードからローレベル側の出力部Outに至る経路に電流が流れるけれども、ローレベル側のNPNトランジスタは遮断状態となるのでプルアップ抵抗を介しての電流は流れない。したがって、図8で説明しているような両方のプルアップ抵抗を電流が流れることはなく、消費電力の低減を図ることができる。通信線11を介して流れる電流は図8と同等に流れるので、耐ノイズ性などでは同等の通信品質を保つことができる。   When one output unit Out of the one-wire communication devices 12 and 13 is at a low level and the other output unit is at a high level, a high-level side pull-up resistor, an NPN transistor, a communication line, and a low-level side diode Although a current flows in a path from the low level side output unit Out to the low level side output unit Out, the current through the pull-up resistor does not flow because the low level side NPN transistor is cut off. Therefore, no current flows through both pull-up resistors as described in FIG. 8, and power consumption can be reduced. Since the current flowing through the communication line 11 flows in the same way as in FIG. 8, the same communication quality can be maintained in terms of noise resistance.

図2は、図11に示すような調停を行うために、本実施の形態のワンワイヤ通信装置12,13が各ノードとなる場合の送信手順を示す。送信開始後のステップt1では次に送信する信号のビットを用意し、ステップt2でその信号のビットを送信する。ステップt3では、受信信号の入力チェックを行う。ステップt4では、入力チェックの結果、L入力となっているか否かを判断する。L入力ではない、すなわちH入力と判断されるときはステップt1に戻る。本実施の形態のワンワイヤ通信装置12,13では、L出力時には必ずL入力と判断され、そのノードよりも優先するノードの存在を検知する。ステップt4でL入力と判断するときは、そのノード自身はH出力にもかかわらず、他にL出力のノードが存在していることになるので、ステップt5で受信を行い、受信が終了すれば、制御手順をいったん終了する。さらに送信が必要であれば、送信開始からの制御手順を実行する。   FIG. 2 shows a transmission procedure in the case where the one-wire communication devices 12 and 13 of the present embodiment are each node in order to perform arbitration as shown in FIG. In step t1 after the start of transmission, the bit of the signal to be transmitted next is prepared, and in step t2, the bit of the signal is transmitted. At step t3, input check of received signals is performed. In step t4, it is determined whether or not the input is L as a result of the input check. When it is determined that the input is not the L input, that is, the H input, the process returns to step t1. In the one-wire communication apparatuses 12 and 13 according to the present embodiment, the L input is always determined at L output, and the presence of a node having priority over that node is detected. If it is determined at step t4 that the input is L, the node itself has an H output, but another L output node exists. Therefore, if reception is performed at step t5 and reception ends. The control procedure is terminated once. If further transmission is necessary, a control procedure from the start of transmission is executed.

図2に示す制御手順を、図12に示す手順と比較すると、図2の制御手順では、図12のステップs3に示すように、ノードは信号を送り出した直後に、信号がL出力か否かを判断して分岐を行う必要がない。図12の制御手順には、このような条件分岐が含まれるので動作が複雑化する。条件分岐の結果を予測するのは困難なので、プログラムコードの読込み、解釈、実行などを並行して行うパイプライン処理で高速化を図ることが困難となる。プログラムコードを先行して読込んでも、条件分岐の結果が予測と異なると、改めて分岐先からのプログラムコードを読込む必要があるからである。分岐の条件が単純化するので、プログラム動作ではなく、対応する動作が可能な論理回路を形成することもできる。   When the control procedure shown in FIG. 2 is compared with the procedure shown in FIG. 12, in the control procedure of FIG. 2, as shown in step s3 of FIG. There is no need to branch by judging. Since the control procedure of FIG. 12 includes such a conditional branch, the operation is complicated. Since it is difficult to predict the result of conditional branching, it is difficult to increase the speed by pipeline processing in which program code is read, interpreted, and executed in parallel. This is because even if the program code is read in advance, if the result of the conditional branch differs from the prediction, it is necessary to read the program code from the branch destination again. Since the branch condition is simplified, it is possible to form a logic circuit capable of corresponding operation instead of program operation.

図3は、図1でNPNトランジスタ14を使用する理由を示す。入力部InがローレベルLoになる条件の一つは、出力部OutAがハイレベルHiかつ出力部OutBがローレベルLoとなることである。しかし、出力部Outとして、OutAとOutBとは接続されているので、この条件は成立しない。他の条件は、出力部OutAがハイレベルHiかつ出力部OutCがローレベルLoが成立することであり、このとき入力部InがローレベルLoになる。出力部OutCは、実際には図1に示す通信手段13の出力部Outである。したがって、通信手段12が受信側となるときは出力部Outをハイレベルとして、OutA=OutB=Hiとして、送信側となる通信手段13の出力部Outからのデジタル信号を、通信線11およびNPNトランジスタのエミッタ・コレクタ間を通る通信ラインを介し、入力部Inで受信することができる。相手の通信手段13の出力部Outがハイレベルのときに、通信線11を介して、通信手段12は送信側となって、出力部Outからデジタル信号を送信し、受信側の通信手段13の入力部Inに受信させることができる。両方の通信手段12,13の出力部Outがローレベルを出力するときは、いわゆる衝突が生じる。衝突が生じるときの対策は、図6や図7のワンワイヤ通信回路で既に考えられているものを利用することができる。   FIG. 3 shows the reason for using the NPN transistor 14 in FIG. One of the conditions for the input unit In to be at the low level Lo is that the output unit OutA is at the high level Hi and the output unit OutB is at the low level Lo. However, this condition is not satisfied because OutA and OutB are connected as the output unit Out. Another condition is that the output unit OutA is at the high level Hi and the output unit OutC is at the low level Lo. At this time, the input unit In is at the low level Lo. The output unit OutC is actually the output unit Out of the communication unit 13 shown in FIG. Therefore, when the communication means 12 is on the receiving side, the output unit Out is set to high level, OutA = OutB = Hi, and the digital signal from the output unit Out of the communication means 13 on the transmitting side is transmitted to the communication line 11 and the NPN transistor. Can be received by the input unit In via a communication line passing between the emitter and the collector. When the output unit Out of the partner communication unit 13 is at a high level, the communication unit 12 becomes a transmission side via the communication line 11 to transmit a digital signal from the output unit Out, and the communication unit 13 of the reception side It can be received by the input unit In. When the output part Out of both the communication means 12 and 13 outputs a low level, what is called a collision arises. As a countermeasure when a collision occurs, the one already considered in the one-wire communication circuit of FIGS. 6 and 7 can be used.

図4は、本発明の実施の他の形態であるワンワイヤ通信システム30の概略的な電気的構成を示す。本実施形態で、図1の実施形態に対応する部分には同一の参照符を付し、重複する説明は省略する。本実施形態では、通信線11に比較的抵抗値が大きいプルダウン抵抗31を接続し、両方の通信手段12,13の出力がローレベルのときに、通信線11が確実にローレベルになるようにしている。プルダウン抵抗31の抵抗値は、両方の通信手段12,13の出力部Outがハイレベルのとき、両方のNPNトランジスタ14,15が導通状態となって、プルアップ抵抗18,19に電流が流れても、プルダウン抵抗31で制限されて、プルアップ抵抗18,19での電圧降下は小さく、入力部Inはハイレベルの範囲に留まる程度とする。   FIG. 4 shows a schematic electrical configuration of a one-wire communication system 30 according to another embodiment of the present invention. In the present embodiment, parts corresponding to those in the embodiment of FIG. In this embodiment, a pull-down resistor 31 having a relatively large resistance value is connected to the communication line 11 so that the communication line 11 is surely at a low level when the outputs of both the communication means 12 and 13 are at a low level. ing. The resistance value of the pull-down resistor 31 is such that when the output part Out of both the communication means 12 and 13 is at a high level, both NPN transistors 14 and 15 are in a conductive state, and current flows through the pull-up resistors 18 and 19. However, it is limited by the pull-down resistor 31 so that the voltage drop at the pull-up resistors 18 and 19 is small, and the input portion In remains in the high level range.

図5は、図1または図4の実施形態のワンワイヤ通信システム10,30に使用するワンワイヤ通信装置12,13の内部構成と、実施のさらに他の形態としての動作とを示す。図5(a)に示すように、ワンワイヤ通信装置12,13内には通信制御用のマイコン40などが含まれる。マイコン40は割り込み処理を起動するための起動入力Intを有する。ワンワイヤ通信装置12,13の入力部Inは、マイコン40の割り込み処理起動入力Intに接続する。この接続の途中にバッファなどを介在させることもできる。マイコン40には、出力ポートOutも備えられ、ワンワイヤ通信装置12,13の出力部Outに接続される。この接続の途中にも、バッファなどを介在させることができる。図1や図4に示す実施の形態では、ワンワイヤ通信装置12,13の入力部Inへのローレベルの入力は、マイコン40での割り込み処理を起動する。前述のように、ワンワイヤ通信装置12,13は自身の出力部Outがローレベルの出力を導出しているときには、入力部Inをローレベルにはしないので、自分自身の出力部Outがローレベルになっても、割り込み処理を起動して誤動作をしないようにすることができる。したがって、図13(a)のようにステップa4でのLo出力が必ず割り込みを発生することはなく、図13(b)のステップb1での判断は不要で、割り込みが発生されれば受信処理のみを行うようにすればよい。   FIG. 5 shows the internal configuration of the one-wire communication devices 12 and 13 used in the one-wire communication system 10 and 30 of the embodiment of FIG. 1 or FIG. 4 and the operation as still another embodiment. As shown in FIG. 5A, the one-wire communication devices 12 and 13 include a microcomputer 40 for communication control. The microcomputer 40 has a start input Int for starting interrupt processing. The input unit In of the one-wire communication devices 12 and 13 is connected to the interrupt process activation input Int of the microcomputer 40. A buffer or the like can be interposed in the middle of this connection. The microcomputer 40 is also provided with an output port Out, and is connected to the output unit Out of the one-wire communication devices 12 and 13. A buffer or the like can be interposed in the middle of this connection. In the embodiment shown in FIGS. 1 and 4, a low level input to the input unit In of the one-wire communication devices 12 and 13 starts an interrupt process in the microcomputer 40. As described above, the one-wire communication devices 12 and 13 do not set the input unit In to the low level when the output unit Out of the one-wire communication devices 12 and 13 derives the output of the low level. Even then, interrupt processing can be activated to prevent malfunction. Therefore, the Lo output at step a4 does not necessarily generate an interrupt as shown in FIG. 13A, and the determination at step b1 of FIG. 13B is not necessary. If an interrupt is generated, only reception processing is performed. Should be done.

図5(b)は、図5(a)のマイコン40による出力部Outの制御で、さらに省電力のパワーセーブを実現する実施形態を示す。ワンワイヤ通信装置12,13が受信側となって出力部Outからハイレベルを出力していると、通信線11の信号が相手側のワンワイヤ通信装置12,13からの出力で時刻t10からローレベルに変化する場合を想定する。受信側のワンワイヤ通信装置12,13での受信処理は時刻t11までに可能であれば、時刻t11以降は出力部Outをローレベルに変化させ、時刻t11から時刻t12までの期間は受信側のプルアップ抵抗に電流を流さないようにして、パワーセーブを実現することができる。時刻t11以降も受信側の出力部Outをハイレベルにしておくと、受信側のNPNトランジスタは導通状態を続け、受信側のプルアップ抵抗およびNPNトランジスタから通信線を介して送信側の出力部Outに電流が流れ続ける。時刻t11に受信側の出力部Outをローレベルに変化させれば、受信側のNPNトランジスタを遮断状態にして、この電流を遮断することができる。時刻t12までは、送信側は出力部Outがローレベルであるので、送信側のNPNトランジスタは遮断状態であり、したがって時刻t11以降時刻t20まで、パワーセーブ状態を続けることができる。時刻t12で送信側の出力部Outがハイレベルとなるので、受信側の出力部Outもハイレベルに戻せば、次に送信側が出力をローレベルにする時刻t20まで、電流がほとんど流れない状態を継続することができる。時刻t21以降も時刻t11以降と同様にすればよい。   FIG. 5B shows an embodiment in which further power-saving power saving is realized by controlling the output unit Out by the microcomputer 40 of FIG. When the one-wire communication devices 12 and 13 are on the receiving side and output a high level from the output unit Out, the signal on the communication line 11 is output from the counterpart one-wire communication devices 12 and 13 to a low level from time t10. Assume a changing case. If reception processing by the one-wire communication devices 12 and 13 on the receiving side is possible by time t11, the output unit Out is changed to a low level after time t11, and the pulling by the receiving side is performed during the period from time t11 to time t12. Power saving can be realized by preventing current from flowing through the up resistor. If the output unit Out on the reception side is kept at the high level after time t11, the NPN transistor on the reception side continues to be conductive, and the output unit Out on the transmission side is connected via the communication line from the pull-up resistor and the NPN transistor on the reception side. Current continues to flow. If the output unit Out on the reception side is changed to a low level at time t11, the NPN transistor on the reception side can be turned off to cut off this current. Until time t12, since the output unit Out is at a low level on the transmission side, the NPN transistor on the transmission side is in a cut-off state, and thus the power saving state can be continued from time t11 to time t20. Since the output unit Out on the transmission side becomes high level at time t12, if the output unit Out on the reception side also returns to high level, the current hardly flows until time t20 when the transmission side sets the output to low level next time. Can continue. The time after time t21 may be the same as after time t11.

図6は、図1または図4のワンワイヤ通信システム10,30で、図10に示すようなデータフレームを送信する場合のマイコン24,25;40による概略的な制御手順を示す。ステップu1では通信線11が空いているか否かを判断する。通信線11が空いていることは、ハイレベルの状態が予め定める時間以上続いていることで判断する。ステップu1で通信線11が空いていると判断すると、ステップu2でSOFを1ビット送信する。ステップu3では、アービトレーションフィールドが残っているか否かを判断する。アービトレーションフィールドが残っていれば、ステップu4で残っている先頭の1ビットの信号を送信する。ステップu5では、ローレベルが入力部Inに入力されているか否かを判断する。ローレベルが入力されていなければ、ステップu3に戻る。ステップu5でローレベルが入力されていると判断すると、ステップu6で受信に移行する。ステップu3でアービトレーションフィールドが残っていないと判断するときは、ステップu7で残りのコントロールフィールド以降を送信する。   FIG. 6 shows a schematic control procedure by the microcomputers 24, 25; 40 when transmitting the data frame as shown in FIG. 10 in the one-wire communication system 10, 30 of FIG. In step u1, it is determined whether or not the communication line 11 is free. Whether or not the communication line 11 is free is determined by a high level state continuing for a predetermined time or more. If it is determined in step u1 that the communication line 11 is free, 1 bit of SOF is transmitted in step u2. In step u3, it is determined whether or not an arbitration field remains. If the arbitration field remains, the remaining head 1-bit signal is transmitted in step u4. In step u5, it is determined whether or not a low level is input to the input unit In. If the low level is not input, the process returns to step u3. If it is determined in step u5 that a low level has been input, the process proceeds to reception in step u6. When it is determined in step u3 that no arbitration field remains, in step u7, the remaining control fields and thereafter are transmitted.

図7は、本発明の実施のさらに他の形態としてのワンワイヤ通信システム50の概略的な電気的構成を示す。本実施形態で、図1または図4の実施形態に対応する部分には同一の参照符を付し、重複する説明は省略する。単一の通信線11を介して接続されるワンワイヤ通信装置51,52は、NPNトランジスタ14,15と、ダイオード16,17と、操作スイッチ53,54と、第1の表示負荷55,56と、第2の表示負荷57,58と、バイアス抵抗59,60とをそれぞれ含む。第1の表示負荷55,56や第2の表示負荷57,58は、音で表示を行うベルやブザー、または光で表示を行うランプや発光ダイオード(LED)で実現される。   FIG. 7 shows a schematic electrical configuration of a one-wire communication system 50 as still another embodiment of the present invention. In the present embodiment, parts corresponding to those in the embodiment of FIG. 1 or FIG. One-wire communication devices 51 and 52 connected via a single communication line 11 include NPN transistors 14 and 15, diodes 16 and 17, operation switches 53 and 54, first display loads 55 and 56, Second display loads 57 and 58 and bias resistors 59 and 60 are included, respectively. The first display loads 55 and 56 and the second display loads 57 and 58 are realized by a bell or buzzer that displays sound, or a lamp or light emitting diode (LED) that displays light.

NPNトランジスタ14,15のコレクタと電源の正電圧側との間に第1の表示負荷55,56がそれぞれ接続され、ベースと正電圧側との間にはバイアス抵抗59,60がそれぞれ接続される。NPNトランジスタ14,15のエミッタ間が通信線11で接続され、エミッタと接地との間に、ダイオード16,17、第2の表示負荷57,58および操作スイッチ53,54がそれぞれ接続される。ダイオード16,17および第2の表示負荷57,58の直列回路は、操作スイッチ53,54の一端にそれぞれ接続され、この接続部は、NPNトランジスタ14,15のベースにも接続される。操作スイッチ53,54の他端は接地される。   First display loads 55 and 56 are respectively connected between the collectors of the NPN transistors 14 and 15 and the positive voltage side of the power supply, and bias resistors 59 and 60 are respectively connected between the base and the positive voltage side. . The emitters of the NPN transistors 14 and 15 are connected by the communication line 11, and the diodes 16 and 17, the second display loads 57 and 58, and the operation switches 53 and 54 are connected between the emitter and the ground, respectively. The series circuits of the diodes 16 and 17 and the second display loads 57 and 58 are connected to one ends of the operation switches 53 and 54, respectively, and this connection is also connected to the bases of the NPN transistors 14 and 15. The other ends of the operation switches 53 and 54 are grounded.

両方の操作スイッチ53,54をOFFにしていると、NPNトランジスタ14,15のベースには電源の正電圧側からバイアス抵抗59,60を介して順方向のバイアス電圧が印加されて導通状態となる。しかし、エミッタ側と接地との間は遮断されているので、第1の表示負荷55,56および第2の表示負荷57,58には電流は流れず、表示は行われない。一方、たとえばワンワイヤ通信装置51側の操作スイッチ53をOFFからONに操作すると、ワンワイヤ通信装置51側のNPNトランジスタのベースは接地されて遮断状態となるけれども、通信線11を介してダイオード16および第2の表示負荷57が通信線11を介して接続されているワンワイヤ通信装置52側ではNPNトランジスタ15が導通状態を続けているので、電源の正電圧側から第1の表示負荷56およびNPNトランジスタ15のコレクタ・エミッタ間を介して電流が流れ、操作スイッチ53から接地に至る。この電流によって、ワンワイヤ通信装置52側の第1の表示負荷56とワンワイヤ通信装置51側の第2の表示負荷57での表示が行われる。第2の表示負荷57での表示で、通信線11を介する相手側のワンワイヤ通信装置52の第1の表示負荷56で表示が行われることを確認することができる。   When both the operation switches 53 and 54 are turned off, a forward bias voltage is applied to the bases of the NPN transistors 14 and 15 from the positive voltage side of the power supply via the bias resistors 59 and 60, thereby turning on. . However, since the emitter side and the ground are cut off, no current flows through the first display loads 55 and 56 and the second display loads 57 and 58, and display is not performed. On the other hand, for example, when the operation switch 53 on the one-wire communication device 51 side is operated from OFF to ON, the base of the NPN transistor on the one-wire communication device 51 side is grounded and cut off. Since the NPN transistor 15 continues to be conductive on the one-wire communication device 52 side to which the two display loads 57 are connected via the communication line 11, the first display load 56 and the NPN transistor 15 are connected from the positive voltage side of the power supply. A current flows between the collector and the emitter, and the operation switch 53 reaches the ground. By this current, display is performed on the first display load 56 on the one-wire communication device 52 side and the second display load 57 on the one-wire communication device 51 side. The display on the second display load 57 can confirm that the display is performed on the first display load 56 of the counterpart one-wire communication device 52 via the communication line 11.

相手側のワンワイヤ通信装置52で操作スイッチ54を操作してOFFからONに操作すると、NPNトランジスタ15のベースが接地されて、NPNトランジスタ15は遮断状態となり、第1の表示負荷56、NPNトランジスタ15のコレクタ・エミッタ間、通信線11、ダイオード16、第2の表示負荷57および操作スイッチ53間を流れる電流経路も遮断され、第1の表示負荷56の表示が停止するとともに、第2の表示負荷57での表示も停止して、相手側のワンワイヤ通信装置52での表示が停止されていることを確認することができる。   When the other one-wire communication device 52 is operated from OFF to ON by operating the operation switch 54, the base of the NPN transistor 15 is grounded, the NPN transistor 15 is cut off, the first display load 56, the NPN transistor 15 The current path flowing between the collector-emitter, the communication line 11, the diode 16, the second display load 57, and the operation switch 53 is also cut off, and the display of the first display load 56 is stopped and the second display load is stopped. The display at 57 is also stopped, and it can be confirmed that the display at the one-wire communication device 52 on the other party is stopped.

両方の操作スイッチ53,54がともにONとなっているときは、第1の表示負荷55,56および第2の表示負荷57,58はすべて表示を停止している。この状態で、ワンワイヤ通信装置51側の操作スイッチ53をOFFに操作すると、NPNトランジスタ14のベースは順方向にバイアスされて導通状態となり、電源の正電圧側から第1の表示負荷55、NPNトランジスタ14のコレクタ・エミッタ間、通信線11、ダイオード17、第2の表示負荷58およびON状態の操作スイッチ54を介して接地に電流が流れ、第1の表示負荷55および第2の表示負荷58で表示が行われる。さらに操作スイッチ54をONからOFFに操作すると、第1の表示負荷55,56および第2の表示負荷57,58の全部で表示を停止する。   When both the operation switches 53 and 54 are ON, the first display loads 55 and 56 and the second display loads 57 and 58 are all stopped. In this state, when the operation switch 53 on the one-wire communication device 51 side is turned OFF, the base of the NPN transistor 14 is biased forward and becomes conductive, and the first display load 55 and the NPN transistor are connected from the positive voltage side of the power supply. Current flows to the ground via the collector-emitter 14, the communication line 11, the diode 17, the second display load 58, and the ON operation switch 54, and the first display load 55 and the second display load 58 Display is performed. Further, when the operation switch 54 is operated from ON to OFF, the display is stopped at all of the first display loads 55 and 56 and the second display loads 57 and 58.

本実施形態のワンワイヤ通信システム50は、第1の表示負荷55,56としてベルやブザーを使用する呼びリン型で合図を送るような通信を行うことができる。また、第1の表示負荷55,56として、照明などを行うようにすれば、離れた位置で、照明をON/OFFすることができる。操作スイッチ53,54の操作状態のみでは第1の表示負荷55,56の表示状態を直接確認することができなくても、第2の表示負荷57,58で確認することができる。   The one-wire communication system 50 according to the present embodiment can perform communication such as sending a signal in a ring type using a bell or a buzzer as the first display loads 55 and 56. If illumination is performed as the first display loads 55 and 56, the illumination can be turned on / off at a remote position. Even if the display state of the first display loads 55 and 56 cannot be confirmed directly only by the operation state of the operation switches 53 and 54, it can be confirmed by the second display loads 57 and 58.

本実施形態のワンワイヤ通信システム50でも、操作スイッチ53,54がOFFのときに、第1の表示負荷55,56で表示が行われると、送信権を相手に譲ることによって、調停を行うことができる。   Even in the one-wire communication system 50 of the present embodiment, when the operation switches 53 and 54 are OFF, when the display is performed with the first display loads 55 and 56, arbitration can be performed by transferring the transmission right to the other party. it can.

以上の各実施の形態の説明では、単一の通信線11の両側にワンワイヤ通信装置12,13;51、52が設けられているけれども、単一の通信線11に3以上のワンワイヤ通信装置を接続することもできる。3以上のワンワイヤ通信装置を接続する場合でも、自分自身の出力で誤動作をすることの防止と、自分自身に流れる電流の低減による省電力の効果とを同様に得ることができるとともに、CANのような通信規格を用いた通信と同様な論理判断での調停も容易に行うことができる。   In the above description of the embodiments, the one-wire communication devices 12, 13; 51, 52 are provided on both sides of the single communication line 11, but three or more one-wire communication devices are provided on the single communication line 11. It can also be connected. Even when three or more one-wire communication devices are connected, it is possible to obtain the same effect of preventing malfunctions due to its own output and power saving by reducing the current flowing through itself. It is also possible to easily perform arbitration with the same logic judgment as communication using a simple communication standard.

また、スイッチング素子としてNPN型のバイポーラトランジスタを使用しているけれども、nチャネルMOSFETなど、他のスイッチング素子を使用することもできる。さらに、正電圧側をハイレベルとしているけれども、電圧の極性は、たとえば負電圧側をハイレベルにするように、必要に応じて変更することができる。極性を変更する場合は、スイッチング素子の導電形式を極性に併せて、たとえばPNP型バイポーラトランジスタやpチャネルMOSFETなどに変更すればよい。   In addition, although an NPN type bipolar transistor is used as the switching element, other switching elements such as an n-channel MOSFET can be used. Further, although the positive voltage side is set to the high level, the polarity of the voltage can be changed as necessary so that the negative voltage side is set to the high level, for example. When the polarity is changed, the conduction type of the switching element may be changed to, for example, a PNP bipolar transistor or a p-channel MOSFET in accordance with the polarity.

本発明の実施の一形態であるワンワイヤ通信システム10の概略的な電気的構成を示すブロック図である。1 is a block diagram showing a schematic electrical configuration of a one-wire communication system 10 according to an embodiment of the present invention. 図1のワンワイヤ通信装置12,13で送信を行う制御手順を示すフローチャートである。It is a flowchart which shows the control procedure which transmits by the one-wire communication apparatuses 12 and 13 of FIG. 図1のワンワイヤ通信装置12でNPNトランジスタ14を使用する理由を示す電気回路図である。It is an electric circuit diagram which shows the reason for using the NPN transistor 14 with the one-wire communication apparatus 12 of FIG. 本発明の実施の他の形態であるワンワイヤ通信システム30の概略的な電気的構成を示すブロック図である。It is a block diagram which shows schematic electrical structure of the one-wire communication system 30 which is the other form of implementation of this invention. 図1および図4に示すワンワイヤ通信装置12,13の内部構成を示すブロック図、および本発明の実施のさらに他の形態としての動作を示す波形図である。It is a block diagram which shows the internal structure of the one wire communication apparatuses 12 and 13 shown in FIG. 1 and FIG. 4, and the wave form diagram which shows the operation | movement as another form of implementation of this invention. 図1および図4の実施の形態で、図10のデータフレームを送信するための概略的な制御手順を示すフローチャートである。11 is a flowchart showing a schematic control procedure for transmitting the data frame of FIG. 10 in the embodiment of FIGS. 1 and 4. 本発明の実施のさらに他の形態としてのワンワイヤ通信回路50の概略的な電気的構成を示す電気回路図である。It is an electric circuit diagram which shows the schematic electrical constitution of the one wire communication circuit 50 as further another form of implementation of this invention. 従来からのワンワイヤ通信回路の概略的な電気的構成を示すブロック図である。It is a block diagram which shows the schematic electrical constitution of the conventional one-wire communication circuit. 従来からの他のワンワイヤ通信回路の概略的な電気的構成を示すブロック図である。It is a block diagram showing a schematic electrical configuration of another conventional one-wire communication circuit. デジタル通信でのCANのデータフレームの構成を示す図である。It is a figure which shows the structure of the data frame of CAN in digital communication. CANで競合時に行う調停の例を示すタイムチャートである。It is a time chart which shows the example of the mediation performed at the time of a competition in CAN. CANでデータを送信する概略的な制御手順を示すフローチャートである。It is a flowchart which shows the rough control procedure which transmits data by CAN. 図8のワンワイヤ通信回路での送信処理および割り込み処理の概略的な手順をそれぞれ示すフローチャートである。9 is a flowchart showing schematic procedures of transmission processing and interrupt processing in the one-wire communication circuit of FIG. 8. 図8のワンワイヤ通信回路での他の送信処理の概略的な手順を示すフローチャートである。It is a flowchart which shows the schematic procedure of the other transmission process in the one wire communication circuit of FIG.

符号の説明Explanation of symbols

10,30,50 ワンワイヤ通信システム
11 通信線
12,13,51,52 ワンワイヤ通信装置
14,15 NPNトランジスタ
16,17 ダイオード
18,19 プルアップ抵抗
22,23 切換手段
24,25,40 マイコン
26,27 受信手段
28,29 送信手段
31 プルダウン抵抗
53,54 操作スイッチ
55,56 第1の表示負荷
57,58 第2の表示負荷
10, 30, 50 One-wire communication system 11 Communication line 12, 13, 51, 52 One-wire communication device 14, 15 NPN transistor 16, 17 Diode 18, 19 Pull-up resistor 22, 23 Switching means 24, 25, 40 Microcomputer 26, 27 Receiving means 28, 29 Transmitting means 31 Pull-down resistor 53, 54 Operation switch 55, 56 First display load 57, 58 Second display load

Claims (7)

空き状態で論理レベルが予め定める一方側となる単一の通信線に複数が接続可能で、通信線が空いていれば該論理レベルの一方側と他方側との間で変化する信号で情報を送信可能となる通信装置において、
通信線からの信号を受信するための受信手段と、
通信線へ信号を送信する送信手段と、
受信手段および送信手段と通信線との間に設けられ、送信手段から送信する信号の論理レベルが該一方側の時に通信線からの信号が受信手段に入力され、該論理レベルが他方側の時には受信手段に該論理レベルの一方側が入力されるように切換える切換手段と、
通信線に信号を送信していないときには送信手段から該論理レベルの一方側を出力させ、信号を送信するときに、受信手段に該論理レベルの他方側が入力されると、信号の送信を停止するように制御する制御手段とを、含むことを特徴とする通信装置。
A plurality of communication lines can be connected to a single communication line on one side whose logic level is predetermined in a free state, and if the communication line is free, information is transmitted with a signal that changes between one side and the other side of the logic level. In a communication device that can transmit,
Receiving means for receiving a signal from the communication line;
A transmission means for transmitting a signal to the communication line;
Provided between the receiving means and the transmitting means and the communication line, when the logic level of the signal transmitted from the transmitting means is on the one side, the signal from the communication line is input to the receiving means, and when the logic level is on the other side Switching means for switching so that one side of the logic level is input to the receiving means;
When the signal is not transmitted to the communication line, one side of the logical level is output from the transmitting unit, and when the other side of the logical level is input to the receiving unit when transmitting the signal, the transmission of the signal is stopped. And a control means for controlling the communication device.
前記制御手段は、送信開始時に、予め優先度を反映させて設定される識別情報を前記送信手段から送信させ、該識別情報の送信中に、前記受信手段に前記論理レベルの他方側が入力されると、送信を停止するように制御することを特徴とする請求項1記載の通信装置。   The control means causes the transmitting means to transmit identification information set in advance by reflecting priority at the start of transmission, and the other side of the logical level is input to the receiving means during transmission of the identification information. The communication apparatus according to claim 1, wherein control is performed to stop transmission. 前記切換手段は、
前記通信線と前記送信手段との間に接続され、該通信線が前記論理レベルの一方側で該送信手段が該論理レベルの他方側のときに順方向となる方向で接続されたダイオードと、
スイッチング部と制御部とを有し、該通信線と前記受信手段との間にスイッチング部が接続され、制御部が送信手段に接続されて、制御部に入力される論理レベルが一方側か他方側かに応じてスイッチング部が導通または遮断するスイッチング素子とを、
含むことを特徴とする請求項1または2記載の通信装置。
The switching means is
A diode connected between the communication line and the transmission means, and connected in a forward direction when the communication line is on one side of the logic level and the transmission means is on the other side of the logic level;
A switching unit and a control unit, wherein the switching unit is connected between the communication line and the receiving unit, the control unit is connected to the transmitting unit, and the logic level input to the control unit is one side or the other A switching element in which the switching unit is turned on or off depending on the side,
The communication device according to claim 1, further comprising:
前記スイッチング素子はバイポーラトランジスタであり、
該バイポーラトランジスタは、前記受信手段にはコレクタ、前記送信手段にはベースがそれぞれ接続され、前記通信線にはエミッタが接続されることを特徴とする請求項1〜3のいずれか1つに記載の通信装置。
The switching element is a bipolar transistor;
4. The bipolar transistor according to claim 1, wherein a collector is connected to the receiving means, a base is connected to the transmitting means, and an emitter is connected to the communication line. Communication equipment.
前記スイッチング素子のスイッチング部が接続される前記受信手段と電源のハイレベル側との間にはプルアップ抵抗が接続され、
前記通信線と電源のローレベル側との間にはプルダウン抵抗が接続されることを特徴とする請求項1〜4のいずれか1つに記載の通信装置。
A pull-up resistor is connected between the receiving means to which the switching unit of the switching element is connected and the high level side of the power supply,
The communication apparatus according to claim 1, wherein a pull-down resistor is connected between the communication line and a low level side of the power source.
請求項1〜5のいずれか1つに記載の通信装置が前記通信線を介して接続される複数の通信手段のうちの少なくとも一つの通信手段となり、
該通信手段の制御手段は、送信開始時に優先権を反映させた識別情報を送信して、識別情報のうちの論理レベルの一方側を送信中に、通信線から論理レベルの他方側を受信すれば送信を停止して、競合発生時の調停を行うことを特徴とする調停機能付き通信システム。
The communication device according to any one of claims 1 to 5 serves as at least one communication unit among a plurality of communication units connected via the communication line,
The control means of the communication means transmits the identification information reflecting the priority at the start of transmission, and receives the other side of the logical level from the communication line while transmitting one side of the logical level of the identification information. A communication system with an arbitration function, wherein transmission is stopped and arbitration is performed when contention occurs.
空き状態で論理レベルが予め定める一方側となる単一の通信線に複数の通信手段を接続し、いずれの通信手段でも通信線が空いていれば該論理レベルの一方側と他方側との間で変化する信号で情報を送信可能となる通信で、送信が競合するときに調停を行う通信の調停方法において、
少なくとも一つの通信手段に、
通信線からの信号を受信するための受信手段と、
通信線へ信号を送信する送信手段と、
受信手段および送信手段と通信線との間に設けられ、送信手段から送信する信号の論理レベルが該一方側の時に通信線からの信号が受信手段に入力され、該論理レベルが他方側の時には受信手段に該論理レベルの一方側が入力されるように切換える切換手段とを設けておき、
通信線に信号を送信していないときには送信手段から該論理レベルの一方側を出力させ、信号を送信するときに、受信手段に該論理レベルの他方側が入力されると、信号の送信を停止することを特徴とする通信の調停方法。
When a plurality of communication means are connected to a single communication line that is preliminarily set to one side in which the logic level is predetermined, and if any communication means has a free communication line, it is between one side and the other side of the logic level. In the communication arbitration method that performs arbitration when transmission competes in communication that enables transmission of information with a signal that changes in
At least one communication means,
Receiving means for receiving a signal from the communication line;
A transmission means for transmitting a signal to the communication line;
Provided between the receiving means and the transmitting means and the communication line, when the logic level of the signal transmitted from the transmitting means is on the one side, the signal from the communication line is input to the receiving means, and when the logic level is on the other side Switching means for switching so that one side of the logic level is input to the receiving means;
When the signal is not transmitted to the communication line, one side of the logical level is output from the transmitting unit, and when the other side of the logical level is input to the receiving unit when transmitting the signal, the transmission of the signal is stopped. A communication arbitration method characterized by the above.
JP2004327803A 2004-11-11 2004-11-11 Device and system for communication, and arbitrating method for communication Withdrawn JP2006140710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004327803A JP2006140710A (en) 2004-11-11 2004-11-11 Device and system for communication, and arbitrating method for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004327803A JP2006140710A (en) 2004-11-11 2004-11-11 Device and system for communication, and arbitrating method for communication

Publications (1)

Publication Number Publication Date
JP2006140710A true JP2006140710A (en) 2006-06-01

Family

ID=36621209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004327803A Withdrawn JP2006140710A (en) 2004-11-11 2004-11-11 Device and system for communication, and arbitrating method for communication

Country Status (1)

Country Link
JP (1) JP2006140710A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160037103A (en) * 2014-09-26 2016-04-05 리니어 테크놀러지 코포레이션 Controller area network bus transmitter with complementary source follower driver
CN115541971A (en) * 2022-11-23 2022-12-30 南京宏泰半导体科技有限公司 Communication TTL level detection system and method sent by semiconductor tester

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160037103A (en) * 2014-09-26 2016-04-05 리니어 테크놀러지 코포레이션 Controller area network bus transmitter with complementary source follower driver
KR101726514B1 (en) 2014-09-26 2017-04-12 리니어 테크놀러지 코포레이션 Controller area network bus transmitter with complementary source follower driver
CN115541971A (en) * 2022-11-23 2022-12-30 南京宏泰半导体科技有限公司 Communication TTL level detection system and method sent by semiconductor tester

Similar Documents

Publication Publication Date Title
JP3750693B2 (en) Connected device
KR101924769B1 (en) Circuit and electronic module for automatic addressing
CN103384184B (en) Transmitter circuit and method for controlling operation thereof
JP3943574B2 (en) Bus transceiver having binary data transmission mode and ternary control transmission mode
JP4568703B2 (en) Communications system
US20080031166A1 (en) Bidirectional transmission circuit and sending/receiving element
JP3639600B2 (en) Bidirectional signal transmission system
JP6460049B2 (en) Ringing suppression circuit
JP3133732B2 (en) Multi-slave bus line system and serial transfer method
US20160224488A1 (en) Bidirectional communication method between a master terminal and a slave terminal on a single transmission line
US10031870B2 (en) Semiconductor device and control method thereof
JP2008072168A (en) Monitor circuit for one-wire communication
JP2006140710A (en) Device and system for communication, and arbitrating method for communication
JPH1145130A (en) Data communication system
US7672321B2 (en) Data communication in networks comprising a plurality of network nodes and at least one star node
JP2001282569A (en) Interface device and its self-diagnosis method
US11936493B2 (en) Onboard apparatus, onboard communication system, and communication control method
US7984213B2 (en) Control device for a USB interface and control method thereof
KR20020064666A (en) Driver circuit and data communication device
CN114999409A (en) Mini LED backlight control circuit, display device and method
US7899071B2 (en) Serial bus structure
JP2017046053A (en) Master node
JP2005159531A (en) Single wire communication circuit
US10649871B2 (en) Device with low-ohmic circuit path
CN210270888U (en) Single-bus communication circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20070206

Free format text: JAPANESE INTERMEDIATE CODE: A621

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090108