Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6330693B2 - Electronic control device and communication system - Google Patents
[go: Go Back, main page]

JP6330693B2 - Electronic control device and communication system - Google Patents

Electronic control device and communication system Download PDF

Info

Publication number
JP6330693B2
JP6330693B2 JP2015036727A JP2015036727A JP6330693B2 JP 6330693 B2 JP6330693 B2 JP 6330693B2 JP 2015036727 A JP2015036727 A JP 2015036727A JP 2015036727 A JP2015036727 A JP 2015036727A JP 6330693 B2 JP6330693 B2 JP 6330693B2
Authority
JP
Japan
Prior art keywords
input
integrated circuit
terminal
circuit device
output terminal
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
JP2015036727A
Other languages
Japanese (ja)
Other versions
JP2016155529A (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 JP2015036727A priority Critical patent/JP6330693B2/en
Publication of JP2016155529A publication Critical patent/JP2016155529A/en
Application granted granted Critical
Publication of JP6330693B2 publication Critical patent/JP6330693B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)
  • Small-Scale Networks (AREA)

Description

本発明は、電子制御装置、及び当該電子制御装置を備えた通信システムに関する。   The present invention relates to an electronic control device and a communication system including the electronic control device.

車両には複数の電子制御装置が備えられている。このような電子制御装置としては、例えば、運転者に情報を報知するための表示装置や、各種センサからの測定値を取得するための装置などが挙げられる。車両における様々な制御を行うために、これら電子制御装置は互いに通信を行っている。   The vehicle is provided with a plurality of electronic control devices. Examples of such an electronic control device include a display device for notifying a driver of information and a device for acquiring measurement values from various sensors. In order to perform various controls in the vehicle, these electronic control devices communicate with each other.

近年では、コスト低減のため、複数の電子制御装置間の通信を多重通信化し、通信のためのワイヤーハーネスを削減することが求められている。多重通信の規格としては、例えばCAN(Controller Area Network)やLIN(Local Interconnect Network)などの規格が存在する。   In recent years, in order to reduce costs, it has been required to multiplex communications between a plurality of electronic control devices to reduce wire harnesses for communication. As multiplex communication standards, there are standards such as CAN (Controller Area Network) and LIN (Local Interconnect Network).

しかしながら、上記のような多重通信の規格に準じた通信を行うためには、全ての電子制御装置にそれぞれマイコンを搭載する必要がある。その結果、個々の電子制御装置のコストが高くなり、結局は車両全体のコストが高くなってしまうことが懸念される。そこで、一方の電子制御装置(マスター)のみがマイコンを搭載し、他方の電子制御装置(スレーブ)はマイコンを搭載しない構成としながら通信を行うことが可能な方式として、例えばCXPIの導入が検討されている。   However, in order to perform communication conforming to the multiplex communication standard as described above, it is necessary to install a microcomputer in each of the electronic control devices. As a result, there is a concern that the cost of each electronic control device will increase, and eventually the cost of the entire vehicle will increase. Therefore, for example, the introduction of CXPI is considered as a method that allows communication while only one electronic control device (master) is equipped with a microcomputer and the other electronic control device (slave) is not equipped with a microcomputer. ing.

この場合、マイコンを搭載しない電子制御装置には、他の電子制御装置との通信を行うための集積回路であるスレーブIC(通信用集積回路装置)が備えられる。このような構成においては、異なる機能を有する電子制御装置のそれぞれに、当該機能に応じたスレーブICが備えられる必要がある。尚、ここでいう電子制御装置の「機能」としては、例えば通信用に設定されるID(マスターが、通信相手となるスレーブを特定するためのID)や、マスターに情報を送信する際の送信周期等が挙げられる。   In this case, an electronic control device that does not include a microcomputer includes a slave IC (communication integrated circuit device) that is an integrated circuit for performing communication with other electronic control devices. In such a configuration, each of the electronic control devices having different functions needs to be provided with a slave IC corresponding to the function. The “function” of the electronic control device here refers to, for example, an ID set for communication (an ID for specifying a slave as a communication partner by the master) or transmission when information is transmitted to the master. A period etc. are mentioned.

しかしながら、電子制御装置の機能の種類に応じて、複数種類のスレーブICを用意することは、コストの観点から望ましくない。電子制御装置のコストを抑制するためには、スレーブICの構成は全て共通のものとした上で、それぞれのスレーブICの機能を、外部からの信号入力等によって切り替え可能とすることが望ましい。   However, it is not desirable from the viewpoint of cost to prepare a plurality of types of slave ICs according to the types of functions of the electronic control unit. In order to reduce the cost of the electronic control device, it is desirable that the slave ICs have the same configuration, and the functions of the slave ICs can be switched by external signal input or the like.

下記特許文献1には、外部から接続されるインピーダンス素子の抵抗値に応じてゲイン値を変更することのできる集積回路が記載されている。このような構成の集積回路においては、ゲイン値に応じて複数種類の集積回路を用意しておく必要が無い。用意しておく集積回路の種類は1種類のみでよいため、電子制御装置のコストを抑制することが可能となる。   Patent Document 1 listed below discloses an integrated circuit that can change a gain value in accordance with the resistance value of an impedance element connected from the outside. In the integrated circuit having such a configuration, it is not necessary to prepare a plurality of types of integrated circuits according to the gain value. Since only one type of integrated circuit is prepared, the cost of the electronic control device can be reduced.

特開平9−46150号公報JP 9-46150 A

上記特許文献1に記載の集積回路では、ゲイン切り替え用の端子を備えており、外部のインピーダンス素子が当該端子に接続される構成となっている。つまり、センサやスイッチ等と接続されるための端子とは別に、機能(ゲイン値)の切り替えを行うための専用の端子を追加して設けた構成となっている。   The integrated circuit described in Patent Document 1 includes a terminal for gain switching, and an external impedance element is connected to the terminal. That is, in addition to the terminals for connecting to sensors, switches, etc., a dedicated terminal for switching functions (gain values) is additionally provided.

しかしながら、端子の数を増加させることは、IC内部チップにおけるパッド面積の増加に繋がり、更にはICパッケージの大型化に繋がってしまう。特に、近年、半導体の高集積化に伴ってIC内部チップに占めるパッドの割合が高くなっていることに鑑みれば、パッド面積の増加は、ICパッケージの大型化に大きく影響してしまう。その結果、やはり電子制御装置のコストが上昇してしまうことになる。   However, increasing the number of terminals leads to an increase in the pad area in the IC internal chip and further leads to an increase in the size of the IC package. In particular, in view of the fact that in recent years, the proportion of pads occupying the IC internal chip has increased with the higher integration of semiconductors, the increase in the pad area greatly affects the increase in size of the IC package. As a result, the cost of the electronic control device also increases.

本発明はこのような課題に鑑みてなされたものであり、その目的は、通信用集積回路装置の機能を切り替えることを可能としながらも、機能の切り替えを行うための専用の端子を通信用集積回路装置に設ける必要のない電子制御装置、及び当該電子制御装置を備えた通信システムを提供することにある。   The present invention has been made in view of such a problem, and an object of the present invention is to provide a dedicated terminal for switching functions while switching functions of the communication integrated circuit device. An object of the present invention is to provide an electronic control device that does not need to be provided in a circuit device, and a communication system including the electronic control device.

上記課題を解決するために、本発明に係る電子制御装置は、通信用集積回路装置を備えた電子制御装置であって、通信用集積回路装置は、少なくとも2つ以上の出力端子を備える。通信用集積回路装置の内部において、それぞれの出力端子には、当該出力端子に接続された出力トランジスタと、当該出力端子を流れる電流を計測する電流計測手段と、が設けられている。通信用集積回路装置は、所定のタイミングにおいて、全ての出力トランジスタをオンとし、その状態でそれぞれの出力端子を流れる電流の計測値を取得し、それぞれの計測値が、予め定められた複数の電流範囲うちどの電流範囲に属するのかを判定し、それぞれの計測値が属する電流範囲の組み合わせに基づいて、通信用集積回路装置の機能を切り替えるように構成されている。通信用集積回路装置の外部において、それぞれの出力端子には、抵抗成分を持つ外部素子が接続されている。それぞれの外部素子の抵抗成分は、それぞれの計測値が属する電流範囲の組み合わせが、通信用集積回路装置の機能を切り替えるための組み合わせとなるように設定されている。   In order to solve the above problems, an electronic control device according to the present invention is an electronic control device including a communication integrated circuit device, and the communication integrated circuit device includes at least two output terminals. In the integrated circuit device for communication, each output terminal is provided with an output transistor connected to the output terminal and a current measuring means for measuring a current flowing through the output terminal. The integrated circuit device for communication turns on all the output transistors at a predetermined timing, acquires measured values of currents flowing through the respective output terminals in that state, and each measured value includes a plurality of predetermined currents. It is configured to determine which current range belongs to the range, and switch the function of the integrated circuit device for communication based on the combination of the current ranges to which the respective measured values belong. An external element having a resistance component is connected to each output terminal outside the integrated circuit device for communication. The resistance component of each external element is set so that the combination of the current ranges to which the respective measured values belong is a combination for switching the function of the communication integrated circuit device.

このような構成の電子制御装置では、全ての出力トランジスタをオンとした状態で、それぞれの出力端子を流れる電流がそれぞれ計測され、それぞれの計測値がどの電流範囲に属するのかが判定される。   In the electronic control device having such a configuration, currents flowing through the respective output terminals are measured in a state where all the output transistors are turned on, and it is determined which current range each measured value belongs to.

このとき、それぞれの計測値が属する電流範囲の組み合わせは、それぞれの外部素子の抵抗成分に対応した組み合わせ、すなわち、電子制御装置のうち通信用集積回路装置の周囲(外側)における回路構成に対応した組み合わせとなる。従って、通信用集積回路装置の周囲における回路構成と、当該通信用集積回路装置に設定されるべき機能との対応関係を予め定めておけば、電流範囲の組み合わせに基づいて通信用集積回路装置の機能の切り替えを行うことができる。   At this time, the combinations of the current ranges to which the respective measured values belong correspond to the combinations corresponding to the resistance components of the respective external elements, that is, the circuit configurations around (outside) the communication integrated circuit device in the electronic control device. It becomes a combination. Accordingly, if the correspondence between the circuit configuration around the communication integrated circuit device and the function to be set in the communication integrated circuit device is determined in advance, the communication integrated circuit device can be configured based on the combination of the current ranges. Function switching can be performed.

このように、本発明に係る電子制御装置では、既存の端子である出力端子を流れる電流に基づいて、通信用集積回路装置の機能の切り替えが行われる。このため、機能の切り替えを行うための専用の端子を、通信用集積回路装置に追加して設ける必要はない。   Thus, in the electronic control device according to the present invention, the function of the communication integrated circuit device is switched based on the current flowing through the output terminal, which is an existing terminal. Therefore, it is not necessary to additionally provide a dedicated terminal for switching functions in the communication integrated circuit device.

本発明によれば、通信用集積回路装置の機能を切り替えることを可能としながらも、機能の切り替えを行うための専用の端子を通信用集積回路装置に設ける必要のない電子制御装置、及び当該電子制御装置を備えた通信システムが提供される。   According to the present invention, it is possible to switch the function of the communication integrated circuit device, but it is not necessary to provide a dedicated terminal for switching the function in the communication integrated circuit device. A communication system including a control device is provided.

本発明の第1実施形態に係る電子制御装置の構成、及び、当該電子制御装置を備えた通信システムの全体構成を示す図である。It is a figure which shows the structure of the electronic control apparatus which concerns on 1st Embodiment of this invention, and the whole structure of the communication system provided with the said electronic control apparatus. 電子制御装置により実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed by an electronic controller. 統括電子制御装置により実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed by the integrated electronic control apparatus. 電子制御装置と統括電子制御装置との間で行われる通信を説明するためのタイムチャートである。It is a time chart for demonstrating the communication performed between an electronic controller and an integrated electronic controller. 端子機能の組み合わせと、設定されるIDとの対応関係を示す表である。It is a table | surface which shows the correspondence of the combination of a terminal function, and ID set. 本発明の第2実施形態に係る電子制御装置の、制御回路の構成を示す図である。It is a figure which shows the structure of the control circuit of the electronic controller which concerns on 2nd Embodiment of this invention. 本発明の第3実施形態に係る電子制御装置の、制御回路の構成を示す図である。It is a figure which shows the structure of the control circuit of the electronic controller which concerns on 3rd Embodiment of this invention.

以下、添付図面を参照しながら本発明の実施形態について説明する。説明の理解を容易にするため、各図面において同一の構成要素に対しては可能な限り同一の符号を付して、重複する説明は省略する。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In order to facilitate the understanding of the description, the same constituent elements in the drawings will be denoted by the same reference numerals as much as possible, and redundant description will be omitted.

本発明の第1実施形態に係る電子制御装置100、200は、統括電子制御装置300とそれぞれ通信を行いながら、車両(不図示)における運転者からの手動操作を認識する、または、各種情報を運転者に報知するためのランプを駆動する電子制御装置である。図1に示されるように、電子制御装置100と統括電子制御装置300との間、及び、電子制御装置200と統括電子制御装置300との間は、それぞれ信号線により接続されている。統括電子制御装置300は、当該信号線を介して電子制御装置100、200のそれぞれとCXPI通信を行うことが可能となっており、これら全体で通信システムCSを構成している。   The electronic control devices 100 and 200 according to the first embodiment of the present invention recognize a manual operation from a driver in a vehicle (not shown) or communicate various information while communicating with the overall electronic control device 300, respectively. It is an electronic control device that drives a lamp for informing the driver. As shown in FIG. 1, the electronic control device 100 and the overall electronic control device 300 and the electronic control device 200 and the overall electronic control device 300 are connected by signal lines, respectively. The overall electronic control device 300 can perform CXPI communication with each of the electronic control devices 100 and 200 via the signal line, and the whole constitutes a communication system CS.

本実施形態では、統括電子制御装置300からの指令信号に対して、それぞれの電子制御装置100、200が順次応答するポーリング方式で通信が行われる。つまり、統括電子制御装置300はマスターとして機能し、電子制御装置100、200はいずれもスレーブとして機能する。以下の説明においては、統括電子制御装置300のことを「マスター300」とも表記する。また、電子制御装置100のことを「第1スレーブ100」とも表記し、電子制御装置200のことを「第2スレーブ200」とも表記する。   In the present embodiment, communication is performed by a polling method in which each of the electronic control devices 100 and 200 sequentially responds to a command signal from the overall electronic control device 300. That is, the overall electronic control device 300 functions as a master, and both the electronic control devices 100 and 200 function as slaves. In the following description, the overall electronic control device 300 is also referred to as “master 300”. The electronic control device 100 is also referred to as “first slave 100”, and the electronic control device 200 is also referred to as “second slave 200”.

先ず、マスター300の構成について説明する。マスター300は、車両に備えられたECUである。マスター300は、第1スレーブ100、第2スレーブ200のそれぞれと所定の周期で通信を行いながら、運転者からの手動操作を認識する、または、各種情報を運転者に報知するためのランプを駆動する。   First, the configuration of the master 300 will be described. Master 300 is an ECU provided in the vehicle. The master 300 drives a lamp for recognizing a manual operation from the driver or notifying the driver of various information while communicating with each of the first slave 100 and the second slave 200 in a predetermined cycle. To do.

尚、本発明の適用範囲は、本実施形態のような運転者からの手動操作を認識する、または、各種情報を運転者に報知するためのランプを駆動するための電子制御装置に限定されない。マスター300により実行される制御は、例えば車両におけるエアコンの制御や、ディファレンシャルの制御であってもよい。   The application range of the present invention is not limited to an electronic control device for recognizing a manual operation from the driver as in the present embodiment or driving a lamp for notifying the driver of various information. The control executed by the master 300 may be, for example, air conditioner control or differential control in the vehicle.

マスター300は、マイコン301と、トランシーバ302とを備えている。マイコン301は、CPU、RAM、ROM等を備えたマイクロコンピュータであって、予め記憶されたプログラムに従って運転者からの手動操作を認識し、手動操作に応じた駆動力制御、並びに、駆動力状態を運転者に報知するための制御を実行するものである。左記制御の実行に必要な情報は、第1スレーブ100及び第2スレーブ200からマスター300へと伝達され、マイコン301における演算に供される。   The master 300 includes a microcomputer 301 and a transceiver 302. The microcomputer 301 is a microcomputer including a CPU, a RAM, a ROM, etc., and recognizes a manual operation from a driver according to a program stored in advance, and controls driving force control and driving force state according to the manual operation. Control for notifying the driver is executed. Information necessary for the execution of the control on the left is transmitted from the first slave 100 and the second slave 200 to the master 300 and used for calculation in the microcomputer 301.

トランシーバ302は、第1スレーブ100等と通信を行うためのインターフェースとなる回路素子である。マイコン301と、第1スレーブ100等との間における通信は、トランシーバ302を介して双方向に行われる。   The transceiver 302 is a circuit element serving as an interface for communicating with the first slave 100 and the like. Communication between the microcomputer 301 and the first slave 100 is performed bidirectionally via the transceiver 302.

第1スレーブ100の構成について説明する。図1に示されるように、第1スレーブ100は、制御回路110と、制御回路110の周囲に配置された抵抗素子181等とを備えている。   The configuration of the first slave 100 will be described. As shown in FIG. 1, the first slave 100 includes a control circuit 110 and a resistance element 181 disposed around the control circuit 110.

制御回路110は、単一のICパッケージとして構成された回路となっている。制御回路110は、電源入力端子101と、信号端子102と、接地端子103と、4つの入出力端子111、112、113、114と、を有している。   The control circuit 110 is a circuit configured as a single IC package. The control circuit 110 includes a power input terminal 101, a signal terminal 102, a ground terminal 103, and four input / output terminals 111, 112, 113, and 114.

電源入力端子101は、制御回路110の動作に必要な電力の供給を受けるための端子である。電源入力端子101には、電力の供給源である電源ラインPS10が接続されている。信号端子102は、マスター300との通信を行うための信号線が接続される端子である。接地端子103は、接地ラインが接続される端子である。   The power input terminal 101 is a terminal for receiving supply of electric power necessary for the operation of the control circuit 110. The power input terminal 101 is connected to a power supply line PS10 that is a power supply source. The signal terminal 102 is a terminal to which a signal line for performing communication with the master 300 is connected. The ground terminal 103 is a terminal to which a ground line is connected.

入出力端子111、112、113、114は、いずれも後述の外部回路10に接続され、外部回路10との間で信号の入出力を行うための端子である。以下では、制御回路110の内部における回路の構成について先に説明を行い、制御回路110の外部において入出力端子111等に接続される回路の構成については後に説明することとする。   Input / output terminals 111, 112, 113, and 114 are all connected to an external circuit 10 described later, and are terminals for inputting / outputting signals to / from the external circuit 10. Hereinafter, the circuit configuration inside the control circuit 110 will be described first, and the circuit configuration connected to the input / output terminal 111 and the like outside the control circuit 110 will be described later.

制御回路110の内部には、増幅器121、122、123、124と、抵抗素子131、132、133、134と、出力トランジスタ141、142、143、144と、電流計測部151、152、153、154と、機能切り替え部160とが備えられている。   Inside the control circuit 110 are amplifiers 121, 122, 123, 124, resistance elements 131, 132, 133, 134, output transistors 141, 142, 143, 144, and current measuring units 151, 152, 153, 154. And a function switching unit 160.

尚、これらのうち機能切り替え部160以外のもの(増幅器121等)は、入出力端子111、112、113、114のそれぞれに対応して一つずつ設けられている。つまり、増幅器121、抵抗素子131、出力トランジスタ141、及び電流計測部151は、入出力端子111に対応するものとして設けられている。また、増幅器122、抵抗素子132、出力トランジスタ142、及び電流計測部152は、入出力端子112に対応するものとして設けられている。増幅器123、抵抗素子133、出力トランジスタ143、及び電流計測部153は、入出力端子113に対応するものとして設けられている。更に、増幅器124、抵抗素子134、出力トランジスタ144、及び電流計測部154は、入出力端子114に対応するものとして設けられている。   Of these, one other than the function switching unit 160 (such as the amplifier 121) is provided for each of the input / output terminals 111, 112, 113, and 114. That is, the amplifier 121, the resistance element 131, the output transistor 141, and the current measurement unit 151 are provided as corresponding to the input / output terminal 111. The amplifier 122, the resistance element 132, the output transistor 142, and the current measurement unit 152 are provided as corresponding to the input / output terminal 112. The amplifier 123, the resistance element 133, the output transistor 143, and the current measurement unit 153 are provided as corresponding to the input / output terminal 113. Further, the amplifier 124, the resistance element 134, the output transistor 144, and the current measurement unit 154 are provided as corresponding to the input / output terminal 114.

制御回路110の内部回路のうち、入出力端子111に接続されている回路について説明する。制御回路110の内部では、入出力端子111と、増幅器121の入力端子とが接続されている。増幅器121は、入出力端子111が入力端子として機能する場合のためのものである。この場合、制御回路110の外部からの信号が入出力端子111に入力されると、当該信号は増幅器121によって増幅された後、制御回路110で処理される。尚、入出力端子111が出力端子として機能する場合には、増幅器121は動作(増幅)を行わない。   Of the internal circuits of the control circuit 110, a circuit connected to the input / output terminal 111 will be described. Inside the control circuit 110, the input / output terminal 111 and the input terminal of the amplifier 121 are connected. The amplifier 121 is used when the input / output terminal 111 functions as an input terminal. In this case, when a signal from the outside of the control circuit 110 is input to the input / output terminal 111, the signal is amplified by the amplifier 121 and then processed by the control circuit 110. When the input / output terminal 111 functions as an output terminal, the amplifier 121 does not operate (amplify).

抵抗素子131及び出力トランジスタ141は、入出力端子111と接地ラインとを繋ぐ電力経路の途中において、直列に並ぶように配置されている。具体的には、出力トランジスタ141のコレクタ端子と、入出力端子111とを繋ぐ電力経路の途中に、抵抗素子131が配置されている。また、出力トランジスタ141のエミッタ端子は、接地ラインに接続されている。   The resistance element 131 and the output transistor 141 are arranged in series in the middle of the power path connecting the input / output terminal 111 and the ground line. Specifically, the resistance element 131 is arranged in the middle of the power path connecting the collector terminal of the output transistor 141 and the input / output terminal 111. The emitter terminal of the output transistor 141 is connected to the ground line.

出力トランジスタ141は、入出力端子111が出力端子として機能する場合のためのものである。この場合、出力トランジスタ141がオンの状態(コレクタ端子からエミッタ端子に電流が流れる状態)と、出力トランジスタ141がオフの状態(コレクタ端子からエミッタ端子に電流が流れない状態)とが切り替えられることにより、信号が入出力端子111から外部へと出力される。尚、入出力端子111が入力端子として機能する場合には、出力トランジスタ141はオフの状態のままとなり、動作を行わない。   The output transistor 141 is used when the input / output terminal 111 functions as an output terminal. In this case, the output transistor 141 is switched on (the current flows from the collector terminal to the emitter terminal) and the output transistor 141 is switched off (the current does not flow from the collector terminal to the emitter terminal). A signal is output from the input / output terminal 111 to the outside. When the input / output terminal 111 functions as an input terminal, the output transistor 141 remains off and does not operate.

電流計測部151は、抵抗素子131の両端に生じた電位差を計測し、これに基づいて抵抗素子131を流れる電流、すなわち入出力端子111を流れる電流を計測するものである。電流の計測値は、後述の機能切り替え部160に伝達される。   The current measuring unit 151 measures a potential difference generated at both ends of the resistance element 131, and measures a current flowing through the resistance element 131, that is, a current flowing through the input / output terminal 111 based on the potential difference. The measured current value is transmitted to a function switching unit 160 described later.

入出力端子111以外の入出力端子(112、113、114)に接続されている回路は、入出力端子111に接続されている上記回路と同様に構成されている。つまり、例えば入出力端子112については、これに対応する増幅器122、抵抗素子132、出力トランジスタ142、及び電流計測部152が、入出力端子111に接続されている回路と同様の回路を構成しており、当該回路が入出力端子112に接続されている。入出力端子113、114についても同様である。   The circuit connected to the input / output terminals (112, 113, 114) other than the input / output terminal 111 is configured in the same manner as the circuit connected to the input / output terminal 111. That is, for example, for the input / output terminal 112, the amplifier 122, the resistance element 132, the output transistor 142, and the current measuring unit 152 corresponding to the input / output terminal 112 constitute a circuit similar to the circuit connected to the input / output terminal 111. The circuit is connected to the input / output terminal 112. The same applies to the input / output terminals 113 and 114.

機能切り替え部160には、入出力端子111、入出力端子112、入出力端子113、及び入出力端子114を流れる電流の計測値(電流計測部151等で計測された値)がそれぞれ伝達される。機能切り替え部160は、これら4つの計測値に基づいて、制御回路110の機能を切り替える。制御回路110の機能の切り替えについては後に説明する。   The function switching unit 160 receives measured values of the current flowing through the input / output terminal 111, the input / output terminal 112, the input / output terminal 113, and the input / output terminal 114 (values measured by the current measuring unit 151). . The function switching unit 160 switches the function of the control circuit 110 based on these four measurement values. The switching of the function of the control circuit 110 will be described later.

第1スレーブ100のうち、制御回路110の外側に形成された回路について説明する。本実施形態においては、第1スレーブ100は、入出力端子111及び入出力端子112がいずれも入力端子として機能し、入出力端子113及び入出力端子114がいずれも出力端子として機能するように、制御回路110の外側の回路が構成されている。   Of the first slave 100, a circuit formed outside the control circuit 110 will be described. In the present embodiment, in the first slave 100, the input / output terminal 111 and the input / output terminal 112 both function as input terminals, and the input / output terminal 113 and the input / output terminal 114 both function as output terminals. A circuit outside the control circuit 110 is configured.

入出力端子111に接続された回路について説明する。入出力端子111には、抵抗素子181と、コンデンサ171と、抵抗素子191とが接続されている。   A circuit connected to the input / output terminal 111 will be described. A resistance element 181, a capacitor 171, and a resistance element 191 are connected to the input / output terminal 111.

抵抗素子181は、入出力端子111と、後述の外部回路10(スイッチ11)とを繋ぐ電力経路の途中に配置されている。コンデンサ171は、入出力端子111と抵抗素子181とを繋ぐ電力経路と、接地ラインとの間に配置されている。抵抗素子191は、抵抗素子181と外部回路10とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子181、コンデンサ171、及び抵抗素子191は、入出力端子111と外部回路10との間においてフィルタ回路を形成している。   The resistance element 181 is disposed in the middle of a power path that connects the input / output terminal 111 and an external circuit 10 (switch 11) described later. The capacitor 171 is disposed between a power path connecting the input / output terminal 111 and the resistance element 181 and the ground line. The resistance element 191 is disposed between a power path connecting the resistance element 181 and the external circuit 10 and the ground line. The resistor element 181, the capacitor 171, and the resistor element 191 arranged in this way form a filter circuit between the input / output terminal 111 and the external circuit 10.

入出力端子112に接続された回路について説明する。入出力端子112には、抵抗素子182と、コンデンサ172と、抵抗素子192とが接続されている。   A circuit connected to the input / output terminal 112 will be described. A resistor element 182, a capacitor 172, and a resistor element 192 are connected to the input / output terminal 112.

抵抗素子182は、入出力端子112と、外部回路10(スイッチ12)とを繋ぐ電力経路の途中に配置されている。コンデンサ172は、入出力端子112と抵抗素子182とを繋ぐ電力経路と、接地ラインとの間に配置されている。抵抗素子192は、抵抗素子182と外部回路10とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子182、コンデンサ172、及び抵抗素子192は、入出力端子112と外部回路10との間においてフィルタ回路を形成している。   The resistance element 182 is disposed in the middle of the power path connecting the input / output terminal 112 and the external circuit 10 (switch 12). The capacitor 172 is disposed between the power path connecting the input / output terminal 112 and the resistance element 182 and the ground line. The resistance element 192 is disposed between the power path connecting the resistance element 182 and the external circuit 10 and the ground line. The resistor element 182, the capacitor 172, and the resistor element 192 arranged in this way form a filter circuit between the input / output terminal 112 and the external circuit 10.

以上のように、入力端子として機能する入出力端子111及び入出力端子112の外側には、互いに同様の構成のフィルタ回路が形成されている。それぞれのフィルタ回路のインピーダンス(抵抗素子181、182の抵抗値といってもよい)は、比較的大きくなっている。   As described above, filter circuits having the same configuration are formed outside the input / output terminals 111 and 112 that function as input terminals. The impedance of each filter circuit (which may be referred to as the resistance value of the resistance elements 181 and 182) is relatively large.

入出力端子113に接続された回路について説明する。入出力端子113には、抵抗素子183と、コンデンサ193とが接続されている。   A circuit connected to the input / output terminal 113 will be described. A resistance element 183 and a capacitor 193 are connected to the input / output terminal 113.

抵抗素子183は、入出力端子113と、外部回路10(発光素子13)とを繋ぐ電力経路の途中に配置されている。コンデンサ193は、抵抗素子183と外部回路10とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子183及びコンデンサ193は、入出力端子113と外部回路10との間においてフィルタ回路を形成している。   The resistance element 183 is disposed in the middle of the electric power path connecting the input / output terminal 113 and the external circuit 10 (light emitting element 13). The capacitor 193 is disposed between the power path connecting the resistance element 183 and the external circuit 10 and the ground line. The resistor element 183 and the capacitor 193 arranged in this way form a filter circuit between the input / output terminal 113 and the external circuit 10.

入出力端子114に接続された回路について説明する。入出力端子114には、抵抗素子184と、コンデンサ194とが接続されている。   A circuit connected to the input / output terminal 114 will be described. A resistance element 184 and a capacitor 194 are connected to the input / output terminal 114.

抵抗素子184は、入出力端子114と、外部回路10(発光素子14)とを繋ぐ電力経路の途中に配置されている。コンデンサ194は、抵抗素子184と外部回路10とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子184及びコンデンサ194は、入出力端子114と外部回路10との間においてフィルタ回路を形成している。   The resistance element 184 is disposed in the middle of the power path connecting the input / output terminal 114 and the external circuit 10 (light emitting element 14). Capacitor 194 is disposed between the power path connecting resistance element 184 and external circuit 10 and the ground line. The resistance element 184 and the capacitor 194 arranged in this way form a filter circuit between the input / output terminal 114 and the external circuit 10.

以上のように、出力端子として機能する入出力端子113及び入出力端子114の外側には、互いに同様の構成のフィルタ回路が形成されている。それぞれのフィルタ回路のインピーダンス(抵抗素子183、184の抵抗値といってもよい)は、比較的小さくなっている。   As described above, filter circuits having the same configuration are formed outside the input / output terminals 113 and 114 that function as output terminals. The impedance of each filter circuit (which may be referred to as the resistance value of the resistance elements 183 and 184) is relatively small.

外部回路10について説明する。外部回路10は、スイッチ11、12と、発光素子13、14とを有している。尚、これらスイッチ11等は、車両の各部において個別に設けられたものである。本説明における「外部回路10」とは、これらの総称である。   The external circuit 10 will be described. The external circuit 10 includes switches 11 and 12 and light emitting elements 13 and 14. The switches 11 and the like are individually provided in each part of the vehicle. The “external circuit 10” in this description is a generic name for these.

スイッチ11は、電源ラインPS11と、抵抗素子181との間に配置されている。スイッチ11がオン(閉状態)になると、電源ラインPS11の電圧がフィルタ回路を介して入出力端子111に入力される。スイッチ11がオフ(開状態)になると、入出力端子111には電圧が入力されなくなる。つまり、スイッチ11のオン、オフが切り替えられることにより、入出力端子111に入力される電圧が変化する。当該電圧の変化が、信号として増幅器121に入力される。このようなスイッチ11は、例えば、車両の運転席に配置され、運転者により手動操作されるスイッチである。   The switch 11 is disposed between the power supply line PS11 and the resistance element 181. When the switch 11 is turned on (closed state), the voltage of the power supply line PS11 is input to the input / output terminal 111 via the filter circuit. When the switch 11 is turned off (opened), no voltage is input to the input / output terminal 111. That is, the voltage input to the input / output terminal 111 is changed by switching the switch 11 on and off. The change in the voltage is input to the amplifier 121 as a signal. Such a switch 11 is, for example, a switch that is disposed in the driver's seat of the vehicle and is manually operated by the driver.

スイッチ12は、電源ラインPS12と、抵抗素子182との間に配置されている。スイッチ12がオン(閉状態)になると、電源ラインPS12の電圧がフィルタ回路を介して入出力端子112に入力される。スイッチ12がオフ(開状態)になると、入出力端子112には電圧が入力されなくなる。つまり、スイッチ12のオン、オフが切り替えられることにより、入出力端子112に入力される電圧が変化する。当該電圧の変化が、信号として増幅器122に入力される。このようなスイッチ12は、例えば、車両の運転席に配置され、運転者により手動操作されるスイッチである。   The switch 12 is disposed between the power supply line PS12 and the resistance element 182. When the switch 12 is turned on (closed state), the voltage of the power supply line PS12 is input to the input / output terminal 112 through the filter circuit. When the switch 12 is turned off (opened), no voltage is input to the input / output terminal 112. That is, the voltage input to the input / output terminal 112 is changed by switching the switch 12 on and off. The change in the voltage is input to the amplifier 122 as a signal. Such a switch 12 is, for example, a switch that is disposed in the driver's seat of the vehicle and is manually operated by the driver.

発光素子13は、電源ラインPS13と、抵抗素子183との間に配置された発光ダイオードである。出力トランジスタ143がオンになると、電源ラインPS13からの電流が流れることによって発光素子13が発光する。出力トランジスタ143がオフになると、電源ラインPS13からの電流が遮断され、発光素子13が発光しなくなる。このような発光素子13は、例えば、点灯することにより各種情報(シフトレバーの状態等)を運転者に報知するためのランプである。   The light emitting element 13 is a light emitting diode disposed between the power supply line PS13 and the resistance element 183. When the output transistor 143 is turned on, the light emitting element 13 emits light due to the current flowing from the power supply line PS13. When the output transistor 143 is turned off, the current from the power supply line PS13 is cut off, and the light emitting element 13 does not emit light. Such a light emitting element 13 is, for example, a lamp for notifying a driver of various information (shift lever state and the like) by lighting.

発光素子14は、電源ラインPS14と、抵抗素子184との間に配置された発光ダイオードである。出力トランジスタ144がオンになると、電源ラインPS14からの電流が流れることによって発光素子14が発光する。出力トランジスタ144がオフになると、電源ラインPS14からの電流が遮断され、発光素子14が発光しなくなる。このような発光素子14は、例えば、点灯することにより各種情報(シフトレバーの状態等)を運転者に報知するためのランプである。   The light emitting element 14 is a light emitting diode disposed between the power supply line PS14 and the resistance element 184. When the output transistor 144 is turned on, the light emitting element 14 emits light due to the current flowing from the power supply line PS14. When the output transistor 144 is turned off, the current from the power supply line PS14 is cut off, and the light emitting element 14 does not emit light. Such a light emitting element 14 is, for example, a lamp for notifying the driver of various information (such as the state of the shift lever) by turning on.

第2スレーブ200の構成について説明する。第2スレーブ200は、制御回路210と、制御回路210の周囲に配置された抵抗素子281等とを備えている。   The configuration of the second slave 200 will be described. The second slave 200 includes a control circuit 210, a resistance element 281 disposed around the control circuit 210, and the like.

制御回路210は、単一のICパッケージとして構成された回路となっており、その構成は制御回路110の構成と同一である。以下の説明では、制御回路210を構成する各要素(例えば増幅器221)に、これと対応する制御回路110の要素の符号を100番台から200番台に変更して表記することとする。例えば、制御回路210のうち、制御回路110の増幅器121に対応する増幅器は、「増幅器221」と表記する。   The control circuit 210 is a circuit configured as a single IC package, and the configuration is the same as the configuration of the control circuit 110. In the following description, the elements of the control circuit 210 (for example, the amplifier 221) are represented by changing the reference numerals of the elements of the control circuit 110 corresponding to the elements from the 100s to the 200s. For example, an amplifier corresponding to the amplifier 121 of the control circuit 110 in the control circuit 210 is expressed as “amplifier 221”.

制御回路110の場合と同様に、制御回路210の電源入力端子201は、制御回路210の動作に必要な電力の供給を受けるための端子である。電源入力端子201には、電力の供給源である電源ラインPS20が接続されている。信号端子202は、マスター300との通信を行うための信号線が接続される端子である。接地端子203は、接地ラインが接続される端子である。   As in the case of the control circuit 110, the power input terminal 201 of the control circuit 210 is a terminal for receiving supply of power necessary for the operation of the control circuit 210. The power input terminal 201 is connected to a power line PS20 that is a power supply source. The signal terminal 202 is a terminal to which a signal line for performing communication with the master 300 is connected. The ground terminal 203 is a terminal to which a ground line is connected.

入出力端子211、212、213、214は、いずれも後述の外部回路20に接続され、外部回路20との間で信号の入出力を行うための端子である。   Input / output terminals 211, 212, 213, and 214 are all connected to an external circuit 20 described later, and are terminals for inputting / outputting signals to / from the external circuit 20.

第2スレーブ200のうち、制御回路210の外側に形成された回路について説明する。本実施形態においては、第2スレーブ200は、入出力端子211及び入出力端子212がいずれも出力端子として機能し、入出力端子213及び入出力端子214がいずれも入力端子として機能するように、制御回路210の外側の回路が構成されている。   Of the second slave 200, a circuit formed outside the control circuit 210 will be described. In the present embodiment, in the second slave 200, the input / output terminal 211 and the input / output terminal 212 both function as output terminals, and the input / output terminal 213 and the input / output terminal 214 both function as input terminals. A circuit outside the control circuit 210 is configured.

入出力端子211に接続された回路について説明する。入出力端子211には、抵抗素子281と、コンデンサ291とが接続されている。   A circuit connected to the input / output terminal 211 will be described. A resistance element 281 and a capacitor 291 are connected to the input / output terminal 211.

抵抗素子281は、入出力端子211と、外部回路20(発光素子21)とを繋ぐ電力経路の途中に配置されている。コンデンサ291は、抵抗素子281と外部回路20とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子281及びコンデンサ291は、入出力端子211と外部回路20との間においてフィルタ回路を形成している。   The resistance element 281 is disposed in the middle of the power path connecting the input / output terminal 211 and the external circuit 20 (light emitting element 21). Capacitor 291 is arranged between the power path connecting resistance element 281 and external circuit 20 and the ground line. The resistance element 281 and the capacitor 291 arranged in this way form a filter circuit between the input / output terminal 211 and the external circuit 20.

入出力端子212に接続された回路について説明する。入出力端子212には、抵抗素子282と、コンデンサ292とが接続されている。   A circuit connected to the input / output terminal 212 will be described. A resistance element 282 and a capacitor 292 are connected to the input / output terminal 212.

抵抗素子282は、入出力端子212と、外部回路20(発光素子22)とを繋ぐ電力経路の途中に配置されている。コンデンサ292は、抵抗素子282と外部回路20とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子282及びコンデンサ292は、入出力端子212と外部回路20との間においてフィルタ回路を形成している。   The resistance element 282 is disposed in the middle of the power path connecting the input / output terminal 212 and the external circuit 20 (light emitting element 22). Capacitor 292 is arranged between the power path connecting resistance element 282 and external circuit 20 and the ground line. The resistance element 282 and the capacitor 292 arranged in this way form a filter circuit between the input / output terminal 212 and the external circuit 20.

以上のように、出力端子として機能する入出力端子211及び入出力端子212の外側には、互いに同様の構成のフィルタ回路が形成されている。それぞれのフィルタ回路のインピーダンス(抵抗素子281、282の抵抗値といってもよい)は、比較的小さくなっている。   As described above, filter circuits having the same configuration are formed outside the input / output terminals 211 and 212 that function as output terminals. The impedance of each filter circuit (which may be called the resistance value of the resistance elements 281 and 282) is relatively small.

入出力端子213に接続された回路について説明する。入出力端子213には、抵抗素子283と、コンデンサ273と、抵抗素子293とが接続されている。   A circuit connected to the input / output terminal 213 will be described. A resistance element 283, a capacitor 273, and a resistance element 293 are connected to the input / output terminal 213.

抵抗素子283は、入出力端子213と、外部回路20(スイッチ23)とを繋ぐ電力経路の途中に配置されている。コンデンサ273は、入出力端子213と抵抗素子283とを繋ぐ電力経路と、接地ラインとの間に配置されている。抵抗素子293は、抵抗素子283と外部回路20とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子283、コンデンサ273、及び抵抗素子293は、入出力端子213と外部回路20との間においてフィルタ回路を形成している。   The resistance element 283 is disposed in the middle of the power path connecting the input / output terminal 213 and the external circuit 20 (switch 23). The capacitor 273 is disposed between the power path connecting the input / output terminal 213 and the resistance element 283 and the ground line. The resistance element 293 is disposed between the power path connecting the resistance element 283 and the external circuit 20 and the ground line. The resistor element 283, the capacitor 273, and the resistor element 293 arranged in this way form a filter circuit between the input / output terminal 213 and the external circuit 20.

入出力端子214に接続された回路について説明する。入出力端子214には、抵抗素子284と、コンデンサ274と、抵抗素子294とが接続されている。   A circuit connected to the input / output terminal 214 will be described. A resistance element 284, a capacitor 274, and a resistance element 294 are connected to the input / output terminal 214.

抵抗素子284は、入出力端子214と、外部回路20(スイッチ24)とを繋ぐ電力経路の途中に配置されている。コンデンサ274は、入出力端子214と抵抗素子284とを繋ぐ電力経路と、接地ラインとの間に配置されている。抵抗素子294は、抵抗素子284と外部回路20とを繋ぐ電力経路と、接地ラインとの間に配置されている。このように配置された抵抗素子284、コンデンサ274、及び抵抗素子294は、入出力端子214と外部回路20との間においてフィルタ回路を形成している。   The resistance element 284 is disposed in the middle of the power path connecting the input / output terminal 214 and the external circuit 20 (switch 24). The capacitor 274 is disposed between the power path connecting the input / output terminal 214 and the resistance element 284 and the ground line. The resistance element 294 is disposed between the power path connecting the resistance element 284 and the external circuit 20 and the ground line. The resistor element 284, the capacitor 274, and the resistor element 294 arranged in this way form a filter circuit between the input / output terminal 214 and the external circuit 20.

以上のように、入力端子として機能する入出力端子213及び入出力端子214の外側には、互いに同様の構成のフィルタ回路が形成されている。それぞれのフィルタ回路のインピーダンス(抵抗素子283、284の抵抗値といってもよい)は、比較的大きくなっている。   As described above, filter circuits having the same configuration are formed outside the input / output terminal 213 and the input / output terminal 214 that function as input terminals. The impedance of each filter circuit (which may be referred to as resistance values of the resistance elements 283 and 284) is relatively large.

外部回路20について説明する。外部回路20は、発光素子21、22と、スイッチ23、24とを有している。尚、これら発光素子21等は、車両の各部において個別に設けられたものである。本説明における「外部回路20」とは、これらの総称である。   The external circuit 20 will be described. The external circuit 20 includes light emitting elements 21 and 22 and switches 23 and 24. The light emitting elements 21 and the like are individually provided in each part of the vehicle. The “external circuit 20” in this description is a general term for these.

発光素子21は、電源ラインPS21と、抵抗素子281との間に配置された発光ダイオードである。出力トランジスタ241がオンになると、電源ラインPS21からの電流が流れることによって発光素子21が発光する。出力トランジスタ241がオフになると、電源ラインPS21からの電流が遮断され、発光素子21が発光しなくなる。このような発光素子21は、例えば、点灯することにより各種情報を運転者に報知するためのランプである。   The light emitting element 21 is a light emitting diode disposed between the power supply line PS21 and the resistance element 281. When the output transistor 241 is turned on, the light emitting element 21 emits light due to the current flowing from the power supply line PS21. When the output transistor 241 is turned off, the current from the power supply line PS21 is cut off, and the light emitting element 21 does not emit light. Such a light emitting element 21 is, for example, a lamp for notifying a driver of various types of information by turning on.

発光素子22は、電源ラインPS22と、抵抗素子282との間に配置された発光ダイオードである。出力トランジスタ242がオンになると、電源ラインPS22からの電流が流れることによって発光素子22が発光する。出力トランジスタ242がオフになると、電源ラインPS22からの電流が遮断され、発光素子22が発光しなくなる。このような発光素子22は、例えば、点灯することにより各種情報を運転者に報知するためのランプである。   The light emitting element 22 is a light emitting diode disposed between the power supply line PS22 and the resistance element 282. When the output transistor 242 is turned on, a current from the power supply line PS22 flows, so that the light emitting element 22 emits light. When the output transistor 242 is turned off, the current from the power supply line PS22 is cut off, and the light emitting element 22 does not emit light. Such a light emitting element 22 is, for example, a lamp for notifying the driver of various types of information by turning on.

スイッチ23は、電源ラインPS23と、抵抗素子283との間に配置されている。スイッチ23がオン(閉状態)になると、電源ラインPS23の電圧がフィルタ回路を介して入出力端子213に入力される。スイッチ23がオフ(開状態)になると、入出力端子213には電圧が入力されなくなる。つまり、スイッチ23のオン、オフが切り替えられることにより、入出力端子213に入力される電圧が変化する。当該電圧の変化が、信号として増幅器223に入力される。このようなスイッチ23は、例えば、車両の運転席に配置され、運転者により手動操作されるスイッチである。   The switch 23 is disposed between the power supply line PS23 and the resistance element 283. When the switch 23 is turned on (closed state), the voltage of the power supply line PS23 is input to the input / output terminal 213 through the filter circuit. When the switch 23 is turned off (opened), no voltage is input to the input / output terminal 213. That is, the voltage input to the input / output terminal 213 changes when the switch 23 is switched on and off. The change in the voltage is input to the amplifier 223 as a signal. Such a switch 23 is, for example, a switch that is disposed in the driver's seat of the vehicle and is manually operated by the driver.

スイッチ24は、電源ラインPS24と、抵抗素子284との間に配置されている。スイッチ24がオン(閉状態)になると、電源ラインPS24の電圧がフィルタ回路を介して入出力端子214に入力される。スイッチ24がオフ(開状態)になると、入出力端子214には電圧が入力されなくなる。つまり、スイッチ24のオン、オフが切り替えられることにより、入出力端子214に入力される電圧が変化する。当該電圧の変化が、信号として増幅器224に入力される。このようなスイッチ24は、例えば、車両の運転席に配置され、運転者により手動操作されるスイッチである。   The switch 24 is disposed between the power supply line PS24 and the resistance element 284. When the switch 24 is turned on (closed state), the voltage of the power supply line PS24 is input to the input / output terminal 214 via the filter circuit. When the switch 24 is turned off (opened), no voltage is input to the input / output terminal 214. That is, the voltage input to the input / output terminal 214 changes as the switch 24 is switched on and off. The change in the voltage is input to the amplifier 224 as a signal. Such a switch 24 is, for example, a switch that is disposed in the driver's seat of the vehicle and is manually operated by the driver.

既に述べたように、本実施形態では、マスター300からの指令信号に対して、第1スレーブ100、第2スレーブ200が順次応答するポーリング方式で通信が行われる。マスター300送信される指令信号には、当該指令信号を受信すべきスレーブ(第1スレーブ100又は第2スレーブ200)を特定するためのIDが付される。当該IDと一致するIDが設定された方のスレーブのみが、その指令信号を受信する。   As already described, in the present embodiment, communication is performed by a polling method in which the first slave 100 and the second slave 200 sequentially respond to the command signal from the master 300. An ID for specifying a slave (first slave 100 or second slave 200) that should receive the command signal is attached to the command signal transmitted from the master 300. Only the slave to which the ID that matches the ID is set receives the command signal.

ところで、第1スレーブ100の制御回路110と、第2スレーブ200の制御回路210とは、互いに同一の構成なのであるから、当初においては互いに異なるIDが設定されていない状態となっている。このため、マスター300との通信を行うためには、制御回路110及び制御回路210のそれぞれに、予め個別のIDが設定される必要がある。すなわち、第1スレーブ100及び第2スレーブ200のそれぞれにおいて、制御回路110等の機能(この場合はID)が切り替えられる必要がある。   Incidentally, since the control circuit 110 of the first slave 100 and the control circuit 210 of the second slave 200 have the same configuration, different IDs are not initially set. For this reason, in order to communicate with the master 300, it is necessary to set individual IDs in advance for each of the control circuit 110 and the control circuit 210. That is, in each of the first slave 100 and the second slave 200, the function (in this case, ID) of the control circuit 110 and the like needs to be switched.

本実施形態では、第1スレーブ100及び第2スレーブ200のそれぞれが、設定されるべきIDを内部で判別し、当該IDの設定を行うように構成されている。IDの設定を行うための具体的な処理について、図2乃至4を参照しながら説明する。   In the present embodiment, each of the first slave 100 and the second slave 200 is configured to internally determine an ID to be set and set the ID. A specific process for setting the ID will be described with reference to FIGS.

図2のフローチャートには、第1スレーブ100及び第2スレーブ200において実行される処理の内容が示されている。図3のフローチャートには、マスター300において実行される処理の内容が示されている。図4のタイムチャートには、第1スレーブ100、第2スレーブ200、及びマスター300のそれぞれにおいて実行される処理、及び、通信システムCSにおける通信状態の概要が示されている。   The flowchart of FIG. 2 shows the contents of processing executed in the first slave 100 and the second slave 200. The flowchart of FIG. 3 shows the contents of processing executed in the master 300. In the time chart of FIG. 4, an outline of processing executed in each of the first slave 100, the second slave 200, and the master 300, and a communication state in the communication system CS is shown.

図4(A)には、第1スレーブ100、第2スレーブ200、及びマスター300に供給される駆動用の電力の変化が示されている。図4(B)には、第1スレーブ100における出力トランジスタ141等の状態(オン又はオフ)の変化が示されている。図4(C)には、IDの設定のために第1スレーブ100の内部で実行される処理が示されている。図4(D)には、第2スレーブ200における出力トランジスタ241等の状態(オン又はオフ)の変化が示されている。図4(E)には、IDの設定のために第2スレーブ200の内部で実行される処理が示されている。図4(F)には、マスター300で行われる処理が示されている。図4(G)には、マスター300と第1スレーブ100との間で行われる情報の送受信、及び、マスター300と第2スレーブ200との間で行われる情報の送受信が示されている。すなわち、通信システムCSにおける通信状態が示されている。   FIG. 4A shows changes in driving power supplied to the first slave 100, the second slave 200, and the master 300. FIG. 4B shows a change in the state (ON or OFF) of the output transistor 141 and the like in the first slave 100. FIG. 4C shows processing executed inside the first slave 100 for setting the ID. FIG. 4D shows a change in the state (ON or OFF) of the output transistor 241 and the like in the second slave 200. FIG. 4E shows processing executed inside the second slave 200 for setting the ID. FIG. 4F shows processing performed by the master 300. FIG. 4G illustrates information transmission / reception performed between the master 300 and the first slave 100 and information transmission / reception performed between the master 300 and the second slave 200. That is, the communication state in the communication system CS is shown.

先ず、図2及び図4を主に参照しながら、第1スレーブ100(制御回路110)で実行される処理について説明する。図2のフローチャートにおける最初のステップS01では、第1スレーブ100に駆動用の電力が供給される(図4(A)の時刻t0)。具体的には、電源ラインPS10からの電力が、電源入力端子101に供給され始める。尚、駆動用の電力の供給は、第1スレーブ100、第2スレーブ200、及びマスター300のそれぞれに対しほぼ同時に開始される。   First, processing executed by the first slave 100 (control circuit 110) will be described with reference mainly to FIGS. In the first step S01 in the flowchart of FIG. 2, driving power is supplied to the first slave 100 (time t0 in FIG. 4A). Specifically, the power from the power line PS10 starts to be supplied to the power input terminal 101. The supply of driving power is started almost simultaneously to each of the first slave 100, the second slave 200, and the master 300.

ステップS01に続くステップS02では、出力トランジスタ141、142、143、144の全てがオンの状態に切り替えられる(図4(B)の時刻t10)。このような出力トランジスタ141等の切り替えは、第1スレーブ100の電源が投入されると直ちに行われ、出力トランジスタ141等の全てにおいて同時に行われる。   In step S02 following step S01, all of the output transistors 141, 142, 143, and 144 are switched on (time t10 in FIG. 4B). Such switching of the output transistor 141 or the like is performed immediately when the power of the first slave 100 is turned on, and is simultaneously performed in all of the output transistors 141 and the like.

ステップS02に続くステップS03では、変数nの値が1とされる。以下では、説明の便宜のため、入出力端子111のことを「第1端子」とも表記する。同様に、入出力端子112、113、114については、それぞれ「第2端子」、「第3端子」、「第4端子」とも表記する。更に、これら第1端子、第2端子、第3端子、第4端子のいずれかを特定して示すために、上記変数nに対応させて「第n端子」の語を用いることがある。   In step S03 following step S02, the value of the variable n is set to 1. Hereinafter, for convenience of explanation, the input / output terminal 111 is also referred to as a “first terminal”. Similarly, the input / output terminals 112, 113, and 114 are also referred to as “second terminal”, “third terminal”, and “fourth terminal”, respectively. Furthermore, in order to specify and indicate any one of the first terminal, the second terminal, the third terminal, and the fourth terminal, the word “nth terminal” may be used in association with the variable n.

これと同様に、入出力端子111に接続された抵抗素子131のことを「第1抵抗」とも表記する。また、抵抗素子132、133、134については、それぞれ「第2抵抗」、「第3抵抗」、「第4抵抗」とも表記する。更に、これら第1抵抗、第2抵抗、第3抵抗、第4抵抗のいずれかを特定して示すために、上記変数nに対応させて「第n抵抗」の語を用いることがある。   Similarly, the resistance element 131 connected to the input / output terminal 111 is also referred to as “first resistance”. The resistance elements 132, 133, and 134 are also referred to as “second resistance”, “third resistance”, and “fourth resistance”, respectively. Further, in order to specify and indicate any one of the first resistance, the second resistance, the third resistance, and the fourth resistance, the term “nth resistance” may be used in association with the variable n.

ステップS03に続くステップS04では、第n抵抗に流れる電流が測定される(図4(C)の時刻t20以降)。ここでは、変数nの値は1であるから、第1抵抗(抵抗素子131)に流れる電流が電流計測部151により計測される。   In step S04 following step S03, the current flowing through the nth resistor is measured (after time t20 in FIG. 4C). Here, since the value of the variable n is 1, the current measurement unit 151 measures the current flowing through the first resistor (resistive element 131).

ところで、それぞれの第n抵抗に流れる電流値は互いに異なるのであるが、当該第n抵抗が接続されている第n端子が入力端子として用いられる場合には、比較的小さな電流値となる傾向がある。逆に、第n端子が出力端子として用いられる場合には、比較的大きな電流値となる傾向がある。   By the way, although the current values flowing through the n-th resistors are different from each other, when the n-th terminal to which the n-th resistor is connected is used as an input terminal, the current value tends to be relatively small. . Conversely, when the nth terminal is used as an output terminal, the current value tends to be relatively large.

例えば、入力端子として用いられる入出力端子111では、抵抗素子181、コンデンサ171、及び抵抗素子191からなるフィルタ回路のインピーダンスが、既に述べたように比較的大きい。このため、スイッチ11がオンの状態であるとすると、電流計測部151により計測される電流値は小さな値となる。また、スイッチ11がオフの状態であるとすると、電流計測部151により計測される電流値は0、すなわち更に小さな値となる。   For example, at the input / output terminal 111 used as the input terminal, the impedance of the filter circuit including the resistor element 181, the capacitor 171, and the resistor element 191 is relatively large as described above. For this reason, if the switch 11 is in an ON state, the current value measured by the current measuring unit 151 is a small value. If the switch 11 is in an OFF state, the current value measured by the current measuring unit 151 is 0, that is, a smaller value.

これに対し、出力端子として用いられる入出力端子113では、抵抗素子183及びコンデンサ193からなるフィルタ回路のインピーダンスが、既に述べたように比較的小さい。このため、電流計測部153により計測される電流値は大きな値となる。   On the other hand, at the input / output terminal 113 used as the output terminal, the impedance of the filter circuit including the resistance element 183 and the capacitor 193 is relatively small as described above. For this reason, the current value measured by the current measuring unit 153 is a large value.

そこで、本実施形態では、第n端子が入力端子として用いられる構成なのか、それとも出力端子として用いられる構成なのかを、第n抵抗における電流値の大きさに基づいて判定することとしている。   Therefore, in this embodiment, it is determined based on the magnitude of the current value in the nth resistor whether the nth terminal is used as an input terminal or an output terminal.

ステップS04に続くステップS05では、ステップS04で測定された電流値が所定の閾値以上であるか否かが判定される。当該閾値は、第n端子が入力端子として用いられた際において計測され得る電流値の範囲と、第n端子が出力端子として用いられた際において計測され得る電流値の範囲と、の間の値として設定された閾値である。   In step S05 following step S04, it is determined whether or not the current value measured in step S04 is greater than or equal to a predetermined threshold value. The threshold value is a value between a current value range that can be measured when the nth terminal is used as an input terminal and a current value range that can be measured when the nth terminal is used as an output terminal. Is a threshold value set as.

ステップS04において、電流値が閾値以上である場合には、第n端子(ここでは第1端子)は出力端子であると判定される(ステップS06)。すなわち、第n端子の端子機能が「出力」と判定される。一方、電流値が閾値未満である場合には、第n端子(ここでは第1端子)は入力端子であると判定される(ステップS07)。すなわち、第n端子の端子機能が「入力」と判定される。電流値に基づく端子機能の判定は、機能切り替え部160において行われる。   If the current value is greater than or equal to the threshold value in step S04, it is determined that the nth terminal (here, the first terminal) is an output terminal (step S06). That is, the terminal function of the nth terminal is determined as “output”. On the other hand, when the current value is less than the threshold value, it is determined that the nth terminal (here, the first terminal) is an input terminal (step S07). That is, the terminal function of the nth terminal is determined as “input”. The function switching unit 160 determines the terminal function based on the current value.

ステップS06及びステップS07に続くステップS08では、変数nの値に1が加算される。ここでは、変数nの値が1から2に変化する。   In step S08 following step S06 and step S07, 1 is added to the value of variable n. Here, the value of the variable n changes from 1 to 2.

ステップS08に続くステップS09では、変数nの値が5であるか否かが判定される。変数nの値が5未満であれば、ステップS04に戻り、ステップS09までの処理が再度実行される。その結果、端子機能の判定が、第2端子、第3端子、第4端子のそれぞれについても上記と同様に行われる。   In step S09 following step S08, it is determined whether or not the value of the variable n is 5. If the value of the variable n is less than 5, the process returns to step S04, and the process up to step S09 is executed again. As a result, the terminal function is determined in the same manner as described above for each of the second terminal, the third terminal, and the fourth terminal.

変数nの値が5となったとき、すなわち、第1端子、第2端子、第3端子、及び第4端子の全てについて上記判定が行われた後には、ステップS09からステップS10に移行する。ステップS10では、制御回路110のIDの設定、すなわち制御回路110(第1スレーブ100)の機能の切り替えが行われる(図4(C)の時刻t35以降)。   When the value of the variable n becomes 5, that is, after the above determination is made for all of the first terminal, the second terminal, the third terminal, and the fourth terminal, the process proceeds from step S09 to step S10. In step S10, the ID of the control circuit 110 is set, that is, the function of the control circuit 110 (first slave 100) is switched (after time t35 in FIG. 4C).

制御回路110の機能の切り替えについて、図5を参照しながら説明する。本実施形態では、それぞれの入出力端子(第1端子、第2端子、第3端子、第4端子)について判定された端子機能(「入力」又は「出力」)の組み合わせに対応するように、制御回路110に設定されるべきIDが予め定められている。図5は、端子機能の組み合わせとIDとの対応関係を示す表である。   The switching of the function of the control circuit 110 will be described with reference to FIG. In the present embodiment, in order to correspond to the combination of terminal functions (“input” or “output”) determined for each input / output terminal (first terminal, second terminal, third terminal, fourth terminal), An ID to be set in the control circuit 110 is predetermined. FIG. 5 is a table showing the correspondence between terminal function combinations and IDs.

本実施形態の制御回路110の場合、各入出力端子の端子機能は、第1端子が「入力」であり、第2端子が「入力」であり、第3端子が「出力」であり、第4端子が「出力」である。図5の矢印AR1で示されるように、このような端子機能の組み合わせに対応するIDは「5Bh」となっている。このため、設定されるべきIDは「5Bh」と判定され、制御回路110のIDは「5Bh」に設定される。IDの判定及び設定は、機能切り替え部160において行われる。   In the case of the control circuit 110 of this embodiment, the terminal function of each input / output terminal is that the first terminal is “input”, the second terminal is “input”, the third terminal is “output”, 4 terminals are “output”. As indicated by an arrow AR1 in FIG. 5, the ID corresponding to such a combination of terminal functions is “5Bh”. For this reason, the ID to be set is determined to be “5Bh”, and the ID of the control circuit 110 is set to “5Bh”. ID determination and setting are performed by the function switching unit 160.

制御回路110のIDが上記のように設定されると(図4(C)の時刻t40)、ステップS11に移行する。ステップS11では、出力トランジスタ141、142、143、144の全てがオフの状態に切り替えられる(図4(B)の時刻t40)。このような出力トランジスタ141等の切り替えは、機能切り替え部160におけるIDの設定が完了すると直ちに行われ、出力トランジスタ141等の全てにおいて同時に行われる。   When the ID of the control circuit 110 is set as described above (time t40 in FIG. 4C), the process proceeds to step S11. In step S11, all of the output transistors 141, 142, 143, and 144 are switched to an off state (time t40 in FIG. 4B). Such switching of the output transistor 141 and the like is performed immediately after the setting of the ID in the function switching unit 160 is completed, and is performed simultaneously in all of the output transistors 141 and the like.

ステップS11に続くステップS12では、マスター300から要求信号が送信され、かかる要求信号が第1スレーブ100により受信される(図4(G)の時刻t60)。第1スレーブ100は、マスター300からの要求信号を受信すると、ステップS13に移行する。ステップS13では、第1スレーブ100は、上記要求信号に対する応答信号をマスター300に送信する。   In step S12 following step S11, a request signal is transmitted from the master 300, and the request signal is received by the first slave 100 (time t60 in FIG. 4G). When receiving the request signal from the master 300, the first slave 100 proceeds to step S13. In step S <b> 13, the first slave 100 transmits a response signal to the request signal to the master 300.

尚、マスター300から送信される要求信号には、当該要求信号の送信先となるスレーブのIDが付されている。第1スレーブ100は、制御回路110に設定されたIDと同一のIDが付された要求信号のみを受信し、これに応じた応答信号の送信を行う。換言すれば、制御回路110に設定されたIDと異なるIDが付された要求信号が、制御回路110に到達しても、制御回路110は応答信号を送信しない。   The request signal transmitted from the master 300 is assigned the ID of the slave that is the transmission destination of the request signal. The first slave 100 receives only a request signal with the same ID as the ID set in the control circuit 110, and transmits a response signal according to the request signal. In other words, even when a request signal with an ID different from the ID set in the control circuit 110 reaches the control circuit 110, the control circuit 110 does not transmit a response signal.

図4(G)では、マスター300から第1スレーブ100へ要求信号(ID:5Bh)の送信が開始される時刻を時刻t60とし、当該要求信号の送信が停止される時刻を時刻t61としている。また、第1スレーブ100へ送信される要求信号には符号SG1を付している。   In FIG. 4G, the time when transmission of the request signal (ID: 5Bh) from the master 300 to the first slave 100 is started is time t60, and the time when transmission of the request signal is stopped is time t61. Further, the request signal transmitted to the first slave 100 is denoted by reference numeral SG1.

更に、図4(G)では、第1スレーブ100から応答信号の送信が開始される時刻を時刻t62とし、当該応答信号の送信が停止される時刻を時刻t63としている。また、第1スレーブ100から送信される応答信号には符号RG1を付している。   Further, in FIG. 4G, the time when transmission of the response signal is started from the first slave 100 is time t62, and the time when transmission of the response signal is stopped is time t63. Further, the response signal transmitted from the first slave 100 is denoted by reference numeral RG1.

マスター300への応答信号の送信が行われ、通信状態が正常であることが確認された後(図4(G)の時刻t70以降)は、マスター300と第1スレーブ100との間で通常の通信が開始される(ステップS14)。具体的には、マスター300からの指令信号が第1スレーブ100に送信され、第1スレーブ100は、当該指令信号に応じた情報を含む信号をマスター300に送信する。このとき、第1スレーブ100は、出力トランジスタ141等の状態を必要に応じて切り替える。   After the response signal is transmitted to the master 300 and it is confirmed that the communication state is normal (after time t70 in FIG. 4G), a normal signal is transmitted between the master 300 and the first slave 100. Communication is started (step S14). Specifically, a command signal from the master 300 is transmitted to the first slave 100, and the first slave 100 transmits a signal including information corresponding to the command signal to the master 300. At this time, the first slave 100 switches the state of the output transistor 141 and the like as necessary.

要求信号の場合と同様に、マスター300から送信される指令信号にも、当該指令信号の送信先となるスレーブのIDが付されている。第1スレーブ100は、制御回路110に設定されたIDと同一のIDが付された指令信号のみを受信し、これに応じた処理を行う。換言すれば、制御回路110に設定されたIDと異なるIDが付された指令信号が、制御回路110に到達しても、制御回路110はこれに応じた処理を行わない。   As in the case of the request signal, the command signal transmitted from the master 300 is also given the ID of the slave that is the destination of the command signal. The first slave 100 receives only a command signal having the same ID as the ID set in the control circuit 110, and performs a process corresponding thereto. In other words, even if a command signal with an ID different from the ID set in the control circuit 110 reaches the control circuit 110, the control circuit 110 does not perform processing corresponding thereto.

図4に示される例では、時刻t75から時刻t80までの期間において、マスター300から指令信号(SG11)が送信されている。また、時刻t81から時刻t82までの期間において、第1スレーブ100からマスター300へと信号(RG11)が送信されている。また、時刻t80以降は、出力トランジスタ143、144のそれぞれの開閉動作が行われ、入出力端子113、114のそれぞれからの信号の送信(本実施形態の場合、発光素子13、14の点灯又は消灯)が行われている。以降においても、マスター300からの指令信号の送信と、これに対する第1スレーブ100からの信号の送信とが繰り返されている。   In the example shown in FIG. 4, a command signal (SG11) is transmitted from the master 300 during the period from time t75 to time t80. Further, a signal (RG11) is transmitted from the first slave 100 to the master 300 during the period from time t81 to time t82. In addition, after time t80, the output transistors 143 and 144 are opened and closed, and signals are transmitted from the input / output terminals 113 and 114 (in this embodiment, the light emitting elements 13 and 14 are turned on or off). ) Is done. Thereafter, the transmission of the command signal from the master 300 and the transmission of the signal from the first slave 100 are repeated.

以上、第1スレーブ100で実行される処理、及びマスター300と第1スレーブ100との間で実行される通信について説明した。第2スレーブ200で実行される処理、及びマスター300と第2スレーブ200との間で実行される通信についても、これまでに説明した第1スレーブ100の場合と同様に行われる。このため、第2スレーブ200については、第1スレーブ100の場合と重複した説明を省略し、簡単な説明のみを行うこととする。   The processing executed by the first slave 100 and the communication executed between the master 300 and the first slave 100 have been described above. The processing executed by the second slave 200 and the communication executed between the master 300 and the second slave 200 are also performed in the same manner as in the case of the first slave 100 described so far. For this reason, the second slave 200 will not be described in duplicate with the case of the first slave 100, and only a brief description will be given.

第2スレーブ200における、第n抵抗に流れる電流値の測定、及び電流値に基づくIDの設定は、第1スレーブ100におけるそれぞれの処理と並行して行われる。   The measurement of the current value flowing through the nth resistor in the second slave 200 and the setting of the ID based on the current value are performed in parallel with the respective processes in the first slave 100.

図4(E)では、第2スレーブ200において電流値の測定が開始される時刻t30を、第1スレーブ100において電流値の測定が開始される時刻t20よりも後の時刻とした例が示されている。しかしながら、第1スレーブ100における電流値の測定と、第2スレーブ200における電流値の測定とは、同時刻に開始されてもよい。   FIG. 4E shows an example in which the time t30 when the measurement of the current value is started in the second slave 200 is set to a time after the time t20 when the measurement of the current value is started in the first slave 100. ing. However, the measurement of the current value in the first slave 100 and the measurement of the current value in the second slave 200 may be started at the same time.

また、第2スレーブ200においてIDの設定が完了する時刻(図4(E)ではt50)は、第1スレーブ100においてIDの設定が完了する時刻t40とは異なる時刻であってもよく、同時刻であってもよい。   Also, the time at which the ID setting is completed in the second slave 200 (t50 in FIG. 4E) may be a time different from the time t40 at which the ID setting is completed in the first slave 100. It may be.

第2スレーブ200における各入出力端子の端子機能は、第1端子(入出力端子211)が「出力」であり、第2端子(入出力端子212)が「出力」であり、第3端子(入出力端子213)が「入力」であり、第4端子(入出力端子214)が「入力」である。図5の矢印AR2で示されるように、このような端子機能の組み合わせに対応するIDは「37h」となっている。このため、設定されるべきIDは「37h」と判定され、制御回路210のIDは、「37h」に設定される。   The terminal function of each input / output terminal in the second slave 200 is that the first terminal (input / output terminal 211) is “output”, the second terminal (input / output terminal 212) is “output”, and the third terminal ( The input / output terminal 213) is “input”, and the fourth terminal (input / output terminal 214) is “input”. As indicated by an arrow AR2 in FIG. 5, the ID corresponding to such a combination of terminal functions is “37h”. Therefore, the ID to be set is determined to be “37h”, and the ID of the control circuit 210 is set to “37h”.

IDの設定が完了した後は、第1スレーブ100の場合と同様に、マスター300から第2スレーブ200への要求信号の送信、及び、第2スレーブ200からの応答信号の送信が行われる。   After the ID setting is completed, the request signal is transmitted from the master 300 to the second slave 200 and the response signal is transmitted from the second slave 200, as in the case of the first slave 100.

図4(G)では、マスター300から第2スレーブ200へ要求信号(ID:37h)の送信が開始される時刻を時刻t64とし、当該要求信号の送信が停止される時刻を時刻t65としている。また、第2スレーブ200へ送信される要求信号には符号SG2を付している。   In FIG. 4G, the time when transmission of the request signal (ID: 37h) from the master 300 to the second slave 200 is started is time t64, and the time when transmission of the request signal is stopped is time t65. Further, the request signal transmitted to the second slave 200 is denoted by reference numeral SG2.

更に、図4(G)では、第2スレーブ200から応答信号の送信が開始される時刻を時刻t67とし、当該応答信号の送信が停止される時刻を時刻t70としている。また、第2スレーブ200から送信される応答信号には符号RG2を付している。   Further, in FIG. 4G, the time when transmission of the response signal is started from the second slave 200 is time t67, and the time when transmission of the response signal is stopped is time t70. Further, the response signal transmitted from the second slave 200 is denoted by reference numeral RG2.

マスター300と第2スレーブ200との間で行われる通常の通信についても、第1スレーブ100の場合と同様である。図4に示される例では、時刻t83から時刻t90までの期間において、マスター300から指令信号(SG12)が送信されている。また、時刻t91から時刻t92までの期間において、第2スレーブ200からマスター300へと信号(RG12)が送信されている。また、時刻t90以降は、出力トランジスタ241、242のそれぞれの開閉動作が行われ、入出力端子211、212のそれぞれからの信号の送信(本実施形態の場合、発光素子21、22の点灯又は消灯)が行われている。以降においても、マスター300からの指令信号の送信と、これに対する第2スレーブ200からの信号の送信とが繰り返されている。   Normal communication performed between the master 300 and the second slave 200 is the same as that of the first slave 100. In the example shown in FIG. 4, the command signal (SG12) is transmitted from the master 300 during the period from time t83 to time t90. Further, a signal (RG12) is transmitted from the second slave 200 to the master 300 during the period from time t91 to time t92. In addition, after time t90, the output transistors 241 and 242 are opened / closed, and signals are transmitted from the input / output terminals 211 and 212 (in this embodiment, the light emitting elements 21 and 22 are turned on or off). ) Is done. Thereafter, the transmission of the command signal from the master 300 and the transmission of the signal from the second slave 200 are repeated.

図3及び図4を参照しながら、マスター300で実行される処理について説明する。最初のステップS21では、マスター300に駆動用の電力が供給される。既に述べたように、マスター300への電力の供給は、第1スレーブ100及び第2スレーブ200への電力の供給と同時に開始される(図4(A)の時刻t0)。   Processing executed by the master 300 will be described with reference to FIGS. In the first step S <b> 21, driving power is supplied to the master 300. As described above, the supply of power to the master 300 is started simultaneously with the supply of power to the first slave 100 and the second slave 200 (time t0 in FIG. 4A).

ステップS21に続くステップS22では、供給されている駆動用電力の電圧値が所定値以上となり、且つそのような状態が一定時間継続されたかどうかが判定される。ここでいう「所定値」とは、第1スレーブ100、第2スレーブ200、及びマスター300のそれぞれが動作するために最低限必要となる電圧値のことである。また、「一定時間」とは、第1スレーブ100におけるIDの設定と、及び第2スレーブ200におけるIDの設定とが、いずれも完了した状態となるまでに最低限必要となる処理時間のことである。   In step S22 following step S21, it is determined whether or not the voltage value of the supplied driving power is equal to or greater than a predetermined value and such a state has been continued for a predetermined time. Here, the “predetermined value” is a voltage value that is at least required for the first slave 100, the second slave 200, and the master 300 to operate. In addition, the “certain time” is a processing time that is required at least before the ID setting in the first slave 100 and the ID setting in the second slave 200 are both completed. is there.

電圧値が所定値以上である状態が一定時間継続していれば、ステップS23に移行する。それ以外の場合には、ステップS22の処理が繰り返される。   If the state where the voltage value is equal to or greater than the predetermined value continues for a certain time, the process proceeds to step S23. In other cases, the process of step S22 is repeated.

つまり、駆動用電力の電圧値が所定値以上である状態が一定時間継続するまでの間は、マスター300は待機状態となる。図4に示される例では、時刻t10から時刻t60までの期間において、マスター300は待機状態となっている。時刻t60は、第1スレーブ100におけるIDの設定が完了する時刻t40よりも後であり、且つ、第2スレーブ200におけるIDの設定が完了する時刻t50よりも後の時刻である。   That is, the master 300 is in a standby state until the state where the voltage value of the driving power is equal to or higher than the predetermined value continues for a certain period of time. In the example shown in FIG. 4, the master 300 is in a standby state during a period from time t10 to time t60. The time t60 is after the time t40 when the setting of the ID in the first slave 100 is completed and after the time t50 when the setting of the ID in the second slave 200 is completed.

ステップS23では、マスター300は、第1スレーブ100及び第2スレーブ200のそれぞれに要求信号を送信する。図4(G)を参照しながら既に述べたように、第1スレーブ100への要求信号(SG1)が先に送信される(時刻t60)。これに対する第1スレーブ100からの応答信号(RG1)が受信されると(時刻t62)、これに続いて第2スレーブ200への要求信号(SG2)が送信される(時刻t64)。   In step S <b> 23, the master 300 transmits a request signal to each of the first slave 100 and the second slave 200. As already described with reference to FIG. 4G, the request signal (SG1) to the first slave 100 is transmitted first (time t60). When a response signal (RG1) from the first slave 100 is received (time t62), a request signal (SG2) to the second slave 200 is subsequently transmitted (time t64).

ステップS23に続くステップS24では、マスター300において全ての応答信号(SG1、SG2)が受信されたかどうかが判定される。全ての応答信号が受信された場合には、第1スレーブ100とマスター300との間における通信、及び、第2スレーブ200とマスター300との間における通信のいずれもが、正常に行われたということである。このため、ステップS25に移行して、通常の通信が開始される。   In step S24 following step S23, it is determined whether or not all response signals (SG1, SG2) have been received by the master 300. When all the response signals are received, both the communication between the first slave 100 and the master 300 and the communication between the second slave 200 and the master 300 are normally performed. That is. For this reason, it transfers to step S25 and normal communication is started.

ステップS24において、いずれかの応答信号が受信されなかった場合には、ステップS26に移行する。ステップS26では、ステップS23の処理が最初に行われてから所定時間が経過したかどうかが判定される。   If any response signal is not received in step S24, the process proceeds to step S26. In step S26, it is determined whether or not a predetermined time has elapsed since the process in step S23 was first performed.

所定時間が経過していなければ、ステップS23に戻り、要求信号の送信が再度実行される。所定時間が経過していれば、ステップS27に移行する。   If the predetermined time has not elapsed, the process returns to step S23 and the request signal is transmitted again. If the predetermined time has elapsed, the process proceeds to step S27.

ステップS27に移行した場合には、何らかの通信異常が生じたと判定される。この場合、第1スレーブ100とマスター300との間における通信、又は、第2スレーブ200とマスター300との間における通信のいずれかが正常に行えないということであるから、図3に示される一連の処理を終了する。以降は、通常の通信は開始されず、エラー処理(例えば、運転者に対する異常の報知)が実行される。   When the process proceeds to step S27, it is determined that some communication abnormality has occurred. In this case, either the communication between the first slave 100 and the master 300 or the communication between the second slave 200 and the master 300 cannot be performed normally, so the series shown in FIG. Terminate the process. Thereafter, normal communication is not started, and error processing (for example, notification of abnormality to the driver) is executed.

以上のように、本実施形態に係る電子制御装置(第1スレーブ100、第2スレーブ200)では、抵抗素子131等を流れる電流に基づいて、入出力端子111等の端子機能が入力か出力かが判定される。その後、それぞれの入出力端子111等の端子機能の組み合わせに基づいて、第1スレーブ100のID、及び第2スレーブ200のIDが設定される(すなわち、制御回路110等の機能が切り替えられる)。   As described above, in the electronic control device (the first slave 100 and the second slave 200) according to the present embodiment, whether the terminal function of the input / output terminal 111 or the like is input or output based on the current flowing through the resistance element 131 or the like. Is determined. Thereafter, the ID of the first slave 100 and the ID of the second slave 200 are set based on the combination of the terminal functions of the input / output terminals 111 and the like (that is, the functions of the control circuit 110 and the like are switched).

尚、それぞれの入出力端子111等には、抵抗素子181等を含むフィルタ回路が接続されている。出力トランジスタ141等がオンのときに、抵抗素子131等を流れる電流の値は、それぞれのフィルタ回路のインピーダンスに応じた値となる。   A filter circuit including a resistance element 181 and the like is connected to each input / output terminal 111 and the like. When the output transistor 141 or the like is on, the value of the current flowing through the resistance element 131 or the like is a value corresponding to the impedance of each filter circuit.

このことは、それぞれの入出力端子111等の端子機能の組み合わせと、設定されるべきIDとの対応関係が、図5に示されたものとなるように、抵抗素子181等のそれぞれの抵抗値が設定されている、ということもできる。   This is because each resistance value of the resistance element 181 or the like is such that the correspondence between the combination of the terminal functions of each input / output terminal 111 and the ID to be set is as shown in FIG. It can be said that is set.

以上のような構成においては、機能の切り替えを行うための専用の端子を、制御回路110等に追加して設ける必要はない。このため、制御回路110等のICパッケージのサイズが大型化してしまうことはない。   In the configuration as described above, it is not necessary to additionally provide a dedicated terminal for switching functions in the control circuit 110 or the like. For this reason, the size of the IC package such as the control circuit 110 does not increase.

本実施形態では、電流計測部151で測定される電流値が、所定の閾値以上である電流範囲に属するのか、それとも当該閾値未満である電流範囲に属するのか、が判定されており、それぞれの電流値が属する電流範囲の組み合わせに基づいて、制御回路110等の機能が切り替えられる。しかしながら、電流範囲の数は上記のような2つの場合に限定されず、3つ以上であってもよい。   In the present embodiment, it is determined whether the current value measured by the current measurement unit 151 belongs to a current range that is equal to or greater than a predetermined threshold value, or belongs to a current range that is less than the threshold value. Based on the combination of current ranges to which the values belong, the functions of the control circuit 110 and the like are switched. However, the number of current ranges is not limited to the two cases as described above, and may be three or more.

また、入出力端子111等の全てが、出力専用端子として構成されている場合であっても、本発明を適用することができる。この場合には、それぞれの出力専用端子の端子機能が判定されることなく、それぞれの電流値が属する電流範囲の組み合わせ自体に基づいて、制御回路110等の機能が切り替えられる。   Further, the present invention can be applied even when all of the input / output terminals 111 and the like are configured as output-only terminals. In this case, the function of the control circuit 110 or the like is switched based on the combination of the current ranges to which each current value belongs without determining the terminal function of each output dedicated terminal.

例えば、予め定めた電流範囲の数を3つとし、それぞれの電流範囲に個別の番号を付しておく。この場合、図5に示される表には、「入力」「出力」の文字に替えて、第n端子の電流値が属する電流範囲の番号、が記入されることとなる。このように作成された表(対応関係)を用いれば、電流計測部151等で計測された各電流値に基づいて、制御回路110等の機能を切り替えることができる。   For example, the number of predetermined current ranges is three, and individual numbers are assigned to the respective current ranges. In this case, in the table shown in FIG. 5, the number of the current range to which the current value of the nth terminal belongs is entered instead of the characters “input” and “output”. By using the table (correspondence relationship) created in this way, the function of the control circuit 110 and the like can be switched based on each current value measured by the current measurement unit 151 and the like.

本実施形態においては、制御回路110等におけるIDの設定、すなわち制御回路110等の機能の切り替えが、通信システムCSの電源投入時において行われる。しかしながら、機能の切り替えが行われるタイミングは、他のタイミングであってもよい。例えば、マスター300と第1スレーブ100との間における通常の通信が行われている時に、マスター300からの指令に応じて、機能の切り替えが再度実行されることとしてもよい。このような態様であれば、制御回路110等の機能が、何らかの原因で意図せぬ機能に切り替わってしまった場合であっても、マスター300からの指令により正しい機能に是正することができる。   In the present embodiment, ID setting in the control circuit 110 or the like, that is, switching of the function of the control circuit 110 or the like is performed when the communication system CS is turned on. However, the timing at which the function is switched may be another timing. For example, when normal communication is performed between the master 300 and the first slave 100, the function switching may be executed again in response to a command from the master 300. With such an aspect, even if the function of the control circuit 110 or the like has been switched to an unintended function for some reason, the correct function can be corrected by a command from the master 300.

続いて、図6を参照しながら、本発明の第2実施形態に係る第1スレーブ100Aについて説明する。図6には、第1スレーブ100Aのうち制御回路110Aのみが示されている。制御回路110Aでは、抵抗素子131等を流れる電流、すなわち入出力端子111等を流れる電流を計測するための電流計測部が、入出力端子111のそれぞれについて個別に(計4つ)設けられているのではなく、1つだけ設けられている。第1スレーブ100Aは、この点においてのみ第1スレーブ100と異なっており、他の構成については第1スレーブ100と同一である。   Next, the first slave 100A according to the second embodiment of the present invention will be described with reference to FIG. FIG. 6 shows only the control circuit 110A of the first slave 100A. In the control circuit 110A, a current measuring unit for measuring a current flowing through the resistance element 131 or the like, that is, a current flowing through the input / output terminal 111 or the like is provided for each of the input / output terminals 111 individually (total of four). Instead, only one is provided. The first slave 100A is different from the first slave 100 only in this point, and the other configuration is the same as the first slave 100.

このような構成の第1スレーブ100Aでは、それぞれの抵抗素子131等を流れる電流が、共通の電流計測部151Aにおいて順次計測されることとなる。このため、電流計測部を4つ設けた第1実施形態に比べて、制御回路110Aのコストを低減することができる。   In the first slave 100A having such a configuration, the currents flowing through the respective resistance elements 131 and the like are sequentially measured by the common current measuring unit 151A. For this reason, the cost of the control circuit 110A can be reduced as compared with the first embodiment in which four current measuring units are provided.

続いて、図7を参照しながら、本発明の第3実施形態に係る第1スレーブ100Bについて説明する。第1スレーブ100Bでは、入出力端子111、112、113、114に加えて、入出力端子115を更に備えた構成となっている。図7には、第1スレーブ100Bのうち、入出力端子115の周囲の構成のみが示されている。   Next, the first slave 100B according to the third embodiment of the present invention will be described with reference to FIG. The first slave 100B further includes an input / output terminal 115 in addition to the input / output terminals 111, 112, 113, and 114. FIG. 7 shows only the configuration around the input / output terminal 115 in the first slave 100B.

第1スレーブ100Bは、制御回路110Bの内部において入出力端子115に接続された回路、及び、制御回路110Bの外部において入出力端子115に接続された回路、が存在する点において、第1スレーブ100と異なっており、他の構成については第1スレーブ100と同一である。   The first slave 100B includes a circuit connected to the input / output terminal 115 inside the control circuit 110B and a circuit connected to the input / output terminal 115 outside the control circuit 110B. The other configurations are the same as those of the first slave 100.

制御回路110Bの内部の回路について説明する。制御回路110の内部には、増幅器125と、抵抗素子135と、出力トランジスタ145と、電流計測部155とが備えられている。増幅器125の入力端子は、入出力端子115に接続されている。増幅器125は、入出力端子115が入力端子として機能する場合のためのものである。この場合、制御回路110の外部からの信号が入出力端子115に入力されると、当該信号は増幅器125によって増幅された後、制御回路110で処理される。尚、入出力端子115が出力端子として機能する場合には、増幅器125は動作(増幅)を行わない。   A circuit inside the control circuit 110B will be described. Inside the control circuit 110, an amplifier 125, a resistance element 135, an output transistor 145, and a current measurement unit 155 are provided. The input terminal of the amplifier 125 is connected to the input / output terminal 115. The amplifier 125 is used when the input / output terminal 115 functions as an input terminal. In this case, when a signal from the outside of the control circuit 110 is input to the input / output terminal 115, the signal is amplified by the amplifier 125 and then processed by the control circuit 110. When the input / output terminal 115 functions as an output terminal, the amplifier 125 does not operate (amplify).

抵抗素子135及び出力トランジスタ145は、入出力端子115と接地ラインとを繋ぐ電力経路の途中において、直列に並ぶように配置されている。具体的には、出力トランジスタ145のコレクタ端子と、入出力端子115とを繋ぐ電力経路の途中に、抵抗素子135が配置されている。また、出力トランジスタ145のエミッタ端子は、接地ラインに接続されている。   The resistor element 135 and the output transistor 145 are arranged in series in the middle of the power path connecting the input / output terminal 115 and the ground line. Specifically, the resistance element 135 is disposed in the middle of the power path connecting the collector terminal of the output transistor 145 and the input / output terminal 115. The emitter terminal of the output transistor 145 is connected to the ground line.

出力トランジスタ145は、入出力端子115が出力端子として機能する場合のためのものである。この場合、出力トランジスタ145がオンの状態(コレクタ端子からエミッタ端子に電流が流れる状態)と、出力トランジスタ145がオフの状態(コレクタ端子からエミッタ端子に電流が流れない状態)とが切り替えられることにより、信号が入出力端子115から外部へと出力される。尚、入出力端子115が入力端子として機能する場合には、出力トランジスタ145はオフの状態のままとなり、動作を行わない。   The output transistor 145 is used when the input / output terminal 115 functions as an output terminal. In this case, the output transistor 145 is switched between an on state (a state in which current flows from the collector terminal to the emitter terminal) and an output transistor 145 in an off state (a state in which no current flows from the collector terminal to the emitter terminal). The signal is output from the input / output terminal 115 to the outside. When the input / output terminal 115 functions as an input terminal, the output transistor 145 remains off and does not operate.

電流計測部155は、抵抗素子135の両端に生じた電位差を計測し、これに基づいて抵抗素子135を流れる電流、すなわち入出力端子115を流れる電流を計測するものである。電流の計測値は、機能切り替え部160に伝達される。   The current measuring unit 155 measures a potential difference generated at both ends of the resistance element 135 and measures a current flowing through the resistance element 135, that is, a current flowing through the input / output terminal 115 based on the difference. The measured current value is transmitted to the function switching unit 160.

制御回路110Bの外部の回路について説明する。制御回路110の外部において、入出力端子115には、電源ライン185が抵抗素子195を介して接続されている。   A circuit external to the control circuit 110B will be described. Outside the control circuit 110, a power supply line 185 is connected to the input / output terminal 115 via a resistance element 195.

本実施形態においても、図2を参照しながら説明したものと同様の処理により、制御回路110BのIDが設定される。以下では、当該処理のうち第1実施形態と異なる点についてのみ説明する。   Also in the present embodiment, the ID of the control circuit 110B is set by the same processing as described with reference to FIG. Below, only a different point from 1st Embodiment among the said processes is demonstrated.

ステップS02では、他の出力トランジスタ141等と共に、出力トランジスタ145もオンの状態に切り替えられる。これに伴い、抵抗素子135には電流が流れ始める。   In step S02, the output transistor 145 is switched on together with the other output transistors 141 and the like. Along with this, a current starts to flow through the resistance element 135.

ステップS09において、変数nの値が5であった場合には、ステップS04からステップS08までの処理が更に1回実行される。これにより、抵抗素子135を流れる電流値が電流計測部155により計測される(ステップS04)また、当該電流値と閾値との比較により、入出力端子115(第5端子)の端子機能が「出力」と「入力」のいずれであるかが判定される。   If the value of the variable n is 5 in step S09, the processing from step S04 to step S08 is executed once more. Thereby, the current value flowing through the resistance element 135 is measured by the current measuring unit 155 (step S04). Also, the terminal function of the input / output terminal 115 (fifth terminal) is determined as “output” by comparing the current value with the threshold value. ”Or“ input ”.

ステップS10では、第1実施形態の場合と同様の方法で制御回路110BのIDが設定される。つまり、それぞれの入出力端子(第1端子、第2端子、第3端子、第4端子)の端子機能の組み合わせに対応するIDが、制御回路110BのIDとして設定される。   In step S10, the ID of the control circuit 110B is set by the same method as in the first embodiment. That is, an ID corresponding to a combination of terminal functions of the input / output terminals (first terminal, second terminal, third terminal, fourth terminal) is set as the ID of the control circuit 110B.

ただし、本実施形態においては、入出力端子115の端子機能が「出力」と判定された場合には、優先度の高いIDが制御回路110BのIDとして設定される。一方、入出力端子115の端子機能が「入力」と判定された場合には、優先度の低いIDが制御回路110BのIDとして設定される。   However, in this embodiment, when the terminal function of the input / output terminal 115 is determined to be “output”, an ID with a high priority is set as the ID of the control circuit 110B. On the other hand, when the terminal function of the input / output terminal 115 is determined as “input”, an ID with a low priority is set as the ID of the control circuit 110B.

例えば、マスター300に対する信号の送信が複数の電子制御装置から同時に行われた場合には、マスター300は、優先度の高いIDが設定された電子制御装置との通信を優先的に行う。このようにIDの優先度を定めておくことは、(第1実施形態のようなポーリング方式とは異なり)スレーブからの情報の送信順序がランダムであるような場合に有効である。   For example, when transmission of signals to the master 300 is performed simultaneously from a plurality of electronic control devices, the master 300 preferentially communicates with an electronic control device in which a high priority ID is set. Setting the priority of IDs in this way is effective when the transmission order of information from the slave is different (unlike the polling method as in the first embodiment).

本実施形態では、制御回路110Bに優先度の高いIDを設定する場合には、入出力端子115の端子機能が「出力」と判定されるように、抵抗素子135の抵抗値が設定される。逆に、制御回路110Bに優先度の低いIDを設定する場合には、入出力端子115の端子機能が「入力」と判定されるように、抵抗素子135の抵抗値が設定される。従って、抵抗素子135の抵抗値のみにより、制御回路110Bに設定されるIDの優先度を変更することができる。   In this embodiment, when a high priority ID is set in the control circuit 110B, the resistance value of the resistance element 135 is set so that the terminal function of the input / output terminal 115 is determined to be “output”. Conversely, when an ID having a low priority is set in the control circuit 110B, the resistance value of the resistance element 135 is set so that the terminal function of the input / output terminal 115 is determined as “input”. Therefore, the priority of the ID set in the control circuit 110B can be changed only by the resistance value of the resistance element 135.

尚、制御回路110Bに設定されるIDの優先度と、入出力端子115の端子機能との対応関係は、上記と逆であってもよい。つまり、入出力端子115の端子機能が「出力」と判定された場合には優先度の低いIDが設定され、入出力端子115の端子機能が「入力」と判定された場合には、優先度の高いIDが設定されることとしてもよい。   It should be noted that the correspondence between the priority of the ID set in the control circuit 110B and the terminal function of the input / output terminal 115 may be opposite to the above. That is, when the terminal function of the input / output terminal 115 is determined as “output”, an ID having a low priority is set, and when the terminal function of the input / output terminal 115 is determined as “input”, the priority is set. A high ID may be set.

以上の説明においては、切り替えの対象となる「機能」が、制御回路110等のIDである例について説明した。ただし、制御回路110の他の機能が切り替えられる態様であってもよい。例えば、制御回路110からマスター300に信号を送信する際の送信周期が切り替えられてもよい。   In the above description, an example in which the “function” to be switched is an ID of the control circuit 110 or the like has been described. However, other modes of the control circuit 110 may be switched. For example, the transmission cycle when transmitting a signal from the control circuit 110 to the master 300 may be switched.

以上、具体例を参照しつつ本発明の実施の形態について説明した。しかし、本発明はこれらの具体例に限定されるものではない。すなわち、これら具体例に、当業者が適宜設計変更を加えたものも、本発明の特徴を備えている限り、本発明の範囲に包含される。例えば、前述した各具体例が備える各要素およびその配置、材料、条件、形状、サイズなどは、例示したものに限定されるわけではなく適宜変更することができる。また、前述した各実施の形態が備える各要素は、技術的に可能な限りにおいて組み合わせることができ、これらを組み合わせたものも本発明の特徴を含む限り本発明の範囲に包含される。   The embodiments of the present invention have been described above with reference to specific examples. However, the present invention is not limited to these specific examples. In other words, those specific examples that have been appropriately modified by those skilled in the art are also included in the scope of the present invention as long as they have the characteristics of the present invention. For example, the elements included in each of the specific examples described above and their arrangement, materials, conditions, shapes, sizes, and the like are not limited to those illustrated, but can be changed as appropriate. Moreover, each element with which each embodiment mentioned above is provided can be combined as long as technically possible, and the combination of these is also included in the scope of the present invention as long as it includes the features of the present invention.

CS:通信システム
100,100A,100B:電子制御装置(第1スレーブ)
110,110A,110B:制御回路
111,112,113,114,115:入出力端子
131,132,133,134,135:抵抗素子
141,142,143,144,145:出力トランジスタ
151,151A,152,153,154,155:電流計測部
160:機能切り替え部
181,182,183,184:抵抗素子
200:電子制御装置(第2スレーブ)
300:統括電子制御装置(マスター)
CS: communication system 100, 100A, 100B: electronic control device (first slave)
110, 110A, 110B: control circuits 111, 112, 113, 114, 115: input / output terminals 131, 132, 133, 134, 135: resistance elements 141, 142, 143, 144, 145: output transistors 151, 151A, 152 , 153, 154, 155: current measuring unit 160: function switching unit 181, 182, 183, 184: resistance element 200: electronic control unit (second slave)
300: General electronic controller (master)

Claims (7)

通信用集積回路装置(110)を備えた電子制御装置(100)であって、
前記通信用集積回路装置は、
少なくとも2つ以上の出力端子(111,112,113,114)を備え、
前記通信用集積回路装置の内部において、それぞれの前記出力端子には、
当該出力端子に接続された出力トランジスタ(141,142,143,144)と、
当該出力端子を流れる電流を計測する電流計測手段(151,152,153,154)と、が設けられており、
所定のタイミングにおいて、全ての前記出力トランジスタをオンとし、その状態でそれぞれの前記出力端子を流れる電流の計測値を取得し、
それぞれの前記計測値が、予め定められた複数の電流範囲うちどの前記電流範囲に属するのかを判定し、
それぞれの前記計測値が属する前記電流範囲の組み合わせに基づいて、前記通信用集積回路装置の機能を切り替えるように構成されており、
前記通信用集積回路装置の外部において、それぞれの前記出力端子には、抵抗成分を持つ外部素子(181,182,183,184)が接続されており、
それぞれの前記外部素子の抵抗成分は、それぞれの前記計測値が属する前記電流範囲の組み合わせが、前記通信用集積回路装置の機能を切り替えるための組み合わせとなるように設定されていることを特徴とする電子制御装置。
An electronic control device (100) comprising a communication integrated circuit device (110),
The communication integrated circuit device comprises:
Comprising at least two or more output terminals (111, 112, 113, 114);
In the communication integrated circuit device, each of the output terminals includes:
An output transistor (141, 142, 143, 144) connected to the output terminal;
Current measuring means (151, 152, 153, 154) for measuring the current flowing through the output terminal, and
At a predetermined timing, all the output transistors are turned on, and a measured value of a current flowing through each of the output terminals in that state is acquired,
Each of the measured values is determined to which current range among a plurality of predetermined current ranges,
Based on the combination of the current ranges to which each of the measurement values belongs, the function of the communication integrated circuit device is configured to be switched,
Outside the integrated circuit device for communication, external elements (181, 182, 183, 184) having resistance components are connected to the respective output terminals,
The resistance component of each external element is set such that the combination of the current ranges to which the respective measurement values belong is a combination for switching the function of the communication integrated circuit device. Electronic control device.
それぞれの前記出力端子は入出力兼用端子であって、
前記通信用集積回路装置の内部において、それぞれの前記入出力兼用端子と、当該入出力兼用端子に接続された前記出力トランジスタと、の間には第1抵抗素子(131,132,133,134)が配置されており、
それぞれの前記電流計測手段は、前記第1抵抗素子を流れる電流を計測するものであり、
前記通信用集積回路装置は、
前記第1抵抗素子を流れる電流が、所定の閾電流値よりも低い前記電流範囲に属する場合には、当該第1抵抗素子が接続されている入出力兼用端子の端子機能を入力と判定し、
前記第1抵抗素子を流れる電流が、前記閾電流値よりも高い前記電流範囲に属する場合には、当該第1抵抗素子が接続されている入出力兼用端子の前記端子機能を出力と判定し、
それぞれの入出力兼用端子について判定された前記端子機能の組み合わせに基づいて、前記通信用集積回路装置の機能を切り替えるように構成されており、
前記通信用集積回路装置の外部において、それぞれの前記出力端子には、前記外部素子を含むフィルタ回路が接続されており、
それぞれの前記外部素子の抵抗成分は、それぞれの前記入出力兼用端子について判定された前記端子機能の組み合わせが、前記通信用集積回路装置の機能を切り替えるための組み合わせとなるように設定されていることを特徴とする、請求項1に記載の電子制御装置。
Each of the output terminals is an input / output terminal,
Inside the communication integrated circuit device, a first resistance element (131, 132, 133, 134) is provided between each of the input / output terminals and the output transistor connected to the input / output terminal. Is placed,
Each of the current measuring means measures a current flowing through the first resistance element,
The communication integrated circuit device comprises:
When the current flowing through the first resistance element belongs to the current range lower than a predetermined threshold current value, the terminal function of the input / output terminal to which the first resistance element is connected is determined as input,
When the current flowing through the first resistance element belongs to the current range higher than the threshold current value, the terminal function of the input / output terminal to which the first resistance element is connected is determined as an output,
Based on the combination of the terminal functions determined for each input / output terminal, is configured to switch the function of the communication integrated circuit device,
Outside the integrated circuit device for communication, a filter circuit including the external element is connected to each output terminal,
The resistance component of each external element is set such that the combination of the terminal functions determined for each of the input / output terminals is a combination for switching the functions of the integrated circuit device for communication. The electronic control device according to claim 1, wherein:
前記電流計測手段(151A)は、
前記通信用集積回路装置の内部に一つだけ設けられており、それぞれの前記第1抵抗素子を流れる電流を、順次計測するものであることを特徴とする、請求項2に記載の電子制御装置。
The current measuring means (151A)
3. The electronic control device according to claim 2, wherein only one current is provided inside the communication integrated circuit device, and the current flowing through each of the first resistance elements is sequentially measured. .
前記電流範囲の組み合わせに基づく前記通信用集積回路装置の機能の切り替えを、演算装置(301)を持つ統括電子制御装置(300)からの指令に応じて実行することを特徴とする、請求項1に記載の電子制御装置。   2. The function switching of the communication integrated circuit device based on the combination of the current ranges is executed in response to a command from a general electronic control device (300) having an arithmetic device (301). The electronic control apparatus as described in. 請求項4に記載された電子制御装置と、前記統括電子制御装置とを備えた通信システム(CS)であって、
前記電流範囲の組み合わせに基づいて切り替えられる前記通信用集積回路装置の機能は、前記通信用集積回路装置が受信すべき信号のIDの設定であって、
前記通信用集積回路装置は、当該通信用集積回路装置に設定されたIDと同一のIDを持つ要求信号を前記統括電子制御装置から受信すると、前記統括電子制御装置に向けて応答信号を送信するように構成されており、
前記統括電子制御装置は、
前記IDを持つ前記要求信号を送信した後、所定時間が経過しても前記応答信号が受信されなかった場合には、通信異常と判定することを特徴とする通信システム。
A communication system (CS) comprising the electronic control device according to claim 4 and the overall electronic control device,
The function of the communication integrated circuit device that is switched based on the combination of the current ranges is to set the ID of a signal that the communication integrated circuit device should receive,
When the communication integrated circuit device receives a request signal having the same ID as the ID set in the communication integrated circuit device from the general electronic control device, the communication integrated circuit device transmits a response signal to the general electronic control device. Is configured as
The overall electronic control device is:
If the response signal is not received after a lapse of a predetermined time after transmitting the request signal having the ID, a communication system is determined as a communication abnormality.
前記電流範囲の組み合わせに基づいて切り替えられる前記通信用集積回路装置の機能は、前記通信用集積回路装置が受信すべき信号のIDの設定であって、
前記通信用集積回路装置の外部において、前記入出力兼用端子のうちの一つには、第2抵抗素子(195)を介して電源が接続されており、
前記通信用集積回路装置に、優先度の高いIDを設定する場合には、前記第2抵抗素子が接続された前記入出力兼用端子(115)の前記端子機能が出力と判定されるよう、前記第2抵抗素子の抵抗値が設定され、
前記通信用集積回路装置に、優先度の低いIDを設定する場合には、前記第2抵抗素子が接続された前記入出力兼用端子の前記端子機能が入力と判定されるよう、前記第2抵抗素子の抵抗値が設定されることを特徴とする、請求項2に記載の電子制御装置。
The function of the communication integrated circuit device that is switched based on the combination of the current ranges is to set the ID of a signal that the communication integrated circuit device should receive,
Outside the communication integrated circuit device, a power supply is connected to one of the input / output terminals via a second resistance element (195),
When setting a high-priority ID in the communication integrated circuit device, the terminal function of the input / output terminal (115) to which the second resistance element is connected is determined to be an output. The resistance value of the second resistance element is set,
When setting a low-priority ID in the communication integrated circuit device, the second resistance is set so that the terminal function of the input / output terminal to which the second resistance element is connected is determined as an input. The electronic control device according to claim 2, wherein a resistance value of the element is set.
前記電流範囲の組み合わせに基づいて切り替えられる前記通信用集積回路装置の機能は、前記通信用集積回路装置が受信すべき信号のIDの設定であって、
前記通信用集積回路装置の外部において、前記入出力兼用端子のうちの一つには、第2抵抗素子を介して電源が接続されており、
前記通信用集積回路装置に、優先度の高いIDを設定する場合には、前記第2抵抗素子が接続された前記入出力兼用端子の前記端子機能が入力と判定されるよう、前記第2抵抗素子の抵抗値が設定され、
前記通信用集積回路装置に、優先度の低いIDを設定する場合には、前記第2抵抗素子が接続された前記入出力兼用端子の前記端子機能が出力と判定されるよう、前記第2抵抗素子の抵抗値が設定されることを特徴とする、請求項2に記載の電子制御装置。
The function of the communication integrated circuit device that is switched based on the combination of the current ranges is to set the ID of a signal that the communication integrated circuit device should receive,
Outside the integrated circuit device for communication, a power source is connected to one of the input / output terminals via a second resistance element,
When setting a high-priority ID in the communication integrated circuit device, the second resistance is set so that the terminal function of the input / output terminal to which the second resistance element is connected is determined as an input. The resistance value of the element is set,
When setting a low-priority ID in the communication integrated circuit device, the second resistance is set so that the terminal function of the input / output terminal to which the second resistance element is connected is determined as an output. The electronic control device according to claim 2, wherein a resistance value of the element is set.
JP2015036727A 2015-02-26 2015-02-26 Electronic control device and communication system Active JP6330693B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015036727A JP6330693B2 (en) 2015-02-26 2015-02-26 Electronic control device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015036727A JP6330693B2 (en) 2015-02-26 2015-02-26 Electronic control device and communication system

Publications (2)

Publication Number Publication Date
JP2016155529A JP2016155529A (en) 2016-09-01
JP6330693B2 true JP6330693B2 (en) 2018-05-30

Family

ID=56824998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015036727A Active JP6330693B2 (en) 2015-02-26 2015-02-26 Electronic control device and communication system

Country Status (1)

Country Link
JP (1) JP6330693B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10117201A (en) * 1996-10-09 1998-05-06 Toyota Motor Corp Multiplex communication device for vehicles
JP2011151622A (en) * 2010-01-21 2011-08-04 Autonetworks Technologies Ltd Communication system, communication device, and communication method
JP6131767B2 (en) * 2013-08-09 2017-05-24 株式会社デンソー Control system

Also Published As

Publication number Publication date
JP2016155529A (en) 2016-09-01

Similar Documents

Publication Publication Date Title
US7999579B2 (en) Output driver
US11444801B2 (en) Gateway device
US20200127870A1 (en) Communication system
JPWO2017077841A1 (en) Relay device, electronic control device, and in-vehicle network system
US20130261928A1 (en) Operation Support Apparatus, Electronic Device, Electronic Control Unit and Control System
CN105703752A (en) Device and method for separating and connecting two-part board networks
JP6330693B2 (en) Electronic control device and communication system
US10289590B2 (en) Electronic device and method of auto switching linking path giving priority to a priority port
US20140002119A1 (en) Method, system, and control apparatus for setting over-current protection point of electronic device
CN103842214A (en) Vehicle data setting system and output setting method thereof
CN111083188B (en) Communication system
US20140115312A1 (en) Server and booting method thereof
US10177761B2 (en) Digital output circuit, printed-wiring board, and industrial apparatus
JP5438378B2 (en) Communication device, semiconductor device, and communication system
KR20170100011A (en) Protection of the bus on the data bus
JP6065729B2 (en) Communications system
JP2019041198A (en) Load control device and load control method
KR101165046B1 (en) Controller area network-bus controlling module and the controlling mehod therof
JP5109849B2 (en) Audio amplifier and power control method
WO2015037183A1 (en) Vehicle-mounted device, and vehicle-mounted communication system
CN112566830B (en) Control system for a motor vehicle and method for fault diagnosis in a control system
US20150304203A1 (en) Resistance arranging system and method based on rs-485 network
CN107800599B (en) Vehicle control device
JP2019075048A (en) Communication device
JP2013004654A (en) Semiconductor integrated device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170627

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: 20180327

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180328

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180409

R151 Written notification of patent or utility model registration

Ref document number: 6330693

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