JP2017215307A - Magnetic sensor device and current sensor device - Google Patents

Magnetic sensor device and current sensor device Download PDF

Info

Publication number
JP2017215307A
JP2017215307A JP2016237315A JP2016237315A JP2017215307A JP 2017215307 A JP2017215307 A JP 2017215307A JP 2016237315 A JP2016237315 A JP 2016237315A JP 2016237315 A JP2016237315 A JP 2016237315A JP 2017215307 A JP2017215307 A JP 2017215307A
Authority
JP
Japan
Prior art keywords
unit
output
magnetic sensor
comparison
sensor device
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.)
Granted
Application number
JP2016237315A
Other languages
Japanese (ja)
Other versions
JP6591953B2 (en
Inventor
威信 中村
Takenobu Nakamura
威信 中村
祐丞 相羽
Yusuke Aiba
祐丞 相羽
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.)
Asahi Kasei Electronics Co Ltd
Original Assignee
Asahi Kasei Electronics 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 Asahi Kasei Electronics Co Ltd filed Critical Asahi Kasei Electronics Co Ltd
Priority to US15/385,875 priority Critical patent/US10436856B2/en
Publication of JP2017215307A publication Critical patent/JP2017215307A/en
Application granted granted Critical
Publication of JP6591953B2 publication Critical patent/JP6591953B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Instrument Details And Bridges, And Automatic Balancing Devices (AREA)
  • Measuring Magnetic Variables (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a sensor device which adjusts the timings of a detection signal and a sensing signal for sensing an abnormality in the detection signal and outputs the signals.SOLUTION: There is provided a magnetic sensor device including: a magnetic sensor element; an amplifier for amplifying and outputting the output of the magnetic sensor element; a plurality of comparators for comparing the output of the magnetic sensor element or the output of the amplifier with a threshold value; and a plurality of delay sections for each delaying the comparison result output from corresponding one of the comparators and outputting the comparison result. Also provided is a current sensor device including: a current path for flowing a current of a measurement target through; and a magnetic sensor device arranged to correspond to the current path, the magnetic sensor device being for sensing a magnetic field generated according to the current of the measurement target.SELECTED DRAWING: Figure 2

Description

本発明は、磁気センサ装置および電流センサ装置に関する。   The present invention relates to a magnetic sensor device and a current sensor device.

従来、磁気センサおよび電流センサといったセンサ装置の検出信号に基づき、種々の処理を実行する処理システムは、センサ装置から検出信号と共に異常検出信号を受け取り、検出信号の異常に基づく処理を更に実行することが知られていた(例えば、特許文献1〜3参照)。また、ホール素子を用いた磁気センサが知られていた(例えば、非特許文献1参照)。
特許文献1 米国特許出願公開第2011/0199132号明細書
特許文献2 米国特許出願公開第2013/0009678号明細書
特許文献3 米国特許出願公開第2015/0185279号明細書
非特許文献1 R.S. Popovic著、「Hall Effect Devices」、Inst of Physics Pub Inc、1991年5月
Conventionally, a processing system that executes various processes based on detection signals of a sensor device such as a magnetic sensor and a current sensor receives an abnormality detection signal together with the detection signal from the sensor device, and further executes a process based on the abnormality of the detection signal. (For example, refer to Patent Documents 1 to 3). Further, a magnetic sensor using a Hall element has been known (for example, see Non-Patent Document 1).
Patent Document 1 US Patent Application Publication No. 2011/0199132 Patent Document 2 US Patent Application Publication No. 2013/0009678 Patent Document 3 US Patent Application Publication No. 2015/0185279 Non-Patent Document 1 by RS Popovic, "Hall Effect Devices", Inst of Physics Pub Inc, May 1991

しかしながら、センサ装置から出力される検出信号および異常検出信号の受信タイミングにバラツキがあると、処理システムは異常を検知しても異常検知に基づく処理の実行が遅れてしまう場合があった。例えば、過電流等の異常を検出した場合、直ちに処理システムの処理を停止すべきであるが、このように異常検知後の処理が遅れてしまうと、処理システムに設けられるデバイスおよび処理システムに接続されるデバイス等が故障または破壊することがあった。   However, if there are variations in the reception timing of the detection signal and the abnormality detection signal output from the sensor device, the processing system may delay the execution of the processing based on the abnormality detection even if the abnormality is detected. For example, when an abnormality such as an overcurrent is detected, the processing system should immediately stop processing. If processing after abnormality detection is delayed in this way, the device and processing system provided in the processing system are connected. The device to be used may break down or be destroyed.

本発明の第1の態様においては、磁気センサ素子と、磁気センサ素子の出力を増幅して出力する増幅部と、磁気センサ素子の出力または増幅部の出力を閾値と比較する複数の比較部と、複数の比較部のうち対応する比較部が出力する比較結果を遅延してそれぞれ出力する複数の遅延部と、を備える磁気センサ装置を提供する。   In the first aspect of the present invention, a magnetic sensor element, an amplification unit that amplifies and outputs the output of the magnetic sensor element, and a plurality of comparison units that compare the output of the magnetic sensor element or the output of the amplification unit with a threshold value; There is provided a magnetic sensor device including a plurality of delay units that delay and output a comparison result output from a corresponding comparison unit among a plurality of comparison units.

本発明の第2の態様においては、計測対象の電流を流す電流路と、電流路に対応して配置され、計測対象の電流に応じて生じる磁場を検知する第1の態様の磁気センサ装置と、を備える電流センサ装置を提供する。   According to a second aspect of the present invention, a current path through which a current to be measured flows, and a magnetic sensor device according to the first aspect that is arranged corresponding to the current path and detects a magnetic field generated according to the current to be measured; A current sensor device is provided.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   It should be noted that the above summary of the invention does not enumerate all the necessary features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

センサ装置100の検出信号に応じた処理を実行する制御装置10の構成例を示す。The structural example of the control apparatus 10 which performs the process according to the detection signal of the sensor apparatus 100 is shown. 本実施形態に係る磁気センサ装置200の構成例を示す。The structural example of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る閾値生成部310および比較部320の構成例を示す。The structural example of the threshold value production | generation part 310 which concerns on this embodiment, and the comparison part 320 is shown. 本実施形態に係る比較部320の入力信号および出力信号の第1例を示す。The 1st example of the input signal and output signal of the comparison part 320 which concerns on this embodiment is shown. 本実施形態に係る比較部320の入力信号および出力信号の第2例を示す。The 2nd example of the input signal and output signal of the comparison part 320 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第1変形例を示す。The 1st modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第2変形例を示す。The 2nd modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第3変形例を示す。The 3rd modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る積分部352の構成例を示す。The structural example of the integration part 352 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第4変形例を示す。The 4th modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第5変形例を示す。The 5th modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第6変形例を示す。The 6th modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第7変形例を示す。The 7th modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第8変形例を示す。An 8th modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200の第9変形例を示す。The 9th modification of the magnetic sensor apparatus 200 which concerns on this embodiment is shown. 本実施形態に係る磁気センサ装置200を実装したパッケージ50と、当該パッケージ50を備える電流センサ装置300の構成例を示す。The structural example of the package 50 which mounted the magnetic sensor apparatus 200 which concerns on this embodiment, and the current sensor apparatus 300 provided with the said package 50 is shown.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

図1は、センサ装置100の検出信号に応じて、予め定められた処理を実行する制御装置10の構成例を示す。センサ装置100は、入力する磁場を検出する磁気センサであってよく、これに代えて、入力する電流を検出する電流センサであってもよい。センサ装置100は、外部から入力する磁場または電流の大きさに応じた検出信号を出力する。   FIG. 1 shows a configuration example of a control device 10 that executes a predetermined process in accordance with a detection signal of the sensor device 100. The sensor device 100 may be a magnetic sensor that detects an input magnetic field, or may be a current sensor that detects an input current instead. The sensor device 100 outputs a detection signal corresponding to the magnitude of a magnetic field or current input from the outside.

制御装置10は、センサ装置100が出力する検出信号に応じて、当該制御装置10に接続される装置等を制御する。制御装置10の制御対象は、センサ装置100が出力する検出信号に応じて制御する装置であれば、モーター、アクチェータ、移動ステージ、およびエンジン等でよい。本実施形態において、制御装置10は、モーターに接続され、モーターの駆動を制御する例を説明する。この場合、センサ装置100は、当該モーターの駆動電流を検出し、制御装置10は、検出された駆動電流に応じたフィードバック制御を実行する。即ち、制御装置10、モーター、およびセンサ装置100は、モーターを駆動する処理システムを構成する。センサ装置100は、CPU20と、過電流処理回路30と、を備える。   The control device 10 controls devices and the like connected to the control device 10 according to the detection signal output from the sensor device 100. The control target of the control device 10 may be a motor, an actuator, a moving stage, an engine, or the like as long as it is a device that is controlled according to the detection signal output from the sensor device 100. In the present embodiment, an example in which the control device 10 is connected to a motor and controls driving of the motor will be described. In this case, the sensor device 100 detects the drive current of the motor, and the control device 10 performs feedback control according to the detected drive current. That is, the control device 10, the motor, and the sensor device 100 constitute a processing system that drives the motor. The sensor device 100 includes a CPU 20 and an overcurrent processing circuit 30.

CPU20は、センサ装置100が出力する検出信号に応じて、モーターの駆動を制御する。CPU20は、一例として、インバータ回路等を介してモーターに接続され、インバータ回路を制御する制御信号を供給することで、モーターを駆動する。CPU20は、予め定められたアルゴリズム等に基づき、モーターの駆動を制御してよい。CPU20は、ベクトル制御、またはPID制御等を実行してモーターを駆動してよい。   The CPU 20 controls driving of the motor according to the detection signal output from the sensor device 100. For example, the CPU 20 is connected to the motor via an inverter circuit or the like, and drives the motor by supplying a control signal for controlling the inverter circuit. The CPU 20 may control the driving of the motor based on a predetermined algorithm or the like. The CPU 20 may drive the motor by executing vector control or PID control.

CPU20は、過電流処理回路30が、検出信号の異常を検出したことに応じて、制御をモーター、インバータ回路の保護制御への変更、または、制御を中止または中断する。例えば、過電流処理回路30は、これらを実行させる割り込み信号をCPU20へ送ってよい。また、CPU20が過電流処理回路30を有してもよく、その場合、センサ装置100が出力する検出信号を割り込み信号として直接CPU20が受けてよい。モーターを駆動する電流が基準値を超えた過電流となった場合、当該モーターが加熱されることがあり、動作不良、故障、および破壊等に至る場合がある。また、駆動回路等に短絡が生じた場合、回路および/またはモーターの動作不良、故障、および破壊等に至る場合がある。そこで、過電流処理回路30は、検出信号の振幅値の大きさ等に基づき、当該検出信号の異常を検出する。   In response to the overcurrent processing circuit 30 detecting an abnormality in the detection signal, the CPU 20 changes control to protection control of the motor and inverter circuit, or stops or interrupts control. For example, the overcurrent processing circuit 30 may send an interrupt signal for executing these to the CPU 20. Further, the CPU 20 may include the overcurrent processing circuit 30. In that case, the CPU 20 may directly receive the detection signal output from the sensor device 100 as an interrupt signal. When the current for driving the motor becomes an overcurrent exceeding the reference value, the motor may be heated, resulting in malfunction, failure, destruction, and the like. In addition, when a short circuit occurs in the drive circuit or the like, the circuit and / or the motor may malfunction, fail, or be destroyed. Therefore, the overcurrent processing circuit 30 detects an abnormality of the detection signal based on the magnitude of the amplitude value of the detection signal.

過電流処理回路30は、検出信号が第1基準値以上になったことに応じて、モーターの駆動電流が過電流であると判断してよい。また、過電流処理回路30は、検出信号が第2基準値以下となったことに応じて、短絡が生じたと判断してよい。ここで、第1基準値および第2基準値は、予め定められた値でよく、これに変えて、外部から指定される値でもよい。なお、図1において、過電流処理回路30が検出信号に基づいて異常を検出する例を説明したが、これに代えて、センサ装置100が異常を検出し、検出した結果を過電流処理回路30が受け取ってもよい。   The overcurrent processing circuit 30 may determine that the drive current of the motor is an overcurrent in response to the detection signal becoming equal to or higher than the first reference value. Further, the overcurrent processing circuit 30 may determine that a short circuit has occurred in response to the detection signal being equal to or less than the second reference value. Here, the first reference value and the second reference value may be predetermined values, or may be values specified from the outside instead. In addition, although the example in which the overcurrent processing circuit 30 detects the abnormality based on the detection signal has been described in FIG. 1, instead of this, the sensor device 100 detects the abnormality and the detected result is the overcurrent processing circuit 30. May receive.

以上の処理システムにおいて異常が検出された場合、過電流処理回路30は、直ちにCPU20へ制御の割り込みを実行し、CPU20がモーター、インバータ回路の制御を調整し、電流が過剰に流れないような保護制御への変更を行うか、制御の中止または中断させることが望ましい。しかしながら、信号配線の長さ、寄生抵抗、および寄生容量等によって、過電流処理回路30が受け取る検出信号の応答時間にはバラツキが生じることがあった。即ち、センサ装置100から出力される検出信号をCPU20および過電流処理回路30がそれぞれ受信する受信タイミングにバラツキが生じてしまい、過電流処理回路30が異常を検知しても、CPU20がモーター、インバータ回路の保護制御への変更、または、制御の中止若しくは中断を直ちに実行できない場合があった。   When an abnormality is detected in the above processing system, the overcurrent processing circuit 30 immediately executes a control interrupt to the CPU 20, and the CPU 20 adjusts the control of the motor and the inverter circuit so that the current does not flow excessively. It is desirable to make changes to the control, or to stop or interrupt the control. However, the response time of the detection signal received by the overcurrent processing circuit 30 may vary depending on the length of the signal wiring, the parasitic resistance, the parasitic capacitance, and the like. That is, even when the detection timing output from the sensor device 100 is received by the CPU 20 and the overcurrent processing circuit 30, variations occur in the reception timing, and even if the overcurrent processing circuit 30 detects an abnormality, the CPU 20 There was a case where it was not possible to immediately execute a change to protection control of a circuit, or stop or interruption of control.

また、一例として、センサ装置100が単一のデバイスとして形成される場合、制御装置10の内部において、CPU20および過電流処理回路30の受信タイミングおよび制御タイミングを調整しなければならず、設計、製作、動作試験、異常検出および改良等のコストが上昇していた。そこで、本実施形態に係るセンサ装置は、センサ装置内部で検出信号および検出信号の異常を検知する検知信号の出力タイミングを調整可能に出力する。このようなセンサ装置について、まず、磁場を検出する磁気センサ装置を例に述べる。   Further, as an example, when the sensor device 100 is formed as a single device, the reception timing and control timing of the CPU 20 and the overcurrent processing circuit 30 must be adjusted in the control device 10, and the design and manufacture are performed. Costs of operation tests, abnormality detection and improvement have increased. Therefore, the sensor device according to the present embodiment outputs the detection signal and the output timing of the detection signal for detecting the abnormality of the detection signal in an adjustable manner within the sensor device. Regarding such a sensor device, first, a magnetic sensor device that detects a magnetic field will be described as an example.

図2は、本実施形態に係る磁気センサ装置200の構成例を示す。磁気センサ装置200は、入力する磁場の大きさに応じた磁場検出信号を第1出力として出力する。また、磁気センサ装置200は、入力する磁場が基準範囲外となった場合に、異常を通知する検知信号を第2出力として出力する。磁気センサ装置200は、磁気センサ素子210と、増幅部110と、検知部120と、入出力部150と、設定部160と、クロック生成部170と、を備える。   FIG. 2 shows a configuration example of the magnetic sensor device 200 according to the present embodiment. The magnetic sensor device 200 outputs a magnetic field detection signal corresponding to the magnitude of the input magnetic field as a first output. Further, the magnetic sensor device 200 outputs a detection signal for notifying abnormality as the second output when the input magnetic field is out of the reference range. The magnetic sensor device 200 includes a magnetic sensor element 210, an amplification unit 110, a detection unit 120, an input / output unit 150, a setting unit 160, and a clock generation unit 170.

磁気センサ素子210は、当該磁気センサ装置200に入力する磁場の大きさに応じた検出信号を出力する。磁気センサ素子210は、例えば、基板等の表面に形成され、当該平面に略垂直な方向の磁場を検出する。本実施形態に係る磁気センサ素子210は、ホール素子を有する例を説明する。ここで、基板表面をXY平面とし、XY平面に垂直な方向をZ軸とすると、ホール素子は、X軸方向に電流を流すとZ軸方向に入力する磁場に応じたY軸方向の起電力を発生させる(ホール効果)素子である。磁気センサ素子210は、XY平面において、十字形状に形成されてよい。磁気センサ素子210は、半導体等で形成されてよい。   The magnetic sensor element 210 outputs a detection signal corresponding to the magnitude of the magnetic field input to the magnetic sensor device 200. The magnetic sensor element 210 is formed on the surface of a substrate or the like, for example, and detects a magnetic field in a direction substantially perpendicular to the plane. An example in which the magnetic sensor element 210 according to this embodiment includes a Hall element will be described. Here, when the substrate surface is the XY plane and the direction perpendicular to the XY plane is the Z axis, the Hall element generates an electromotive force in the Y axis direction according to the magnetic field input in the Z axis direction when a current flows in the X axis direction. (Hall effect). The magnetic sensor element 210 may be formed in a cross shape on the XY plane. The magnetic sensor element 210 may be formed of a semiconductor or the like.

磁気センサ素子210は、端子212および端子214を含む第1端子対および端子216および端子218を含む第2端子対を有する。磁気センサ素子210は、一例として、第1端子対および第2端子対が基板表面に形成され、基板に略垂直に入力する磁場を検出する。即ち、磁気センサ素子210は、第1端子対に電流を流すと、入力する磁場に応じて第2端子対から磁場に応じた起電力を発生させる。また、磁気センサ素子210は、第2端子対に電流を流すと、入力する磁場に応じて第1端子対から磁場に応じた起電力を発生させる。   The magnetic sensor element 210 has a first terminal pair including a terminal 212 and a terminal 214 and a second terminal pair including a terminal 216 and a terminal 218. As an example, the magnetic sensor element 210 includes a first terminal pair and a second terminal pair formed on the substrate surface, and detects a magnetic field that is input substantially perpendicularly to the substrate. That is, when a current flows through the first terminal pair, the magnetic sensor element 210 generates an electromotive force according to the magnetic field from the second terminal pair according to the input magnetic field. Further, when a current flows through the second terminal pair, the magnetic sensor element 210 generates an electromotive force according to the magnetic field from the first terminal pair according to the input magnetic field.

このような磁気センサ素子210は、出力信号に素子固有のオフセット信号を含めて出力することがある。このようなオフセット信号を低減すべく、非特許文献1に記載されているスピニングカレント法等を利用してよい。当該スピニングカレント法は、第1位相と第2位相を繰り返すスピニングカレントクロックに基づき、ホール素子に流す電流の方向を切り換え、磁場入力に応じた信号成分とオフセットによる信号成分の極性を反転させる。   Such a magnetic sensor element 210 may output an output signal including an element-specific offset signal. In order to reduce such an offset signal, a spinning current method or the like described in Non-Patent Document 1 may be used. The spinning current method switches the direction of the current flowing through the Hall element based on the spinning current clock that repeats the first phase and the second phase, and inverts the polarity of the signal component according to the magnetic field input and the signal component due to the offset.

例えば、第1位相において、+Z方向の磁場入力Bに対して、端子212から端子214(+X方向とする)へと通電した磁気センサ素子210は、端子218(+Y方向側とする)からホール起電力信号+Vを発生する(−Y方向側の端子216からホール起電力信号−Vを発生する)と共に、+Y方向のオフセット電圧+Vを出力する。この場合、磁気センサ素子210は、同じ+Z方向の磁場入力に対して、第2位相において端子218から端子216(−Y方向)へと通電すると、+X方向側の端子214からホール起電力信号+Vを発生する(−X方向側の端子212からホール起電力信号−Vを発生する)と共に、+X方向のオフセット電圧+Vを出力する。 For example, in the first phase, with respect to the magnetic field input B in the + Z direction, the magnetic sensor element 210 energized from the terminal 212 to the terminal 214 (assumed to be in the + X direction) generates a hole from the terminal 218 (assumed to be in the + Y direction). A power signal + V S is generated (a Hall electromotive force signal −V S is generated from a terminal 216 on the −Y direction side), and an offset voltage + V O in the + Y direction is output. In this case, when the magnetic sensor element 210 is energized from the terminal 218 to the terminal 216 (−Y direction) in the second phase with respect to the same magnetic field input in the + Z direction, the Hall electromotive force signal + V from the terminal 214 on the + X direction side. S is generated (a Hall electromotive force signal −V S is generated from the terminal 212 on the −X direction side), and an offset voltage + V O in the + X direction is output.

したがって、第1位相において磁気センサ素子210のY軸方向の第2端子対から出力電圧Vh1を取得し、第2位相において磁気センサ素子210のX軸方向の第1端子対から出力電圧Vh2を取得することで、磁気センサ素子210の磁場Bの検出信号は次式のように示される。なお、次式は、端子218および端子212を正側として符号を付与した例を示す。
(数1)
h1=+2V+V
h2=−2V+V
Therefore, the output voltage V h1 is obtained from the second terminal pair in the Y-axis direction of the magnetic sensor element 210 in the first phase, and the output voltage V h2 from the first terminal pair in the X-axis direction of the magnetic sensor element 210 in the second phase. , The detection signal of the magnetic field B of the magnetic sensor element 210 is expressed by the following equation. The following formula shows an example in which a sign is given with the terminal 218 and the terminal 212 as the positive side.
(Equation 1)
V h1 = + 2V S + V O
V h2 = -2V S + V O

このように、通電方向を切り換えることにより、(数1)式のように、ホール素子の検出信号のうち、ホール起電力信号Vの信号成分の符号を、第1位相と第2位相において反転させることができる。即ち、スピニングカレント法は、スピニングカレントクロックによってホール起電力信号Vを変調して変調信号にすると共に、オフセット電圧VをDC信号出力とするので、周波数領域で2つの信号を分離することができ、理想的には、フィルタ等を用いて当該オフセット信号を除去することができる。 In this way, by switching the energization direction, the sign of the signal component of the Hall electromotive force signal V S in the detection signal of the Hall element is inverted between the first phase and the second phase as shown in Equation (1). Can be made. That is, in the spinning current method, the Hall electromotive force signal V S is modulated by a spinning current clock to form a modulation signal, and the offset voltage V O is used as a DC signal output, so that two signals can be separated in the frequency domain. Ideally, the offset signal can be removed using a filter or the like.

増幅部110は、このように、磁気センサ素子210の駆動電流を切り換えて供給しつつ、磁気センサ素子210の変調された検出信号を受け取り、当該検出信号を復調して第1出力として出力する。また、増幅部110は、内部に増幅回路を有し、磁気センサ素子210の出力を増幅して出力する。増幅部110は、切換部230と、第1増幅回路240と、復調部250と、第2増幅回路260と、第3増幅回路270と、を有する。   As described above, the amplifying unit 110 receives the modulated detection signal of the magnetic sensor element 210 while switching and supplying the driving current of the magnetic sensor element 210, demodulates the detection signal, and outputs it as a first output. The amplifying unit 110 includes an amplifying circuit therein, and amplifies and outputs the output of the magnetic sensor element 210. The amplification unit 110 includes a switching unit 230, a first amplification circuit 240, a demodulation unit 250, a second amplification circuit 260, and a third amplification circuit 270.

切換部230は、磁気センサ素子210の第1端子対および第2端子対の間で駆動電流を流す端子対および磁気センサ素子210の出力をセンスする端子対を、外部から供給される第1クロックに応じて切り換える。切換部230は、例えば、第1クロックの第1位相において、電源の電位VDDを端子212に、基準電位VSSを端子214にそれぞれ接続して、第1端子対に駆動電流を供給する。この場合、切換部230は、第1クロックの第2位相において、電源を端子218に、基準電位VSSを端子216にそれぞれ接続して、第2端子対に駆動電流を供給する。なお、基準電位VSSは、一例として、0Vである。 The switching unit 230 is a first clock supplied from the outside with a terminal pair for passing a drive current between the first terminal pair and the second terminal pair of the magnetic sensor element 210 and a terminal pair for sensing the output of the magnetic sensor element 210. Switch according to. For example, in the first phase of the first clock, the switching unit 230 connects the power supply potential V DD to the terminal 212 and the reference potential VSS to the terminal 214, and supplies the drive current to the first terminal pair. In this case, in the second phase of the first clock, the switching unit 230 connects the power source to the terminal 218 and the reference potential VSS to the terminal 216, and supplies a drive current to the second terminal pair. Note that the reference potential VSS is 0 V as an example.

また、切換部230は、例えば、第1クロックの第1位相において、端子216および端子218を検出用の端子とし、当該検出用の端子を後段の第1増幅回路240に接続する。この場合、切換部230は、第1クロックの第2位相において、端子212および端子214を検出用の端子とし、当該検出用の端子を後段の第1増幅回路240に接続する。なお、切換部230は、端子218および端子212を正側の検出用端子としてよい。   In addition, for example, in the first phase of the first clock, the switching unit 230 uses the terminals 216 and 218 as detection terminals, and connects the detection terminals to the first amplification circuit 240 in the subsequent stage. In this case, the switching unit 230 uses the terminal 212 and the terminal 214 as detection terminals in the second phase of the first clock, and connects the detection terminals to the first amplification circuit 240 in the subsequent stage. Note that the switching unit 230 may use the terminal 218 and the terminal 212 as detection terminals on the positive side.

第1増幅回路240は、切換部230から供給される磁気センサ素子210の出力信号を増幅する。第1増幅回路240は、差動増幅回路でよい。また、第1増幅回路240は、電圧を電流に変換するトランジスタ差動対でもよい。第1増幅回路240は、例えば、第1クロックの第1位相において、(数1)式に示す第2端子対からの出力電圧Vh1を増幅し、第1クロックの第2位相において、第1端子対からの出力電圧Vh2を増幅する。第1増幅回路240は、増幅した信号を復調部250に供給する。 The first amplifier circuit 240 amplifies the output signal of the magnetic sensor element 210 supplied from the switching unit 230. The first amplifier circuit 240 may be a differential amplifier circuit. The first amplifier circuit 240 may be a transistor differential pair that converts a voltage into a current. For example, in the first phase of the first clock, the first amplifier circuit 240 amplifies the output voltage V h1 from the second terminal pair shown in Formula 1 and in the second phase of the first clock, The output voltage V h2 from the terminal pair is amplified. The first amplifier circuit 240 supplies the amplified signal to the demodulator 250.

復調部250は、入力する信号の正負を予め定められたタイミングで反転する。復調部250は、切換部230の切り換えタイミングと同期したタイミングで、信号の正負を反転してよい。即ち、復調部250は、外部から供給される第1クロックに応じて、信号の正負を反転してよい。   The demodulator 250 inverts the sign of the input signal at a predetermined timing. The demodulator 250 may invert the sign of the signal at a timing synchronized with the switching timing of the switching unit 230. That is, the demodulator 250 may invert the sign of the signal according to the first clock supplied from the outside.

復調部250は、例えば、入力信号を2つの信号線を用いた差動信号として第1増幅回路240から受けとり、2つの信号線を用いた差動信号として出力する。この場合、復調部250は、入力信号線の一方を出力信号線の一方に接続し、かつ、入力信号線の他方を出力信号線の他方に接続するか、入力信号線の一方を出力信号線の他方に接続し、かつ、入力信号線の他方を出力信号線の一方に接続するか、を切り換えてよい。   The demodulator 250 receives, for example, an input signal as a differential signal using two signal lines from the first amplifier circuit 240 and outputs it as a differential signal using two signal lines. In this case, the demodulator 250 connects one of the input signal lines to one of the output signal lines and connects the other of the input signal lines to the other of the output signal lines, or connects one of the input signal lines to the output signal line. And the other of the input signal lines may be connected to one of the output signal lines.

これにより、復調部250の第1位相の出力信号Vo1および第2位相の出力信号Vo2は、次式で示される。なお、次式において、Aは、第1増幅回路240の増幅率を示す。
(数2)
o1=+A(2V+V
o2=+A(2V−V
Thus, the first phase output signal V o1 and the second phase output signal V o2 of the demodulation unit 250 are expressed by the following equations. In the following equation, A indicates the amplification factor of the first amplifier circuit 240.
(Equation 2)
V o1 = + A (2V S + V O )
V o2 = + A (2V S −V O )

復調部250は、入力信号を第1クロックに同期して反転させることで、ホール起電力信号Vを直流成分にし、オフセット電圧Vを変調信号成分とする。復調部250は、(数2)式に示すような出力信号を第2増幅回路260に供給する。 The demodulator 250 inverts the input signal in synchronization with the first clock so that the Hall electromotive force signal V S becomes a DC component and the offset voltage V O becomes a modulation signal component. The demodulator 250 supplies an output signal as shown in the equation (2) to the second amplifier circuit 260.

第2増幅回路260は、復調部250から供給される出力信号を増幅する。第2増幅回路260は、差動増幅回路でよい。また、第2増幅回路260は、電流電圧変換回路でもよい。第2増幅回路260は、増幅した信号を第3増幅回路270に供給する。また、第2増幅回路260は、増幅信号を検知部120に供給する。   The second amplifier circuit 260 amplifies the output signal supplied from the demodulator 250. The second amplifier circuit 260 may be a differential amplifier circuit. The second amplifier circuit 260 may be a current / voltage conversion circuit. The second amplifier circuit 260 supplies the amplified signal to the third amplifier circuit 270. The second amplifier circuit 260 supplies the amplified signal to the detection unit 120.

第3増幅回路270は、第2増幅回路260から供給される出力信号を増幅する。第3増幅回路270は、バッファアンプでよい。また、第3増幅回路270は、差動増幅回路でよい。第3増幅回路270は、アナログ信号を出力してよい。第3増幅回路270は、増幅した信号を増幅部110の第1出力として外部に供給してよい。なお、第2増幅回路260の出力信号が増幅部110の第1出力として出力できる場合、第3増幅回路270は、無くてもよい。   The third amplifier circuit 270 amplifies the output signal supplied from the second amplifier circuit 260. The third amplifier circuit 270 may be a buffer amplifier. The third amplifier circuit 270 may be a differential amplifier circuit. The third amplifier circuit 270 may output an analog signal. The third amplifier circuit 270 may supply the amplified signal to the outside as the first output of the amplification unit 110. When the output signal of the second amplifier circuit 260 can be output as the first output of the amplifier unit 110, the third amplifier circuit 270 may be omitted.

以上の本実施形態に係る増幅部110は、直流成分のホール起電力信号Vと、変調信号成分のオフセット電圧Vと、を有する磁気センサ素子210の磁場検出信号を第1出力として出力する。なお、増幅部110は、フィルタ等を更に有し、オフセット電圧Vを低減させた磁場検出信号を出力してもよい。ここで、増幅部110が、磁気センサ素子210の出力を受け取ってから、第1出力を出力するまでの遅延量を第1遅延量とする。第1遅延量は、一例として、5μsである。 The amplifying unit 110 according to the present embodiment outputs the magnetic field detection signal of the magnetic sensor element 210 having the Hall electromotive force signal V S of the DC component and the offset voltage V O of the modulation signal component as the first output. . Note that the amplifying unit 110 may further include a filter or the like, and may output a magnetic field detection signal in which the offset voltage V O is reduced. Here, the delay amount from when the amplification unit 110 receives the output of the magnetic sensor element 210 to when the first output is output is defined as a first delay amount. As an example, the first delay amount is 5 μs.

検知部120は、増幅部110から受け取った増幅信号と、閾値とを比較して、異常を検知する。検知部120は、検知結果を第2信号として出力する。ここで、検知部120は、第2信号の遅延時間を変更可能とする。検知部120は、閾値生成部310と、比較部320と、遅延部330とを有する。   The detection unit 120 compares the amplified signal received from the amplification unit 110 with a threshold value to detect an abnormality. The detection unit 120 outputs the detection result as a second signal. Here, the detection unit 120 can change the delay time of the second signal. The detection unit 120 includes a threshold generation unit 310, a comparison unit 320, and a delay unit 330.

閾値生成部310は、増幅部110から検知部120に入力する信号の閾値を生成する。閾値生成部310は、外部からの指示に応じた閾値を生成してよい。閾値生成部310は、磁気センサ素子210の出力の上限値および下限値に対応する閾値を生成してよい。閾値生成部310は、生成した基準値を比較部320に供給する。   The threshold generation unit 310 generates a threshold for a signal input from the amplification unit 110 to the detection unit 120. The threshold generation unit 310 may generate a threshold according to an instruction from the outside. The threshold generation unit 310 may generate thresholds corresponding to the upper limit value and the lower limit value of the output of the magnetic sensor element 210. The threshold generation unit 310 supplies the generated reference value to the comparison unit 320.

比較部320は、磁気センサ素子210の出力または増幅部110の出力を閾値生成部310が生成した閾値と比較する。比較部320は、例えば、増幅部110の出力が、上限を超えたか否か、および、下限を下回ったか否かを、比較結果として出力する。このような比較結果を用いることで、増幅部110の出力が上限を超えた場合、または下限を下回った場合に応じて、磁気センサ素子210の出力異常を検知できる。また、増幅部110の出力が上限および下限の間の範囲にある場合、磁気センサ素子210の出力が正常であることを検知できる。比較部320は、第1クロックとは少なくとも位相が異なる第2クロックに応じて、磁気センサ素子210の出力を閾値と比較してよい。比較部320は、比較結果を遅延部330に供給する。   The comparison unit 320 compares the output of the magnetic sensor element 210 or the output of the amplification unit 110 with the threshold generated by the threshold generation unit 310. For example, the comparison unit 320 outputs, as a comparison result, whether or not the output of the amplification unit 110 exceeds the upper limit and whether or not the output is lower than the lower limit. By using such a comparison result, an output abnormality of the magnetic sensor element 210 can be detected when the output of the amplifying unit 110 exceeds the upper limit or falls below the lower limit. Further, when the output of the amplification unit 110 is in a range between the upper limit and the lower limit, it can be detected that the output of the magnetic sensor element 210 is normal. The comparison unit 320 may compare the output of the magnetic sensor element 210 with a threshold value according to a second clock having a phase different from that of the first clock. The comparison unit 320 supplies the comparison result to the delay unit 330.

遅延部330は、比較部320が出力する比較結果を遅延して出力する。遅延部330は、グリッチフィルタ332と、可変遅延回路334とを有する。グリッチフィルタ332は、比較部320が出力する比較結果のグリッチを除去する。グリッチフィルタ332は、過渡的なノイズ等により発生する比較部320の誤判定を低減させる。グリッチフィルタ332は、ローパスフィルタ、サンプルホールド回路、および/またはフリップフロップ等で構成されてよい。また、グリッチフィルタ332は、第2クロックに応じて動作してよく、第2クロックに応じてグリッチ数をカウント(比較部320が出力する比較結果をカウント)してグリッチであるかどうかを判定し、グリッチを除去してよい。   The delay unit 330 delays and outputs the comparison result output from the comparison unit 320. The delay unit 330 includes a glitch filter 332 and a variable delay circuit 334. The glitch filter 332 removes the glitch of the comparison result output from the comparison unit 320. The glitch filter 332 reduces the erroneous determination of the comparison unit 320 caused by transient noise or the like. The glitch filter 332 may be configured with a low-pass filter, a sample hold circuit, and / or a flip-flop. The glitch filter 332 may operate according to the second clock, and counts the number of glitches according to the second clock (counts the comparison result output from the comparison unit 320) to determine whether the glitch is present. , Glitches may be removed.

可変遅延回路334は、グリッチフィルタ332を通過した比較結果を遅延して出力する。可変遅延回路334は、第2クロックに応じて、比較結果を遅延させてよい。可変遅延回路334は、外部から設定された遅延量で、比較結果を遅延させて出力する。可変遅延回路334は、当該検知部120の遅延量が第1遅延量と同等または超える範囲程度まで調節可能としてよい。一例として、当該検知部120の入力から可変遅延回路334に至るまでの遅延量が1μsの場合、可変遅延回路334は、0から5μsの範囲で遅延量を可変する。可変遅延回路334は、シフトレジスタ、カウンタ、フリップフロップ、および/または、複数のディレイラインと切換スイッチの組み合わせ等で構成されてよい。遅延部330は、このようにグリッチフィルタ332および可変遅延回路334を構成することにより、不要なグリッチを除去しつつ、遅延の時間を詳細に調整できる。   The variable delay circuit 334 delays and outputs the comparison result that has passed through the glitch filter 332. The variable delay circuit 334 may delay the comparison result according to the second clock. The variable delay circuit 334 delays and outputs the comparison result with a delay amount set from the outside. The variable delay circuit 334 may be adjustable to a range in which the delay amount of the detection unit 120 is equal to or exceeds the first delay amount. As an example, when the delay amount from the input of the detection unit 120 to the variable delay circuit 334 is 1 μs, the variable delay circuit 334 varies the delay amount in the range of 0 to 5 μs. The variable delay circuit 334 may be configured by a shift register, a counter, a flip-flop, and / or a combination of a plurality of delay lines and changeover switches. By configuring the glitch filter 332 and the variable delay circuit 334 in this manner, the delay unit 330 can adjust the delay time in detail while removing unnecessary glitches.

入出力部150は、当該磁気センサ装置200の外部との信号を授受する。入出力部150は、例えば、当該磁気センサ装置200の内部回路のパラメータ等を設定する信号を受信する。また、入出力部150は、外部からの要求等に応じて、内部回路のパラメータ等の情報を外部に供給してよい。また、入出力部150は、内部回路の動作状態等を外部に供給してもよい。入出力部150は、一例として、外部の制御装置10と接続され、制御装置10によって当該磁気センサ装置200の内部設定および/または動作制御が実行される。   The input / output unit 150 exchanges signals with the outside of the magnetic sensor device 200. For example, the input / output unit 150 receives a signal for setting a parameter of an internal circuit of the magnetic sensor device 200. Further, the input / output unit 150 may supply information such as parameters of the internal circuit to the outside in response to a request from the outside. Further, the input / output unit 150 may supply the operation state of the internal circuit to the outside. For example, the input / output unit 150 is connected to the external control device 10, and the control device 10 executes internal setting and / or operation control of the magnetic sensor device 200.

設定部160は、当該磁気センサ装置200の内部回路のパラメータ等を設定する。設定部160は、入出力部150が受信する外部からの指示に応じて、内部回路のパラメータ等を設定してよい。設定部160は、記憶部162を有し、内部回路のパラメータ等を記憶してよい。また、設定部160は、外部からの信号に応じて、内部回路のパラメータ等を記憶してよい。また、設定部160は、記憶部162に記憶されたデータに基づき、内部回路のパラメータ等を記憶してもよい。   The setting unit 160 sets parameters and the like of the internal circuit of the magnetic sensor device 200. The setting unit 160 may set parameters or the like of the internal circuit in accordance with an external instruction received by the input / output unit 150. The setting unit 160 includes a storage unit 162 and may store internal circuit parameters and the like. Further, the setting unit 160 may store parameters of the internal circuit according to a signal from the outside. Further, the setting unit 160 may store parameters of the internal circuit based on the data stored in the storage unit 162.

設定部160は、外部からの指示に応じて、可変遅延回路334の遅延量を設定する。また、設定部160は、外部からの指示に応じて、閾値生成部310の閾値を設定してよい。また、設定部160は、外部からの指示に応じて、クロック生成部170のクロック周波数を設定してもよい。また、設定部160は、外部からの指示に応じて、グリッチフィルタ332のグリッチであることを判定する数、または除去までの時間を設定してよい。   The setting unit 160 sets the delay amount of the variable delay circuit 334 according to an instruction from the outside. The setting unit 160 may set the threshold value of the threshold value generation unit 310 in accordance with an instruction from the outside. The setting unit 160 may set the clock frequency of the clock generation unit 170 according to an instruction from the outside. In addition, the setting unit 160 may set the number of glitch filters 332 to be determined as a glitch or the time until removal according to an instruction from the outside.

クロック生成部170は、第1クロックを生成する。また、クロック生成部170は、第1クロックの整数倍の周期を有し、第1クロックのタイミングに対して予め定められた位相差をもつ第2クロック信号を生成する。即ち、第2クロックは、第1クロックの1以上の整数倍の周波数を有する。クロック生成部170は、第1クロックおよび第2クロックの周波数を変更可能に生成してよく、この場合、当該周波数は設定部160により設定されてよい。クロック生成部170は、生成した第1クロックを増幅部110に供給し、生成した第2クロックを検知部120に供給する。   The clock generation unit 170 generates a first clock. The clock generator 170 generates a second clock signal having a cycle that is an integral multiple of the first clock and having a predetermined phase difference with respect to the timing of the first clock. That is, the second clock has a frequency that is an integer multiple of one or more of the first clock. The clock generation unit 170 may generate the frequency of the first clock and the second clock in a changeable manner. In this case, the frequency may be set by the setting unit 160. The clock generation unit 170 supplies the generated first clock to the amplification unit 110 and supplies the generated second clock to the detection unit 120.

以上の本実施形態における磁気センサ装置200は、スピニングカレント法によって、磁気センサ素子210の磁気検出成分およびオフセット成分を周波数的に分離して第1出力として出力しつつ、磁気検出成分の異常を検出する検出信号を第2出力として出力する。また、磁気センサ装置200は、第2出力の遅延量を外部から入出力部150を介してプログラマブルに調節できる。   The magnetic sensor device 200 according to the present embodiment described above detects an abnormality in the magnetic detection component while separating the magnetic detection component and the offset component of the magnetic sensor element 210 in terms of frequency and outputting them as the first output by the spinning current method. The detection signal to be output is output as the second output. In addition, the magnetic sensor device 200 can adjust the delay amount of the second output from the outside via the input / output unit 150 in a programmable manner.

ここで、磁気センサ装置200は、第1出力の第1遅延量よりも第2出力の遅延量を小さく設定してよい。これにより、当該磁気センサ装置200に接続する制御装置10等は、第1出力を受信する前に第2出力を受信し、第2出力が異常を検知した信号であることに応じて、CPU20がインバータ回路の出力を直ちに遮断することができる。これにより、モーター、およびインバータ回路等を保護することを容易に実行できる。この場合、制御装置10等は、磁気センサ装置200の第2出力の遅延量を変更できるので、当該制御装置10の内部回路のタイミング調節等の工数を低減させることができ、製造コストを低減させることができる。このような磁気センサ装置200の比較部320について次に説明する。   Here, the magnetic sensor device 200 may set the delay amount of the second output smaller than the first delay amount of the first output. Thereby, the control device 10 or the like connected to the magnetic sensor device 200 receives the second output before receiving the first output, and the CPU 20 determines that the second output is a signal in which an abnormality is detected. The output of the inverter circuit can be shut off immediately. Thereby, protection of a motor, an inverter circuit, etc. can be performed easily. In this case, since the control device 10 and the like can change the delay amount of the second output of the magnetic sensor device 200, man-hours such as timing adjustment of the internal circuit of the control device 10 can be reduced, and the manufacturing cost can be reduced. be able to. Next, the comparison unit 320 of the magnetic sensor device 200 will be described.

図3は、本実施形態に係る閾値生成部310および比較部320の構成例を示す。図3において、図2に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。   FIG. 3 shows a configuration example of the threshold generation unit 310 and the comparison unit 320 according to the present embodiment. In FIG. 3, the same reference numerals are given to substantially the same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIG. 2, and the description thereof is omitted.

閾値生成部310は、磁気センサ素子210の出力の上限値に対応する上方閾値と、下限値に対応する下方閾値とを生成する。図3は、閾値生成部310が3つの抵抗を用いて2つの閾値を生成する例を示す。閾値生成部310は、電源電圧VDDおよび基準電位VSSの間に直列に接続される3つの抵抗を有する。一例として、抵抗R1は一端が電源電圧VDDに接続され、抵抗R2は一端が基準電位VSSに接続され、抵抗R3は抵抗R1および抵抗R2の間に接続される。抵抗R1および抵抗R3は、固定抵抗でよい。抵抗R2は可変抵抗であり、抵抗値は設定部160によって設定可能でよい。 The threshold generation unit 310 generates an upper threshold corresponding to the upper limit value of the output of the magnetic sensor element 210 and a lower threshold corresponding to the lower limit value. FIG. 3 illustrates an example in which the threshold generation unit 310 generates two thresholds using three resistors. Threshold generating part 310 has three resistors connected in series between the power supply voltage V DD and reference potential V SS. As an example, the resistor R1 is connected at one end to the power supply voltage V DD, the resistor R2 having one end connected to the reference potential V SS, the resistor R3 is connected between the resistors R1 and R2. The resistors R1 and R3 may be fixed resistors. The resistor R2 is a variable resistor, and the resistance value may be set by the setting unit 160.

図3は、上方閾値を抵抗R1および抵抗R3の間の電位とし、下方閾値を抵抗R3および抵抗R2の間の電位とした例を示す。即ち、設定部160が抵抗R3の抵抗値を設定することにより、閾値生成部310は、対応する上方閾値および下方閾値を生成できる。なお、図3に示す閾値生成部310は一例であり、本例に限定されることはない。例えば、抵抗R1、抵抗R2、および抵抗R3のうち、少なくとも2つの抵抗が可変抵抗でよく、この場合、設定部160は少なくとも2つの可変抵抗の抵抗値を設定する。これにより、設定部160は、上方閾値および下方閾値をそれぞれ独立に設定することができる。   FIG. 3 shows an example in which the upper threshold is the potential between the resistors R1 and R3, and the lower threshold is the potential between the resistors R3 and R2. That is, when the setting unit 160 sets the resistance value of the resistor R3, the threshold value generation unit 310 can generate the corresponding upper threshold value and lower threshold value. Note that the threshold value generation unit 310 illustrated in FIG. 3 is an example, and is not limited to this example. For example, at least two of the resistors R1, R2, and R3 may be variable resistors. In this case, the setting unit 160 sets the resistance values of at least two variable resistors. Thereby, the setting part 160 can set an upper threshold value and a lower threshold value independently, respectively.

比較部320は、第1比較回路322と、第2比較回路324と、論理回路326と、を有する。第1比較回路322は、第2増幅回路260からの出力信号と、上方閾値とを比較する。第1比較回路322は、例えば、当該出力信号が上方閾値よりも大きい場合にハイ電位を出力し、当該出力信号が上方閾値以下の場合にロー電位を出力する。即ち、第1比較回路322は、磁気センサ素子210の出力が設定された上限値を超えたか否かを判定する。   The comparison unit 320 includes a first comparison circuit 322, a second comparison circuit 324, and a logic circuit 326. The first comparison circuit 322 compares the output signal from the second amplification circuit 260 with the upper threshold value. For example, the first comparison circuit 322 outputs a high potential when the output signal is larger than the upper threshold value, and outputs a low potential when the output signal is equal to or lower than the upper threshold value. That is, the first comparison circuit 322 determines whether or not the output of the magnetic sensor element 210 exceeds a set upper limit value.

第2比較回路324は、第2増幅回路260からの出力信号と、下方閾値とを比較する。第2比較回路324は、例えば、当該出力信号が下方閾値よりも小さい場合にハイ電位を出力し、当該出力信号が下方閾値以上の場合にロー電位を出力する。即ち、第2比較回路324は、磁気センサ素子210の出力が設定された下限値を超えたか否かを判定する。第1比較回路322および第2比較回路324は、コンパレータでよい。   The second comparison circuit 324 compares the output signal from the second amplification circuit 260 with the lower threshold value. For example, the second comparison circuit 324 outputs a high potential when the output signal is smaller than the lower threshold value, and outputs a low potential when the output signal is equal to or higher than the lower threshold value. That is, the second comparison circuit 324 determines whether or not the output of the magnetic sensor element 210 has exceeded a set lower limit value. The first comparison circuit 322 and the second comparison circuit 324 may be comparators.

論理回路326は、第1比較回路322および第2比較回路324の出力の論理和を出力する。即ち、論理回路326は、磁気センサ素子210の出力が上限値を超えたこと、または、下限値を下回ったことに応じて、ハイ電位を出力する。また、論理回路326は、磁気センサ素子210の出力が上限値および下限値の間の範囲内の場合、ロー電位を出力する。以上の閾値生成部310および比較部320の動作について次に説明する。   The logic circuit 326 outputs a logical sum of the outputs of the first comparison circuit 322 and the second comparison circuit 324. That is, the logic circuit 326 outputs a high potential when the output of the magnetic sensor element 210 exceeds the upper limit value or falls below the lower limit value. The logic circuit 326 outputs a low potential when the output of the magnetic sensor element 210 is within the range between the upper limit value and the lower limit value. Next, operations of the threshold generation unit 310 and the comparison unit 320 will be described.

図4は、本実施形態に係る比較部320の入力信号および出力信号の第1例を示す。図4の横軸は時間を示し、縦軸は信号電圧を示す。なお、図4は、基準電位VSSが0Vであり、上方閾値電圧がVDD/2より大きく、VDD未満であり、下方閾値電圧がVSSより大きく、VDD/2未満である例を示す。比較部320は、入力信号に応じて、ハイ電位またはロー電位の出力信号を出力する。 FIG. 4 shows a first example of an input signal and an output signal of the comparison unit 320 according to the present embodiment. The horizontal axis in FIG. 4 indicates time, and the vertical axis indicates signal voltage. 4 illustrates an example in which the reference potential V SS is 0 V, the upper threshold voltage is greater than V DD / 2 and less than V DD , and the lower threshold voltage is greater than V SS and less than V DD / 2. Show. The comparator 320 outputs a high potential or low potential output signal in accordance with the input signal.

比較部320は、例えば、入力信号が上方閾値電圧を超えたことに応じてハイ電位を出力し、また、入力信号が下方閾値電圧未満となったことに応じてハイ電位を出力する。また、比較部320は、入力信号が下方閾値電圧以上、上方閾値電圧以下の場合、ロー電位を出力する。以上のように、比較部320は、入力信号と閾値を比較することで、磁気センサ素子210の出力の異常を検知することができる。また、図4に示すような入力信号に、瞬間的に閾値電圧を超える(または下回る)雑音が混入する場合が生じても、グリッチフィルタ332が当該雑音を低下させるので、検知部120は、磁気センサ素子210の出力異常の誤検知を防止することができる。   For example, the comparison unit 320 outputs a high potential when the input signal exceeds the upper threshold voltage, and outputs a high potential when the input signal becomes less than the lower threshold voltage. The comparison unit 320 outputs a low potential when the input signal is not lower than the lower threshold voltage and not higher than the upper threshold voltage. As described above, the comparison unit 320 can detect an abnormality in the output of the magnetic sensor element 210 by comparing the input signal with the threshold value. Further, even when noise that instantaneously exceeds (or falls below) the threshold voltage is mixed in the input signal as shown in FIG. 4, the glitch filter 332 reduces the noise. An erroneous detection of an output abnormality of the sensor element 210 can be prevented.

図5は、本実施形態に係る比較部320の入力信号および出力信号の第2例を示す。図5の横軸は時間を示し、縦軸は信号電圧を示す。図5は、磁気センサ装置200がスピニングカレント法を実行した場合の、比較部320の入力信号および出力信号の一例を示す。即ち、切換部230は、クロック生成部170が生成する第1クロックをスピニングカレントクロックとし、駆動電流を流す端子および磁気センサ素子210の出力をセンスする端子を切り換えてホール起電力信号を変調する。そして、復調部250は、当該第1クロックに応じて、変調されたホール起電力信号を復調する。   FIG. 5 shows a second example of the input signal and the output signal of the comparison unit 320 according to the present embodiment. The horizontal axis in FIG. 5 indicates time, and the vertical axis indicates signal voltage. FIG. 5 shows an example of an input signal and an output signal of the comparison unit 320 when the magnetic sensor device 200 executes the spinning current method. That is, the switching unit 230 uses the first clock generated by the clock generation unit 170 as a spinning current clock, and switches the terminal through which the drive current flows and the terminal that senses the output of the magnetic sensor element 210 to modulate the Hall electromotive force signal. Then, the demodulator 250 demodulates the modulated Hall electromotive force signal according to the first clock.

磁気センサ素子210に一定の磁場が入力する場合、比較部320の入力信号は、理想的には一定電圧のホール起電力信号となる。しかしながら、切換部230が切り換え動作を実行すると、磁気センサ素子210が有する浮遊容量成分等により、スパイク状の過渡的な雑音が発生することがある。また、復調部250による切り換え動作においてもスパイク状の過渡的な雑音が発生することがある。そこで、比較部320は、第1クロックの立ち上がりおよび立ち下がりタイミングに対して異なるタイミングを有する第2クロックを用いて、比較動作を実行する。   When a constant magnetic field is input to the magnetic sensor element 210, the input signal of the comparison unit 320 is ideally a Hall electromotive force signal having a constant voltage. However, when the switching unit 230 executes the switching operation, spike-like transient noise may occur due to a stray capacitance component or the like that the magnetic sensor element 210 has. Also, spike-like transient noise may occur in the switching operation by the demodulator 250. Therefore, the comparison unit 320 performs the comparison operation using the second clock having different timings with respect to the rising and falling timings of the first clock.

これにより、比較部320は、第1クロックの立ち上がりおよび立ち下がりタイミングで発生するスパイク状の雑音が低減した期間において、入力信号および閾値を比較することができ、より正確な比較動作を実行することができる。また、比較部320は、第1クロックの2倍以上の周波数を有する第2クロックを用いることにより、時間分解能を高くすることができる。   As a result, the comparison unit 320 can compare the input signal and the threshold value in a period in which spike noise generated at the rise and fall timings of the first clock is reduced, and perform a more accurate comparison operation. Can do. Further, the comparison unit 320 can increase the time resolution by using a second clock having a frequency twice or more that of the first clock.

図5は、第1クロックの第1位相の立ち上がりタイミングにおいて、入力信号に正のスパイク雑音が発生し、第2位相の立ち下がりタイミングにおいて、入力信号に負のスパイク雑音が発生した例を示す。そして、比較部320は、第1クロックの2倍の周波数を有し、第1クロックの立ち上がりおよび立ち下がりタイミングに対してΔφの位相差を有する第2クロックに応じて、入力信号と閾値とを比較する例を示す。   FIG. 5 shows an example in which positive spike noise occurs in the input signal at the rising timing of the first phase of the first clock, and negative spike noise occurs in the input signal at the falling timing of the second phase. The comparison unit 320 has an input signal and a threshold value according to the second clock having a frequency twice that of the first clock and having a phase difference of Δφ with respect to the rising and falling timings of the first clock. An example of comparison will be shown.

そして、比較部320は、第2クロックに応じて入力信号および閾値を比較した結果を、信号出力とする。図5は、第2クロックの立ち下がりタイミングにおいて、入力信号が上方閾値を超えたことに応じて、比較部320が出力信号をハイ電位にした例を示す。また、第2クロックの立ち下がりタイミングにおいて、入力信号が上方閾値以下となったことに応じて、比較部320が出力信号をロー電位にした例を示す。   And the comparison part 320 makes the signal output the result of having compared an input signal and a threshold value according to a 2nd clock. FIG. 5 shows an example in which the comparison unit 320 sets the output signal to a high potential in response to the input signal exceeding the upper threshold at the falling timing of the second clock. Further, an example in which the comparison unit 320 sets the output signal to a low potential in response to the input signal being equal to or lower than the upper threshold at the falling timing of the second clock.

このように、第1クロックのタイミングでスパイク状の雑音を有する入力信号が入力しても、第1クロックとは位相の異なる第2クロックを用いることで、検知部120は、磁気センサ素子210の出力異常の誤検知を防止することができる。したがって、磁気センサ装置200は、スピニングカレント法を実行して磁気センサ素子210のDC雑音成分を信号成分から周波数的に分離しつつ、正確に磁気センサ素子210の出力異常を検知することができる。そして、磁気センサ装置200は、検知結果である比較部320の比較結果を、プログラマブルに遅延させるので、雑音を分離した磁気センサ素子210の出力と、正確な検知結果の出力タイミングとを、外部からの指示に応じて設定可能に出力することができる。   As described above, even when an input signal having spike-like noise is input at the timing of the first clock, the detection unit 120 can detect the magnetic sensor element 210 by using the second clock having a phase different from that of the first clock. It is possible to prevent erroneous detection of output abnormality. Therefore, the magnetic sensor device 200 can accurately detect the output abnormality of the magnetic sensor element 210 while executing the spinning current method to frequency-separate the DC noise component of the magnetic sensor element 210 from the signal component. And since the magnetic sensor apparatus 200 delays the comparison result of the comparison part 320 which is a detection result programmably, the output of the magnetic sensor element 210 which isolate | separated the noise, and the output timing of an exact detection result from the outside Can be output in accordance with the instruction.

以上の本実施形態に係る磁気センサ装置200は、比較部320および遅延部330を1組有する例を説明したが、これに限定されることはない。磁気センサ装置200は、比較部320および遅延部330を複数備えてよい。この場合、磁気センサ装置200は、磁気センサ素子210の出力または増幅部110の出力を閾値と比較する複数の比較部320と、複数の比較部320のうち対応する比較部320が出力する比較結果を遅延してそれぞれ出力する複数の遅延部330と、を備える。このような磁気センサ装置200の例を次に説明する。   Although the magnetic sensor device 200 according to the present embodiment has been described as an example having one set of the comparison unit 320 and the delay unit 330, the present invention is not limited to this. The magnetic sensor device 200 may include a plurality of comparison units 320 and delay units 330. In this case, the magnetic sensor device 200 includes a plurality of comparison units 320 that compare the output of the magnetic sensor element 210 or the output of the amplification unit 110 with a threshold value, and a comparison result output by the corresponding comparison unit 320 among the plurality of comparison units 320. And a plurality of delay units 330 that respectively output the signals after delaying. Next, an example of such a magnetic sensor device 200 will be described.

図6は、本実施形態に係る磁気センサ装置200の第1変形例を示す。第1変形例の磁気センサ装置200において、図2に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第1変形例の磁気センサ装置200は、比較部320および遅延部330の組を複数備える。   FIG. 6 shows a first modification of the magnetic sensor device 200 according to the present embodiment. In the magnetic sensor device 200 of the first modified example, the same reference numerals are given to substantially the same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIG. The magnetic sensor device 200 according to the first modification includes a plurality of sets of comparison units 320 and delay units 330.

ここで、複数の遅延部330は、可変遅延回路334をそれぞれ有する。設定部160は、外部からの指示に応じて可変遅延回路334の遅延量のそれぞれを設定する。複数の遅延部330は、複数の比較部320のうち対応する比較部320が出力する比較結果のグリッチをそれぞれ除去する複数のグリッチフィルタ332を更に有してよい。この場合、可変遅延回路334のそれぞれは、複数のグリッチフィルタ332のうち対応するグリッチフィルタ332を通過した比較結果を遅延して出力する。   Here, each of the plurality of delay units 330 includes a variable delay circuit 334. The setting unit 160 sets each delay amount of the variable delay circuit 334 according to an instruction from the outside. The plurality of delay units 330 may further include a plurality of glitch filters 332 that respectively remove the glitches of the comparison results output from the corresponding comparison units 320 among the plurality of comparison units 320. In this case, each of the variable delay circuits 334 delays and outputs the comparison result that has passed through the corresponding glitch filter 332 among the plurality of glitch filters 332.

また、複数の比較部320のそれぞれは、第2クロックに応じて磁気センサ素子210の出力または増幅部110の出力を閾値と比較する。また、複数の遅延部330のそれぞれは、第2クロックに応じて、対応する比較部320が出力する比較結果を遅延させる。即ち、第1変形例の磁気センサ装置200は、検知部120を複数備える。図6は、磁気センサ装置200が第2出力を出力する検知部120と、第3出力を出力する検知部130と、を備える例を示す。   Further, each of the plurality of comparison units 320 compares the output of the magnetic sensor element 210 or the output of the amplification unit 110 with a threshold according to the second clock. In addition, each of the plurality of delay units 330 delays the comparison result output from the corresponding comparison unit 320 according to the second clock. That is, the magnetic sensor device 200 of the first modification includes a plurality of detection units 120. FIG. 6 shows an example in which the magnetic sensor device 200 includes a detection unit 120 that outputs a second output and a detection unit 130 that outputs a third output.

設定部160は、検知部120の閾値生成部310に設定する閾値と、検知部130の閾値生成部310に設定する閾値とを、異なる値に設定可能でよい。例えば、複数の比較部320および遅延部330の組のうち、第1の組の比較部320は、磁気センサ素子210の出力または増幅部110の出力を第1閾値と比較する。また、複数の比較部320および遅延部330の組のうち、第2の組の比較部320は、磁気センサ素子210の出力または増幅部110の出力を第1閾値とは異なる第2閾値と比較する。なお、図6において、検知部120は、比較部320および遅延部330の第1の組の一例であり、また、検知部130は、比較部320および遅延部330の第2の組の一例である。   The setting unit 160 may be able to set different values for the threshold value set in the threshold value generation unit 310 of the detection unit 120 and the threshold value set in the threshold value generation unit 310 of the detection unit 130. For example, among the plurality of comparison units 320 and delay units 330, the first set of comparison units 320 compares the output of the magnetic sensor element 210 or the output of the amplification unit 110 with a first threshold value. In addition, among the plurality of comparison units 320 and delay units 330, the second set of comparison units 320 compares the output of the magnetic sensor element 210 or the output of the amplification unit 110 with a second threshold different from the first threshold. To do. In FIG. 6, detection unit 120 is an example of a first set of comparison unit 320 and delay unit 330, and detection unit 130 is an example of a second set of comparison unit 320 and delay unit 330. is there.

そして、設定部160は、検知部120の比較部320に第1閾値を設定し、検知部130の比較部320に第2閾値を設定する。ここで、第1閾値は、磁気センサ素子210の予め定められた第1出力範囲を示す第1上方閾値および第1下方閾値を有してよく、第2閾値は、磁気センサ素子210の予め定められた第2出力範囲を示し、第1上方閾値よりも小さい第2上方閾値と、第1下方閾値よりも大きい2下方閾値とを有してよい。   Then, the setting unit 160 sets a first threshold value in the comparison unit 320 of the detection unit 120 and sets a second threshold value in the comparison unit 320 of the detection unit 130. Here, the first threshold value may have a first upper threshold value and a first lower threshold value indicating a predetermined first output range of the magnetic sensor element 210, and the second threshold value is determined in advance of the magnetic sensor element 210. The second output range, and may have a second upper threshold value that is smaller than the first upper threshold value and a second lower threshold value that is larger than the first lower threshold value.

これにより、第1変形例の磁気センサ装置200に接続する制御装置10等は、検知部120の第2出力と検知部130の第3出力とを、異なる用途で用いることができる。一例として、制御装置10は、検知部120の閾値を第1出力の定格出力電圧程度、または第1出力の定格出力範囲程度に設定し、第2出力がハイ電位になったことに応じて、CPU20がインバータ回路の出力を遮断する。例えば、第1出力の定格出力電圧の、高電圧側が4.5V、低電圧側が0.5Vである場合に、検知部120の閾値の、高電圧側を4.4V、低電圧側を0.6Vとしてよい。   Thereby, the control device 10 or the like connected to the magnetic sensor device 200 according to the first modification can use the second output of the detection unit 120 and the third output of the detection unit 130 for different purposes. As an example, the control device 10 sets the threshold value of the detection unit 120 to about the rated output voltage of the first output or about the rated output range of the first output, and in response to the second output becoming a high potential, The CPU 20 cuts off the output of the inverter circuit. For example, when the rated output voltage of the first output is 4.5 V on the high voltage side and 0.5 V on the low voltage side, the threshold of the detection unit 120 is 4.4 V on the high voltage side and 0. 0 on the low voltage side. It may be 6V.

また、一例として、制御装置10は、磁気センサ素子210に入力する磁場の大きさを制御するフィードバック回路等を有する場合、検知部130の閾値の範囲を検知部120の閾値の範囲よりも狭く設定してよい。つまり、検知部130の上方閾値電圧は、検知部120の上方閾値電圧よりも小さくする。また、検知部130の下方閾値電圧は、検知部120の下方閾値電圧よりも大きくする。この場合、制御装置10は、第3出力がハイ電位になったことに応じて、磁気センサ素子210の出力が正常な動作範囲となるように当該フィードバック回路を動作させてよい。これにより、制御装置10は、第3出力を用いて、磁気センサ素子210の出力に応じて入力磁場を制御しつつ、第2出力を用いて、磁気センサ素子210が深刻な異常を示す出力信号の範囲になった場合に、動作を停止させることができる。   For example, when the control device 10 includes a feedback circuit that controls the magnitude of the magnetic field input to the magnetic sensor element 210, the threshold range of the detection unit 130 is set to be narrower than the threshold range of the detection unit 120. You can do it. That is, the upper threshold voltage of the detection unit 130 is made smaller than the upper threshold voltage of the detection unit 120. Further, the lower threshold voltage of the detection unit 130 is made larger than the lower threshold voltage of the detection unit 120. In this case, the control device 10 may operate the feedback circuit so that the output of the magnetic sensor element 210 is in a normal operating range in response to the third output becoming a high potential. As a result, the control device 10 uses the third output to control the input magnetic field in accordance with the output of the magnetic sensor element 210, while using the second output, the output signal indicating that the magnetic sensor element 210 has a serious abnormality. The operation can be stopped when the range is reached.

ここで、設定部160は、検知部120の遅延時間と、検知部130の遅延時間とを、異なる値に設定可能でよい。即ち、第1の組の遅延部330は、第2の組の遅延部330とは異なる遅延量を有してよい。この場合、第1の組の遅延部330は、第2の組の遅延部330よりも小さい遅延量を有してよい。これに代えて、第1の組の遅延部330は、第2の組の遅延部330よりも大きい遅延量を有してもよい。   Here, the setting unit 160 may be able to set the delay time of the detection unit 120 and the delay time of the detection unit 130 to different values. That is, the first set of delay units 330 may have a different delay amount than the second set of delay units 330. In this case, the first set of delay units 330 may have a smaller delay amount than the second set of delay units 330. Alternatively, the first set of delay units 330 may have a larger delay amount than the second set of delay units 330.

一例として、制御装置10は、検知部120の遅延部330の遅延時間を検知部130の遅延部330の遅延時間よりも短く設定する。これにより、制御装置10は、第2出力から磁気センサ素子210の出力が深刻な異常を示す範囲になったか否かを第3出力よりも早く受け取ることができ、直ちに動作を停止させることができる。また一例として、制御装置10は、検知部120の遅延時間を検知部130の遅延時間よりも長く設定する。これにより、制御装置10は、磁気センサ素子210の出力が急激に変化し、検知部120と検知部130の比較部320とが同時にハイ電位を出力しても、第2出力による保護制御を開始する前に、第3出力による保護制御を実行する時間を確保できる。つまり、このように、検知部120および検知部130の遅延時間を異なる値に設定することにより、制御装置10の細やかな制御を実現できる。   As an example, the control device 10 sets the delay time of the delay unit 330 of the detection unit 120 to be shorter than the delay time of the delay unit 330 of the detection unit 130. Thereby, the control apparatus 10 can receive earlier than the 3rd output whether the output of the magnetic sensor element 210 became the range which shows serious abnormality from 2nd output, and can stop operation | movement immediately. . As an example, the control device 10 sets the delay time of the detection unit 120 to be longer than the delay time of the detection unit 130. As a result, the control device 10 starts protection control by the second output even when the output of the magnetic sensor element 210 changes rapidly and the detection unit 120 and the comparison unit 320 of the detection unit 130 simultaneously output a high potential. Before this, it is possible to secure time for executing the protection control by the third output. That is, fine control of the control device 10 can be realized by setting the delay times of the detection unit 120 and the detection unit 130 to different values in this way.

図7は、本実施形態に係る磁気センサ装置200の第2変形例を示す。第2変形例の磁気センサ装置200において、図2に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第2変形例の磁気センサ装置200は、積算部350と、積算通知部360と、を更に備える。図7は、検知部120が、積算部350および積算通知部360を有する例を示す。   FIG. 7 shows a second modification of the magnetic sensor device 200 according to the present embodiment. In the magnetic sensor device 200 of the second modification, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIG. The magnetic sensor device 200 of the second modified example further includes an integration unit 350 and an integration notification unit 360. FIG. 7 shows an example in which the detection unit 120 includes an integration unit 350 and an integration notification unit 360.

積算部350は、比較部320が出力する比較結果または遅延部330が出力する遅延された比較結果を積算する。図7は、積算部350が遅延部330の出力する遅延された比較結果を積算する例を示す。積算部350は、比較部320のハイ電位の比較結果に応じてカウント数をアップさせてよく、ロー電位の比較結果に応じてカウント数をダウンさせてよい。これに代えて、積算部350は、比較部320のハイ電位の比較結果に応じてカウント数をアップさせる第1カウンタと、ロー電位の比較結果に応じてカウント数をアップさせる第2カウンタとを有してもよい。   The integration unit 350 integrates the comparison result output from the comparison unit 320 or the delayed comparison result output from the delay unit 330. FIG. 7 shows an example in which the integration unit 350 integrates the delayed comparison results output from the delay unit 330. The integration unit 350 may increase the count number according to the comparison result of the high potential of the comparison unit 320 and may decrease the count number according to the comparison result of the low potential. Instead, the integration unit 350 includes a first counter that increases the count number according to the comparison result of the high potential of the comparison unit 320 and a second counter that increases the count number according to the comparison result of the low potential. You may have.

ここで、設定部160は、外部からの指示に応じて、積算部350の基準範囲を設定してよい。例えば、設定部160は、積算部350のハイ電位およびロー電位の上限カウント値を設定する。   Here, the setting unit 160 may set the reference range of the integrating unit 350 in accordance with an instruction from the outside. For example, the setting unit 160 sets the upper and lower potential count values of the integrating unit 350.

積算通知部360は、積算部350の積算結果が基準範囲外となったことを外部に通知する。例えば、積算通知部360は、指定されたカウント数を超える回数のハイ電位の比較結果を比較部320が出力したことに応じて、外部にハイ電位の通知信号を出力する。また、積算通知部360は、指定されたカウント数を超える回数のロー電位の比較結果を比較部320が出力したことに応じて、外部にロー電位の通知信号を出力する。これにより、第2変形例の磁気センサ装置200は、例えば、磁気センサ素子210の出力が異常を示す状態が継続した場合に、通知信号を外部に供給することができる。   The integration notification unit 360 notifies the outside that the integration result of the integration unit 350 is out of the reference range. For example, the integration notification unit 360 outputs a high potential notification signal to the outside in response to the comparison unit 320 outputting the comparison result of the high potential exceeding the specified count number. Further, the integration notifying unit 360 outputs a low potential notification signal to the outside in response to the comparison unit 320 outputting the comparison result of the low potential exceeding the designated count number. Thereby, the magnetic sensor device 200 of the second modified example can supply a notification signal to the outside, for example, when the state in which the output of the magnetic sensor element 210 indicates abnormality is continued.

第2変形例の磁気センサ装置200においても、図6で説明したように、比較部320および遅延部330を複数備えてよい。この場合、磁気センサ装置200は、複数の比較部320のうち対応する比較部320が出力する比較結果、または、複数の遅延部330のうち対応する遅延部330が出力する遅延された比較結果を積算する一または複数の積算部350を備える。また、磁気センサ装置200は、一または複数の積算部に対応し、対応する積算部350の積算結果が基準範囲外となったことを外部に通知する一または複数の積算通知部360を備える。即ち、磁気センサ装置200は、複数の検知部120を備え、当該複数の検知部120のうち、少なくとも一の検知部120が、積算部350および積算通知部360を備えてよい。   The magnetic sensor device 200 of the second modified example may also include a plurality of comparison units 320 and delay units 330 as described with reference to FIG. In this case, the magnetic sensor device 200 displays the comparison result output by the corresponding comparison unit 320 among the plurality of comparison units 320 or the delayed comparison result output by the corresponding delay unit 330 among the plurality of delay units 330. One or a plurality of integrating units 350 for integrating are provided. In addition, the magnetic sensor device 200 includes one or more integration notification units 360 that correspond to one or more integration units and notify the outside that the integration result of the corresponding integration unit 350 is out of the reference range. In other words, the magnetic sensor device 200 may include a plurality of detection units 120, and at least one detection unit 120 among the plurality of detection units 120 may include an integration unit 350 and an integration notification unit 360.

図8は、本実施形態に係る磁気センサ装置200の第3変形例を示す。第3変形例の磁気センサ装置200において、図2に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第3変形例の磁気センサ装置200は、第3増幅回路270に代えて、AD変換部272を備える。また、磁気センサ装置200は、積分部352と、積分通知部362と、を更に備える。図8は、増幅部110がAD変換部272を有し、検知部120が積分部352および積分通知部362を有する例を示す。   FIG. 8 shows a third modification of the magnetic sensor device 200 according to the present embodiment. In the magnetic sensor device 200 of the third modification, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to this embodiment shown in FIG. The magnetic sensor device 200 of the third modification includes an AD conversion unit 272 instead of the third amplifier circuit 270. The magnetic sensor device 200 further includes an integration unit 352 and an integration notification unit 362. FIG. 8 illustrates an example in which the amplification unit 110 includes an AD conversion unit 272 and the detection unit 120 includes an integration unit 352 and an integration notification unit 362.

AD変換部272は、第2増幅回路260から供給される出力信号をデジタル信号に変換する。即ち、第3変形例の増幅部110は、磁気センサ素子210の出力を増幅してデジタル信号に変換し、第1出力として出力する。なお、AD変換部272は、変換したデジタル信号を、入出力部150から出力してもよい。   The AD converter 272 converts the output signal supplied from the second amplifier circuit 260 into a digital signal. In other words, the amplification unit 110 of the third modification amplifies the output of the magnetic sensor element 210, converts it into a digital signal, and outputs it as a first output. Note that the AD conversion unit 272 may output the converted digital signal from the input / output unit 150.

積分部352は、比較部320が出力する比較結果または遅延部330が出力する遅延された比較結果が予め定められた論理値であることに応じて、増幅された磁気センサ素子210の出力を積分する。図8は、積分部352が遅延部330の出力する遅延された比較結果を積分する例を示す。積分部352は、比較部320の比較結果がハイ電位であることに応じて、AD変換部272からの出力を積分する。積分部352は、AD変換部272の出力信号を積分することで、磁気センサ素子210に入射する磁場を発生させるモーター等に流れる電流量の総量、および当該モーター等に入力される電力量等を算出することができる。また、積分部352は、AD変換部272の出力信号を二乗に積分してもよく、この場合もモーターに入力される電力量等を算出することができる。   The integration unit 352 integrates the amplified output of the magnetic sensor element 210 in response to the comparison result output from the comparison unit 320 or the delayed comparison result output from the delay unit 330 being a predetermined logical value. To do. FIG. 8 illustrates an example in which the integration unit 352 integrates the delayed comparison result output from the delay unit 330. The integration unit 352 integrates the output from the AD conversion unit 272 in response to the comparison result of the comparison unit 320 being a high potential. The integration unit 352 integrates the output signal of the AD conversion unit 272, thereby calculating the total amount of current flowing through a motor or the like that generates a magnetic field incident on the magnetic sensor element 210, and the amount of power input to the motor or the like. Can be calculated. Further, the integration unit 352 may integrate the output signal of the AD conversion unit 272 into the square, and in this case also, the amount of power input to the motor can be calculated.

ここで、設定部160は、外部からの指示に応じて、積分部352の基準範囲を設定してよい。例えば、設定部160は、積分部352の電流量の総量、および/または出力電力の上限値等を設定する。   Here, the setting unit 160 may set the reference range of the integrating unit 352 in accordance with an instruction from the outside. For example, the setting unit 160 sets the total amount of current of the integration unit 352 and / or the upper limit value of the output power.

積分通知部362は、積分部352の積分結果が基準範囲外となったことを外部に通知する。例えば、積分通知部362は、AD変換部272が指定された電流量の総量を超えて出力したことに応じて、外部にハイ電位の通知信号を出力する。また、積算通知部360は、AD変換部272が指定された電流量の総量未満の第1出力を出力したことに応じて、外部にロー電位の通知信号を出力する。これにより、第3変形例の磁気センサ装置200は、例えば、磁気センサ素子210の出力が異常を示す状態が継続した場合に、通知信号を外部に供給することができる。   The integration notification unit 362 notifies the outside that the integration result of the integration unit 352 is out of the reference range. For example, the integration notification unit 362 outputs a high-potential notification signal to the outside in response to the AD conversion unit 272 having output more than the specified total amount of current. In addition, the integration notification unit 360 outputs a low-potential notification signal to the outside in response to the AD converter 272 outputting a first output less than the specified total amount of current. Thereby, the magnetic sensor device 200 of the third modified example can supply a notification signal to the outside when, for example, a state in which the output of the magnetic sensor element 210 indicates abnormality is continued.

なお、AD変換部272が第1出力を出力するタイミングと、比較部320または遅延部330が比較結果を出力するタイミングとは、異なる場合が多い。例えば、AD変換部272が第1出力を出力する更新レートが12.5μsであり、遅延部330の更新レートが2μsの場合、10.5μsの間に積算されるべきAD変換部272の出力が積分量に不足することになる。   Note that the timing at which the AD conversion unit 272 outputs the first output and the timing at which the comparison unit 320 or the delay unit 330 outputs the comparison result are often different. For example, when the update rate at which the AD converter 272 outputs the first output is 12.5 μs and the update rate of the delay unit 330 is 2 μs, the output of the AD converter 272 to be integrated during 10.5 μs is The amount of integration will be insufficient.

そこで、積分部352は、積分を開始する場合、比較結果がハイ電位になってから最初にAD変換部272の出力が更新された時間tにおける出力値VAD(t)に、AD変換部272および遅延部330の更新レートの差分を乗じた値を、積分値に加算してよい。このような積分部352について、次に説明する。 Therefore, when the integration unit 352 starts integration, the integration unit 352 converts the output value V AD (t 0 ) at the time t 0 when the output of the AD conversion unit 272 is first updated after the comparison result becomes a high potential into the AD conversion. A value obtained by multiplying the difference between the update rates of the unit 272 and the delay unit 330 may be added to the integral value. Next, the integration unit 352 will be described.

図9は、本実施形態に係る積分部352の構成例を示す。積分部352は、カウント部410と、乗算部420と、演算部430と、比較部440とを含む。カウント部410は、遅延部330から供給される遅延された比較部320の比較結果を受け取る。カウント部410は、一例として、比較部320の比較結果がハイ電位になってからカウントを開始し、当該比較結果がハイ電位になってからの経過時間を計測する。   FIG. 9 shows a configuration example of the integrating unit 352 according to the present embodiment. Integration unit 352 includes a count unit 410, a multiplication unit 420, a calculation unit 430, and a comparison unit 440. The count unit 410 receives the comparison result of the delayed comparison unit 320 supplied from the delay unit 330. For example, the count unit 410 starts counting after the comparison result of the comparison unit 320 becomes a high potential, and measures an elapsed time after the comparison result becomes a high potential.

乗算部420は、比較結果がハイ電位になってからAD変換部272の出力が更新された時間t以降の当該AD変換部272の出力VAD(t)を取得する(t=t,t,t,...)。乗算部420は、AD変換部272の出力が更新された時間tにおける出力値VAD(t)に、比較結果がハイ電位になってからAD変換部272の出力が更新されるまでにカウント部410がカウントした時間tcntを乗じる。乗算部420の乗算結果tcnt・VAD(t)は、AD変換部272が第1出力を更新する間に積算されるべきAD変換部272の出力に略一致する。 The multiplication unit 420 acquires the output V AD (t) of the AD conversion unit 272 after the time t 0 when the output of the AD conversion unit 272 is updated after the comparison result becomes a high potential (t = t 0 , t 1, t 2, ...) . The multiplying unit 420 sets the output value V AD (t 0 ) at the time t 0 when the output of the AD conversion unit 272 is updated to the time when the output of the AD conversion unit 272 is updated after the comparison result becomes a high potential. The time t cnt counted by the counting unit 410 is multiplied. The multiplication result t cnt · V AD (t 0 ) of the multiplication unit 420 substantially matches the output of the AD conversion unit 272 to be integrated while the AD conversion unit 272 updates the first output.

演算部430は、時刻t以降のAD変換部272の出力VAD(t)にAD変換部272のサンプリング間隔Δtを乗じた値を積算し、当該積算結果に、乗算部420の乗算結果tcnt・VAD(t)を加算する。演算部430の演算結果Sは、次式で示される。積分部352は、演算結果Sを積分結果とする。
(数3)
S=tcnt・VAD(t)+ΣVAD(t)・Δt
The calculation unit 430 integrates a value obtained by multiplying the output V AD (t k ) of the AD conversion unit 272 after time t 0 by the sampling interval Δt of the AD conversion unit 272, and the multiplication result of the multiplication unit 420 is added to the integration result. t cnt · V AD (t 0 ) is added. The calculation result S of the calculation unit 430 is expressed by the following equation. The integration unit 352 sets the calculation result S as an integration result.
(Equation 3)
S = t cnt · V AD (t 0 ) + ΣV AD (t k ) · Δt

比較部440は、演算結果Sと、設定部160から受け取る上限値とを比較する。これにより、比較部440は、積算されるべきAD変換部272の出力を加算した演算結果Sと、上限値とを比較することができ、より正確な比較を実行することができる。   The comparison unit 440 compares the calculation result S with the upper limit value received from the setting unit 160. Thereby, the comparison part 440 can compare the calculation result S which added the output of the AD conversion part 272 which should be integrated | accumulated, and an upper limit, and can perform more exact comparison.

第3変形例の磁気センサ装置200においても、図6で説明したように、比較部320および遅延部330を複数備えてよい。この場合、磁気センサ装置200は、複数の比較部320のうち対応する比較部320が出力する比較結果、または、複数の遅延部330のうち対応する遅延部330が出力する遅延された比較結果が、予め定められた論理値であることに応じて、増幅された磁気センサ素子210の出力を積分する一または複数の積分部352を備える。また、磁気センサ装置200は、一または複数の積分部352に対応し、対応する積分部352の積分結果が基準範囲外となったことを外部に通知する一または複数の積分通知部362を備える。即ち、磁気センサ装置200は、複数の検知部120を備え、当該複数の検知部120のうち、少なくとも一の検知部120が、積分部352および積分通知部362を備えてよい。   The magnetic sensor device 200 of the third modified example may also include a plurality of comparison units 320 and delay units 330 as described with reference to FIG. In this case, the magnetic sensor device 200 has a comparison result output from the corresponding comparison unit 320 among the plurality of comparison units 320 or a delayed comparison result output from the corresponding delay unit 330 among the plurality of delay units 330. One or a plurality of integrating units 352 for integrating the amplified output of the magnetic sensor element 210 according to the predetermined logic value. Further, the magnetic sensor device 200 includes one or a plurality of integration notification units 362 that correspond to one or a plurality of integration units 352 and notify the outside that the integration result of the corresponding integration unit 352 is out of the reference range. . That is, the magnetic sensor device 200 may include a plurality of detection units 120, and at least one of the detection units 120 may include an integration unit 352 and an integration notification unit 362.

図10は、本実施形態に係る磁気センサ装置200の第4変形例を示す。第4変形例の磁気センサ装置200において、図2および図8に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第4変形例の磁気センサ装置200は、自己の故障を判定すべく、第1故障判定部370を備える。また、磁気センサ装置200は、第3増幅回路270に代えて、AD変換部272を備える。図10は、増幅部110がAD変換部272を有し、検知部120が第1故障判定部370を有する例を示す。   FIG. 10 shows a fourth modification of the magnetic sensor device 200 according to the present embodiment. In the magnetic sensor device 200 of the fourth modification, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIGS. 2 and 8, and the description thereof is omitted. The magnetic sensor device 200 of the fourth modification includes a first failure determination unit 370 to determine its own failure. The magnetic sensor device 200 includes an AD converter 272 instead of the third amplifier circuit 270. FIG. 10 illustrates an example in which the amplification unit 110 includes the AD conversion unit 272 and the detection unit 120 includes the first failure determination unit 370.

第1故障判定部370は、デジタル信号が、比較部320が出力する比較結果または遅延部330が出力する遅延された比較結果の論理値に対応する値でないことに応じて、故障を判定する。図10は、第1故障判定部370が遅延部330の出力する遅延された比較結果を取得し、AD変換部272からのデジタル信号と対応するか否かを判定する例を示す。   The first failure determination unit 370 determines a failure based on whether the digital signal is not a value corresponding to the logical value of the comparison result output from the comparison unit 320 or the delayed comparison result output from the delay unit 330. FIG. 10 illustrates an example in which the first failure determination unit 370 acquires the delayed comparison result output from the delay unit 330 and determines whether or not the first failure determination unit 370 corresponds to the digital signal from the AD conversion unit 272.

ここで、設定部160は、閾値生成部310に設定する閾値に対応する閾値のデジタル値を、第1故障判定部370に供給してよい。第1故障判定部370は、当該閾値のデジタル値と、AD変換部272の出力とを比較する。そして、第1故障判定部370は、自己の当該比較結果と、比較部320の比較結果とが対応しなかった場合、磁気センサ装置200が故障したと判定する。第1故障判定部370は、故障を判定した場合、判定結果を外部に通知してよい。   Here, the setting unit 160 may supply the first failure determination unit 370 with a digital value of a threshold corresponding to the threshold set in the threshold generation unit 310. The first failure determination unit 370 compares the digital value of the threshold value with the output of the AD conversion unit 272. And the 1st failure determination part 370 determines with the magnetic sensor apparatus 200 having failed, when the said comparison result of self and the comparison result of the comparison part 320 do not respond | correspond. When the first failure determination unit 370 determines a failure, the first failure determination unit 370 may notify the determination result to the outside.

なお、AD変換部272の出力タイミングと、比較部320または遅延部330の比較結果の出力タイミングが異なる場合、第1故障判定部370は、タイミング差に対応する時間以上の時間が経過するまで、故障の判定を継続してよい。第1故障判定部370は、継続した時間の間に、自己の当該比較結果と、比較部320の比較結果とが対応することがなかった場合、磁気センサ装置200が故障したと判定してよい。以上のように、第4変形例の磁気センサ装置200は、装置内部の故障を判定することができる。   When the output timing of the AD conversion unit 272 and the output timing of the comparison result of the comparison unit 320 or the delay unit 330 are different, the first failure determination unit 370 waits until a time equal to or greater than the time corresponding to the timing difference elapses. Failure determination may be continued. The first failure determination unit 370 may determine that the magnetic sensor device 200 has failed when the comparison result of the self does not correspond to the comparison result of the comparison unit 320 during the continued time. . As described above, the magnetic sensor device 200 of the fourth modified example can determine a failure inside the device.

第4変形例の磁気センサ装置200においても、図6で説明したように、比較部320および遅延部330を複数備えてよい。この場合、磁気センサ装置200は、増幅部110が出力するデジタル信号が、複数の比較部320のうち対応する比較部320が出力する比較結果、または、複数の遅延部330のうち対応する遅延部330が出力する遅延された比較結果の論理値に対応する値でないことに応じて、故障を判定する一または複数の第1故障判定部370を備える。即ち、磁気センサ装置200は、複数の検知部120を備え、当該複数の検知部120のうち、少なくとも一の検知部120が、第1故障判定部370を備えてよい。   The magnetic sensor device 200 of the fourth modified example may also include a plurality of comparison units 320 and delay units 330 as described with reference to FIG. In this case, in the magnetic sensor device 200, the digital signal output from the amplification unit 110 is compared with the comparison result output from the corresponding comparison unit 320 among the plurality of comparison units 320 or the corresponding delay unit among the plurality of delay units 330. One or a plurality of first failure determination units 370 for determining a failure in response to the fact that the value is not a value corresponding to the logical value of the delayed comparison result output by 330. That is, the magnetic sensor device 200 may include a plurality of detection units 120, and at least one detection unit 120 among the plurality of detection units 120 may include the first failure determination unit 370.

図11は、本実施形態に係る磁気センサ装置200の第5変形例を示す。第5変形例の磁気センサ装置200において、図2および図6に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第5変形例の磁気センサ装置200は、自己の故障を判定すべく、複数の検知部と、第2故障判定部380と、を備える。また、磁気センサ装置200は、第3増幅回路270に代えて、AD変換部272を備える。図11は、磁気センサ装置200が第2出力を出力する検知部120と、第3出力を出力する検知部130と、を備え、増幅部110がAD変換部272を有する例を示す。   FIG. 11 shows a fifth modification of the magnetic sensor device 200 according to this embodiment. In the magnetic sensor device 200 of the fifth modified example, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIGS. 2 and 6, and the description thereof is omitted. The magnetic sensor device 200 of the fifth modified example includes a plurality of detection units and a second failure determination unit 380 to determine its own failure. The magnetic sensor device 200 includes an AD converter 272 instead of the third amplifier circuit 270. FIG. 11 shows an example in which the magnetic sensor device 200 includes a detection unit 120 that outputs a second output and a detection unit 130 that outputs a third output, and the amplification unit 110 includes an AD conversion unit 272.

第2故障判定部380は、比較部320および遅延部330の第1の組における比較部320が出力する比較結果または遅延部330が出力する遅延された比較結果と、比較部320および遅延部330の第2の組における比較部320が出力する比較結果または遅延部330が出力する遅延された比較結果とを比較した結果に応じて、故障を判定する。図11は、第2故障判定部380が検知部120の遅延部330の出力する遅延された比較結果と、検知部130の遅延部330の出力する遅延された比較結果とを、比較する例を示す。   The second failure determination unit 380 includes a comparison result output from the comparison unit 320 in the first set of the comparison unit 320 and the delay unit 330 or a delayed comparison result output from the delay unit 330, and the comparison unit 320 and the delay unit 330. A failure is determined according to a comparison result output from the comparison unit 320 in the second set or a delayed comparison result output from the delay unit 330. FIG. 11 illustrates an example in which the second failure determination unit 380 compares the delayed comparison result output from the delay unit 330 of the detection unit 120 and the delayed comparison result output from the delay unit 330 of the detection unit 130. Show.

ここで、一例として、検知部120の上方閾値電圧は、検知部130の上方閾値電圧よりも小さいとする。また、検知部120の下方閾値電圧は、検知部130の下方閾値電圧よりも大きいとする。また、検知部120の遅延量は、検知部130の遅延量未満とする。この場合、検知部120の第2出力よりも、検知部130の第3出力の方が時間的に先にハイ電位となることはあり得ない。また、検知部120の第2出力が、検知部130の第3出力よりも時間的に先にロー電位となることはあり得ない。   Here, as an example, it is assumed that the upper threshold voltage of the detection unit 120 is smaller than the upper threshold voltage of the detection unit 130. Further, it is assumed that the lower threshold voltage of the detection unit 120 is larger than the lower threshold voltage of the detection unit 130. In addition, the delay amount of the detection unit 120 is less than the delay amount of the detection unit 130. In this case, the third output of the detection unit 130 cannot be higher in time than the second output of the detection unit 120. In addition, the second output of the detection unit 120 cannot become a low potential in time before the third output of the detection unit 130.

したがって、第2故障判定部380は、検知部120の第2出力よりも、検知部130の第3出力の方が時間的に先にハイ電位となったこと、および/または、検知部120の第2出力が、検知部130の第3出力よりも時間的に先にロー電位となったことに応じて、磁気センサ装置200が故障したと判定する。第2故障判定部380は、故障を判定した場合、判定結果を外部に通知してよい。   Therefore, the second failure determination unit 380 indicates that the third output of the detection unit 130 is higher in time than the second output of the detection unit 120 and / or the detection unit 120 It is determined that the magnetic sensor device 200 has failed in response to the second output becoming a low potential temporally before the third output of the detection unit 130. When determining the failure, the second failure determination unit 380 may notify the determination result to the outside.

また、設定部160は、検知部120および検知部130の閾値生成部310にそれぞれ設定する閾値に対応する閾値のデジタル値を、第2故障判定部380に供給してよい。第2故障判定部380は、当該閾値のデジタル値と、AD変換部272の出力とを比較する。そして、第2故障判定部380は、自己の当該比較結果と、検知部120および検知部130の比較部320の比較結果とが対応しなかった場合、磁気センサ装置200が故障したと判定する。第2故障判定部380は、故障を判定した場合、判定結果を外部に通知してよい。   In addition, the setting unit 160 may supply the second failure determination unit 380 with digital values of thresholds corresponding to the threshold values set in the detection unit 120 and the threshold generation unit 310 of the detection unit 130, respectively. The second failure determination unit 380 compares the digital value of the threshold value with the output of the AD conversion unit 272. And the 2nd failure determination part 380 determines with the magnetic sensor apparatus 200 having failed, when the said comparison result of self and the comparison result of the comparison part 320 of the detection part 120 and the detection part 130 do not respond | correspond. When determining the failure, the second failure determination unit 380 may notify the determination result to the outside.

なお、AD変換部272の出力タイミングと、検知部120および検知部130の比較部320または遅延部330の比較結果の出力タイミングが異なる場合、図10で説明したように、第2故障判定部380は、タイミング差に対応する時間以上の時間が経過するまで、故障の判定を継続してよい。以上のように、第5変形例の磁気センサ装置200は、装置内部の故障を判定することができる。   When the output timing of the AD conversion unit 272 is different from the output timing of the comparison result of the comparison unit 320 or the delay unit 330 of the detection unit 120 and the detection unit 130, as described with reference to FIG. 10, the second failure determination unit 380 May continue to determine the failure until a time equal to or greater than the time corresponding to the timing difference has elapsed. As described above, the magnetic sensor device 200 of the fifth modified example can determine a failure inside the device.

以上の本実施形態に係る磁気センサ装置200は、比較部320が出力する比較結果を遅延部330が遅延して出力する例を説明した。これに加えて、磁気センサ装置200は、比較部320に入力する信号を遅延させてもよい。このような磁気センサ装置200の例を次に説明する。   In the magnetic sensor device 200 according to the present embodiment described above, the example in which the delay unit 330 delays and outputs the comparison result output by the comparison unit 320 has been described. In addition, the magnetic sensor device 200 may delay a signal input to the comparison unit 320. Next, an example of such a magnetic sensor device 200 will be described.

図12は、本実施形態に係る磁気センサ装置200の第6変形例を示す。第6変形例の磁気センサ装置200において、図6に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第6変形例の磁気センサ装置200は、遅延回路510を更に備える例を示す。   FIG. 12 shows a sixth modification of the magnetic sensor device 200 according to this embodiment. In the magnetic sensor device 200 of the sixth modified example, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to this embodiment shown in FIG. The magnetic sensor device 200 of the sixth modified example shows an example further including a delay circuit 510.

遅延回路510は、磁気センサ素子210の出力を遅延させる。遅延回路510は、遅延量が固定の遅延回路でよく、これに代えて、遅延量が可変の遅延回路でもよい。遅延回路510は、バッファアンプおよび/またはディレイライン等を有してよい。   The delay circuit 510 delays the output of the magnetic sensor element 210. The delay circuit 510 may be a delay circuit having a fixed delay amount. Alternatively, the delay circuit 510 may be a delay circuit having a variable delay amount. The delay circuit 510 may include a buffer amplifier and / or a delay line.

また、遅延回路510は、雑音を低減するフィルタを有してよい。この場合、フィルタは、ローパスフィルタを形成して、リップル等の除去に用いてもよい。また、遅延回路510は、アンチエイリアスフィルタ、バンドパスフィルタ、および/またはノッチフィルタ等を有してもよい。なお、遅延回路510は、抵抗値が固定の抵抗および/または抵抗値を変更できる可変抵抗を有してよい。また、遅延回路510は、容量が固定のキャパシタおよび/または容量を変更できる可変キャパシタを有してよい。   The delay circuit 510 may include a filter that reduces noise. In this case, the filter may form a low-pass filter and be used for removing ripples and the like. The delay circuit 510 may include an antialiasing filter, a bandpass filter, and / or a notch filter. Note that the delay circuit 510 may include a resistor having a fixed resistance value and / or a variable resistor that can change the resistance value. The delay circuit 510 may include a capacitor having a fixed capacitance and / or a variable capacitor capable of changing the capacitance.

図12において、遅延回路510は、増幅部110に設けられる例を示す。また、図12は、遅延回路510が第2増幅回路260および第3増幅回路270の間に設けられる例を示す。そして、複数の比較部320および遅延部330の組のうち、第1の組の比較部320は、遅延回路510の入力と、第1閾値とを比較する。また、複数の比較部320および遅延部330の組のうち、第2の組の比較部320は、遅延回路510の出力と第2閾値とを比較する。   In FIG. 12, the delay circuit 510 shows an example provided in the amplification unit 110. FIG. 12 shows an example in which the delay circuit 510 is provided between the second amplifier circuit 260 and the third amplifier circuit 270. Then, among the plurality of comparison units 320 and delay units 330, the first set of comparison units 320 compares the input of the delay circuit 510 with the first threshold value. In addition, among the plurality of comparison units 320 and delay units 330, the second set of comparison units 320 compares the output of the delay circuit 510 with the second threshold value.

即ち、図12は、検知部120の比較部320が第2増幅回路260の出力と第1閾値とを比較し、検知部130の比較部320が遅延回路510の出力と第2閾値とを比較する例を示す。これにより、検知部130は、検知部120が増幅部110から増幅信号を受け取る時刻よりも、遅延回路510が有する遅延時間遅れて当該増幅信号を増幅部110から受け取ることになる。   That is, in FIG. 12, the comparison unit 320 of the detection unit 120 compares the output of the second amplifier circuit 260 with the first threshold value, and the comparison unit 320 of the detection unit 130 compares the output of the delay circuit 510 with the second threshold value. An example is shown. As a result, the detection unit 130 receives the amplified signal from the amplification unit 110 with a delay of the delay time of the delay circuit 510 from the time when the detection unit 120 receives the amplified signal from the amplification unit 110.

これにより、第6変形例の磁気センサ装置200は、検知部120および検知部130における閾値との比較動作のタイミングを調節することができる。また、磁気センサ装置200は、遅延回路510にフィルタ等を設けることにより、信号を遅延させると共にノイズを低減させることができる。したがって、磁気センサ装置200は、高速に処理すべき制御に対して第2増幅回路260の出力を用いるので、比較部320の比較動作を高速に実行させることができる。また、磁気センサ装置200は、遅延させて処理する制御に対して遅延回路510を通して低ノイズ化させた信号を用いるので、比較部320の比較動作を精度よく実行させることができる。   Thereby, the magnetic sensor device 200 of the sixth modified example can adjust the timing of the comparison operation with the threshold values in the detection unit 120 and the detection unit 130. In addition, the magnetic sensor device 200 can delay a signal and reduce noise by providing a filter or the like in the delay circuit 510. Therefore, since the magnetic sensor device 200 uses the output of the second amplifier circuit 260 for the control to be processed at high speed, the comparison operation of the comparison unit 320 can be executed at high speed. In addition, since the magnetic sensor device 200 uses a signal whose noise has been reduced through the delay circuit 510 with respect to the control to be processed with a delay, the comparison operation of the comparison unit 320 can be executed with high accuracy.

例えば、磁気センサ装置200は、計測対象となる電流の磁場に応じて、過電流等の深刻な異常を示す出力信号の範囲を判定する動作を検知部120の比較部320に高速に実行させる。これにより、磁気センサ装置200は、深刻な異常の検出をより高速に動作させて、破壊、劣化等を防止できる。また、磁気センサ装置200は、磁気センサ素子210の出力を正常な動作範囲となるようにフィードバック制御する場合、遅延回路510を通して低ノイズ化させた信号を用い、より精度の高い比較動作を用いることができる。   For example, the magnetic sensor device 200 causes the comparison unit 320 of the detection unit 120 to execute an operation of determining a range of an output signal indicating a serious abnormality such as an overcurrent at high speed according to the magnetic field of the current to be measured. As a result, the magnetic sensor device 200 can detect a serious abnormality at a higher speed and prevent destruction, deterioration, and the like. Further, when feedback control is performed so that the output of the magnetic sensor element 210 falls within the normal operating range, the magnetic sensor device 200 uses a signal whose noise has been reduced through the delay circuit 510 and uses a more accurate comparison operation. Can do.

また、第6変形例の磁気センサ装置200は、検知部120が出力する第2出力と検知部130が出力する第3出力との出力タイミングを、遅延回路510が有する遅延時間を用いて調節することができる。したがって、第6変形例の磁気センサ装置200は、検知部120の遅延部330および検知部130の遅延部330が設定できる遅延時間の差よりも大きい時間範囲で、第2出力および第3出力の出力タイミングを調節することができる。また、第6変形例の磁気センサ装置200は、増幅部110に遅延回路510を設けるので、ノイズを低減させた第1出力を増幅部110から出力することができる。   In addition, the magnetic sensor device 200 according to the sixth modification adjusts the output timing of the second output output from the detection unit 120 and the third output output from the detection unit 130 using the delay time of the delay circuit 510. be able to. Therefore, the magnetic sensor device 200 of the sixth modified example has the second output and the third output in a time range larger than the difference in delay time that can be set by the delay unit 330 of the detection unit 120 and the delay unit 330 of the detection unit 130. Output timing can be adjusted. In addition, since the magnetic sensor device 200 according to the sixth modification includes the delay circuit 510 in the amplification unit 110, the first output with reduced noise can be output from the amplification unit 110.

図13は、本実施形態に係る磁気センサ装置200の第7変形例を示す。第7変形例の磁気センサ装置200において、図12に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第7変形例の磁気センサ装置200は、遅延回路510が検知部130に設けられる例を示す。   FIG. 13 shows a seventh modification of the magnetic sensor device 200 according to this embodiment. In the magnetic sensor device 200 of the seventh modification, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to this embodiment shown in FIG. The magnetic sensor device 200 according to the seventh modification shows an example in which the delay circuit 510 is provided in the detection unit 130.

図13は、遅延回路510が第2増幅回路260および検知部130の比較部320の間に設けられる例を示す。この場合においても、複数の比較部320および遅延部330の組のうち、第1の組の比較部320は、遅延回路510の入力と、第1閾値とを比較し、第2の組の比較部320は、遅延回路510の出力と第2閾値とを比較することになる。   FIG. 13 illustrates an example in which the delay circuit 510 is provided between the second amplifier circuit 260 and the comparison unit 320 of the detection unit 130. Even in this case, the first set of comparison units 320 among the sets of the plurality of comparison units 320 and the delay units 330 compares the input of the delay circuit 510 with the first threshold value, and compares the second set. The unit 320 compares the output of the delay circuit 510 with the second threshold value.

したがって、第7変形例の磁気センサ装置200は、第6変形例の磁気センサ装置200と同様に、検知部120および検知部130における閾値との比較動作のタイミングを調節することができる。また、第7変形例の磁気センサ装置200は、検知部130に遅延回路510を設けるので、増幅部110からの第1出力に遅延を生じさせずに出力することができる。また、磁気センサ装置200は、遅延回路510にフィルタ等を含めることで、第2の組の比較部320の比較動作を精度よく実行させることができる。   Therefore, similarly to the magnetic sensor device 200 of the sixth modification, the magnetic sensor device 200 of the seventh modification can adjust the timing of the comparison operation with the threshold values in the detection unit 120 and the detection unit 130. In addition, since the magnetic sensor device 200 according to the seventh modification includes the delay circuit 510 in the detection unit 130, the first output from the amplification unit 110 can be output without causing a delay. Further, the magnetic sensor device 200 can accurately execute the comparison operation of the second set of comparison units 320 by including a filter or the like in the delay circuit 510.

図14は、本実施形態に係る磁気センサ装置200の第8変形例を示す。第8変形例の磁気センサ装置200において、図11および図12に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第8変形例の磁気センサ装置200は、遅延回路510および第2故障判定部380を備える例を示す。   FIG. 14 shows an eighth modification of the magnetic sensor device 200 according to this embodiment. In the magnetic sensor device 200 of the eighth modification, the same reference numerals are given to the substantially same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIGS. 11 and 12, and the description thereof is omitted. The magnetic sensor device 200 of the eighth modified example shows an example including a delay circuit 510 and a second failure determination unit 380.

遅延回路510は、図12で説明したように、検知部120および検知部130における閾値との比較動作のタイミングを調節する。遅延回路510は、図14に示す例のように、増幅部110に設けられてよく、これに代えて、検知部130に設けられてもよい。検知部130に遅延回路510を設ける場合は、比較部320の前に遅延回路510を設けてもよい。   As described with reference to FIG. 12, the delay circuit 510 adjusts the timing of the comparison operation with the threshold values in the detection unit 120 and the detection unit 130. The delay circuit 510 may be provided in the amplification unit 110 as in the example illustrated in FIG. 14, or may be provided in the detection unit 130 instead. When the delay circuit 510 is provided in the detection unit 130, the delay circuit 510 may be provided before the comparison unit 320.

第2故障判定部380は、図11で説明したように、検知部120の第2出力および検知部130の第3出力を比較した結果に応じて、故障を判定する。第2故障判定部380は、第2出力および第3出力のハイ電位またはロー電位が出力されるタイミングを検出することで、磁気センサ装置200の故障を簡便に判定することができる。   As described with reference to FIG. 11, the second failure determination unit 380 determines a failure according to a result of comparing the second output of the detection unit 120 and the third output of the detection unit 130. The second failure determination unit 380 can easily determine the failure of the magnetic sensor device 200 by detecting the timing at which the high potential or the low potential of the second output and the third output is output.

図15は、本実施形態に係る磁気センサ装置200の第9変形例を示す。第9変形例の磁気センサ装置200において、図11および図12に示された本実施形態に係る磁気センサ装置200の動作と略同一のものには同一の符号を付け、説明を省略する。第9変形例の磁気センサ装置200は、遅延回路510および第2故障判定部380を備える例を示す。   FIG. 15 shows a ninth modification of the magnetic sensor device 200 according to this embodiment. In the magnetic sensor device 200 of the ninth modified example, the same reference numerals are given to substantially the same operations as those of the magnetic sensor device 200 according to the present embodiment shown in FIGS. 11 and 12, and the description thereof is omitted. The magnetic sensor device 200 of the ninth modified example shows an example including a delay circuit 510 and a second failure determination unit 380.

また、第9変形例の磁気センサ装置200は、第3増幅回路270に代えて、AD変換部272を備える。AD変換部272は、遅延回路510の出力をデジタル信号に変換して出力する。   Further, the magnetic sensor device 200 of the ninth modification includes an AD conversion unit 272 instead of the third amplifier circuit 270. The AD conversion unit 272 converts the output of the delay circuit 510 into a digital signal and outputs it.

遅延回路510は、図12で説明したように、検知部120および検知部130における閾値との比較動作のタイミングを調節する。遅延回路510は、図14に示す例のように、増幅部110に設けられてよく、これに代えて、検知部130に設けられてもよい。検知部130に遅延回路510を設ける場合は、比較部320の前に遅延回路510を設けてもよい。   As described with reference to FIG. 12, the delay circuit 510 adjusts the timing of the comparison operation with the threshold values in the detection unit 120 and the detection unit 130. The delay circuit 510 may be provided in the amplification unit 110 as in the example illustrated in FIG. 14, or may be provided in the detection unit 130 instead. When the delay circuit 510 is provided in the detection unit 130, the delay circuit 510 may be provided before the comparison unit 320.

第2故障判定部380は、図11で説明したように、検知部120の第2出力および検知部130の第3出力を比較した結果に応じて、故障を判定する。第2故障判定部380は、第2出力および第3出力のハイ電位またはロー電位が出力されるタイミングを検出することで、磁気センサ装置200の故障を簡便に判定することができる。   As described with reference to FIG. 11, the second failure determination unit 380 determines a failure according to a result of comparing the second output of the detection unit 120 and the third output of the detection unit 130. The second failure determination unit 380 can easily determine the failure of the magnetic sensor device 200 by detecting the timing at which the high potential or the low potential of the second output and the third output is output.

また、設定部160は、検知部120および検知部130の閾値生成部310にそれぞれ設定する第1閾値および第2閾値にそれぞれ対応するデジタル値を、第2故障判定部380に供給してよい。第2故障判定部380は、当該閾値のデジタル値と、AD変換部272の出力とを比較する。そして、第2故障判定部380は、自己の当該比較結果と、検知部120および検知部130の比較部320の比較結果とが対応しなかった場合、磁気センサ装置200が故障したと判定する。第2故障判定部380は、故障を判定した場合、判定結果を外部に通知してよい。   The setting unit 160 may supply the second failure determination unit 380 with digital values corresponding to the first threshold value and the second threshold value set in the threshold value generation unit 310 of the detection unit 120 and the detection unit 130, respectively. The second failure determination unit 380 compares the digital value of the threshold value with the output of the AD conversion unit 272. And the 2nd failure determination part 380 determines with the magnetic sensor apparatus 200 having failed, when the said comparison result of self and the comparison result of the comparison part 320 of the detection part 120 and the detection part 130 do not respond | correspond. When determining the failure, the second failure determination unit 380 may notify the determination result to the outside.

なお、AD変換部272の出力タイミングと、検知部120および検知部130の比較部320または遅延部330の比較結果の出力タイミングが異なる場合、図10で説明したように、第2故障判定部380は、タイミング差に対応する時間以上の時間が経過するまで、故障の判定を継続してよい。以上のように、第9変形例の磁気センサ装置200は、装置内部の故障を判定することができる。   When the output timing of the AD conversion unit 272 is different from the output timing of the comparison result of the comparison unit 320 or the delay unit 330 of the detection unit 120 and the detection unit 130, as described with reference to FIG. 10, the second failure determination unit 380 May continue to determine the failure until a time equal to or greater than the time corresponding to the timing difference has elapsed. As described above, the magnetic sensor device 200 of the ninth modified example can determine a failure inside the device.

以上の本実施形態に係る磁気センサ装置200において、比較部320は、増幅部110の出力と閾値とを比較する例を説明した。ここで、比較部320は、磁気センサ素子210の出力異常を検知できればよく、増幅部110内部の各部のうちいずれかの出力と閾値とを比較してよい。また、比較部320は、磁気センサ素子210の出力と閾値とを比較してもよい。   In the magnetic sensor device 200 according to the embodiment described above, the comparison unit 320 has been described as an example of comparing the output of the amplification unit 110 with the threshold value. Here, the comparison unit 320 only needs to be able to detect an output abnormality of the magnetic sensor element 210, and may compare any output of each unit in the amplification unit 110 with a threshold value. The comparison unit 320 may compare the output of the magnetic sensor element 210 with a threshold value.

図16は、本実施形態に係る磁気センサ装置200を実装したパッケージ50と、当該パッケージ50を備える電流センサ装置300の構成例を示す。本実施形態の電流センサ装置300に接続された制御装置10は、図1に示された本実施形態に係るセンサ装置100に接続された制御装置10の動作と略同一なので同一の符号を付け、説明を省略する。   FIG. 16 shows a configuration example of a package 50 in which the magnetic sensor device 200 according to this embodiment is mounted and a current sensor device 300 including the package 50. The control device 10 connected to the current sensor device 300 of the present embodiment is substantially the same as the operation of the control device 10 connected to the sensor device 100 according to the present embodiment shown in FIG. Description is omitted.

パッケージ50は、磁気センサ装置200が内部に実装される。パッケージ50は、増幅部の出力信号を出力する第1出力端子52および遅延部330の出力信号を出力する第2出力端子54を有する。また、パッケージ50は、複数の検知部120を備える磁気センサ装置200を実装する場合、複数の検知部120に対応して複数の第2出力端子54を有してよい。即ち、パッケージ50は、一または複数の第2出力端子54を有する。当該一または複数の第2出力端子54は、複数の遅延部330のうち対応する遅延部330の出力信号を出力する。また、パッケージ50は、入出力部150に対応する入出力端子56を有してよい。また、パッケージ50は、電源電圧VDDに接続される電源端子と、基準電位VSSに接続される基準電位端子とを更に有してよい。 The package 50 has the magnetic sensor device 200 mounted therein. The package 50 includes a first output terminal 52 that outputs an output signal of the amplification unit and a second output terminal 54 that outputs an output signal of the delay unit 330. Further, the package 50 may have a plurality of second output terminals 54 corresponding to the plurality of detection units 120 when the magnetic sensor device 200 including the plurality of detection units 120 is mounted. That is, the package 50 has one or a plurality of second output terminals 54. The one or more second output terminals 54 output an output signal of the corresponding delay unit 330 among the plurality of delay units 330. The package 50 may have an input / output terminal 56 corresponding to the input / output unit 150. Also, the package 50 includes a power supply and a power supply terminal voltage is connected to V DD, may have a reference potential terminal connected to the reference potential V SS further.

これにより、制御装置10は、パッケージ化された磁気センサ装置200の設定を指示する信号を供給し、当該指示に応じて磁気センサ装置200が出力する第1出力および第2出力等を受け取ることができる。また、磁気センサ装置200は、パッケージ50に実装されることにより、小型および軽量化した磁気センサとして、外部の装置等に容易に搭載することができる。   Thereby, the control device 10 supplies a signal instructing setting of the packaged magnetic sensor device 200, and receives a first output, a second output, and the like output from the magnetic sensor device 200 in response to the instruction. it can. Further, the magnetic sensor device 200 can be easily mounted on an external device or the like as a magnetic sensor that is reduced in size and weight by being mounted on the package 50.

また、パッケージ50は、計測対象の電流を流す電流路に接続されてよい。図16は、電流路40および電流路42の間にパッケージ50が接続される例を示す。即ち、磁気センサ装置200は、電流路40および電流路42に対応して配置され、計測対象の電流に応じて生じる磁場を検知する。これによって、電流路40、電流路42、および磁気センサ装置200は、電流センサ装置300を構成することができる。   Further, the package 50 may be connected to a current path through which a current to be measured flows. FIG. 16 shows an example in which the package 50 is connected between the current path 40 and the current path 42. That is, the magnetic sensor device 200 is arranged corresponding to the current path 40 and the current path 42 and detects a magnetic field generated according to the current to be measured. As a result, the current path 40, the current path 42, and the magnetic sensor device 200 can constitute a current sensor device 300.

したがって、制御装置10がモーター等を駆動する場合、駆動電流をモーターに供給する電流路に当該電流センサ装置300を設けることにより、電流センサ装置300は、駆動電流の変動を検出することができる。また、電流センサ装置300は、駆動電流が過大または過小になったことを制御装置10に通知することができる。制御装置10は、駆動電流の変動、過大電流、および過小電流の検出結果に基づき、モーター駆動を安定に制御することができる。   Therefore, when the control device 10 drives a motor or the like, the current sensor device 300 can detect fluctuations in the drive current by providing the current sensor device 300 in the current path for supplying the drive current to the motor. In addition, the current sensor device 300 can notify the control device 10 that the drive current has become excessive or excessive. The control device 10 can stably control the motor drive based on the detection result of the fluctuation of the drive current, the excessive current, and the excessive current.

なお、以上の実施の形態の説明において、グリッチフィルタ332と可変遅延回路334を分けて説明したが、グリッチフィルタ332の機能を可変遅延回路334が備えていてもよい。この場合も、外部からの指示に応じて、可変遅延回路334が除去するグリッチの除去までの判定数、または除去までの時間を設定してよい。   In the above description of the embodiment, the glitch filter 332 and the variable delay circuit 334 have been described separately. However, the variable delay circuit 334 may have the function of the glitch filter 332. Also in this case, according to an instruction from the outside, the number of determinations until the glitch removed by the variable delay circuit 334 or the time until removal may be set.

また、以上の実施の形態の説明において、比較部320、グリッチフィルタ332と可変遅延回路334は第2クロックに応じて動作することを説明したが、これに代えて、グリッチフィルタ332および可変遅延回路334へ、第2クロックと異なる第3クロックを供給して動作させてもよい。第3クロックは、第2クロックと位相が異なるクロックでよい。これに代えて、またはこれに加えて、第3クロックは、第2クロックの2以上の整数倍の周波数を有してよい。これにより遅延部330の遅延をより詳細に調整できる。   In the above description of the embodiment, it has been described that the comparison unit 320, the glitch filter 332, and the variable delay circuit 334 operate according to the second clock, but instead, the glitch filter 332 and the variable delay circuit are operated. A third clock different from the second clock may be supplied to 334 for operation. The third clock may be a clock having a phase different from that of the second clock. Alternatively or additionally, the third clock may have a frequency that is an integer multiple of two or more of the second clock. Thereby, the delay of the delay unit 330 can be adjusted in more detail.

例えば、第2クロックが1MHzであり、第3クロックが10MHzの場合、比較部の判定は1μs間隔で行われ、遅延部330による遅延は100nsの分解能で調整できる。また、比較部320は、第2クロックと関係なく常時動作し、遅延部330が第2クロックで動作する形態でもよい。この場合、比較部320は、比較動作を常に実行することになる。この場合、比較部320は、スパイク状の雑音で判定結果を出力するが、雑音時間分をグリッチフィルタ332が除去することにより、スパイク状の雑音を低減させることができる。また、この場合、第2クロックは第1クロックと位相が異なっていなくてもよい。   For example, when the second clock is 1 MHz and the third clock is 10 MHz, the determination by the comparison unit is performed at 1 μs intervals, and the delay by the delay unit 330 can be adjusted with a resolution of 100 ns. Further, the comparison unit 320 may always operate regardless of the second clock, and the delay unit 330 may operate with the second clock. In this case, the comparison unit 320 always performs the comparison operation. In this case, the comparison unit 320 outputs the determination result with spike-like noise, but the spike-like noise can be reduced by the glitch filter 332 removing the noise time. In this case, the second clock may not have a phase different from that of the first clock.

また、以上の実施の形態の第6から第9変形例(図12、図13、図14、図15)において、遅延回路510は、増幅部110、または、検知部130に設けられる例を説明したが、それらに限らず、検知部120と検知部130の比較部320の前に遅延回路510をそれぞれ設けてもよい。これにより、磁気センサ装置200は、遅延回路510にフィルタ等を含めることで、第1および第2の組の比較部320の比較動作を精度よく実行させることができる。   Further, in the sixth to ninth modifications (FIGS. 12, 13, 14, and 15) of the above embodiment, an example in which the delay circuit 510 is provided in the amplification unit 110 or the detection unit 130 will be described. However, the present invention is not limited thereto, and the delay circuit 510 may be provided in front of the comparison unit 320 of the detection unit 120 and the detection unit 130, respectively. Thereby, the magnetic sensor device 200 can execute the comparison operation of the first and second sets of comparison units 320 with high accuracy by including a filter or the like in the delay circuit 510.

また、検知部120と検知部130の比較部320の前に遅延回路510をそれぞれ設ける場合には、遅延部330を設けなくてもよい。この場合においても、例えば遅延回路の遅延量をそれぞれ異なる値とすることにより、制御装置10の細やかな制御を実現できる。   When the delay circuit 510 is provided in front of the detection unit 120 and the comparison unit 320 of the detection unit 130, the delay unit 330 may not be provided. Even in this case, fine control of the control device 10 can be realized by setting the delay amounts of the delay circuits to different values, for example.

また、以上の実施の形態の第2から第5、第8、および第9変形例(図7、図8、図10、図11、図14、図15)において、磁気センサ装置200は、通知信号を入出力部150から外部に出力してもよい。また、磁気センサ装置200は、通知信号の出力値を第1出力の定格出力範囲外で外部に供給してもよい。例えば、第2変形例において、定格出力電圧が4.5V、0.5Vの場合に、4.9V、0.1V等で外部に供給してよい。また、第3から第5、および第9変形例において、定格出力範囲のデジタル値以外のデジタル値を外部に供給してよい。これにより、磁気センサ装置200は、外部との通信において、通知信号を他の信号に重畳させることができ、信号線を増やさずに通知信号を送信することができる。   In the second to fifth, eighth, and ninth modified examples (FIGS. 7, 8, 10, 11, 14, and 15) of the above embodiment, the magnetic sensor device 200 is notified. A signal may be output from the input / output unit 150 to the outside. Further, the magnetic sensor device 200 may supply the output value of the notification signal to the outside outside the rated output range of the first output. For example, in the second modified example, when the rated output voltage is 4.5V or 0.5V, it may be supplied to the outside at 4.9V, 0.1V or the like. In the third to fifth and ninth modifications, a digital value other than the digital value in the rated output range may be supplied to the outside. Thereby, the magnetic sensor device 200 can superimpose the notification signal on other signals in communication with the outside, and can transmit the notification signal without increasing the number of signal lines.

また、以上の実施の形態の第2から第5、第8、および第9変形例(図7、図8、図10、図11、図14、および図15)で説明したように、磁気センサ素子210の出力の異常状態の診断、装置の故障診断は、車載等の安全要求の厳しい用途に有用である。特にISO26262のような機能安全規格に準拠するシステムの構築に有用であり、実施の形態の説明のとおり、車載等の用途に適した磁気センサ装置200を提供することができる。   Further, as described in the second to fifth, eighth, and ninth modifications (FIGS. 7, 8, 10, 11, 14, and 15) of the above embodiment, the magnetic sensor The diagnosis of the abnormal state of the output of the element 210 and the failure diagnosis of the device are useful for applications with severe safety requirements such as in-vehicle. In particular, it is useful for the construction of a system that complies with a functional safety standard such as ISO 26262, and as described in the embodiment, it is possible to provide a magnetic sensor device 200 suitable for an on-vehicle use or the like.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。本願によれば、以下の構成もまた開示される。
(項目1)
磁気センサ素子と、
前記磁気センサ素子の出力を増幅して出力する増幅部と、
前記磁気センサ素子の出力または前記増幅部の出力を閾値と比較する比較部と、
前記比較部が出力する比較結果を遅延して出力する遅延部と、
を備える磁気センサ装置。
(項目2)
前記遅延部は、可変遅延回路を有し、
外部からの指示に応じて前記可変遅延回路の遅延量を設定する設定部を更に備える、
項目1に記載の磁気センサ装置。
(項目3)
前記遅延部は、前記比較部が出力する前記比較結果のグリッチを除去するグリッチフィルタを更に有し、
前記可変遅延回路は、前記グリッチフィルタを通過した前記比較結果を遅延して出力する、
項目2に記載の磁気センサ装置。
(項目4)
前記磁気センサ素子は、第1端子対および第2端子対を有するホール素子であり、
前記増幅部は、前記第1端子対および前記第2端子対の間で駆動電流を流す端子対および前記磁気センサ素子の出力をセンスする端子対を第1クロックに応じて切り換える切換部を有する、
項目1から3のいずれか一項に記載の磁気センサ装置。
(項目5)
前記第1クロックの整数倍の周期を有し、前記第1クロックのタイミングに対して予め定められた位相差をもつ第2クロック信号を生成するクロック生成部を更に備える、
項目4に記載の磁気センサ装置。
(項目6)
前記比較部は、前記第2クロックに応じて前記磁気センサ素子の出力または前記増幅部の出力を前記閾値と比較する項目5に記載の磁気センサ装置。
(項目7)
前記遅延部は、前記第2クロックに応じて前記比較結果を遅延させる項目5または6に記載の磁気センサ装置。
(項目8)
前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果を積算する積算部と、
前記積算部の積算結果が基準範囲外となったことを外部に通知する積算通知部と、
を更に備える項目1から7のいずれか一項に記載の磁気センサ装置。
(項目9)
前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果が予め定められた論理値であることに応じて、増幅された前記磁気センサ素子の出力を積分する積分部と、
前記積分部の積分結果が基準範囲外となったことを外部に通知する積分通知部と、
を更に備える項目1から7のいずれか一項に記載の磁気センサ装置。
(項目10)
前記増幅部は、前記磁気センサ素子の出力を増幅してデジタル信号に変換して出力し、
前記デジタル信号が、前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果の論理値に対応する値でないことに応じて故障を判定する第1故障判定部を更に備える、
項目1から9のいずれか一項に記載の磁気センサ装置。
(項目11)
前記比較部および前記遅延部の組を複数備える項目1から10のいずれか一項に記載の磁気センサ装置。
(項目12)
複数の前記比較部および前記遅延部の組のうち、第1の組の前記比較部は、前記磁気センサ素子の出力を第1閾値と比較し、
複数の前記比較部および前記遅延部の組のうち、第2の組の前記比較部は、前記磁気センサ素子の出力を前記第1閾値とは異なる第2閾値と比較する、
項目11に記載の磁気センサ装置。
(項目13)
前記第1閾値は、前記磁気センサ素子の予め定められた第1出力範囲を示す第1上方閾値および第1下方閾値を有し、
前記第2閾値は、前記磁気センサ素子の予め定められた第2出力範囲を示し、前記第1上方閾値よりも小さい第2上方閾値と、前記第1下方閾値よりも大きい2下方閾値とを有する、
項目12に記載の磁気センサ装置。
(項目14)
前記第1の組の前記遅延部は、前記第2の組の前記遅延部とは異なる遅延量を有する項目12または13に記載の磁気センサ装置。
(項目15)
前記第1の組の前記遅延部は、前記第2の組の前記遅延部よりも小さい遅延量を有する項目14に記載の磁気センサ装置。
(項目16)
前記磁気センサ素子の出力を遅延させる遅延回路を更に備え、
前記第2の組の前記比較部は、前記遅延回路の出力と前記第2閾値とを比較する、
項目12から15のいずれか一項に記載の磁気センサ装置。
(項目17)
前記遅延回路は、雑音を低減させるフィルタを有する項目16に記載の磁気センサ装置。
(項目18)
前記比較部および前記遅延部の前記第1の組における前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果と、前記比較部および前記遅延部の前記第2の組における前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果とを比較した結果に応じて故障を判定する第2故障判定部を更に備える、
項目12から17のいずれか一項に記載の磁気センサ装置。
(項目19)
当該磁気センサ装置は、前記増幅部の出力信号を出力する第1出力端子および前記遅延部の出力信号を出力する第2出力端子を有するパッケージに実装される項目1から18のいずれか一項に記載の磁気センサ装置。
(項目20)
磁気センサ素子と、
前記磁気センサ素子の出力を増幅して出力する増幅部と、
前記磁気センサ素子の出力を閾値と比較する比較部と、
前記比較部が出力する比較結果が予め定められた論理値であることに応じて、増幅された前記磁気センサ素子の出力を積分する積分部と、
前記積分部の積分結果が基準範囲外となったことを外部に通知する積分通知部と、
を備える磁気センサ装置。
(項目21)
計測対象の電流を流す電流路と、
前記電流路に対応して配置され、計測対象の電流に応じて生じる磁場を検知する項目1から20のいずれか一項に記載の磁気センサ装置と、
を備える電流センサ装置。
The order of execution of each process such as operations, procedures, steps, and stages in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that the output can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the description, and the drawings, even if it is described using “first”, “next”, etc. for convenience, it means that it is essential to carry out in this order. It is not a thing. According to the present application, the following configurations are also disclosed.
(Item 1)
A magnetic sensor element;
An amplifying unit for amplifying and outputting the output of the magnetic sensor element;
A comparator that compares the output of the magnetic sensor element or the output of the amplifier with a threshold;
A delay unit that delays and outputs the comparison result output by the comparison unit;
A magnetic sensor device comprising:
(Item 2)
The delay unit includes a variable delay circuit,
A setting unit configured to set a delay amount of the variable delay circuit according to an instruction from the outside;
Item 2. The magnetic sensor device according to Item 1.
(Item 3)
The delay unit further includes a glitch filter that removes a glitch of the comparison result output from the comparison unit,
The variable delay circuit delays and outputs the comparison result that has passed through the glitch filter.
Item 3. The magnetic sensor device according to Item 2.
(Item 4)
The magnetic sensor element is a Hall element having a first terminal pair and a second terminal pair,
The amplifying unit includes a switching unit that switches a terminal pair for passing a driving current between the first terminal pair and the second terminal pair and a terminal pair for sensing the output of the magnetic sensor element according to a first clock.
Item 4. The magnetic sensor device according to any one of Items 1 to 3.
(Item 5)
A clock generation unit that generates a second clock signal having a period that is an integral multiple of the first clock and having a predetermined phase difference with respect to the timing of the first clock;
Item 5. The magnetic sensor device according to Item 4.
(Item 6)
6. The magnetic sensor device according to item 5, wherein the comparison unit compares the output of the magnetic sensor element or the output of the amplification unit with the threshold value according to the second clock.
(Item 7)
The magnetic sensor device according to item 5 or 6, wherein the delay unit delays the comparison result according to the second clock.
(Item 8)
An integration unit for integrating the comparison result output by the comparison unit or the delayed comparison result output by the delay unit;
An integration notification unit that notifies the outside that the integration result of the integration unit is out of the reference range;
The magnetic sensor device according to any one of items 1 to 7, further comprising:
(Item 9)
An integration unit that integrates the amplified output of the magnetic sensor element in response to the comparison result output from the comparison unit or the delayed comparison result output from the delay unit being a predetermined logical value;
An integration notification unit for notifying the outside that the integration result of the integration unit is outside the reference range;
The magnetic sensor device according to any one of items 1 to 7, further comprising:
(Item 10)
The amplifying unit amplifies the output of the magnetic sensor element, converts it into a digital signal, and outputs it,
A first failure determination unit that determines a failure in response to the digital signal not being a value corresponding to a comparison result output from the comparison unit or a logical value of a delayed comparison result output from the delay unit;
Item 10. The magnetic sensor device according to any one of Items 1 to 9.
(Item 11)
The magnetic sensor device according to any one of items 1 to 10, comprising a plurality of sets of the comparison unit and the delay unit.
(Item 12)
Of the plurality of sets of the comparison unit and the delay unit, the comparison unit of the first set compares the output of the magnetic sensor element with a first threshold value,
Of the plurality of sets of the comparison unit and the delay unit, the comparison unit of the second set compares the output of the magnetic sensor element with a second threshold value different from the first threshold value.
Item 12. The magnetic sensor device according to Item 11.
(Item 13)
The first threshold value has a first upper threshold value and a first lower threshold value indicating a predetermined first output range of the magnetic sensor element,
The second threshold indicates a predetermined second output range of the magnetic sensor element, and has a second upper threshold smaller than the first upper threshold and two lower thresholds larger than the first lower threshold. ,
Item 13. The magnetic sensor device according to Item 12.
(Item 14)
14. The magnetic sensor device according to item 12 or 13, wherein the delay unit of the first set has a delay amount different from that of the delay unit of the second set.
(Item 15)
15. The magnetic sensor device according to item 14, wherein the delay unit of the first group has a smaller delay amount than the delay unit of the second group.
(Item 16)
A delay circuit for delaying the output of the magnetic sensor element;
The comparison unit of the second set compares the output of the delay circuit and the second threshold;
Item 16. The magnetic sensor device according to any one of Items 12 to 15.
(Item 17)
Item 17. The magnetic sensor device according to Item 16, wherein the delay circuit includes a filter that reduces noise.
(Item 18)
The comparison result output from the comparison unit in the first set of the comparison unit and the delay unit or the delayed comparison result output from the delay unit, and the second set of the comparison unit and the delay unit in the second set A second failure determination unit that determines a failure according to a comparison result output from the comparison unit or a delayed comparison result output from the delay unit;
Item 18. The magnetic sensor device according to any one of Items 12 to 17.
(Item 19)
The magnetic sensor device according to any one of items 1 to 18, wherein the magnetic sensor device is mounted on a package having a first output terminal that outputs an output signal of the amplification unit and a second output terminal that outputs an output signal of the delay unit. The magnetic sensor device described.
(Item 20)
A magnetic sensor element;
An amplifying unit for amplifying and outputting the output of the magnetic sensor element;
A comparator for comparing the output of the magnetic sensor element with a threshold;
An integration unit for integrating the amplified output of the magnetic sensor element in response to the comparison result output by the comparison unit being a predetermined logical value;
An integration notification unit for notifying the outside that the integration result of the integration unit is outside the reference range;
A magnetic sensor device comprising:
(Item 21)
A current path through which the current to be measured flows,
The magnetic sensor device according to any one of items 1 to 20, wherein the magnetic sensor device is disposed corresponding to the current path and detects a magnetic field generated according to a current to be measured.
A current sensor device comprising:

10 制御装置、20 CPU、30 過電流処理回路、40 電流路、42 電流路、50 パッケージ、52 第1出力端子、54 第2出力端子、56 入出力端子、100 センサ装置、110 増幅部、120 検知部、130 検知部、150 入出力部、160 設定部、162 記憶部、170 クロック生成部、200 磁気センサ装置、210 磁気センサ素子、212 端子、214 端子、216 端子、218 端子、230 切換部、240 第1増幅回路、250 復調部、260 第2増幅回路、270 第3増幅回路、272 AD変換部、300 電流センサ装置、310 閾値生成部、320 比較部、322 第1比較回路、324 第2比較回路、326 論理回路、330 遅延部、332 グリッチフィルタ、334 可変遅延回路、350 積算部、352 積分部、360 積算通知部、362 積分通知部、370 第1故障判定部、380 第2故障判定部、410 カウント部、420 乗算部、430 演算部、440 比較部、510 遅延回路 DESCRIPTION OF SYMBOLS 10 Control apparatus, 20 CPU, 30 Overcurrent processing circuit, 40 Current path, 42 Current path, 50 Package, 52 1st output terminal, 54 2nd output terminal, 56 Input / output terminal, 100 Sensor apparatus, 110 Amplification part, 120 Detection unit, 130 detection unit, 150 input / output unit, 160 setting unit, 162 storage unit, 170 clock generation unit, 200 magnetic sensor device, 210 magnetic sensor element, 212 terminal, 214 terminal, 216 terminal, 218 terminal, 230 switching unit , 240 First amplifier circuit, 250 Demodulator, 260 Second amplifier circuit, 270 Third amplifier circuit, 272 AD converter, 300 Current sensor device, 310 Threshold generator, 320 Comparator, 322 First comparator, 324 2 comparison circuit, 326 logic circuit, 330 delay unit, 332 glitch filter, 334 Variable delay circuit, 350 integration unit, 352 integration unit, 360 integration notification unit, 362 integration notification unit, 370 first failure determination unit, 380 second failure determination unit, 410 count unit, 420 multiplication unit, 430 calculation unit, 440 comparison Part, 510 delay circuit

Claims (20)

磁気センサ素子と、
前記磁気センサ素子の出力を増幅して出力する増幅部と、
前記磁気センサ素子の出力または前記増幅部の出力を閾値と比較する複数の比較部と、
前記複数の比較部のうち対応する比較部が出力する比較結果を遅延してそれぞれ出力する複数の遅延部と、
を備える磁気センサ装置。
A magnetic sensor element;
An amplifying unit for amplifying and outputting the output of the magnetic sensor element;
A plurality of comparison units for comparing the output of the magnetic sensor element or the output of the amplification unit with a threshold;
A plurality of delay units for delaying and outputting the comparison results output by the corresponding comparison units among the plurality of comparison units;
A magnetic sensor device comprising:
前記複数の遅延部は、可変遅延回路をそれぞれ有し、
外部からの指示に応じて前記可変遅延回路の遅延量のそれぞれを設定する設定部を更に備える
請求項1に記載の磁気センサ装置。
Each of the plurality of delay units includes a variable delay circuit;
The magnetic sensor device according to claim 1, further comprising a setting unit that sets each of the delay amounts of the variable delay circuit in accordance with an instruction from the outside.
前記複数の遅延部は、前記複数の比較部のうち対応する前記比較部が出力する前記比較結果のグリッチをそれぞれ除去する複数のグリッチフィルタを更に有し、
前記可変遅延回路のそれぞれは、前記複数のグリッチフィルタのうち対応するグリッチフィルタを通過した前記比較結果を遅延して出力する
請求項2に記載の磁気センサ装置。
The plurality of delay units further include a plurality of glitch filters that respectively remove glitches of the comparison results output from the corresponding comparison units among the plurality of comparison units,
The magnetic sensor device according to claim 2, wherein each of the variable delay circuits delays and outputs the comparison result that has passed through a corresponding glitch filter among the plurality of glitch filters.
前記磁気センサ素子は、第1端子対および第2端子対を有するホール素子であり、
前記増幅部は、前記第1端子対および前記第2端子対の間で駆動電流を流す端子対および前記磁気センサ素子の出力をセンスする端子対を第1クロックに応じて切り換える切換部を有する
請求項1から3のいずれか一項に記載の磁気センサ装置。
The magnetic sensor element is a Hall element having a first terminal pair and a second terminal pair,
The amplifying unit includes a switching unit that switches a terminal pair for passing a driving current between the first terminal pair and the second terminal pair and a terminal pair for sensing the output of the magnetic sensor element according to a first clock. Item 4. The magnetic sensor device according to any one of Items 1 to 3.
前記第1クロックの整数倍の周期を有し、前記第1クロックのタイミングに対して予め定められた位相差をもつ第2クロック信号を生成するクロック生成部を更に備える
請求項4に記載の磁気センサ装置。
5. The magnetism according to claim 4, further comprising a clock generation unit that generates a second clock signal having a cycle that is an integral multiple of the first clock and having a predetermined phase difference with respect to the timing of the first clock. Sensor device.
前記複数の比較部のそれぞれは、前記第2クロックに応じて前記磁気センサ素子の出力または前記増幅部の出力を前記閾値と比較する請求項5に記載の磁気センサ装置。   6. The magnetic sensor device according to claim 5, wherein each of the plurality of comparison units compares the output of the magnetic sensor element or the output of the amplification unit with the threshold in accordance with the second clock. 前記複数の遅延部のそれぞれは、前記第2クロックに応じて、対応する前記比較部が出力する前記比較結果を遅延させる請求項5または6に記載の磁気センサ装置。   7. The magnetic sensor device according to claim 5, wherein each of the plurality of delay units delays the comparison result output from the corresponding comparison unit according to the second clock. 前記複数の比較部のうち対応する比較部が出力する比較結果、または、前記複数の遅延部のうち対応する遅延部が出力する遅延された比較結果を積算する一または複数の積算部と、
前記一または複数の積算部に対応し、対応する積算部の積算結果が基準範囲外となったことを外部に通知する一または複数の積算通知部と、
を更に備える請求項1から7のいずれか一項に記載の磁気センサ装置。
A comparison result output by a corresponding comparison unit among the plurality of comparison units, or one or a plurality of integration units for integrating the delayed comparison results output by a corresponding delay unit among the plurality of delay units;
One or a plurality of integration notification units that correspond to the one or more integration units and notify the outside that the integration result of the corresponding integration unit is out of the reference range;
The magnetic sensor device according to any one of claims 1 to 7, further comprising:
前記複数の比較部のうち対応する比較部が出力する比較結果、または、前記複数の遅延部のうち対応する遅延部が出力する遅延された比較結果が、予め定められた論理値であることに応じて、増幅された前記磁気センサ素子の出力を積分する一または複数の積分部と、
前記一または複数の積分部に対応し、対応する積分部の積分結果が基準範囲外となったことを外部に通知する一または複数の積分通知部と、
を更に備える請求項1から7のいずれか一項に記載の磁気センサ装置。
The comparison result output by the corresponding comparison unit among the plurality of comparison units or the delayed comparison result output by the corresponding delay unit among the plurality of delay units is a predetermined logical value. In response, one or more integrators for integrating the amplified output of the magnetic sensor element;
One or a plurality of integration notification units corresponding to the one or more integration units, and notifying the outside that the integration result of the corresponding integration unit is out of the reference range;
The magnetic sensor device according to any one of claims 1 to 7, further comprising:
前記増幅部は、前記磁気センサ素子の出力を増幅してデジタル信号に変換して出力し、
前記デジタル信号が、前記複数の比較部のうち対応する比較部が出力する比較結果、または、前記複数の遅延部のうち対応する遅延部が出力する遅延された比較結果の論理値に対応する値でないことに応じて、故障を判定する一または複数の第1故障判定部を更に備える
請求項1から9のいずれか一項に記載の磁気センサ装置。
The amplifying unit amplifies the output of the magnetic sensor element, converts it into a digital signal, and outputs it,
The digital signal is a value corresponding to a comparison result output from a corresponding comparison unit among the plurality of comparison units or a logical value of a delayed comparison result output from a corresponding delay unit among the plurality of delay units. The magnetic sensor device according to any one of claims 1 to 9, further comprising one or a plurality of first failure determination units that determine whether or not a failure occurs.
前記複数の比較部および前記複数の遅延部における、対応する比較部および遅延部の組のうち、第1の組の前記比較部は、前記磁気センサ素子の出力または前記増幅部の出力を第1閾値と比較し、
前記対応する比較部および遅延部の組のうち、第2の組の前記比較部は、前記磁気センサ素子の出力または前記増幅部の出力を前記第1閾値とは異なる第2閾値と比較する
請求項1から10のいずれか一項に記載の磁気センサ装置。
Of the pair of corresponding comparison units and delay units in the plurality of comparison units and the plurality of delay units, the first set of comparison units outputs the output of the magnetic sensor element or the output of the amplification unit to the first. Compared to the threshold,
The second comparison unit of the pair of corresponding comparison units and delay units compares the output of the magnetic sensor element or the output of the amplification unit with a second threshold value different from the first threshold value. Item 11. The magnetic sensor device according to any one of Items 1 to 10.
前記第1閾値は、前記磁気センサ素子の予め定められた第1出力範囲を示す第1上方閾値および第1下方閾値を有し、
前記第2閾値は、前記磁気センサ素子の予め定められた第2出力範囲を示し、前記第1上方閾値よりも小さい第2上方閾値と、前記第1下方閾値よりも大きい2下方閾値とを有する
請求項11に記載の磁気センサ装置。
The first threshold value has a first upper threshold value and a first lower threshold value indicating a predetermined first output range of the magnetic sensor element,
The second threshold indicates a predetermined second output range of the magnetic sensor element, and has a second upper threshold smaller than the first upper threshold and two lower thresholds larger than the first lower threshold. The magnetic sensor device according to claim 11.
前記第1の組の前記遅延部は、前記第2の組の前記遅延部とは異なる遅延量を有する請求項11または12に記載の磁気センサ装置。   The magnetic sensor device according to claim 11 or 12, wherein the delay unit of the first group has a delay amount different from that of the delay unit of the second group. 前記第1の組の前記遅延部は、前記第2の組の前記遅延部よりも小さい遅延量を有する請求項13に記載の磁気センサ装置。   The magnetic sensor device according to claim 13, wherein the delay unit of the first group has a smaller delay amount than the delay unit of the second group. 前記増幅部は、前記磁気センサ素子の出力を遅延させる遅延回路を更に有し、
前記第2の組の前記比較部は、前記遅延回路の出力と前記第2閾値とを比較する
請求項11から14のいずれか一項に記載の磁気センサ装置。
The amplification unit further includes a delay circuit that delays the output of the magnetic sensor element,
The magnetic sensor device according to claim 11, wherein the comparison unit of the second set compares an output of the delay circuit and the second threshold value.
前記遅延回路は、雑音を低減させるフィルタを有する請求項15に記載の磁気センサ装置。   The magnetic sensor device according to claim 15, wherein the delay circuit includes a filter that reduces noise. 前記第1の組における前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果と、前記第2の組における前記比較部が出力する比較結果または前記遅延部が出力する遅延された比較結果とを、比較した結果に応じて故障を判定する第2故障判定部を更に備える
請求項11から16のいずれか一項に記載の磁気センサ装置。
The comparison result output from the comparison unit in the first set or the delayed comparison result output from the delay unit, and the comparison result output from the comparison unit in the second set or the delay output from the delay unit The magnetic sensor device according to any one of claims 11 to 16, further comprising a second failure determination unit that determines a failure according to a result of comparing the compared results.
当該磁気センサ装置は、前記増幅部の出力信号を出力する第1出力端子と、前記複数の遅延部のうち対応する遅延部の出力信号を出力する一または複数の第2出力端子を有するパッケージに実装される請求項1から17のいずれか一項に記載の磁気センサ装置。   The magnetic sensor device includes a first output terminal that outputs an output signal of the amplification unit, and one or a plurality of second output terminals that output an output signal of a corresponding delay unit among the plurality of delay units. The magnetic sensor device according to claim 1, which is mounted. 磁気センサ素子と、
前記磁気センサ素子の出力を増幅して出力する増幅部と、
前記磁気センサ素子の出力または前記増幅部の出力を閾値と比較する複数の比較部と、
前記複数の比較部のうち対応する比較部が出力する比較結果が予め定められた論理値であることに応じて、増幅された前記磁気センサ素子の出力を積分する一または複数の積分部と、
前記一または複数の積分部のうち対応する積分部の積分結果が基準範囲外となったことを外部に通知する一または複数の積分通知部と、
を備える磁気センサ装置。
A magnetic sensor element;
An amplifying unit for amplifying and outputting the output of the magnetic sensor element;
A plurality of comparison units for comparing the output of the magnetic sensor element or the output of the amplification unit with a threshold;
One or a plurality of integrating units that integrate the amplified output of the magnetic sensor element in response to a comparison result output from a corresponding comparing unit among the plurality of comparing units being a predetermined logical value;
One or more integration notification units for notifying the outside that the integration result of the corresponding integration unit out of the reference range among the one or more integration units,
A magnetic sensor device comprising:
計測対象の電流を流す電流路と、
前記電流路に対応して配置され、計測対象の電流に応じて生じる磁場を検知する請求項1から19のいずれか一項に記載の磁気センサ装置と、
を備える電流センサ装置。
A current path through which the current to be measured flows,
The magnetic sensor device according to any one of claims 1 to 19, wherein the magnetic sensor device is arranged corresponding to the current path and detects a magnetic field generated according to a current to be measured.
A current sensor device comprising:
JP2016237315A 2015-12-24 2016-12-07 Magnetic sensor device and current sensor device Active JP6591953B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/385,875 US10436856B2 (en) 2015-12-24 2016-12-21 Magnetic sensor apparatus and current sensor apparatus

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2015252138 2015-12-24
JP2015252138 2015-12-24
JP2016106367 2016-05-27
JP2016106367 2016-05-27

Publications (2)

Publication Number Publication Date
JP2017215307A true JP2017215307A (en) 2017-12-07
JP6591953B2 JP6591953B2 (en) 2019-10-16

Family

ID=60575537

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016237315A Active JP6591953B2 (en) 2015-12-24 2016-12-07 Magnetic sensor device and current sensor device

Country Status (1)

Country Link
JP (1) JP6591953B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019016791A (en) * 2017-07-06 2019-01-31 アルストム トランスポート テクノロジーズ PROTECTION CIRCUIT AGAINST SHORT CIRCUITS OF SWITCHING DEVICE FOR SiC OR GaN MOSFET TRANSISTOR, AND ASSOCIATED METHOD
JP2019176327A (en) * 2018-03-28 2019-10-10 ファナック株式会社 Electronic apparatus
JP2020020792A (en) * 2018-07-19 2020-02-06 ティディケイ−ミクロナス ゲー・エム・ベー・ハー Hall sensor and method for operating the same

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53147954A (en) * 1977-05-31 1978-12-23 Mitsubishi Electric Corp Power consumption controller
JPS5549775A (en) * 1978-10-05 1980-04-10 Docutronix Inc Magnetic signal detector
JPS596572A (en) * 1982-07-02 1984-01-13 Nec Corp Integrated magnetic sensor
JPH02120615A (en) * 1988-10-28 1990-05-08 Olympus Optical Co Ltd Displacement quantity detection circuit
JPH02154155A (en) * 1988-12-06 1990-06-13 Nissan Motor Co Ltd Speed detecting device
JPH05316785A (en) * 1992-05-08 1993-11-26 Hitachi Ltd Driving circuit for three-phase brushless motor
JPH08122420A (en) * 1994-10-19 1996-05-17 Omron Corp Solar battery detector, solar battery system and portable telephone communication method
US5619137A (en) * 1996-02-12 1997-04-08 Allegro Microsystems, Inc. Chopped low power magnetic-field detector with hysteresis memory
JPH10224997A (en) * 1997-02-04 1998-08-21 Seiko Instr Inc Charge/discharge control circuit
JPH10311873A (en) * 1997-04-28 1998-11-24 Allegro Microsyst Inc Object proximity detector and method for starting the same
JP2003043123A (en) * 2001-07-26 2003-02-13 Matsushita Electric Ind Co Ltd Magnetic field sensor
JP2003228916A (en) * 2002-01-29 2003-08-15 Matsushita Electric Ind Co Ltd Extraordinary waveform detecting circuit and information reproducing device
JP2007306725A (en) * 2006-05-12 2007-11-22 Toshiba Corp Dc-dc converter
JP2009229302A (en) * 2008-03-24 2009-10-08 Asahi Kasei Electronics Co Ltd Sensor circuit
JP2010088118A (en) * 2008-10-02 2010-04-15 Robert Bosch Gmbh Stage and method of receiving multi-stage signal modulated on supply voltage
JP2010182464A (en) * 2009-02-03 2010-08-19 Chugoku Electric Power Co Inc:The Apparatus for measuring state of switch
JP2011200109A (en) * 2010-03-19 2011-10-06 National Taiwan Univ Of Science & Technology Overcurrent relay
JP2012182689A (en) * 2011-03-02 2012-09-20 Sharp Corp Semiconductor integrated circuit

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53147954A (en) * 1977-05-31 1978-12-23 Mitsubishi Electric Corp Power consumption controller
JPS5549775A (en) * 1978-10-05 1980-04-10 Docutronix Inc Magnetic signal detector
JPS596572A (en) * 1982-07-02 1984-01-13 Nec Corp Integrated magnetic sensor
JPH02120615A (en) * 1988-10-28 1990-05-08 Olympus Optical Co Ltd Displacement quantity detection circuit
JPH02154155A (en) * 1988-12-06 1990-06-13 Nissan Motor Co Ltd Speed detecting device
JPH05316785A (en) * 1992-05-08 1993-11-26 Hitachi Ltd Driving circuit for three-phase brushless motor
JPH08122420A (en) * 1994-10-19 1996-05-17 Omron Corp Solar battery detector, solar battery system and portable telephone communication method
US5619137A (en) * 1996-02-12 1997-04-08 Allegro Microsystems, Inc. Chopped low power magnetic-field detector with hysteresis memory
JPH10224997A (en) * 1997-02-04 1998-08-21 Seiko Instr Inc Charge/discharge control circuit
JPH10311873A (en) * 1997-04-28 1998-11-24 Allegro Microsyst Inc Object proximity detector and method for starting the same
JP2003043123A (en) * 2001-07-26 2003-02-13 Matsushita Electric Ind Co Ltd Magnetic field sensor
JP2003228916A (en) * 2002-01-29 2003-08-15 Matsushita Electric Ind Co Ltd Extraordinary waveform detecting circuit and information reproducing device
JP2007306725A (en) * 2006-05-12 2007-11-22 Toshiba Corp Dc-dc converter
JP2009229302A (en) * 2008-03-24 2009-10-08 Asahi Kasei Electronics Co Ltd Sensor circuit
JP2010088118A (en) * 2008-10-02 2010-04-15 Robert Bosch Gmbh Stage and method of receiving multi-stage signal modulated on supply voltage
JP2010182464A (en) * 2009-02-03 2010-08-19 Chugoku Electric Power Co Inc:The Apparatus for measuring state of switch
JP2011200109A (en) * 2010-03-19 2011-10-06 National Taiwan Univ Of Science & Technology Overcurrent relay
JP2012182689A (en) * 2011-03-02 2012-09-20 Sharp Corp Semiconductor integrated circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019016791A (en) * 2017-07-06 2019-01-31 アルストム トランスポート テクノロジーズ PROTECTION CIRCUIT AGAINST SHORT CIRCUITS OF SWITCHING DEVICE FOR SiC OR GaN MOSFET TRANSISTOR, AND ASSOCIATED METHOD
JP7122893B2 (en) 2017-07-06 2022-08-22 アルストム トランスポート テクノロジーズ Short circuit protection circuit and related method for switching devices for SiC or GaN MOSFET transistors
JP2019176327A (en) * 2018-03-28 2019-10-10 ファナック株式会社 Electronic apparatus
JP2020020792A (en) * 2018-07-19 2020-02-06 ティディケイ−ミクロナス ゲー・エム・ベー・ハー Hall sensor and method for operating the same
JP7280135B2 (en) 2018-07-19 2023-05-23 ティディケイ-ミクロナス ゲー・エム・ベー・ハー Hall sensor and method of operating such sensor

Also Published As

Publication number Publication date
JP6591953B2 (en) 2019-10-16

Similar Documents

Publication Publication Date Title
US10436856B2 (en) Magnetic sensor apparatus and current sensor apparatus
US10725448B2 (en) Sensor power control and signal conditioning circuit for machinery monitoring system
JP6591953B2 (en) Magnetic sensor device and current sensor device
EP2848957B1 (en) Magnetism detection device and magnetism detection method
US7859421B2 (en) Circuit and method for detecting a voltage change
KR102105034B1 (en) Magnetic sensor circuit
JP2011127997A (en) Capacitance-type physical quantity detection device and capacitance-type physical quantity detection method
US10001503B2 (en) Rotation sensor
KR101704600B1 (en) Glitch removal device for hall-sensor
EP3144640B1 (en) Sensor arrangement and method for operation of a sensor
KR20120032805A (en) Schmitt triger circuit operated according to pulse width
JP6757752B2 (en) Magnetic sensor device, current sensor device, and system
US8773142B2 (en) Electronic part and method of detecting faults therein
JP5390468B2 (en) Angular velocity detector
CN113826017B (en) Circuit configuration and method for monitoring a signal in the form of an alternating voltage
US9899995B2 (en) Signal monitoring circuit and signal monitoring method using the same
JP2005233626A (en) Wheel speed detecting apparatus
US20210172765A1 (en) Sensor device and method
JP2014025740A (en) Hall electromotive force signal detector
JP5262904B2 (en) Clock skew automatic adjustment circuit
WO2008004141A2 (en) Circuit for detecting the duty cycle of clock signals
US10520311B2 (en) Gyro sensor apparatus
JP2022174796A (en) Rotation angle detection device and inverter control device
JP2009038433A (en) Ad conversion circuit
JP2020085765A (en) Abnormality detection device and power conversion device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190514

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190621

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190919

R150 Certificate of patent or registration of utility model

Ref document number: 6591953

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150