JP5638900B2 - Magnetic sensor device - Google Patents

Magnetic sensor device Download PDF

Info

Publication number
JP5638900B2
JP5638900B2 JP2010216808A JP2010216808A JP5638900B2 JP 5638900 B2 JP5638900 B2 JP 5638900B2 JP 2010216808 A JP2010216808 A JP 2010216808A JP 2010216808 A JP2010216808 A JP 2010216808A JP 5638900 B2 JP5638900 B2 JP 5638900B2
Authority
JP
Japan
Prior art keywords
signal
magnetic sensor
offset
output signal
difference
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.)
Expired - Fee Related
Application number
JP2010216808A
Other languages
Japanese (ja)
Other versions
JP2012073063A (en
Inventor
康生 高田
康生 高田
文浩 鈴木
文浩 鈴木
谷口 政弘
政弘 谷口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tokai Rika Co Ltd
Original Assignee
Tokai Rika 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 Tokai Rika Co Ltd filed Critical Tokai Rika Co Ltd
Priority to JP2010216808A priority Critical patent/JP5638900B2/en
Publication of JP2012073063A publication Critical patent/JP2012073063A/en
Application granted granted Critical
Publication of JP5638900B2 publication Critical patent/JP5638900B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Magnetic Variables (AREA)

Description

本発明は、磁気センサデバイスに関する。   The present invention relates to a magnetic sensor device.

従来の技術として、円筒状の磁石が固定された移動体と、磁石の周面に対向配置され、移動体の傾倒量を検知する第1及び第2のGMR(Giant Magneto Resistive effect)センサと、第1及び第2のGMRセンサのいずれの検知面とも平行でない位置に検知面が配置された第3のGMRセンサと、第1〜第3のGMRセンサによる検知値に基づいて少なくとも第1〜第3のGMRセンサのいずれか1つの故障を判定する判定回路とを備えた移動体位置検出装置が知られている(例えば、特許文献1参照。)。   As a conventional technique, a moving body to which a cylindrical magnet is fixed, first and second GMR (Giant Magneto Resistive effect) sensors that are arranged to face the peripheral surface of the magnet and detect the tilt amount of the moving body, A third GMR sensor having a detection surface arranged at a position not parallel to any of the detection surfaces of the first and second GMR sensors, and at least first to first based on detection values by the first to third GMR sensors. There is known a moving body position detection apparatus including a determination circuit that determines a failure of any one of the three GMR sensors (see, for example, Patent Document 1).

この第1〜第3のGMRセンサは、端子を基板に形成された穴に差し込んで半田付けされることにより、基板の表面から垂直方向に立てて設置される。   The first to third GMR sensors are installed in a vertical direction from the surface of the substrate by inserting terminals into holes formed in the substrate and soldering.

また、判定回路は、第1及び第2のGMRセンサによる検知値を加算する加算回路と、加算回路により加算された値に所定の係数を乗算した値と第3のGMRセンサによる検知値とを比較する比較回路とから構成される。   The determination circuit includes an addition circuit for adding the detection values obtained by the first and second GMR sensors, a value obtained by multiplying the value added by the addition circuit by a predetermined coefficient, and a detection value obtained by the third GMR sensor. And a comparison circuit for comparison.

移動体位置検出装置は、上記の乗算した値と第3のGMRセンサによる検知値が一致しない場合に少なくとも第1〜第3のGMRセンサのいずれか1つが故障していると判定する。   The moving body position detection device determines that at least one of the first to third GMR sensors has failed when the multiplied value does not match the detection value by the third GMR sensor.

しかし、従来の移動体位置検出装置は、第1〜第3のGMRセンサの正確な配置が難しく、検知値にばらつきが生じて上記の所定の係数を正確に設定することが困難となり、故障の検出精度に問題がある。   However, in the conventional mobile body position detection device, it is difficult to accurately arrange the first to third GMR sensors, the detection values vary, and it becomes difficult to accurately set the predetermined coefficient. There is a problem with detection accuracy.

特開2009−115645号公報JP 2009-115645 A

本発明の目的は、故障を高い精度で検出する磁気センサデバイスを提供することにある。   An object of the present invention is to provide a magnetic sensor device that detects a failure with high accuracy.

本発明の一態様は、磁界の変化に応じて第1のリニア出力信号を出力する第1の磁気センサと、前記磁界の変化に応じて、前記第1のリニア出力信号と略同一の出力となる第2及び第3のリニア出力信号を出力する第2及び第3の磁気センサと、前記第2のリニア出力信号とゼロではない第1のオフセット値との差分を算出して第1のオフセット信号を生成し、前記第3のリニア出力信号とゼロではない第2のオフセット値との差分を算出して第2のオフセット信号を生成するオフセット部と、前記第1のオフセット信号と前記第1のリニア出力信号との第1の差分を算出し、前記第1のリニア出力信号と前記第2のオフセット信号との第2の差分を算出する算出部と、算出された前記第1の差分が前記第1のオフセット値より大きくなるとき、前記第1及び第2の磁気センサの少なくとも1つが故障したと判定し、算出された前記第2の差分が前記第2のオフセット値より大きくなるとき、前記第1及び第3の磁気センサの少なくとも1つが故障したと判定する故障判定部と、を備えた磁気センサデバイスを提供する。 One embodiment of the present invention includes a first magnetic sensor that outputs a first linear output signal in response to a change in a magnetic field, and an output that is substantially the same as the first linear output signal in response to a change in the magnetic field. Calculating the difference between the second and third magnetic sensors that output the second and third linear output signals and the first linear output signal and a first offset value that is not zero. An offset unit that generates a signal and calculates a difference between the third linear output signal and a second offset value that is not zero to generate a second offset signal; the first offset signal; and the first offset signal Calculating a first difference between the first linear output signal and a second difference between the first linear output signal and the second offset signal, and calculating the first difference When it becomes larger than the first offset value When it is determined that at least one of the first and second magnetic sensors has failed and the calculated second difference is greater than the second offset value, the first and third magnetic sensors Provided is a magnetic sensor device including a failure determination unit that determines that at least one has failed.

本発明の他の一態様は、磁界の変化に応じて第1のリニア出力信号を出力する第1の磁気センサと、前記磁界の変化に応じて、前記第1のリニア出力信号と略同一の出力となる第2のリニア出力信号を出力する第2の磁気センサと、前記第2のリニア出力信号とゼロではない第1のオフセット値との差分を算出して第1のオフセット信号を生成し、前記第のリニア出力信号とゼロではない第2のオフセット値との差分を算出して第2のオフセット信号を生成するオフセット部と、前記第1のリニア出力信号が前記第1のオフセット信号より大きくなるとき、又は、前記第1のリニア出力信号が前記第2のオフセット信号より小さくなるとき、前記第1又は第2の磁気センサが故障したと判定する故障判定部と、を備えた磁気センサデバイスを提供する。 Another aspect of the present invention includes a first magnetic sensor that outputs a first linear output signal in response to a change in a magnetic field, and substantially the same as the first linear output signal in response to a change in the magnetic field. A difference between a second magnetic sensor that outputs a second linear output signal that is output and a first offset value that is not zero and the second linear output signal is calculated to generate a first offset signal the second linear output signal and the offset portion for generating a second offset signal by calculating a difference between the second offset value is not zero, the first linear output signal is the first offset signal A failure determination unit that determines that the first or second magnetic sensor has failed when the first linear output signal becomes smaller than the second offset signal, or when the first linear output signal becomes smaller than the second offset signal. Sensor device To provide.

本発明によれば、故障を高い精度で検出することができる。   According to the present invention, a failure can be detected with high accuracy.

図1(a)は、本発明の第1の実施の形態に係る第1の磁気センサICの回路図の一部であり、(b)は、第1の磁気センサICの入出力を示す概略図、(c)は、第2の磁気センサICの入出力を示す概略図、(d)は、シフト装置のシフトパターンを示す概略図である。FIG. 1A is a part of a circuit diagram of the first magnetic sensor IC according to the first embodiment of the invention, and FIG. 1B is a schematic diagram showing input / output of the first magnetic sensor IC. FIG. 4C is a schematic diagram showing input / output of the second magnetic sensor IC, and FIG. 4D is a schematic diagram showing a shift pattern of the shift device. 図2(a)は、本発明の第1の実施の形態に係るメイン磁気センサと第1及び第2のサブ磁気センサの出力電圧(V)と操作位置の関係を示すグラフであり、(b)は、シフト装置に関するブロック図である。FIG. 2A is a graph showing the relationship between the operation voltage and the output voltage (V) of the main magnetic sensor and the first and second sub magnetic sensors according to the first embodiment of the present invention. ) Is a block diagram relating to the shift device. 図3は、本発明の第1の実施の形態に係る第1の磁気センサICの動作に関するフローチャートである。FIG. 3 is a flowchart relating to the operation of the first magnetic sensor IC according to the first embodiment of the invention. 図4は、本発明の第2の実施の形態に係る磁気センサICの回路図である。FIG. 4 is a circuit diagram of a magnetic sensor IC according to the second embodiment of the present invention. 図5は、本発明の第2の実施の形態に係る磁気センサICの動作に関するフローチャートである。FIG. 5 is a flowchart relating to the operation of the magnetic sensor IC according to the second embodiment of the present invention.

[第1の実施の形態]
(第1の磁気センサICの構成)
図1(a)は、本発明の第1の実施の形態に係る第1の磁気センサIC(Integrated Circuit)のシフト信号とダイアグ信号に関する回路図であり、(b)は、第1の磁気センサICの入出力を示す概略図、(c)は、第2の磁気センサICの入出力を示す概略図、(d)は、シフト装置のシフトパターンを示す概略図である。
[First embodiment]
(Configuration of the first magnetic sensor IC)
FIG. 1A is a circuit diagram relating to a shift signal and a diagnosis signal of a first magnetic sensor IC (Integrated Circuit) according to the first embodiment of the present invention, and FIG. 1B is a first magnetic sensor. Schematic diagram showing input / output of the IC, (c) is a schematic diagram showing input / output of the second magnetic sensor IC, and (d) is a schematic diagram showing a shift pattern of the shift device.

本実施の形態における磁気センサデバイスとしての第1の磁気センサIC1は、例えば、車両の後述するシフト装置に搭載されるものとする。第1の磁気センサIC1は、例えば、シフト装置の後述するシフトレバーに設けられた磁石50の移動による磁界の変化に基づいてシフトレバーの操作位置を検出するものである。なお、第1の磁気センサIC1が搭載される装置は、シフト装置に限定されず、操作部の操作位置に応じた出力信号を出力する装置に広く利用されるものである。   The first magnetic sensor IC1 as the magnetic sensor device in the present embodiment is mounted on, for example, a shift device described later of the vehicle. The first magnetic sensor IC1 detects the operation position of the shift lever based on, for example, a change in the magnetic field due to the movement of a magnet 50 provided on a shift lever (described later) of the shift device. The device on which the first magnetic sensor IC1 is mounted is not limited to the shift device, and is widely used for devices that output an output signal corresponding to the operation position of the operation unit.

また、シフト装置は、第1の磁気センサIC1と同じ構成及び機能を有する第2の磁気センサIC3をさらに備えた2重系のデバイスである。   In addition, the shift device is a double device that further includes a second magnetic sensor IC3 having the same configuration and function as the first magnetic sensor IC1.

この第1及び第2の磁気センサIC1、3は、例えば、シフト装置内の後述する基板52(図2(b)参照。)を挟んで対向して配置される。第1及び第2の磁気センサIC1、3は、例えば、磁石50の移動による磁界の変化によって、第1の磁気センサIC1のセレクト信号1aと第2の磁気センサIC3のセレクト信号3a、第1の磁気センサIC1のシフト信号1bと第2の磁気センサIC3のシフト信号3bが同じ出力となるように構成されている。なお、第1及び第2の磁気センサIC1、3の配置は、上記に限定されず、各出力が同じ出力となる配置であれば、例えば、2つの磁気センサを重ねて配置しても良い。   The first and second magnetic sensor ICs 1 and 3 are disposed to face each other with a substrate 52 (see FIG. 2B), which will be described later, in the shift device, for example. For example, the first and second magnetic sensors IC1 and IC3 may change the selection signal 1a of the first magnetic sensor IC1, the selection signal 3a of the second magnetic sensor IC3, the first signal by the change of the magnetic field due to the movement of the magnet 50, for example. The shift signal 1b of the magnetic sensor IC1 and the shift signal 3b of the second magnetic sensor IC3 are configured to have the same output. The arrangement of the first and second magnetic sensor ICs 1 and 3 is not limited to the above, and for example, two magnetic sensors may be arranged in an overlapping manner as long as each output is the same output.

第2の磁気センサIC3は、第1の磁気センサIC1と同じ構成であるので、以下では、第1の磁気センサIC1の具体的な構成について説明する。   Since the second magnetic sensor IC3 has the same configuration as the first magnetic sensor IC1, a specific configuration of the first magnetic sensor IC1 will be described below.

第1の磁気センサIC1は、例えば、第1の磁気センサとしてのメイン磁気センサ10と、第2及び第3の磁気センサとしての第1及び第2のサブ磁気センサ11、12と、オフセット部としてのオペアンプ16、19と、算出部としてのオペアンプ22、23と、故障判定部24と、を備えて概略構成されている。   The first magnetic sensor IC1 includes, for example, a main magnetic sensor 10 as a first magnetic sensor, first and second sub magnetic sensors 11 and 12 as second and third magnetic sensors, and an offset unit. Operational amplifiers 16 and 19, operational amplifiers 22 and 23 as calculation units, and a failure determination unit 24.

第1及び第2の磁気センサIC1、3は、図1(a)〜(c)に示すように、例えば、一方の端子に電圧Vccが印加され、他方の端子が接地されている。また、第1の磁気センサIC1は、メイン磁気センサ10、第1のサブ磁気センサ11及び第2のサブ磁気センサ12、オペアンプ13、16、19、22、23及び故障判定部24等が、一体となってパッケージされている。第2の磁気センサIC3は、第1の磁気センサIC1と同様にパッケージされている。 As shown in FIGS. 1A to 1C, for example, the first and second magnetic sensor ICs 1 and 3 have a voltage Vcc applied to one terminal and the other terminal grounded. The first magnetic sensor IC1 includes a main magnetic sensor 10, a first sub magnetic sensor 11, a second sub magnetic sensor 12, operational amplifiers 13, 16, 19, 22, 23, a failure determination unit 24, and the like. It is packaged. The second magnetic sensor IC3 is packaged in the same manner as the first magnetic sensor IC1.

図2(a)は、本発明の第1の実施の形態に係るメイン磁気センサと第1及び第2のサブ磁気センサの出力電圧(V)と操作位置の関係を示すグラフであり、(b)は、シフト装置に関するブロック図である。図2(a)は、メイン磁気センサ10、第1及び第2のサブ磁気センサ11、12が正常であるときの出力電圧を示している。   FIG. 2A is a graph showing the relationship between the operation voltage and the output voltage (V) of the main magnetic sensor and the first and second sub magnetic sensors according to the first embodiment of the present invention. ) Is a block diagram relating to the shift device. FIG. 2A shows the output voltage when the main magnetic sensor 10 and the first and second sub magnetic sensors 11 and 12 are normal.

第1の磁気センサIC1のメイン磁気センサ10は、例えば、周知の複数のMR(magnetic resistance)素子から構成され、図1(d)に示すシフトパターン4のセレクト方向及びシフト方向の操作位置を検出するように構成されている。ここでセレクト方向とは、例えば、図1(d)に示すように、操作位置41(M)と操作位置44(N)を結んだ方向である。また、シフト方向とは、例えば、セレクト方向と直交する方向である。なお、メイン磁気センサ10、第1及び第2のサブ磁気センサ11、12は、ホール素子やGMR素子等の磁気センサから構成されても良い。   The main magnetic sensor 10 of the first magnetic sensor IC1 is composed of, for example, a plurality of known MR (magnetic resistance) elements, and detects the operation position in the select direction and the shift direction of the shift pattern 4 shown in FIG. Is configured to do. Here, the select direction is, for example, a direction connecting the operation position 41 (M) and the operation position 44 (N) as shown in FIG. The shift direction is, for example, a direction orthogonal to the select direction. The main magnetic sensor 10 and the first and second sub magnetic sensors 11 and 12 may be composed of magnetic sensors such as Hall elements and GMR elements.

メイン磁気センサ10は、例えば、磁石50が操作位置40〜42のいずれかにあるとき、セレクト信号1aとしてLoを出力し、磁石50が操作位置43〜45のいずれかにあるときは、セレクト信号1aとしてHiを出力するデジタル出力を行うように構成されている。   For example, the main magnetic sensor 10 outputs Lo as the select signal 1a when the magnet 50 is in any of the operation positions 40 to 42, and when the magnet 50 is in any of the operation positions 43 to 45, the select signal It is configured to perform digital output that outputs Hi as 1a.

メイン磁気センサ10は、例えば、図1(d)に示すシフトパターン4のシフト方向に応じた第1のリニア出力信号としてのシフト側リニア出力信号10aを出力するように構成されている。このシフト側リニア出力信号10aは、例えば、図2(a)に示すように、操作位置40(+)〜操作位置42(−)間、及び操作位置43(R)〜操作位置45(D)間がリニア出力となる。   The main magnetic sensor 10 is configured to output a shift side linear output signal 10a as a first linear output signal corresponding to the shift direction of the shift pattern 4 shown in FIG. For example, as shown in FIG. 2A, the shift-side linear output signal 10a is generated between the operation position 40 (+) and the operation position 42 (−), and between the operation position 43 (R) and the operation position 45 (D). The interval is linear output.

シフト側リニア出力信号10aは、例えば、図1(a)に示すように、オペアンプ13の非反転入力端子に入力する。シフト側リニア出力信号10aは、例えば、抵抗14と抵抗15の中点電位であり、オペアンプ13の反転入力端子に印加された電圧Vrefにより調整され、シフト信号1bとして第1の磁気センサIC1から出力される。なお、シフト側リニア出力信号10aは、例えば、電圧Vrefにより調整せずにシフト信号1bとして出力されても良い。 The shift-side linear output signal 10a is input to the non-inverting input terminal of the operational amplifier 13, for example, as shown in FIG. The shift-side linear output signal 10a is, for example, the midpoint potential of the resistors 14 and 15, and is adjusted by the voltage V ref applied to the inverting input terminal of the operational amplifier 13, and from the first magnetic sensor IC1 as the shift signal 1b. Is output. Note that the shift-side linear output signal 10a may be output as the shift signal 1b without being adjusted by the voltage Vref , for example.

第1及び第2のサブ磁気センサ11、12は、例えば、メイン磁気センサ10のシフト方向の操作位置を検出するMR素子と同じ構成を有する。   For example, the first and second sub magnetic sensors 11 and 12 have the same configuration as the MR element that detects the operation position of the main magnetic sensor 10 in the shift direction.

第1のサブ磁気センサ11は、例えば、図2(a)に示すように、シフト側リニア出力信号10aと同じ出力となる第2のリニア出力信号としてのシフト側リニア出力信号11aを出力するように構成されている。第1のサブ磁気センサ11は、例えば、メイン磁気センサ10と同一のリニア出力となるように、メイン磁気センサ10に近接して配置される。   For example, as shown in FIG. 2A, the first sub magnetic sensor 11 outputs a shift-side linear output signal 11a as a second linear output signal that is the same output as the shift-side linear output signal 10a. It is configured. For example, the first sub magnetic sensor 11 is disposed in proximity to the main magnetic sensor 10 so as to have the same linear output as the main magnetic sensor 10.

このシフト側リニア出力信号11aは、例えば、オペアンプ16の非反転入力端子から入力する。シフト側リニア出力信号11aは、例えば、抵抗17と抵抗18の中点電位であり、オペアンプ16の反転入力端子側に印加された第1のオフセット値としてのオフセット値Voff1によりオフセットされ、第1のオフセット信号16aとなる。 The shift-side linear output signal 11a is input from, for example, a non-inverting input terminal of the operational amplifier 16. The shift-side linear output signal 11a is, for example, the midpoint potential of the resistor 17 and the resistor 18, and is offset by the offset value Voff1 as the first offset value applied to the inverting input terminal side of the operational amplifier 16. Offset signal 16a.

この第1のオフセット信号16aは、例えば、図2(a)に示すように、シフト信号1bからオフセット値Voff1だけ電圧が高くなる。 For example, as shown in FIG. 2A, the voltage of the first offset signal 16a increases from the shift signal 1b by the offset value V off1 .

第2のサブ磁気センサ12は、例えば、図2(a)に示すように、シフト側リニア出力信号10aと同じ出力となる第3のリニア出力信号としてのシフト側リニア出力信号12aを出力するように構成されている。第2のサブ磁気センサ12は、例えば、メイン磁気センサ10と同一のリニア出力となるように、メイン磁気センサ10に近接して配置される。   For example, as shown in FIG. 2A, the second sub magnetic sensor 12 outputs a shift-side linear output signal 12a as a third linear output signal that is the same output as the shift-side linear output signal 10a. It is configured. For example, the second sub magnetic sensor 12 is disposed close to the main magnetic sensor 10 so as to have the same linear output as the main magnetic sensor 10.

このシフト側リニア出力信号12aは、例えば、オペアンプ19の非反転入力端子から入力する。シフト側リニア出力信号12aは、例えば、抵抗20と抵抗21の中点電位であり、オペアンプ19の反転入力端子側に印加された第2のオフセット値としてのオフセット値Voff2によりオフセットされ、第2のオフセット信号19aとなる。 The shift-side linear output signal 12a is input from, for example, a non-inverting input terminal of the operational amplifier 19. The shift-side linear output signal 12a is, for example, the midpoint potential of the resistor 20 and the resistor 21, and is offset by the offset value Voff2 as the second offset value applied to the inverting input terminal side of the operational amplifier 19. Offset signal 19a.

この第2のオフセット信号19aは、例えば、図2(a)に示すように、シフト信号1bからオフセット値Voff2だけ電圧が低くなる。なお、オフセット値Voff1及びVoff2は、異なる値でも良いし、同じ値でも良い。本実施の形態では、オフセット値Voff1及びVoff2は、同じ値とする。また、オフセット値Voff1及びVoff2が、異なる値となるとき、しきい値Vthは、それぞれのオフセット値に合わせた2つの値となり、コンパレータ25の反転入力端子、コンパレータ26の非反転入力端子にそれぞれ入力する。 For example, as shown in FIG. 2A, the voltage of the second offset signal 19a is lowered from the shift signal 1b by the offset value V off2 . The offset value V off1 and V off2 may be a different value, may be the same value. In this embodiment, the offset value V off1 and V off2 are the same value. Further, the offset value V off1 and V off2 is, when a different value, the threshold V th becomes the two values according to each offset value, the inverting input terminal of the comparator 25, the non-inverting input terminal of the comparator 26 To enter each.

第1のオフセット信号16aは、例えば、図1(a)に示すように、オペアンプ22の非反転入力端子に入力する。オペアンプ22は、例えば、第1のオフセット信号16aと反転入力端子に入力するシフト信号1bとの第1の差分としての差分ΔVを算出し、第1の差分信号22aとして出力する。メイン磁気センサ10及び第1の磁気センサ11が正常であるとき、この差分ΔVは、オフセット値Voff1と等しくなる。 The first offset signal 16a is input to the non-inverting input terminal of the operational amplifier 22, for example, as shown in FIG. The operational amplifier 22 calculates, for example, a difference ΔV 1 as a first difference between the first offset signal 16a and the shift signal 1b input to the inverting input terminal, and outputs the difference ΔV 1 as the first difference signal 22a. When the main magnetic sensor 10 and the first magnetic sensor 11 are normal, the difference ΔV 1 is equal to the offset value V off1 .

第2のオフセット信号19aは、例えば、図1(a)に示すように、オペアンプ23の反転入力端子に入力する。オペアンプ23は、例えば、非反転入力端子に入力するシフト信号1bと第2のオフセット信号19aとの第2の差分としての差分ΔVを算出し、第2の差分信号23aとして出力する。メイン磁気センサ10及び第2の磁気センサ12が正常であるとき、この差分ΔVは、オフセット値Voff2と等しくなる。 The second offset signal 19a is input to the inverting input terminal of the operational amplifier 23, for example, as shown in FIG. The operational amplifier 23 calculates, for example, a difference ΔV 2 as a second difference between the shift signal 1b input to the non-inverting input terminal and the second offset signal 19a, and outputs the difference ΔV 2 as the second difference signal 23a. When the main magnetic sensor 10 and the second magnetic sensor 12 are normal, the difference ΔV 2 becomes equal to the offset value V off2 .

ここで、シフト信号1bは、シフト側リニア出力信号10aを電圧Vrefで調整した信号であり、各磁気センサが正常の場合、このシフト信号1bと第1及び第2のオフセット信号16a、19aの差分は、オフセット値Voff1及びVoff2とは異なる値となる。よって本実施の形態では、電圧Vrefは、オフセット値Voff1及びVoff2とは、故障の判定に影響がない値であるものとする。 Here, the shift signal 1b is a signal obtained by adjusting the shift-side linear output signal 10a with the voltage Vref . When each magnetic sensor is normal, the shift signal 1b and the first and second offset signals 16a and 19a are difference is a value different from the offset value V off1 and V off2. Therefore, in the present embodiment, the voltage V ref, the offset value V off1 and V off2, it is assumed that the value does not affect the determination of the failure.

第1の磁気センサIC1の故障判定部24は、第1のコンパレータとしてのコンパレータ25と、第2のコンパレータとしてのコンパレータ26と、OR回路27と、を含んで構成される。   The failure determination unit 24 of the first magnetic sensor IC1 includes a comparator 25 as a first comparator, a comparator 26 as a second comparator, and an OR circuit 27.

第1の差分信号22aは、コンパレータ25の非反転入力端子から入力し、抵抗28と抵抗29の中点電位であり、コンパレータ25の反転入力端子に印加されたしきい値Vthと比較される。コンパレータ25は、比較結果を第1の出力信号25aとしてOR回路27に出力する。 The first difference signal 22 a is input from the non-inverting input terminal of the comparator 25, is a midpoint potential of the resistors 28 and 29, and is compared with the threshold value V th applied to the inverting input terminal of the comparator 25. . The comparator 25 outputs the comparison result to the OR circuit 27 as the first output signal 25a.

コンパレータ25は、例えば、第1の差分信号22aに基づく差分ΔVがしきい値Vthよりも小さいときは、Loを出力し、大きいときは、Hiを出力するように構成されている。 For example, the comparator 25 is configured to output Lo when the difference ΔV 1 based on the first difference signal 22a is smaller than the threshold value V th and output Hi when the difference ΔV 1 is larger.

また、第2の差分信号23aは、コンパレータ26の反転入力端子から入力し、抵抗28と抵抗29の中点電位であり、コンパレータ26の非反転入力端子に印加されたしきい値Vthと比較される。コンパレータ26は、比較結果を第2の出力信号26aとしてOR回路27に出力する。 The second difference signal 23 a is input from the inverting input terminal of the comparator 26, is a midpoint potential of the resistors 28 and 29, and is compared with the threshold value V th applied to the non-inverting input terminal of the comparator 26. Is done. The comparator 26 outputs the comparison result to the OR circuit 27 as the second output signal 26a.

コンパレータ26は、例えば、第2の差分信号23aに基づく差分ΔVがしきい値Vthよりも小さいときは、Loを出力し、大きいときは、Hiを出力するように構成されている。 Comparator 26, for example, when the difference [Delta] V 2 based on the second differential signal 23a is smaller than the threshold value V th outputs a Lo, is greater is configured to output a Hi.

OR回路27は、一端にVccが印加され、他端が接地された論理和回路である。このOR回路27は、入力する第1及び第2の出力信号25a、26aが(Lo、Lo)の組み合わせ以外のとき、メイン磁気センサ10、第1のサブ磁気センサ11又は第2のサブ磁気センサ12の故障を示すダイアグ信号1cを出力するように構成されている。 The OR circuit 27 is a logical sum circuit in which Vcc is applied to one end and the other end is grounded. When the input first and second output signals 25a and 26a are other than (Lo, Lo), the OR circuit 27 is connected to the main magnetic sensor 10, the first sub magnetic sensor 11, or the second sub magnetic sensor. It is configured to output a diagnosis signal 1c indicating 12 failures.

シフト装置5は、図2(b)に示すように、車両ECU(Electronic Control Unit)6に接続される。   The shift device 5 is connected to a vehicle ECU (Electronic Control Unit) 6 as shown in FIG.

車両ECU6は、例えば、シフト装置5の第1及び第2の磁気センサIC1、3から出力されるセレクト信号1a、3a及びシフト信号1b、3bに基づいてシフトレバー51の操作位置を判定し、判定した操作位置に基づくシフト信号60を駆動部7に出力する。   The vehicle ECU 6 determines the operation position of the shift lever 51 based on the select signals 1a, 3a and the shift signals 1b, 3b output from the first and second magnetic sensors IC1, 3 of the shift device 5, for example. A shift signal 60 based on the operated position is output to the drive unit 7.

また、車両ECU6は、例えば、第1の磁気センサIC1からのダイアグ信号1c又は、第2の磁気センサIC3からのダイアグ信号3cが入力するとき、シフト装置5の故障を車両の乗員に報知するため、報知部8に報知信号61を出力する。なお、車両ECU6は、例えば、ダイアグ信号1cとダイアグ信号3cのうちいずれかの信号が入力したとき、ダイアグ信号を出力した磁気センサICとは異なる磁気センサICの出力に基づいて駆動部7を切り替えるように構成されても良い。   For example, when the diagnosis signal 1c from the first magnetic sensor IC1 or the diagnosis signal 3c from the second magnetic sensor IC3 is input, the vehicle ECU 6 notifies the vehicle occupant of the failure of the shift device 5. The notification signal 61 is output to the notification unit 8. Note that the vehicle ECU 6 switches the drive unit 7 based on the output of a magnetic sensor IC that is different from the magnetic sensor IC that has output the diagnosis signal, for example, when one of the diagnosis signal 1c and the diagnosis signal 3c is input. It may be configured as follows.

駆動部7は、例えば、車両ECU6から出力されたシフト信号60に基づいてエンジンの回転を伝える複数のギアのギア比を変更する。   For example, the drive unit 7 changes the gear ratios of a plurality of gears that transmit the rotation of the engine based on the shift signal 60 output from the vehicle ECU 6.

報知部8は、例えば、ランプの点灯や音によって、乗員にシフト装置5の故障を報知する。なお、故障の報知の方法は、上記に限定されない。   The notification unit 8 notifies the occupant of a failure of the shift device 5 by, for example, lighting of a lamp or sound. The failure notification method is not limited to the above.

(動作)
図3は、本発明の第1の実施の形態に係る第1の磁気センサICの動作に関するフローチャートである。以下に、第1の磁気センサIC1の動作について、図3のフローチャートに従って説明する。なお、シフト装置5のシフトレバー51は、停車中は操作位置44(N)に操作されているものとする。
(Operation)
FIG. 3 is a flowchart relating to the operation of the first magnetic sensor IC according to the first embodiment of the invention. Below, operation | movement of 1st magnetic sensor IC1 is demonstrated according to the flowchart of FIG. Note that the shift lever 51 of the shift device 5 is operated to the operation position 44 (N) while the vehicle is stopped.

車両の電気系統をオン状態にすると、車両の電源から電圧Vccが第1及び第2の磁気センサIC1、3に印加される。第1の磁気センサIC1のメイン磁気センサ10は、オペアンプ13の非反転入力端子にシフト側リニア出力信号10aを出力する。第1のサブ磁気センサ11は、オペアンプ16の非反転入力端子にシフト側リニア出力信号11aを出力する。第2のサブ磁気センサ12は、オペアンプ19の非反転入力端子にシフト側リニア出力信号12aを出力する。また、第1及び第2の磁気センサIC1、3は、車両ECU6にセレクト信号1a、3aを出力する。 When the electrical system of the vehicle in the on state, the voltage V cc is applied to the first and second magnetic sensors IC1,3 from the power supply of the vehicle. The main magnetic sensor 10 of the first magnetic sensor IC1 outputs a shift-side linear output signal 10a to the non-inverting input terminal of the operational amplifier 13. The first sub magnetic sensor 11 outputs a shift-side linear output signal 11 a to the non-inverting input terminal of the operational amplifier 16. The second sub magnetic sensor 12 outputs a shift side linear output signal 12 a to the non-inverting input terminal of the operational amplifier 19. The first and second magnetic sensors IC1, 3 output select signals 1a, 3a to the vehicle ECU 6.

オペアンプ13は、反転入力端子に印加される電圧Vrefに基づいてシフト側リニア出力信号10aを調整し、シフト信号1bとして出力する。 The operational amplifier 13 adjusts the shift-side linear output signal 10a based on the voltage V ref applied to the inverting input terminal, and outputs it as the shift signal 1b.

オペアンプ16は、反転入力端子に印加されるオフセット値Voff1に基づいてシフト側リニア出力信号11aをオフセットし、第1のオフセット信号16aを出力する。 The operational amplifier 16 offsets the shift-side linear output signal 11a based on the offset value V off1 applied to the inverting input terminal, and outputs a first offset signal 16a.

オペアンプ19は、反転入力端子に印加されるオフセット値Voff2に基づいてシフト側リニア出力信号12aをオフセットし、第2のオフセット信号19aを出力する。 The operational amplifier 19 offsets the shift-side linear output signal 12a based on the offset value V off2 applied to the inverting input terminal, and outputs a second offset signal 19a.

オペアンプ22は、反転入力端子に入力するオペアンプ13から出力されたシフト信号1bと、非反転入力端子に入力するオペアンプ16から出力された第1のオフセット信号16aとの差分ΔVを算出し、第1の差分信号22aとして出力する。また、オペアンプ23は、非反転入力端子に入力するオペアンプ13から出力されたシフト信号1bと、反転入力端子に入力するオペアンプ19から出力された第2のオフセット信号19aとの差分ΔVを算出し、第2の差分信号23aとして出力する(S1)。ここで、故障が発生していないとき、差分ΔVはオフセット値Voff1と見なせ、差分ΔVはオフセット値Voff2と見なせる。 The operational amplifier 22 calculates a difference ΔV 1 between the shift signal 1b output from the operational amplifier 13 input to the inverting input terminal and the first offset signal 16a output from the operational amplifier 16 input to the non-inverting input terminal. 1 as a differential signal 22a. The operational amplifier 23 calculates a difference ΔV 2 between the shift signal 1b output from the operational amplifier 13 input to the non-inverting input terminal and the second offset signal 19a output from the operational amplifier 19 input to the inverting input terminal. The second difference signal 23a is output (S1). Here, when a failure has not occurred, the difference [Delta] V 1 is regarded as the offset value V off1, difference [Delta] V 2 can be regarded as the offset value V off2.

次に、故障判定部24のコンパレータ25は、非反転入力端子に入力する第1の差分信号22aとしきい値Vthとを比較して第1の出力信号25aを出力し、コンパレータ26は、非反転入力端子に入力するしきい値Vthと反転入力端子に入力する第2の差分信号23aとを比較して第2の出力信号26aを出力する。ここで、しきい値Vthは、オフセット値Voff1及びオフセット値Voff2と同じ値となるので、故障が発生していないとき、コンパレータ25、26による比較結果は(Lo、Lo)となる。 Next, the comparator 25 of the failure determination unit 24 compares the first difference signal 22a input to the non-inverting input terminal with the threshold value Vth and outputs the first output signal 25a. The threshold value Vth input to the inverting input terminal is compared with the second difference signal 23a input to the inverting input terminal, and the second output signal 26a is output. Here, the threshold value V th, so the same value as the offset value V off1 and offset values V off2, when a failure has not occurred, the result of comparison by the comparator 25 becomes (Lo, Lo).

OR回路27は、第1及び第2の出力信号25a、26aに基づいてVoff1>ΔV又はVoff2>ΔVが成り立つとき(S2;Yes)、メイン磁気センサ10、第1及び第2のサブ磁気センサ11、12が正常であると判定する(S3)。正常であるとき、第1の磁気センサIC1は、車両の電源がオフされるまで、ステップ1から動作を続ける。 OR circuit 27, first and second output signals 25a, V off1 based on 26a> [Delta] V 1 or V off2> When [Delta] V 2 holds (S2; Yes), the main magnetic sensor 10, the first and second It is determined that the sub magnetic sensors 11 and 12 are normal (S3). When normal, the first magnetic sensor IC1 continues to operate from step 1 until the vehicle power is turned off.

また、OR回路27は、第1及び第2の出力信号25a、26aに基づいてVoff1>ΔV又はVoff2>ΔVが成り立たないとき(S2;No)、メイン磁気センサ10、第1及び第2のサブ磁気センサ11、12のいずれかに故障が発生したと判定し、ダイアグ信号1cを出力する(S4)。 Further, OR circuit 27, first and second output signals 25a, V off1 based on 26a> [Delta] V 1 or V off2> When [Delta] V 2 is not satisfied (S2; No), the main magnetic sensor 10, the first and It is determined that a failure has occurred in either of the second sub magnetic sensors 11 and 12, and a diagnosis signal 1c is output (S4).

車両ECU6は、出力されたダイアグ信号1cに基づいて報知信号61を報知部8に出力し、報知部8は、報知信号61に基づいてシフト装置5の故障を報知する。   The vehicle ECU 6 outputs a notification signal 61 to the notification unit 8 based on the output diagnosis signal 1 c, and the notification unit 8 notifies the failure of the shift device 5 based on the notification signal 61.

(効果)
本実施の形態に係る第1の磁気センサIC1によれば、ECU等で構成される判定部を必要としないで、故障の有無を判定することができる。また、第1の磁気センサIC1によれば、ECU等で構成される判定部を必要としないので、低コストで故障の自己検出を行うことができる。
(effect)
According to the first magnetic sensor IC1 according to the present embodiment, it is possible to determine the presence or absence of a failure without requiring a determination unit configured by an ECU or the like. In addition, according to the first magnetic sensor IC1, since a determination unit configured by an ECU or the like is not required, a failure self-detection can be performed at a low cost.

本実施の形態に係る第1の磁気センサIC1によれば、メイン磁気センサ10、第1及び第2のサブ磁気センサ11、12が一体となってパッケージされているので、配置ずれによるメイン磁気センサ10と第1及び第2のサブ磁気センサ11、12の出力誤差を抑えることができ、故障の検出精度が高い。   According to the first magnetic sensor IC 1 according to the present embodiment, the main magnetic sensor 10 and the first and second sub magnetic sensors 11 and 12 are packaged together. 10 and the output errors of the first and second sub magnetic sensors 11 and 12 can be suppressed, and the failure detection accuracy is high.

本実施の形態に係る第1の磁気センサIC1によれば、シフト信号1bと第1及び第2のオフセット信号16a、19aを比較することで故障の有無を判定するので、ある操作位置を示す出力信号を出力し続けるような故障が発生したときでも、正確に故障を検出することができる。   According to the first magnetic sensor IC1 according to the present embodiment, the presence or absence of a failure is determined by comparing the shift signal 1b with the first and second offset signals 16a and 19a. Even when a failure that continues to output a signal occurs, the failure can be accurately detected.

[第2の実施の形態]
第2の実施の形態は、1つのサブ磁気センサからオフセットした2つのオフセット信号を生成する点で第1の実施の形態と異なっている。
[Second Embodiment]
The second embodiment is different from the first embodiment in that two offset signals offset from one sub magnetic sensor are generated.

図4は、本発明の第2の実施の形態に係る磁気センサICの回路図である。なお、以下の実施の形態において、第1の実施の形態と同じ機能及び構成を有する部分は、同じ符号を付し、その説明は省略するものとする。   FIG. 4 is a circuit diagram of a magnetic sensor IC according to the second embodiment of the present invention. In the following embodiments, portions having the same functions and configurations as those of the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態に係る磁気センサIC9は、例えば、図4に示すように、メイン磁気センサ90と、サブ磁気センサ91と、オペアンプ92と、オペアンプ93と、第1のオフセット部94と、第2のオフセット部95と、故障判定部96と、を備えて概略構成されている。   As shown in FIG. 4, for example, the magnetic sensor IC 9 according to this embodiment includes a main magnetic sensor 90, a sub magnetic sensor 91, an operational amplifier 92, an operational amplifier 93, a first offset unit 94, and a second offset. The offset unit 95 and the failure determination unit 96 are roughly configured.

メイン磁気センサ90は、例えば、第1の実施の形態におけるメイン磁気センサ10と同じ構成及び機能を有する。メイン磁気センサ90は、例えば、磁石50の移動による磁界の変化に応じてシフト側リニア出力信号90aを出力する。   The main magnetic sensor 90 has, for example, the same configuration and function as the main magnetic sensor 10 in the first embodiment. For example, the main magnetic sensor 90 outputs a shift-side linear output signal 90 a according to a change in the magnetic field due to the movement of the magnet 50.

シフト側リニア出力信号90aは、例えば、図4に示すように、オペアンプ92の非反転入力端子に入力する。シフト側リニア出力信号90aは、例えば、抵抗100と抵抗101の中点電位であり、オペアンプ92の反転入力端子に印加された電圧Vrefにより調整され、シフト信号1bとして磁気センサIC9から出力される。 The shift-side linear output signal 90a is input to the non-inverting input terminal of the operational amplifier 92, for example, as shown in FIG. The shift-side linear output signal 90a is, for example, the midpoint potential of the resistor 100 and the resistor 101, is adjusted by the voltage V ref applied to the inverting input terminal of the operational amplifier 92, and is output from the magnetic sensor IC9 as the shift signal 1b. .

サブ磁気センサ91は、例えば、第1の実施の形態における第1又は第2のサブ磁気センサ11、12と同じ構成及び機能を有する。サブ磁気センサ91は、例えば、磁石50の移動による磁界の変化に応じて、メイン磁気センサ90が出力するシフト側リニア出力信号90aと同じシフト側リニア出力信号91aを出力する。   The sub magnetic sensor 91 has the same configuration and function as, for example, the first or second sub magnetic sensor 11 or 12 in the first embodiment. For example, the sub magnetic sensor 91 outputs a shift-side linear output signal 91a that is the same as the shift-side linear output signal 90a output from the main magnetic sensor 90 in accordance with a change in the magnetic field due to the movement of the magnet 50.

シフト側リニア出力信号91aは、例えば、図4に示すように、オペアンプ93の非反転入力端子に入力する。シフト側リニア出力信号91aは、例えば、オペアンプ93の反転入力端子に印加された電圧Vrefにより調整され、シフト信号1bと同じ信号となる調整信号93aとして第1及び第2のオフセット部94、95に出力される。 The shift side linear output signal 91a is input to the non-inverting input terminal of the operational amplifier 93, for example, as shown in FIG. The shift-side linear output signal 91a is adjusted by, for example, the voltage V ref applied to the inverting input terminal of the operational amplifier 93, and the first and second offset units 94 and 95 serve as the adjustment signal 93a that is the same signal as the shift signal 1b. Is output.

第1のオフセット部94は、例えば、オフセット値Voff1により調整信号93aより高い出力電圧となるように調整信号93aをオフセットし、第1のオフセット信号94aを故障判定部96に出力するよう構成されている。 For example, the first offset unit 94 is configured to offset the adjustment signal 93a so that the output voltage is higher than the adjustment signal 93a by the offset value V off1 and output the first offset signal 94a to the failure determination unit 96. ing.

第2のオフセット部95は、例えば、オフセット値Voff2により調整信号93aより低い出力電圧となるように調整信号93aをオフセットし、第2のオフセット信号95aを故障判定部96に出力するよう構成されている。 For example, the second offset unit 95 is configured to offset the adjustment signal 93a so that the output voltage is lower than the adjustment signal 93a by the offset value V off2 and to output the second offset signal 95a to the failure determination unit 96. ing.

故障判定部96は、例えば、コンパレータ97と、コンパレータ98と、OR回路99と、を備えて概略構成されている。   The failure determination unit 96 is schematically configured to include, for example, a comparator 97, a comparator 98, and an OR circuit 99.

コンパレータ97は、例えば、非反転入力端子にオペアンプ92から出力されたシフト信号1bが入力し、反転入力端子に第1のオフセット部94から出力された第1のオフセット信号94aが入力する。コンパレータ97は、例えば、シフト信号1bと第1のオフセット信号94aを比較し、第1の出力信号97aをOR回路99に出力する。コンパレータ97は、例えば、第1のオフセット信号94aがシフト信号1bより大きいときは、Loを出力し、小さいときは、Hiを出力するように構成されている。   In the comparator 97, for example, the shift signal 1b output from the operational amplifier 92 is input to the non-inverting input terminal, and the first offset signal 94a output from the first offset unit 94 is input to the inverting input terminal. For example, the comparator 97 compares the shift signal 1 b with the first offset signal 94 a and outputs the first output signal 97 a to the OR circuit 99. For example, the comparator 97 is configured to output Lo when the first offset signal 94a is greater than the shift signal 1b, and output Hi when the first offset signal 94a is smaller.

コンパレータ98は、例えば、非反転入力端子に第2のオフセット部95から出力された第2のオフセット信号95aが入力し、反転入力端子にオペアンプ92から出力されたシフト信号1bが入力する。コンパレータ98は、例えば、第2のオフセット信号95aとシフト信号1bを比較し、第2の出力信号98aをOR回路99に出力する。コンパレータ98は、例えば、シフト信号1bが第2のオフセット信号95aより大きいときは、Loを出力し、小さいときは、Hiを出力するように構成されている。   In the comparator 98, for example, the second offset signal 95a output from the second offset unit 95 is input to the non-inverting input terminal, and the shift signal 1b output from the operational amplifier 92 is input to the inverting input terminal. For example, the comparator 98 compares the second offset signal 95 a with the shift signal 1 b and outputs the second output signal 98 a to the OR circuit 99. For example, the comparator 98 is configured to output Lo when the shift signal 1b is larger than the second offset signal 95a, and output Hi when it is smaller.

OR回路99は、一端にVccが印加され、他端が接地された論理和回路である。このOR回路99は、入力する第1及び第2の出力信号97a、98aが(Lo、Lo)の組み合わせ以外のとき、メイン磁気センサ90又はサブ磁気センサ91の故障を示すダイアグ信号1cを出力するように構成されている。 The OR circuit 99 is a logical sum circuit in which Vcc is applied to one end and the other end is grounded. The OR circuit 99 outputs a diagnosis signal 1c indicating a failure of the main magnetic sensor 90 or the sub magnetic sensor 91 when the input first and second output signals 97a and 98a are other than the combination of (Lo, Lo). It is configured as follows.

(動作)
図5は、本発明の第2の実施の形態に係る磁気センサICの動作に関するフローチャートである。以下に、磁気センサIC9の動作について、図5のフローチャートに従って説明する。なお、シフト装置5のシフトレバー51は、停車中は操作位置44(N)に操作されているものとする。
(Operation)
FIG. 5 is a flowchart relating to the operation of the magnetic sensor IC according to the second embodiment of the present invention. Below, operation | movement of magnetic sensor IC9 is demonstrated according to the flowchart of FIG. Note that the shift lever 51 of the shift device 5 is operated to the operation position 44 (N) while the vehicle is stopped.

車両の電気系統をオン状態にすると、車両の電源から電圧Vccが磁気センサIC9に印加される。磁気センサIC9のメイン磁気センサ90は、オペアンプ92の非反転入力端子にシフト側リニア出力信号90aを出力する。 When the electric system of the vehicle is turned on, the voltage Vcc is applied to the magnetic sensor IC9 from the power source of the vehicle. The main magnetic sensor 90 of the magnetic sensor IC 9 outputs a shift-side linear output signal 90 a to the non-inverting input terminal of the operational amplifier 92.

サブ磁気センサ91は、オペアンプ93の非反転入力端子にシフト側リニア出力信号91aを出力する。また、磁気センサIC9は、車両ECU6にセレクト信号1aを出力する。   The sub magnetic sensor 91 outputs a shift-side linear output signal 91 a to the non-inverting input terminal of the operational amplifier 93. Further, the magnetic sensor IC9 outputs a select signal 1a to the vehicle ECU 6.

オペアンプ92は、反転入力端子に印加される電圧Vrefに基づいてシフト側リニア出力信号90aを調整し、シフト信号1bとして出力する。 The operational amplifier 92 adjusts the shift-side linear output signal 90a based on the voltage V ref applied to the inverting input terminal, and outputs it as the shift signal 1b.

オペアンプ93は、反転入力端子に印加される電圧Vrefに基づいてシフト側リニア出力信号91aを調整し、シフト信号1bと同じ信号となる調整信号93aを出力する。 The operational amplifier 93 adjusts the shift-side linear output signal 91a based on the voltage V ref applied to the inverting input terminal, and outputs an adjustment signal 93a that is the same signal as the shift signal 1b.

第1のオフセット部94は、入力した調整信号93aをオフセット値Voff1に基づいてオフセットして第1のオフセット信号94aを生成して出力する(S10)。 The first offset unit 94 generates the first offset signal 94a by offsetting the input adjustment signal 93a based on the offset value Voff1 , and outputs the first offset signal 94a (S10).

第2のオフセット部95は、入力した調整信号93aをオフセット値Voff2に基づいてオフセットして第2のオフセット信号95aを生成して出力する(S10)。 The second offset unit 95 generates the second offset signal 95a by offsetting the input adjustment signal 93a based on the offset value Voff2 and outputs it (S10).

故障判定部24のコンパレータ97は、非反転入力端子に入力するシフト信号1bと第1のオフセット信号94aとを比較して第1の出力信号25aを出力し、コンパレータ98は、非反転入力端子に入力する第2のオフセット信号95aと反転入力端子に入力するシフト信号1bとを比較して第2の出力信号98aを出力する。   The comparator 97 of the failure determination unit 24 compares the shift signal 1b input to the non-inverting input terminal with the first offset signal 94a and outputs the first output signal 25a, and the comparator 98 receives the non-inverting input terminal. The input second offset signal 95a and the shift signal 1b input to the inverting input terminal are compared to output a second output signal 98a.

OR回路99は、第1及び第2の出力信号97a、98aに基づいて第2のオフセット信号95a<シフト信号1b<第1のオフセット信号94aが成り立つとき(S11;Yes)、メイン磁気センサ90及びサブ磁気センサ91が正常であると判定する(S12)。   When the second offset signal 95a <shift signal 1b <first offset signal 94a holds based on the first and second output signals 97a and 98a (S11; Yes), the OR circuit 99 It is determined that the sub magnetic sensor 91 is normal (S12).

また、OR回路99は、第1及び第2の出力信号97a、98aに基づいて第2のオフセット信号95a<シフト信号1b<第1のオフセット信号94aが成り立たないとき(S11;No)、メイン磁気センサ90又はサブ磁気センサ91に故障が発生したと判定し、ダイアグ信号1cを出力する(S13)。   When the second offset signal 95a <shift signal 1b <first offset signal 94a does not hold based on the first and second output signals 97a and 98a (S11; No), the OR circuit 99 It is determined that a failure has occurred in the sensor 90 or the sub magnetic sensor 91, and a diagnosis signal 1c is output (S13).

車両ECU6は、出力されたダイアグ信号1cに基づいて報知信号61を報知部8に出力し、報知部8は、報知信号61に基づいてシフト装置5の故障を報知する。   The vehicle ECU 6 outputs a notification signal 61 to the notification unit 8 based on the output diagnosis signal 1 c, and the notification unit 8 notifies the failure of the shift device 5 based on the notification signal 61.

なお、磁気センサIC9は、例えば、オフセットした第1及び第2のオフセット信号94a、95aとシフト信号1bとの差分を算出する算出部を備え、算出された差分とオフセット値Voff1及びVoff2を比較してメイン磁気センサ90及びサブ磁気センサ91の少なくとも1つの故障を判定するように構成しても良い。 The magnetic sensor IC9, for example, first and second offset signals 94a offset, includes a calculation unit for calculating a difference between 95a and the shift signal 1b, calculated difference and the offset value V off1 and V off2 In comparison, at least one failure of the main magnetic sensor 90 and the sub magnetic sensor 91 may be determined.

(効果)
本実施の形態に係る磁気センサIC9によれば、第1の実施の形態に係る第1及び第2の磁気センサIC1、3よりも少ない磁気センサを用いて、低コストで故障の自己検出を行うことができる。また、磁気センサIC9によれば、より少ない構成で故障の自己検出を行うことができる。
(effect)
According to the magnetic sensor IC 9 according to the present embodiment, the failure self-detection is performed at a low cost by using fewer magnetic sensors than the first and second magnetic sensor ICs 1 and 3 according to the first embodiment. be able to. Further, according to the magnetic sensor IC9, the failure self-detection can be performed with a smaller configuration.

なお、本発明は、上記した実施の形態に限定されず、本発明の技術思想を逸脱あるいは変更しない範囲内で種々の変形及び組み合わせが可能である。   The present invention is not limited to the above-described embodiments, and various modifications and combinations can be made without departing from or changing the technical idea of the present invention.

例えば、上記の実施の形態において、オフセット部、算出部及び故障判定部は、電子回路によって構成されたが、これに限定されず、一部又は全体をソフトウエアによって置き換え、コンピュータによって実行する構成としても良い。   For example, in the above embodiment, the offset unit, the calculation unit, and the failure determination unit are configured by electronic circuits. However, the present invention is not limited to this, and a part or the whole is replaced by software and executed by a computer. Also good.

1…第1の磁気センサIC、1a…セレクト信号、1b…シフト信号、1c…ダイアグ信号、3…第2の磁気センサIC、3a…セレクト信号、3b…シフト信号、3c…ダイアグ信号、4…シフトパターン、5…シフト装置、6…車両ECU、7…駆動部、8…報知部、9…磁気センサIC、10…メイン磁気センサ、10a…シフト側リニア出力信号、11…第1のサブ磁気センサ、11a…シフト側リニア出力信号、12…第2のサブ磁気センサ、12a…シフト側リニア出力信号、14、15、17、18、20、21、28、29…抵抗、13、16、19、22、23…オペアンプ、16a…第1のオフセット信号、19a…第2のオフセット信号、22a…第1の差分信号、23a…第2の差分信号、24…故障判定部、25、26…コンパレータ、25a…第1の出力信号、26a…第2の出力信号、27…OR回路、40〜45…操作位置、50…磁石、51…シフトレバー、52…基板、60…シフト信号、61…報知信号、90…メイン磁気センサ、90a…シフト側リニア出力信号、91…サブ磁気センサ、91a…シフト側リニア出力信号、92、93…オペアンプ、93a…調整信号、94…第1のオフセット部、94a…第1のオフセット信号、95…第2のオフセット部、95a…第2のオフセット信号、96…故障判定部、97、98…コンパレータ、97a…第1の出力信号、98a…第2の出力信号、99…OR回路、100、101…抵抗 DESCRIPTION OF SYMBOLS 1 ... 1st magnetic sensor IC, 1a ... select signal, 1b ... shift signal, 1c ... diagnostic signal, 3 ... 2nd magnetic sensor IC, 3a ... select signal, 3b ... shift signal, 3c ... diagnostic signal, 4 ... Shift pattern, 5 ... shift device, 6 ... vehicle ECU, 7 ... drive unit, 8 ... notification unit, 9 ... magnetic sensor IC, 10 ... main magnetic sensor, 10a ... shift side linear output signal, 11 ... first sub-magnetism Sensor, 11a: Shift side linear output signal, 12: Second sub magnetic sensor, 12a: Shift side linear output signal, 14, 15, 17, 18, 20, 21, 28, 29 ... Resistor, 13, 16, 19 , 22, 23, operational amplifier, 16a, first offset signal, 19a, second offset signal, 22a, first differential signal, 23a, second differential signal, 24, failure determination unit, 25 26 ... Comparator, 25a ... first output signal, 26a ... second output signal, 27 ... OR circuit, 40-45 ... operating position, 50 ... magnet, 51 ... shift lever, 52 ... substrate, 60 ... shift signal, 61 ... Notification signal, 90 ... Main magnetic sensor, 90a ... Shift side linear output signal, 91 ... Sub magnetic sensor, 91a ... Shift side linear output signal, 92, 93 ... Operational amplifier, 93a ... Adjustment signal, 94 ... First offset Part 94a ... first offset signal 95 ... second offset part 95a ... second offset signal 96 ... failure determination part 97, 98 ... comparator 97a ... first output signal 98a ... second Output signal, 99 ... OR circuit, 100, 101 ... resistor

Claims (4)

磁界の変化に応じて第1のリニア出力信号を出力する第1の磁気センサと、
前記磁界の変化に応じて、前記第1のリニア出力信号と略同一の出力となる第2及び第3のリニア出力信号を出力する第2及び第3の磁気センサと、
前記第2のリニア出力信号とゼロではない第1のオフセット値との差分を算出して第1のオフセット信号を生成し、前記第3のリニア出力信号とゼロではない第2のオフセット値との差分を算出して第2のオフセット信号を生成するオフセット部と、
前記第1のオフセット信号と前記第1のリニア出力信号との第1の差分を算出し、前記第1のリニア出力信号と前記第2のオフセット信号との第2の差分を算出する算出部と、
算出された前記第1の差分が前記第1のオフセット値より大きくなるとき、前記第1及び第2の磁気センサの少なくとも1つが故障したと判定し、算出された前記第2の差分が前記第2のオフセット値より大きくなるとき、前記第1及び第3の磁気センサの少なくとも1つが故障したと判定する故障判定部と、
を備えた磁気センサデバイス。
A first magnetic sensor that outputs a first linear output signal in response to a change in the magnetic field;
Second and third magnetic sensors that output second and third linear output signals that are substantially the same output as the first linear output signal in response to a change in the magnetic field;
In said second linear output signal and zero by calculating the difference between the first offset value without generating the first offset signal, and the second offset value is not a third linear output signal with zero An offset unit for calculating a difference and generating a second offset signal;
A calculating unit that calculates a first difference between the first offset signal and the first linear output signal, and calculates a second difference between the first linear output signal and the second offset signal; ,
When the calculated first difference is greater than the first offset value, it is determined that at least one of the first and second magnetic sensors has failed, and the calculated second difference is the first difference. A failure determination unit that determines that at least one of the first and third magnetic sensors has failed when the offset value is greater than 2.
Magnetic sensor device with
前記算出部は、前記第1の差分を算出する第1のオペアンプと、前記第2の差分を算出する第2のオペアンプを含んで構成され、
前記故障判定部は、前記第1の差分を非反転入力端子、しきい値を反転入力端子に入力して比較し、第1の出力信号を出力する第1のコンパレータと、前記第2の差分を反転入力端子、前記しきい値を非反転入力端子に入力して比較し、第2の出力信号を出力する第2のコンパレータと、前記第1及び第2の出力信号に基づいて前記第1乃至第3の磁気センサのいずれかの故障を示すダイアグ信号を出力するOR回路を含んで構成され、前記第1のオフセット値、前記第2のオフセット値及び前記しきい値が等しい請求項1に記載の磁気センサデバイス。
The calculation unit includes a first operational amplifier that calculates the first difference and a second operational amplifier that calculates the second difference,
The failure determination unit inputs the first difference to a non-inverting input terminal, compares the threshold value to an inverting input terminal, compares the first difference, and outputs a first output signal; and the second difference Is input to the inverting input terminal, the threshold value is input to the non-inverting input terminal, the second comparator outputs the second output signal, and the first and second output signals are used for the first comparator. 2. An OR circuit that outputs a diagnostic signal indicating a failure of any one of the third to third magnetic sensors , wherein the first offset value, the second offset value, and the threshold value are equal. The described magnetic sensor device.
磁界の変化に応じて第1のリニア出力信号を出力する第1の磁気センサと、
前記磁界の変化に応じて、前記第1のリニア出力信号と略同一の出力となる第2のリニア出力信号を出力する第2の磁気センサと、
前記第2のリニア出力信号とゼロではない第1のオフセット値との差分を算出して第1のオフセット信号を生成し、前記第のリニア出力信号とゼロではない第2のオフセット値との差分を算出して第2のオフセット信号を生成するオフセット部と、
前記第1のリニア出力信号が前記第1のオフセット信号より大きくなるとき、又は、前記第1のリニア出力信号が前記第2のオフセット信号より小さくなるとき、前記第1又は第2の磁気センサが故障したと判定する故障判定部と、
を備えた磁気センサデバイス。
A first magnetic sensor that outputs a first linear output signal in response to a change in the magnetic field;
A second magnetic sensor that outputs a second linear output signal that is substantially the same output as the first linear output signal in response to a change in the magnetic field;
A difference between the second linear output signal and a non-zero first offset value is calculated to generate a first offset signal, and the second linear output signal and the non-zero second offset value are An offset unit for calculating a difference and generating a second offset signal;
When the first linear output signal is larger than the first offset signal, or when the first linear output signal is smaller than the second offset signal, the first or second magnetic sensor is A failure determination unit that determines that a failure has occurred;
Magnetic sensor device with
前記故障判定部は、前記第1のリニア出力信号を非反転入力端子、前記第1のオフセット信号を反転入力端子に入力して比較し、第1の出力信号を出力する第1のコンパレータと、前記第1のリニア出力信号を反転入力端子、前記第2のオフセット信号を非反転入力端子に入力して比較し、第2の出力信号を出力する第2のコンパレータと、前記第1及び第2の出力信号に基づいて前記第1又は第2の磁気センサの故障を示すダイアグ信号を出力するOR回路を含んで構成される請求項3に記載の磁気センサデバイス。   The failure determination unit inputs the first linear output signal to a non-inverting input terminal, compares the first offset signal to an inverting input terminal, compares the first linear output signal, and outputs a first output signal; A second comparator for inputting the first linear output signal to an inverting input terminal, comparing the second offset signal to a non-inverting input terminal, and outputting the second output signal; and the first and second 4. The magnetic sensor device according to claim 3, further comprising an OR circuit that outputs a diagnosis signal indicating a failure of the first or second magnetic sensor based on the output signal.
JP2010216808A 2010-09-28 2010-09-28 Magnetic sensor device Expired - Fee Related JP5638900B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010216808A JP5638900B2 (en) 2010-09-28 2010-09-28 Magnetic sensor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010216808A JP5638900B2 (en) 2010-09-28 2010-09-28 Magnetic sensor device

Publications (2)

Publication Number Publication Date
JP2012073063A JP2012073063A (en) 2012-04-12
JP5638900B2 true JP5638900B2 (en) 2014-12-10

Family

ID=46169407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010216808A Expired - Fee Related JP5638900B2 (en) 2010-09-28 2010-09-28 Magnetic sensor device

Country Status (1)

Country Link
JP (1) JP5638900B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10094890B2 (en) 2014-10-09 2018-10-09 Panasonic Intellectual Property Management Co., Ltd. Magnetic sensor

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3470861B1 (en) * 2017-10-10 2019-11-27 Melexis Technologies SA Redundant sensor fault detection

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09178512A (en) * 1995-12-28 1997-07-11 Mitsubishi Electric Corp Sensor system and sensor
JP2000155614A (en) * 1998-11-20 2000-06-06 Nec Corp Fault detection system
JP4617545B2 (en) * 1999-10-13 2011-01-26 株式会社デンソー Sensor abnormality detection circuit and physical quantity detection device
JP4094538B2 (en) * 2003-12-11 2008-06-04 三菱電機株式会社 Air-fuel ratio sensor failure diagnosis device
JP2009115645A (en) * 2007-11-07 2009-05-28 Alps Electric Co Ltd Moving object position detector
JP5360362B2 (en) * 2008-07-17 2013-12-04 セイコーエプソン株式会社 Angular velocity detector circuit, angular velocity detector, and failure determination system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10094890B2 (en) 2014-10-09 2018-10-09 Panasonic Intellectual Property Management Co., Ltd. Magnetic sensor

Also Published As

Publication number Publication date
JP2012073063A (en) 2012-04-12

Similar Documents

Publication Publication Date Title
US10353018B2 (en) Highly efficient diagnostic methods for monolithic sensor systems
JP6033529B2 (en) Detection device and current sensor
JP6561328B2 (en) Rotation detector
JP5832751B2 (en) Electronic circuit and magnetic field detection device capable of self-diagnosis
JP2009294172A (en) Magnetic detection device
WO2018230087A1 (en) Position sensor
JP2019002835A (en) Position sensor
JP5116751B2 (en) Magnetic detector
JP5638900B2 (en) Magnetic sensor device
JP6743770B2 (en) Position sensor
JP2012073062A (en) Magnetic sensor device
JP2007303925A (en) Failure detection circuit of noncontact sensor
JP7225694B2 (en) magnetic sensor
US11630130B2 (en) Channel sensitivity matching
JP2010060491A (en) Device for determining operation position
JP2007033270A (en) Sensor circuit and circuit unit
JP2021189041A (en) Rotation angle detector
JP2014235080A (en) Magnetic resistance element and magnetic sensor
JP2014066565A (en) Magnetic sensor
JP2021028607A (en) Magnetic detection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130418

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140325

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141023

R150 Certificate of patent or registration of utility model

Ref document number: 5638900

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees