[go: up one dir, main page]

JP2016031260A - Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus - Google Patents

Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus Download PDF

Info

Publication number
JP2016031260A
JP2016031260A JP2014152850A JP2014152850A JP2016031260A JP 2016031260 A JP2016031260 A JP 2016031260A JP 2014152850 A JP2014152850 A JP 2014152850A JP 2014152850 A JP2014152850 A JP 2014152850A JP 2016031260 A JP2016031260 A JP 2016031260A
Authority
JP
Japan
Prior art keywords
circuit
voltage
comparator
load
outputs
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
JP2014152850A
Other languages
Japanese (ja)
Inventor
永井 一弘
Kazuhiro Nagai
一弘 永井
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 JP2014152850A priority Critical patent/JP2016031260A/en
Publication of JP2016031260A publication Critical patent/JP2016031260A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a load drive circuit abnormality information notification apparatus and an abnormality diagnosis apparatus capable of performing preliminary diagnostic processing of an abnormality diagnosis circuit and abnormality diagnostic processing of a load drive circuit.SOLUTION: When a first switching circuit 12 switches a voltage to a second reference voltage and outputs the second reference voltage to a comparator 14 as a first input voltage and a second switching circuit 13 switches a voltage to first and second threshold voltages and outputs the first and second threshold voltages to the comparator 14 as a second input voltage, a circuit 17 notifies a microcomputer 5 of an operation performed by the comparator 14 and operations performed by the first switching circuit, the second switching circuit, and the comparator 14 are preliminarily diagnosed. If it is determined that the operations are normal, the circuit 17 notifies the microcomputer 5 of information indicating whether an abnormality occurs on the basis of a comparison result of the comparator 14 to correspond to each of on and off drive control signals of a load 4 when the first switching circuit switches a voltage to a first reference voltage or a proportional voltage thereof and outputs the first reference voltage or the proportional voltage thereof to the comparator 14 as the first input voltage and the second switching circuit 13 switches a voltage to the first and second threshold voltages and outputs the first and second threshold voltages to the comparator 14 as the second input voltage.SELECTED DRAWING: Figure 1

Description

本発明は、負荷駆動回路の接続異常を検出するための異常情報通知装置及び異常診断装置に関する。   The present invention relates to an abnormality information notification device and an abnormality diagnosis device for detecting connection abnormality of a load drive circuit.

異常診断装置は、例えば燃料噴射制御装置の電子制御ユニット(ECU:Electronic Control Unit)内に構成される。例えば負荷としてのソレノイドの電磁コイルなどは、何らかの予期しない事象に応じて、断線による負荷オープン、グランド線への短絡、電源線への短絡などの異常を生じる虞がある。このため、電子制御ユニットは異常検出する機能を備えている(例えば、特許文献1参照)。   The abnormality diagnosis device is configured, for example, in an electronic control unit (ECU) of the fuel injection control device. For example, an electromagnetic coil of a solenoid as a load may cause an abnormality such as a load open due to disconnection, a short circuit to a ground line, or a short circuit to a power supply line depending on some unexpected event. For this reason, the electronic control unit has a function of detecting an abnormality (see, for example, Patent Document 1).

特許文献1記載の技術は、ドライバICが出力端子に対し電源電圧とグランド電圧との中間的な電圧である指標電圧を出力する指標電圧出力回路と、基準電圧を生成する基準電圧生成回路と、出力端子の電圧の分圧電圧と基準電圧とを比較して断線検出信号を出力するウィンドウコンパレータとから構成される断線検出回路を備えており、これにより電磁コイルの断線を検出している。   The technique described in Patent Document 1 includes an index voltage output circuit that outputs an index voltage that is an intermediate voltage between a power supply voltage and a ground voltage to the output terminal of the driver IC, a reference voltage generation circuit that generates a reference voltage, A disconnection detection circuit comprising a window comparator that compares the divided voltage of the output terminal voltage with a reference voltage and outputs a disconnection detection signal is provided, thereby detecting disconnection of the electromagnetic coil.

特開2008−11347号公報JP 2008-11347 A

特許文献1記載の技術によればウィンドウコンパレータを構成しているため、異常有無判定手段を構成するためには、少なくとも2つ以上のコンパレータを必要とする。このため回路規模が大規模化されてしまい好ましくない。しかも、コンパレータ等の異常診断用の各種回路が異常動作しているときには正常な診断結果を得ることができなくなってしまう。   According to the technique described in Patent Document 1, since a window comparator is configured, at least two or more comparators are required to configure the abnormality presence / absence determining means. This undesirably increases the circuit scale. In addition, when various abnormality diagnosis circuits such as a comparator are operating abnormally, it is impossible to obtain a normal diagnosis result.

本発明の目的は、コンパレータを1つのみ用いて構成することで回路規模を縮小化しながら、異常診断用に用いられる各種回路の事前診断処理及び負荷駆動回路の異常診断処理を可能とした負荷駆動回路の異常情報通知装置及び異常診断装置を提供することにある。   An object of the present invention is to provide a load drive that enables pre-diagnosis processing of various circuits used for abnormality diagnosis and abnormality diagnosis processing of a load drive circuit while reducing the circuit scale by using only one comparator. An object of the present invention is to provide a circuit abnormality information notification device and abnormality diagnosis device.

請求項1記載の発明は、第1電源線に接続されたスイッチ素子に駆動制御信号を印加することに応じて当該スイッチ素子に直列接続され第2電源線に接続された負荷を駆動する負荷駆動回路の異常情報通知装置を対象としている。
この請求項1記載の発明によれば、コンパレータは第1入力端子に与えられる第1入力電圧と第2入力端子に与えられる第2入力電圧とを比較し比較結果を出力する。基準電圧生成回路は、第1基準電圧と、第2基準電圧とを生成する。
閾値電圧生成回路は、第1及び第2閾値電圧を生成する。このとき、閾値電圧生成回路は、第2閾値電圧が第2基準電圧よりも低く第1閾値電圧が第2基準電圧よりも高い条件を満たす第1及び第2閾値電圧を生成する。
According to the first aspect of the present invention, a load drive that drives a load connected in series to the switch element and connected to the second power supply line in response to applying a drive control signal to the switch element connected to the first power supply line. It is intended for a circuit abnormality information notification device.
According to the first aspect of the present invention, the comparator compares the first input voltage applied to the first input terminal with the second input voltage applied to the second input terminal, and outputs a comparison result. The reference voltage generation circuit generates a first reference voltage and a second reference voltage.
The threshold voltage generation circuit generates first and second threshold voltages. At this time, the threshold voltage generation circuit generates first and second threshold voltages that satisfy a condition in which the second threshold voltage is lower than the second reference voltage and the first threshold voltage is higher than the second reference voltage.

第1切換回路は基準電圧生成回路の第1及び第2基準電圧を切換えコンパレータに第1入力電圧として切換出力し、第2切換回路は閾値電圧生成回路の第1及び第2閾値電圧を切換えコンパレータに第2入力電圧として切換出力する。スイッチ素子により負荷に通電オンしたときに第1切換回路が第1電源線に入力される電圧又はその比例電圧をコンパレータに第1入力電圧として切換出力し、スイッチ素子により負荷に通電オフしたときに基準電圧生成回路の第1基準電圧を負荷及びスイッチ素子間のノードに印加し、第1切換回路が当該印加電圧又はその比例電圧をコンパレータに第1入力電圧として切換出力する。通知手段は、これらの第1切換回路の切換状態、第2切換回路の切換状態、コンパレータの比較結果に基づいて異常の有無を示す情報を通知する手段である。   The first switching circuit switches and outputs the first and second reference voltages of the reference voltage generation circuit to the switching comparator as a first input voltage, and the second switching circuit switches the first and second threshold voltages of the threshold voltage generation circuit. Are switched and output as the second input voltage. When the switch element energizes the load, the first switching circuit switches the voltage input to the first power line or its proportional voltage to the comparator as the first input voltage, and when the switch element energizes the load. The first reference voltage of the reference voltage generation circuit is applied to the node between the load and the switch element, and the first switching circuit switches and outputs the applied voltage or its proportional voltage to the comparator as the first input voltage. The notification means is means for notifying information indicating the presence or absence of abnormality based on the switching state of the first switching circuit, the switching state of the second switching circuit, and the comparison result of the comparator.

スイッチ素子により前記負荷に通電オンしたときに当該スイッチ素子を通じて接続された第1電源線に入力される電圧又はその比例電圧を第1切換回路がコンパレータに第1入力電圧として切換出力し、スイッチ素子により負荷に通電オフしたときに基準電圧生成回路が第1基準電圧を負荷及びスイッチ素子間のノードに印加し、第1切換回路が当該印加電圧又はその比例電圧をコンパレータに第1入力電圧として切換出力することに応じて通知手段は異常を検知するための情報を通知する。   When the switch element is energized to turn on the load, the first switching circuit switches and outputs the voltage input to the first power line connected through the switch element or its proportional voltage to the comparator as the first input voltage. The reference voltage generation circuit applies the first reference voltage to the node between the load and the switch element when the load is turned off by the first switching circuit, and the first switching circuit switches the applied voltage or its proportional voltage to the comparator as the first input voltage. In response to the output, the notification means notifies information for detecting an abnormality.

第1切換回路が第2基準電圧をコンパレータに第1入力電圧として切換出力していると共に第2切換回路が第1及び第2閾値電圧をコンパレータに第2入力電圧として切換出力している状態で、通知手段がコンパレータの動作を通知することにより、第1切換回路、第2切換回路、および、コンパレータの動作が事前診断される。   In a state where the first switching circuit switches and outputs the second reference voltage to the comparator as the first input voltage and the second switching circuit switches and outputs the first and second threshold voltages to the comparator as the second input voltage. When the notifying means notifies the operation of the comparator, the operations of the first switching circuit, the second switching circuit, and the comparator are diagnosed in advance.

第1切換回路、第2切換回路、および、コンパレータの動作の事前診断結果が正常であると判定されたことを条件とした本診断時においては、第1切換回路が第1基準電圧又はその比例電圧をコンパレータに第1入力電圧として切換出力していると共に第2切換回路が第1及び第2閾値電圧をコンパレータに第2入力電圧として切換出力している状態で、通知手段は、負荷を駆動する駆動制御信号のオンオフ駆動制御信号のそれぞれに対応したコンパレータの比較結果に基づいて異常の有無を示す情報を通知する。すると、外部では異常の有無を判断することができる。これにより、コンパレータを1つのみ用いて構成することができ、回路規模を縮小化できる。しかも異常診断用に用いられる各種回路の事前診断処理及び負荷駆動回路の異常診断処理を可能にできる。   At the time of this diagnosis on the condition that the pre-diagnosis result of the operation of the first switching circuit, the second switching circuit, and the comparator is determined to be normal, the first switching circuit is the first reference voltage or a proportion thereof. The notification means drives the load while the voltage is switched and output to the comparator as the first input voltage and the second switching circuit is switching and outputting the first and second threshold voltages to the comparator as the second input voltage. Information indicating the presence / absence of abnormality is notified based on the comparison result of the comparator corresponding to each of the on / off drive control signals of the drive control signal to be performed. Then, the presence or absence of abnormality can be determined outside. As a result, it can be configured using only one comparator, and the circuit scale can be reduced. In addition, it is possible to perform pre-diagnosis processing of various circuits used for abnormality diagnosis and abnormality diagnosis processing of the load drive circuit.

第1実施形態を概略的に示す負荷駆動回路の異常診断装置の電気的構成図Electrical configuration diagram of an abnormality diagnosis device for a load drive circuit schematically showing the first embodiment バッファアンプの内部を概略的に示す回路構成図Circuit configuration diagram schematically showing the inside of the buffer amplifier (a)は判定回路の内部の構成例を概略的に示す電気的構成図、(b)は判定回路の各ノードの信号状態と判断手段の異常判断内容例を概略的に示すテーブル(A) is an electrical configuration diagram schematically showing an internal configuration example of the determination circuit, (b) is a table schematically showing an example of the signal state of each node of the determination circuit and an abnormality determination content of the determination means. 事前診断処理の内容を概略的に示すタイミングチャート(正常時)Timing chart showing the details of the pre-diagnosis process (when normal) 異常診断装置の動作の流れを概念的に示すフローチャートFlow chart conceptually showing the flow of operation of the abnormality diagnosis device (a)(b)は事前診断処理の内容を概略的に示すタイミングチャート(異常時)(A) (b) is a timing chart schematically showing the contents of the pre-diagnosis process (at the time of abnormality) 本診断処理の内容を概略的に示すタイミングチャート(ハイサイド駆動:通常は負荷への通電オフ時)Timing chart schematically showing the contents of this diagnostic process (High-side drive: Normally when the load is turned off) 本診断処理時の各ノードの信号状態((a)通常時、(b)電源短絡時、(c)グランド短絡時)Signal status of each node during this diagnostic process ((a) normal, (b) power supply short circuit, (c) ground short circuit) 本診断処理の内容を概略的に示すタイミングチャート(ハイサイド駆動:通常は負荷への通電オン時)Timing chart schematically showing the contents of this diagnosis process (High-side drive: Normally when the load is energized) 本診断処理の内容を概略的に示すタイミングチャート(ハイサイド駆動:通常は負荷への通電オン時)Timing chart schematically showing the contents of this diagnosis process (High-side drive: Normally when the load is energized) 本診断処理時の各ノードの信号状態((a)通常時、(b)オープン異常時、(c)グランド短絡時)Signal status of each node during this diagnostic process ((a) Normal, (b) Open error, (c) Ground short circuit) マスク期間における各ノードの信号状態を概略的に示すタイミングチャートTiming chart schematically showing signal state of each node in mask period 第2実施形態を概略的に示す負荷駆動回路の異常診断装置の電気的構成図Electrical configuration diagram of an abnormality diagnosis device for a load drive circuit schematically showing a second embodiment 判定回路の各ノードの信号状態と判断手段の異常判断内容例を概略的に示すテーブルTable schematically showing signal status of each node of determination circuit and abnormality determination example of determination means 本診断処理の内容を概略的に示すタイミングチャート(ローサイド駆動:通常は負荷への通電オフ時)Timing chart schematically showing the contents of this diagnosis process (low-side drive: usually when the load is turned off) 本診断処理の内容を概略的に示すタイミングチャート(ローサイド駆動:通常は負荷への通電オン時)Timing chart schematically showing the contents of this diagnostic process (low-side drive: normally when the load is energized) 本診断処理の内容を概略的に示すタイミングチャート(ローサイド駆動:通常は負荷への通電オン時)Timing chart schematically showing the contents of this diagnostic process (low-side drive: normally when the load is energized) マスク期間における各ノードの信号状態を概略的に示すタイミングチャートTiming chart schematically showing signal state of each node in mask period

以下、負荷駆動回路の異常情報通知装置及び異常診断装置の幾つかの実施形態を説明する。以下の実施形態中では、各実施形態間で同一機能または類似機能を備えた部分に同一符号を付して説明を省略する。   Hereinafter, some embodiments of an abnormality information notification device and an abnormality diagnosis device for a load drive circuit will be described. In the following embodiments, portions having the same function or similar functions between the embodiments are denoted by the same reference numerals and description thereof is omitted.

(第1実施形態)
図1〜図12は第1実施形態を示す。図1には、負荷駆動回路の異常診断装置の電気的構成を概略的に示している。この負荷駆動回路1は、例えば車両(図示せず)に搭載された電子制御装置(ECU:Electronic Control Unit)に設けられている。車両には、電源線としての電源端子2と他の電源線としてのグランド3との間にバッテリ電圧VBがバッテリ(図示せず)から供給されている。負荷駆動回路1は、このバッテリ電圧VB及びこの電圧VBに基づいて生成された電源電圧Vcc等を用いて車両の運転状態に応じて負荷4を駆動制御する。
(First embodiment)
1 to 12 show a first embodiment. FIG. 1 schematically shows an electrical configuration of an abnormality diagnosis device for a load drive circuit. The load drive circuit 1 is provided, for example, in an electronic control unit (ECU) mounted on a vehicle (not shown). A battery voltage VB is supplied to the vehicle from a battery (not shown) between a power terminal 2 as a power line and a ground 3 as another power line. The load drive circuit 1 drives and controls the load 4 according to the driving state of the vehicle using the battery voltage VB and the power supply voltage Vcc generated based on the voltage VB.

この負荷駆動回路1は、マイクロコンピュータ(以下マイコンと称す:判断手段相当)5、ゲートドライバ6、及び、スイッチ素子7を接続して構成され、スイッチ素子7に供給されるバッテリ電圧VBにより負荷4をハイサイド駆動する。負荷4は、例えばソレノイド、インジェクタの電磁コイルなどの誘導性負荷であるが、負荷の種類は限られるものではない。また、図1にはハイサイド駆動の例を示しているが、後述するようにローサイド駆動の場合にも同様に適用できる。   The load driving circuit 1 is configured by connecting a microcomputer (hereinafter referred to as a microcomputer: equivalent to a judging means) 5, a gate driver 6, and a switch element 7, and a load 4 by a battery voltage VB supplied to the switch element 7. High side drive. The load 4 is an inductive load such as a solenoid or an electromagnetic coil of an injector, but the type of load is not limited. Although FIG. 1 shows an example of high-side driving, the present invention can be similarly applied to low-side driving as will be described later.

マイコン5は、負荷駆動用の指令信号(PWM信号)を生成しゲートドライバ6に出力する。ゲートドライバ6はマイコン5から入力される指令信号に応じてスイッチ素子7に駆動制御信号(オンオフの駆動制御信号)を印加する。スイッチ素子7は、例えばPチャネル型のMOSFETにより構成され、駆動制御信号が「H」のときにオフし、駆動制御信号が「L」のときにオンし、この駆動制御信号の変化に応じて負荷4に通電/断電する。このMOSFETのソースにはバッテリ電圧VBの電源端子2が接続されており、負荷4はMOSFETのドレインとグランド3との間に接続されている。   The microcomputer 5 generates a load driving command signal (PWM signal) and outputs it to the gate driver 6. The gate driver 6 applies a drive control signal (on / off drive control signal) to the switch element 7 in response to a command signal input from the microcomputer 5. The switch element 7 is composed of, for example, a P-channel MOSFET, and is turned off when the drive control signal is “H”, and turned on when the drive control signal is “L”. Energize / disconnect the load 4. The power source terminal 2 of the battery voltage VB is connected to the source of the MOSFET, and the load 4 is connected between the drain of the MOSFET and the ground 3.

さて、この負荷駆動回路1には集積回路装置8が接続されている。この集積回路装置8は異常情報通知装置として動作するもので、マイコン5と共に前述の負荷駆動回路1の異常診断装置9を構成している。異常診断装置9は、基準電圧生成回路10、閾値電圧生成回路11、第1切換回路12、第2切換回路13、1つのコンパレータ14、クロック生成回路15、ラッチ回路16、回路17、コントローラ18、19、及び、前述のマイコン5、を接続して構成される。   An integrated circuit device 8 is connected to the load driving circuit 1. The integrated circuit device 8 operates as an abnormality information notification device, and constitutes the abnormality diagnosis device 9 of the load drive circuit 1 together with the microcomputer 5. The abnormality diagnosis device 9 includes a reference voltage generation circuit 10, a threshold voltage generation circuit 11, a first switching circuit 12, a second switching circuit 13, a comparator 14, a clock generation circuit 15, a latch circuit 16, a circuit 17, a controller 18, 19 and the microcomputer 5 described above are connected.

基準電圧生成回路10は、第1基準電圧生成回路20と第2基準電圧生成回路21とを備える。第1基準電圧生成回路20は第1基準電圧Vref1を生成するもので、例えば抵抗分圧回路により構成され、例えば2.5V程度の安定化基準電圧を出力する。第2基準電圧生成回路21は第2基準電圧Vref2を生成するもので、例えば抵抗分圧回路により構成され、例えば0.8〜1.0V程度の安定化基準電圧を出力する。この第2基準電圧生成回路21の第2基準電圧Vref2は第1切換回路12に出力されている。   The reference voltage generation circuit 10 includes a first reference voltage generation circuit 20 and a second reference voltage generation circuit 21. The first reference voltage generation circuit 20 generates the first reference voltage Vref1, and is composed of, for example, a resistance voltage dividing circuit, and outputs a stabilized reference voltage of about 2.5V, for example. The second reference voltage generation circuit 21 generates the second reference voltage Vref2, and is composed of, for example, a resistance voltage dividing circuit, and outputs a stabilized reference voltage of, for example, about 0.8 to 1.0V. The second reference voltage Vref2 of the second reference voltage generation circuit 21 is output to the first switching circuit 12.

閾値電圧生成回路11は、分圧抵抗R1〜R3を備えて構成される。これらの分圧抵抗R1〜R3は電源電圧Vccの供給ノードとグランドノードとの間に直列接続され電源電圧Vccを所定比で分圧する。閾値電圧生成回路11は、抵抗R1とR2の共通接続ノードから第1閾値電圧Vth1を出力し、抵抗R2とR3の共通接続ノードから第2閾値電圧Vth2(<Vth1)を出力する。第2閾値電圧Vth2は、第2基準電圧Vref2よりも低く予め設定されている。第1閾値電圧Vth1は、第2基準電圧Vref2よりも高く予め設定されている。   The threshold voltage generation circuit 11 includes voltage dividing resistors R1 to R3. These voltage dividing resistors R1 to R3 are connected in series between the supply node of the power supply voltage Vcc and the ground node and divide the power supply voltage Vcc at a predetermined ratio. The threshold voltage generation circuit 11 outputs the first threshold voltage Vth1 from the common connection node of the resistors R1 and R2, and outputs the second threshold voltage Vth2 (<Vth1) from the common connection node of the resistors R2 and R3. The second threshold voltage Vth2 is set in advance lower than the second reference voltage Vref2. The first threshold voltage Vth1 is set higher than the second reference voltage Vref2.

また、集積回路装置8は、第1基準電圧生成回路20の第1基準電圧Vref1をバッファ出力するバッファアンプ22を内蔵する。図2にバッファアンプ22の構成例を示す。バッファアンプ22は、1入力−2出力であり、高入力インピーダンス−低出力インピーダンスの構成となっている。このバッファアンプ22は電源電圧Vccにより動作するオペアンプOP1のボルテージフォロワ回路23を初段に備える。ボルテージフォロワ回路23は第1基準電圧Vref1を入力し、このボルテージフォロワ回路23の後段回路はこの第1基準電圧Vref1と同一又は比例した第1出力Vref11、第2出力Vref12をバッファアンプ22の出力とする。これにより、仮にボルテージフォロワ回路23の後段回路が異常を生じたとしても、その前段回路への影響を防ぐことができる。   The integrated circuit device 8 also includes a buffer amplifier 22 that outputs the first reference voltage Vref1 of the first reference voltage generation circuit 20 as a buffer. FIG. 2 shows a configuration example of the buffer amplifier 22. The buffer amplifier 22 has one input and two outputs, and has a configuration of high input impedance-low output impedance. The buffer amplifier 22 includes a voltage follower circuit 23 of an operational amplifier OP1 that operates by a power supply voltage Vcc in the first stage. The voltage follower circuit 23 receives the first reference voltage Vref1, and the subsequent circuit of the voltage follower circuit 23 uses the first output Vref11 and the second output Vref12 that are the same as or proportional to the first reference voltage Vref1 as the output of the buffer amplifier 22. To do. Thereby, even if an abnormality occurs in the subsequent circuit of the voltage follower circuit 23, the influence on the preceding circuit can be prevented.

バッテリ電圧VBの入力ノードとボルテージフォロワ回路23の出力ノードとの間には、電流源24、ダイオード接続NMOSトランジスタ25、順方向ダイオード26が直列接続されている。電流源24とトランジスタ25との共通接続ノードには出力NMOSトランジスタ27のゲートが接続されている。トランジスタ27のドレインはバッテリ電圧VBの供給ノードに接続されており、トランジスタのソースとグランドとの間には抵抗28、ダイオード29、抵抗30、31が直列接続されている。NMOSトランジスタ27のゲートソース間には、NMOSトランジスタ32のドレインゲート間が接続されており、NMOSトランジスタ32のソースは抵抗28とダイオード29のアノードとの共通接続ノードに接続されている。これにより、NMOSトランジスタ27の短絡保護が図られている。   A current source 24, a diode-connected NMOS transistor 25, and a forward diode 26 are connected in series between the input node of the battery voltage VB and the output node of the voltage follower circuit 23. The gate of the output NMOS transistor 27 is connected to a common connection node between the current source 24 and the transistor 25. The drain of the transistor 27 is connected to the supply node of the battery voltage VB, and a resistor 28, a diode 29, and resistors 30, 31 are connected in series between the source of the transistor and the ground. Between the gate and source of the NMOS transistor 27, the drain gate of the NMOS transistor 32 is connected, and the source of the NMOS transistor 32 is connected to a common connection node between the resistor 28 and the anode of the diode 29. As a result, the NMOS transistor 27 is short-circuit protected.

さて、図1に示すように、バッファアンプ22の第1出力Vref11は、集積回路装置2の出力端子O1を通じてスイッチ素子7と負荷4との共通接続ノードN1に出力されている。また、バッファアンプ22の第2出力Vref12は第1切換回路12に入力されている。第1切換回路12は、例えばMOSトランジスタ及びNOTゲートを組み合わせて構成された通断電用のアナログスイッチSW1,SW2を2組備える。この第1切換回路12は、回路17からコントローラ19を通じて与えられる制御信号φ1、φ2(オンオフ制御信号)に応じて、バッファアンプ22の第2出力Vref12と第2基準電圧生成回路21の第2基準電圧Vref2とを切換え、この選択された基準電圧をコンパレータ14の第1入力端子(非反転入力端子)に第1入力電圧Vinpとして切換出力する。   As shown in FIG. 1, the first output Vref11 of the buffer amplifier 22 is output to the common connection node N1 between the switch element 7 and the load 4 through the output terminal O1 of the integrated circuit device 2. The second output Vref12 of the buffer amplifier 22 is input to the first switching circuit 12. The first switching circuit 12 includes two sets of analog switches SW1 and SW2 for power interruption that are configured by combining, for example, a MOS transistor and a NOT gate. The first switching circuit 12 receives the second output Vref12 of the buffer amplifier 22 and the second reference of the second reference voltage generation circuit 21 in accordance with control signals φ1 and φ2 (on / off control signals) supplied from the circuit 17 through the controller 19. The voltage Vref2 is switched, and the selected reference voltage is switched and output to the first input terminal (non-inverting input terminal) of the comparator 14 as the first input voltage Vinp.

閾値電圧生成回路11は、第1閾値電圧Vth1、第2閾値電圧Vth2を第2切換回路13に出力する。第2切換回路13は、例えばMOSトランジスタ及びNOTゲートを組み合わせて構成されたアナログスイッチSW3,SW4を2組備えて構成される。この第2切換回路13は、回路17からコントローラ18を通じて与えられる制御信号φ3、φ4(オンオフ制御信号)に応じて、閾値電圧生成回路11により生成された第1閾値電圧Vth1、第2閾値電圧Vth2を選択的にコンパレータ14の第2入力端子(反転入力端子)に第2入力電圧Vinnとして切換出力する。   The threshold voltage generation circuit 11 outputs the first threshold voltage Vth1 and the second threshold voltage Vth2 to the second switching circuit 13. The second switching circuit 13 includes, for example, two sets of analog switches SW3 and SW4 configured by combining MOS transistors and NOT gates. The second switching circuit 13 includes a first threshold voltage Vth1 and a second threshold voltage Vth2 generated by the threshold voltage generation circuit 11 in response to control signals φ3 and φ4 (on / off control signals) supplied from the circuit 17 through the controller 18. Are selectively output to the second input terminal (inverted input terminal) of the comparator 14 as the second input voltage Vinn.

コンパレータ14は、これらの第1及び第2入力端子に与えられた電圧を比較し、デジタルレベルとしてラッチ回路16に出力する。クロック生成回路15は、例えば40[MHz]のクロック信号CLKを生成し、ラッチ回路16、回路17、コントローラ18および19を含む構成に出力する。ラッチ回路16は、例えばDフリップフロップにより構成され、クロック生成回路15から与えられるクロック信号CLKに応じてデータを保持しQ出力する。   The comparator 14 compares the voltages applied to the first and second input terminals and outputs the voltage to the latch circuit 16 as a digital level. The clock generation circuit 15 generates a clock signal CLK of 40 [MHz], for example, and outputs the clock signal CLK to a configuration including the latch circuit 16, the circuit 17, and the controllers 18 and 19. The latch circuit 16 is composed of, for example, a D flip-flop, holds data and outputs Q according to the clock signal CLK supplied from the clock generation circuit 15.

このラッチ回路16のQ出力は回路17に与えられる。ゲートドライバ6はマイコン5から入力される指令信号に応じてスイッチ素子7に駆動制御信号(オンオフ駆動制御信号)を印加するが、この駆動制御信号は、入力端子IN1を通じて回路17にも入力される。回路17は、ゲートドライバ6から駆動制御信号を入力する形態を示すが、マイコン5が出力するオンオフ指令信号を駆動制御信号として入力する形態に適用しても良い。回路17は、ラッチ回路16のQ出力の内容に応じて異常の有無を示すデータ(情報)をマイコン5に通知し、必要に応じて回路17がコントローラ18、19により第1及び第2切換回路12及び13を切換制御する。マイコン5は、回路17から異常が存在する旨の情報が通知されたときには、フェールセーフ処理(例えばゲートドライバ6にオフ指令信号を直ちに出力し負荷駆動制御を停止)する。   The Q output of the latch circuit 16 is given to the circuit 17. The gate driver 6 applies a drive control signal (on / off drive control signal) to the switch element 7 in response to a command signal input from the microcomputer 5, and this drive control signal is also input to the circuit 17 through the input terminal IN1. . The circuit 17 shows a form in which a drive control signal is input from the gate driver 6, but may be applied to a form in which an on / off command signal output from the microcomputer 5 is input as a drive control signal. The circuit 17 notifies the microcomputer 5 of data (information) indicating the presence / absence of abnormality according to the contents of the Q output of the latch circuit 16, and the circuit 17 is controlled by the controllers 18 and 19 as necessary. 12 and 13 are switched. The microcomputer 5 performs fail-safe processing (for example, immediately outputs an off command signal to the gate driver 6 and stops the load drive control) when information indicating that an abnormality exists is notified from the circuit 17.

図3(a)は回路17の構成例を示す。回路17は、コントローラ40と、ラッチ回路41、42と、通信インタフェース回路43と、NOTゲート44とを備える。ラッチ回路41、42は、例えばDフリップフロップにより構成される。通信インタフェース回路43は、例えばSPI(Serial Peripheral Interface)バスを用いて構成される。   FIG. 3A shows a configuration example of the circuit 17. The circuit 17 includes a controller 40, latch circuits 41 and 42, a communication interface circuit 43, and a NOT gate 44. The latch circuits 41 and 42 are configured by D flip-flops, for example. The communication interface circuit 43 is configured using, for example, an SPI (Serial Peripheral Interface) bus.

ラッチ回路16のQ出力は一方のラッチ回路41のD端子に入力されると共にNOTゲート44を介して他方のラッチ回路42のD端子に入力される。したがって、ラッチ回路16のQ出力は一方及び他方のラッチ回路41、42のD入力に相補的に入力される。   The Q output of the latch circuit 16 is input to the D terminal of one latch circuit 41 and is also input to the D terminal of the other latch circuit 42 via the NOT gate 44. Accordingly, the Q output of the latch circuit 16 is complementarily input to the D inputs of the one and other latch circuits 41 and 42.

回路17内のコントローラ40は、クロック生成回路15からクロック信号CLKを入力すると共に、ゲートドライバ6から駆動制御信号を入力する。コントローラ40は、これらの入力信号に応じて制御信号φ5、φ6を一方及び他方のラッチ回路41、42のクロック端子に出力する。制御信号φ5、φ6は相補信号となっており、これらのラッチ回路41、42のQ出力は通信インタフェース回路43に入力されており、通信インタフェース回路43は、これらのラッチ回路41、42の出力を回路17の出力結果としてシリアル通信によりマイコン5に出力する。   The controller 40 in the circuit 17 receives the clock signal CLK from the clock generation circuit 15 and the drive control signal from the gate driver 6. The controller 40 outputs control signals φ5 and φ6 to the clock terminals of one and the other latch circuits 41 and 42 in accordance with these input signals. The control signals φ5 and φ6 are complementary signals, and the Q outputs of the latch circuits 41 and 42 are input to the communication interface circuit 43. The communication interface circuit 43 outputs the outputs of the latch circuits 41 and 42. The output result of the circuit 17 is output to the microcomputer 5 by serial communication.

上記構成の作用について説明する。まず、理解を容易にするため、バッファアンプ22の基本的動作説明を行う。例えばイグニッションスイッチがオン操作されることでバッテリ電圧VBがECUに入力される。電源が投入されると、電源電圧VB、Vccが各回路に供給される。マイコン5がゲートドライバ6にオフ指令信号を出力すると、ゲートドライバ6はスイッチ素子7にオフ駆動制御信号(「H」)を印加する。すると、スイッチ素子7と負荷4との間の共通接続ノードN1には、バッファアンプ22の第1出力Vref11が与えられる。   The operation of the above configuration will be described. First, in order to facilitate understanding, a basic operation of the buffer amplifier 22 will be described. For example, when the ignition switch is turned on, the battery voltage VB is input to the ECU. When power is turned on, power supply voltages VB and Vcc are supplied to each circuit. When the microcomputer 5 outputs an off command signal to the gate driver 6, the gate driver 6 applies an off drive control signal (“H”) to the switch element 7. Then, the first output Vref11 of the buffer amplifier 22 is given to the common connection node N1 between the switch element 7 and the load 4.

図2に示すバッファアンプ22内のトランジスタ25と27の閾値電圧Vt1が一致するように構成され、抵抗28による電圧降下がほぼ無視可能な電圧となる場合、バッファアンプ22は、第1出力Vref11として、第1基準電圧Vref1にほぼ一致した電圧を出力する。第1基準電圧Vref1はバッテリ電圧VBよりも低くグランド電圧よりも高い電圧であり、第1出力Vref11も同様である。   When the threshold voltages Vt1 of the transistors 25 and 27 in the buffer amplifier 22 shown in FIG. 2 are configured to coincide with each other, and the voltage drop due to the resistor 28 becomes a substantially negligible voltage, the buffer amplifier 22 outputs the first output Vref11. , A voltage substantially equal to the first reference voltage Vref1 is output. The first reference voltage Vref1 is lower than the battery voltage VB and higher than the ground voltage, and the first output Vref11 is the same.

また、抵抗30と31の抵抗値比が2:1に設定されている場合、バッファアンプ22は、第1出力Vref11の例えば3分の1の電圧Vref11/3を、第1基準電圧Vref1の第2出力Vref12として出力する。このバッファアンプ22の第2出力Vref12は、閾値電圧生成回路11が出力する第1閾値電圧Vth1よりも低く第2閾値電圧Vth2よりも高くなる電圧に予め設定されている。なお、前述の抵抗値比は2:1に設定された形態を示すが、この電圧条件を満たせば、抵抗値比はこれに限定されるものではなく適宜変更可能である。スイッチ素子7がオフされていれば、バッファアンプ22は、第1基準電圧生成回路20が出力する第1基準電圧Vref1と同一電圧又はその比例電圧を第1出力Vref11、第2出力Vref12として出力する。   When the resistance value ratio between the resistors 30 and 31 is set to 2: 1, the buffer amplifier 22 uses, for example, one third of the voltage Vref11 / 3 of the first output Vref11 as the first reference voltage Vref1. Output as 2-output Vref12. The second output Vref12 of the buffer amplifier 22 is set in advance to a voltage lower than the first threshold voltage Vth1 output from the threshold voltage generation circuit 11 and higher than the second threshold voltage Vth2. The above-described resistance value ratio is set to 2: 1. However, if this voltage condition is satisfied, the resistance value ratio is not limited to this and can be changed as appropriate. If the switch element 7 is off, the buffer amplifier 22 outputs the same voltage as or proportional to the first reference voltage Vref1 output from the first reference voltage generation circuit 20 as the first output Vref11 and the second output Vref12. .

他方、マイコン5がゲートドライバ6にオン指令信号を出力するとゲートドライバ6はスイッチ素子7にオン駆動制御信号(「L」)を印加する。すると、スイッチ素子7と負荷4との間の共通接続ノードN1にはバッテリ電圧VBに近い電圧が与えられ、このバッテリ電圧VBが集積回路装置8の出力端子O1を通じてバッファアンプ22の出力側から入力されることになる。この場合、図2に示すダイオード29の逆流防止作用により抵抗30及び31にはバッテリ電圧VBが与えられる。したがって、バッファアンプ22は、バッテリ電圧VBをほぼ3分の1した電圧を第2出力Vref12として出力する。このようにしてバッファアンプ22は動作する。   On the other hand, when the microcomputer 5 outputs an ON command signal to the gate driver 6, the gate driver 6 applies an ON drive control signal (“L”) to the switch element 7. Then, a voltage close to the battery voltage VB is applied to the common connection node N1 between the switch element 7 and the load 4, and this battery voltage VB is input from the output side of the buffer amplifier 22 through the output terminal O1 of the integrated circuit device 8. Will be. In this case, the battery voltage VB is applied to the resistors 30 and 31 by the backflow preventing action of the diode 29 shown in FIG. Therefore, the buffer amplifier 22 outputs a voltage that is approximately one third of the battery voltage VB as the second output Vref12. In this way, the buffer amplifier 22 operates.

図4には電源投入時における事前診断処理(自己診断処理)と負荷の駆動時における異常判定処理をフローチャートにより概略的に示している。また、図5に電源投入後の全体の動作の流れを理解しやすくするようにタイミングチャートによって概略的に示す。   FIG. 4 schematically shows a flowchart of a pre-diagnosis process (self-diagnosis process) when the power is turned on and an abnormality determination process when the load is driven. FIG. 5 schematically shows a timing chart so that the overall operation flow after power-on can be easily understood.

例えばイグニッションスイッチ(図示せず)がオン操作されることでバッテリ電圧VBが負荷駆動回路1等(集積回路装置8)に入力される。負荷駆動回路1等(集積回路装置8)はこのバッテリ電圧VBの入力電圧の上昇を検知し、コントローラ19が制御信号φ1、φ2をそれぞれ「L」、「H」レベルとして第1切換回路12のスイッチSW1、SW2に出力する。また、コントローラ18は制御信号φ3、φ4をクロック信号CLKの発生タイミングに同期して相補的に「H」、「L」を第2切換回路13のスイッチSW3、SW4に出力する(図4のT1期間)。   For example, when an ignition switch (not shown) is turned on, the battery voltage VB is input to the load driving circuit 1 or the like (the integrated circuit device 8). The load driving circuit 1 or the like (the integrated circuit device 8) detects the increase in the input voltage of the battery voltage VB, and the controller 19 sets the control signals φ1 and φ2 to the “L” and “H” levels, respectively, of the first switching circuit 12. Output to switches SW1 and SW2. Further, the controller 18 complementarily outputs “H” and “L” to the switches SW3 and SW4 of the second switching circuit 13 in synchronization with the generation timing of the clock signal CLK (T1 in FIG. 4). period).

例えば、(φ1,φ2)=(「L」,「H」)、(φ3,φ4)=(「H」,「L」)の期間には(期間T1a)、コンパレータ14の第1入力端子には第1入力電圧Vinpとして第2基準電圧Vref2が入力され、コンパレータ14の第2入力端子には第2入力電圧Vinnとして第1閾値電圧Vth1が入力される。   For example, during the period (φ1, φ2) = (“L”, “H”), (φ3, φ4) = (“H”, “L”) (period T1a), the first input terminal of the comparator 14 is connected. The second reference voltage Vref2 is input as the first input voltage Vinp, and the first threshold voltage Vth1 is input as the second input voltage Vinn to the second input terminal of the comparator 14.

この状態において、クロック生成回路15がクロック信号CLKのパルスをラッチ回路16に同期出力すると、ラッチ回路16はこのクロック信号CLKのパルス入力タイミングにおいてD入力を保持し、この保持データが回路17に出力される。ここで、第2基準電圧生成回路21が生成する第2基準電圧Vref2は、第1閾値電圧Vth1より低く設定されている。   In this state, when the clock generation circuit 15 synchronously outputs the pulse of the clock signal CLK to the latch circuit 16, the latch circuit 16 holds the D input at the pulse input timing of the clock signal CLK and outputs the held data to the circuit 17. Is done. Here, the second reference voltage Vref2 generated by the second reference voltage generation circuit 21 is set lower than the first threshold voltage Vth1.

このため、第2切換回路13がコンパレータ14に第2入力電圧Vinnとして第1閾値電圧Vth1を選択的に切換出力するときには、コンパレータ14、第1切換回路12、第2切換回路13が正常動作していればラッチ回路16のQ出力が「L」となる。しかし、前述の回路が正常動作していなければQ出力が「H」となる。   Therefore, when the second switching circuit 13 selectively switches and outputs the first threshold voltage Vth1 as the second input voltage Vinn to the comparator 14, the comparator 14, the first switching circuit 12, and the second switching circuit 13 operate normally. If so, the Q output of the latch circuit 16 becomes “L”. However, if the above circuit is not operating normally, the Q output becomes “H”.

また、その後、(φ1,φ2)=(「L」,「H」)、(φ3,φ4)=(「L」,「H」)の期間には(期間T1b)、コンパレータ14の第2入力端子には第2入力電圧Vinnとして第2閾値電圧Vth2が入力される。   After that, during the period of (φ1, φ2) = (“L”, “H”), (φ3, φ4) = (“L”, “H”) (period T1b), the second input of the comparator 14 The second threshold voltage Vth2 is input to the terminal as the second input voltage Vinn.

この状態で、クロック生成回路15がクロック信号CLKのパルスをラッチ回路16に同期出力すると、ラッチ回路16はこのクロック信号CLKのパルス入力タイミングにおいてD入力を保持し回路17に出力する。ここで、第2基準電圧生成回路21が生成する第2基準電圧Vref2は、第2閾値電圧Vth2より高く設定されている。このため、コンパレータ14、第1切換回路12、第2切換回路13が正常動作していればラッチ回路16のQ出力が「H」となる(図4の期間T1b参照:図5のS1)。しかし、前述の回路が正常動作していなければQ出力が「L」となる。   In this state, when the clock generation circuit 15 synchronously outputs the pulse of the clock signal CLK to the latch circuit 16, the latch circuit 16 holds the D input at the pulse input timing of the clock signal CLK and outputs it to the circuit 17. Here, the second reference voltage Vref2 generated by the second reference voltage generation circuit 21 is set higher than the second threshold voltage Vth2. Therefore, if the comparator 14, the first switching circuit 12, and the second switching circuit 13 are operating normally, the Q output of the latch circuit 16 becomes “H” (see the period T1b in FIG. 4; S1 in FIG. 5). However, if the above circuit is not operating normally, the Q output becomes “L”.

また、その後の(φ1,φ2)=(「L」,「H」)、(φ3,φ4)=(「H」,「L」)の期間でも同様に、前述の回路が正常動作していれば、ラッチ回路16のQ出力が「L」となる(図4の期間T1c参照:図5のS1)。   Similarly, in the subsequent periods (φ1, φ2) = (“L”, “H”), (φ3, φ4) = (“H”, “L”), the circuit described above may operate normally. For example, the Q output of the latch circuit 16 becomes “L” (see the period T1c in FIG. 4; S1 in FIG. 5).

なお、逆に、これらの条件を満たしていないときには、図6(a)に示すように、前述のようなラッチ回路16のQ出力が異常値(「L」レベル持続)を示すことになったり、図6(b)に示すように、ラッチ回路16のQ出力が異常値(「H」レベル持続)を示すことになったりする。   Conversely, when these conditions are not satisfied, as shown in FIG. 6A, the Q output of the latch circuit 16 as described above exhibits an abnormal value ("L" level sustained). As shown in FIG. 6B, the Q output of the latch circuit 16 may indicate an abnormal value ("H" level sustained).

回路17のコントローラ40は、クロック信号CLKのクロック入力タイミングに応じて制御信号φ5,φ6を相補的に切換えてラッチ回路41、42にクロック入力させるため、ラッチ回路16のQ出力が交互にレベル変化していれば(例えば期間T1内の「L」「H」「L」)、ラッチ回路41、42は互いに同レベル(「L」「L」「L」又は「H」「H」「H」)を通信インタフェース回路43に出力する。   Since the controller 40 of the circuit 17 switches the control signals φ5 and φ6 in a complementary manner in accordance with the clock input timing of the clock signal CLK and inputs the clock to the latch circuits 41 and 42, the Q output of the latch circuit 16 alternately changes in level. If so (for example, “L” “H” “L” within the period T1), the latch circuits 41 and 42 are at the same level (“L” “L” “L” or “H” “H” “H”). ) To the communication interface circuit 43.

図3(b)は、判定回路とマイコンの通信処理、正常/異常判定処理の概要を概略的に示す。この図3(b)のうち、特に通信インタフェース回路43の出力Oと正常/異常判別内容との関係は、マイコン5がその内部メモリ(図示せず)にテーブルとして記憶保持するようになっている。   FIG. 3B schematically shows an outline of communication processing between the determination circuit and the microcomputer and normality / abnormality determination processing. In FIG. 3B, the relationship between the output O of the communication interface circuit 43 and the contents of normal / abnormal determination is stored in the internal memory (not shown) as a table. .

通信インタフェース回路43は、連続して同レベル(「L」又は「H」)を入力すると、これに応じた信号「000」又は「111」を出力Oとしてマイコン5にシリアル通信する。この事前診断処理はマイコン5が指令信号をオフとして実行する処理であり、図3(b)に示すように、マイコン5は事前診断処理において正常であると判断できる。   When the communication interface circuit 43 continuously inputs the same level (“L” or “H”), the communication interface circuit 43 serially communicates with the microcomputer 5 using the signal “000” or “111” corresponding to this as an output O. This pre-diagnosis process is a process that the microcomputer 5 executes with the command signal turned off, and as shown in FIG.

逆に、図6(a)又は図6(b)に示すように、ラッチ回路16のQ出力が異常値を示していると、ラッチ回路41、42は互いに異なるレベルを通信インタフェース回路43に出力することになり、通信インタフェース回路43がこのレベルに応じた信号(例えば「010」、「101」)を出力することにより、マイコン5は事前診断処理において異常(例えばグランド短絡、電源短絡)であると判断できる。この場合、マイコン5は通常動作への移行を見送ることになる(図5のS2)。   Conversely, as shown in FIG. 6A or 6B, when the Q output of the latch circuit 16 indicates an abnormal value, the latch circuits 41 and 42 output different levels to the communication interface circuit 43. As a result, the communication interface circuit 43 outputs a signal (for example, “010”, “101”) corresponding to this level, so that the microcomputer 5 is abnormal (for example, ground short circuit, power supply short circuit) in the pre-diagnosis process. It can be judged. In this case, the microcomputer 5 will not see the transition to the normal operation (S2 in FIG. 5).

事前診断処理(自己診断処理)が行われた結果、事前診断処理を正常にパスしたときには、負荷駆動回路1は負荷4をオンオフ駆動する(図5のS3〜S9)。この間、異常検出、異常判定処理(本診断処理)を行う(図5のS4、S7)。この異常検出処理(本診断処理)は負荷4に通電オン又は通電オフしたときに同時並行して行われる処理となっている。   As a result of the pre-diagnosis process (self-diagnosis process), when the pre-diagnosis process is normally passed, the load driving circuit 1 drives the load 4 on and off (S3 to S9 in FIG. 5). During this time, abnormality detection and abnormality determination processing (main diagnosis processing) is performed (S4 and S7 in FIG. 5). This abnormality detection process (main diagnosis process) is a process that is performed in parallel when the load 4 is turned on or off.

通常動作において、負荷駆動回路1が負荷4を駆動するときには、駆動制御信号がオフであるときに(図5のS3でYES)、回路17のコントローラ40がコントローラ19により、制御信号(φ1,φ2)=(「H」,「L」)に設定する。このとき、コンパレータ14の第1入力端子にはバッファアンプ22の第2出力Vref12が第1切換回路12を通じて出力される。   In the normal operation, when the load drive circuit 1 drives the load 4, when the drive control signal is OFF (YES in S3 in FIG. 5), the controller 40 of the circuit 17 causes the controller 19 to control the control signals (φ1, φ2). ) = (“H”, “L”). At this time, the second output Vref12 of the buffer amplifier 22 is output to the first input terminal of the comparator 14 through the first switching circuit 12.

また、コントローラ19による第2切換回路13の切換タイミングはクロック生成回路15のクロック信号CLKのパルス発生周期と同じ周期で互いに異なるタイミングとなっている。これにより、コンパレータ14の第2入力端子には閾値電圧生成回路11の第1及び第2閾値電圧Vth1及びVth2が相補的に与えられる。そして、クロック信号CLKの発生タイミングにおいてラッチ回路16がD入力を保持する。   The switching timing of the second switching circuit 13 by the controller 19 is different from each other in the same cycle as the pulse generation cycle of the clock signal CLK of the clock generation circuit 15. Thus, the first and second threshold voltages Vth1 and Vth2 of the threshold voltage generation circuit 11 are supplied to the second input terminal of the comparator 14 in a complementary manner. The latch circuit 16 holds the D input at the generation timing of the clock signal CLK.

以下、負荷4の通電オフ時、通電オン時の通常制御、異常検出時の制御を分けて説明する。通常、ソレノイド、インジェクタの通電コイルなどの負荷4を通常駆動するときに、何らかの外的な要因などに応じて、スイッチ素子7と負荷4の共通接続ノードN1が断線などにより開放してしまったり負荷4が短絡してしまったり、スイッチ素子7が短絡しグランドに短絡してしまったりする可能性もある。このような場合に備え、異常有無判定手段、異常判別手段を設けている。この場合の動作について説明する。   Hereinafter, the normal control when the load 4 is turned off, the normal control when the load is turned on, and the control when an abnormality is detected are described separately. Normally, when the load 4 such as a solenoid or an energization coil of the injector is normally driven, the common connection node N1 between the switch element 7 and the load 4 is opened or disconnected depending on some external factor. 4 may be short-circuited, or the switch element 7 may be short-circuited to the ground. In preparation for such a case, an abnormality presence / absence determination unit and an abnormality determination unit are provided. The operation in this case will be described.

<通電オフ時の通常制御>
マイコン5がオフ指令信号をゲートドライバ6に出力し、ゲートドライバ6がスイッチ素子7にオフ駆動制御信号を印加し、負荷4への通電をオフしている間の異常検出動作を説明する。図1に示すように、マイコン5が負荷4への通電をオフ指令したとき、スイッチ素子7と負荷4との間の共通接続ノードN1にはバッファアンプ22の第1出力Vref11が出力される。
<Normal control when power is off>
An abnormality detection operation while the microcomputer 5 outputs an off command signal to the gate driver 6 and the gate driver 6 applies the off drive control signal to the switch element 7 to turn off the power supply to the load 4 will be described. As shown in FIG. 1, when the microcomputer 5 instructs the load 4 to turn off, the first output Vref11 of the buffer amplifier 22 is output to the common connection node N1 between the switch element 7 and the load 4.

図7に示すように、回路17は、コントローラ18により、クロック信号CLKのパルス発生タイミングとは位相を異なるようにしたタイミングで且つクロック信号CLKの周期と同一周期で、制御信号φ3,φ4を「H」「L」レベルで相補的に出力する。ラッチ回路16は、クロック信号CLKに同期してD入力を保持してQ出力する。   As shown in FIG. 7, the circuit 17 causes the controller 18 to send the control signals φ3 and φ4 to the control signal φ3 and φ4 at a timing different from the pulse generation timing of the clock signal CLK and in the same cycle as the clock signal CLK. Complementary output is performed at the H and L levels. The latch circuit 16 holds the D input and outputs Q in synchronization with the clock signal CLK.

ここで、バッファアンプ22の第2出力(比例電圧)Vref12(=Vref11/3=Vref1/3)が第1閾値電圧Vth1よりも低く第2閾値電圧Vth2よりも高くなるように予め設定されている。したがって、正常動作していれば、制御信号φ3,φ4が周期的に切換えられることで、ラッチ回路16のQ出力がクロック入力タイミングに応じて「H」「L」に交互に変化する(図7の期間Ta1参照)。   Here, the second output (proportional voltage) Vref12 (= Vref11 / 3 = Vref1 / 3) of the buffer amplifier 22 is set in advance so as to be lower than the first threshold voltage Vth1 and higher than the second threshold voltage Vth2. . Therefore, if the operation is normal, the control signals φ3 and φ4 are periodically switched, so that the Q output of the latch circuit 16 alternately changes to “H” and “L” according to the clock input timing (FIG. 7). (See period Ta1).

このとき、回路17のコントローラ40は、クロック信号CLKのクロック入力タイミングに応じて、ラッチ回路16のQ出力に同期して制御信号φ5,φ6を相補的に切換えてラッチ回路41、42にクロック入力させる(φ5、φ6の波形は図12参照)。このため、通信インタフェース回路43の2入力には常に「H」が入力されることになる。したがって、通信インタフェース回路43は、マイコン5に「1」を連続して(例えば「11」)出力する。   At this time, the controller 40 of the circuit 17 switches the control signals φ5 and φ6 in a complementary manner in synchronization with the Q output of the latch circuit 16 according to the clock input timing of the clock signal CLK, and inputs the clock to the latch circuits 41 and 42. (Refer to FIG. 12 for the waveforms of φ5 and φ6). Therefore, “H” is always input to the two inputs of the communication interface circuit 43. Therefore, the communication interface circuit 43 outputs “1” continuously (for example, “11”) to the microcomputer 5.

すなわち、回路17が、ラッチ回路16のQ出力を交互に変化することを検出していれば、マイコン5には正常動作している旨が通知される。図8(a)は、このときの各制御信号φ1、φ2、φ3、φ4と各ノードの信号変化をタイミングチャートで概略的に示している。   That is, if the circuit 17 detects that the Q output of the latch circuit 16 changes alternately, the microcomputer 5 is notified that it is operating normally. FIG. 8A schematically shows the control signals φ1, φ2, φ3, φ4 and signal changes of the nodes at this time in a timing chart.

<通電オフ時に電源短絡検出したときの制御動作>
例えば、何らかの異常を生じ、ノードN1がバッテリ電圧VBの電源端子2に短絡した場合について説明する。ノードN1が電源電圧VBの電源端子2に短絡した場合、このノードN1の電圧が急上昇しバッテリ電圧VBにほぼ一致する。この原因としては、ゲート駆動ドライバの誤作動などがある。
<Control action when power supply short circuit is detected when power is off>
For example, a case where some abnormality occurs and the node N1 is short-circuited to the power supply terminal 2 of the battery voltage VB will be described. When the node N1 is short-circuited to the power supply terminal 2 of the power supply voltage VB, the voltage of the node N1 rises rapidly and substantially matches the battery voltage VB. This is due to a malfunction of the gate drive driver.

この場合、コンパレータ14の第1入力端子には、バッファアンプ22内の抵抗30、31を通じてバッテリ電圧VBの3分の1の電圧VB/3が入力される。この結果、コンパレータ14は制御信号φ3、φ4の変化に関わらず一定レベル(「H」)を出力する。この場合、回路17のコントローラ40が、制御信号(φ5,φ6)=(「H」,「L」)、(「L」,「H」)を連続してラッチ回路41、42のクロック入力させたときに、通信インタフェース回路43には(Q1,Q2)=(「H」「L」)として入力される。通信インタフェース回路43はこのレベルに応じた信号「10」をマイコン5に通知するため、マイコン5は異常有りと判定すると共に、図3(b)に示すように電源短絡異常である旨を判別できる。   In this case, a voltage VB / 3 that is one third of the battery voltage VB is input to the first input terminal of the comparator 14 through the resistors 30 and 31 in the buffer amplifier 22. As a result, the comparator 14 outputs a constant level (“H”) regardless of changes in the control signals φ3 and φ4. In this case, the controller 40 of the circuit 17 causes the control signals (φ5, φ6) = (“H”, “L”), (“L”, “H”) to be continuously input to the clocks of the latch circuits 41, 42. Is input to the communication interface circuit 43 as (Q1, Q2) = (“H” “L”). Since the communication interface circuit 43 notifies the microcomputer 5 of the signal “10” corresponding to this level, the microcomputer 5 can determine that there is an abnormality and determine that there is a power supply short circuit abnormality as shown in FIG. .

すなわち、回路17はラッチ回路16のQ出力が一定レベル「H」であることを2回検出すると、マイコン5に異常である旨が通知され、特に電源短絡異常である旨が通知されることになる。この場合、マイコン5側では、ノードN1またはバッファアンプ22の第1又は第2出力Vref11,Vref12のノードが電源短絡した旨の異常判別を行うことができる。図8(b)は、電源短絡時における各制御信号φ1、φ2、φ3、φ4と各ノードの信号変化を概略的に示している。   That is, when the circuit 17 detects twice that the Q output of the latch circuit 16 is the constant level “H”, the microcomputer 5 is notified of the abnormality, and in particular, the power supply short-circuit abnormality is notified. Become. In this case, the microcomputer 5 can determine whether the node N1 or the node of the first or second output Vref11 or Vref12 of the buffer amplifier 22 is short-circuited. FIG. 8B schematically shows control signals φ1, φ2, φ3, φ4 and signal changes at each node when the power supply is short-circuited.

回路17は、ラッチ回路16のQ出力が「H」であることを2回検出した場合、制御信号(φ3,φ4)=(「H」,「L」)に設定する(図7の期間Tb1参照)。この設定は、何らかの影響に応じてゲート駆動処理の誤動作を生じていることを勘案し、電圧が再下降するタイミングを待機し検知するためである。   When the circuit 17 detects that the Q output of the latch circuit 16 is “H” twice, the circuit 17 sets the control signals (φ3, φ4) = (“H”, “L”) (period Tb1 in FIG. 7). reference). This setting is for waiting for and detecting the timing when the voltage drops again in consideration of the malfunction of the gate drive process depending on some influence.

この再下降タイミングを待機した結果、ノードN1の電圧Voなどが再下降すれば、コンパレータ14の第1入力端子の第1入力電圧Vinpが第1閾値電圧Vth1未満となる場合もある。この場合、コンパレータ14の出力が「L」になり、次回のクロック発生タイミングでQ出力が「L」となり、この場合、回路17は入力信号が前述の正常状態に復帰しているため前述した通常制御を行う(図7の期間Tc1参照)。   If the voltage Vo or the like at the node N1 falls again as a result of waiting for this re-falling timing, the first input voltage Vinp at the first input terminal of the comparator 14 may become less than the first threshold voltage Vth1. In this case, the output of the comparator 14 becomes “L”, and the Q output becomes “L” at the next clock generation timing. In this case, since the input signal has returned to the normal state described above, the circuit 17 returns to the normal state described above. Control is performed (see period Tc1 in FIG. 7).

<負荷4の通電オフ時にグランド短絡検出したときの制御動作>
例えば、何らかの異常を生じ、負荷4の通電オフ時にノードN1がグランドに短絡した場合について説明する。ノードN1がグランドに短絡した場合、このノードN1の電圧が急降下しグランド電位にほぼ一致する。この原因としては負荷4の両端子が短絡してしまうことが考えられる。
<Control action when a ground short circuit is detected when the load 4 is turned off>
For example, a case where some abnormality occurs and the node N1 is short-circuited to the ground when the load 4 is turned off will be described. When the node N1 is short-circuited to the ground, the voltage of the node N1 drops rapidly and substantially matches the ground potential. As this cause, it is considered that both terminals of the load 4 are short-circuited.

この場合、コンパレータ14の第1入力端子には、バッファアンプ22内の抵抗30、31を通じてグランド電位が入力される。この結果、コンパレータ14は制御信号φ3、φ4の変化に関わらず一定レベル(「L」)を出力する。回路17は、ラッチ回路16のQ出力が「L」であることを一定レベルとして少なくとも複数回(2回)検出すると、回路17内のラッチ回路41、42のQ出力は「L」「H」レベルの順に出力されることになる。すると、回路17の通信インタフェース回路43が、このレベルに応じた信号「01」を出力することでマイコン5に異常である旨が通知され、特にグランド短絡異常である旨が通知されることになる。この場合、マイコン5側では、ノードN1またはバッファアンプ22の第1又は第2出力Vreff11、Vref12のノードがグランド短絡した旨の異常判別を行うことができる。図8(c)は、グランド短絡時における各制御信号φ1、φ2、φ3、φ4と各信号変化を概略的に示している。   In this case, the ground potential is input to the first input terminal of the comparator 14 through the resistors 30 and 31 in the buffer amplifier 22. As a result, the comparator 14 outputs a constant level (“L”) regardless of changes in the control signals φ3 and φ4. When the circuit 17 detects that the Q output of the latch circuit 16 is “L” at least a plurality of times (twice) as a constant level, the Q outputs of the latch circuits 41 and 42 in the circuit 17 are “L” and “H”. Output in order of level. Then, the communication interface circuit 43 of the circuit 17 outputs a signal “01” corresponding to this level to notify the microcomputer 5 that it is abnormal, and in particular, is notified that it is a ground short circuit abnormality. . In this case, the microcomputer 5 side can determine whether the node N1 or the node of the first or second output Vreff11 or Vref12 of the buffer amplifier 22 is short-circuited to the ground. FIG. 8C schematically shows each control signal φ1, φ2, φ3, φ4 and each signal change when the ground is short-circuited.

回路17は「L」を2回連続して検出した場合、コントローラ18により制御信号(φ3,φ4)=(「L」,「H」)に設定する(図7の期間Td1参照)。この設定は、前述したようにノードN1の電圧が再上昇するタイミングを待機し検知するためである。待機した結果、通電ノードN1の電圧が再上昇すれば、ノードN1の電圧が再上昇しコンパレータ14の第1入力端子の第1入力電圧Vinpが第2閾値電圧Vth2を超える場合も考えられる(図示せず)。この場合、コンパレータ14の出力が「H」になり、次回のクロック発生タイミングでQ出力が「H」となり、回路17は入力信号が前述の正常状態に復帰しているため前述した通常制御を行う(図7の期間Ta1又はTc1参照)。   When the circuit 17 detects “L” twice in succession, the controller 18 sets the control signal (φ3, φ4) = (“L”, “H”) (see the period Td1 in FIG. 7). This setting is for waiting and detecting the timing when the voltage at the node N1 rises again as described above. As a result of waiting, if the voltage at the energized node N1 rises again, the voltage at the node N1 rises again, and the first input voltage Vinp at the first input terminal of the comparator 14 may exceed the second threshold voltage Vth2 (FIG. Not shown). In this case, the output of the comparator 14 becomes “H”, the Q output becomes “H” at the next clock generation timing, and the circuit 17 performs the above-described normal control because the input signal has returned to the above-described normal state. (See period Ta1 or Tc1 in FIG. 7).

次に、通電オン時の制御動作について説明する。なお、以下に説明するように、通電オフ時と通電オン時の異常判定処理の制御信号φ1〜φ4の出力は互いに異なるため、これらのオフ駆動→オン駆動、オン駆動→オフ駆動時には、当該制御信号の出力処理を変更するためのマスク期間(例えば図7、図9、図10の期間Tz参照)を設けているが、この説明は後述する。   Next, the control operation when energization is turned on will be described. As will be described below, the outputs of the control signals φ1 to φ4 in the abnormality determination process at the time of energization off and at the time of energization are different from each other. A mask period (see, for example, the period Tz in FIGS. 7, 9, and 10) for changing the signal output process is provided, which will be described later.

<通電オン時の通常制御動作>
マイコン5がオン指令信号をゲートドライバ6に出力し、ゲートドライバ6がスイッチ素子7をオン制御して負荷4への通電をオンしている間の異常検出動作を説明する。図9に示すように、マイコン5が負荷4へオン指令信号を出力したとき、スイッチ素子7と負荷4との間の共通接続ノードN1には、ほぼバッテリ電圧VBに近い電圧がスイッチ素子7を通じて与えられる。回路17は、ゲートドライバ6からオン駆動制御信号が与えられると、コントローラ40、18により制御信号(φ3,φ4)=(「H」,「L」)に固定設定する。
<Normal control operation when power is on>
An abnormality detection operation while the microcomputer 5 outputs an ON command signal to the gate driver 6 and the gate driver 6 turns on the switch element 7 to turn on the load 4 will be described. As shown in FIG. 9, when the microcomputer 5 outputs an ON command signal to the load 4, a voltage substantially close to the battery voltage VB is passed through the switch element 7 at the common connection node N <b> 1 between the switch element 7 and the load 4. Given. When an ON drive control signal is given from the gate driver 6, the circuit 17 fixes the control signals (φ3, φ4) = (“H”, “L”) by the controllers 40, 18.

バッファアンプ22の第2出力Vref12は第1閾値電圧Vth1よりも低く第2閾値電圧Vth2よりも高くなるように予め設定されている。したがって、正常動作していれば、制御信号φ3,φ4がそれぞれ「H」、「L」であっても、クロック信号CLKの入力タイミングに応じて一定レベル「H」が出力される(図9の期間Ta2、図10の期間Ta3参照)。回路17は、ラッチ回路16のQ出力が一定レベル「H」であるときには、ラッチ回路41が「H」をQ1出力し、ラッチ回路42が「L」をQ2出力するため、通信インタフェース回路43が「10」を連続出力し、図3(b)に示すように、マイコン5に正常動作である旨が通知される。図11(a)は、このときの各制御信号φ1、φ2、φ3、φ4と各ノードの信号変化をタイミングチャートで概略的に示している。   The second output Vref12 of the buffer amplifier 22 is set in advance so as to be lower than the first threshold voltage Vth1 and higher than the second threshold voltage Vth2. Accordingly, if the control signals φ3 and φ4 are “H” and “L”, respectively, a constant level “H” is output according to the input timing of the clock signal CLK if the operation is normal (FIG. 9). (See period Ta2, period Ta3 in FIG. 10). In the circuit 17, when the Q output of the latch circuit 16 is a constant level “H”, the latch circuit 41 outputs “H” to Q 1, and the latch circuit 42 outputs “L” to Q 2. “10” is continuously output, and the microcomputer 5 is notified of normal operation as shown in FIG. FIG. 11A schematically shows the control signals φ1, φ2, φ3, φ4 and signal changes of the nodes at this time in a timing chart.

<通電オン時にオープン(開放)検出したときの制御動作>
例えば、何らかの異常を生じ、負荷4への通電ノードN1が断線などの影響でオープン(開放)した場合について図9を参照しながら説明する。ノードN1が開放した場合、集積回路装置8の出力端子O1とバッファアンプ22の第1及び第2出力との間が遮断される。すると、バッファアンプ22は独立して電圧Vref1を生成し、第1切換回路12を通じてコンパレータ14の第1入力端子に電圧Vref1の3分の1の電圧Vref1/3が出力される(図9の期間Ta2の後半期間のVinp参照)。コンパレータ14は、第1入力端子の入力電圧Vinpが第1閾値電圧Vth1より低くなると、「L」をラッチ回路16のD入力に出力する(図9のタイミングTa2a参照)。この結果、ラッチ回路16は、次回のクロック入力タイミングにおいてQ出力として「L」を出力する。
<Control action when open (open) is detected when power is on>
For example, a case where some abnormality occurs and the energization node N1 to the load 4 is opened (opened) due to the influence of disconnection or the like will be described with reference to FIG. When the node N1 is opened, the output terminal O1 of the integrated circuit device 8 and the first and second outputs of the buffer amplifier 22 are disconnected. Then, the buffer amplifier 22 independently generates the voltage Vref1, and the voltage Vref1 / 3 that is one third of the voltage Vref1 is output to the first input terminal of the comparator 14 through the first switching circuit 12 (period of FIG. 9). (See Vinp in the second half of Ta2.) When the input voltage Vinp at the first input terminal becomes lower than the first threshold voltage Vth1, the comparator 14 outputs “L” to the D input of the latch circuit 16 (see timing Ta2a in FIG. 9). As a result, the latch circuit 16 outputs “L” as the Q output at the next clock input timing.

ラッチ回路16が「L」をQ出力した場合、回路17は、コントローラ40、18を通じて制御信号(φ3,φ4)を「H」「L」交互に設定する(図9の期間Tb2参照)。これは、異常の種別を判定するために行われる。   When the latch circuit 16 outputs “L” as Q, the circuit 17 alternately sets the control signals (φ3, φ4) to “H” and “L” through the controllers 40 and 18 (see the period Tb2 in FIG. 9). This is performed to determine the type of abnormality.

回路17は、制御信号(φ3,φ4)=(「L」,「H」)にするときには、第2切換回路13がコンパレータ14の第2入力端子に第2閾値電圧Vth2を切換出力する。すると、コンパレータ14は第2閾値電圧Vth2と比較した結果として「H」を出力する。このため、ラッチ回路16は、その次のクロック入力タイミングにおいてQ出力として「H」を出力する。   In the circuit 17, when the control signal (φ3, φ4) = (“L”, “H”), the second switching circuit 13 switches and outputs the second threshold voltage Vth2 to the second input terminal of the comparator. Then, the comparator 14 outputs “H” as a result of comparison with the second threshold voltage Vth2. Therefore, the latch circuit 16 outputs “H” as the Q output at the next clock input timing.

回路17は、制御信号(φ3,φ4)=(「H」,「L」)にするときには、第2切換回路13がコンパレータ14の第2入力端子に第1閾値電圧Vth1を切換出力する。すると、コンパレータ14は第1閾値電圧Vth1と比較した結果として「L」を出力する。このため、ラッチ回路16は、その次のクロック入力タイミングにおいてQ出力として「L」を出力する。すなわち、コンパレータ14の第1入力端子の入力電圧がVref1/3でほぼ一定に保たれており、第1閾値電圧Vth1と第2閾値電圧Vth2との間に保持されていると、ラッチ回路16は「H」「L」交互にQ出力する。   In the circuit 17, when the control signal (φ3, φ4) = (“H”, “L”), the second switching circuit 13 switches and outputs the first threshold voltage Vth1 to the second input terminal of the comparator. Then, the comparator 14 outputs “L” as a result of comparison with the first threshold voltage Vth1. Therefore, the latch circuit 16 outputs “L” as the Q output at the next clock input timing. That is, when the input voltage of the first input terminal of the comparator 14 is kept substantially constant at Vref1 / 3 and is held between the first threshold voltage Vth1 and the second threshold voltage Vth2, the latch circuit 16 Q is output alternately between “H” and “L”.

ラッチ回路16が「H」「L」交互にQ出力した場合、回路17内では、ラッチ回路41が「H」をQ1出力し、ラッチ回路42が「H」をQ2出力するため、通信インタフェース回路43が「11」を出力し、図3(b)に示すように、マイコン5にオープン異常であることが通知される。マイコン5側では、断線などの影響に応じて負荷接続ノードN1が開放されていることを特定できる。マイコン5は、異常であると判断すると、例えばゲートドライバ6にオフ指令信号を出力し、ゲートドライバ6がオフ駆動制御信号を出力し駆動処理を停止することでフェールセーフ処理する(図9のタイミングTb2a参照)。図11(b)は、オープン検出したときの各制御信号φ1、φ2、φ3、φ4と各ノードの信号変化を概略的に示している。   When the latch circuit 16 alternately outputs “H” and “L” with Q, the latch circuit 41 outputs “H” to Q1 and the latch circuit 42 outputs “H” to Q2 within the circuit 17, so that the communication interface circuit 43 outputs “11”, and as shown in FIG. 3B, the microcomputer 5 is notified of an open abnormality. On the microcomputer 5 side, it can be specified that the load connection node N1 is open according to the influence of disconnection or the like. If the microcomputer 5 determines that there is an abnormality, for example, it outputs an off command signal to the gate driver 6, and the gate driver 6 outputs an off drive control signal and stops the drive process to perform the fail safe process (timing in FIG. 9). See Tb2a). FIG. 11B schematically shows control signals φ1, φ2, φ3, φ4 and signal changes at each node when open detection is performed.

<通電オン時にグランド短絡検出したときの制御動作>
例えば、何らかの異常を生じ、負荷4への通電ノードN1がグランドに短絡した場合について図10を参照しながら説明する。ノードN1がグランドに短絡した場合、このノードN1の電圧が急下降しグランド電位にほぼ一致する。この場合、コンパレータ14の第1入力端子には、バッファアンプ22内の抵抗30、31を通じてグランド電位が入力される。コンパレータ14の第1入力端子の入力電圧Vinpが第1閾値電圧Vth1より低くなると、「L」をラッチ回路16のD入力に出力する(図10のタイミングTa3a参照)。この結果、ラッチ回路16は、次回のクロック入力タイミングにおいてQ出力として「L」を出力する。
<Control action when ground short circuit is detected when power is on>
For example, a case where some abnormality occurs and the energization node N1 to the load 4 is short-circuited to the ground will be described with reference to FIG. When the node N1 is short-circuited to the ground, the voltage of the node N1 drops rapidly and substantially matches the ground potential. In this case, the ground potential is input to the first input terminal of the comparator 14 through the resistors 30 and 31 in the buffer amplifier 22. When the input voltage Vinp at the first input terminal of the comparator 14 becomes lower than the first threshold voltage Vth1, “L” is output to the D input of the latch circuit 16 (see timing Ta3a in FIG. 10). As a result, the latch circuit 16 outputs “L” as the Q output at the next clock input timing.

ラッチ回路16が「L」をQ出力した場合、回路17は、前述同様に、コントローラ40、18を通じて制御信号(φ3,φ4)を「H」「L」交互に設定する(図10の期間Tb0参照)。これは、異常の種別を判定するために行われる。   When the latch circuit 16 outputs “L” as Q, the circuit 17 alternately sets the control signals (φ3, φ4) to “H” and “L” through the controllers 40 and 18 as described above (period Tb0 in FIG. 10). reference). This is performed to determine the type of abnormality.

回路17は、制御信号(φ3,φ4)=(「L」,「H」)にするときには、第2切換回路13がコンパレータ14の第2入力端子に第2閾値電圧Vth2を切換出力する。負荷4への通電ノードN1がグランドに短絡した場合、コンパレータ14の第1入力端子にはグランド電位が入力される(図10のタイミングTb3bのVinp参照)ため、コンパレータ14は第2閾値電圧Vth2と比較した結果として「L」を出力する。このため、ラッチ回路16は、その次のクロック入力タイミングにおいてQ出力として「L」を連続出力する。   In the circuit 17, when the control signal (φ3, φ4) = (“L”, “H”), the second switching circuit 13 switches and outputs the second threshold voltage Vth2 to the second input terminal of the comparator. When the energization node N1 to the load 4 is short-circuited to the ground, the ground potential is input to the first input terminal of the comparator 14 (see Vinp at timing Tb3b in FIG. 10), and therefore the comparator 14 has the second threshold voltage Vth2. “L” is output as a result of the comparison. Therefore, the latch circuit 16 continuously outputs “L” as the Q output at the next clock input timing.

すなわち、コンパレータ14の第1入力端子の入力電圧Vinpがグランド電位でほぼ一定に保たれていると、ラッチ回路16は一定レベル「L」をQ出力する。
ラッチ回路16が一定レベル「L」を連続してQ出力した場合、回路17内では、ラッチ回路41が「L」をQ1出力し、ラッチ回路42が「H」をQ2出力するため、通信インタフェース回路43が「01」を出力し、図3(b)に示すように、マイコン5にグランド短絡異常であることが通知される。マイコン5は、異常であると判断すると、例えばゲートドライバ6にオフ指令信号を出力し、ゲートドライバ6がオフ駆動制御信号を出力し駆動処理を停止することでフェールセーフ処理する(図10のタイミングTb3c参照)。図11(c)は、グランド短絡検出時における各制御信号φ1、φ2、φ3、φ4と各ノードの信号変化を概略的に示している。
That is, when the input voltage Vinp at the first input terminal of the comparator 14 is kept substantially constant at the ground potential, the latch circuit 16 outputs Q at a constant level “L”.
When the latch circuit 16 outputs Q at a constant level “L” continuously, the latch circuit 41 outputs “L” to Q1 and the latch circuit 42 outputs “H” to Q2 in the circuit 17, so that the communication interface The circuit 43 outputs “01”, and as shown in FIG. 3B, the microcomputer 5 is notified of the ground short circuit abnormality. If the microcomputer 5 determines that there is an abnormality, for example, it outputs an off command signal to the gate driver 6, and the gate driver 6 outputs an off drive control signal and stops the drive process to perform the fail safe process (timing in FIG. 10). See Tb3c). FIG. 11 (c) schematically shows signal changes at each control signal φ1, φ2, φ3, φ4 and each node when a ground short circuit is detected.

なお前述したように、回路17は、ラッチ回路16のQ出力として「L」を1回検出した場合、制御信号(φ3,φ4)=(「L」,「H」)に設定する。このように設定した後、ノードN1の電圧が再上昇してコンパレータ14の第1入力端子の第1入力電圧Vinpが第1閾値電圧Vth1を超えて戻る場合も考えられる(図示せず)。   As described above, when the circuit 17 detects “L” as the Q output of the latch circuit 16 once, the circuit 17 sets the control signal (φ3, φ4) = (“L”, “H”). After such setting, the voltage at the node N1 may rise again, and the first input voltage Vinp at the first input terminal of the comparator 14 may return beyond the first threshold voltage Vth1 (not shown).

この場合、コンパレータ14の出力が「H」になり、次回のクロック発生タイミングでQ出力が「H」となる。逆に、回路17により1回だけ「H」と検出されたとしても次回「L」となる場合にはオープン異常と判定するため、この場合、判定回路は2回連続して「H」を検出した場合に正常動作に復帰したと判定し、前述の通常制御を行う。回路17は「H」を2回以上検出することで正常に動作していると判定し、前述の通常制御を行う。このようにすることもできる。   In this case, the output of the comparator 14 becomes “H”, and the Q output becomes “H” at the next clock generation timing. On the other hand, even if the circuit 17 detects “H” only once, it will be determined as an open abnormality when it becomes “L” next time. In this case, the determination circuit detects “H” twice in succession. In this case, it is determined that the normal operation has been restored, and the above-described normal control is performed. The circuit 17 determines that it is operating normally by detecting “H” twice or more, and performs the above-described normal control. This can also be done.

以下、通電オン時と通電オフ時の切換期間をマスクする形態について説明する。
<マスク期間について>
前述したように、負荷4に対し通電オンしたときと負荷4に対し通電オフしたときとで通知手段となる回路17、異常有無判定手段(マイコン5及び回路17)100、異常判別手段(マイコン5及び回路17)100を共用化して構成できるものの、回路17及びマイコン5による異常有無判定条件、異常判別条件(制御信号φ1〜φ4の出力など)に違いがある。そこで、図12に示すように、通電オン時と通電オフ時の切換期間にマスク期間Tzを設けると良い。
Hereinafter, a mode for masking the switching period between energization on and energization off will be described.
<About mask period>
As described above, the circuit 17 serving as the notification means, the abnormality presence / absence determination means (the microcomputer 5 and the circuit 17) 100, and the abnormality determination means (the microcomputer 5) when the load 4 is turned on and when the load 4 is turned off. Although the circuit 17) 100 can be configured in common, there is a difference in abnormality presence / absence determination conditions and abnormality determination conditions (such as output of control signals φ1 to φ4) by the circuit 17 and the microcomputer 5. Therefore, as shown in FIG. 12, a mask period Tz is preferably provided in a switching period between energization on and energization off.

この回路17は、ゲートドライバ6から駆動制御信号が送信され、当該駆動制御信号がオンからオフまたはオフからオンに変化するタイミングを受け付けると、当該タイミングから所定時間の間、コンパレータ14の比較結果となるラッチ回路16のQ出力をマスクする(図5に示すS3a、S3b、S6a、S6b)。図12には、駆動制御信号がオンからオフに遷移するときの回路17の動作を概略的に示している。この図12に示すように、マイコン5がオフ指令信号またはオン指令信号をゲートドライバ6に与えると、ゲートドライバ6は駆動制御信号としてオフ駆動制御信号またはオン駆動制御信号をスイッチ素子7に出力する。   When a drive control signal is transmitted from the gate driver 6 and the circuit 17 receives a timing at which the drive control signal changes from on to off or from off to on, the circuit 17 compares the comparison result of the comparator 14 for a predetermined time from the timing. The Q output of the latch circuit 16 is masked (S3a, S3b, S6a, S6b shown in FIG. 5). FIG. 12 schematically shows the operation of the circuit 17 when the drive control signal transitions from on to off. As shown in FIG. 12, when the microcomputer 5 gives an off command signal or an on command signal to the gate driver 6, the gate driver 6 outputs an off drive control signal or an on drive control signal to the switch element 7 as a drive control signal. .

ゲートドライバ6がスイッチ素子7をオン駆動する定常状態(図12の期間Ton)、または、ゲートドライバ6がスイッチ素子7をオフ駆動する定常状態(図12の期間Toff)において、回路17は、クロック信号CLKの入力タイミングに同期してコントローラ40が制御信号φ5、φ6を順次出力する。   In a steady state in which the gate driver 6 drives the switch element 7 on (period Ton in FIG. 12) or in a steady state in which the gate driver 6 drives the switch element 7 off (period Toff in FIG. 12), the circuit 17 The controller 40 sequentially outputs control signals φ5 and φ6 in synchronization with the input timing of the signal CLK.

コントローラ40が制御信号φ5、φ6を出力し続けている間、ラッチ回路16のQ出力がラッチ回路41のQ1出力とされ、ラッチ回路16のQ出力の否定信号がラッチ回路42のQ2出力とされ、このQ1出力、Q2出力が通信インタフェース回路43に入力される。通信インタフェース回路43はこのQ1出力、Q2出力に応じた信号をマイコン5に出力する。   While the controller 40 continues to output the control signals φ5 and φ6, the Q output of the latch circuit 16 becomes the Q1 output of the latch circuit 41, and the negative signal of the Q output of the latch circuit 16 becomes the Q2 output of the latch circuit 42. The Q1 output and Q2 output are input to the communication interface circuit 43. The communication interface circuit 43 outputs a signal corresponding to the Q1 output and Q2 output to the microcomputer 5.

しかし、前述したように通電オン時と通電オフ時とでは異常判定条件が異なる。すなわち、例えば、通電オン時には、通常、第2切換回路13が閾値電圧生成回路11の第1閾値電圧Vth1を切換出力し続けることで異常判定処理を行っているのに対し、通電オフ時には、通常、第2切換回路13が閾値電圧生成回路11の第1及び第2閾値電圧Vth1、Vth2を切換出力して異常判定処理を行っている。このため、スイッチ素子7をオン駆動からオフ駆動に切換える遷移期間、または、スイッチ素子7をオフ駆動からオン駆動に切換える遷移期間、において異常判定結果を誤認してしまう虞がある。そこで、本実施形態では異常判定処理のマスク期間Tzを設けている。   However, as described above, the abnormality determination condition differs between when the energization is on and when the energization is off. That is, for example, when the energization is on, the second switching circuit 13 normally performs the abnormality determination process by continuously switching and outputting the first threshold voltage Vth1 of the threshold voltage generation circuit 11, whereas when the energization is off, The second switching circuit 13 switches and outputs the first and second threshold voltages Vth1 and Vth2 of the threshold voltage generation circuit 11 to perform abnormality determination processing. For this reason, there is a possibility that an abnormality determination result may be mistaken in a transition period in which the switch element 7 is switched from on-drive to off-drive or a transition period in which the switch element 7 is switched from off-drive to on-drive. Therefore, in the present embodiment, a mask period Tz for abnormality determination processing is provided.

スイッチ素子7のオン状態において、マイコン5がオフ指令信号をゲートドライバ6に与えると、ゲートドライバ6はオフ駆動制御信号をスイッチ素子7に出力する。このとき、ゲートドライバ6は、オフ駆動制御信号を回路17に出力する。回路17のコントローラ40は、このオフ駆動制御信号を受け付けると(タイミングTz1)、制御信号φ5、φ6の出力を所定期間(例えば1000μ秒:遷移期間含む)Tyの間停止する。この所定期間Tyは、負荷4を通電オンから通電オフに遷移するときの各ノードN1の電圧変動時間を十分に含む時間に設定されている。   When the microcomputer 5 gives an OFF command signal to the gate driver 6 in the ON state of the switch element 7, the gate driver 6 outputs an OFF drive control signal to the switch element 7. At this time, the gate driver 6 outputs an off drive control signal to the circuit 17. When receiving the off drive control signal (timing Tz1), the controller 40 of the circuit 17 stops outputting the control signals φ5 and φ6 for a predetermined period (for example, 1000 μsec: including transition period) Ty. This predetermined period Ty is set to a time sufficiently including the voltage fluctuation time of each node N1 when the load 4 is switched from energization on to energization off.

このため、コントローラ40は各ラッチ回路41、42に制御信号φ5、φ6を出力しないことになり、各ラッチ回路41、42はマイコン5にラッチ回路16の出力を与えない。マイコン5には通信インタフェース回路43の出力が与えられるものの、前述の所定期間Tyの間、マイコン5は、この回路17の出力を無効化し異常判定処理用には用いない。   For this reason, the controller 40 does not output the control signals φ5 and φ6 to the latch circuits 41 and 42, and the latch circuits 41 and 42 do not supply the output of the latch circuit 16 to the microcomputer 5. Although the output of the communication interface circuit 43 is given to the microcomputer 5, during the predetermined period Ty, the microcomputer 5 invalidates the output of the circuit 17 and does not use it for the abnormality determination process.

他方、ゲートドライバ6がオフ駆動制御信号をスイッチ素子7に出力すると、スイッチ素子7はオフする。するとノードN1の電圧が低下する。このときノードN1が低下する最低電圧は、第1基準電圧生成回路20の第1基準電圧Vref1である。このとき、バッファアンプ22の第2出力Vref12はVref1/3まで低下する。したがって、コンパレータ14の第1入力端子の入力電圧Vinpは、第1閾値電圧Vth1を跨ぐことになる(図12のタイミングTz2参照)。   On the other hand, when the gate driver 6 outputs an off drive control signal to the switch element 7, the switch element 7 is turned off. Then, the voltage at the node N1 decreases. At this time, the lowest voltage at which the node N1 decreases is the first reference voltage Vref1 of the first reference voltage generation circuit 20. At this time, the second output Vref12 of the buffer amplifier 22 drops to Vref1 / 3. Therefore, the input voltage Vinp at the first input terminal of the comparator 14 straddles the first threshold voltage Vth1 (see timing Tz2 in FIG. 12).

回路17は、このタイミングTz2を超えるように予め設定されたタイミングにおいて、コントローラ40、18により制御信号φ3、φ4を「L」「H」交互に切換えるように設定する(図12のタイミングTz3参照)。すると、第2切換回路13は第1閾値電圧Vth1、第2閾値電圧Vth2を交互に切換出力する。   The circuit 17 sets the control signals φ3 and φ4 to be alternately switched between “L” and “H” by the controllers 40 and 18 at a timing set in advance so as to exceed the timing Tz2 (see timing Tz3 in FIG. 12). . Then, the second switching circuit 13 switches and outputs the first threshold voltage Vth1 and the second threshold voltage Vth2 alternately.

オフ駆動制御信号が与えられてから所定期間Tyよりも短く設定された時間Tx(<Ty)が経過すると、回路17は各ラッチ回路41、42にクリア信号/CLRを出力し、オフ駆動制御信号が与えられてから所定期間Tyが経過したときに、制御信号φ5、φ6を制御信号φ6から順次再出力する。すると、ラッチ回路42のQ2出力が先に「H」となり、その後、ラッチ回路41のQ1出力が「H」となり、通信インタフェース回路43は、通常通電オフ時の信号「11」をマイコン5に対し最終的に出力できる。これにより、異常判定処理の誤認を防ぐことができる。通電オンから通電オフ時の形態を示したが、通電オフから通電オン時の形態もほぼ同様であるため説明を省略する。   When a time Tx (<Ty) set shorter than the predetermined period Ty has elapsed since the OFF drive control signal was given, the circuit 17 outputs a clear signal / CLR to each of the latch circuits 41 and 42, and the OFF drive control signal When a predetermined period Ty elapses after the signal is given, the control signals φ5 and φ6 are sequentially re-output from the control signal φ6. Then, the Q2 output of the latch circuit 42 first becomes “H”, and then the Q1 output of the latch circuit 41 becomes “H”, and the communication interface circuit 43 sends the signal “11” when the normal energization is off to the microcomputer 5. Finally output. Thereby, misrecognition of the abnormality determination process can be prevented. Although the configuration from energization on to energization off is shown, the configuration from energization off to energization on is substantially the same, and the description thereof is omitted.

<まとめ>
以上説明したように本実施形態によれば、少なくとも異常情報を通知する集積回路装置8内にはコンパレータを1つのみ用いて構成することができ、回路規模を縮小化できる。しかも異常診断用に用いられる各種回路の事前診断処理及び負荷駆動回路の異常診断処理を可能にできる。
<Summary>
As described above, according to the present embodiment, the integrated circuit device 8 that notifies at least abnormality information can be configured using only one comparator, and the circuit scale can be reduced. In addition, it is possible to perform pre-diagnosis processing of various circuits used for abnormality diagnosis and abnormality diagnosis processing of the load drive circuit.

また、回路17は、駆動制御信号がオンからオフまたはオフからオンに変化するタイミングを受け付けると、当該タイミングから所定期間Tyの間、コンパレータ14の比較結果をマスクするため、当該所定期間Ty中のコンパレータ14の比較結果に基づく異常の有無の情報通知が無効化されることになり、オンからオフ、オフからオンに駆動制御信号が変化するときの異常の判断ミスを防止できる。   Further, when the circuit 17 receives the timing at which the drive control signal changes from on to off or from off to on, the circuit 17 masks the comparison result of the comparator 14 for a predetermined period Ty from the timing. Information notification of the presence / absence of abnormality based on the comparison result of the comparator 14 is invalidated, and it is possible to prevent an erroneous determination of abnormality when the drive control signal changes from on to off and from off to on.

また、負荷4の通電をオフしたときには、基準電圧生成回路10がバッファアンプ22を通じて第1基準電圧Vref1をノードN1に印加し、第1切換回路12が第1基準電圧の比例電圧Vref12をコンパレータ14の第1入力端子に第1入力電圧として切換出力する間、第2切換回路が閾値電圧生成回路11の第1及び第2閾値電圧Vth1及びVth2を切換えコンパレータ14の第2入力端子に第2入力電圧として切換出力し、第2切換回路13が閾値電圧生成回路11の第1及び第2閾値電圧Vth1及びVth2を切換出力するときには、回路17は、コンパレータ14の比較結果が交互に変化すれば正常である旨を示す情報を通知し、コンパレータ14の比較結果が交互に変化せず一定レベルであるときに異常である旨の情報を通知する。このため異常の有無を通知でき、マイコン5側では異常の有無を判断できる。   When the load 4 is turned off, the reference voltage generation circuit 10 applies the first reference voltage Vref1 to the node N1 through the buffer amplifier 22, and the first switching circuit 12 applies the proportional voltage Vref12 of the first reference voltage to the comparator 14. The second switching circuit switches the first and second threshold voltages Vth1 and Vth2 of the threshold voltage generation circuit 11 to the second input terminal of the switching comparator 14 while switching and outputting the first input voltage to the first input terminal. When the second switching circuit 13 switches and outputs the first and second threshold voltages Vth1 and Vth2 of the threshold voltage generation circuit 11, the circuit 17 is normal if the comparison result of the comparator 14 changes alternately. Is notified, and when the comparison result of the comparator 14 does not change alternately and is at a certain level, information indicating that there is an abnormality is notified. Therefore, the presence or absence of abnormality can be notified, and the presence or absence of abnormality can be determined on the microcomputer 5 side.

この際、コンパレータ14の比較結果が一定レベルであるときに電源線(例えば電源端子2、グランド3)の印加電圧に対応した同一レベルであることを条件として、回路17は、スイッチ素子7と負荷4との間の共通接続ノードN1が対応した電源線(電源端子2、グランド3)に短絡した旨を示す情報を通知するため、マイコン5側ではこの異常の種類を判別できる。   At this time, the circuit 17 is connected to the switch element 7 and the load on the condition that the comparison result of the comparator 14 is the same level corresponding to the applied voltage of the power supply line (for example, the power supply terminal 2 and the ground 3) when the comparison result is a constant level. Since the information indicating that the common connection node N1 with the power supply line 4 is short-circuited to the corresponding power supply line (power supply terminal 2, ground 3) is notified, the microcomputer 5 side can determine the type of the abnormality.

また、負荷4の通電をオンしたときには、第1切換回路12が電源端子2に与えられるバッテリ電圧VBの比例電圧VB/3をコンパレータ14の第1入力端子に第1入力電圧として切換出力する間、第2切換回路13が閾値電圧生成回路11の第1及び第2閾値電圧Vth1、Vth2を切換えてコンパレータ14の第2入力端子に第2入力電圧として切換出力する。このとき、回路17は、コンパレータ14の比較結果が電源端子2に与えられるバッテリ電圧VBの印加電位側の一定レベル「H」であるときには正常である旨の情報を通知し、それ以外のときには異常である旨の情報を通知する。このため、マイコン5側ではこの異常の有無を判断できる。   When the load 4 is turned on, the first switching circuit 12 switches and outputs the proportional voltage VB / 3 of the battery voltage VB applied to the power supply terminal 2 to the first input terminal of the comparator 14 as the first input voltage. The second switching circuit 13 switches the first and second threshold voltages Vth1 and Vth2 of the threshold voltage generating circuit 11, and switches and outputs the second input voltage to the second input terminal of the comparator 14. At this time, the circuit 17 notifies information indicating that it is normal when the comparison result of the comparator 14 is a constant level “H” on the applied potential side of the battery voltage VB applied to the power supply terminal 2, and otherwise it is abnormal. Notify the information that it is. For this reason, the presence or absence of this abnormality can be determined on the microcomputer 5 side.

第2切換回路13がコンパレータ14の第2入力電圧として第1及び第2閾値電圧Vth1、Vth2を切換出力するときにコンパレータ14の比較結果が交互に変化したときには、回路17は、スイッチ素子7と負荷4の共通接続ノードN1などが開放されている旨の情報を通知し、コンパレータ14の比較結果がグランド3側の一定レベル「L」であればグランドに短絡した旨の情報を通知する。このため、マイコン5側ではこの異常の種類を判別できる。   When the comparison result of the comparator 14 changes alternately when the second switching circuit 13 switches and outputs the first and second threshold voltages Vth1 and Vth2 as the second input voltage of the comparator 14, the circuit 17 Information indicating that the common connection node N1 or the like of the load 4 is open is notified, and if the comparison result of the comparator 14 is a constant level “L” on the ground 3 side, information indicating that the ground is short-circuited is notified. Therefore, the type of abnormality can be determined on the microcomputer 5 side.

(第2実施形態)
図13〜図18は第2実施形態を示す。第1実施形態はハイサイド駆動に適用した例を示したが、第2実施形態はローサイド駆動に適用した例を示す。前述実施形態と同一部分については同一符号を付して説明を省略する。図13に示すように、バッテリ電圧VBの供給端子とグランドとの間には負荷4とスイッチ素子107とが直列接続されている。スイッチ素子107は例えばNチャネル型のMOSトランジスタにより構成される。負荷4とスイッチ素子107との間の共通接続ノードN101にはバッファアンプ22の出力が与えられている。その他の構成は前述実施形態とほぼ同様であるが、マイコン5側の異常判別処理内容は図14に示すようにマイコン5内のメモリに記憶されている。
(Second Embodiment)
13 to 18 show a second embodiment. Although 1st Embodiment showed the example applied to the high side drive, 2nd Embodiment shows the example applied to the low side drive. The same parts as those in the previous embodiment are denoted by the same reference numerals and the description thereof is omitted. As shown in FIG. 13, the load 4 and the switch element 107 are connected in series between the supply terminal of the battery voltage VB and the ground. The switch element 107 is configured by, for example, an N channel type MOS transistor. The output of the buffer amplifier 22 is given to the common connection node N101 between the load 4 and the switch element 107. Other configurations are almost the same as those in the above-described embodiment, but the abnormality determination processing content on the microcomputer 5 side is stored in the memory in the microcomputer 5 as shown in FIG.

以下、上記構成の作用について説明する。事前診断処理については第1実施形態と同様であるためその説明を省略する。図15には通電オフ時の通常制御、異常時の制御処理を概略的に示す。   The operation of the above configuration will be described below. Since the pre-diagnosis process is the same as that of the first embodiment, the description thereof is omitted. FIG. 15 schematically shows normal control when power is turned off and control processing when an abnormality occurs.

<通電オフ時の通常制御>
マイコン5がオフ指令信号をゲートドライバ6に出力し、ゲートドライバ6がスイッチ素子107をオフ駆動し負荷4への通電をオフしている間の異常検出動作を説明する。図15に示すように、マイコン5が負荷4への通電をオフ指令したとき、スイッチ素子107と負荷4との間の共通接続ノードN101にはバッファアンプ22を通じて第1基準電圧Vref1の第1出力Vref11が出力される。
<Normal control when power is off>
An abnormality detection operation while the microcomputer 5 outputs an off command signal to the gate driver 6 and the gate driver 6 drives the switch element 107 off and turns off the load 4 will be described. As shown in FIG. 15, when the microcomputer 5 instructs to turn off the power supply to the load 4, the first output of the first reference voltage Vref1 is supplied to the common connection node N101 between the switch element 107 and the load 4 through the buffer amplifier 22. Vref11 is output.

回路17は、コントローラ18により制御信号φ3,φ4をクロック信号CLKのパルス発生タイミングとは異なるタイミングで且つクロック信号CLKの周期と同一周期で相補的に切換出力する。ラッチ回路16は、クロック信号CLKに同期してD入力を保持しQ出力する。   In the circuit 17, the controller 18 switches and outputs the control signals φ 3 and φ 4 in a complementary manner at a timing different from the pulse generation timing of the clock signal CLK and at the same cycle as the cycle of the clock signal CLK. The latch circuit 16 holds the D input and outputs Q in synchronization with the clock signal CLK.

第1基準電圧Vref1の第2出力Vref12は第1閾値電圧Vth1よりも低く第2閾値電圧Vth2よりも高くなるように予め設定されている。したがって、正常動作していれば、制御信号φ3,φ4が時間的に切換えられることで、ラッチ回路のQ出力がクロック入力タイミングに応じて「H」「L」に交互に変化する(図15の期間Ta4参照)。回路17は、ラッチ回路16のQ出力が交互に変化することを検出すると、通信インタフェース回路43はこれに応じた信号「0」又は「1」を連続出力するため、マイコン5は正常動作している旨を判断できる。   The second output Vref12 of the first reference voltage Vref1 is set in advance so as to be lower than the first threshold voltage Vth1 and higher than the second threshold voltage Vth2. Therefore, if the operation is normal, the control signals φ3 and φ4 are switched over time, so that the Q output of the latch circuit alternately changes to “H” and “L” according to the clock input timing (FIG. 15). (See period Ta4). When the circuit 17 detects that the Q output of the latch circuit 16 changes alternately, the communication interface circuit 43 continuously outputs the signal “0” or “1” corresponding thereto, so that the microcomputer 5 operates normally. Can be determined.

<通電オフ時にグランド短絡検出したときの制御動作>
例えば、何らかの異常を生じ、負荷4への通電ノードN101がグランドに短絡した場合について説明する。ノードN101がグランドに短絡した場合、このノードN101の電圧が急降下しグランド電位にほぼ一致する。この場合、コンパレータ14の第1入力端子には、バッファアンプ22内の抵抗30、31を通じてグランド電位が入力される。この結果、コンパレータ14は制御信号φ3、φ4の変化に関わらず一定レベル(「L」)を出力し、ラッチ回路16は「L」をQ出力する(図15の期間Tb4参照)。
<Control action when ground short circuit is detected when power is off>
For example, a case where some abnormality occurs and the energization node N101 to the load 4 is short-circuited to the ground will be described. When the node N101 is short-circuited to the ground, the voltage at the node N101 drops rapidly and substantially matches the ground potential. In this case, the ground potential is input to the first input terminal of the comparator 14 through the resistors 30 and 31 in the buffer amplifier 22. As a result, the comparator 14 outputs a constant level (“L”) regardless of changes in the control signals φ3 and φ4, and the latch circuit 16 outputs Q of “L” (see period Tb4 in FIG. 15).

ラッチ回路16が一定レベル「L」をQ出力した場合、回路17内では、ラッチ回路41が「L」をQ1出力し、ラッチ回路42が「H」をQ2出力するため、通信インタフェース回路43が「01」を出力し、図14に示すように、マイコン5にグランド短絡異常であることが通知される。マイコン5は、ノードN101またはバッファアンプ22の第1又は第2出力Vref11、Vref12がグランド短絡した旨を特定できる。   When the latch circuit 16 outputs a certain level “L” as Q, the latch circuit 41 outputs “L” as Q1 and the latch circuit 42 outputs “H” as Q2 within the circuit 17, so that the communication interface circuit 43 “01” is output, and as shown in FIG. 14, the microcomputer 5 is notified of a ground short circuit abnormality. The microcomputer 5 can specify that the first or second output Vref11 or Vref12 of the node N101 or the buffer amplifier 22 is short-circuited to the ground.

回路17は、ラッチ回路16のQ出力について「L」を2回連続して検出したときに、制御信号(φ3,φ4)=(「L」,「H」)に設定する。この設定は、何らかのゲート駆動時の誤作動などを生じている場合などに待機するための設定であり、出力電圧Voが再上昇するタイミングを待機し検知するために設けられる。待機した結果、ノードN101の電圧が再上昇すれば、コンパレータ14の第1入力端子の第1入力電圧Vinpが第2閾値電圧Vth2を超える場合もある(タイミングTb4a参照)。この場合、コンパレータ14の出力が「H」になり、次回のクロック信号CLKの発生タイミングでQ出力が「H」となり、この場合、回路17は正常動作に復帰した旨の情報をマイコン5に通知し、前述の通常制御が行われる(図15の期間Tc4参照)。   The circuit 17 sets the control signal (φ3, φ4) = (“L”, “H”) when “L” is continuously detected twice for the Q output of the latch circuit 16. This setting is a setting for waiting when, for example, some malfunction during gate driving occurs, and is provided for waiting and detecting the timing when the output voltage Vo rises again. If the voltage at the node N101 rises again as a result of waiting, the first input voltage Vinp at the first input terminal of the comparator 14 may exceed the second threshold voltage Vth2 (see timing Tb4a). In this case, the output of the comparator 14 becomes “H”, and the Q output becomes “H” at the next generation timing of the clock signal CLK. In this case, the circuit 17 notifies the microcomputer 5 of information that the normal operation has been restored. Then, the above-described normal control is performed (see period Tc4 in FIG. 15).

<通電オフ時に電源短絡検出したときの制御動作>
例えば、何らかの異常を生じ、負荷4への通電ノードN101がバッテリ電圧VBの供給端子に短絡した場合について説明する。ノードN101がバッテリ電圧VBの供給端子に短絡した場合、このノードN101の電圧が急上昇しバッテリ電圧VBにほぼ一致する。この場合、コンパレータ14の第1入力端子には、バッファアンプ22内の抵抗30、31を通じてバッテリ電圧VBの3分の1の電圧VB/3が入力される。この結果、コンパレータ14は制御信号φ3、φ4の変化に関わらず一定レベル(「H」)を出力する。
<Control action when power supply short circuit is detected when power is off>
For example, the case where some abnormality occurs and the energization node N101 to the load 4 is short-circuited to the supply terminal of the battery voltage VB will be described. When the node N101 is short-circuited to the supply terminal of the battery voltage VB, the voltage of the node N101 increases rapidly and substantially matches the battery voltage VB. In this case, a voltage VB / 3 that is one third of the battery voltage VB is input to the first input terminal of the comparator 14 through the resistors 30 and 31 in the buffer amplifier 22. As a result, the comparator 14 outputs a constant level (“H”) regardless of changes in the control signals φ3 and φ4.

回路17は、ラッチ回路16のQ出力が一定レベル「H」であることを2回以上検出すると、回路17内では、ラッチ回路41が「H」をQ1出力し、ラッチ回路42が「L」をQ2出力するため、通信インタフェース回路43が「10」を出力し、図14に示すように、マイコン5に電源短絡異常である旨が通知される(図15の期間Td4参照)。マイコン5は、ノードN101またはバッファアンプ22の第1又は第2出力Vref11、Vref12が電源短絡した旨を特定できる。   When the circuit 17 detects that the Q output of the latch circuit 16 is the constant level “H” twice or more, the latch circuit 41 outputs “H” to the Q1 in the circuit 17 and the latch circuit 42 “L”. Therefore, the communication interface circuit 43 outputs “10”, and as shown in FIG. 14, the microcomputer 5 is notified of a power supply short circuit abnormality (see period Td4 in FIG. 15). The microcomputer 5 can specify that the first or second output Vref11, Vref12 of the node N101 or the buffer amplifier 22 is short-circuited.

回路17は、ラッチ回路16のQ出力として「H」を2回検出した場合、制御信号(φ3,φ4)=(「H」,「L」)に設定する。この設定は出力電圧が再下降するタイミングを待機し検知するためである。待機した結果、ノードN101の電圧が再下降してコンパレータ14の第1入力端子の第1入力電圧Vinpが第1閾値電圧Vth1未満となる場合もある(図示せず)。この場合、コンパレータ14の出力が「L」になり、次回のクロック発生タイミングでラッチ回路16のQ出力が「L」となり、この場合、回路17は正常動作に復帰した旨をマイコン5に通知し、前述の通常制御が行われる。   When the circuit 17 detects “H” twice as the Q output of the latch circuit 16, the circuit 17 sets the control signals (φ3, φ4) = (“H”, “L”). This setting is for waiting and detecting the timing when the output voltage drops again. As a result of the standby, the voltage at the node N101 may drop again, and the first input voltage Vinp at the first input terminal of the comparator 14 may be less than the first threshold voltage Vth1 (not shown). In this case, the output of the comparator 14 becomes “L”, and the Q output of the latch circuit 16 becomes “L” at the next clock generation timing. In this case, the circuit 17 notifies the microcomputer 5 that the normal operation has been restored. The above-described normal control is performed.

続いて、通電オン時の制御動作について説明する。
<通電オン時の通常制御動作>
マイコン5がオン指令信号をゲートドライバ6に出力し、ゲートドライバ6がスイッチ素子107をオン制御し負荷4への通電をオンしている間の異常検出動作を説明する。図12に示すように、マイコン5がオン指令したとき、スイッチ素子107と負荷4との間の共通接続ノードN101にはほぼグランド電位がスイッチ素子107を通じて与えられる。回路17は、ゲートドライバ6からオン駆動制御信号が与えられると、コントローラ40、18により制御信号(φ3,φ4)=(「L」,「H」)に固定設定する。
Next, a control operation when energization is turned on will be described.
<Normal control operation when power is on>
The abnormality detection operation while the microcomputer 5 outputs an ON command signal to the gate driver 6 and the gate driver 6 controls the switch element 107 to be ON and the energization to the load 4 is ON will be described. As shown in FIG. 12, when the microcomputer 5 gives an ON command, a ground potential is supplied to the common connection node N <b> 101 between the switch element 107 and the load 4 through the switch element 107. When the ON drive control signal is given from the gate driver 6, the circuit 17 fixes the control signals (φ3, φ4) = (“L”, “H”) by the controllers 40 and 18.

バッファアンプ22の第2出力Vref12が第1閾値電圧Vth1よりも低く第2閾値電圧Vth2よりも高くなるように予め設定されている。したがって、正常動作していれば、制御信号φ3,φ4がそれぞれ「L」、「H」であっても、クロック信号CLKの入力タイミングに応じて一定レベル「L」が出力される(図16の期間Ta4参照)。回路17は、ラッチ回路16のQ出力が一定レベル「L」であるときには、ラッチ回路41が「L」をQ1出力し、ラッチ回路42が「H」をQ2出力するため、通信インタフェース回路43が「01」を連続出力し、図14に示すように、マイコン5に正常動作である旨が通知される。   The second output Vref12 of the buffer amplifier 22 is set in advance so as to be lower than the first threshold voltage Vth1 and higher than the second threshold voltage Vth2. Accordingly, if the control signals φ3 and φ4 are “L” and “H”, respectively, a constant level “L” is output according to the input timing of the clock signal CLK if the operation is normal (FIG. 16). (See period Ta4). In the circuit 17, when the Q output of the latch circuit 16 is a certain level “L”, the latch circuit 41 outputs “L” to Q1, and the latch circuit 42 outputs “H” to Q2, so that the communication interface circuit 43 “01” is continuously output, and the microcomputer 5 is notified of normal operation as shown in FIG.

<通電オン時にオープン(開放)検出したときの制御動作>
例えば、何らかの異常を生じ、負荷4への通電ノードN101が断線などの影響でオープン(開放)した場合について説明する。ノードN101が開放した場合、集積回路装置8の出力端子O1とバッファアンプ22の第1及び第2出力との間が遮断される。すると、バッファアンプ22は独立して電圧Vref1を生成し、第1切換回路12を通じてコンパレータ14の第1入力端子に入力される(図16の期間Ta5の後半期間のVinp参照)。
<Control action when open (open) is detected when power is on>
For example, a case where some abnormality occurs and the energization node N101 to the load 4 is opened (opened) due to the effect of disconnection or the like will be described. When the node N101 is opened, the output terminal O1 of the integrated circuit device 8 and the first and second outputs of the buffer amplifier 22 are disconnected. Then, the buffer amplifier 22 independently generates the voltage Vref1 and inputs the voltage Vref1 to the first input terminal of the comparator 14 through the first switching circuit 12 (see Vinp in the second half of the period Ta5 in FIG. 16).

コンパレータ14は、第1入力端子の入力電圧Vinpが第2閾値電圧Vth2より高くなると、「H」をラッチ回路16のD入力に出力する(図16のタイミングTa5a参照)。この結果、ラッチ回路16は、次回のクロック入力タイミングにおいてQ出力として「H」を出力する。   When the input voltage Vinp at the first input terminal becomes higher than the second threshold voltage Vth2, the comparator 14 outputs “H” to the D input of the latch circuit 16 (see timing Ta5a in FIG. 16). As a result, the latch circuit 16 outputs “H” as the Q output at the next clock input timing.

ラッチ回路16が「H」をQ出力した場合、回路17は、コントローラ40、18を通じて制御信号(φ3、φ4)を「H」「L」交互に設定する(図16の期間Tb5参照)。これは、異常の種別を判定するために行われる。   When the latch circuit 16 outputs “H” as Q, the circuit 17 alternately sets the control signals (φ3, φ4) to “H” and “L” through the controllers 40 and 18 (see the period Tb5 in FIG. 16). This is performed to determine the type of abnormality.

回路17は、制御信号(φ3,φ4)=(「H」,「L」)にするときには、第2切換回路13がコンパレータ14の第2入力端子に第1閾値電圧Vth1を切換出力する。すると、コンパレータ14は第1閾値電圧Vth1と比較した結果として「L」を出力する。このため、ラッチ回路16は、その次のクロック入力タイミングにおいてQ出力として「L」を出力する。   In the circuit 17, when the control signal (φ3, φ4) = (“H”, “L”), the second switching circuit 13 switches and outputs the first threshold voltage Vth1 to the second input terminal of the comparator. Then, the comparator 14 outputs “L” as a result of comparison with the first threshold voltage Vth1. Therefore, the latch circuit 16 outputs “L” as the Q output at the next clock input timing.

回路17は、制御信号(φ3,φ4)=(「L」,「H」)にするときには、第2切換回路13がコンパレータ14の第2入力端子に第2閾値電圧Vth2を切換出力する。すると、コンパレータ14は第2閾値電圧Vth2と比較した結果として「H」を出力する。このため、ラッチ回路16は、その次のクロック入力タイミングにおいてQ出力として「H」を出力する。すなわち、コンパレータ14の第1入力端子の入力電圧がVref1/3でほぼ一定に保たれており、第1閾値電圧Vth1と第2閾値電圧Vth2との間に保持されていると、ラッチ回路16は「H」「L」交互にQ出力する。   In the circuit 17, when the control signal (φ3, φ4) = (“L”, “H”), the second switching circuit 13 switches and outputs the second threshold voltage Vth2 to the second input terminal of the comparator. Then, the comparator 14 outputs “H” as a result of comparison with the second threshold voltage Vth2. Therefore, the latch circuit 16 outputs “H” as the Q output at the next clock input timing. That is, when the input voltage of the first input terminal of the comparator 14 is kept substantially constant at Vref1 / 3 and is held between the first threshold voltage Vth1 and the second threshold voltage Vth2, the latch circuit 16 Q is output alternately between “H” and “L”.

ラッチ回路16が「L」「H」交互にQ出力した場合、回路17内では、ラッチ回路41が「L」をQ1出力し、ラッチ回路42が「L」をQ2出力するため、通信インタフェース回路43が「00」を出力し、図14に示すように、マイコン5にオープン異常であることが通知される。マイコン5側では、断線などの影響に応じて負荷接続ノードN101が開放されていることを特定できる。マイコン5は、異常であると判断すると、例えばゲートドライバ6にオフ指令信号を出力し、ゲートドライバ6がオフ駆動制御信号を出力し駆動処理を停止することでフェールセーフ処理する(図16のタイミングTb5a参照)。   When the latch circuit 16 alternately outputs “L” and “H” with Q, the latch circuit 41 outputs “L” to Q1 and the latch circuit 42 outputs “L” to Q2 within the circuit 17, so that the communication interface circuit 43 outputs “00”, and as shown in FIG. 14, the microcomputer 5 is notified of an open abnormality. On the microcomputer 5 side, it can be specified that the load connection node N101 is open according to the influence of disconnection or the like. If the microcomputer 5 determines that there is an abnormality, for example, it outputs an off command signal to the gate driver 6, and the gate driver 6 outputs an off drive control signal and stops the drive process to perform the fail safe process (timing in FIG. 16). See Tb5a).

<通電オン時に電源短絡したときの制御動作>
例えば、何らかの異常を生じ、負荷4への通電ノードN101が電源短絡した場合について説明する。ノードN101が電源短絡した場合、このノードN101の電圧が急上昇しバッテリ電圧VBにほぼ一致する。この場合、コンパレータ14の第1入力端子には、バッファアンプ22内の抵抗30、31を通じてバッテリ電圧VBの3分の1の電圧VB/3が入力される。コンパレータ14の第1入力端子の入力電圧Vinpが第2閾値電圧Vth2より高くなると、「H」をラッチ回路16のD入力に出力する(図17のタイミングTa6a参照)。この結果、ラッチ回路16は、次回のクロック入力タイミングにおいてQ出力として「H」を出力する。
<Control action when power supply is short-circuited when energized>
For example, a case where some abnormality occurs and the power supply node N101 to the load 4 is short-circuited to the power source will be described. When the node N101 is short-circuited to the power supply, the voltage at the node N101 increases rapidly and substantially matches the battery voltage VB. In this case, a voltage VB / 3 that is one third of the battery voltage VB is input to the first input terminal of the comparator 14 through the resistors 30 and 31 in the buffer amplifier 22. When the input voltage Vinp at the first input terminal of the comparator 14 becomes higher than the second threshold voltage Vth2, “H” is output to the D input of the latch circuit 16 (see timing Ta6a in FIG. 17). As a result, the latch circuit 16 outputs “H” as the Q output at the next clock input timing.

ラッチ回路16が「H」をQ出力した場合、回路17は、前述同様に、コントローラ40、18を通じて制御信号(φ3,φ4)を「H」「L」交互に設定する(図17の期間Tb0参照)。これは、異常の種別を判定するために行われる。   When the latch circuit 16 outputs “H” as Q, the circuit 17 alternately sets the control signals (φ3, φ4) to “H” and “L” through the controllers 40 and 18 as described above (period Tb0 in FIG. 17). reference). This is performed to determine the type of abnormality.

回路17は、制御信号(φ3,φ4)=(「H」,「L」)にするときには、第2切換回路13がコンパレータ14の第2入力端子に第1閾値電圧Vth1を切換出力する。負荷4への通電ノードN101が電源短絡した場合、コンパレータ14の第1入力端子にはバッテリ電圧VB又はVBに近い電圧が入力される(図17のタイミングTb6aのVinp参照)ため、コンパレータ14は第1閾値電圧Vth1と比較した結果として「H」を出力する。このため、ラッチ回路16は、その次のクロック入力タイミングにおいてQ出力として「H」を連続出力する。   In the circuit 17, when the control signal (φ3, φ4) = (“H”, “L”), the second switching circuit 13 switches and outputs the first threshold voltage Vth1 to the second input terminal of the comparator. When the power supply node N101 to the load 4 is short-circuited to the power source, the battery 14 is supplied with a voltage close to the battery voltage VB or VB (see Vinp at timing Tb6a in FIG. 17). “H” is output as a result of comparison with one threshold voltage Vth1. Therefore, the latch circuit 16 continuously outputs “H” as the Q output at the next clock input timing.

すなわち、コンパレータ14の第1入力端子の入力電圧Vinpがバッテリ電圧VBでほぼ一定に保たれていると、ラッチ回路16は一定レベル「H」を連続してQ出力する。
ラッチ回路16が一定レベル「H」を連続してQ出力した場合、回路17内では、ラッチ回路41が「H」をQ1出力し、ラッチ回路42が「L」をQ2出力するため、通信インタフェース回路43が「10」を出力し、図14に示すように、マイコン5に電源短絡異常であることが通知される。マイコン5は、異常であると判断すると、例えばゲートドライバ6にオフ指令信号を出力し、ゲートドライバ6がオフ駆動制御信号を出力し駆動処理を停止することでフェールセーフ処理する(図17のタイミングTb6c参照)。
That is, when the input voltage Vinp at the first input terminal of the comparator 14 is kept substantially constant at the battery voltage VB, the latch circuit 16 continuously outputs Q at a constant level “H”.
When the latch circuit 16 outputs Q at a constant level “H” continuously, the latch circuit 41 outputs “H” Q1 and the latch circuit 42 outputs “L” Q2 within the circuit 17. The circuit 43 outputs “10”, and as shown in FIG. 14, the microcomputer 5 is notified of a power supply short circuit abnormality. If the microcomputer 5 determines that there is an abnormality, for example, it outputs an off command signal to the gate driver 6, and the gate driver 6 outputs an off drive control signal and stops the drive process (timing in FIG. 17). See Tb6c).

なお前述したように、回路17は、ラッチ回路16のQ出力として「H」を1回検出した場合、制御信号(φ3,φ4)=(「H」,「L」)に設定する。このように設定した後、ノードN101の電圧が再下降してコンパレータ14の第1入力端子の第1入力電圧Vinpが第2閾値電圧Vth2を超えて戻る場合も考えられる(図示せず)。   As described above, when the circuit 17 detects “H” as the Q output of the latch circuit 16 once, the circuit 17 sets the control signals (φ3, φ4) = (“H”, “L”). After such a setting, the voltage at the node N101 may drop again, and the first input voltage Vinp at the first input terminal of the comparator 14 may return beyond the second threshold voltage Vth2 (not shown).

この場合、コンパレータ14の出力が「L」になり、次回のクロック発生タイミングでQ出力が「L」となる。逆に、回路17により1回だけ「L」と検出されたとしても次回「H」となる場合にはオープン異常である旨が通知されるため、この場合、回路17は2回連続して「L」を検出した場合に正常動作に復帰したと判定し、前述の通常制御を行う。すなわち回路17は「L」を2回以上検出することで正常に動作していると判定し、前述の通常制御を行う。このようにすることもできる。   In this case, the output of the comparator 14 becomes “L”, and the Q output becomes “L” at the next clock generation timing. On the contrary, even if the circuit 17 detects “L” only once, when it becomes “H” next time, it is notified that there is an open abnormality. In this case, the circuit 17 continues to “ When "L" is detected, it is determined that the normal operation is restored, and the above-described normal control is performed. That is, the circuit 17 determines that it is operating normally by detecting “L” twice or more, and performs the normal control described above. This can also be done.

本実施形態でも、負荷4に通電オンしたときと負荷4に通電オフしたときとで、通知手段17、異常有無判定手段100、異常判別手段100を共用化して構成できるものの、回路17及びマイコン5による異常有無判定条件、異常判別条件(制御信号φ1〜φ4の出力など)に違いがあるため、図18に示すようにマスク期間Tzを設けると良い。   Also in this embodiment, the notification means 17, the abnormality presence / absence determination means 100, and the abnormality determination means 100 can be configured to be shared between when the load 4 is energized and when the load 4 is energized, but the circuit 17 and the microcomputer 5 Since there is a difference in the abnormality presence / absence determination condition and the abnormality determination condition (such as the output of the control signals φ1 to φ4), it is preferable to provide a mask period Tz as shown in FIG.

例えば、通電オン時には、通常、第2切換回路13が閾値電圧生成回路11の第2閾値電圧Vth2を切換出力し続けることで異常判定処理を行っているのに対し、通電オフ時には、通常、第2切換回路13が閾値電圧生成回路11の第1及び第2閾値電圧Vth1、Vth2を切換出力して異常判定処理を行っている。このため、スイッチ素子107をオン駆動からオフ駆動に切換える遷移期間、または、スイッチ素子107をオフ駆動からオン駆動に切換える遷移期間、において異常判定結果を誤認してしまう虞がある。そこで、本実施形態では異常判定処理のマスク期間Tzを設けている。   For example, when the energization is on, the second switching circuit 13 normally performs the abnormality determination process by continuously switching and outputting the second threshold voltage Vth2 of the threshold voltage generation circuit 11, whereas when the energization is off, The two switching circuit 13 switches and outputs the first and second threshold voltages Vth1 and Vth2 of the threshold voltage generation circuit 11 to perform abnormality determination processing. For this reason, there is a possibility that an abnormality determination result may be mistaken in a transition period in which the switch element 107 is switched from on-drive to off-drive or a transition period in which the switch element 107 is switched from off-drive to on-drive. Therefore, in the present embodiment, a mask period Tz for abnormality determination processing is provided.

スイッチ素子107のオン状態において、マイコン5がオフ指令信号をゲートドライバ6に与えると、ゲートドライバ6はオフ駆動制御信号をスイッチ素子107に出力する。このとき、ゲートドライバ6は、オフ駆動制御信号を回路17に出力する。回路17のコントローラ40は、このオフ駆動制御信号を受け付けると(タイミングTz1)、制御信号φ5、φ6の出力を所定期間(例えば1000μ秒:遷移期間含む)Tyの間停止する。この所定期間Tyは、負荷4に対し通電オンから通電オフに遷移するときの各ノードN1の電圧変動時間を十分に含む時間に設定されている。   When the microcomputer 5 gives an off command signal to the gate driver 6 while the switch element 107 is on, the gate driver 6 outputs an off drive control signal to the switch element 107. At this time, the gate driver 6 outputs an off drive control signal to the circuit 17. When receiving the off drive control signal (timing Tz1), the controller 40 of the circuit 17 stops outputting the control signals φ5 and φ6 for a predetermined period (for example, 1000 μsec: including transition period) Ty. The predetermined period Ty is set to a time sufficiently including the voltage fluctuation time of each node N1 when the load 4 is switched from energization on to energization off.

このため、コントローラ40は各ラッチ回路41、42に制御信号φ5、φ6を出力しないことになり、各ラッチ回路41、42はマイコン5にラッチ回路16の出力を与えない。マイコン5には通信インタフェース回路43の出力が与えられるものの、前述の所定期間Tyの間、マイコン5は、この回路17の出力を無効化し異常判定処理用には用いない。   For this reason, the controller 40 does not output the control signals φ5 and φ6 to the latch circuits 41 and 42, and the latch circuits 41 and 42 do not supply the output of the latch circuit 16 to the microcomputer 5. Although the output of the communication interface circuit 43 is given to the microcomputer 5, during the predetermined period Ty, the microcomputer 5 invalidates the output of the circuit 17 and does not use it for the abnormality determination process.

他方、ゲートドライバ6がオフ駆動制御信号をスイッチ素子107に出力すると、スイッチ素子107はオフする。するとノードN101の電圧が上昇する。このときノードN101が上昇する最高電圧は、バッテリ電圧VBである。このとき、バッファアンプ22の第2出力Vref12はVB/3まで上昇する。したがって、コンパレータ14の第1入力端子の入力電圧Vinpは、第2閾値電圧Vth2を跨ぐことになる(図12のタイミングTz2参照)。   On the other hand, when the gate driver 6 outputs an off drive control signal to the switch element 107, the switch element 107 is turned off. Then, the voltage of the node N101 increases. At this time, the highest voltage at which node N101 rises is battery voltage VB. At this time, the second output Vref12 of the buffer amplifier 22 rises to VB / 3. Therefore, the input voltage Vinp at the first input terminal of the comparator 14 straddles the second threshold voltage Vth2 (see timing Tz2 in FIG. 12).

回路17は、このタイミングTz2を超えるように予め設定されたタイミングにおいて、コントローラ40、18により制御信号φ3、φ4を「L」「H」交互に切換えるように設定する(図18のタイミングTz3参照)。すると、第2切換回路13は第2閾値電圧Vth2、第1閾値電圧Vth1を交互に切換出力する。   The circuit 17 sets the control signals φ3 and φ4 to be alternately switched between “L” and “H” by the controllers 40 and 18 at a timing set in advance so as to exceed the timing Tz2 (see timing Tz3 in FIG. 18). . Then, the second switching circuit 13 switches and outputs the second threshold voltage Vth2 and the first threshold voltage Vth1 alternately.

オフ駆動制御信号が与えられてから所定期間Tyよりも短く設定された時間Tx(<Ty)が経過すると、回路17は各ラッチ回路41、42にクリア信号/CLRを出力し、オフ駆動制御信号が与えられてから所定期間Tyが経過したときに、制御信号φ5、φ6を制御信号φ5から順次再出力する。すると、ラッチ回路41のQ1出力が先に「H」となり、その後、ラッチ回路42のQ2出力が「H」となり、通信インタフェース回路43は、通常通電オフ時の信号「11」をマイコン5に対し最終的に出力できる。これにより、異常判定処理の誤認を防ぐことができる。   When a time Tx (<Ty) set shorter than the predetermined period Ty has elapsed since the OFF drive control signal was given, the circuit 17 outputs a clear signal / CLR to each of the latch circuits 41 and 42, and the OFF drive control signal When a predetermined period Ty elapses after the signal is given, the control signals φ5 and φ6 are sequentially re-output from the control signal φ5. Then, the Q1 output of the latch circuit 41 first becomes “H”, and then the Q2 output of the latch circuit 42 becomes “H”, and the communication interface circuit 43 sends the signal “11” when the normal energization is off to the microcomputer 5. Finally output. Thereby, misrecognition of the abnormality determination process can be prevented.

以上説明したように、本実施形態のようにローサイド駆動した場合であっても前述実施形態とほぼ同様の作用効果を奏する。
特に、負荷4の通電をオンしたときには、第1切換回路12がグランド3のグランド電位をコンパレータ14の第1入力端子に第1入力電圧として切換出力する間、第2切換回路13が閾値電圧生成回路11の第1及び第2閾値電圧Vth1、Vth2を切換えてコンパレータ14の第2入力端子に第2入力電圧として切換出力する。このとき、回路17は、コンパレータ14の比較結果がグランド3のグランド電位側の一定レベル「L」であるときには正常である旨の情報を通知し、それ以外のときには異常である旨の情報を通知する。このため、マイコン5はこの異常の有無を判断できる。
As described above, even when the low-side drive is performed as in the present embodiment, the same operational effects as those of the above-described embodiment can be obtained.
In particular, when the load 4 is turned on, the second switching circuit 13 generates the threshold voltage while the first switching circuit 12 switches and outputs the ground potential of the ground 3 to the first input terminal of the comparator 14 as the first input voltage. The first and second threshold voltages Vth1 and Vth2 of the circuit 11 are switched and switched and output as a second input voltage to the second input terminal of the comparator 14. At this time, the circuit 17 notifies information indicating that it is normal when the comparison result of the comparator 14 is a constant level “L” on the ground potential side of the ground 3, and notifies information indicating that it is abnormal otherwise. To do. For this reason, the microcomputer 5 can determine the presence or absence of this abnormality.

第2切換回路13がコンパレータ14の第2入力電圧として第1及び第2閾値電圧Vth1、Vth2を切換出力するときにコンパレータ14の比較結果が交互に変化したときには、回路17は、スイッチ素子7と負荷4の共通接続ノードN1などが開放されている旨の情報を通知し、コンパレータ14の比較結果が電源端子2側のバッテリ電圧VB側の一定レベル「H」であれば電源に短絡した旨の情報を通知する。このため、マイコン5はこの異常の種類を判別できる。   When the comparison result of the comparator 14 changes alternately when the second switching circuit 13 switches and outputs the first and second threshold voltages Vth1 and Vth2 as the second input voltage of the comparator 14, the circuit 17 Information indicating that the common connection node N1 or the like of the load 4 is open is notified, and if the comparison result of the comparator 14 is a constant level “H” on the battery voltage VB side on the power supply terminal 2 side, it indicates that the power supply is short-circuited. Notify information. For this reason, the microcomputer 5 can determine the type of this abnormality.

図面中、1は負荷駆動回路、2はバッテリ電圧の電源端子(第1電源線、第2電源線)、3はグランド(第2電源線、第1電源線)、4は負荷、5はマイクロコンピュータ(判断手段)、7、107はスイッチ素子、8は集積回路装置(異常情報通知装置)、9は異常診断装置、10は基準電圧生成回路、11は閾値電圧生成回路、12は第1切換回路、13は第2切換回路、14はコンパレータ、17は回路(通知手段)、を示す。   In the drawings, 1 is a load drive circuit, 2 is a battery voltage power supply terminal (first power supply line, second power supply line), 3 is ground (second power supply line, first power supply line), 4 is a load, and 5 is a micro. Computer (judgment means), 7, 107 switch elements, 8 integrated circuit device (abnormal information notification device), 9 abnormal diagnosis device, 10 reference voltage generation circuit, 11 threshold voltage generation circuit, 12 first switch A circuit, 13 is a second switching circuit, 14 is a comparator, and 17 is a circuit (notification means).

Claims (7)

第1電源線(2;3)に接続されたスイッチ素子(7;107)に駆動制御信号を印加することに応じて当該スイッチ素子に直列接続され第2電源線(3;2)に接続された負荷(4)を駆動する負荷駆動回路について、
第1入力端子及び第2入力端子を備え前記第1入力端子に与えられる第1入力電圧と前記第2入力端子に与えられる第2入力電圧とを比較し比較結果を出力するコンパレータ(14)と、
第1基準電圧(Vref1)、第2基準電圧(Vref2)を生成する基準電圧生成回路(10)と、
第1及び第2閾値電圧(Vth1,Vth2)を生成する回路であり、前記第2閾値電圧(Vth2)が前記第2基準電圧(Vref2)よりも低く前記第1閾値電圧(Vth1)が前記第2基準電圧(Vref2)よりも高い条件を満たす第1及び第2閾値電圧を生成する閾値電圧生成回路(11)と、
前記基準電圧生成回路の第1及び第2基準電圧を切換え前記コンパレータに第1入力電圧として切換出力する第1切換回路(12)の切換状態、前記閾値電圧生成回路の第1及び第2閾値電圧を切換え前記コンパレータに第2入力電圧として切換出力する第2切換回路(13)の切換状態、及び、前記コンパレータの比較結果に基づいて異常の有無を示す情報を通知する通知手段(17)と、を備え、
前記通知手段は、
前記スイッチ素子により前記負荷に通電オンしたときに当該スイッチ素子を通じて接続された前記第1電源線(2;3)に入力される電圧又はその比例電圧を前記第1切換回路が前記コンパレータに前記第1入力電圧として切換出力し、前記スイッチ素子により前記負荷に対し通電オフしたときに前記基準電圧生成回路が第1基準電圧(Vref1)を前記負荷及び前記スイッチ素子間のノード(N1;N101)に印加し、前記第1切換回路が当該印加電圧又はその比例電圧を前記コンパレータに前記第1入力電圧として切換出力することに応じて異常を検知するための情報を通知するものであって、
前記第1切換回路が前記第2基準電圧を前記コンパレータに第1入力電圧として切換出力していると共に前記第2切換回路が第1及び第2閾値電圧を前記コンパレータに第2入力電圧として切換出力している状態で、前記コンパレータの動作を通知することにより前記第1切換回路、前記第2切換回路、および、前記コンパレータの動作が事前診断され、
前記第1切換回路、前記第2切換回路、および、前記コンパレータの動作の事前診断結果が正常であると判定されたことを条件とした本診断時において、前記第1切換回路が前記第1基準電圧又はその比例電圧を前記コンパレータに第1入力電圧として切換出力していると共に前記第2切換回路が第1及び第2閾値電圧を前記コンパレータに第2入力電圧として切換出力している状態で、負荷を駆動する前記駆動制御信号のオンオフ駆動制御信号のそれぞれに対応した前記コンパレータの比較結果に基づいて異常の有無を示す情報を通知することを特徴とする負荷駆動回路の異常情報通知装置。
In response to applying a drive control signal to the switch element (7; 107) connected to the first power supply line (2; 3), the switch element is connected in series to the second power supply line (3; 2). Load driving circuit for driving the load (4)
A comparator (14) comprising a first input terminal and a second input terminal, for comparing a first input voltage applied to the first input terminal with a second input voltage applied to the second input terminal and outputting a comparison result; ,
A reference voltage generation circuit (10) for generating a first reference voltage (Vref1) and a second reference voltage (Vref2);
A circuit for generating first and second threshold voltages (Vth1, Vth2), wherein the second threshold voltage (Vth2) is lower than the second reference voltage (Vref2) and the first threshold voltage (Vth1) is the first threshold voltage (Vth1). A threshold voltage generation circuit (11) for generating first and second threshold voltages satisfying a condition higher than two reference voltages (Vref2);
A switching state of the first switching circuit (12) for switching and outputting the first and second reference voltages of the reference voltage generation circuit as a first input voltage to the comparator, and first and second threshold voltages of the threshold voltage generation circuit A switching state of the second switching circuit (13) that switches and outputs the comparator as a second input voltage, and a notification means (17) for notifying information indicating the presence or absence of abnormality based on the comparison result of the comparator; With
The notification means includes
When the switch element is energized to the load, the first switching circuit supplies the voltage input to the first power supply line (2; 3) connected through the switch element or the proportional voltage to the comparator. When the switch element outputs a switch as one input voltage and the switch element is turned off, the reference voltage generation circuit applies the first reference voltage (Vref1) to a node (N1; N101) between the load and the switch element. The first switching circuit notifies the comparator of the applied voltage or its proportional voltage as the first input voltage to notify the information for detecting an abnormality,
The first switching circuit switches and outputs the second reference voltage to the comparator as a first input voltage, and the second switching circuit switches and outputs the first and second threshold voltages to the comparator as a second input voltage. In this state, the operation of the first switching circuit, the second switching circuit, and the comparator is pre-diagnosed by notifying the operation of the comparator,
At the time of the main diagnosis on the condition that the pre-diagnosis result of the operation of the first switching circuit, the second switching circuit, and the comparator is determined to be normal, the first switching circuit is the first reference In the state where the voltage or its proportional voltage is switched and output to the comparator as the first input voltage and the second switching circuit is switching and outputting the first and second threshold voltages to the comparator as the second input voltage, An abnormality information notification device for a load drive circuit, wherein information indicating presence / absence of an abnormality is notified based on a comparison result of the comparator corresponding to each of the on / off drive control signals of the drive control signal for driving a load.
請求項1記載の負荷駆動回路の異常情報通知装置において、
前記通知手段は、
負荷を駆動する駆動制御信号がオンからオフまたはオフからオンに変化するタイミングを受け付けると当該タイミングから所定期間の間、前記コンパレータの比較結果をマスクし当該所定期間中の前記コンパレータの比較結果に基づく前記通知手段による異常の有無の情報通知を無効化することを特徴とする負荷駆動回路の異常情報通知装置。
In the load drive circuit abnormality information notification device according to claim 1,
The notification means includes
When a timing at which the drive control signal for driving the load changes from on to off or from off to on is masked for a predetermined period from the timing and based on the comparison result of the comparator during the predetermined period An abnormality information notifying device for a load driving circuit, wherein information notification of presence / absence of abnormality by the notifying means is invalidated.
請求項1または2記載の負荷駆動回路の異常情報通知装置において、
前記第1基準電圧の比例電圧(Vref12)が前記第1閾値電圧と前記第2閾値電圧との間に設定され、
前記スイッチ素子により前記負荷に通電オフしたときには、
前記基準電圧生成回路が第1基準電圧(Vref1)を前記負荷及び前記スイッチ素子間のノードに印加し、前記第1切換回路が前記第1基準電圧の比例電圧を前記コンパレータに前記第1入力電圧として切換出力する間、前記第2切換回路が前記閾値電圧生成回路の第1及び第2閾値電圧を切換え前記コンパレータに第2入力電圧として切換出力し、
前記第2切換回路が前記コンパレータの第2入力電圧として前記第1及び第2閾値電圧を切換出力するときに、
前記通知手段は、前記コンパレータの比較結果が交互に変化すれば正常である旨を示す情報を通知し、前記コンパレータの比較結果が交互に変化せず一定レベルであるときに異常である旨の情報を通知することを特徴とする負荷駆動回路の異常情報通知装置。
In the load drive circuit abnormality information notification device according to claim 1 or 2,
A proportional voltage (Vref12) of the first reference voltage is set between the first threshold voltage and the second threshold voltage;
When the load is turned off by the switch element,
The reference voltage generation circuit applies a first reference voltage (Vref1) to a node between the load and the switch element, and the first switching circuit supplies a proportional voltage of the first reference voltage to the comparator as the first input voltage. The second switching circuit switches the first and second threshold voltages of the threshold voltage generation circuit as a second input voltage to the comparator,
When the second switching circuit switches and outputs the first and second threshold voltages as the second input voltage of the comparator,
The notification means notifies information indicating that the comparator is normal if the comparison result of the comparator changes alternately, and indicates that the information is abnormal when the comparison result of the comparator does not change alternately and is at a constant level. A device for notifying abnormality information of a load driving circuit, characterized by:
請求項3記載の負荷駆動回路の異常情報通知装置において、
前記通知手段は、
前記コンパレータの比較結果が一定レベルであるときに前記第1電源線又は前記第2電源線の印加電圧に対応した同一レベルであることを条件として、前記スイッチ素子と前記負荷との間の共通接続ノードが、対応した前記第1電源線又は前記第2電源線に短絡した旨の情報を通知することを特徴とする負荷駆動回路の異常情報通知装置。
In the load drive circuit abnormality information notification device according to claim 3,
The notification means includes
Common connection between the switch element and the load, provided that the comparison result of the comparator is at a constant level and is at the same level corresponding to the applied voltage of the first power supply line or the second power supply line An abnormality information notification device for a load driving circuit, characterized in that a node notifies information corresponding to a short circuit to the corresponding first power supply line or second power supply line.
請求項1または2記載の負荷駆動回路の異常情報通知装置において、
前記第1基準電圧の比例電圧(Vref12)が前記第1閾値電圧と前記第2閾値電圧との間に設定され、
前記スイッチ素子により前記負荷に通電オンしたときには、
前記第1切換回路が前記第1電源線又は前記第2電源線に入力される電圧の比例電圧を前記コンパレータに前記第1入力電圧として切換出力する間、前記第2切換回路が前記閾値電圧生成回路の第1及び第2閾値電圧を切換え前記コンパレータに第2入力電圧として切換出力し、
前記第2切換回路が前記コンパレータの第2入力電圧として前記第1及び第2閾値電圧を切換出力するときに、前記通知手段は、前記コンパレータの比較結果が前記第1電源線の印加電位側の一定レベルであれば正常である旨の情報を通知し、それ以外のときには異常である旨の情報を通知することを特徴とする負荷駆動回路の異常情報通知装置。
In the load drive circuit abnormality information notification device according to claim 1 or 2,
A proportional voltage (Vref12) of the first reference voltage is set between the first threshold voltage and the second threshold voltage;
When the load is energized by the switch element,
While the first switching circuit switches and outputs the proportional voltage of the voltage input to the first power supply line or the second power supply line to the comparator as the first input voltage, the second switching circuit generates the threshold voltage. Switching the first and second threshold voltages of the circuit to the comparator as a second input voltage,
When the second switching circuit switches and outputs the first and second threshold voltages as the second input voltage of the comparator, the notifying means outputs a comparison result of the comparator on the applied potential side of the first power supply line. A load drive circuit abnormality information notification device that notifies that information is normal if it is at a certain level, and notifies information that it is abnormal otherwise.
請求項5記載の負荷駆動回路の異常情報通知装置において、
前記第2切換回路が前記コンパレータの第2入力電圧として前記第1及び第2閾値電圧を切換出力するときに前記コンパレータの比較結果が交互に変化したときには、
前記通知手段は、前記スイッチ素子と前記負荷の共通接続ノードが開放されている旨の情報を通知し、前記コンパレータの比較結果が前記第2電源線の印加電位側の一定レベルであれば前記第2電源線に短絡した旨の情報を通知することを特徴とする負荷駆動回路の異常情報通知装置。
In the load drive circuit abnormality information notification device according to claim 5,
When the comparison result of the comparator changes alternately when the second switching circuit switches and outputs the first and second threshold voltages as the second input voltage of the comparator,
The notifying means notifies information indicating that a common connection node of the switch element and the load is open, and if the comparison result of the comparator is a constant level on the applied potential side of the second power supply line, An abnormality information notification device for a load driving circuit, which notifies information indicating that a short circuit has occurred in two power supply lines.
請求項1〜6の何れか一項に記載の異常情報通知装置(8)から情報が通知されると当該情報に基づいて異常の有無を判断する判断手段(5)を備えたことを特徴とする異常診断装置。   When the information is notified from the abnormality information notifying device (8) according to any one of claims 1 to 6, the apparatus includes a determination means (5) for determining presence / absence of abnormality based on the information. Abnormality diagnosis device.
JP2014152850A 2014-07-28 2014-07-28 Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus Pending JP2016031260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014152850A JP2016031260A (en) 2014-07-28 2014-07-28 Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014152850A JP2016031260A (en) 2014-07-28 2014-07-28 Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus

Publications (1)

Publication Number Publication Date
JP2016031260A true JP2016031260A (en) 2016-03-07

Family

ID=55441729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014152850A Pending JP2016031260A (en) 2014-07-28 2014-07-28 Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus

Country Status (1)

Country Link
JP (1) JP2016031260A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221158A (en) * 2019-06-28 2019-09-10 韶关市嘉诺点火系统有限公司 A kind of winding displacement detection circuit, system and method
JP2019192870A (en) * 2018-04-27 2019-10-31 ローム株式会社 Semiconductor integrated circuit device
CN112240990A (en) * 2019-07-16 2021-01-19 富士电机株式会社 Semiconductor device with a plurality of semiconductor chips
CN114363106A (en) * 2020-09-29 2022-04-15 深圳英集芯科技股份有限公司 Single-wire communication device, communication system, and single-wire communication method
CN115366822A (en) * 2021-05-19 2022-11-22 瑞鼎科技股份有限公司 Source electrode driving circuit for vehicle and operation method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019192870A (en) * 2018-04-27 2019-10-31 ローム株式会社 Semiconductor integrated circuit device
JP7050565B2 (en) 2018-04-27 2022-04-08 ローム株式会社 Semiconductor integrated circuit equipment
CN110221158A (en) * 2019-06-28 2019-09-10 韶关市嘉诺点火系统有限公司 A kind of winding displacement detection circuit, system and method
CN110221158B (en) * 2019-06-28 2024-04-23 韶关市嘉诺点火系统有限公司 Flat cable detection circuit, system and method
CN112240990A (en) * 2019-07-16 2021-01-19 富士电机株式会社 Semiconductor device with a plurality of semiconductor chips
CN114363106A (en) * 2020-09-29 2022-04-15 深圳英集芯科技股份有限公司 Single-wire communication device, communication system, and single-wire communication method
CN114363106B (en) * 2020-09-29 2024-01-05 深圳英集芯科技股份有限公司 Single-wire communication device, communication system, and single-wire communication method
CN115366822A (en) * 2021-05-19 2022-11-22 瑞鼎科技股份有限公司 Source electrode driving circuit for vehicle and operation method thereof

Similar Documents

Publication Publication Date Title
US11708801B2 (en) Load drive device, engine system
JP2016031260A (en) Load drive circuit abnormality information notification apparatus and abnormality diagnosis apparatus
US20160056001A1 (en) Fail-safe circuit
JP5376559B2 (en) Power supply circuit and power supply control method
JP2011199828A (en) Communication slave
TWI619958B (en) Magnetic sensor circuit
US10018680B2 (en) Semiconductor device, battery monitoring system, and method for activating semiconductor device
US9622304B2 (en) Load driving circuit
CN111693759B (en) Voltage detector
JP5842702B2 (en) Injector drive device
JP2009156643A (en) Fault detection system and integrated circuit
US11519973B2 (en) Output module of industrial control apparatus
US7498848B2 (en) System and method for monitoring clock signal in an integrated circuit
JP5054441B2 (en) Regulator circuit
CN113341194A (en) Current detection circuit, current detection system, and method for adjusting current detection circuit
JP2018045583A (en) Signal processing device
JP2011069642A (en) Voltage detection circuit
JP6232968B2 (en) Power supply switching control circuit and power supply switching circuit
US20230266403A1 (en) Device with fault detection and related system and method
JP4775693B2 (en) 2-wire transmitter
US9030246B2 (en) Semiconductor device
JP7207196B2 (en) injector drive circuit
JP5994756B2 (en) Injector drive device
JP7234868B2 (en) Semiconductor device drive circuit
JP7119654B2 (en) load driver