JP6666776B2 - Error protection circuit - Google Patents

Error protection circuit Download PDF

Info

Publication number
JP6666776B2
JP6666776B2 JP2016075814A JP2016075814A JP6666776B2 JP 6666776 B2 JP6666776 B2 JP 6666776B2 JP 2016075814 A JP2016075814 A JP 2016075814A JP 2016075814 A JP2016075814 A JP 2016075814A JP 6666776 B2 JP6666776 B2 JP 6666776B2
Authority
JP
Japan
Prior art keywords
signal
output
circuit
input
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016075814A
Other languages
Japanese (ja)
Other versions
JP2017189008A (en
Inventor
奥野 洋平
洋平 奥野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rohm Co Ltd
Original Assignee
Rohm Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2016075814A priority Critical patent/JP6666776B2/en
Publication of JP2017189008A publication Critical patent/JP2017189008A/en
Application granted granted Critical
Publication of JP6666776B2 publication Critical patent/JP6666776B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、異常保護回路に関する。   The present invention relates to an abnormality protection circuit.

従来から、様々な装置に異常保護回路が備えられており、例えば特許文献1にはモータ駆動装置(モータドライバ)に設けられた過電流保護回路について開示されている。   2. Description of the Related Art Conventionally, various devices have been provided with an abnormality protection circuit. For example, Patent Document 1 discloses an overcurrent protection circuit provided in a motor driving device (motor driver).

上記特許文献1の過電流保護回路は、OCPミュートカウンタと組合せロジック部を含んでいる。OCPミュートカウンタは、過電流検出信号が異常時の論理レベルとされたときに、内部クロック信号のパルスカウントを開始する。そして、OCPミュートカウンタは、カウント値が所定の閾値に達しているか否かを示すカウンタ信号を出力する。カウント値が所定の閾値に達していることを示すカウンタ信号が出力されると、組合せロジック部から異常を示す過電流保護信号が出力される。なお、OCPミュートカウンタは、過電流検出信号が正常時の論理レベルとされたときに、カウント値がリセットされる。   The overcurrent protection circuit of Patent Document 1 includes an OCP mute counter and a combination logic unit. The OCP mute counter starts pulse counting of the internal clock signal when the overcurrent detection signal is set to the abnormal logic level. Then, the OCP mute counter outputs a counter signal indicating whether the count value has reached a predetermined threshold value. When the counter signal indicating that the count value has reached the predetermined threshold is output, the combinational logic unit outputs an overcurrent protection signal indicating an abnormality. The count value of the OCP mute counter is reset when the overcurrent detection signal is set to a normal logic level.

これにより、内部クロック信号の周期にカウント値の閾値を乗算した値のミュート期間(マスク期間)以上に過電流検出信号が異常時の論理レベルを維持した場合、異常を示す過電流保護信号が出力される。一方、過電流検出信号がミュート期間が経過する前に正常時の論理レベルに戻った場合、異常を示す過電流保護信号は出力されない。   Accordingly, if the overcurrent detection signal maintains the logic level at the time of abnormality during the mute period (mask period) of the value obtained by multiplying the cycle of the internal clock signal by the threshold value of the count value, the overcurrent protection signal indicating abnormality is output. Is done. On the other hand, if the overcurrent detection signal returns to the normal logic level before the mute period has elapsed, the overcurrent protection signal indicating an abnormality is not output.

特開2012−222869号公報(第20頁、第22図等)JP 2012-222869 A (Page 20, FIG. 22, etc.)

しかしながら、上記特許文献1では、内部クロック信号の生成源であるオシレータが故障して内部クロック信号の生成が停止した場合、OCPミュートカウンタは内部クロック信号をカウントすることができず、過電流検出信号が異常時の論理レベルになった場合に、異常を示す過電流保護信号を生成することができない。従って、過電流保護機能が動作しない不具合が生じる。   However, in Patent Document 1, when the oscillator that is the source of the internal clock signal fails and the generation of the internal clock signal is stopped, the OCP mute counter cannot count the internal clock signal and the overcurrent detection signal Cannot be generated when an abnormal logic level is reached. Therefore, there occurs a problem that the overcurrent protection function does not operate.

例えば過電流保護回路が車載用である場合、自動車の電気/電子に関する機能安全についての国際規格であるISO26262なども策定されている状況では、より安全性を重視するため、上記のような過電流保護機能が動作しない不具合を回避することが重要となる。   For example, when the overcurrent protection circuit is for use in a vehicle, in a situation where ISO26262, which is an international standard for functional safety related to electric / electronics of a vehicle, has been formulated, safety is emphasized. It is important to avoid the failure that the protection function does not operate.

上記状況に鑑み、本発明は、オシレータが故障した場合でも異常保護機能の動作を可能とする異常保護回路を提供することを目的とする。   In view of the above situation, an object of the present invention is to provide an abnormality protection circuit that enables the operation of the abnormality protection function even when the oscillator fails.

上記目的を達成するために本発明の一態様に係る異常保護回路は、
クロック信号のカウントに基づき、異常検出状態が所定の期間継続したことを検出すると、その旨を示す第1出力信号を出力する第1出力信号生成部と、
異常が検出されると、前記クロック信号を用いずに、その旨を示す第2出力信号を出力する第2出力信号生成部と、
クロック停止検出信号に応じて前記第1出力信号と前記第2出力信号のいずれかを選択する選択部と、を備え、
前記クロック停止検出信号がクロックが正常に生成されている旨を示す場合、前記第2出力信号生成部は無効となり、前記選択部は前記第1出力信号を選択し、
前記クロック停止検出信号がクロックが停止している旨を示す場合、前記第2出力信号生成部は有効となり、前記選択部は前記第2出力信号を選択し、
前記選択部により選択された出力信号に基づいて異常保護信号を出力する構成としている(第1の構成)。
In order to achieve the above object, an abnormality protection circuit according to one embodiment of the present invention includes:
A first output signal generation unit that outputs a first output signal indicating that the abnormality detection state has continued for a predetermined period based on the count of the clock signal;
A second output signal generation unit that outputs a second output signal indicating the abnormality without using the clock signal when an abnormality is detected;
A selection unit that selects one of the first output signal and the second output signal according to a clock stop detection signal,
When the clock stop detection signal indicates that the clock is normally generated, the second output signal generation unit is disabled, and the selection unit selects the first output signal,
When the clock stop detection signal indicates that the clock is stopped, the second output signal generation unit is enabled, and the selection unit selects the second output signal,
It is configured to output an abnormality protection signal based on the output signal selected by the selection unit (first configuration).

また、上記第1の構成において、前記第2出力信号生成部は、所定論理レベルの信号が入力されるD入力端子と、異常検出信号が入力されるクロック端子と、前記第2出力信号を出力する出力端子と、を有するDフリップフロップを含むこととしてもよい(第2の構成)。   In the first configuration, the second output signal generation unit may include a D input terminal to which a signal of a predetermined logic level is input, a clock terminal to which an abnormality detection signal is input, and output the second output signal. (A second configuration).

また、上記第2の構成において、前記Dフリップフロップのリセット端子に出力が入力されるAND回路を更に備え、前記AND回路の一方の入力端には前記クロック停止検出信号が入力されることとしてもよい(第3の構成)。   In the second configuration, an AND circuit may be further provided, the output of which is input to a reset terminal of the D flip-flop, and the clock stop detection signal may be input to one input terminal of the AND circuit. Good (third configuration).

また、上記第3の構成において、前記AND回路の他方の入力端には、リセット信号に基づく信号が入力されることとしてもよい(第4の構成)。   In the third configuration, a signal based on a reset signal may be input to the other input terminal of the AND circuit (fourth configuration).

また、上記第1〜第4のいずれかの構成において、前記第1出力信号生成部は、異常検出信号と前記クロック信号が入力されるカウンタと、前記カウンタの出力に基づく信号が入力されるD入力端子と、前記クロック信号が入力されるクロック端子と、前記第1出力信号を出力する出力端子と、を有するDフリップフロップと、を含むこととしてもよい(第5の構成)。   In any one of the first to fourth configurations, the first output signal generation unit may include a counter to which the abnormality detection signal and the clock signal are input and a D to which a signal based on the output of the counter is input. A D flip-flop having an input terminal, a clock terminal to which the clock signal is input, and an output terminal to output the first output signal may be included (fifth configuration).

また、上記第5の構成において、前記Dフリップフロップのリセット端子には、前記第2出力信号生成部に含まれるDフリップフロップをリセットさせるリセット信号に基づく信号が入力されることとしてもよい(第6の構成)。   Further, in the fifth configuration, a signal based on a reset signal for resetting the D flip-flop included in the second output signal generation unit may be input to a reset terminal of the D flip-flop. 6).

また、本発明の別態様に係る駆動装置は、多チャンネルの出力を有する駆動装置であって、オシレータと、前記オシレータを監視してクロック停止検出信号を出力するクロック停止検出部と、上記いずれかの構成とした異常保護回路と、を備えることとしている(第7の構成)。   Further, a driving device according to another aspect of the present invention is a driving device having a multi-channel output, comprising: an oscillator; a clock stop detection unit that monitors the oscillator and outputs a clock stop detection signal; (Seventh configuration).

また、上記第7の構成において、前記異常保護回路は、AND回路を更に備え、前記AND回路の一方の入力端には、前記選択部により選択された出力信号が入力され、前記AND回路の他方の入力端には、チャンネルのオンオフを制御する制御信号が入力され、前記AND回路から前記異常保護信号が出力されることとしてもよい(第8の構成)。   Further, in the seventh configuration, the abnormality protection circuit further includes an AND circuit, and an output signal selected by the selection unit is input to one input terminal of the AND circuit, and the other of the AND circuit A control signal for controlling the on / off of a channel may be input to an input terminal of the first circuit, and the abnormality protection signal may be output from the AND circuit (eighth configuration).

また、POR(パワーオンリセット)回路を備え、外部のマイコンとの通信を行う上記第7または第8のいずれかの構成とした駆動装置であって、
前記異常保護回路において、前記第2出力信号生成部は、所定論理レベルの信号が入力されるD入力端子と、異常検出信号が入力されるクロック端子と、前記第2出力信号を出力する出力端子と、を有するDフリップフロップを含み、
前記異常保護回路は、第1AND回路と第2AND回路を更に備え、
前記第1AND回路には、一方の入力端に前記POR回路の出力するリセット信号が入力され、他方の入力端に前記マイコンからのリセット信号が入力され、
前記第2AND回路には、一方の入力端に前記クロック停止検出信号が入力され、他方の入力端に前記第1AND回路の出力が入力され、
前記Dフリップフロップのリセット端子には、前記第2AND回路の出力が入力されることとしてもよい(第9の構成)。
The drive device according to any one of the seventh and eighth configurations, further comprising a POR (power-on reset) circuit and performing communication with an external microcomputer,
In the abnormality protection circuit, the second output signal generation unit includes a D input terminal to which a signal of a predetermined logic level is input, a clock terminal to which an abnormality detection signal is input, and an output terminal to output the second output signal And a D flip-flop having
The abnormality protection circuit further includes a first AND circuit and a second AND circuit,
A reset signal output from the POR circuit is input to one input terminal of the first AND circuit, and a reset signal from the microcomputer is input to the other input terminal of the first AND circuit.
The second AND circuit receives the clock stop detection signal at one input terminal, and receives the output of the first AND circuit at the other input terminal,
The output of the second AND circuit may be input to a reset terminal of the D flip-flop (a ninth configuration).

また、本発明の別態様に係る車載用電子機器は、上記いずれかの構成とした駆動装置を備えることとしている。   Further, an in-vehicle electronic device according to another aspect of the present invention includes a driving device having any one of the above configurations.

本発明によると、オシレータが故障した場合でも異常保護機能の動作を可能とする。   According to the present invention, it is possible to operate the abnormality protection function even when the oscillator fails.

本発明の一実施形態に係るモータ駆動装置の構成を示す図である。It is a figure showing composition of a motor drive device concerning one embodiment of the present invention. 本発明の一実施形態に係る過電流保護回路の構成を示す図である。FIG. 2 is a diagram illustrating a configuration of an overcurrent protection circuit according to one embodiment of the present invention. 本発明の一実施形態に係る過電流保護回路における動作(オシレータ故障の場合)に関するタイミングチャートである。6 is a timing chart regarding an operation (in the case of an oscillator failure) in the overcurrent protection circuit according to one embodiment of the present invention. 電子機器を備える車両の一例を示す外観図である。FIG. 1 is an external view illustrating an example of a vehicle including an electronic device. 比較例に係るモータ駆動装置の構成を示す図である。FIG. 4 is a diagram illustrating a configuration of a motor drive device according to a comparative example. 比較例に係る過電流保護回路の構成を示す図である。FIG. 9 is a diagram illustrating a configuration of an overcurrent protection circuit according to a comparative example. 過電流検出期間が比較的長い場合の過電流保護回路の動作を示すタイミングチャートである。5 is a timing chart illustrating an operation of the overcurrent protection circuit when an overcurrent detection period is relatively long. 過電流検出期間が比較的短い場合の過電流保護回路の動作を示すタイミングチャートである。5 is a timing chart illustrating an operation of the overcurrent protection circuit when an overcurrent detection period is relatively short.

以下に本発明の一実施形態について図面を参照して説明する。なお、ここでは、異常保護回路の一例として過電流保護回路を挙げ、その適用対象としてはモータ駆動装置を一例に挙げて説明する。   An embodiment of the present invention will be described below with reference to the drawings. Note that, here, an overcurrent protection circuit will be described as an example of the abnormality protection circuit, and a motor drive device will be described as an example to which the overcurrent protection circuit is applied.

<モータ駆動装置の構成>
まず、本発明の実施形態について説明する前に、本発明の実施形態に対する比較例について説明する。図5は、本発明の実施形態に対する比較例に係るモータ駆動装置200の構成を示す図である。図5に示すモータ駆動装置200は、多チャンネル出力を有するモータドライバICとして構成される。
<Configuration of motor drive device>
First, before describing an embodiment of the present invention, a comparative example with respect to the embodiment of the present invention will be described. FIG. 5 is a diagram illustrating a configuration of a motor drive device 200 according to a comparative example with respect to the embodiment of the present invention. The motor driving device 200 shown in FIG. 5 is configured as a motor driver IC having a multi-channel output.

図5に示すモータ駆動装置200は、各モータ駆動部1〜8と、ロジック制御部9と、POR[power on reset]回路10と、オシレータ11と、インタフェース12と、UVLO[under voltage lock out]回路13と、過電圧保護回路14と、TSD[thermal shutdown]回路15と、を備えており、これらの各構成要素を1チップに集積化したIC(半導体装置)である。   The motor driving device 200 shown in FIG. 5 includes motor driving units 1 to 8, a logic control unit 9, a POR (power on reset) circuit 10, an oscillator 11, an interface 12, and a UVLO (under voltage lock out). It is provided with a circuit 13, an overvoltage protection circuit 14, and a TSD (thermal shutdown) circuit 15, and is an IC (semiconductor device) in which these components are integrated on one chip.

また、モータ駆動装置200は、外部との接続を確立するための入力端子T1〜T2、および出力端子OUT1〜OUT8を備えている。入力端子T1には、モータ駆動部1〜8用の電源電圧VSが外部より印加される。入力端子T2には、ロジック制御部9用の電源電圧VCCが外部より印加される。   The motor drive device 200 includes input terminals T1 and T2 for establishing a connection with the outside and output terminals OUT1 and OUT8. A power supply voltage VS for the motor driving units 1 to 8 is externally applied to the input terminal T1. The power supply voltage VCC for the logic control unit 9 is externally applied to the input terminal T2.

モータ駆動部1、2は、モータM1の駆動に対応し、同様に、モータ駆動部3、4は、モータM2の駆動に対応し、モータ駆動部5、6は、モータM3の駆動に対応し、モータ駆動部7、8は、モータM4の駆動に対応している。モータM1〜M4は、DCブラシ付きモータである。即ち、モータ駆動装置200は、4チャンネルの出力を有する。   The motor driving units 1 and 2 correspond to the driving of the motor M1, similarly, the motor driving units 3 and 4 correspond to the driving of the motor M2, and the motor driving units 5 and 6 correspond to the driving of the motor M3. , Motor driving units 7 and 8 correspond to driving of the motor M4. The motors M1 to M4 are DC brush motors. That is, the motor drive device 200 has four channels of output.

各モータ駆動部1〜8は、それぞれ同様の構成をしており、上側スイッチング素子Q1、下側スイッチング素子Q2、上側スイッチング素子Q3、下側スイッチング素子Q4、抵抗R1、抵抗R2、プリドライバPR、コンパレータCP1、およびコンパレータCP2を含んで構成される。   Each of the motor driving units 1 to 8 has the same configuration, and includes an upper switching element Q1, a lower switching element Q2, an upper switching element Q3, a lower switching element Q4, a resistor R1, a resistor R2, a pre-driver PR, It is configured to include a comparator CP1 and a comparator CP2.

PチャネルMOSFET(MOS電界効果トランジスタ)で構成される上側スイッチング素子Q1のソースは、抵抗R1を介して電源電圧VSの印加端に接続される。上側スイッチング素子Q1のドレインは、NチャネルMOSFETで構成される下側スイッチング素子Q2のドレインに接続される。下側スイッチング素子Q2のソースは、抵抗R2を介して接地端に接続される。即ち、上側スイッチング素子Q1と下側スイッチング素子Q2は、抵抗R1と抵抗R2との間において直列に接続され、ブリッジを構成する。   The source of the upper switching element Q1 composed of a P-channel MOSFET (MOS field effect transistor) is connected to the application terminal of the power supply voltage VS via the resistor R1. The drain of upper switching element Q1 is connected to the drain of lower switching element Q2 formed of an N-channel MOSFET. The source of the lower switching element Q2 is connected to the ground terminal via the resistor R2. That is, the upper switching element Q1 and the lower switching element Q2 are connected in series between the resistors R1 and R2 to form a bridge.

上側スイッチング素子Q3のソースは、電源電圧VSの印加端に接続される。上側スイッチング素子Q3のドレインは、下側スイッチング素子Q4のドレインに接続される。下側スイッチング素子Q4のソースは、接地端に接続される。即ち、上側スイッチング素子Q3と下側スイッチング素子Q4は、直列に接続されてブリッジを構成する。   The source of the upper switching element Q3 is connected to the power supply voltage VS application terminal. The drain of the upper switching element Q3 is connected to the drain of the lower switching element Q4. The source of the lower switching element Q4 is connected to the ground terminal. That is, the upper switching element Q3 and the lower switching element Q4 are connected in series to form a bridge.

各モータ駆動部1〜8において、上側スイッチング素子Q1と下側スイッチング素子Q2との接続点と、上側スイッチング素子Q3と下側スイッチング素子Q4との接続点は、各出力端子OUT1〜OUT8に共通接続される。出力端子OUT1、OUT2は、それぞれモータM1の正極、負極に接続される。同様に、出力端子OUT3、OUT4は、それぞれモータM2の正極、負極に接続され、出力端子OUT5、OUT6は、それぞれモータM3の正極、負極に接続され、出力端子OUT7、OUT8は、それぞれモータM4の正極、負極に接続される。   In each of the motor driving units 1 to 8, a connection point between the upper switching element Q1 and the lower switching element Q2 and a connection point between the upper switching element Q3 and the lower switching element Q4 are commonly connected to the output terminals OUT1 to OUT8. Is done. The output terminals OUT1 and OUT2 are connected to the positive and negative electrodes of the motor M1, respectively. Similarly, output terminals OUT3 and OUT4 are respectively connected to the positive and negative electrodes of motor M2, output terminals OUT5 and OUT6 are respectively connected to the positive and negative electrodes of motor M3, and output terminals OUT7 and OUT8 are respectively connected to motor M4. Connected to positive and negative electrodes.

上側スイッチング素子Q1のゲートと上側スイッチング素子Q3のゲートは、プリドライバPDの一方の出力端に接続され、下側スイッチング素子Q4のゲートと下側スイッチング素子Q2のゲートは、プリドライバPDの他方の出力端に接続される。プリドライバPDは、ロジック制御部9からの指令に基づき各出力端から駆動信号を出力することにより、各スイッチング素子Q1〜Q4を駆動する。これにより、各モータ駆動部1〜8は、各モータM1〜M4のPWM[pulse width modulation]駆動や、正逆転駆動を行うことができる。   The gate of the upper switching element Q1 and the gate of the upper switching element Q3 are connected to one output terminal of the pre-driver PD, and the gate of the lower switching element Q4 and the gate of the lower switching element Q2 are connected to the other of the pre-driver PD. Connected to output end. The pre-driver PD drives each of the switching elements Q1 to Q4 by outputting a drive signal from each output terminal based on a command from the logic control unit 9. Thus, the motor driving units 1 to 8 can perform PWM (pulse width modulation) driving of the motors M1 to M4 and forward / reverse rotation driving.

抵抗R1と上側スイッチング素子Q1との接続点は、コンパレータCP1の非反転端(+)に接続される。コンパレータCP1の反転端(−)には、所定の参照電圧が印加される。コンパレータCP1は、抵抗R1により電流・電圧変換された電流検出電圧と参照電圧との比較を行い、比較結果として過電流検出信号DET1をロジック制御部9に出力する。   The connection point between the resistor R1 and the upper switching element Q1 is connected to the non-inverting end (+) of the comparator CP1. A predetermined reference voltage is applied to the inverting end (-) of the comparator CP1. The comparator CP1 compares the current detection voltage obtained by current / voltage conversion by the resistor R1 with the reference voltage, and outputs an overcurrent detection signal DET1 to the logic control unit 9 as a comparison result.

下側スイッチング素子Q2と抵抗R2との接続点は、コンパレータCP2の非反転端(+)に接続される。コンパレータCP2の反転端(−)には、所定の参照電圧が印加される。コンパレータCP2は、抵抗R2により電流・電圧変換された電流検出電圧と参照電圧との比較を行い、比較結果として過電流検出信号DET2をロジック制御部9に出力する。   The connection point between the lower switching element Q2 and the resistor R2 is connected to the non-inverting end (+) of the comparator CP2. A predetermined reference voltage is applied to the inverting end (-) of the comparator CP2. The comparator CP2 compares the current detection voltage obtained by current / voltage conversion by the resistor R2 with the reference voltage, and outputs an overcurrent detection signal DET2 to the logic control unit 9 as a comparison result.

このような過電流検出部としてのコンパレータCP1とコンパレータCP2により、出力端子OUT1またはOUT2の地絡および天絡、または出力端子OUT1とOUT2間の短絡による生じる過電流を検出することができる。出力端子OUT3〜OUT8についても同様である。   The comparator CP1 and the comparator CP2 as such overcurrent detection units can detect an overcurrent generated due to a ground fault and a power short to the output terminal OUT1 or OUT2, or a short circuit between the output terminals OUT1 and OUT2. The same applies to the output terminals OUT3 to OUT8.

過電流検出信号DET1およびDET2は、ロジック制御部9に含まれる不図示の過電流保護回路に出力される。過電流保護回路の詳細については後述する。   The overcurrent detection signals DET1 and DET2 are output to an overcurrent protection circuit (not shown) included in the logic control unit 9. Details of the overcurrent protection circuit will be described later.

POR回路10は、電源電圧VCCが立ち上がるとリセット時の論理レベル(例えばLowレベル)とされたリセット信号PRSTをロジック制御部9に出力し、UVLO[Under Voltage Lockout]が解除されてから一定期間が経過した後に、リセット解除時の論理レベル(例えばHighレベル)とされたリセット信号PRSTをロジック制御部9に出力する。POR回路10は、電源電圧VCCが所定閾値以下まで低下すると、リセット時の論理レベルとしたリセット信号PRSTをロジック制御部9に出力する。   When the power supply voltage VCC rises, the POR circuit 10 outputs a reset signal PRST of a logic level (for example, low level) at the time of reset to the logic control unit 9, and a certain period after UVLO [Under Voltage Lockout] is released. After the lapse of time, a reset signal PRST having a logic level (for example, High level) at the time of reset release is output to the logic control unit 9. When the power supply voltage VCC falls below a predetermined threshold, the POR circuit 10 outputs to the logic control unit 9 a reset signal PRST having a logic level at the time of reset.

オシレータ11は、内部クロック信号CKを生成し、ロジック制御部9に出力する。多チャンネル出力(4チャンネル出力)についてオシレータ11は一つと共通化しており、チャンネル間のタイミングのバラツキを抑制している。   The oscillator 11 generates an internal clock signal CK and outputs the signal to the logic control unit 9. For the multi-channel output (four-channel output), one oscillator 11 is used in common, thereby suppressing timing variations between channels.

UVLO回路13は、電源電圧VSを監視して不足電圧保護信号を生成し、これをロジック制御部9に出力する。電源電圧VSが保護設定値(例えば5V)以下まで低下すると、不足電圧保護信号が異常時の論理レベル(例えばHighレベル)となり、これを受けたロジック制御部9はプリドライバPDを介して各出力端子OUT1〜OUT8をオープンとする。一方、電源電圧VCCが保護解除値(例えば6V)以上まで上昇すると、不足電圧保護信号が正常時の論理レベル(例えばLowレベル)となり、これを受けたロジック制御部9は通常動作に移行する。   The UVLO circuit 13 monitors the power supply voltage VS, generates an undervoltage protection signal, and outputs this to the logic control unit 9. When the power supply voltage VS falls below the protection set value (for example, 5 V), the undervoltage protection signal becomes a logic level (for example, High level) at the time of abnormality, and the logic control unit 9 receiving this signal outputs each output via the pre-driver PD. The terminals OUT1 to OUT8 are opened. On the other hand, when the power supply voltage VCC rises to a protection release value (for example, 6 V) or more, the undervoltage protection signal becomes a normal logic level (for example, Low level), and the logic control unit 9 receiving this receives a normal operation.

過電圧保護回路14は、電源電圧VSを監視して過電圧保護信号を生成し、これをロジック制御部9に出力する。例えば、電源電圧VSが32Vまで上昇すると、過電圧保護信号は異常時の論理レベル(例えばHighレベル)となり、これを受けたロジック制御部9はプリドライバPDを介して各出力端子OUT1〜OUT8をオープンとする。   The overvoltage protection circuit 14 monitors the power supply voltage VS, generates an overvoltage protection signal, and outputs the signal to the logic control unit 9. For example, when the power supply voltage VS rises to 32 V, the overvoltage protection signal becomes a logic level (for example, High level) at the time of an abnormality, and the logic control unit 9 receiving the signal opens the output terminals OUT1 to OUT8 via the predriver PD. And

TSD回路15は、モータ駆動装置200のチップ温度を監視して過熱保護信号を生成し、これをロジック制御部9に出力する。モータ駆動装置200のチップ温度が保護設定値(例えば175℃)以上まで上昇すると、過熱保護信号が異常時の論理レベル(例えばHighレベル)となり、これを受けたロジック制御部9はプリドライバPDを介して各出力端子OUT1〜OUT8をオープンとする。一方、モータ駆動装置200のチップ温度が保護解除値(例えば150℃)以下まで低下すると、過熱保護信号が正常時の論理レベル(例えばLowレベル)となり、これを受けたロジック制御部9は通常動作に移行する。   The TSD circuit 15 monitors the chip temperature of the motor drive device 200, generates an overheat protection signal, and outputs this to the logic control unit 9. When the chip temperature of the motor driving device 200 rises to a protection set value (for example, 175 ° C.) or more, the overheat protection signal becomes a logic level at the time of abnormality (for example, High level). The respective output terminals OUT1 to OUT8 are opened via this. On the other hand, when the chip temperature of the motor drive device 200 falls below the protection release value (for example, 150 ° C.), the overheat protection signal becomes the normal logic level (for example, Low level), and the logic control unit 9 receiving this receives the normal operation. Move to

インタフェース12は、モータ駆動装置200の外部に配されるマイコン25から受信する各種信号をロジック制御部9へ伝送する。   The interface 12 transmits various signals received from the microcomputer 25 provided outside the motor driving device 200 to the logic control unit 9.

<過電流保護回路について>
次に、過電流保護回路について説明する。図6は、ロジック制御部9に含まれる過電流保護回路160の構成を示す図である。なお、過電流保護回路160は、各モータ駆動部1〜8のそれぞれについて、コンパレータCP1とCP2の各々に対応して設けられる。即ち、過電流保護回路160は、合計として16個設けられる。
<About the overcurrent protection circuit>
Next, the overcurrent protection circuit will be described. FIG. 6 is a diagram illustrating a configuration of the overcurrent protection circuit 160 included in the logic control unit 9. The overcurrent protection circuit 160 is provided for each of the motor driving units 1 to 8 so as to correspond to each of the comparators CP1 and CP2. That is, a total of 16 overcurrent protection circuits 160 are provided.

過電流保護回路160は、カウンタ1601と、インバータ1602と、Dフリップフロップ1603と、AND回路1604と、AND回路1605と、を有している。   The overcurrent protection circuit 160 includes a counter 1601, an inverter 1602, a D flip-flop 1603, an AND circuit 1604, and an AND circuit 1605.

カウンタ1601には、過電流検出信号DET1またはDET2が入力されると共に、クロック信号clkが入力される。クロック信号clkは、オシレータ11から出力される内部クロック信号CKをロジック制御部9に含まれる不図示の分周器によって分周することにより生成される。カウンタ1601は、クロック信号clkをカウントしてカウント結果信号CNTを出力する。   The counter 1601 receives the overcurrent detection signal DET1 or DET2 and the clock signal clk. The clock signal clk is generated by dividing the frequency of the internal clock signal CK output from the oscillator 11 by a frequency divider (not shown) included in the logic control unit 9. The counter 1601 counts the clock signal clk and outputs a count result signal CNT.

インバータ1602は、入力されるカウント結果信号CNTを反転して反転信号INVを生成する。Dフリップフロップ1603のD入力端子には反転信号INVが入力される。Dフリップフロップ1603のクロック端子には、クロック信号clkが入力される。   Inverter 1602 inverts input count result signal CNT to generate inverted signal INV. An inverted signal INV is input to a D input terminal of the D flip-flop 1603. A clock signal clk is input to a clock terminal of the D flip-flop 1603.

AND回路1604には、POR回路10から出力されるリセット信号PRSTが一方の入力端に入力されると共に、マイコン25からインタフェース12を介してリセット信号XRSTが他方の入力端に入力される。AND回路1604の出力は、Dフリップフロップ1603のリセット端子(Rバー端子)に入力される。   A reset signal PRST output from the POR circuit 10 is input to one input terminal of the AND circuit 1604, and a reset signal XRST is input to the other input terminal of the AND circuit 1 from the microcomputer 25 via the interface 12. The output of the AND circuit 1604 is input to the reset terminal (R bar terminal) of the D flip-flop 1603.

AND回路1605には、Dフリップフロップ1604のQ出力端子から出力されるQ出力信号Qoutが一方の入力端に入力されると共に、ON/OFF制御信号CRSが他方の入力端に入力される。ON/OFF制御信号CRSは、モータ駆動装置200のチャンネルごとのオンオフを示す信号であり、マイコン25から送信されてインタフェース12を介してレジスタ(図5で不図示)に格納される信号である。   The Q output signal Qout output from the Q output terminal of the D flip-flop 1604 is input to one input terminal of the AND circuit 1605, and the ON / OFF control signal CRS is input to the other input terminal. The ON / OFF control signal CRS is a signal indicating ON / OFF of each channel of the motor driving device 200, and is a signal transmitted from the microcomputer 25 and stored in a register (not shown in FIG. 5) via the interface 12.

リセット信号PRSTおよびリセット信号XRST共にリセット解除時の論理レベル(Highレベル)である場合、AND回路1604からの出力がHighレベルとなり、Dフリップフロップ1603は、D入力端子およびクロック端子への入力に応じてQ出力端子から出力する通常動作を行う。一方、リセット信号PRSTとリセット信号XRSTの少なくとも一方がリセット時の論理レベル(Lowレベル)となると、AND回路1604からの出力がLowレベルとなり、Dフリップフロップ1603はリセットされる。   When both the reset signal PRST and the reset signal XRST are at the logical level (High level) at the time of reset release, the output from the AND circuit 1604 becomes High level, and the D flip-flop 1603 responds to the input to the D input terminal and the clock terminal. To perform a normal operation of outputting from the Q output terminal. On the other hand, when at least one of the reset signal PRST and the reset signal XRST becomes a logic level (Low level) at the time of reset, the output from the AND circuit 1604 becomes Low level, and the D flip-flop 1603 is reset.

また、ON/OFF制御信号CRSがON時の論理レベル(Highレベル)である場合、AND回路1605は有効となり、ON/OFF制御信号CRSがOFF時の論理レベル(Lowレベル)である場合、AND回路1605は無効となる。   When the ON / OFF control signal CRS is at the ON logic level (High level), the AND circuit 1605 is enabled. When the ON / OFF control signal CRS is at the OFF logic level (Low level), AND is applied. The circuit 1605 becomes invalid.

ここで、リセット信号PRSTとリセット信号XRST共にリセット解除時の論理レベル(Highレベル)であり、且つON/OFF制御信号CRSがON時の論理レベル(Highレベル)である通常動作時の動作について、図7および図8に示すタイミングチャートを用いて説明する。   Here, the operation in the normal operation in which the reset signal PRST and the reset signal XRST are at the logical level (High level) at the time of reset release and the ON / OFF control signal CRS is the logical level (High level) at the time of ON, This will be described with reference to the timing charts shown in FIGS.

図7は、過電流が比較的長い期間検出された場合の各種信号波形例を示すタイミングチャートである。図7のタイミングt1において、抵抗R1または抵抗R2に流れる電流に過電流が発生し、過電流検出信号DET1またはDET2がLowレベルからHighレベルに立ち上がったとする。   FIG. 7 is a timing chart showing examples of various signal waveforms when an overcurrent is detected for a relatively long period. At timing t1 in FIG. 7, an overcurrent occurs in the current flowing through the resistor R1 or the resistor R2, and the overcurrent detection signal DET1 or DET2 rises from a low level to a high level.

すると、これをトリガとして、カウンタ1601は、クロック信号clkのカウントを開始する。カウンタ1601は、過電流検出信号DET1またはDET2がHighレベルである間はカウントを継続し、カウント値が所定の閾値に達したか否かに応じた論理レベルのカウント結果信号CNTを出力する。カウント値が閾値に達していない場合はLowレベル、閾値に達した場合はHighレベルのカウント結果信号CNTとなる。   Then, using this as a trigger, the counter 1601 starts counting the clock signal clk. The counter 1601 continues counting while the overcurrent detection signal DET1 or DET2 is at a high level, and outputs a count result signal CNT of a logical level according to whether or not the count value has reached a predetermined threshold. When the count value has not reached the threshold value, the count result signal CNT is Low level, and when the count value has reached the threshold value, the count result signal CNT has High level.

図7では、上記閾値を一例として10としており、カウント値が10に達したタイミングt2以降まで過電流検出信号DET1またはDET2はHighレベルを維持しているので、カウント結果信号CNTはタイミングt2においてLowレベルからHighレベルへ切替わる。   In FIG. 7, the threshold value is set to 10 as an example, and the overcurrent detection signal DET1 or DET2 maintains the High level until after the timing t2 when the count value reaches 10, so that the count result signal CNT becomes Low at the timing t2. Switching from level to high level.

これにより、インバータINV1602から出力される反転信号INVは、タイミングt2より若干遅れてHighレベルからLowレベルへ切替わる。タイミングt2においてクロックclkが立ち上がるが、その時点で反転信号INVはHighレベルであるため、Dフリップフロップ1603から出力されるQ出力信号QoutはHighレベルが維持される。そして、タイミングt3でクロック信号がCLKが立ち上がった時点で反転信号INVはLowレベルとなっているので、Q出力信号QoutはHighレベルからLowレベルへ切替わる。これにより、AND回路1605から出力される過電流保護信号Socpは、HighレベルからLowレベルへ切替わる。   Accordingly, the inverted signal INV output from the inverter INV1602 switches from the High level to the Low level slightly after the timing t2. At the timing t2, the clock clk rises. At this point, the inverted signal INV is at the high level, so that the Q output signal Qout output from the D flip-flop 1603 is maintained at the high level. When the clock signal CLK rises at the timing t3, the inverted signal INV is at the low level, so that the Q output signal Qout switches from the high level to the low level. As a result, the overcurrent protection signal Socp output from the AND circuit 1605 switches from the high level to the low level.

過電流保護信号SocpがLowレベルへ切替わったことにより、ロジック制御部9は、例えば出力端子OUT1およびOUT2をプリドライバPDを介してオープンとする。これにより、過電流によってモータ駆動装置200が焼損することを抑止できる。   When the overcurrent protection signal Socp is switched to the low level, the logic control unit 9 opens the output terminals OUT1 and OUT2 via the pre-driver PD, for example. Accordingly, it is possible to prevent the motor drive device 200 from being burned out due to the overcurrent.

一方、図8は、瞬間的など比較的短い期間だけ過電流が検出された場合のタイミングチャートを示す。図8のタイミングt11において過電流が検出されて過電流検出信号DET1またはDET2がLowレベルからHighレベルへ切替わると、カウンタ1601はクロック信号clkのカウントを開始する。   On the other hand, FIG. 8 shows a timing chart when an overcurrent is detected for a relatively short period such as a moment. When an overcurrent is detected at timing t11 in FIG. 8 and the overcurrent detection signal DET1 or DET2 switches from a low level to a high level, the counter 1601 starts counting the clock signal clk.

図8の場合、過電流検出期間が短く、クロック信号clkのカウント値が閾値(ここでは10)に達しないタイミングt12において過電流検出信号DET1またはDET2がLowレベルへ立ち下がる。過電流検出信号DET1またはDET2がLowレベルへ立ち下がると、カウンタ1601はカウントを停止してカウント値をリセットし、カウント結果信号CNTはLowレベルとする。   In the case of FIG. 8, the overcurrent detection period is short, and at the timing t12 when the count value of the clock signal clk does not reach the threshold value (here, 10), the overcurrent detection signal DET1 or DET2 falls to the Low level. When the overcurrent detection signal DET1 or DET2 falls to a low level, the counter 1601 stops counting, resets the count value, and sets the count result signal CNT to a low level.

これにより、カウント結果信号CNTはLowレベルが維持され、反転信号INV、Q出力信号Qout、ひいては過電流保護信号SocpはHighレベルが維持される。この場合、ロジック制御部9は、過電流保護を行わない。   As a result, the count result signal CNT is maintained at a low level, and the inverted signal INV, the Q output signal Qout, and the overcurrent protection signal Socp are maintained at a high level. In this case, the logic control unit 9 does not perform overcurrent protection.

従って、クロック信号clkの周期とカウント値の閾値から決まるマスク期間に比して過電流検出期間(過電流検出信号DET1またはDET2がHighレベルとなる期間)が短い場合、過電流保護信号Socpはマスクされる。例えば、クロック信号clkの周期が1μsで、カウント値の閾値が10である場合、マスク期間は約10μsとなる。   Therefore, when the overcurrent detection period (the period during which the overcurrent detection signal DET1 or DET2 is at a high level) is shorter than the mask period determined by the cycle of the clock signal clk and the threshold value of the count value, the overcurrent protection signal Socp is masked. Is done. For example, when the cycle of the clock signal clk is 1 μs and the threshold value of the count value is 10, the mask period is about 10 μs.

これにより、例えば電源電圧VSの起動時に上側スイッチング素子Q1の寄生容量および下側スイッチング素子Q2の寄生容量に流れ込むラッシュ電流により、短い期間の過電流が生じた場合でも、過電流保護が行われることを回避することができる。   Thus, even when an overcurrent for a short period occurs due to a rush current flowing into the parasitic capacitance of the upper switching element Q1 and the parasitic capacitance of the lower switching element Q2 when the power supply voltage VS is activated, overcurrent protection is performed. Can be avoided.

しかしながら、このような比較例に係る過電流保護回路160の構成であると、オシレータ11が故障した場合に、内部クロック信号CKひいてはクロック信号clkの生成が停止するので、カウンタ1601はクロック信号clkをカウントすることができない。従って、過電流が検出されて過電流検出信号DET1またはDET2がHighレベルに立ち上がっても、カウント結果信号CNTはLowレベルが維持され、過電流保護が行われない。即ち、オシレータ11の故障によって、過電流保護機能が動作しない不具合が生じる。   However, with the configuration of the overcurrent protection circuit 160 according to such a comparative example, when the oscillator 11 fails, the generation of the internal clock signal CK and thus the generation of the clock signal clk is stopped. Can't count. Therefore, even if an overcurrent is detected and the overcurrent detection signal DET1 or DET2 rises to a high level, the count result signal CNT is maintained at a low level, and overcurrent protection is not performed. That is, the malfunction of the overcurrent protection function due to the failure of the oscillator 11 occurs.

<本発明の実施形態に係るモータ駆動装置および過電流保護回路>
そこで、本発明の実施形態としては、モータ駆動装置および過電流保護回路を下記で説明する構成としている。
<Motor drive device and overcurrent protection circuit according to embodiment of the present invention>
Therefore, as an embodiment of the present invention, the motor drive device and the overcurrent protection circuit are configured as described below.

図1は、本発明の実施形態に係るモータ駆動装置20の構成を示す図である。モータ駆動装置20の上記比較例に係るモータ駆動装置200(図5)との構成上の相違点は、ウォッチドッグタイマ17を更に備えていることである。また、それに併せ、図1のロジック制御部91に含まれる不図示の過電流保護回路(後述する図2の過電流保護回路16)の構成も比較例に係る過電流保護回路160(図6)と異ならせている。   FIG. 1 is a diagram showing a configuration of a motor drive device 20 according to the embodiment of the present invention. The difference between the motor driving device 20 and the motor driving device 200 (FIG. 5) according to the comparative example is that a watchdog timer 17 is further provided. In addition, an overcurrent protection circuit (not shown) included in the logic control unit 91 of FIG. 1 (an overcurrent protection circuit 16 of FIG. 2 described later) included in the logic control unit 91 of FIG. And different.

ウォッチドッグタイマ17(クロック停止検出部)は、オシレータ11の生成する内部クロック信号CKを監視し、正常に内部クロック信号CKが生成されている場合はその旨に対応する論理レベル(Lowレベル)の内部クロック停止検出信号CKDTを出力する。一方、ウォッチドッグタイマ17は、内部クロック信号CKの生成が停止し、タイムアップとなるとその旨に対応する論理レベル(Highレベル)の内部クロック停止検出信号CKDTを出力する。内部クロック停止検出信号CKDTは、ロジック制御部91に含まれる過電流保護回路へ入力される。   The watchdog timer 17 (clock stop detection unit) monitors the internal clock signal CK generated by the oscillator 11, and when the internal clock signal CK is normally generated, the logical level (Low level) corresponding to the generation is monitored. The internal clock stop detection signal CKDT is output. On the other hand, the watchdog timer 17 stops the generation of the internal clock signal CK and, when the time is up, outputs an internal clock stop detection signal CKDT of a logical level (High level) corresponding to that. The internal clock stop detection signal CKDT is input to an overcurrent protection circuit included in the logic control unit 91.

図2は、ロジック制御部91に含まれる過電流保護回路16の構成を示す図である。過電流保護回路16は、カウンタ161と、インバータ162と、Dフリップフロップ163と、AND回路164〜166と、Dフリップフロップ167と、セレクタ168と、を有している。なお、カウンタ161と、インバータ162と、Dフリップフロップ163から第1出力信号生成部が構成され、Dフリップフロップ167から第2出力信号生成部が構成される。   FIG. 2 is a diagram showing a configuration of the overcurrent protection circuit 16 included in the logic control unit 91. The overcurrent protection circuit 16 includes a counter 161, an inverter 162, a D flip-flop 163, AND circuits 164 to 166, a D flip-flop 167, and a selector 168. Note that a first output signal generator is configured by the counter 161, the inverter 162, and the D flip-flop 163, and a second output signal generator is configured by the D flip-flop 167.

過電流保護回路16のうち、カウンタ161、インバータ162、Dフリップフロップ163、AND回路164、およびAND回路165については、上記の比較例に係る過電流保護回路160の構成と同様である。   Of the overcurrent protection circuit 16, the counter 161, the inverter 162, the D flip-flop 163, the AND circuit 164, and the AND circuit 165 have the same configuration as that of the overcurrent protection circuit 160 according to the comparative example.

過電流保護回路160との構成の相違点について説明すると、AND回路166には、一方の入力端に内部クロック停止検出信号CKDTが入力され、他方の入力端にAND回路164の出力が入力される。AND回路166の出力は、Dフリップフロップ167のリセット端子(Rバー端子)に入力される。   The difference between the configuration of the overcurrent protection circuit 160 and that of the overcurrent protection circuit 160 will be described. The AND circuit 166 receives the internal clock stop detection signal CKDT at one input terminal, and receives the output of the AND circuit 164 at the other input terminal. . The output of the AND circuit 166 is input to the reset terminal (R bar terminal) of the D flip-flop 167.

Dフリップフロップ167のD入力端子にはLowレベルである信号Slowが入力され、クロック端子には過電流検出信号DET1またはDET2が入力される。セレクタ168には、Dフリップフロップ163の出力であるQ出力信号Qout(第1出力信号)と、Dフリップフロップ167の出力であるQ出力信号Qout2(第2出力信号)が入力される。セレクタ168は、内部クロック停止検出信号CKDTの論理レベルに応じて、Q出力信号QoutとQ出力信号Qout2のうちいずれかを選択して選択出力信号Sloutとして出力する。AND回路165には、一方の入力端に選択出力信号Sloutが入力され、他方の入力端にON/OFF制御信号CRSが入力される。AND回路165から過電流保護信号Socpが出力される。   The D input terminal of the D flip-flop 167 receives a low-level signal Slow, and the clock terminal receives the overcurrent detection signal DET1 or DET2. The selector 168 receives the Q output signal Qout (first output signal) output from the D flip-flop 163 and the Q output signal Qout2 (second output signal) output from the D flip-flop 167. The selector 168 selects one of the Q output signal Qout and the Q output signal Qout2 according to the logic level of the internal clock stop detection signal CKDT, and outputs the selected output signal Sout. To the AND circuit 165, the selection output signal Sout is input to one input terminal, and the ON / OFF control signal CRS is input to the other input terminal. The overcurrent protection signal Socp is output from the AND circuit 165.

リセット信号PRSTとリセット信号XRSTの少なくともいずれかがリセット時の論理レベル(Lowレベル)となると、AND回路164の出力はLowレベルとなるので、Dフリップフロップ163はリセットされる。このとき、AND回路166の出力はLowレベルとなるので、Dフリップフロップ167もリセットされる。   When at least one of the reset signal PRST and the reset signal XRST becomes a logic level (Low level) at the time of reset, the output of the AND circuit 164 becomes Low level, so that the D flip-flop 163 is reset. At this time, since the output of the AND circuit 166 becomes Low level, the D flip-flop 167 is also reset.

リセット信号PRSTとリセット信号XRSTが共にリセット解除時の論理レベル(Highレベル)である場合、AND回路164の出力がHighレベルとなり、Dフリップフロップ163は通常動作が可能となる(なお、以下、ON/OFF制御信号CRSはON時のHighレベルであるとする)。このとき、オシレータ11が正常に動作して内部クロック信号CKが正常に生成されていれば、内部クロック停止検出信号CKDTはLowレベルとなり、AND回路166の出力はLowレベルとなるので、Dフリップフロップ167はリセットされる。また、セレクタ168は、Dフリップフロップ163のQ出力端子Qoutを選択して選択出力信号Sloutとして出力する。   When both the reset signal PRST and the reset signal XRST are at the logic level (High level) at the time of reset release, the output of the AND circuit 164 becomes High level, and the D flip-flop 163 can operate normally (hereinafter, ON). It is assumed that the / OFF control signal CRS is at the high level when ON.) At this time, if the oscillator 11 operates normally and the internal clock signal CK is normally generated, the internal clock stop detection signal CKDT goes to the low level, and the output of the AND circuit 166 goes to the low level. 167 is reset. The selector 168 selects the Q output terminal Qout of the D flip-flop 163 and outputs the selected output signal Qout as the selected output signal Sout.

この状態では、先述した図7に示すタイミングチャートのように、マスク期間以上に過電流が検出された場合(過電流検出信号DET1またはDET2がHighレベル)、カウンタ161の出力であるカウント結果信号CNTがLowレベルからHighレベルへ切替わり、結果的にDフロップ163のQ出力信号QoutがHighレベルからLowレベルへ切替わる。このとき、セレクタ168から出力される選択出力信号SloutもHighレベルからLowレベルへ切替わるので、AND回路165から出力される過電流保護信号SocpはHighレベルからLowレベルへ切替わる。これにより、ロジック制御部91は、過電流保護を行うことができる。   In this state, as shown in the timing chart of FIG. 7 described above, when an overcurrent is detected for more than the mask period (when the overcurrent detection signal DET1 or DET2 is at High level), the count result signal CNT output from the counter 161 is output. Is switched from the Low level to the High level, and as a result, the Q output signal Qout of the D flop 163 switches from the High level to the Low level. At this time, the selection output signal Sout output from the selector 168 also switches from the High level to the Low level, so that the overcurrent protection signal Socp output from the AND circuit 165 switches from the High level to the Low level. Thereby, the logic control unit 91 can perform overcurrent protection.

一方、先述した図8に示すタイミングチャートのように、マスク期間に比して短い過電流が検出された場合、カウント結果信号CNTはLowレベルを維持され、Q出力信号QoutがHighレベルを維持するので、選択出力信号SloutもHighレベルを維持する。これにより、過電流保護信号SocpはHighレベルを維持し、過電流保護は行われない。   On the other hand, as shown in the timing chart of FIG. 8 described above, when an overcurrent shorter than the mask period is detected, the count result signal CNT is maintained at the Low level, and the Q output signal Qout is maintained at the High level. Therefore, the selection output signal Sout also maintains the High level. As a result, the overcurrent protection signal Socp maintains the High level, and the overcurrent protection is not performed.

また、オシレータ11が故障して内部クロック信号CKの生成が停止し、ウォッチドッグタイマ17がこれを検出してHighレベルとした内部クロック停止検出信号CKDTを出力するとする。このとき、リセット信号PRSTとリセット信号XRSTが共にリセット解除時の論理レベル(Highレベル)である場合、AND回路164の出力がHighレベルとなり、AND回路166の出力がHighレベルとなり、Dフリップフロップ167は通常動作が可能となる。また、セレクタ168は、Dフリップフロップ167の出力であるQ出力信号Qout2を選択して選択出力信号Sloutとして出力する。   It is also assumed that the oscillator 11 fails and the generation of the internal clock signal CK stops, and the watchdog timer 17 detects this and outputs the internal clock stop detection signal CKDT at a high level. At this time, when both the reset signal PRST and the reset signal XRST are at the logic level (High level) at the time of reset release, the output of the AND circuit 164 becomes High level, the output of the AND circuit 166 becomes High level, and the D flip-flop 167 Allows normal operation. Further, the selector 168 selects the Q output signal Qout2, which is the output of the D flip-flop 167, and outputs it as the selected output signal Sout.

この状態で、図3に示すタイミングチャートのように、過電流が検出されて過電流検出信号DET1またはDET2がLowレベルからHighレベルへタイミングt21で立ち上がったとすると、そのタイミングでDフリップフロップ167のD入力端子に印加されている論理レベル(Lowレベル)がQ出力端子から出力されるので、Q出力信号Qout2はHighレベルからLowレベルへ切替わる。すると、セレクタ168から出力される選択出力信号SloutもLowレベルへ切替わるので、AND回路165から出力される過電流保護信号SocpもLowレベルへ切替わる。これにより、ロジック制御部91は、過電流保護を行う。   In this state, as shown in the timing chart of FIG. 3, if an overcurrent is detected and the overcurrent detection signal DET1 or DET2 rises from the Low level to the High level at the timing t21, the D flip-flop 167 at that timing is switched on. Since the logic level (Low level) applied to the input terminal is output from the Q output terminal, the Q output signal Qout2 switches from the High level to the Low level. Then, the selection output signal Sout output from the selector 168 also switches to the low level, so that the overcurrent protection signal Socp output from the AND circuit 165 also switches to the low level. As a result, the logic control unit 91 performs overcurrent protection.

このように本実施形態によれば、オシレータ11が故障して内部クロック信号CKの生成が停止した場合でも、過電流保護機能を動作させることが可能となる。   As described above, according to the present embodiment, the overcurrent protection function can be operated even when the oscillator 11 fails and the generation of the internal clock signal CK is stopped.

<車両への適用>
図4は、種々の電子機器を搭載した車両の一構成例を示す外観図である。本構成例の車両Xは、バッテリX10から電源電圧VSの供給を受けて動作する種々の電子機器X11〜X18を搭載している。なお、図4における電子機器X11〜X18の搭載位置については、図示の便宜上、実際とは異なる場合がある。
<Application to vehicles>
FIG. 4 is an external view illustrating a configuration example of a vehicle equipped with various electronic devices. The vehicle X of this configuration example includes various electronic devices X11 to X18 that operate by receiving the supply of the power supply voltage VS from the battery X10. The mounting positions of the electronic devices X11 to X18 in FIG. 4 may be different from the actual positions for convenience of illustration.

電子機器X11は、エンジンに関連する制御(インジェクション制御、電子スロットル制御、アイドリング制御、酸素センサヒータ制御、および、オートクルーズ制御など)を行うエンジンコントロールユニットである。   The electronic device X11 is an engine control unit that performs control related to the engine (injection control, electronic throttle control, idling control, oxygen sensor heater control, auto cruise control, and the like).

電子機器X12は、HID[high intensity discharged lamp]やDRL[daytime running lamp]などの点消灯制御を行うランプコントロールユニットである。   The electronic device X12 is a lamp control unit that performs lighting control such as a high intensity discharged lamp (HID) or a daytime running lamp (DRL).

電子機器X13は、トランスミッションに関連する制御を行うトランスミッションコントロールユニットである。   The electronic device X13 is a transmission control unit that performs control related to the transmission.

電子機器X14は、車両Xの運動に関連する制御(ABS[anti-lock brake system]制御、EPS[electric power steering]制御、電子サスペンション制御など)を行うボディコントロールユニットである。   The electronic device X14 is a body control unit that performs control related to the motion of the vehicle X (ABS (anti-lock brake system) control, EPS (electric power steering) control, electronic suspension control, and the like).

電子機器X15は、ドアロックや防犯アラームなどの駆動制御を行うセキュリティコントロールユニットである。   The electronic device X15 is a security control unit that performs drive control such as a door lock and a security alarm.

電子機器X16は、エアーコンディショナ、ワイパー、電動ドアミラー、パワーウィンドウ、ダンパー(ショックアブソーバー)、電動サンルーフ、および、電動シートなど、標準装備品やメーカーオプション品として、工場出荷段階で車両Xに組み込まれている電子機器である。   The electronic device X16 is incorporated into the vehicle X at the factory shipment stage as standard equipment and manufacturer options such as air conditioners, wipers, electric door mirrors, power windows, dampers (shock absorbers), electric sunroofs, and electric seats. Electronic equipment.

電子機器X17は、車載A/V[audio/visual]機器、カーナビゲーションシステム、および、ETC[electronic toll collection system]など、ユーザオプション品として任意で車両Xに装着される電子機器である。   The electronic device X17 is an electronic device arbitrarily mounted on the vehicle X as a user option, such as an in-vehicle A / V [audio / visual] device, a car navigation system, and an ETC [electronic toll collection system].

電子機器X18は、車載ブロア、オイルポンプ、ウォーターポンプ、バッテリ冷却ファンなど、高耐圧系モータを備えた電子機器である。   The electronic device X18 is an electronic device provided with a high pressure-resistant motor such as a vehicle-mounted blower, an oil pump, a water pump, and a battery cooling fan.

上記した電子機器X11〜X18のうち、ブラシ付きDCモータを備える電子機器については、適宜、先に説明したモータ駆動装置20の構成を採用することができる。特にISO26262なども策定されている状況では、モータ駆動装置20が備える過電流保護機能は安全性の面で重要となる。   Of the electronic devices X11 to X18 described above, the electronic device including the DC motor with a brush can appropriately adopt the configuration of the motor driving device 20 described above. In particular, in a situation in which ISO26262 or the like is formulated, the overcurrent protection function of the motor drive device 20 is important in terms of safety.

<その他の変形例>
なお、本明細書中に開示されている種々の技術的特徴は、上記実施形態のほか、その技術的創作の主旨を逸脱しない範囲で種々の変更を加えることが可能である。例えば、過電流保護回路の適用対象については、モータ駆動装置に限らず、例えばLED駆動装置(車載用を含む)なども挙げることができる。
<Other modifications>
Various technical features disclosed in this specification can be modified in various ways in addition to the above-described embodiment without departing from the spirit of the technical creation. For example, the application target of the overcurrent protection circuit is not limited to the motor drive device, but may be, for example, an LED drive device (including an in-vehicle drive device).

また、本発明の異常保護回路は、過電流保護回路に限ることはなく、例えば過電圧保護回路、温度異常保護回路などにも適用可能である。   Further, the abnormality protection circuit of the present invention is not limited to an overcurrent protection circuit, but can be applied to, for example, an overvoltage protection circuit, a temperature abnormality protection circuit, and the like.

このように、上記の実施形態は、全ての点で例示であって、制限的なものではないと考えられるべきであり、本発明の技術的範囲は、上記実施形態の説明ではなく、特許請求の範囲によって示されるものであり、特許請求の範囲と均等の意味および範囲内に属する全ての変更が含まれると理解されるべきである。   Thus, the above-described embodiment is to be considered in all respects as illustrative and not restrictive, and the technical scope of the present invention is not limited to the description of the above-described embodiment but to the claims. , And should be understood to include all modifications that fall within the meaning and range equivalent to the claims.

本発明は、例えば車載用のモータ駆動装置に利用することができる。   INDUSTRIAL APPLICABILITY The present invention can be used, for example, in a vehicle-mounted motor drive device.

1〜8 モータ駆動部
9、91 ロジック制御部
10 POR回路
11 オシレータ
12 インタフェース
13 UVLO回路
14 過電圧保護回路
15 TSD回路
16 過電流保護回路
161 カウンタ
162 インバータ
163 Dフリップフロップ
164〜166 AND回路
167 Dフリップフロップ
168 セレクタ
17 ウォッチドッグタイマ
20 モータ駆動装置
25 マイコン
160 過電流保護回路
1601 カウンタ
1602 インバータ
1603 Dフリップフロップ
1604 AND回路
1605 AND回路
200 モータ駆動装置
R1、R2 抵抗
Q1、Q3 上側スイッチング素子
Q2、Q4 下側スイッチング素子
PD プリドライバ
CP1、CP2 コンパレータ
T1、T2 入力端子
OUT1〜OUT8 出力端子
1-8 Motor drive unit 9, 91 Logic control unit 10 POR circuit 11 Oscillator 12 Interface 13 UVLO circuit 14 Overvoltage protection circuit 15 TSD circuit 16 Overcurrent protection circuit 161 Counter 162 Inverter 163 D flip-flop 164-166 AND circuit 167 D flip-flop 168 Selector 17 Watchdog timer 20 Motor driving device 25 Microcomputer 160 Overcurrent protection circuit 1601 Counter 1602 Inverter 1603 D flip-flop 1604 AND circuit 1605 AND circuit 200 Motor driving device R1, R2 Resistance Q1, Q3 Upper switching element Q2, Q4 Lower Side switching element PD Pre-driver CP1, CP2 Comparator T1, T2 Input terminal OUT1-OUT8 Output terminal

Claims (10)

クロック信号のカウントに基づき、異常検出状態が所定の期間継続したことを検出すると、その旨を示す第1出力信号を出力する第1出力信号生成部と、
異常が検出されると、前記クロック信号を用いずに、その旨を示す第2出力信号を出力する第2出力信号生成部と、
クロック停止検出信号に応じて前記第1出力信号と前記第2出力信号のいずれかを選択する選択部と、を備え、
前記クロック停止検出信号がクロックが正常に生成されている旨を示す場合、前記第2出力信号生成部は無効となり、前記選択部は前記第1出力信号を選択し、
前記クロック停止検出信号がクロックが停止している旨を示す場合、前記第2出力信号生成部は有効となり、前記選択部は前記第2出力信号を選択し、
前記選択部により選択された出力信号に基づいて異常保護信号を出力する、ことを特徴とする異常保護回路。
A first output signal generation unit that outputs a first output signal indicating that the abnormality detection state has continued for a predetermined period based on the count of the clock signal;
A second output signal generation unit that outputs a second output signal indicating the abnormality without using the clock signal when an abnormality is detected;
A selection unit that selects one of the first output signal and the second output signal according to a clock stop detection signal,
When the clock stop detection signal indicates that the clock is normally generated, the second output signal generation unit is disabled, and the selection unit selects the first output signal,
When the clock stop detection signal indicates that the clock is stopped, the second output signal generation unit is enabled, and the selection unit selects the second output signal,
An abnormality protection circuit that outputs an abnormality protection signal based on the output signal selected by the selection unit.
前記第2出力信号生成部は、所定論理レベルの信号が入力されるD入力端子と、異常検出信号が入力されるクロック端子と、前記第2出力信号を出力する出力端子と、を有するDフリップフロップを含むことを特徴とする請求項1に記載の異常保護回路   The second output signal generation unit includes a D flip-flop having a D input terminal to which a signal of a predetermined logic level is input, a clock terminal to which an abnormality detection signal is input, and an output terminal to output the second output signal. The abnormality protection circuit according to claim 1, further comprising a loop. 前記Dフリップフロップのリセット端子に出力が入力されるAND回路を更に備え、
前記AND回路の一方の入力端には前記クロック停止検出信号が入力されることを特徴とする請求項2に記載の異常保護回路。
And further comprising an AND circuit whose output is inputted to a reset terminal of the D flip-flop,
The abnormality protection circuit according to claim 2, wherein the clock stop detection signal is input to one input terminal of the AND circuit.
前記AND回路の他方の入力端には、リセット信号に基づく信号が入力されることを特徴とする請求項3に記載の異常保護回路。   4. The abnormality protection circuit according to claim 3, wherein a signal based on a reset signal is input to the other input terminal of the AND circuit. 前記第1出力信号生成部は、
異常検出信号と前記クロック信号が入力されるカウンタと、
前記カウンタの出力に基づく信号が入力されるD入力端子と、前記クロック信号が入力されるクロック端子と、前記第1出力信号を出力する出力端子と、を有するDフリップフロップと、を含むことを特徴とする請求項1〜請求項4のいずれか1項に記載の異常保護回路。
The first output signal generation unit includes:
A counter to which an abnormality detection signal and the clock signal are input;
A D input terminal to which a signal based on the output of the counter is input, a clock terminal to which the clock signal is input, and a D flip-flop having an output terminal to output the first output signal. The abnormality protection circuit according to any one of claims 1 to 4, characterized in that:
前記Dフリップフロップのリセット端子には、前記第2出力信号生成部に含まれるDフリップフロップをリセットさせるリセット信号に基づく信号が入力されることを特徴とする請求項5に記載の異常保護回路。   6. The abnormality protection circuit according to claim 5, wherein a signal based on a reset signal for resetting the D flip-flop included in the second output signal generator is input to a reset terminal of the D flip-flop. 多チャンネルの出力を有する駆動装置であって、
オシレータと、
前記オシレータを監視してクロック停止検出信号を出力するクロック停止検出部と、
請求項1〜請求項6のいずれか1項に記載の異常保護回路と、を備えることを特徴とする駆動装置。
A drive device having a multi-channel output,
An oscillator,
A clock stop detection unit that monitors the oscillator and outputs a clock stop detection signal;
A drive device comprising: the abnormality protection circuit according to any one of claims 1 to 6.
前記異常保護回路は、AND回路を更に備え、
前記AND回路の一方の入力端には、前記選択部により選択された出力信号が入力され、
前記AND回路の他方の入力端には、チャンネルのオンオフを制御する制御信号が入力され、
前記AND回路から前記異常保護信号が出力される、ことを特徴とする請求項7に記載の駆動装置。
The abnormality protection circuit further includes an AND circuit,
An output signal selected by the selection unit is input to one input terminal of the AND circuit,
A control signal for controlling on / off of a channel is input to the other input terminal of the AND circuit,
The driving device according to claim 7, wherein the abnormality protection signal is output from the AND circuit.
POR(パワーオンリセット)回路を備え、外部のマイコンとの通信を行う請求項7または請求項8に記載の駆動装置であって、
前記異常保護回路において、前記第2出力信号生成部は、所定論理レベルの信号が入力されるD入力端子と、異常検出信号が入力されるクロック端子と、前記第2出力信号を出力する出力端子と、を有するDフリップフロップを含み、
前記異常保護回路は、第1AND回路と第2AND回路を更に備え、
前記第1AND回路には、一方の入力端に前記POR回路の出力するリセット信号が入力され、他方の入力端に前記マイコンからのリセット信号が入力され、
前記第2AND回路には、一方の入力端に前記クロック停止検出信号が入力され、他方の入力端に前記第1AND回路の出力が入力され、
前記Dフリップフロップのリセット端子には、前記第2AND回路の出力が入力される、ことを特徴とする駆動装置。
9. The driving device according to claim 7, further comprising a POR (power-on reset) circuit for communicating with an external microcomputer.
In the abnormality protection circuit, the second output signal generation unit includes a D input terminal to which a signal of a predetermined logic level is input, a clock terminal to which an abnormality detection signal is input, and an output terminal to output the second output signal And a D flip-flop having
The abnormality protection circuit further includes a first AND circuit and a second AND circuit,
A reset signal output from the POR circuit is input to one input terminal of the first AND circuit, and a reset signal from the microcomputer is input to the other input terminal of the first AND circuit.
The second AND circuit has one input terminal receiving the clock stop detection signal and the other input terminal receiving an output of the first AND circuit.
The drive device according to claim 1, wherein an output of the second AND circuit is input to a reset terminal of the D flip-flop.
請求項7〜請求項9のいずれか1項に記載の駆動装置を備えることを特徴とする車載用電子機器。   An in-vehicle electronic device comprising the driving device according to any one of claims 7 to 9.
JP2016075814A 2016-04-05 2016-04-05 Error protection circuit Active JP6666776B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016075814A JP6666776B2 (en) 2016-04-05 2016-04-05 Error protection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016075814A JP6666776B2 (en) 2016-04-05 2016-04-05 Error protection circuit

Publications (2)

Publication Number Publication Date
JP2017189008A JP2017189008A (en) 2017-10-12
JP6666776B2 true JP6666776B2 (en) 2020-03-18

Family

ID=60045040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016075814A Active JP6666776B2 (en) 2016-04-05 2016-04-05 Error protection circuit

Country Status (1)

Country Link
JP (1) JP6666776B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108565839A (en) 2018-03-08 2018-09-21 精进电动科技股份有限公司 A kind of IGBT drive circuit and electric machine controller of electric machine controller

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04315298A (en) * 1991-04-12 1992-11-06 Mitsubishi Electric Corp Automatic duplex sensor switching device
JP2006174268A (en) * 2004-12-17 2006-06-29 Taiyo Yuden Co Ltd Digital amplifier
JP2008263723A (en) * 2007-04-12 2008-10-30 Funai Electric Co Ltd Protection circuit and electronic device
JP4977740B2 (en) * 2009-08-03 2012-07-18 日立オートモティブシステムズ株式会社 Internal combustion engine control device
JP5459199B2 (en) * 2010-12-21 2014-04-02 ブラザー工業株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JP2017189008A (en) 2017-10-12

Similar Documents

Publication Publication Date Title
JP3966194B2 (en) Motor control device
JP6712199B2 (en) Overcurrent protection circuit
CN111435148B (en) Gate level triggered desaturation blanking
US7813096B2 (en) Power supply controller
JP7425173B2 (en) switch device
JP6762419B2 (en) Load drive
JP7201385B2 (en) switch device
JP6057665B2 (en) Semiconductor devices, electronic devices, vehicles
JP2005223308A (en) Semiconductor device and semiconductor device module
JP2011030227A (en) Driving circuit for electric load and system comprising the circuit
JP6666776B2 (en) Error protection circuit
KR100469311B1 (en) Power converter apparatus
JP2009056935A (en) Lock detection method of motor for electric storage type mirror, and lock detection circuit
CN107204725B (en) Motor driving device
JP6632851B2 (en) Input circuit
JP2007027465A (en) Driving circuit for linear solenoid
JP2017073657A (en) Erroneous output prevention circuit
JP2017077138A (en) Semiconductor device
JP2017073872A (en) Charge pump circuit
JP6894957B2 (en) False output prevention circuit
WO2023286549A1 (en) Power source device
JP2015104282A (en) Motor control device
JP2020137137A (en) Clamp circuit
JP2022063724A (en) Semiconductor device and isolated switching power supply
JP2021069141A (en) On-vehicle control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200122

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200221

R150 Certificate of patent or registration of utility model

Ref document number: 6666776

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250