JP5617795B2 - Communication system and master node and slave node used in the communication system - Google Patents

Communication system and master node and slave node used in the communication system Download PDF

Info

Publication number
JP5617795B2
JP5617795B2 JP2011174223A JP2011174223A JP5617795B2 JP 5617795 B2 JP5617795 B2 JP 5617795B2 JP 2011174223 A JP2011174223 A JP 2011174223A JP 2011174223 A JP2011174223 A JP 2011174223A JP 5617795 B2 JP5617795 B2 JP 5617795B2
Authority
JP
Japan
Prior art keywords
clock pulse
signal
wake
slave
node
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.)
Active
Application number
JP2011174223A
Other languages
Japanese (ja)
Other versions
JP2013038653A (en
Inventor
中川 哲夫
哲夫 中川
尚司 金子
尚司 金子
英樹 加島
英樹 加島
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 Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2011174223A priority Critical patent/JP5617795B2/en
Publication of JP2013038653A publication Critical patent/JP2013038653A/en
Application granted granted Critical
Publication of JP5617795B2 publication Critical patent/JP5617795B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Description

本発明は、クロック成分を含む同期信号(以下「クロックパルス」という)をバス通信路へ出力するマスタノードと、クロックパルスをバス通信路を介して受信することで、マスタノードに同期して動作するスレーブノードとを備える通信システムに関する。   The present invention operates in synchronization with the master node by receiving a master node that outputs a synchronization signal including a clock component (hereinafter referred to as a “clock pulse”) to the bus communication path and the clock pulse via the bus communication path. And a slave node.

従来、車両に搭載される通信システムとして、CANやLIN等、バス通信路を利用するものが知られている。
この種の通信システムにおいて効率の良い通信を行うには、バス通信路を介して信号を送受信するために各通信装置(以下「ノード」という)に設けられるトランシーバの動作を、互いに同期させることが望ましい。
2. Description of the Related Art Conventionally, communication systems that use bus communication paths such as CAN and LIN are known as communication systems mounted on vehicles.
In order to perform efficient communication in this type of communication system, it is necessary to synchronize the operations of transceivers provided in each communication device (hereinafter referred to as “node”) for transmitting and receiving signals via a bus communication path. desirable.

このような同期を実現する手法の一つとして、いずれか一つのノード(マスタノード)が、クロックパルスをバス通信路に送信する手法が知られている。このとき、他のノード(スレーブノード)は、バス通信路上のクロックパルスからクロック成分を抽出して、自トランシーバで発生させた自走クロックを加工(分周等)することによって、その抽出したクロック成分に同期したバスクロックを生成し、そのバスクロックに従ってトランシーバを動作させる。   As one of methods for realizing such synchronization, a method in which any one node (master node) transmits a clock pulse to a bus communication path is known. At this time, the other node (slave node) extracts the clock component from the clock pulse on the bus communication path and processes (divides, etc.) the free-running clock generated by the own transceiver, thereby extracting the extracted clock. A bus clock synchronized with the component is generated, and the transceiver is operated according to the bus clock.

このような通信システムには、各ノードが、予め割り当てられた全ての機能を実行可能な動作モードであるウェイクアップモードと、消費電力を抑えるために一部の機能を停止した動作モードであるスリープモードとで動作するものがある。各ノードがスリープモードにある場合、例えば所定のスイッチが押下されるなどのウェイクアップ要因が生じると、バス通信路上の信号に基づいてウェイクアップモードへ移行する。   In such a communication system, each node has a wake-up mode that is an operation mode that can execute all functions assigned in advance, and a sleep that is an operation mode in which some functions are stopped to reduce power consumption. Some work with modes. When each node is in the sleep mode, for example, when a wake-up factor such as a predetermined switch being pressed occurs, the mode shifts to the wake-up mode based on a signal on the bus communication path.

このようにバス通信路上の信号に基づきウェイクアップモードへの移行を行う際、バス通信路に重畳するノイズによりウェイクアップしてしまう、誤ウェイクアップが問題となる。   Thus, when shifting to the wake-up mode based on the signal on the bus communication path, erroneous wake-up that causes wake-up due to noise superimposed on the bus communication path becomes a problem.

このような問題を解決するための手法として、ウェイクアップ指示に相当する信号のサンプリングを複数回にわたって実施する技術が提案されている(例えば、特許文献1参照)。つまり、瞬間的な信号レベルだけでウェイクアップを行うとノイズの重畳が見分けられないため、信号レベルの継続を判断するのである。すなわち、時系列のサンプリング結果に基づく信号レベルがウェイクアップ側にあれば、ウェイクアップ信号と認識する。   As a technique for solving such a problem, a technique has been proposed in which sampling of a signal corresponding to a wake-up instruction is performed a plurality of times (see, for example, Patent Document 1). That is, if wakeup is performed only with an instantaneous signal level, noise superimposition cannot be recognized, so that the continuation of the signal level is determined. That is, if the signal level based on the time-series sampling result is on the wake-up side, it is recognized as a wake-up signal.

特開2007−22355号公報JP 2007-22355 A

しかしながら、上記特許文献1に記載された発明では、短絡などによってバス通信路上の信号がウェイクアップ側(例えばロウレベル)に固定されてしまった場合を判断することができない。そのため、依然として誤ウェイクアップの問題が残る。   However, in the invention described in Patent Document 1, it is not possible to determine when the signal on the bus communication path is fixed to the wake-up side (for example, low level) due to a short circuit or the like. Therefore, the problem of false wakeup still remains.

本発明は、上述した課題を解決するためになされたものであり、その目的は、マスタノードから送信されるクロックパルスに基づいて通信を行う通信システムにおいて、ノイズなどの影響によらず、ウェイクアップモードへの動作モードの切り替えを適切に行うことにある。   The present invention has been made to solve the above-described problem, and its purpose is to wake up in a communication system that performs communication based on clock pulses transmitted from a master node, regardless of the influence of noise or the like. It is to appropriately switch the operation mode to the mode.

上述した目的を達成するためになされた本発明の通信システムは、クロック成分を含むクロックパルスをバス通信路へ出力するマスタノードと、当該マスタノードからのクロックパルスをバス通信路を介して受信することでマスタノードに同期して動作するスレーブノードとを備えるものである。 The communication system of the present invention made to achieve the above-mentioned object receives a master node that outputs a clock pulse including a clock component to a bus communication path, and receives the clock pulse from the master node via the bus communication path. Thus, a slave node that operates in synchronization with the master node is provided.

このとき、各ノードは、予め割り当てられた機能を実行可能な動作モードであるウェイクアップモードと、一部の機能を停止した動作モードであるスリープモードとで動作するよう構成されている。   At this time, each node is configured to operate in a wake-up mode that is an operation mode capable of executing a pre-assigned function and a sleep mode that is an operation mode in which some functions are stopped.

ここで特に、マスタノードでは、要因有無判断手段が、ウェイクアップモードへの移行の要因となるウェイクアップ要因の有無を判断する。要因有無判断手段にてウェイクアップ要因が有ると判断されると、マスタ制御手段によって、バス通信路へのクロックパルスの出力が開始される。   Here, in particular, in the master node, the factor presence / absence determining means determines the presence / absence of a wakeup factor that causes the transition to the wakeup mode. When the factor presence / absence determining means determines that there is a wake-up factor, the master control means starts outputting clock pulses to the bus communication path.

一方、スレーブノードでは、クロックパルス出力判定手段が、マスタノードからのクロックパルスがバス通信路に出力されているか否かを判定する。クロックパルス出力判定手段にてクロックパルスが出力されていると判定されると、スレーブ制御手段によって、ウェイクアップモードへ動作モードが切り替えられて通信処理が行われる。   On the other hand, in the slave node, the clock pulse output determination means determines whether or not the clock pulse from the master node is output to the bus communication path. When the clock pulse output determining means determines that the clock pulse is being output, the slave control means switches the operation mode to the wake-up mode and performs communication processing.

従来はウェイクアップ側での信号レベルの継続を判断しているため、バス通信路上の信号がウェイクアップ側に固定されてしまった場合を判断することができない。これに対し、本発明では、スレーブノードのウェイクアップを、マスタノードからのクロックパルスで行うようにした。この場合、信号レベルの継続ではなく、周期的に立下がる又は立上がるクロックパルスを判断するため、ノイズなどの影響によらず、ウェイクアップモードへの動作モードの切り替えを適切に行うことができる。   Conventionally, since continuation of the signal level on the wakeup side is determined, it is impossible to determine the case where the signal on the bus communication path is fixed on the wakeup side. On the other hand, in the present invention, the slave node is woken up by a clock pulse from the master node. In this case, it is possible to appropriately switch the operation mode to the wake-up mode regardless of noise or the like because the clock pulse that periodically falls or rises is determined instead of the continuation of the signal level.

ところで、マスタノードは、自ノードで発生するウェイクアップ要求を判断することが考えられる。ただし、ウェイクアップ要求は、他ノード(スレーブノード)で発生することもある。   By the way, it is conceivable that the master node determines a wake-up request generated in its own node. However, the wake-up request may be generated at another node (slave node).

そこで、スレーブノードは、ウェイクアップ要因が自ノードで発生すると、ウェイクアップ信号を送信するウェイクアップ信号送信手段を有しており、要因有無判断手段は、ウェイクアップ信号送信手段にてウェイクアップ信号が送信されると、ウェイクアップ要因が有ると判断することが考えられる。この場合、スレーブノードからのウェイクアップ信号に起因してマスタノードがクロックパルスの出力を開始し、これにより、他のスレーブノードが起動する。このようにしても、ノイズなどの影響によらず、ウェイクアップモードへの動作モードの切り替えを適切に行うことができる。 Therefore, slave nodes, when the wakeup factor occurs in the own node, has a wake-up signal transmission means for transmitting a wake-up signal, causes presence determination means, the wake-up signal at the wake-up signal transmission unit When transmitted, it may be determined that there is a wake-up factor. In this case, the master node starts outputting the clock pulse due to the wake-up signal from the slave node, and thereby the other slave node is activated. Even in this case, the operation mode can be appropriately switched to the wake-up mode regardless of the influence of noise or the like.

なお、マスタノードからのクロックパルスの出力を判定する場合、クロックパルス出力判定手段は、クロックパルスに対し周波数の大きなカウント用クロックでのサンプリング情報に基づき、周期カウント値の中のハイレベルとロウレベルとの比率が所定範囲にある場合にクロックパルスが出力されていると判定することが考えられる。このようにすれば、例えばノイズなどによる瞬間的なエッジの立上がりや立下がりをクロックパルスとして判定してしまうことがなくなり、クロックパルスが出力されているか否かを適切に判定することができる。 In the case of determining the output of the clock pulses from the master node, the clock pulse output determining means, based on the sampling information in the large count clock frequency to the clock pulse, the high and low levels in the period count value It is conceivable to determine that a clock pulse is being output when the ratio of is within a predetermined range. In this way, for example, instantaneous rise and fall of an edge due to noise or the like is not determined as a clock pulse, and it is possible to appropriately determine whether or not a clock pulse is being output.

また、クロックパルス出力判定手段を、クロックパルスのエッジを検出するエッジ検出回路と、当該エッジ検出回路からの出力に基づきクロックパルスが出力されているか否かに応じて反転するクロック検出信号を出力するエッジ間隔判定回路とで構成してもよい。このようにしても、例えばノイズなどによる瞬間的なエッジの立上がりや立下がりをクロックパルスとして判定してしまうことがなくなり、クロックパルスが出力されているか否かを適切に判定することができる。また、この場合はハードウェアによる構成であるため、クロックパルスの判定から動作モードの切り替えまでを瞬時に行うことができる。 Further, the clock pulse output determining unit, an edge detecting circuit for detecting an edge of a clock pulse, a clock detection signal which inverts depending on whether the clock pulse based on the output from the edge detection circuit is outputted Output And an edge interval determination circuit. Even in this case, for example, it is not determined that the edge rises or falls due to noise or the like as the clock pulse, and it is possible to appropriately determine whether or not the clock pulse is output. In this case, since the configuration is based on hardware, it is possible to instantaneously perform from the determination of the clock pulse to the switching of the operation mode.

ところで、各スレーブノード間でウェイクアップに要する時間が異なることがあり、この場合、先にウェイクアップしたスレーブノードの送信したデータが別のスレーブノードに受信されない、いわゆる受信洩れが生じる虞がある。   By the way, the time required for wake-up may differ between the slave nodes, and in this case, there is a possibility of so-called reception leakage, in which data transmitted by the slave node that has been woken up first is not received by another slave node.

そこで、ウェイクアップモードへ動作モードを切り替えた後、さらに、マスタノードからの所定情報を受信してはじめて通信処理を開始する構成が好ましい。ここで所定情報とは、定期通信のための識別子(ID)を含むヘッダなどであることが考えられる。この場合、各スレーブノード間のウェイクアップに要する時間差を考慮してマスタノードから所定情報を送信すれば、スレーブノードにおける受信洩れを防止することができる。 Accordingly, after switching the operation mode to the U E cum-up mode, further configured to start receiving and first communication processing predetermined information from the master node is preferred. Here, the predetermined information may be a header including an identifier (ID) for regular communication. In this case, if predetermined information is transmitted from the master node in consideration of the time difference required for wakeup between the slave nodes, reception omission at the slave node can be prevented.

ここまではウェイクアップモードへ動作モードを切り替えることについて述べたが、スリープモードへの動作モードの切り替え構成を次に説明する。
すなわち、マスタ制御手段がクロックパルスの出力を停止してスリープモードへ動作モードを切り替え、スレーブ制御手段は、クロックパルス出力判定手段にてクロックパルスが出力されていないと判定されると、スリープモードへ動作モードを切り替える。このようにマスタノードからのクロックパルスの途絶によってスリープモードへ移行するようにすれば、比較的簡単にスリープモードへの移行を実現することができる。
Up to this point, the switching of the operation mode to the wake-up mode has been described. A configuration for switching the operation mode to the sleep mode will be described next.
That is, switches the operation mode to the sleep mode the master control means stops the output of the clock pulse, the slave control means, when the clock pulses in the clock pulse output determining means is determined not to be output, the sleep mode Switch the operation mode to. As described above, when the transition to the sleep mode is made by the interruption of the clock pulse from the master node, the transition to the sleep mode can be realized relatively easily.

このとき、マスタ制御手段は、スリープ信号を送信した後、所定時間の経過を待って、クロックパルスの出力を停止するようにするとよい。このとき、スレーブ制御手段は、スリープ信号を受信すると、所定時間内に、スリープモードへの動作モードの切り替えに先立ちスリープ前退避処理を実行する。このようにすれば、例えばパラメータなどの退避処理を行うことができ、次回のウェイクアップ時におけるスレーブノードの動作を安定させることができる。 At this time, the master control unit may after transmitting the sleep signal, after waiting for the predetermined time, when to stop the output of the clock pulse. At this time, when receiving the sleep signal, the slave control means executes a pre-sleep saving process prior to switching the operation mode to the sleep mode within a predetermined time. In this way, for example, a parameter saving process can be performed, and the operation of the slave node at the next wakeup can be stabilized.

一方、スリープモードへの動作モードの切り替え時に、スレーブノードにウェイクアップ要因が発生することが考えられる。そこで、マスタ制御手段は、所定時間が経過するまでにスレーブノードから規定のパルスを受信すると、クロックパルスの出力を継続して所定情報を送信し、スレーブ制御手段は、スリープ信号を受信した後、ウェイクアップ要因が自ノードで発生すると規定のパルスを出力し、マスタノードからの所定情報を受信すると、通信処理を開始してスリープ禁止を示すデータを出力する構成にするとよい。このようにすれば、スリープ信号受信後でも、スリープすることなく迅速に通信を復帰させることができる。 On the other hand, when the operation mode is switched to the sleep mode, a wakeup factor may occur in the slave node. Therefore, the master control unit receives a pulse from the slave node as defined in until a predetermined time elapses, transmits the predetermined information to continue the output of the clock pulse, the slave control means, after receiving the sleep signal When a wake-up factor occurs in the own node, a predetermined pulse is output, and when predetermined information is received from the master node, communication processing is started and data indicating sleep inhibition is output. In this way, communication can be quickly restored without sleeping even after receiving a sleep signal.

以上は、通信システムの発明として説明してきたが、上記通信システムに用いられるマスタノードの発明として、また、上記通信システムに用いられるスレーブノードの発明として実現することもできる。   Although the above has been described as the invention of the communication system, it can also be realized as the invention of the master node used in the communication system and the invention of the slave node used in the communication system.

通信システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of a communication system. (a)はバス通信路で使用する伝送路符号の構成を示す説明図であり、(b)はバス通信路を介して送受信されるフレームの構成を示す説明図であり、(c)はUARTが送受信するブロックデータの構成を示す説明図である。(A) is explanatory drawing which shows the structure of the transmission-line code | cord | chord used on a bus channel, (b) is explanatory drawing which shows the structure of the flame | frame transmitted / received via a bus channel, (c) is UART. It is explanatory drawing which shows the structure of the block data which transmits / receives. マスタノード,スレーブノードの構成を示すブロック図である。It is a block diagram which shows the structure of a master node and a slave node. タイミング生成部が生成する各種信号を示す説明図である。It is explanatory drawing which shows the various signals which a timing generation part produces | generates. マスタウェイクアップ処理を示すフローチャートである。It is a flowchart which shows a master wake-up process. スレーブウェイクアップ処理の前半部分を示すフローチャートである。It is a flowchart which shows the first half part of a slave wakeup process. スレーブウェイクアップ処理の後半部分を示すフローチャートである。It is a flowchart which shows the second half part of a slave wakeup process. ウェイクアップの具体例を示す説明図である。It is explanatory drawing which shows the specific example of wakeup. ウェイクアップの具体例を示す説明図である。It is explanatory drawing which shows the specific example of wakeup. ウェイクアップの具体例を示す説明図である。It is explanatory drawing which shows the specific example of wakeup. マスタスリープ処理を示すフローチャートである。It is a flowchart which shows a master sleep process. スレーブスリープ処理を示すフローチャートである。It is a flowchart which shows a slave sleep process. スリープの具体例を示す説明図である。It is explanatory drawing which shows the specific example of a sleep. スリープの具体例を示す説明図である。It is explanatory drawing which shows the specific example of a sleep. クロック検出回路の構成を示すブロック図である。It is a block diagram which shows the structure of a clock detection circuit. (a)はエッジ検出回路の構成を示す回路図であり、(b)はエッジ検出回路の各部の信号を示すタイミングチャートである。(A) is a circuit diagram which shows the structure of an edge detection circuit, (b) is a timing chart which shows the signal of each part of an edge detection circuit. エッジ間隔判定回路の構成を示す回路図である。It is a circuit diagram which shows the structure of an edge space | interval determination circuit. エッジ間隔判定回路の各部の信号を示すタイミングチャートである。It is a timing chart which shows the signal of each part of an edge space | interval determination circuit.

以下に本発明の実施形態を図面と共に説明する。
[第1実施形態]
図1は、車両に搭載される通信システム1の概略構成を示すブロック図である。ここでは、通信装置としてのノード3が、バス通信路5を介して相互に接続されている。ノード3は、ボデー系のアプリケーションを実現する電子制御装置(ボデー系ECU)や、車両の状態を検出したり車両の状態を制御したりするために設けられた関連機器(スイッチ、センサ等)である。
Embodiments of the present invention will be described below with reference to the drawings.
[First Embodiment]
FIG. 1 is a block diagram showing a schematic configuration of a communication system 1 mounted on a vehicle. Here, nodes 3 as communication devices are connected to each other via a bus communication path 5. The node 3 is an electronic control device (body system ECU) that realizes a body system application or related equipment (switches, sensors, etc.) that is provided to detect the state of the vehicle or control the state of the vehicle. is there.

図1に示すように、通信システム1を構成するノード3のうち、ボデー系ECUとしては、ボデー・ワイパECU,シートECU,スライドドアECU,ミラーECU,バックドアECU,ライトECU,チルテレ(電動ステアリング位置調整装置)ECU等があり、一方、関連機器としては、ライトSW,ワイパSW,ライトセンサ,レインセンサ等がある。   As shown in FIG. 1, among the nodes 3 constituting the communication system 1, the body system ECU includes a body wiper ECU, a seat ECU, a slide door ECU, a mirror ECU, a back door ECU, a light ECU, a tilt tele (electric steering) Position adjusting device (ECU) and the like, while related devices include a light SW, a wiper SW, a light sensor, a rain sensor and the like.

バス通信路5は、異なるノード3からハイレベルの信号とロウレベルの信号とが同時に出力されると、バス通信路5上の信号レベルがロウレベルとなるように構成されており、この機能を利用してバス調停を実現する。   The bus communication path 5 is configured such that when a high level signal and a low level signal are simultaneously output from different nodes 3, the signal level on the bus communication path 5 becomes a low level. To achieve bus arbitration.

ここで図2(a)は、バス通信路5で使用する伝送路符号を示す説明図である。
図2(a)に示すように、バス通信路5では、伝送路符号として、ビットの途中で信号レベルがロウレベルからハイレベルに変化するPWM符号が用いられ、ドミナント(本実施形態では0に対応)及びレセッシブ(本実施形態では1に対応)からなる二値の信号を2種類のデューティ比で表現する。
Here, FIG. 2A is an explanatory diagram showing transmission path codes used in the bus communication path 5.
As shown in FIG. 2A, in the bus communication path 5, a PWM code in which the signal level changes from a low level to a high level in the middle of a bit is used as a transmission path code, and a dominant (corresponding to 0 in this embodiment) is used. ) And recessive (corresponding to 1 in the present embodiment) are expressed by two types of duty ratios.

具体的には、ドミナントの方がレセッシブよりロウレベルの比率が長くなるよう(本実施形態では、ドミナントが1ビットの2/3の期間、レセッシブが1ビットの1/3の期間)に設定され、バス通信路5上でドミナントとレセッシブとが衝突すると、ドミナントが調停勝ちするようにされている。   Specifically, the dominant is set so that the ratio of the low level is longer than the recessive (in this embodiment, the dominant is a 2/3 period of 1 bit and the recessive is a 1/3 period of 1 bit) When a dominant and recessive collide with each other on the bus communication path 5, the dominant wins arbitration.

そして、通信システム1では、調停負けしたノード3は送信を直ちに停止し、調停勝ちしたノード3のみが送信を継続する、いわゆるCSMA/CA方式のアクセス制御方式が用いられている。   In the communication system 1, a so-called CSMA / CA access control method is used in which the node 3 that has lost the arbitration immediately stops transmission, and only the node 3 that has won the arbitration continues transmission.

また、図2(b)はノード3間の通信に使用するフレームの構成を示す説明図である。
図2(b)に示すように、フレームは、送信を許可するデータを指定するためのヘッダと、ヘッダによって指定されたデータを送信するための可変長のレスポンスからなる。
FIG. 2B is an explanatory diagram showing a configuration of a frame used for communication between the nodes 3.
As shown in FIG. 2B, the frame includes a header for designating data permitted to be transmitted and a variable length response for transmitting the data designated by the header.

このうち、ヘッダは、送信を許可するデータの識別子(ID)からなり、IDの値が小さいほど、バス調停で勝ち残るように設定されている。一方、レスポンスには、データ以外に、データ(レスポンス)のサイズを示すサイズ情報、エラーの有無をチェックするためのCRC符号が少なくとも含まれている。   Among these, the header is made up of an identifier (ID) of data that is permitted to be transmitted, and is set so that the smaller the ID value, the longer the bus arbitration is won. On the other hand, in addition to the data, the response includes at least a size information indicating the size of the data (response) and a CRC code for checking whether there is an error.

ここで図1の説明に戻り、各ノード3は、予め割り当てられた全ての機能を実行可能な動作モードであるウェイクアップモード、消費電力を抑えるために一部の機能を停止した動作モードであるスリープモードで動作する。   Here, returning to the description of FIG. 1, each node 3 is a wake-up mode that is an operation mode capable of executing all the functions assigned in advance, and an operation mode in which some functions are stopped in order to reduce power consumption. Operates in sleep mode.

また、ノード3の一つ(ここではボデー・ワイパECU)をマスタノード(以下単に「マスタ」という)3aとし、他のノードをスレーブノード(以下単に「スレーブ」という)3bとしている。このとき、マスタ3aがヘッダを送信することによって、送信を許可するデータ(ひいてはデータの送信元となるスレーブ3b)を順次指定し、ヘッダによって指定されたデータの送信元となるスレーブ3bがレスポンス(データ)を送信するポーリング(以下「定期通信」ともいう)と、マスタ3aからの指示によらずスレーブ3bが自律的に通信を制御するイベント通信とを実行する。   One of the nodes 3 (here, the body wiper ECU) is a master node (hereinafter simply referred to as “master”) 3a, and the other node is a slave node (hereinafter simply referred to as “slave”) 3b. At this time, when the master 3a transmits the header, data to be permitted to be transmitted (and thus the slave 3b serving as the data transmission source) is sequentially specified, and the slave 3b serving as the data transmission source specified by the header responds ( Data) and event communication in which the slave 3b autonomously controls communication regardless of an instruction from the master 3a.

以下、マスタ3a及びスレーブ3bの構成を、図3を参照して説明する。
マスタ3aは、バス通信路5を介した他ノード3との通信によって得られた情報等に基づき、自ノード3に割り当てられた各種処理を実行する信号処理部10と、信号処理部10から供給されるNRZ符号の送信データTXDをPWM符号の送信データTXに符号化してバス通信路5に出力し、バス通信路5から取り込んだPWM符号の受信データRXをNRZ符号の受信データRXDに復号化して信号処理部10に供給するトランシーバ20とを備えている。
Hereinafter, the configurations of the master 3a and the slave 3b will be described with reference to FIG.
The master 3 a is supplied from the signal processing unit 10 that executes various processes assigned to the node 3 based on information obtained by communication with the other nodes 3 via the bus communication path 5, and the signal processing unit 10. The NRZ code transmission data TXD is encoded into PWM code transmission data TX and output to the bus communication path 5. The PWM code reception data RX received from the bus communication path 5 is decoded into the NRZ code reception data RXD. And a transceiver 20 that supplies the signal processing unit 10.

信号処理部10は、CPU,ROM,RAM,IOポート等からなる周知のマイクロコンピュータを中心に構成され、更に、調歩同期(非同期)方式のシリアル通信を実現するUART(汎用非同期送受信回路:Universal Asynchronous Receiver Transmitter )、11、当該信号処理部10を動作させるための動作クロックや、UART11の通信速度と同じ速度(本実施形態では20Kbps)に設定されトランシーバ20に供給する内部クロックCKを発生させる発振回路12を備えている。   The signal processing unit 10 is configured around a known microcomputer including a CPU, ROM, RAM, IO port, and the like, and further, a UART (universal asynchronous transmission / reception circuit: Universal Asynchronous) that realizes asynchronous communication. Receiver Transmitter) 11, an oscillation circuit for generating an operation clock for operating the signal processing unit 10 and an internal clock CK that is set to the same speed (20 Kbps in this embodiment) as the communication speed of the UART 11 and is supplied to the transceiver 20 12 is provided.

但し、発振回路12は、水晶発振子を用いて構成され、安定した周波数で発振する高精度のものが用いられている。また、信号処理部10は、自ノードの動作モードを表すモード信号MDをトランシーバ20に供給するように構成されている。   However, the oscillation circuit 12 is configured using a crystal oscillator, and a highly accurate circuit that oscillates at a stable frequency is used. The signal processing unit 10 is configured to supply the transceiver 20 with a mode signal MD representing the operation mode of the own node.

ここで図2(c)は、UART11が送受信するデータTXD,RXDの構成を示す説明図である。図示されているように、UART11は、データの開始を示す1ビット長のスタートビット(ロウレベル)と、データの終了を示すストップビット(ハイレベル)と、これらスタートビット,ストップビットに挟まれた8ビットのデータとで構成された合計10ビットのブロックデータを単位として送受信する。但し、主要部となる8ビットのデータは、LSB(最下位ビット)が先頭、MSB(最上位ビット)が末尾となるように設定されている。   Here, FIG. 2C is an explanatory diagram showing a configuration of data TXD and RXD transmitted and received by the UART 11. As shown in the figure, the UART 11 has a 1-bit length start bit (low level) indicating the start of data, a stop bit (high level) indicating the end of data, and 8 bits sandwiched between the start bit and stop bit. A total of 10-bit block data composed of bit data is transmitted and received as a unit. However, the 8-bit data as the main part is set so that the LSB (least significant bit) is the head and the MSB (most significant bit) is the end.

なお、前述のフレーム(図2(b)参照)を構成するヘッダは、単一のブロックデータで構成され、スタートビット,ストップビットを除く8ビットのデータのうち、7ビットはIDとして用いられ、1ビットはパリティビットとして用いられる。また、レスポンスは、1ないし複数個のブロックデータで構成され、最初のブロックに、サイズ情報が設定される。   The header constituting the above-mentioned frame (see FIG. 2B) is composed of a single block data, and 7 bits are used as an ID among 8 bits data excluding the start bit and stop bit. One bit is used as a parity bit. The response is composed of one or a plurality of block data, and size information is set in the first block.

図3に戻り、トランシーバ20は、複数のインバータをリング状に接続することで構成されたリングオシレータ等からなる簡易な発振回路を備え、この発振回路が発生させたカウント用クロックCCKを分周することによって、信号処理部10から供給される内部クロックCKに同期した各種タイミング信号を生成するタイミング生成部21と、タイミング生成部21にて生成されたタイミング信号に従って、送信データTXDの符号化、受信データRXの復号化を行う符号化復号化部22と、符号化復号化部22にて符号化された送信データTXをバス通信路5に出力する送信バッファ23と、バス通信路5上のデータを取り込む受信バッファ24と、信号処理部10から供給されるモード信号MDに従って、タイミング生成部21および符号化復号化部22の動作を制御するモード管理部25とを備えている。   Returning to FIG. 3, the transceiver 20 includes a simple oscillation circuit such as a ring oscillator configured by connecting a plurality of inverters in a ring shape, and divides the count clock CCK generated by the oscillation circuit. Accordingly, the timing generation unit 21 that generates various timing signals synchronized with the internal clock CK supplied from the signal processing unit 10, and the encoding and reception of the transmission data TXD according to the timing signal generated by the timing generation unit 21 An encoding / decoding unit 22 that decodes the data RX, a transmission buffer 23 that outputs the transmission data TX encoded by the encoding / decoding unit 22 to the bus communication path 5, and data on the bus communication path 5 In accordance with the reception buffer 24 that captures and the mode signal MD supplied from the signal processing unit 10, the timing generation unit 21 and And a mode management unit 25 for controlling the operation of the No. decoding unit 22.

なお、送信バッファ23は、上述したバス通信路5上でのバス調停が可能となるように、例えば、周知のオープンコレクタ回路を用いて構成されている。また、受信バッファ24は、バス通信路5の信号レベルが、予め設定された閾値より大きければハイレベル、閾値より小さければロウレベルを出力する周知のコンパレータによって構成されている。   The transmission buffer 23 is configured using, for example, a known open collector circuit so that bus arbitration on the bus communication path 5 described above is possible. The reception buffer 24 is configured by a known comparator that outputs a high level if the signal level of the bus communication path 5 is greater than a preset threshold value, and outputs a low level if the signal level is less than the threshold value.

また、モード管理部25は、モード信号MDがウェイクアップモードを示している場合には(本実施形態では「1」)、タイミング生成部21および符号化復号化部22を有効に動作させ、モード信号MDがスリープモードを示している時には(本実施形態では「0」)、タイミング信号の生成が停止するようにタイミング生成部21を制御する。   When the mode signal MD indicates the wake-up mode (“1” in the present embodiment), the mode management unit 25 operates the timing generation unit 21 and the encoding / decoding unit 22 effectively, When the signal MD indicates the sleep mode (“0” in the present embodiment), the timing generator 21 is controlled so that the generation of the timing signal is stopped.

ここで図4は、タイミング生成部21が生成する各種タイミング信号を示す説明図である。なお、カウント用クロックCCKは、内部クロックCKに対して十分に高い周波数(数十〜数百倍程度)を有するように設定されている。   Here, FIG. 4 is an explanatory diagram showing various timing signals generated by the timing generator 21. Note that the count clock CCK is set to have a sufficiently high frequency (several tens to several hundred times) with respect to the internal clock CK.

タイミング生成部21は、内部クロックCKの立ち下がりエッジの間隔、即ち1周期の長さを、カウント用クロックCCKによってカウントするカウンタや、カウンタによって得られた周期カウント値Ci(i=1,2,…)に基づいて、カウント用クロックCCKを分周することによって内部クロックCKに同期した各種タイミング信号を発生させる分周回路等によって構成されている。   The timing generation unit 21 includes a counter that counts the interval of the falling edges of the internal clock CK, that is, the length of one cycle, using the counting clock CCK, and the cycle count value Ci (i = 1, 2, ..)), And a frequency dividing circuit for generating various timing signals synchronized with the internal clock CK by dividing the count clock CCK.

なお、タイミング信号として具体的には、以下に示すクロックを生成する。
図4に示すように、タイミング生成部21は、周期カウント値Ciに相当する周期を有し、立ち下がりエッジから立ち上がりエッジまでの間隔が周期カウント値Ciの1/2に相当する長さに設定されたデューティ50%のバスクロックBCKと、同じく周期カウント値Ciに相当する周期を有し、バスクロックBCKの立ち下がりエッジのタイミングおよび該エッジから周期カウント値の1/4,2/4,3/4に相当する期間だけ経過したタイミングが立ち上がりエッジ(サンプリング用エッジ)となるサンプリングクロックSCKと、バスクロックBCKの立ち下がりエッジから周期カウント値の1/3に相当する期間だけ経過したタイミングが立ち上がりエッジとなるレセッシブ生成用クロックRCKと、バスクロックBCKの立ち下がりエッジから周期カウント値の2/3に相当する期間だけ経過したタイミングが立ち上がりエッジとなるドミナント生成用クロックDCKとを生成する。
Specifically, the following clock is generated as the timing signal.
As shown in FIG. 4, the timing generator 21 has a period corresponding to the period count value Ci, and the interval from the falling edge to the rising edge is set to a length corresponding to ½ of the period count value Ci. The bus clock BCK having a duty of 50% and a cycle corresponding to the cycle count value Ci, and the timing of the falling edge of the bus clock BCK and 1/4, 2/4, 3 of the cycle count value from the edge The sampling clock SCK whose rising edge (sampling edge) is the timing when the period corresponding to / 4 has elapsed, and the timing when the period corresponding to 1/3 of the cycle count value has elapsed from the falling edge of the bus clock BCK The edge of recessive generation clock RCK and bus clock BCK Generating a clock DCK for dominant generation timing has elapsed by a time period corresponding to 2/3 of the period count value from the gully edge becomes a rising edge.

なお、タイミング生成部21では、モード管理部25からの指示に従い、動作モードがウェイクアップモードの時には、すなわちモード信号MDが「1」の時には、発振回路を動作させることによってタイミング信号の生成を行う。この場合、バス通信路5には、同期信号となるクロックパルスが出力されることになる。一方、動作モードがスリープモードの時には、すなわちモード信号MDが「0」の時には、発振回路を停止することによってタイミング信号の生成を停止する。この場合、クロックパルスの出力は停止されて、バス通信路5はハイレベルに固定される。   The timing generation unit 21 generates a timing signal by operating the oscillation circuit in accordance with an instruction from the mode management unit 25 when the operation mode is the wake-up mode, that is, when the mode signal MD is “1”. . In this case, a clock pulse serving as a synchronization signal is output to the bus communication path 5. On the other hand, when the operation mode is the sleep mode, that is, when the mode signal MD is “0”, generation of the timing signal is stopped by stopping the oscillation circuit. In this case, the output of the clock pulse is stopped and the bus communication path 5 is fixed at the high level.

図3に戻り、スレーブ3bの構成を説明する。
スレーブ3bは、マスタ3aと同様に、バス通信路5を介した他ノード3との通信によって得られた情報等に基づき、自ノード3に割り当てられた各種処理を実行する信号処理部30と、信号処理部30から供給される送信データTXDをPWM符号で符号化した送信データTXをバス通信路5に出力し、バス通信路5上のデータ(受信データ)RXを受信して復号した受信データRXDを信号処理部30に供給するトランシーバ40とを備えている。
Returning to FIG. 3, the configuration of the slave 3b will be described.
Similarly to the master 3a, the slave 3b has a signal processing unit 30 that executes various processes assigned to the own node 3 based on information obtained by communication with other nodes 3 via the bus communication path 5, and the like. Transmission data TX obtained by encoding transmission data TXD supplied from the signal processing unit 30 with a PWM code is output to the bus communication path 5 and received data (reception data) RX on the bus communication path 5 is received and decoded. And a transceiver 40 for supplying the RXD to the signal processing unit 30.

信号処理部30は、トランシーバ40に対して内部クロックCKを供給する機能が省略されている点以外は、信号処理部10と同様に構成されている。
但し、スレーブ3bの信号処理部30は、必ずしもマイコンによって構成する必要はなく、UART11に相当する機能を少なくとも備えたシーケンサと、そのシーケンサを動作させる動作クロックを生成する発振回路とによって構成してもよい。
The signal processing unit 30 is configured in the same manner as the signal processing unit 10 except that the function of supplying the internal clock CK to the transceiver 40 is omitted.
However, the signal processing unit 30 of the slave 3b is not necessarily configured by a microcomputer, and may be configured by a sequencer having at least a function corresponding to the UART 11 and an oscillation circuit that generates an operation clock for operating the sequencer. Good.

トランシーバ40は、トランシーバ20と同様に、タイミング生成部41,符号化復号化部42,送信バッファ23,受信バッファ24,モード管理部25を備えており、タイミング生成部41および符号化復号化部42の構成の一部が、タイミング生成部21および符号化復号化部22とは異なっている。   Similar to the transceiver 20, the transceiver 40 includes a timing generation unit 41, an encoding / decoding unit 42, a transmission buffer 23, a reception buffer 24, and a mode management unit 25, and the timing generation unit 41 and the encoding / decoding unit 42. A part of the configuration differs from the timing generation unit 21 and the encoding / decoding unit 22.

具体的には、タイミング生成部41は、各種タイミング信号を生成する際に、同期の対象となる信号が、内部クロックCKではなく、受信バッファ24を介してバス通信路5から取得した受信データRXである点が異なる。   Specifically, when the timing generation unit 41 generates various timing signals, the signal to be synchronized is not the internal clock CK but the reception data RX acquired from the bus communication path 5 via the reception buffer 24. Is different.

本実施形態では、スレーブ3bは、スリープモードにあるときにマスタ3aからバス通信路5に出力されるクロックパルスを検出すると、ウェイクアップモードへ移行する。そして、このクロックパルスの検出は、カウント用クロックCCKのタイミングでバス通信路5から受信される受信データRXをサンプリングし、周期カウント値Ci(i=1,2,…)の中のハイレベル及びロウレベルの比率が所定範囲にあるか否かで行う。例えば図4に示すように、ロウレベルとなっている期間Aのカウント値とハイレベルとなっている期間Bのカウント値との比率が所定範囲にあるか否かを判断するという具合である。   In the present embodiment, when the slave 3b detects a clock pulse output from the master 3a to the bus communication path 5 while in the sleep mode, the slave 3b shifts to the wake-up mode. The clock pulse is detected by sampling the reception data RX received from the bus communication path 5 at the timing of the count clock CCK, and the high level in the cycle count value Ci (i = 1, 2,...) This is performed depending on whether the low level ratio is within a predetermined range. For example, as shown in FIG. 4, it is determined whether or not the ratio between the count value of the period A at the low level and the count value of the period B at the high level is within a predetermined range.

なお、タイミング生成部41では、タイミング信号の一つであるレセッシブ生成用クロックRCKの生成を省略してもよい。
また、符号化復号化部42は、内部回路の動作が一部異なる以外は、符号化復号化部22と同様に構成されている。
Note that the timing generation unit 41 may omit the generation of the recessive generation clock RCK, which is one of the timing signals.
The encoding / decoding unit 42 is configured in the same manner as the encoding / decoding unit 22 except that the operation of the internal circuit is partially different.

このように、スレーブ3bのトランシーバ40は、動作モードがウェイクアップモードの時には、すなわちモード信号MDが「1」の時には、バス通信路5から取り込んだPWM符号の受信データRXのビット境界となる立ち下がりエッジをクロック成分として抽出し、そのクロック成分に同期したバスクロックBCKを生成し、このバスクロックBCKに従って送信データTXDの符号化,受信データRXの復号化を行い、バス通信路5を介した通信を実現する。   As described above, when the operation mode is the wake-up mode, that is, when the mode signal MD is “1”, the transceiver 40 of the slave 3b becomes a bit boundary of the reception data RX of the PWM code fetched from the bus communication path 5. A falling edge is extracted as a clock component, a bus clock BCK synchronized with the clock component is generated, transmission data TXD is encoded and reception data RX is decoded according to the bus clock BCK, and the bus communication path 5 is used. Realize communication.

次に、マスタ3aの信号処理部10で実行されるマスタウェイクアップ処理を説明する。図5は、マスタウェイクアップ処理を示すフローチャートである。この処理は、マスタ3aがスリープモードとなっているときに実行される。   Next, a master wake-up process executed by the signal processing unit 10 of the master 3a will be described. FIG. 5 is a flowchart showing the master wake-up process. This process is executed when the master 3a is in the sleep mode.

最初のS100では、ウェイクアップ要因があるか否かを判断する。ウェイクアップ要因は、例えば電源スイッチなどの押下などに基づく上位アプリケーションからの要求で発生する。このとき、ウェイクアップ要因は、自ノードで検知される場合、他ノードで検知される場合がある。他ノード3bで検知された場合、バス通信路5を介してウェイクアップ信号が受信される。ここでウェイクアップ要因があると判断された場合(S100:YES)、S110へ移行する。一方、ウェイクアップ要因がないと判断された場合(S100:NO)、S100の判断処理を繰り返す。   In first S100, it is determined whether or not there is a wake-up factor. The wake-up factor is generated by a request from a host application based on, for example, pressing a power switch or the like. At this time, the wake-up factor may be detected by another node when detected by the own node. When detected by the other node 3b, a wake-up signal is received via the bus communication path 5. If it is determined that there is a wake-up factor (S100: YES), the process proceeds to S110. On the other hand, when it is determined that there is no wake-up factor (S100: NO), the determination process of S100 is repeated.

S110では、自ノードで発生したウェイクアップ要因か否かを判断する。ここで、自ノードで発生したウェイクアップ要因であると判断された場合(S110:YES)、S120にてウェイクアップ要因フラグをセットし、その後、S130へ移行する。一方、自ノードで発生したウェイクアップ要因でないと判断された場合(S110:NO)、すなわち、他ノードからのウェイクアップ信号を受信した場合には、S120の処理を実行せず、S130へ移行する。   In S110, it is determined whether or not the wake-up factor has occurred in the own node. Here, when it is determined that the wake-up factor has occurred in the own node (S110: YES), the wake-up factor flag is set in S120, and then the process proceeds to S130. On the other hand, if it is determined that the cause is not a wakeup factor generated in the own node (S110: NO), that is, if a wakeup signal is received from another node, the process proceeds to S130 without executing the process of S120. .

S130では、モード信号MDを「1」としてクロックパルスを出力する。この処理は、タイミング生成部21によりタイミング信号の生成を行い、バス通信路5に対し、クロックパルスを出力するものである。このとき、ウェイクアップ要因フラグがセットされていれば、すなわち自ノードで発生したウェイクアップ要因であれば、起動後、即座にタイミングパルスを出力する。一方、ウェイクアップ要因フラグがセットされていなければ、すなわち他ノードで発生したウェイクアップ要因であれば、スレーブ3bが所定時間T2以内に起動することを前提に、起動後、それよりも短い所定時間T3(<T2)以内にタイミングパルスを出力する。   In S130, the mode signal MD is set to “1” and a clock pulse is output. In this process, the timing generation unit 21 generates a timing signal and outputs a clock pulse to the bus communication path 5. At this time, if the wake-up factor flag is set, that is, if it is a wake-up factor generated in the own node, a timing pulse is output immediately after activation. On the other hand, if the wake-up factor flag is not set, that is, if it is a wake-up factor that has occurred in another node, a predetermined time shorter than that after the activation, assuming that the slave 3b is activated within the predetermined time T2. A timing pulse is output within T3 (<T2).

続くS140では、所定時間T1が経過したか否かを判断する。この処理は、スレーブ3bが所定時間T2以内に起動することを前提に、それよりも長い所定時間T1(>T2)の経過を判断するものである。ここで所定時間T1が経過したと判断された場合(S140:YES)、S150にて任意IDの送信を開始し、その後、マスタウェイクアップ処理を終了する。一方、所定時間T1が経過していないうちは(S140:NO)、S140の判断処理を繰り返す。   In subsequent S140, it is determined whether or not a predetermined time T1 has elapsed. This process is based on the assumption that the slave 3b is activated within the predetermined time T2, and determines the elapse of the predetermined time T1 (> T2) longer than that. If it is determined that the predetermined time T1 has elapsed (S140: YES), transmission of an arbitrary ID is started in S150, and then the master wake-up process is terminated. On the other hand, while the predetermined time T1 has not elapsed (S140: NO), the determination process of S140 is repeated.

なお、ウェイクアップ要因フラグは、起動後のデータ送信が完了した際にクリアされるものとする。以下でも同様である。
次に、スレーブ3bの信号処理部30で実行されるスレーブウェイクアップ処理を説明する。図6及び図7は、スレーブウェイクアップ処理を示すフローチャートである。この処理は、スレーブ3bがスリープモードとなっているときに実行される。
Note that the wake-up factor flag is cleared when data transmission after activation is completed. The same applies to the following.
Next, the slave wake-up process executed by the signal processing unit 30 of the slave 3b will be described. 6 and 7 are flowcharts showing the slave wake-up process. This process is executed when the slave 3b is in the sleep mode.

最初のS200では、ウェイクアップ要因があるか否かを判断する。上述したように、ウェイクアップ要因は、自ノードで検知される場合や、他ノードで検知される場合がある。他ノード(スレーブ3b)で検知された場合、バス通信路5を介してウェイクアップ信号が受信される。ここでウェイクアップ要因があると判断された場合(S200:YES)、S210へ移行する。一方、ウェイクアップ要因がないと判断された場合(S200:NO)、S200の判断処理を繰り返す。   In the first S200, it is determined whether there is a wake-up factor. As described above, the wake-up factor may be detected by the own node or may be detected by another node. When detected by another node (slave 3b), a wake-up signal is received via the bus communication path 5. If it is determined that there is a wake-up factor (S200: YES), the process proceeds to S210. On the other hand, when it is determined that there is no wake-up factor (S200: NO), the determination process of S200 is repeated.

S210では、自ノードで発生したウェイクアップ要因か否かを判断する。ここで、自ノードで発生したウェイクアップ要因であると判断された場合(S210:YES)、S220にてウェイクアップ要因フラグをセットし、その後、S230へ移行する。一方、自ノードで発生したウェイクアップ要因でないと判断された場合(S210:NO)、すなわち、他ノードからのウェイクアップ信号を受信した場合には、S220の処理を実行せず、S230へ移行する。   In S210, it is determined whether or not the wake-up factor has occurred in the own node. Here, when it is determined that the wake-up factor has occurred in the own node (S210: YES), the wake-up factor flag is set in S220, and then the process proceeds to S230. On the other hand, when it is determined that it is not a wake-up factor generated in the own node (S210: NO), that is, when a wake-up signal is received from another node, the process of S220 is not executed and the process proceeds to S230. .

S230では、ウェイクアップ要因フラグがセットされているか否かを判断する。ここでフラグがセットされていると判断された場合(S230:YES)、S240へ移行する。一方、フラグがセットされていないと判断された場合(S230:NO)、S240及びS250の処理を実行せず、S260へ移行する。   In S230, it is determined whether or not the wake-up factor flag is set. If it is determined that the flag is set (S230: YES), the process proceeds to S240. On the other hand, when it is determined that the flag is not set (S230: NO), the processing of S240 and S250 is not executed, and the process proceeds to S260.

S240では、ドミナントパルスがあるか否かを判断する。ここでドミナントパルスがないと判断された場合(S240:NO)、S250にてウェイクアップ信号を送信し、その後、S260へ移行する。ウェイクアップ信号は、UART11で送受信可能な1ブロックのコマンドである。一方、ドミナントパルスがあると判断された場合(S240:YES)、S250の処理を実行せず、S260へ移行する。   In S240, it is determined whether there is a dominant pulse. If it is determined that there is no dominant pulse (S240: NO), a wakeup signal is transmitted in S250, and then the process proceeds to S260. The wake-up signal is a one-block command that can be transmitted / received by the UART 11. On the other hand, when it is determined that there is a dominant pulse (S240: YES), the process proceeds to S260 without executing the process of S250.

S230〜S250の処理により、ウェイクアップ要因フラグがセットされており(S230:YES)、他にデータ送信しているノード3がなければ(S240:NO)、ウェイクアップ信号が送信されることになる(S250)。   As a result of the processing of S230 to S250, the wakeup factor flag is set (S230: YES), and if there is no other node 3 that is transmitting data (S240: NO), a wakeup signal is transmitted. (S250).

S230で否定判断された場合に移行するあるいはS250から移行するS260では、クロックパルスがあるか否かを判断する。この処理は、バス通信路5上に、マスタ3aからのクロックパルスが出力されているか否かを判断するものである。上述したように本実施形態では、このクロックパルスの検出は、バス通信路5から受信される受信データRXをカウント用クロックCCKのタイミングでサンプリングし、周期カウント値Ci(i=1,2,…)の中のハイレベル及びロウレベルの比率が所定範囲にあるか否かで行う。ここでクロックパルスがあると判断された場合(S260:YES)、S270にてモード信号MDを「1」にし、その後、図7中のS300へ移行する。一方、クロックパルスがないと判断された場合(S260:NO)、S280へ移行する。   When the determination is negative in S230, the process proceeds to S260, or the process proceeds from S250 to determine whether there is a clock pulse. In this process, it is determined whether or not a clock pulse from the master 3 a is output on the bus communication path 5. As described above, in this embodiment, this clock pulse is detected by sampling the reception data RX received from the bus communication path 5 at the timing of the count clock CCK, and the cycle count value Ci (i = 1, 2,... The ratio between the high level and the low level in () is within a predetermined range. If it is determined that there is a clock pulse (S260: YES), the mode signal MD is set to “1” in S270, and then the process proceeds to S300 in FIG. On the other hand, when it is determined that there is no clock pulse (S260: NO), the process proceeds to S280.

S280では、初回のウェイクアップ信号の受信から所定時間T4が経過したか否かを判断する。ここで所定時間T4が経過したと判断された場合(S280:YES)、S290にてモード信号MDを「0」として、その後、スレーブウェイクアップ処理を終了する。この場合は、マスタ3aからのクロックパルスが検知されないフィジカルバスエラーとなり、スリープモードを継続する。一方、所定時間T4が経過していないうちは(S280:NO)、S230からの処理を繰り返す。なお、本実施形態では所定時間T4が経過しないうちはウェイクアップ信号が繰り返し送信されるが(S280:NO,S250)、例えば、一定時間をおいて予め決められた回数(例えば2回)だけウェイクアップ信号を送信することとしてもよい。   In S280, it is determined whether or not a predetermined time T4 has elapsed since the first reception of the wakeup signal. If it is determined that the predetermined time T4 has elapsed (S280: YES), the mode signal MD is set to “0” in S290, and then the slave wake-up process is terminated. In this case, a physical bus error is detected in which the clock pulse from the master 3a is not detected, and the sleep mode is continued. On the other hand, as long as the predetermined time T4 has not elapsed (S280: NO), the processing from S230 is repeated. In this embodiment, the wake-up signal is repeatedly transmitted until the predetermined time T4 has elapsed (S280: NO, S250). For example, the wake-up signal is a predetermined number of times (for example, twice) after a predetermined time. An up signal may be transmitted.

S270から移行する図7中のS300では、任意IDを受信したか否かを判断する。上述したようにマスタ3aは、起動後に所定時間T1が経過すると(図5中のS140:YES)、任意IDの送信を開始する(S150)。ここで任意IDを受信したと判断された場合(S300:YES)、S310及びS320の処理を実行せず、スレーブウェイクアップ処理を終了する。このときは、スレーブ3bがウェイクアップモードで動作する。つまり、任意IDを受信してはじめてデータ送受信が可能となるのである。一方、任意IDを受信していないと判断された場合(S300:NO)、S310へ移行する。   In S300 in FIG. 7 that moves from S270, it is determined whether or not an arbitrary ID has been received. As described above, when the predetermined time T1 has elapsed after activation (S140: YES in FIG. 5), the master 3a starts transmitting an arbitrary ID (S150). If it is determined that an arbitrary ID has been received (S300: YES), the processes of S310 and S320 are not executed, and the slave wake-up process is terminated. At this time, the slave 3b operates in the wake-up mode. That is, data transmission / reception is possible only after receiving an arbitrary ID. On the other hand, when it is determined that the arbitrary ID has not been received (S300: NO), the process proceeds to S310.

S310では、所定時間が経過したか否かを判断する。ここで所定時間が経過したと判断された場合(S310:YES)、モード信号MDを「0」にして、その後、スレーブウェイクアップ処理を終了する。このときは、スレーブ3bは、スリープモードとなる。一方、所定時間が経過していないうちは(S310:NO)、S300からの処理を繰り返す。   In S310, it is determined whether or not a predetermined time has elapsed. If it is determined that the predetermined time has elapsed (S310: YES), the mode signal MD is set to “0”, and then the slave wake-up process is terminated. At this time, the slave 3b enters the sleep mode. On the other hand, while the predetermined time has not elapsed (S310: NO), the processing from S300 is repeated.

以上、マスタウェイクアップ処理及びスレーブウェイクアップ処理を説明した。さらにこれらの処理に対する理解を容易にするため、ここで図8〜図10に基づき具体的な説明を加える。なお、スレーブ3bを区別するため、図中の記号A〜Cを用い、適宜、Aスレーブ3b、Bスレーブ3b、Cスレーブ3bと記述する。   The master wakeup process and the slave wakeup process have been described above. Further, in order to facilitate understanding of these processes, a specific description will be added based on FIGS. In order to distinguish the slave 3b, symbols A to C in the figure are used and are appropriately described as A slave 3b, B slave 3b, and C slave 3b.

図8では、マスタ3aにてウェイクアップ要因が発生しているため(図5中のS100:YES,S110:YES)、ウェイクアップ要因フラグがセットされる(S120)。このときは、起動後、即座にクロックパルスが出力される(S130)。一方、A〜Cのスレーブ3bは、マスタ3aからのクロックパルスを検出し(図6中のS260:YES)、マスタ3aの起動から所定時間T2以内に起動し、モード信号MDを「1」にして(S270)任意IDの受信を待つ(図7中のS300,S310)。   In FIG. 8, since the wake-up factor is generated in the master 3a (S100: YES, S110: YES in FIG. 5), the wake-up factor flag is set (S120). At this time, a clock pulse is output immediately after startup (S130). On the other hand, the slaves 3b of A to C detect the clock pulse from the master 3a (S260: YES in FIG. 6), start within the predetermined time T2 from the start of the master 3a, and set the mode signal MD to “1”. (S270) Waiting for reception of an arbitrary ID (S300, S310 in FIG. 7).

マスタ3aは、所定時間T1が経過すると(図5中のS140:YES)、任意IDの送信を開始する(S150)。一方、A〜Cのスレーブ3bは、マスタ3aが送信する任意IDを受信すると(図7中のS300:YES)、スレーブウェイクアップ処理を終了し、定期通信やイベント通信を行う。   When the predetermined time T1 elapses (S140: YES in FIG. 5), the master 3a starts transmitting an arbitrary ID (S150). On the other hand, when the slave 3b of A to C receives the arbitrary ID transmitted by the master 3a (S300 in FIG. 7: YES), the slave wake-up process is terminated and regular communication or event communication is performed.

また、図9では、Aスレーブ3bにてウェイクアップ要因が発生しているため(図6中のS200:YES,S210:YES)、Aスレーブ3bにてウェイクアップ要因フラグがセットされる(S220)。したがって、Aスレーブ3bが、ウェイクアップ信号を送信する(S250)。   In FIG. 9, since a wake-up factor is generated in the A slave 3b (S200: YES, S210: YES in FIG. 6), a wake-up factor flag is set in the A slave 3b (S220). . Therefore, the A slave 3b transmits a wakeup signal (S250).

マスタ3aは、Aスレーブ3bからのウェイクアップ信号を受信すると(図5中のS100:YES)、ウェイクアップ信号の受信から所定時間T2以内にA〜Cのスレーブ3bが起動することを前提に、所定時間T3(<T2)以内に、クロックパルスを出力する(S130)。   When the master 3a receives the wake-up signal from the A slave 3b (S100 in FIG. 5: YES), it is assumed that the slaves A to C start within a predetermined time T2 from the reception of the wake-up signal. A clock pulse is output within a predetermined time T3 (<T2) (S130).

これにより、図8と同様、A〜Cのスレーブ3bは、マスタ3aからのクロックパルスを検出し(図6中のS260:YES)、マスタ3aが送信する任意IDを受信すると(図7中のS300:YES)、スレーブウェイクアップ処理を終了し、定期通信やイベント通信を行う。   As a result, as in FIG. 8, the slave 3b of A to C detects the clock pulse from the master 3a (S260 in FIG. 6: YES), and receives the arbitrary ID transmitted by the master 3a (in FIG. 7). S300: YES), the slave wake-up process is terminated, and regular communication or event communication is performed.

さらにまた、図10では、図9と同様、Aスレーブ3bにてウェイクアップ要因が発生しているため(図6中のS200:YES,S210:YES)、Aスレーブ3bにてウェイクアップ要因フラグがセットされる(S220)。したがって、Aスレーブ3bが、ウェイクアップ信号を送信する(S250)。   Furthermore, in FIG. 10, the wake-up factor is generated in the A slave 3b as in FIG. 9 (S200: YES, S210: YES in FIG. 6), so the wake-up factor flag is set in the A slave 3b. It is set (S220). Therefore, the A slave 3b transmits a wakeup signal (S250).

しかしながら、ここでは、マスタ3aがクロックパルスを出力せず、応答が得られていない。そのため、Aスレーブ3bは、所定時間T4が経過しないうちは(S280:NO)ウェイクアップ信号の送信を繰り返す(S250)。   However, here, the master 3a does not output a clock pulse, and no response is obtained. Therefore, the A slave 3b repeats the transmission of the wakeup signal (S250) until the predetermined time T4 has not elapsed (S280: NO).

A〜Cのスレーブ3bは、クロックパルスが検出されないまま(S260:NO)所定時間T4の経過を判断すると(S280:YES)、モード信号MDを「0」にして(S290)、スリープモードを継続する。   The slaves 3b of A to C set the mode signal MD to “0” (S290) when the elapse of the predetermined time T4 is determined without detecting the clock pulse (S260: NO) (S290: YES), and continue the sleep mode. To do.

次に、マスタ3aの信号処理部10で実行されるマスタスリープ処理を説明する。図11は、マスタスリープ処理を示すフローチャートである。この処理は、マスタ3aがウェイクアップモードとなっているときに実行される。   Next, a master sleep process executed by the signal processing unit 10 of the master 3a will be described. FIG. 11 is a flowchart showing the master sleep process. This process is executed when the master 3a is in the wake-up mode.

最初のS400では、スリープ禁止要因がないか否かを判断する。スリープ禁止要因がある場合、スリープ禁止を示すデータがスレーブ3bから送信される。ここでスリープ禁止要因がないと判断された場合(S400:YES)、S410へ移行する。一方、スリープ禁止要因があると判断された場合(S400:NO)、S400の判断処理を繰り返す。   In the first S400, it is determined whether or not there is a sleep prohibition factor. When there is a sleep prohibition factor, data indicating sleep prohibition is transmitted from the slave 3b. If it is determined that there is no sleep prohibition factor (S400: YES), the process proceeds to S410. On the other hand, when it is determined that there is a sleep prohibition factor (S400: NO), the determination process of S400 is repeated.

S410では、任意IDの送信を停止する。この処理は、上述した定期通信を停止するものである。
続くS420では、スリープ信号を送信する。この信号は、UART11で送受信可能な1ブロックのコマンドである。
In S410, the transmission of the arbitrary ID is stopped. This process stops the above-described regular communication.
In subsequent S420, a sleep signal is transmitted. This signal is a one-block command that can be transmitted and received by the UART 11.

次のS430では、タイマをセットする。続くS440では、所定時間T5が経過したか否かを判断する。ここで所定時間T5が経過したと判断された場合(S440:YES)、S450にてモード信号MDを「0」にしてクロックパルスの出力を停止し、その後、マスタスリープ処理を終了する。つまり、ここでは所定時間T5だけ待ってクロックパルスの出力を停止する。これは、スレーブ3bにスリープに先立つ退避処理を実行させるためである。一方、所定時間T5が経過していないと判断された場合(S440:NO)、S460へ移行する。   In the next S430, a timer is set. In subsequent S440, it is determined whether or not a predetermined time T5 has elapsed. If it is determined that the predetermined time T5 has elapsed (S440: YES), the mode signal MD is set to “0” in S450 to stop the output of the clock pulse, and then the master sleep process is terminated. That is, here, the output of the clock pulse is stopped after waiting for a predetermined time T5. This is to cause the slave 3b to execute a save process prior to sleep. On the other hand, when it is determined that the predetermined time T5 has not elapsed (S440: NO), the process proceeds to S460.

S460では、ドミナントパルスがあるか否かを判断する。ここでドミナントパルスがあると判断された場合(S460:YES)、S470にて任意IDの送信を開始し、その後、マスタスリープ処理を終了する。この場合、ウェイクアップモードが継続されることになる。一方、ドミナントパルスがないと判断された場合(S460:NO)、S440からの処理を繰り返す。   In S460, it is determined whether there is a dominant pulse. If it is determined that there is a dominant pulse (S460: YES), transmission of an arbitrary ID is started in S470, and then the master sleep process is terminated. In this case, the wake-up mode is continued. On the other hand, when it is determined that there is no dominant pulse (S460: NO), the processing from S440 is repeated.

次に、スレーブ3bの信号処理部30で実行されるスレーブスリープ処理を説明する。図12は、スレーブスリープ処理を示すフローチャートである。この処理は、スレーブ3bがウェイクアップモードとなっているときに繰り返し実行される。   Next, a slave sleep process executed by the signal processing unit 30 of the slave 3b will be described. FIG. 12 is a flowchart showing slave sleep processing. This process is repeatedly executed when the slave 3b is in the wake-up mode.

最初のS500では、スリープ信号を受信したか否かを判断する。この処理は、図11中のS420に対応するものである。ここでスリープ信号を受信したと判断された場合(S500:YES)、S510にてタイマをセットして、S520へ移行する。一方、スリープ信号を受信していないと判断された場合(S500:NO)、以降の処理を実行せず、スレーブスリープ処理を終了する。   In first S500, it is determined whether or not a sleep signal is received. This process corresponds to S420 in FIG. If it is determined that a sleep signal has been received (S500: YES), a timer is set in S510, and the process proceeds to S520. On the other hand, when it is determined that the sleep signal has not been received (S500: NO), the slave sleep process is terminated without executing the subsequent processes.

S520では、ウェイクアップ要因があるか否かを判断する。ここでウェイクアップ要因があると判断された場合(S520:YES)、S530にてドミナントパルスを出力し、その後、S560へ移行する。一方、ウェイクアップ要因がないと判断された場合(S520:NO)、S540にてスリープ前退避処理を行い、S550へ移行する。   In S520, it is determined whether there is a wake-up factor. If it is determined that there is a wake-up factor (S520: YES), a dominant pulse is output in S530, and then the process proceeds to S560. On the other hand, if it is determined that there is no wake-up factor (S520: NO), the pre-sleep saving process is performed in S540, and the process proceeds to S550.

S550では、所定時間T6が経過したか否かを判断する。ここで所定時間T6が経過したと判断された場合(S550:YES)、S560へ移行する。一方、所定時間T6が経過していないうちは(S550:NO)、S580へ移行する。   In S550, it is determined whether or not a predetermined time T6 has elapsed. If it is determined that the predetermined time T6 has elapsed (S550: YES), the process proceeds to S560. On the other hand, as long as the predetermined time T6 has not elapsed (S550: NO), the process proceeds to S580.

S530から移行するあるいはS550にて肯定判断された場合に移行するS560では、クロックパルスが停止されているか否かを判断する。この処理は、図11中のS450に対応するものである。ここでクロックパルスが停止されていると判断された場合(S560:YES)、S570にてモード信号MDを「0」とし、その後、スレーブスリープ処理を終了する。このときは、スレーブ3bはスリープモードへ移行する。一方、クロックパルスが停止されていないと判断された場合(S560:NO)、S580へ移行する。   In S560, which shifts from S530 or shifts to affirmative determination in S550, it is determined whether or not the clock pulse is stopped. This process corresponds to S450 in FIG. If it is determined that the clock pulse is stopped (S560: YES), the mode signal MD is set to “0” in S570, and then the slave sleep process is terminated. At this time, the slave 3b shifts to the sleep mode. On the other hand, if it is determined that the clock pulse is not stopped (S560: NO), the process proceeds to S580.

S550又はS560で否定判断された場合に移行するS580では、任意IDを受信したか否かを判断する。この処理は、図11中のS470に対応するものである。ここで任意IDを受信したと判断された場合(S580:YES)、スレーブスリープ処理を終了する。このときは、スレーブ3bは、ウェイクアップモードを継続する。一方、任意IDを受信していないと判断された場合(S580:NO)、S550からの処理を繰り返す。   In S580 to which the process proceeds when a negative determination is made in S550 or S560, it is determined whether or not an arbitrary ID has been received. This process corresponds to S470 in FIG. If it is determined that an arbitrary ID has been received (S580: YES), the slave sleep process is terminated. At this time, the slave 3b continues the wakeup mode. On the other hand, when it is determined that the arbitrary ID has not been received (S580: NO), the processing from S550 is repeated.

以上、マスタスリープ処理及びスレーブスリープ処理を説明した。これらの処理に対する理解を容易にするため、ここで、図13及び図14に基づき、具体例を挙げて説明を加える。   The master sleep process and the slave sleep process have been described above. In order to facilitate understanding of these processes, a description will be given here with specific examples based on FIGS. 13 and 14.

図13では、マスタ3aは定期通信を行っており、A〜Cのスレーブ3bからスリープを禁止する旨のデータが送信されなければ(S400:YES)、任意IDの送信を停止し(S410)、スリープ信号を出力する(S420)。その後、ドミナントパルスが出力されないまま所定時間T5が経過すると(S460:NO,S440:YES)、クロックパルスの出力を停止する(S450)。これにより、マスタ3aは、スリープモードへ移行する。   In FIG. 13, the master 3a is performing regular communication, and if data indicating that sleep is prohibited is not transmitted from the slaves 3b of A to C (S400: YES), transmission of an arbitrary ID is stopped (S410), A sleep signal is output (S420). Thereafter, when the predetermined time T5 elapses without outputting the dominant pulse (S460: NO, S440: YES), the output of the clock pulse is stopped (S450). Thereby, the master 3a shifts to the sleep mode.

上述したように、マスタ3aが所定時間T5の経過を待つのは、A〜Cのスレーブ3bにスリープ前退避処理を実行させるためである。つまり、A〜Cのスレーブ3bは、スリープ信号を受信すると(図12中のS500:YES)、ウェイクアップ要因がなければ(S520:NO)、スリープ前退避処理を実行する(S540)。そして、所定時間T6が経過した後(S550:YES)、クロックパルスが停止されていれば(S560:YES)、モード信号MDを「0」にして(S570)、スリープモードへ移行する。   As described above, the reason why the master 3a waits for the elapse of the predetermined time T5 is to cause the slaves 3b of A to C to execute the pre-sleep saving process. That is, when the slaves 3b of A to C receive the sleep signal (S500 in FIG. 12: YES), if there is no wake-up factor (S520: NO), the slave 3b executes the pre-sleep saving process (S540). Then, after the predetermined time T6 has elapsed (S550: YES), if the clock pulse is stopped (S560: YES), the mode signal MD is set to “0” (S570), and the mode is shifted to the sleep mode.

図14では、マスタ3aの定期通信に応答しなかったBスレーブ3bに、ウェイクアップ要因が発生している。したがって、Bスレーブ3bは、マスタ3aからのスリープ信号を受信した後(図12中のS500:YES)、ウェイクアップ要因ありと判断し(S520:YES)、ドミナントパルスを出力する(S530)。   In FIG. 14, a wake-up factor has occurred in the B slave 3b that has not responded to the regular communication of the master 3a. Therefore, after receiving the sleep signal from the master 3a (S500: YES in FIG. 12), the B slave 3b determines that there is a wake-up factor (S520: YES), and outputs a dominant pulse (S530).

このとき、マスタ3aは、所定時間T5が経過しないうちに(図11中のS440:NO)ドミナントパルスありとの判断を行い(S460:YES)、任意IDの送信を開始する(S470)。   At this time, the master 3a determines that there is a dominant pulse before the predetermined time T5 has elapsed (S440: NO in FIG. 11) (S460: YES), and starts transmitting an arbitrary ID (S470).

これにより、Bスレーブ3bは、例えばイベント通信などにより、スリープの禁止を通知する(図14参照)。また、A及びCのスレーブ3bも、スリープ信号を受信した後(図12中のS500:YES)、所定時間T6が経過した時点で(S550:YES)マスタ3aからのクロックパルスが停止されていないとの判断を行い(S560:NO)、任意IDを受信して(S580:YES)、ウェイクアップモードを継続する。   Thereby, the B slave 3b notifies the prohibition of sleep by, for example, event communication (see FIG. 14). Also, the slaves 3b of A and C also receive the sleep signal (S500: YES in FIG. 12), and the clock pulse from the master 3a is not stopped when the predetermined time T6 has passed (S550: YES). (S560: NO), an arbitrary ID is received (S580: YES), and the wake-up mode is continued.

以上詳述したように、本実施形態では、マスタ3aがウェイクアップ要因の有無を判断し(図5中のS100)、ウェイクアップ要因があると判断すると(S100:YES)、モード信号MDを「1」としてクロックパルスをバス通信路5へ出力する(S130)。一方、スレーブ3bは、マスタ3aからのクロックパルスがバス通信路5に出力されているか否かを判定し(図6中のS260)、クロックパルスが出力されていると判定した場合(S260:YES)、モード信号MDを「1」にして(S270)、ウェイクアップモードへ動作モードを移行する。   As described above in detail, in the present embodiment, when the master 3a determines whether or not there is a wake-up factor (S100 in FIG. 5) and determines that there is a wake-up factor (S100: YES), the mode signal MD is changed to “ 1 "and a clock pulse is output to the bus communication path 5 (S130). On the other hand, the slave 3b determines whether or not the clock pulse from the master 3a is output to the bus communication path 5 (S260 in FIG. 6), and determines that the clock pulse is output (S260: YES). ), The mode signal MD is set to “1” (S270), and the operation mode is shifted to the wake-up mode.

このように本実施形態では、スレーブ3bのウェイクアップを、マスタ3aからのクロックパルスで行うようにした。この場合、周期的に立下がる又は立上がるクロックパルスの有無を判定するため、ノイズなどの影響によらず、ウェイクアップモードへの動作モードの切り替えを適切に行うことができる。   As described above, in the present embodiment, the slave 3b is woken up by the clock pulse from the master 3a. In this case, since the presence or absence of a clock pulse that periodically falls or rises is determined, it is possible to appropriately switch the operation mode to the wake-up mode regardless of the influence of noise or the like.

また、本実施形態では、スレーブ3bでウェイクアップ要因が発生した場合(図6中のS200)、自ノードで発生していれば(S210:YES)、ウェイクアップ要因フラグをセットし(S220)、ウェイクアップ信号を送信する(S250)。このウェイクアップ信号を受信した場合にもマスタ3aは、ウェイクアップ要因が有ると判断し(図5中のS100:YES)、モード信号MDを「1」としてクロックパルスを出力する(S130)。これにより、スレーブ3bは、クロックパルスの出力を判定して(S260)、ウェイクアップモードへ動作モードを移行する。したがって、この場合も、ノイズなどの影響によらず、ウェイクアップモードへの動作モードの切り替えを適切に行うことができる。   In this embodiment, when a wake-up factor occurs in the slave 3b (S200 in FIG. 6), if it occurs in the own node (S210: YES), a wake-up factor flag is set (S220), A wake-up signal is transmitted (S250). Even when this wake-up signal is received, the master 3a determines that there is a wake-up factor (S100: YES in FIG. 5), and outputs a clock pulse with the mode signal MD set to “1” (S130). Thereby, the slave 3b determines the output of the clock pulse (S260) and shifts the operation mode to the wake-up mode. Therefore, also in this case, it is possible to appropriately switch the operation mode to the wake-up mode regardless of the influence of noise or the like.

さらにまた、本実施形態では、カウント用クロックCCKのタイミングでバス通信路5から受信される受信データRXをサンプリングし、周期カウント値Ci(i=1,2,…)の中のハイレベル及びロウレベルの比率が所定範囲にあるか否かでクロックパルスの検出を行う。これにより、例えばノイズなどによる瞬間的なエッジの立上がりや立下がりをクロックパルスとして判定してしまうことがなくなり、クロックパルスが出力されているか否かを適切に判定することができる。   Furthermore, in the present embodiment, the reception data RX received from the bus communication path 5 is sampled at the timing of the count clock CCK, and the high level and low level in the cycle count value Ci (i = 1, 2,...) Are sampled. The clock pulse is detected depending on whether the ratio is within a predetermined range. As a result, for example, an instantaneous rise or fall of an edge due to noise or the like is not determined as a clock pulse, and it is possible to appropriately determine whether or not a clock pulse is being output.

また、本実施形態では、マスタ3aは、起動後、スレーブ3bが所定時間T2以内に起動することを前提に、それよりも長い所定時間T1が経過するのを待って(図5中のS140:YES)、任意IDの送信を開始する(S150)。一方、スレーブ3bは、モード信号MDを「1」にしてウェイクアップモードへの切り替えを行った後(図6中のS270)、さらにマスタ3aからの任意IDを受信してはじめてウェイクアップ処理を終了し(図7中のS300:YES)、通信処理を開始する。これにより、各スレーブ3b間のウェイクアップに要する時間差によりスレーブ3bに生じる受信洩れを防止することができる。   Further, in the present embodiment, the master 3a waits for a predetermined time T1 longer than the master 3a to start within a predetermined time T2 after the start (S140 in FIG. 5: S140 in FIG. 5). YES), transmission of an arbitrary ID is started (S150). On the other hand, the slave 3b sets the mode signal MD to “1” and switches to the wakeup mode (S270 in FIG. 6), and then completes the wakeup process only after receiving an arbitrary ID from the master 3a. (S300 in FIG. 7: YES), communication processing is started. As a result, it is possible to prevent reception leakage occurring in the slave 3b due to the time difference required for wakeup between the slaves 3b.

さらにまた、本実施形態では、マスタ3aは、スリープ禁止要因がない場合(図11中のS400:YES)、スリープ信号を送信し(S420)、モード信号MDを「0」にしてクロックパルスの出力を停止する(S450)。一方、スレーブ3bは、スリープ信号を受信した後(図12中のS500:YES)、クロックパルスの出力が停止されたことを判定すると(S560:YES)、モード信号MDを「0」にして(S570)スリープモードへ移行する。これにより、比較的簡単にスリープモードへの移行を実現することができる。   Furthermore, in this embodiment, when there is no sleep prohibition factor (S400: YES in FIG. 11), the master 3a transmits a sleep signal (S420), sets the mode signal MD to “0”, and outputs a clock pulse. Is stopped (S450). On the other hand, after receiving the sleep signal (S500: YES in FIG. 12), the slave 3b determines that the output of the clock pulse is stopped (S560: YES), sets the mode signal MD to “0” ( S570) Transition to the sleep mode. Thereby, the transition to the sleep mode can be realized relatively easily.

このとき、マスタ3aは、スリープ信号を送信してから(図11中のS420)、所定時間T5の経過を待って(S440:YES)、クロックパルスの出力を停止する(S450)。一方、スレーブ3bは、この所定時間T5を利用して、スリープ前退避処理を実行する(図12中のS540)。これにより、スレーブ3bは例えばパラメータなどの退避処理を行うことができ、次回のウェイクアップ時におけるスレーブ3bの動作を安定させることができる。   At this time, after transmitting the sleep signal (S420 in FIG. 11), the master 3a waits for the elapse of the predetermined time T5 (S440: YES), and stops outputting the clock pulse (S450). On the other hand, the slave 3b executes the pre-sleep saving process using the predetermined time T5 (S540 in FIG. 12). Thereby, the slave 3b can perform, for example, a parameter saving process, and can stabilize the operation of the slave 3b at the next wake-up.

なお、本実施形態における通信システム1が特許請求の範囲における「通信システム」を構成し、マスタ3aが「マスタノード」を構成し、スレーブ3bが「スレーブノード」を構成し、バス通信路5が「バス通信路」を構成する。   The communication system 1 in the present embodiment constitutes the “communication system” in the claims, the master 3a constitutes the “master node”, the slave 3b constitutes the “slave node”, and the bus communication path 5 Configure the “bus communication path”.

また、マスタ3aの信号処理部10が「要因有無判断手段」を構成し、信号処理部10及びトランシーバ20のモード管理部25が「マスタ制御手段」を構成し、スレーブ3bの信号処理部30が「クロックパルス出力判定手段」及び「ウェイクアップ信号送信手段」を構成し、信号処理部30及びトランシーバ40のモード管理部25が「スレーブ制御手段」を構成する。   Further, the signal processing unit 10 of the master 3a constitutes “factor presence / absence judging means”, the signal processing unit 10 and the mode management unit 25 of the transceiver 20 constitute “master control means”, and the signal processing unit 30 of the slave 3b “Clock pulse output determination unit” and “wake-up signal transmission unit” are configured, and the signal processing unit 30 and the mode management unit 25 of the transceiver 40 configure “slave control unit”.

さらにまた、図5中のS100の処理が「要因有無判断手段」の機能としての処理に相当し、図5中のS130の処理、図11中のS420,S440,S450の処理が「マスタ制御手段」の機能としての処理に相当し、図6中のS260の処理及び図12中のS560の処理が「クロックパルス出力判定手段」の機能としての処理に相当し、図6中のS200〜250の処理が「ウェイクアップ信号送信手段」の機能としての処理に相当し、図6中のS270、図7中のS300、図12中のS540及びS570の処理が「スレーブ制御手段」の機能としての処理に相当する。   Furthermore, the processing of S100 in FIG. 5 corresponds to the processing as the function of the “factor presence / absence judging means”, the processing of S130 in FIG. 5 and the processing of S420, S440, S450 in FIG. 6, and the process of S260 in FIG. 6 and the process of S560 in FIG. 12 correspond to the process as the function of “clock pulse output determining means”, and the processes of S200 to S250 in FIG. The processing corresponds to processing as a function of “wake-up signal transmission means”, and processing at S270 in FIG. 6, S300 in FIG. 7, and processing at S540 and S570 in FIG. 12 is processing as a function of “slave control means”. It corresponds to.

[第2実施形態]
上記実施形態では、スレーブ3bによるマスタ3aからのクロックパルスの検出は、カウント用クロックCCKのタイミングでバス通信路5から受信される受信データRXをサンプリングし、周期カウント値Ci(i=1,2,…)の中のハイレベル及びロウレベルの比率が所定範囲にあるか否かで行っている。例えば図4に示すように、ロウレベルとなっている期間Aのカウント値とハイレベルとなっている期間Bのカウント値との比率が所定範囲にあるか否かを判断するという具合である。
[Second Embodiment]
In the above embodiment, the detection of the clock pulse from the master 3a by the slave 3b samples the reception data RX received from the bus communication path 5 at the timing of the count clock CCK, and the cycle count value Ci (i = 1, 2). ,...) Depending on whether the ratio between the high level and the low level is within a predetermined range. For example, as shown in FIG. 4, it is determined whether or not the ratio between the count value of the period A at the low level and the count value of the period B at the high level is within a predetermined range.

これに対し、本実施形態は、図3に破線で示すようにスレーブ3bがクロック検出回路43を備える点で、上記実施形態と異なる。そこで、ここでは、クロック検出回路43の構成を説明する。   On the other hand, the present embodiment is different from the above-described embodiment in that the slave 3b includes a clock detection circuit 43 as indicated by a broken line in FIG. Therefore, here, the configuration of the clock detection circuit 43 will be described.

クロック検出回路43は、受信バッファ24からの受信データRXを入力とし、クロック検出信号CSをモード管理部25へ出力する。クロック検出回路43は、図15に示すように、立下がりエッジ検出回路44及び、エッジ間隔判定回路45で構成されている。ここで立下がりエッジ検出回路44はエッジ検出信号EDを出力し、当該エッジ検出信号EDに基づいて、エッジ間隔判定回路45がクロック検出信号CSを出力する。   The clock detection circuit 43 receives the reception data RX from the reception buffer 24 and outputs a clock detection signal CS to the mode management unit 25. The clock detection circuit 43 includes a falling edge detection circuit 44 and an edge interval determination circuit 45 as shown in FIG. Here, the falling edge detection circuit 44 outputs the edge detection signal ED, and the edge interval determination circuit 45 outputs the clock detection signal CS based on the edge detection signal ED.

エッジ検出回路44について説明する。図16(a)はエッジ検出回路44の構成を示す回路図であり、図16(b)はエッジ検出回路44の各部の信号を示すタイミングチャートである。   The edge detection circuit 44 will be described. FIG. 16A is a circuit diagram showing the configuration of the edge detection circuit 44, and FIG. 16B is a timing chart showing signals at various parts of the edge detection circuit 44. FIG.

図16(a)に示すように、エッジ検出回路44は、受信データRXの信号レベルを反転させる反転回路(NOTゲート)51と、受信データRXおよびNOTゲート51の出力、即ち、受信データRXの反転信号を入力とし、その両方がロウレベルの時に出力がハイレベルとなる否定論理和回路(NORゲート)52からなり、NORゲート52の出力をエッジ検出信号EDとして出力する。   As shown in FIG. 16A, the edge detection circuit 44 includes an inversion circuit (NOT gate) 51 that inverts the signal level of the reception data RX, and outputs of the reception data RX and the NOT gate 51, that is, the reception data RX. An inverted signal is input, and a negative OR circuit (NOR gate) 52 whose output is at a high level when both are at a low level is output, and the output of the NOR gate 52 is output as an edge detection signal ED.

このように構成されたエッジ検出回路44は、図16(b)に示すように、エッジ検出信号EDとして、受信データRXがレセッシブからドミナントに変化する立下がりエッジのタイミング毎に、NOTゲート51の遅延時間分の幅を有するパルス信号を出力する。   As shown in FIG. 16 (b), the edge detection circuit 44 configured in this way has the NOT gate 51 as the edge detection signal ED at every falling edge timing at which the received data RX changes from recessive to dominant. A pulse signal having a width corresponding to the delay time is output.

続いて、エッジ間隔判定回路45について説明する。図17はエッジ間隔判定回路45の構成を示す回路図であり、図18はエッジ間隔判定回路45の各部の信号を示すタイミングチャートである。   Next, the edge interval determination circuit 45 will be described. FIG. 17 is a circuit diagram showing a configuration of the edge interval determination circuit 45, and FIG. 18 is a timing chart showing signals of respective parts of the edge interval determination circuit 45.

図17に示すように、エッジ間隔判定回路45は、スイッチ61、コンデンサ62、定電流源63、判定回路70、及び、ラッチ回路80を備えている。
コンデンサ62は、その一端が接地されており、スイッチ61は、コンデンサ62の非接地端を、定電流源63又はグランド(GND)のいずれかに接続する。詳細には、スイッチ61は、エッジ検出信号EDがロウレベルの間はコンデンサ62の非接地端を定電流源63に接続する。一方、エッジ検出信号EDがハイレベルの間はコンデンサ62の非接地端をGNDに接続する。判定回路70には、コンデンサ62の非接地端の電圧(以下「充電電圧」という)Vcが入力される。
As shown in FIG. 17, the edge interval determination circuit 45 includes a switch 61, a capacitor 62, a constant current source 63, a determination circuit 70, and a latch circuit 80.
One end of the capacitor 62 is grounded, and the switch 61 connects the non-grounded end of the capacitor 62 to either the constant current source 63 or the ground (GND). Specifically, the switch 61 connects the non-grounded end of the capacitor 62 to the constant current source 63 while the edge detection signal ED is at a low level. On the other hand, the non-grounded end of the capacitor 62 is connected to GND while the edge detection signal ED is at a high level. A voltage at the non-grounded end of the capacitor 62 (hereinafter referred to as “charging voltage”) Vc is input to the determination circuit 70.

判定回路70は、直列接続された3個の抵抗からなり電源電圧VCCを分圧して、閾値電圧Vt1,Vt2を発生させる分圧回路71と、反転入力端子に閾値電圧Vt1、非反転入力端子に充電電圧Vcが印加されるコンパレータ72と、反転入力端子に充電電圧Vc,非反転入力端子に閾値電圧Vt2が印加されるコンパレータ73と、両コンパレータ72,73の出力JH,JLを入力として、両者がいずれもハイレベルの時にハイレベルとなる判定信号DJを出力する論理積回路(ANDゲート)74とからなる。   The determination circuit 70 includes three resistors connected in series to divide the power supply voltage VCC to generate threshold voltages Vt1 and Vt2, a threshold voltage Vt1 at the inverting input terminal, and a voltage at the non-inverting input terminal. The comparator 72 to which the charging voltage Vc is applied, the comparator 73 to which the charging voltage Vc is applied to the inverting input terminal and the threshold voltage Vt2 to the non-inverting input terminal, and the outputs JH and JL of both the comparators 72 and 73 are input. Are both AND circuits 74 that output a determination signal DJ that becomes high level.

ラッチ回路80は、入力端子に判定信号DJが印加され、クロック端子CKにエッジ検出信号EDが印加され、リセット端子CLRにコンパレータ72の出力JHが印加されるように接続されたD型フリップフロップ回路からなる。   The latch circuit 80 is connected to the input terminal so that the determination signal DJ is applied, the edge detection signal ED is applied to the clock terminal CK, and the output JH of the comparator 72 is applied to the reset terminal CLR. Consists of.

このように構成されたエッジ間隔判定回路45では、エッジ検出信号EDがハイレベルになると、スイッチ61によりコンデンサ62の非接地端がGNDに接続される。これにより、図18に示すように、コンデンサ62は放電し、充電電圧Vcが降下する。一方、エッジ検出信号EDがロウレベルになると、スイッチ61によりコンデンサ62の非接地端がVCCに接続される。これにより、図18に示すように、コンデンサ62は充電されて、充電電圧VCが上昇する。   In the edge interval determination circuit 45 configured as described above, when the edge detection signal ED becomes high level, the switch 61 connects the non-grounded end of the capacitor 62 to GND. Thereby, as shown in FIG. 18, the capacitor 62 is discharged, and the charging voltage Vc drops. On the other hand, when the edge detection signal ED becomes low level, the switch 61 connects the non-grounded end of the capacitor 62 to VCC. As a result, as shown in FIG. 18, the capacitor 62 is charged and the charging voltage VC increases.

このとき、図18に示すように、充電電圧Vcが閾値電圧Vt1以下になる区間では、コンパレータ72の出力JHがハイレベルとなる。また、充電電圧Vcが閾値電圧Vt2以上になる区間では、コンパレータ73の出力JLがハイレベルとなる。これら出力JH,JLの論理積が論理積回路74の判定信号DJとなる。ラッチ回路80は、判定信号DJをエッチ検出信号EDのタイミングでラッチする。その結果、ラッチ回路80からのクロック検出信号CSは図18のようになり、バス通信路5上にクロックパルスが出力されたときにのみ、ハイレベルとなる。   At this time, as shown in FIG. 18, the output JH of the comparator 72 is at a high level in a section where the charging voltage Vc is equal to or lower than the threshold voltage Vt1. Further, in a section where the charging voltage Vc is equal to or higher than the threshold voltage Vt2, the output JL of the comparator 73 is at a high level. The logical product of these outputs JH and JL becomes the judgment signal DJ of the logical product circuit 74. The latch circuit 80 latches the determination signal DJ at the timing of the etch detection signal ED. As a result, the clock detection signal CS from the latch circuit 80 is as shown in FIG. 18 and becomes high level only when a clock pulse is output on the bus communication path 5.

このように構成されたクロック検出回路43を用いれば、図6中のS260及びS270の処理、及び、図11中のS560及びS570の処理をハードウェアで実現できる。
以上詳述したように、本実施形態によっても、上記実施形態と同様の効果が奏される。また、本実施形態のクロック検出回路43によれば、バス通信路5上にマスタ3aからのクロックパルスが出力されたときだけクロック検出信号CSがハイレベルとなるため、ノイズなどによる瞬間的なエッジの立上がりや立下がりをクロックパルスとして判定してしまうことがなくなり、クロックパルスが出力されているか否かを適切に判定することができる。また、この場合はハードウェアによる構成であるため、クロックパルスの判定から動作モードの切り替えまでを瞬時に行うことができる。
If the clock detection circuit 43 configured in this way is used, the processing of S260 and S270 in FIG. 6 and the processing of S560 and S570 in FIG. 11 can be realized by hardware.
As described above in detail, the present embodiment can provide the same effects as those of the above embodiment. Further, according to the clock detection circuit 43 of the present embodiment, the clock detection signal CS is at a high level only when the clock pulse from the master 3a is output on the bus communication path 5, so that an instantaneous edge due to noise or the like is generated. Therefore, it is possible to appropriately determine whether or not a clock pulse is output. In this case, since the configuration is based on hardware, it is possible to instantaneously perform from the determination of the clock pulse to the switching of the operation mode.

なお、本実施形態では、特に、スレーブ3bのクロック検出回路43が特許請求の範囲における「クロックパルス出力判定手段」を構成し、詳しくは、立下がりエッジ検出回路45が「エッジ検出回路」に相当し、エッジ間隔判定回路45が「エッジ間隔判定回路」に相当する。   In the present embodiment, in particular, the clock detection circuit 43 of the slave 3b constitutes “clock pulse output determination means” in the claims, and more specifically, the falling edge detection circuit 45 corresponds to the “edge detection circuit”. The edge interval determination circuit 45 corresponds to an “edge interval determination circuit”.

以上、本発明は、上述した実施形態に何ら限定されるものではなく、その要旨を逸脱しない範囲において種々なる形態で実施することができる。   As mentioned above, this invention is not limited to embodiment mentioned above at all, In the range which does not deviate from the summary, it can implement with a various form.

1:通信システム、3:ノード、3a:マスタノード、3b:スレーブノード、5:バス通信路、10,30:信号処理部、11:UART(汎用非同期送受信回路)、12:発振回路、20,40:トランシーバ、21,41:タイミング生成部、22,42:符号化復号化部、23:送信バッファ、24:受信バッファ、25:モード管理部、43:クロック検出回路、44:立下がりエッジ検出回路、45:エッジ間隔判定回路、51:NOTゲート、52:NORゲート、61:スイッチ、62:コンデンサ、70:判定回路、71:分圧回路、72,73:コンパレータ、74:ANDゲート、80:ラッチ回路   1: communication system, 3: node, 3a: master node, 3b: slave node, 5: bus communication path, 10, 30: signal processing unit, 11: UART (general purpose asynchronous transmission / reception circuit), 12: oscillation circuit, 20, 40: transceiver, 21, 41: timing generation unit, 22, 42: encoding / decoding unit, 23: transmission buffer, 24: reception buffer, 25: mode management unit, 43: clock detection circuit, 44: falling edge detection Circuit: 45: edge interval determination circuit, 51: NOT gate, 52: NOR gate, 61: switch, 62: capacitor, 70: determination circuit, 71: voltage dividing circuit, 72, 73: comparator, 74: AND gate, 80 : Latch circuit

Claims (9)

クロック成分を含むクロックパルスをバス通信路へ出力するマスタノードと、当該マスタノードからの前記クロックパルスを前記バス通信路を介して受信することで前記マスタノードに同期して動作するスレーブノードとを備え、
前記各ノードが、予め割り当てられた機能を実行可能な動作モードであるウェイクアップモードと、一部の機能を停止した動作モードであるスリープモードとで動作するよう構成された通信システムであって、
前記各ノードは、
前記ウェイクアップモードへの移行の要因となるウェイクアップ要因の有無を判断する要因有無判断手段と、
前記要因有無判断手段にてウェイクアップ要因が有ると判断される信号の送信手段とを有し、
前記マスターノードは、
前記ウェイクアップ要因が有ると判断される信号を受信する手段と、
前記スレーブノードを前記マスタノードに同期させるための前記クロック成分を含む前記クロックパルスを前記ウェイクアップ要因が有ると判断される信号として出力する手段と、
前記要因有無判断手段にて前記ウェイクアップ要因が有ると判断されると、前記バス通信路への前記クロックパルスの出力を開始するマスタ制御手段とを有し、
前記スレーブノードは、
前記マスタノードからの前記クロックパルスが前記バス通信路に出力されているか否かを判定するクロックパルス出力判定手段と、
前記ウェイクアップ要因が自ノードで発生すると、ウェイクアップ信号を前記ウェイクアップ要因が有ると判断される信号として送信するウェイクアップ信号送信手段と、
前記ウェイクアップ信号を検出するウェイクアップ信号検出手段と、
前記クロックパルス出力判定手段にて前記クロックパルスが出力されていると判定された場合、及び前記ウェイクアップ信号検出手段にて前記ウェイクアップ信号を検出した場合に、前記ウェイクアップモードへ動作モードを切り替えて通信処理を行うスレーブ制御手段と、
を有していることを特徴とする通信システム。
A master node that outputs a clock pulse including a clock component to a bus communication path, and a slave node that operates in synchronization with the master node by receiving the clock pulse from the master node via the bus communication path. Prepared,
Each of the nodes is a communication system configured to operate in a wake-up mode that is an operation mode capable of executing a pre-assigned function and a sleep mode that is an operation mode in which some functions are stopped,
Wherein each node is,
Factor presence / absence determining means for determining presence / absence of a wakeup factor that causes the transition to the wakeup mode;
A signal transmitting means that is determined by the factor presence / absence determining means to have a wake-up factor,
The master node is
Means for receiving a signal determined to have the wake-up factor;
Means for outputting the clock pulse including the clock component for synchronizing the slave node to the master node as a signal determined to have the wake-up factor;
Master control means for starting output of the clock pulse to the bus communication path when it is determined by the factor presence / absence determination means that the wake-up factor is present;
The slave node is
Clock pulse output determination means for determining whether or not the clock pulse from the master node is output to the bus communication path;
A wakeup signal transmitting means for transmitting a wakeup signal as a signal determined to have the wakeup factor when the wakeup factor is generated in the own node;
Wake-up signal detecting means for detecting the wake-up signal;
When the clock pulse output determining means determines that the clock pulse is output, and when the wakeup signal detecting means detects the wakeup signal, the operation mode is switched to the wakeup mode. Slave control means for performing communication processing,
The communication system characterized by having .
請求項1に記載の通信システムにおいて、
前記クロックパルス出力判定手段は、前記クロックパルスに対し周波数の大きなカウント用クロックでのサンプリング情報に基づき、周期カウント値の中のハイレベルとロウレベルとの比率が所定範囲にある場合に前記クロックパルスが出力されていると判定すること
を特徴とする通信システム。
The communication system according to claim 1 ,
The clock pulse output determining means is configured to output the clock pulse when a ratio between a high level and a low level in a cycle count value is within a predetermined range based on sampling information with a counting clock having a frequency higher than the clock pulse. A communication system, characterized in that it is determined that it is output.
請求項1に記載の通信システムにおいて、
前記クロックパルス出力判定手段は、前記クロックパルスのエッジを検出するエッジ検出回路と、当該エッジ検出回路からの出力に基づき前記クロックパルスが出力されているか否かに応じて反転するクロック検出信号を出力するエッジ間隔判定回路とで構成されていること
を特徴とする通信システム。
The communication system according to claim 1 ,
The clock pulse output determination means outputs an edge detection circuit that detects an edge of the clock pulse, and a clock detection signal that is inverted depending on whether the clock pulse is output based on an output from the edge detection circuit The communication system is characterized by comprising an edge interval determination circuit that performs the above-described operation.
請求項1〜の何れか一項に記載の通信システムにおいて、
前記スレーブ制御手段は、前記ウェイクアップモードへ動作モードを切り替えた後、さらに前記マスタノードからの所定情報を受信してはじめて通信処理を開始すること
を特徴とする通信システム。
In the communication system according to any one of claims 1 to 3 ,
The slave control means starts communication processing only after receiving predetermined information from the master node after switching the operation mode to the wake-up mode.
請求項1〜の何れか一項に記載の通信システムにおいて、
前記マスタ制御手段は、前記クロックパルスの出力を停止して前記スリープモードへ動作モードを切り替え、
前記スレーブ制御手段は、前記クロックパルス出力判定手段にて前記クロックパルスが出力されていないと判定されると、前記スリープモードへ動作モードを切り替えること
を特徴とする通信システム。
In the communication system according to any one of claims 1 to 4 ,
The master control means stops the output of the clock pulse and switches the operation mode to the sleep mode,
The slave control unit switches the operation mode to the sleep mode when the clock pulse output determination unit determines that the clock pulse is not output.
請求項に記載の通信システムにおいて、
前記マスタ制御手段は、スリープ信号を送信した後、所定時間の経過を待って、前記クロックパルスの出力を停止し、
前記スレーブ制御手段は、前記スリープ信号を受信すると、前記所定時間内に、スリープモードへの動作モードの切り替えに先立ちスリープ前退避処理を実行すること
を特徴とする通信システム。
The communication system according to claim 5 , wherein
The master control means waits for the elapse of a predetermined time after transmitting the sleep signal, and stops outputting the clock pulse,
When the slave control unit receives the sleep signal, the slave control unit executes a pre-sleep saving process prior to switching the operation mode to the sleep mode within the predetermined time.
請求項又はに記載の通信システムにおいて
前記マスタ制御手段は、前記所定時間が経過するまでに前記スレーブノードから規定のパルスを受信すると、前記クロックパルスの出力を継続して所定情報を送信し、
前記スレーブ制御手段は、前記スリープ信号を受信した後、前記ウェイクアップ要因が自ノードで発生すると前記規定のパルスを出力し、前記マスタノードからの所定情報を受信すると、通信処理を開始してスリープ禁止を示すデータを出力すること
を特徴とする通信システム。
It said master control means in a communication system according to claim 5 or 6, when receiving the provision of a pulse from the slave node until the predetermined time has elapsed, transmits a predetermined information to continue the output of the clock pulse ,
After receiving the sleep signal, the slave control means outputs the specified pulse when the wake-up factor is generated in its own node, and when receiving predetermined information from the master node, starts the communication process and sleeps. A communication system characterized by outputting data indicating prohibition.
請求項1〜の何れか一項に記載の通信システムに用いられるマスタノード。 Master node for use in a communication system according to any one of claims 1-7. 請求項1〜の何れか一項に記載の通信システムに用いられるスレーブノード。 Slave node for use in a communication system according to any one of claims 1-7.
JP2011174223A 2011-08-09 2011-08-09 Communication system and master node and slave node used in the communication system Active JP5617795B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011174223A JP5617795B2 (en) 2011-08-09 2011-08-09 Communication system and master node and slave node used in the communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011174223A JP5617795B2 (en) 2011-08-09 2011-08-09 Communication system and master node and slave node used in the communication system

Publications (2)

Publication Number Publication Date
JP2013038653A JP2013038653A (en) 2013-02-21
JP5617795B2 true JP5617795B2 (en) 2014-11-05

Family

ID=47887820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011174223A Active JP5617795B2 (en) 2011-08-09 2011-08-09 Communication system and master node and slave node used in the communication system

Country Status (1)

Country Link
JP (1) JP5617795B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10503674B2 (en) 2016-02-03 2019-12-10 Samsung Electronics Co., Ltd. Semiconductor device including a clock source for generating a clock signal and a clock control circuit for controlling the clock source in hardware, a semiconductor system including the semiconductor device, and a method of operating the semiconductor device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015229462A (en) * 2014-06-06 2015-12-21 富士電機株式会社 Synchronization system
KR101836671B1 (en) * 2016-07-19 2018-04-19 현대다이모스(주) Method for dynamic scheduling in local interconnection network communication system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2988185B2 (en) * 1993-04-05 1999-12-06 日産自動車株式会社 Multiplex communication device
JP2752030B2 (en) * 1993-04-16 1998-05-18 沖電気工業株式会社 Signal transmission / reception device in local area network line
JP3249270B2 (en) * 1993-12-22 2002-01-21 株式会社 沖マイクロデザイン Pulse sampling circuit
JPH0936922A (en) * 1995-07-21 1997-02-07 Toyota Motor Corp Digital signal modulating system
JP3952724B2 (en) * 2001-10-09 2007-08-01 株式会社デンソー VEHICLE LOAD DRIVE SYSTEM, SIGNAL OUTPUT DEVICE, AND LOAD DRIVE DEVICE
JP2010141504A (en) * 2008-12-10 2010-06-24 Denso Corp On-vehicle device and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10503674B2 (en) 2016-02-03 2019-12-10 Samsung Electronics Co., Ltd. Semiconductor device including a clock source for generating a clock signal and a clock control circuit for controlling the clock source in hardware, a semiconductor system including the semiconductor device, and a method of operating the semiconductor device

Also Published As

Publication number Publication date
JP2013038653A (en) 2013-02-21

Similar Documents

Publication Publication Date Title
KR101380683B1 (en) Transceiver
KR101380681B1 (en) Transceiver for communicating signal encoded to include clock information
US7890229B2 (en) Method and device for waking users of a bus system, and corresponding users
JP4864885B2 (en) Digital signal bit rate independent coding method for bus system
JP5678849B2 (en) Communication system and transceiver
US9154175B2 (en) Transceiver and communication apparatus transmitting and receiving data encoded by transmission code
EP3576353B1 (en) Flexible data rate handling in a data bus receiver
JP2012049885A (en) Transceiver and communication device
US20120327942A1 (en) Communication network system
JP2013030932A (en) Communication system and sub-master node used for the communication system
WO2011080677A1 (en) Improved pattern detection for partial networking
JP5617795B2 (en) Communication system and master node and slave node used in the communication system
JP5977152B2 (en) Communication device
JP5134055B2 (en) Communication system, transceiver, node
JP5505203B2 (en) Communication system, transceiver, node
JPH08125674A (en) Communication controller
JP5113229B2 (en) Communication system, transceiver, node
JP6413979B2 (en) Master node
JP5091292B2 (en) Communication system, transceiver, node
JP5434833B2 (en) Communication system and node
JP2013154653A (en) Vehicle mounted communication apparatus
JP6094609B2 (en) Communications system
JP2008236178A (en) Serial data receiving circuit
JP5471816B2 (en) Communication device and method for canceling sleep state of communication device
JP2013038466A (en) Communication system, and transceiver

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140521

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140527

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140724

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140819

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140901

R151 Written notification of patent or utility model registration

Ref document number: 5617795

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250