JP2020088564A - OR circuit and electronic control unit - Google Patents

OR circuit and electronic control unit Download PDF

Info

Publication number
JP2020088564A
JP2020088564A JP2018219389A JP2018219389A JP2020088564A JP 2020088564 A JP2020088564 A JP 2020088564A JP 2018219389 A JP2018219389 A JP 2018219389A JP 2018219389 A JP2018219389 A JP 2018219389A JP 2020088564 A JP2020088564 A JP 2020088564A
Authority
JP
Japan
Prior art keywords
input
terminal
mode
microcomputer
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018219389A
Other languages
Japanese (ja)
Inventor
洋明 加藤
Hiroaki Kato
洋明 加藤
悟士 山本
Satoshi Yamamoto
悟士 山本
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.)
Toyota Industries Corp
Original Assignee
Toyota Industries 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 Toyota Industries Corp filed Critical Toyota Industries Corp
Priority to JP2018219389A priority Critical patent/JP2020088564A/en
Publication of JP2020088564A publication Critical patent/JP2020088564A/en
Pending legal-status Critical Current

Links

Abstract

To reduce power consumption.SOLUTION: An OR circuit 30 includes a first input end 31, a second input end 32, an output end 33, a first input line 34 connected to the first input end 31, and a second input line 35 connected to the second input end 32. The first input line 34 and the second input line 35 are connected to the output end 33. The first input line 34 includes a resistance element R1. The second input line 35 includes a diode D. The diode D is arranged such that the anode is located on the second input end 32 side and the cathode is located on the output end 33 side.SELECTED DRAWING: Figure 1

Description

本発明は、OR回路及び電子制御ユニットに関する。 The present invention relates to an OR circuit and an electronic control unit.

Lowレベル又はHighレベルに切り替わる2つの入力信号の論理和を出力信号として出力するOR回路としては、例えば、特許文献1に記載されている。特許文献1に記載のOR回路は、2つのダイオードによって構成されたダイオードOR回路である。OR回路の出力端は、プルダウン抵抗を介して接地されている。 An OR circuit that outputs a logical sum of two input signals that switch to a low level or a high level as an output signal is described in, for example, Patent Document 1. The OR circuit described in Patent Document 1 is a diode OR circuit composed of two diodes. The output terminal of the OR circuit is grounded via a pull-down resistor.

特開2012−222562号公報JP, 2012-222562, A

OR回路の出力端が接続される部材によっては、OR回路の出力端がプルアップ抵抗に接続されることで、OR回路の出力が電源電圧の電位にプルアップされる場合がある。この場合、OR回路に入力される2つの入力信号の両方がLowレベルの場合、OR回路の出力信号がプルアップされ、電源電圧がプルアップ抵抗とプルダウン抵抗に分圧される。OR回路に入力される2つの入力信号の両方がLowレベルの場合に、OR回路からLowレベルの出力信号を出力するためには、プルダウン抵抗の抵抗値をプルアップ抵抗の抵抗値よりも低くする必要がある。すると、OR回路の入力端からHighレベルの入力信号が入力されると、出力端からプルダウン抵抗に電流が流れたときの消費電力が大きくなる。 Depending on the member to which the output end of the OR circuit is connected, the output end of the OR circuit may be connected to the pull-up resistor, so that the output of the OR circuit may be pulled up to the potential of the power supply voltage. In this case, when both of the two input signals input to the OR circuit are Low level, the output signal of the OR circuit is pulled up and the power supply voltage is divided into a pull-up resistor and a pull-down resistor. When both the two input signals input to the OR circuit are Low level, in order to output the Low level output signal from the OR circuit, the resistance value of the pull-down resistor is set lower than the resistance value of the pull-up resistor. There is a need. Then, when a high-level input signal is input from the input terminal of the OR circuit, power consumption increases when a current flows from the output terminal to the pull-down resistor.

本発明の目的は、低消費電力化を図ることができるOR回路及び電子制御ユニットを提供することにある。 An object of the present invention is to provide an OR circuit and an electronic control unit that can reduce power consumption.

上記課題を解決するOR回路は、Lowレベル又はHighレベルに切り替わる入力信号が入力される第1入力端と、Lowレベル又はHighレベルに切り替わる入力信号が入力される第2入力端と、前記第1入力端に接続され、抵抗素子が設けられた第1入力線と、前記第2入力端に接続され、ダイオードが設けられた第2入力線と、前記第1入力線及び前記第2入力線が接続され、前記第1入力端に入力される入力信号と前記第2入力端に入力される入力信号の論理和となる出力信号を出力するとともに、前記出力信号をプルアップするプルアップ抵抗に接続される出力端と、を備え、前記抵抗素子の抵抗値は、前記プルアップ抵抗の抵抗値よりも低い。 An OR circuit for solving the above-mentioned problems includes a first input terminal to which an input signal switching to a Low level or a High level is input, a second input terminal to which an input signal switching to a Low level or a High level is input, and the first A first input line connected to an input end and provided with a resistance element; a second input line connected to the second input end and provided with a diode; and the first input line and the second input line. An output signal which is connected and outputs a logical sum of an input signal input to the first input terminal and an input signal input to the second input terminal and connected to a pull-up resistor for pulling up the output signal The resistance value of the resistance element is lower than the resistance value of the pull-up resistor.

第1入力端及び第2入力端の両方にLowレベルの入力信号が入力されると、プルアップ抵抗と抵抗素子との抵抗比に従って電源電圧が分圧される。抵抗素子の抵抗値をプルアップ抵抗の抵抗値よりも低くすることで、出力信号をLowレベルの信号とすることができる。出力端がプルアップ抵抗に接続されており、かつ、出力端にプルダウン抵抗が接続されていなくても、OR回路からLowレベルの出力信号を出力させることができる。従って、プルダウン抵抗に電流が流れることによる消費電力の増加が抑制され、低消費電力化を図ることができる。 When a Low level input signal is input to both the first input terminal and the second input terminal, the power supply voltage is divided according to the resistance ratio between the pull-up resistor and the resistance element. By setting the resistance value of the resistance element lower than the resistance value of the pull-up resistor, the output signal can be a low-level signal. Even if the output end is connected to the pull-up resistor and the pull-down resistor is not connected to the output end, the OR circuit can output the low-level output signal. Therefore, an increase in power consumption due to the current flowing through the pull-down resistor is suppressed, and low power consumption can be achieved.

上記課題を解決する電子制御ユニットは、上記OR回路と、バスを介して上位制御装置と通信を行うトランシーバと、メインマイコンと、前記メインマイコンの異常を検出するサブマイコンと、を備える電子制御ユニットであって、前記トランシーバは、前記出力端に接続されたモード端子を備え、前記Lowレベルの前記出力信号が前記モード端子に入力されると正常な通信態様である動作モードとなり、前記Highレベルの前記出力信号が前記モード端子に入力されると前記動作モードよりも消費電力が低く、前記正常な通信態様とは異なる待機モードとなり、前記メインマイコンは、前記第1入力端又は前記第2入力端に接続されており、前記Lowレベル又は前記Highレベルの入力信号を出力することで前記トランシーバのモードを切り替える第1端子を備え、前記サブマイコンは、前記第1入力端又は前記第2入力端のうち前記メインマイコンに接続される入力端とは異なる入力端に接続されており、前記メインマイコンの異常を検出していない場合には前記Lowレベルの入力信号を出力し、前記メインマイコンの異常を検出した場合には前記Highレベルの入力信号を出力する第2端子を備える。 An electronic control unit that solves the above problems includes the OR circuit, a transceiver that communicates with a host control device via a bus, a main microcomputer, and a sub-microcomputer that detects an abnormality of the main microcomputer. The transceiver includes a mode terminal connected to the output terminal, and when the low-level output signal is input to the mode terminal, the transceiver enters an operating mode that is a normal communication mode, and the high-level signal is output. When the output signal is input to the mode terminal, the power consumption is lower than that in the operation mode, the standby mode different from the normal communication mode is set, and the main microcomputer is configured to operate at the first input terminal or the second input terminal. And a first terminal for switching the mode of the transceiver by outputting the input signal of the Low level or the High level, and the sub-microcomputer is connected to the first input terminal or the second input terminal. Of these, an input terminal different from the input terminal connected to the main microcomputer is connected, and when the abnormality of the main microcomputer is not detected, the low-level input signal is output to detect the abnormality of the main microcomputer. A second terminal for outputting the High-level input signal when detected is provided.

トランシーバは、モード端子へ入力される信号がLowレベルの時、正常な通信態様である動作モードとなり、Highレベルの時、正常な通信態様とは異なる待機モードとなる。そして、モード端子に入力される出力信号はプルアップされているため、第1入力端及び第2入力端から入力信号が入力されない場合には、モード端子はHighレベルとなる。したがって、メインマイコン及びサブマイコンがリセット等により入力信号を出力しない状態であっても、トランシーバが正常な通信態様である動作モードとならず、正常な通信態様とは異なる待機モードになる。このため、メインマイコン及びサブマイコンが入力信号を出力しない状態において、トランシーバと通信を行う上位制御装置が誤動作することを抑制できる。 When the signal input to the mode terminal is low level, the transceiver is in an operation mode which is a normal communication mode, and when the signal is high level, the transceiver is in a standby mode which is different from the normal communication mode. Since the output signal input to the mode terminal is pulled up, when the input signal is not input from the first input terminal and the second input terminal, the mode terminal becomes High level. Therefore, even when the main microcomputer and the sub-microcomputer do not output an input signal due to a reset or the like, the transceiver does not enter the operation mode which is the normal communication mode, but enters the standby mode which is different from the normal communication mode. Therefore, it is possible to suppress malfunction of the host control device that communicates with the transceiver in a state where the main microcomputer and the sub-microcomputer do not output the input signal.

上記電子制御ユニットについて、前記メインマイコンの前記第1端子は前記第1入力端に接続され、前記サブマイコンの前記第2端子は前記第2入力端に接続されていてもよい。 In the electronic control unit, the first terminal of the main microcomputer may be connected to the first input end, and the second terminal of the sub-microcomputer may be connected to the second input end.

メインマイコンが出力する入力信号がLowレベルであり、サブマイコンが出力する入力信号がHighレベルの場合、抵抗素子に電流が流れ、電力が消費される。サブマイコンからHighレベルの入力信号が出力されるのは、メインマイコンの異常を検出したときである。従って、サブマイコンからHighレベルの入力信号が出力される頻度は、Lowレベルの入力信号が出力される頻度に比べて少ない。メインマイコンの第1端子を第2入力端に接続し、サブマイコンの第2端子を第1入力端に接続する場合に比べて、更なる低消費電力化が図られる。 When the input signal output by the main microcomputer is at the low level and the input signal output by the sub-microcomputer is at the high level, current flows through the resistance element and power is consumed. The high level input signal is output from the sub-microcomputer when an abnormality of the main microcomputer is detected. Therefore, the frequency at which the high-level input signal is output from the sub-microcomputer is less than the frequency at which the low-level input signal is output. As compared with the case where the first terminal of the main microcomputer is connected to the second input terminal and the second terminal of the sub-microcomputer is connected to the first input terminal, the power consumption can be further reduced.

本発明によれば、低消費電力化を図ることができる。 According to the present invention, low power consumption can be achieved.

電子制御ユニットの概略構成図。The schematic block diagram of an electronic control unit.

以下、OR回路及び電子制御ユニットの一実施形態について説明する。
図1に示すように、電子制御ユニット(ECU:Electronic Control Unit)10は、バスL,Hを介して上位制御装置11に接続されている。電子制御ユニット10は、車両に搭載され、車載部品に関する制御を行う。図示は省略するが、電子制御ユニット10は、車両に複数搭載されており、電子制御ユニット10毎に別々の機能が割り当てられている。電子制御ユニット10は、CAN:Controller Area NetworkやLIN:Local Interconnect Networkなどの通信プロトコルに従った通信を行うことで、上位制御装置11や他の電子制御ユニット10とデータの送受信を行う。本実施形態では、通信プロトコルとしてCANを用いるためバスを2つとしているが、LINを用いる場合にはバスは1つとなる。上位制御装置11は、車両に搭載された複数の電子制御ユニット10を統括的に制御するECUである。
Hereinafter, an embodiment of the OR circuit and the electronic control unit will be described.
As shown in FIG. 1, an electronic control unit (ECU) 10 is connected to a host controller 11 via buses L and H. The electronic control unit 10 is mounted on a vehicle and controls onboard components. Although illustration is omitted, a plurality of electronic control units 10 are mounted on the vehicle, and different functions are assigned to each electronic control unit 10. The electronic control unit 10 transmits and receives data to and from the host control device 11 and other electronic control units 10 by performing communication according to a communication protocol such as CAN: Controller Area Network or LIN: Local Interconnect Network. In this embodiment, since CAN is used as the communication protocol, there are two buses, but when LIN is used, there is only one bus. The host controller 11 is an ECU that controls the plurality of electronic control units 10 mounted on the vehicle.

以下、電子制御ユニット10について詳細に説明を行う。
電子制御ユニット10は、メインマイコン12と、サブマイコン14と、トランシーバ20と、OR回路30と、を備える。
Hereinafter, the electronic control unit 10 will be described in detail.
The electronic control unit 10 includes a main microcomputer 12, a sub-microcomputer 14, a transceiver 20, and an OR circuit 30.

メインマイコン12は、電子制御ユニット10に割り当てられた機能を実現するための処理を実行するマイクロコンピュータである。トランシーバ20は、メインマイコン12からの送信データを上位制御装置11に送信する機能と、上位制御装置11からの受信データをメインマイコン12に受信させる機能と、を備える。トランシーバ20は、メインマイコン12が上位制御装置11と通信を行うために設けられたネットワーク機器といえる。 The main microcomputer 12 is a microcomputer that executes processes for realizing the functions assigned to the electronic control unit 10. The transceiver 20 has a function of transmitting the transmission data from the main microcomputer 12 to the upper control device 11 and a function of causing the main microcomputer 12 to receive the reception data from the higher control device 11. It can be said that the transceiver 20 is a network device provided for the main microcomputer 12 to communicate with the host controller 11.

トランシーバ20は、送信端子TxDと、受信端子RxDと、モード端子MODEと、を備える。送信端子TxDには、メインマイコン12からの送信データが入力される。トランシーバ20は、送信端子TxDから入力された送信データを差動信号に変換してバスL,Hに出力する。トランシーバ20は、バスL,Hから入力された差動信号を受信データに変換して受信端子RxDからメインマイコン12に出力する。差動信号は、バスL,H間の電位差によってドミナント又はリセッシブの信号レベルを表した信号である。 The transceiver 20 includes a transmission terminal TxD, a reception terminal RxD, and a mode terminal MODE. The transmission data from the main microcomputer 12 is input to the transmission terminal TxD. The transceiver 20 converts the transmission data input from the transmission terminal TxD into a differential signal and outputs it to the buses L and H. The transceiver 20 converts the differential signals input from the buses L and H into reception data and outputs the reception data to the main microcomputer 12 from the reception terminal RxD. The differential signal is a signal that represents a dominant or recessive signal level by the potential difference between the buses L and H.

トランシーバ20は、モード端子MODEに入力される信号レベルによってモードを切り替える。トランシーバ20は、所定値未満の電圧レベルの信号であるLowレベルの信号がモード端子MODEに入力されると、動作モードになる。トランシーバ20は、所定値以上の電圧レベルの信号であるHighレベルの信号がモード端子MODEに入力されると、待機モードになる。 The transceiver 20 switches modes depending on the signal level input to the mode terminal MODE. The transceiver 20 enters the operation mode when a Low level signal, which is a signal having a voltage level lower than a predetermined value, is input to the mode terminal MODE. The transceiver 20 enters the standby mode when a high level signal, which is a signal having a voltage level equal to or higher than a predetermined value, is input to the mode terminal MODE.

動作モードとは、正常な通信態様による通信を行うことができる状態である。正常な通信態様とは、トランシーバ20が上位制御装置11からの通信をメインマイコン12に伝達し、メインマイコン12からの通信も上位制御装置11に伝達する態様である。言い換えれば、送信データの差動信号への変換と、差動信号から受信データへの変換を行うことができる状態である。 The operation mode is a state in which communication can be performed in a normal communication mode. The normal communication mode is a mode in which the transceiver 20 transmits the communication from the upper control device 11 to the main microcomputer 12, and also transmits the communication from the main microcomputer 12 to the higher control device 11. In other words, it is a state in which the transmission data can be converted into a differential signal and the differential signal can be converted into reception data.

待機モードとは、正常とは異なる通信態様による通信が行われる状態である。正常とは異なる通信態様とは、トランシーバ20が上位制御装置11からの通信をメインマイコン12に伝達するが、メインマイコン12からの通信は上位制御装置11に伝達しない態様である。詳細にいえば、待機モードでは、ドミナントを検出するために必要な最低限の回路のみが機能する。即ち、待機モードは、2つのバスL,Hの電位差がリセッシブからドミナントに切り替わる閾値以上になるまでトランシーバ20の送信機能を停止させる状態といえる。待機モードは、動作モードに比べて消費電力が少ない。 The standby mode is a state in which communication is performed in a communication mode different from the normal mode. The communication mode different from the normal mode is a mode in which the transceiver 20 transmits the communication from the upper control device 11 to the main microcomputer 12, but does not transmit the communication from the main microcomputer 12 to the higher control device 11. In detail, in the standby mode, only the minimum circuits necessary to detect a dominant function. That is, it can be said that the standby mode is a state in which the transmission function of the transceiver 20 is stopped until the potential difference between the two buses L and H becomes equal to or greater than the threshold value at which the recessive mode is switched to the dominant mode. The standby mode consumes less power than the operating mode.

メインマイコン12は、トランシーバ20のモードを切り替えるための入力信号を出力する第1端子13を備える。入力信号は、Lowレベル又はHighレベルに切り替わる信号である。メインマイコン12は、例えば、車両が起動状態の場合にLowレベルの入力信号を第1端子13から出力し、車両が停止状態の場合にHighレベルの入力信号を第1端子から出力する。起動状態とは、アクセルペダルの操作など搭乗者の操作による車両の走行が可能な状態である。停止状態とは、アクセルペダルの操作など搭乗者が車両を走行させようとしても車両が走行しない状態である。 The main microcomputer 12 includes a first terminal 13 that outputs an input signal for switching the mode of the transceiver 20. The input signal is a signal that switches to a low level or a high level. The main microcomputer 12 outputs, for example, a low level input signal from the first terminal 13 when the vehicle is in the activated state, and outputs a high level input signal from the first terminal when the vehicle is in the stopped state. The activated state is a state in which the vehicle can be driven by an occupant's operation such as operation of an accelerator pedal. The stopped state is a state in which the vehicle does not run even if the occupant tries to drive the vehicle by operating the accelerator pedal.

メインマイコン12は、車両が起動状態の場合には、上位制御装置11との通信を行うためにトランシーバ20を動作モードにする。一方で、メインマイコン12は、車両が停止状態の場合には、トランシーバ20を待機モードとすることで消費電力を低減させる。メインマイコン12は、上位制御装置11との通信を行う必要がない場合にはトランシーバ20を待機状態にするともいえる。 When the vehicle is in the activated state, the main microcomputer 12 puts the transceiver 20 in the operation mode in order to communicate with the host controller 11. On the other hand, the main microcomputer 12 reduces the power consumption by setting the transceiver 20 in the standby mode when the vehicle is stopped. It can be said that the main microcomputer 12 puts the transceiver 20 in a standby state when it is not necessary to communicate with the host controller 11.

サブマイコン14は、メインマイコン12の異常を検出するために設けられたマイクロコンピュータである。メインマイコン12の異常は、例えば、ウォッチドッグタイマによって検出される。メインマイコン12は、所定周期毎にウォッチドッグパルスを出力することでウォッチドッグタイマをリセットする。メインマイコン12に異常が生じ、ウォッチドッグパルスが出力されなくなると、ウォッチドッグタイマがリセットされなくなることで、サブマイコン14はメインマイコン12の異常を検出することができる。サブマイコン14は、入力信号を出力する第2端子15を備える。入力信号は、Lowレベル又はHighレベルに切り替わる信号である。サブマイコン14は、メインマイコン12の異常を検出していない場合にはLowレベルの入力信号を第2端子15から出力する。サブマイコン14は、メインマイコン12の異常を検出した場合にはHighレベルの入力信号を第2端子15から出力する。 The sub-microcomputer 14 is a microcomputer provided to detect an abnormality of the main microcomputer 12. The abnormality of the main microcomputer 12 is detected by, for example, a watchdog timer. The main microcomputer 12 resets the watchdog timer by outputting a watchdog pulse every predetermined period. When an abnormality occurs in the main microcomputer 12 and the watchdog pulse is no longer output, the watchdog timer is not reset, so that the sub-microcomputer 14 can detect the abnormality in the main microcomputer 12. The sub-microcomputer 14 includes a second terminal 15 that outputs an input signal. The input signal is a signal that switches to a low level or a high level. The sub-microcomputer 14 outputs a low-level input signal from the second terminal 15 when no abnormality is detected in the main microcomputer 12. When detecting an abnormality in the main microcomputer 12, the sub-microcomputer 14 outputs a high-level input signal from the second terminal 15.

OR回路30は、2つの入力信号の論理和を出力する論理回路である。OR回路30は、第1入力端31と、第2入力端32と、出力端33と、第1入力端31に接続された第1入力線34と、第2入力端32に接続された第2入力線35と、を備える。第1入力線34及び第2入力線35は、出力端33に接続されている。第1入力線34は、抵抗素子R1を備える。第2入力線35は、ダイオードDを備える。ダイオードDは、アノードが第2入力端32側に位置し、カソードが出力端33側に位置するように配置されている。 The OR circuit 30 is a logic circuit that outputs a logical sum of two input signals. The OR circuit 30 includes a first input end 31, a second input end 32, an output end 33, a first input line 34 connected to the first input end 31, and a first input line 34 connected to the second input end 32. And two input lines 35. The first input line 34 and the second input line 35 are connected to the output end 33. The first input line 34 includes a resistance element R1. The second input line 35 includes a diode D. The diode D is arranged such that the anode is located on the second input end 32 side and the cathode is located on the output end 33 side.

第1入力端31は、メインマイコン12の第1端子13に接続されている。第2入力端32は、サブマイコン14の第2端子15に接続されている。OR回路30の第1入力端31にはメインマイコン12からの入力信号が入力され、OR回路30の第2入力端32にはサブマイコン14からの入力信号が入力される。OR回路30の出力端33からは、メインマイコン12から入力された入力信号及びサブマイコン14から入力された入力信号の論理和がLowレベル又はHighレベルの出力信号として出力される。 The first input terminal 31 is connected to the first terminal 13 of the main microcomputer 12. The second input end 32 is connected to the second terminal 15 of the sub-microcomputer 14. The input signal from the main microcomputer 12 is input to the first input terminal 31 of the OR circuit 30, and the input signal from the sub-microcomputer 14 is input to the second input terminal 32 of the OR circuit 30. From the output terminal 33 of the OR circuit 30, the logical sum of the input signal input from the main microcomputer 12 and the input signal input from the sub-microcomputer 14 is output as a Low level or High level output signal.

OR回路30の出力端33は、モード端子MODEに接続されている。従って、トランシーバ20のモードは、OR回路30から出力される出力信号によって切り替わることになる。OR回路30の出力信号は、プルアップされている。詳細にいえば、トランシーバ20は、電源21のプラス端子に接続されたプルアップ抵抗Ruを備え、モード端子MODEはプルアップ抵抗Ruに接続されている。出力端33は、モード端子MODEを介してプルアップ抵抗Ruに接続され、これにより出力信号は電源電圧の電位にプルアップされている。プルアップ抵抗Ruの抵抗値は、抵抗素子R1の抵抗値よりも高い。言い換えれば、抵抗素子R1の抵抗値は、プルアップ抵抗Ruの抵抗値よりも低い。 The output terminal 33 of the OR circuit 30 is connected to the mode terminal MODE. Therefore, the mode of the transceiver 20 is switched by the output signal output from the OR circuit 30. The output signal of the OR circuit 30 is pulled up. More specifically, the transceiver 20 includes a pull-up resistor Ru connected to the plus terminal of the power supply 21, and the mode terminal MODE is connected to the pull-up resistor Ru. The output terminal 33 is connected to the pull-up resistor Ru via the mode terminal MODE, whereby the output signal is pulled up to the potential of the power supply voltage. The resistance value of the pull-up resistor Ru is higher than the resistance value of the resistance element R1. In other words, the resistance value of the resistance element R1 is lower than the resistance value of the pull-up resistance Ru.

本実施形態の作用について説明する。
第1入力端31及び第2入力端32の少なくともいずれかにHighレベルの入力信号が入力されると、OR回路30の出力端33からはHighレベルの出力信号が出力される。第1入力端31及び第2入力端32の両方にLowレベルの入力信号が入力されると、プルアップ抵抗Ruと抵抗素子R1との抵抗比に従って電源電圧が分圧される。抵抗素子R1の抵抗値をプルアップ抵抗Ruの抵抗値よりも低くすることで、出力信号はLowレベルの信号となる。このように、ダイオードDと抵抗素子R1を用いてOR回路30を構成することができる。
The operation of this embodiment will be described.
When a High level input signal is input to at least one of the first input terminal 31 and the second input terminal 32, a High level output signal is output from the output terminal 33 of the OR circuit 30. When a low level input signal is input to both the first input terminal 31 and the second input terminal 32, the power supply voltage is divided according to the resistance ratio between the pull-up resistor Ru and the resistance element R1. By setting the resistance value of the resistance element R1 to be lower than the resistance value of the pull-up resistor Ru, the output signal becomes a low level signal. In this way, the OR circuit 30 can be configured using the diode D and the resistance element R1.

そして、上記したOR回路30を用いた電子制御ユニット10では、OR回路30の出力信号によってトランシーバ20のモードを切り替えている。サブマイコン14は、メインマイコン12の異常を検出していない場合にはLowレベルの入力信号を出力する。この場合、OR回路30から出力される出力信号は、メインマイコン12から出力される入力信号のレベルと同一のものになる。即ち、メインマイコン12に異常が生じていない場合メインマイコン12は入力信号をLowレベル又はHighレベルに切り替えることでトランシーバ20を任意のモードの切り替えることができる。 Then, in the electronic control unit 10 using the OR circuit 30 described above, the mode of the transceiver 20 is switched by the output signal of the OR circuit 30. The sub-microcomputer 14 outputs a low-level input signal when an abnormality of the main microcomputer 12 is not detected. In this case, the output signal output from the OR circuit 30 has the same level as the input signal output from the main microcomputer 12. That is, when there is no abnormality in the main microcomputer 12, the main microcomputer 12 can switch the transceiver 20 to an arbitrary mode by switching the input signal to the low level or the high level.

一方で、サブマイコン14は、メインマイコン12の異常を検出した場合にはHighレベルの入力信号を出力する。OR回路30から出力される出力信号は、メインマイコン12の入力信号のレベルに関わらずHighレベルとなる。従って、メインマイコン12に異常が生じた場合には、OR回路30の出力信号がHighレベルとなり、トランシーバ20のモードが待機モードに切り替わる。 On the other hand, the sub-microcomputer 14 outputs a high-level input signal when detecting an abnormality of the main microcomputer 12. The output signal output from the OR circuit 30 becomes High level regardless of the level of the input signal of the main microcomputer 12. Therefore, when an abnormality occurs in the main microcomputer 12, the output signal of the OR circuit 30 becomes High level, and the mode of the transceiver 20 is switched to the standby mode.

車両が起動状態のときに、メインマイコン12に異常が生じると、トランシーバ20が動作モードから待機モードに切り替わることになる。トランシーバ20が待機モードに切り替わると、通信態様の変化により電子制御ユニット10から上位制御装置11への通信が途切れる。上位制御装置11は、電子制御ユニット10の通信態様の変化から、メインマイコン12に異常が生じたと判断することができる。 When an abnormality occurs in the main microcomputer 12 while the vehicle is in the activated state, the transceiver 20 is switched from the operation mode to the standby mode. When the transceiver 20 is switched to the standby mode, the communication from the electronic control unit 10 to the host controller 11 is interrupted due to the change of the communication mode. The host controller 11 can determine that an abnormality has occurred in the main microcomputer 12 from the change in the communication mode of the electronic control unit 10.

なお、メインマイコン12がHighレベルの入力信号を出力し、サブマイコン14がLowレベルの入力信号を出力している場合、OR回路30からはHighレベルの出力信号が出力される。この場合、車両が停止状態であり、かつ、サブマイコン14はメインマイコン12の異常を検出していない状態である。車両が停止状態であることは、上位制御装置11も把握することができるため、この場合には、上位制御装置11はメインマイコン12に異常が生じたと判断しない。即ち、メインマイコン12が上位制御装置11に異常が生じたと判断するのは、車両が起動状態にも関わらず、トランシーバ20が待機モードの場合である。 When the main microcomputer 12 outputs a high level input signal and the sub microcomputer 14 outputs a low level input signal, the OR circuit 30 outputs a high level output signal. In this case, the vehicle is in a stopped state and the sub-microcomputer 14 has not detected an abnormality of the main microcomputer 12. Since the host controller 11 can also know that the vehicle is in the stopped state, in this case, the host controller 11 does not determine that the abnormality has occurred in the main microcomputer 12. That is, the main microcomputer 12 determines that the abnormality has occurred in the higher-level control device 11 when the transceiver 20 is in the standby mode regardless of the activated state of the vehicle.

また、電源電圧が過剰に低下した場合など、メインマイコン12及びサブマイコン14がリセットされる場合がある。この場合、メインマイコン12及びサブマイコン14は制御停止状態となり、第1端子13及び第2端子15は入力信号を出力しないハイインピーダンス状態となる。この場合、プルアップ抵抗Ruにより、モード端子MODEに入力される出力信号はHighレベルに維持される。従って、メインマイコン12及びサブマイコン14が制御停止状態にも関わらず、トランシーバ20が動作モードに維持されることが抑止される。 Further, the main microcomputer 12 and the sub-microcomputer 14 may be reset when the power supply voltage drops excessively. In this case, the main microcomputer 12 and the sub-microcomputer 14 are in the control stop state, and the first terminal 13 and the second terminal 15 are in the high impedance state in which no input signal is output. In this case, the pull-up resistor Ru maintains the output signal input to the mode terminal MODE at the high level. Therefore, the transceiver 20 is prevented from being maintained in the operation mode even when the main microcomputer 12 and the sub-microcomputer 14 are in the control stopped state.

本実施形態の効果について説明する。
(1)出力端33がプルアップ抵抗Ruに接続されており、かつ、プルダウン抵抗が設けられていなくても、OR回路30からLowレベルの出力信号を出力させることができる。従って、OR回路30にプルダウン抵抗を設けなくてもよく、プルダウン抵抗に電流が流れることによる消費電力の増加が抑制され、消費電力を低減することができる。
The effects of this embodiment will be described.
(1) Even if the output terminal 33 is connected to the pull-up resistor Ru and no pull-down resistor is provided, the OR circuit 30 can output the low-level output signal. Therefore, it is not necessary to provide a pull-down resistor in the OR circuit 30, an increase in power consumption due to a current flowing through the pull-down resistor is suppressed, and the power consumption can be reduced.

(2)1つのダイオードDと1つの抵抗素子R1でOR回路30を構成している。2つのダイオードを用いたOR回路に比べて、ダイオードの数を減らすことができる。実施形態のOR回路30と同等の機能を有するOR回路を2つのダイオードで実現する場合、抵抗素子R1に比べてダイオードのほうが高価になる。ダイオードDと抵抗素子R1を用いてOR回路30を構成することで、製造コストを低減させることができる。同様に、OR回路30として、ロジックICを用いる場合に比べても、製造コストを低減させることができる。 (2) The OR circuit 30 is composed of one diode D and one resistance element R1. The number of diodes can be reduced as compared with an OR circuit using two diodes. When an OR circuit having the same function as the OR circuit 30 of the embodiment is realized by two diodes, the diode is more expensive than the resistance element R1. By forming the OR circuit 30 using the diode D and the resistance element R1, the manufacturing cost can be reduced. Similarly, the manufacturing cost can be reduced as compared with the case where a logic IC is used as the OR circuit 30.

(3)トランシーバ20は、モード端子MODEへ入力される信号がLowレベルの時、正常な通信態様である動作モードとなり、Highレベルの時、正常な通信態様とは異なる待機モードとなる。モード端子MODEに入力される出力信号はプルアップされているため、出力端33から出力信号が入力されない場合には、モード端子MODEはHighレベルとなる。メインマイコン12及びサブマイコン14がリセット等により入力信号を出力しない状態であっても、トランシーバ20が正常な通信態様である動作モードとならず、正常な通信態様とは異なる待機モードになる。このため、メインマイコン12及びサブマイコン14が入力信号を出力しない状態において、トランシーバ20と通信を行う上位制御装置11が誤動作することを抑制できる。 (3) The transceiver 20 is in an operation mode which is a normal communication mode when the signal input to the mode terminal MODE is Low level, and is in a standby mode which is different from the normal communication mode when the signal is High level. Since the output signal input to the mode terminal MODE is pulled up, when the output signal is not input from the output terminal 33, the mode terminal MODE becomes High level. Even when the main microcomputer 12 and the sub-microcomputer 14 do not output an input signal due to a reset or the like, the transceiver 20 does not enter the operation mode which is the normal communication mode, but enters the standby mode which is different from the normal communication mode. Therefore, it is possible to suppress malfunction of the higher-level control device 11 that communicates with the transceiver 20 when the main microcomputer 12 and the sub-microcomputer 14 do not output the input signal.

(4)メインマイコン12の第1端子13を第1入力端31に、サブマイコン14の第2端子15を第2入力端32に接続している。メインマイコン12が出力する入力信号がLowレベルであり、サブマイコン14が出力する入力信号がHighレベルの場合、抵抗素子R1に電流が流れ、電力が消費される。サブマイコン14からHighレベルの入力信号が出力されるのは、メインマイコン12の異常を検出したときである。従って、サブマイコン14からHighレベルの入力信号が出力される頻度は、Lowレベルの入力信号が出力される頻度に比べて少ない。仮に、メインマイコン12の第1端子13を第2入力端32に接続し、サブマイコン14の第2端子15を第1入力端31に接続した場合、第1入力端31にLowレベルの入力信号が入力される頻度が増加し、消費電力が増加するおそれがある。これに対し、メインマイコン12の第1端子13を第1入力端31に、サブマイコン14の第2端子15を第2入力端32に接続することで、メインマイコン12の第1端子13を第2入力端32に接続し、サブマイコン14の第2端子15を第1入力端31に接続する場合に比べて、更なる低消費電力化が図られる。 (4) The first terminal 13 of the main microcomputer 12 is connected to the first input end 31, and the second terminal 15 of the sub microcomputer 14 is connected to the second input end 32. When the input signal output from the main microcomputer 12 is Low level and the input signal output from the sub microcomputer 14 is High level, a current flows through the resistance element R1 and power is consumed. The high level input signal is output from the sub-microcomputer 14 when an abnormality of the main microcomputer 12 is detected. Therefore, the frequency at which the high-level input signal is output from the sub-microcomputer 14 is less than the frequency at which the low-level input signal is output. If the first terminal 13 of the main microcomputer 12 is connected to the second input end 32 and the second terminal 15 of the sub-microcomputer 14 is connected to the first input end 31, a low-level input signal is input to the first input end 31. May be input more frequently and power consumption may increase. On the other hand, by connecting the first terminal 13 of the main microcomputer 12 to the first input terminal 31 and the second terminal 15 of the sub-microcomputer 14 to the second input terminal 32, the first terminal 13 of the main microcomputer 12 is connected to the first terminal 13. Compared to the case where the second input terminal 32 is connected to the second input terminal 32 and the second terminal 15 of the sub-microcomputer 14 is connected to the first input terminal 31, the power consumption is further reduced.

実施形態は、以下のように変更して実施することができる。実施形態及び以下の変形例は、技術的に矛盾しない範囲で互いに組み合わせて実施することができる。
○メインマイコン12の第1端子13がOR回路30の第2入力端32に接続され、サブマイコン14の第2端子15がOR回路30の第1入力端31に接続されてもよい。
The embodiment can be modified and implemented as follows. The embodiment and the following modifications can be implemented in combination with each other within a technically consistent range.
The first terminal 13 of the main microcomputer 12 may be connected to the second input terminal 32 of the OR circuit 30, and the second terminal 15 of the sub microcomputer 14 may be connected to the first input terminal 31 of the OR circuit 30.

○OR回路30の一例として、電子制御ユニット10に設けられる場合について説明したが、OR回路30は、電子制御ユニット10以外に用いられてもよい。
○電子制御ユニット10が車両以外に搭載される場合、電子制御ユニット10は、CANなどの車両用通信プロトコルとは異なる通信プロトコルに従って通信を行ってもよい。
The case where the OR circuit 30 is provided in the electronic control unit 10 has been described as an example, but the OR circuit 30 may be used in a device other than the electronic control unit 10.
When the electronic control unit 10 is mounted on a vehicle other than the vehicle, the electronic control unit 10 may perform communication according to a communication protocol different from the vehicle communication protocol such as CAN.

○上記実施形態では、正常とは異なる通信態様とは、トランシーバ20が上位制御装置11からの通信をメインマイコン12に伝達するが、メインマイコン12からの通信は上位制御装置11に伝達しない態様であると説明したが、これに限られない。例えば、トランシーバ20が上位制御装置11からの通信もメインマイコン12からの通信も伝達しない態様であってもよい。すなわち、正常な通信態様と比べて一部の機能が制限され、消費電力が少ない態様であればよい。 In the above embodiment, the communication mode different from the normal mode is a mode in which the transceiver 20 transmits the communication from the upper control device 11 to the main microcomputer 12, but does not transmit the communication from the main microcomputer 12 to the higher control device 11. I explained that there is, but it is not limited to this. For example, the transceiver 20 may not transmit the communication from the host controller 11 or the communication from the main microcomputer 12. That is, it is only necessary that some functions are limited and power consumption is low compared to the normal communication mode.

D…ダイオード、H,L…バス、MODE…モード端子、R1…抵抗素子、Ru…プルアップ抵抗、10…電子制御ユニット、11…上位制御装置、12…メインマイコン、13…第1端子、14…サブマイコン、15…第2端子、20…トランシーバ、30…OR回路、31…第1入力端、32…第2入力端、33…出力端、34…第1入力線、35…第2入力線。 D... Diode, H, L... Bus, MODE... Mode terminal, R1... Resistor element, Ru... Pull-up resistor, 10... Electronic control unit, 11... Upper control device, 12... Main microcomputer, 13... First terminal, 14 ... sub-microcomputer, 15... second terminal, 20... transceiver, 30... OR circuit, 31... first input end, 32... second input end, 33... output end, 34... first input line, 35... second input line.

Claims (3)

Lowレベル又はHighレベルに切り替わる入力信号が入力される第1入力端と、
Lowレベル又はHighレベルに切り替わる入力信号が入力される第2入力端と、
前記第1入力端に接続され、抵抗素子が設けられた第1入力線と、
前記第2入力端に接続され、ダイオードが設けられた第2入力線と、
前記第1入力線及び前記第2入力線が接続され、前記第1入力端に入力される入力信号と前記第2入力端に入力される入力信号の論理和となる出力信号を出力するとともに、前記出力信号をプルアップするプルアップ抵抗に接続される出力端と、を備え、
前記抵抗素子の抵抗値は、前記プルアップ抵抗の抵抗値よりも低いOR回路。
A first input end to which an input signal that switches to a low level or a high level is input;
A second input end to which an input signal that switches to a low level or a high level is input;
A first input line connected to the first input terminal and provided with a resistance element;
A second input line connected to the second input terminal and provided with a diode;
The first input line and the second input line are connected to each other, and an output signal that is a logical sum of an input signal input to the first input end and an input signal input to the second input end is output, An output terminal connected to a pull-up resistor for pulling up the output signal,
An OR circuit in which a resistance value of the resistance element is lower than a resistance value of the pull-up resistor.
請求項1に記載されたOR回路と、
バスを介して上位制御装置と通信を行うトランシーバと、
メインマイコンと、
前記メインマイコンの異常を検出するサブマイコンと、を備える電子制御ユニットであって、
前記トランシーバは、
前記出力端に接続されたモード端子を備え、
前記Lowレベルの前記出力信号が前記モード端子に入力されると正常な通信態様である動作モードとなり、前記Highレベルの前記出力信号が前記モード端子に入力されると前記動作モードよりも消費電力が低く、前記正常な通信態様とは異なる待機モードとなり、
前記メインマイコンは、
前記第1入力端又は前記第2入力端に接続されており、前記Lowレベル又は前記Highレベルの入力信号を出力することで前記トランシーバのモードを切り替える第1端子を備え、
前記サブマイコンは、
前記第1入力端又は前記第2入力端のうち前記メインマイコンに接続される入力端とは異なる入力端に接続されており、前記メインマイコンの異常を検出していない場合には前記Lowレベルの入力信号を出力し、前記メインマイコンの異常を検出した場合には前記Highレベルの入力信号を出力する第2端子を備える電子制御ユニット。
An OR circuit according to claim 1,
A transceiver that communicates with the host controller via the bus,
Main microcomputer,
An electronic control unit comprising a sub-microcomputer for detecting an abnormality of the main microcomputer,
The transceiver is
A mode terminal connected to the output end,
When the low-level output signal is input to the mode terminal, the operation mode is a normal communication mode, and when the high-level output signal is input to the mode terminal, power consumption is lower than that in the operation mode. Low, a standby mode different from the normal communication mode,
The main microcomputer is
A first terminal that is connected to the first input terminal or the second input terminal and that switches the mode of the transceiver by outputting the input signal of the Low level or the High level;
The sub-microcomputer is
It is connected to an input end different from the input end connected to the main microcomputer among the first input end or the second input end, and when the abnormality of the main microcomputer is not detected, the low level An electronic control unit having a second terminal which outputs an input signal and outputs the high-level input signal when an abnormality of the main microcomputer is detected.
前記メインマイコンの前記第1端子は前記第1入力端に接続され、
前記サブマイコンの前記第2端子は前記第2入力端に接続される請求項2に記載の電子制御ユニット。
The first terminal of the main microcomputer is connected to the first input terminal,
The electronic control unit according to claim 2, wherein the second terminal of the sub-microcomputer is connected to the second input end.
JP2018219389A 2018-11-22 2018-11-22 OR circuit and electronic control unit Pending JP2020088564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018219389A JP2020088564A (en) 2018-11-22 2018-11-22 OR circuit and electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018219389A JP2020088564A (en) 2018-11-22 2018-11-22 OR circuit and electronic control unit

Publications (1)

Publication Number Publication Date
JP2020088564A true JP2020088564A (en) 2020-06-04

Family

ID=70909100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018219389A Pending JP2020088564A (en) 2018-11-22 2018-11-22 OR circuit and electronic control unit

Country Status (1)

Country Link
JP (1) JP2020088564A (en)

Similar Documents

Publication Publication Date Title
JP4952212B2 (en) Communication interference prevention device, communication system node, communication system, vehicle fault diagnosis device, and in-vehicle device
JP2851124B2 (en) Multiplex transmission method
JP6460049B2 (en) Ringing suppression circuit
US20040158781A1 (en) Method for determining line faults in a bus system and bus system
US9852099B2 (en) Slave communication device and bus communication system
US6747498B1 (en) CAN receiver wake-up circuit
JP5387170B2 (en) Disconnection abnormality detection device
CN112217704A (en) Communication between transceiver and microcontroller
JP6127944B2 (en) In-vehicle network system
US20130261928A1 (en) Operation Support Apparatus, Electronic Device, Electronic Control Unit and Control System
US20010047491A1 (en) Serial bus system
JP4866214B2 (en) Control unit and in-vehicle multiple communication system
JP2015154189A (en) Communication system, gateway device, communication node and communication control method
CN108352993B (en) Ethernet bus, control device and method for waking up control device of Ethernet bus
JP2020088564A (en) OR circuit and electronic control unit
JP6471619B2 (en) Electronic equipment
JP2009111911A (en) Communication apparatus, communication system, and communication method
JP5463836B2 (en) Processing system
US8285885B2 (en) Universal serial bus device and universal serial bus system
EP0538473B1 (en) Voltage setting apparatus in multiplex transmission system
JP7050154B2 (en) Electronic control device
US11176073B2 (en) Data processing apparatus
US10908664B2 (en) POE power supply system
WO2020184407A1 (en) Power feed control device, power feed control system, and power feed control method
JP2018086950A (en) Communication system