TWI722128B - Magnetic sensor and magnetic sensor device - Google Patents

Magnetic sensor and magnetic sensor device Download PDF

Info

Publication number
TWI722128B
TWI722128B TW106107312A TW106107312A TWI722128B TW I722128 B TWI722128 B TW I722128B TW 106107312 A TW106107312 A TW 106107312A TW 106107312 A TW106107312 A TW 106107312A TW I722128 B TWI722128 B TW I722128B
Authority
TW
Taiwan
Prior art keywords
magnetic sensor
output
voltage
circuit
resistor
Prior art date
Application number
TW106107312A
Other languages
Chinese (zh)
Other versions
TW201732295A (en
Inventor
深井健太郎
有山稔
Original Assignee
日商艾普凌科有限公司
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 日商艾普凌科有限公司 filed Critical 日商艾普凌科有限公司
Publication of TW201732295A publication Critical patent/TW201732295A/en
Application granted granted Critical
Publication of TWI722128B publication Critical patent/TWI722128B/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/02Measuring direction or magnitude of magnetic fields or magnetic flux
    • G01R33/06Measuring direction or magnitude of magnetic fields or magnetic flux using galvano-magnetic devices
    • G01R33/07Hall effect devices

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Measuring Magnetic Variables (AREA)
  • Measuring Instrument Details And Bridges, And Automatic Balancing Devices (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)
  • Hall/Mr Elements (AREA)

Abstract

本發明提供一種磁感測器及磁感測器裝置,可準確地判定磁感測器裝置的配線的斷線或短路等異常。磁感測器的輸出控制電路具備連接於輸出端子的分壓電路與放大器,所述放大器對與磁感測器的輸出端子連接的MOS電晶體的閘極電壓進行控制,以使分壓電路的電壓與基準電壓變得相等,因此磁感測器的輸出電壓是由基準電壓與分壓電路的分壓比來決定。The present invention provides a magnetic sensor and a magnetic sensor device, which can accurately determine abnormalities such as disconnection or short circuit of the wiring of the magnetic sensor device. The output control circuit of the magnetic sensor includes a voltage divider circuit connected to the output terminal and an amplifier. The amplifier controls the gate voltage of the MOS transistor connected to the output terminal of the magnetic sensor so that the divided voltage The voltage of the circuit becomes equal to the reference voltage, so the output voltage of the magnetic sensor is determined by the voltage division ratio of the reference voltage and the voltage divider circuit.

Description

磁感測器及磁感測器裝置Magnetic sensor and magnetic sensor device

本發明是有關於一種磁感測器(sensor),更詳細而言,是有關於一種在外部上拉(pull up)輸出端子的結構的磁感測器及磁感測器裝置。The present invention relates to a magnetic sensor, and in more detail, it relates to a magnetic sensor and a magnetic sensor device with a structure in which an output terminal is externally pulled up.

磁感測器裝置具備將磁通密度轉換為電信號的磁檢測元件,對根據與設有磁性體的被檢測構件的相對距離的變化而變化的磁通密度、和預先設定的磁通密度閾值的大小進行電性判定,輸出二位準(level)的電壓的檢測信號。在使用磁感測器的開關系統(switching system)、尤其是汽車領域中,為了向汽車的利用者提供安全,要求從功能安全(ISO26262)的觀點建構系統。例如要求消除因磁感測器元件自身的故障或系統內的信號傳輸路徑的故障而進行錯誤的開關動作的疑慮。The magnetic sensor device is equipped with a magnetic detection element that converts the magnetic flux density into an electrical signal, and detects the magnetic flux density that changes according to the change in the relative distance from the detected member provided with a magnetic body, and a preset magnetic flux density threshold. The magnitude of the electrical property is determined, and the detection signal of the two-level voltage is output. In the switching system (switching system) using a magnetic sensor, especially in the automotive field, in order to provide safety to car users, it is required to construct the system from the viewpoint of functional safety (ISO26262). For example, it is required to eliminate the doubt that erroneous switching operations are performed due to the failure of the magnetic sensor element itself or the failure of the signal transmission path in the system.

圖4是習知的磁感測器裝置。磁感測器50包括:包含磁感測器的信號處理電路51、電晶體(transistor)52、定電流電路53及電阻54。判別電路59與磁感測器50共同連接GND,端子IN與磁感測器50的端子OUT連接。進而,磁感測器50的端子IN由上拉電阻58上拉至電壓VDD。Figure 4 is a conventional magnetic sensor device. The magnetic sensor 50 includes a signal processing circuit 51 including a magnetic sensor, a transistor 52, a constant current circuit 53 and a resistor 54. The discrimination circuit 59 and the magnetic sensor 50 are connected to GND in common, and the terminal IN is connected to the terminal OUT of the magnetic sensor 50. Furthermore, the terminal IN of the magnetic sensor 50 is pulled up to the voltage VDD by the pull-up resistor 58.

磁感測器50將比電壓VDD低規定值的高位準值與比電壓GND高規定值的低位準值這二值輸出至端子OUT。判別電路59具有異常檢測功能,即,當輸入電壓位準為這二值附近以外的電壓時判定為異常。The magnetic sensor 50 outputs two values of a high level value lower than the voltage VDD by a predetermined value and a low level value higher than the voltage GND by a predetermined value to the terminal OUT. The discrimination circuit 59 has an abnormality detection function, that is, it is determined to be abnormal when the input voltage level is a voltage outside the vicinity of these two values.

如此,藉由構成為將與電壓VDD或電壓GND不等價的規定電壓位準判斷為正常,從而可容易地檢測輸入端子的斷線等異常。例如,當磁感測器50的端子OUT與判別電路59的端子IN之間的配線發生斷線而成為開路(open)時,判別電路59的輸入位準成為電壓VDD,因此判定為異常。而且,當磁感測器50的端子OUT與判別電路59的端子IN之間的配線短路為電壓GND時,判別電路59的輸入位準成為電壓GND,因此判定為異常。 [現有技術文獻] [專利文獻]In this manner, by determining that the predetermined voltage level that is not equivalent to the voltage VDD or the voltage GND is normal, it is possible to easily detect an abnormality such as a disconnection of the input terminal. For example, when the wiring between the terminal OUT of the magnetic sensor 50 and the terminal IN of the discrimination circuit 59 is disconnected and becomes an open circuit (open), the input level of the discrimination circuit 59 becomes the voltage VDD, and therefore it is determined as abnormal. Furthermore, when the wiring between the terminal OUT of the magnetic sensor 50 and the terminal IN of the discrimination circuit 59 is short-circuited to the voltage GND, the input level of the discrimination circuit 59 becomes the voltage GND, and therefore it is determined to be abnormal. [Prior Art Document] [Patent Document]

專利文獻1:日本專利特開2001-165944號公報 [發明所欲解決之問題]Patent Document 1: Japanese Patent Laid-Open No. 2001-165944 [Problems to be Solved by Invention]

在所述電路結構的情況下,正常時的判別電路59的輸入電壓位準是由電阻54、定電流電路53、電晶體52及上拉電阻58所決定。因而存在下述問題,即,上拉電阻58會因製造偏差而電阻值有所偏差,因此輸入電壓位準會發生變動,從而導致判別電路59產生誤判定。In the case of the circuit structure, the input voltage level of the discrimination circuit 59 in the normal state is determined by the resistor 54, the constant current circuit 53, the transistor 52, and the pull-up resistor 58. Therefore, there is a problem in that the resistance value of the pull-up resistor 58 may vary due to manufacturing variations, and therefore the input voltage level may vary, which may lead to a misjudgment by the discrimination circuit 59.

[解決問題之手段] 為了解決此種問題,本發明的磁感測器的輸出控制電路具備連接於輸出端子的分壓電路與放大器,所述放大器對與磁感測器的輸出端子連接的MOS(Metal Oxide Semiconductor,金屬氧化物半導體)電晶體的閘極電壓進行控制,以使分壓電路的電壓與基準電壓變得相等。 [發明的效果][Means for Solving the Problem] In order to solve this problem, the output control circuit of the magnetic sensor of the present invention includes a voltage divider circuit connected to the output terminal and an amplifier, and the amplifier pair is connected to the output terminal of the magnetic sensor. The gate voltage of the MOS (Metal Oxide Semiconductor) transistor is controlled so that the voltage of the voltage divider circuit becomes equal to the reference voltage. [Effects of the invention]

根據本發明的磁感測器,磁感測器的輸出電壓是由基準電壓與分壓電路的分壓比來決定,因此具有不受上拉電阻的電阻值偏差影響的效果。因而,判別電路可準確地判定磁感測器裝置的配線的斷線或短路等異常。According to the magnetic sensor of the present invention, the output voltage of the magnetic sensor is determined by the voltage division ratio of the reference voltage and the voltage divider circuit, so it has the effect of not being affected by the resistance deviation of the pull-up resistor. Therefore, the discrimination circuit can accurately determine abnormalities such as disconnection or short-circuit of the wiring of the magnetic sensor device.

以下,參照圖式來說明本發明的實施形態。 圖1是表示本發明的磁感測器的第一實施形態的電路圖。 磁感測器裝置包含磁感測器1、上拉電阻18及判別電路19。Hereinafter, embodiments of the present invention will be described with reference to the drawings. Fig. 1 is a circuit diagram showing the first embodiment of the magnetic sensor of the present invention. The magnetic sensor device includes a magnetic sensor 1, a pull-up resistor 18 and a discrimination circuit 19.

第一實施形態的磁感測器1包含磁感測器元件3、磁判定電路4及輸出控制電路10。輸出控制電路10包含MOS開關5、輸出驅動(drive)元件6、放大器(amplifier)7、基準電壓電路8以及作為分壓電路的電阻R1、電阻R2、電阻R3。The magnetic sensor 1 of the first embodiment includes a magnetic sensor element 3, a magnetic determination circuit 4, and an output control circuit 10. The output control circuit 10 includes a MOS switch 5, an output drive element 6, an amplifier 7, a reference voltage circuit 8, and a resistor R1, a resistor R2, and a resistor R3 as a voltage divider circuit.

磁感測器1的輸出端子OUT連接於判別電路19的輸入端子,且經由上拉電阻18而連接於外部電源端子VPU。磁感測器元件3的輸入端子連接於電源端子VDD及GND,輸出端子連接於磁判定電路4的輸入端子。輸出驅動元件6例如包含N通道(channel)MOSFET(Metal Oxide Semiconductor Field Effect Transistor,金屬氧化物半導體場效電晶體),汲極(drain)連接於輸出端子OUT,源極(source)連接於接地端子GND。電阻R1的一端連接於輸出端子OUT,另一端(節點(node)N1)連接於電阻R2的一端。電阻R2的另一端(節點N2)連接於電阻R3的一端。電阻R3的另一端連接於接地端子GND。放大器7的輸出端子連接於輸出驅動元件6的閘極,反相輸入端子連接於基準電壓電路8的輸出端子,非反相輸入端子連接於節點N1。MOS開關5例如包含N通道MOSFET,閘極連接於磁判定電路4的輸出端子,汲極連接於節點N2,源極連接於接地端子GND。The output terminal OUT of the magnetic sensor 1 is connected to the input terminal of the discrimination circuit 19 and is connected to the external power supply terminal VPU via the pull-up resistor 18. The input terminal of the magnetic sensor element 3 is connected to the power supply terminals VDD and GND, and the output terminal is connected to the input terminal of the magnetic determination circuit 4. The output driving element 6 includes, for example, an N-channel MOSFET (Metal Oxide Semiconductor Field Effect Transistor), the drain is connected to the output terminal OUT, and the source is connected to the ground terminal. GND. One end of the resistor R1 is connected to the output terminal OUT, and the other end (node N1) is connected to one end of the resistor R2. The other end of the resistor R2 (node N2) is connected to one end of the resistor R3. The other end of the resistor R3 is connected to the ground terminal GND. The output terminal of the amplifier 7 is connected to the gate of the output driving element 6, the inverting input terminal is connected to the output terminal of the reference voltage circuit 8, and the non-inverting input terminal is connected to the node N1. The MOS switch 5 includes, for example, an N-channel MOSFET, the gate is connected to the output terminal of the magnetic determination circuit 4, the drain is connected to the node N2, and the source is connected to the ground terminal GND.

判別電路19除了對與磁感測器1所輸出的磁通密度相應的高位準值與低位準值進行區別的功能以外,還具有異常檢測功能。異常檢測功能是當所輸入的電壓為高位準值與低位準值的附近時,判定磁感測器裝置為正常,當所輸入的電壓為此以外的電壓區域時,判定磁感測器裝置為異常, 磁感測器元件3將電壓VDD作為電源,輸出與向磁感測器元件輸入的磁通密度相應的電信號。磁感測器元件3例如可使用霍爾(Hall)元件。磁判定電路4對磁感測器元件3所輸出的電信號與預先設定的閾值信號進行比較,並將磁判定結果以電壓VDD與電壓GND這二值電壓而輸出至輸出控制電路10。In addition to the function of distinguishing the high-level value and the low-level value corresponding to the magnetic flux density output by the magnetic sensor 1, the discrimination circuit 19 also has an abnormality detection function. The abnormality detection function is to determine that the magnetic sensor device is normal when the input voltage is in the vicinity of the high level value and the low level value. When the input voltage is outside the voltage range, the magnetic sensor device is determined to be If it is abnormal, the magnetic sensor element 3 uses the voltage VDD as a power source, and outputs an electrical signal corresponding to the magnetic flux density input to the magnetic sensor element. For the magnetic sensor element 3, for example, a Hall element can be used. The magnetic determination circuit 4 compares the electrical signal output by the magnetic sensor element 3 with a preset threshold signal, and outputs the magnetic determination result to the output control circuit 10 as a binary voltage of the voltage VDD and the voltage GND.

當磁判定電路4的輸出為電壓GND時,MOS開關5為斷開(OFF)狀態,節點N2藉由電阻R3而與接地端子GND連接。 另一方面,當磁判定電路4的輸出為電壓VDD時,MOS開關5為導通(ON)狀態,節點N2與接地端子GND連接。When the output of the magnetic determination circuit 4 is the voltage GND, the MOS switch 5 is in an OFF state, and the node N2 is connected to the ground terminal GND through the resistor R3. On the other hand, when the output of the magnetic determination circuit 4 is the voltage VDD, the MOS switch 5 is in an ON state, and the node N2 is connected to the ground terminal GND.

在輸出端子OUT與接地端子GND之間,與分壓電路電性並聯地連接有輸出驅動元件6。輸出驅動元件6為N通道MOSFET,藉由控制閘極電壓,可使汲極電流流經輸出端子OUT與接地端子GND之間。而且,放大器7的非反相輸入端子上連接有節點N1,反相輸入端子上連接有基準電壓電路8,輸出端子連接於輸出驅動元件6的閘極端子,因此控制輸出驅動元件6以使節點N1的電壓等於基準電壓電路8的基準電壓。Between the output terminal OUT and the ground terminal GND, an output driving element 6 is electrically connected in parallel with the voltage divider circuit. The output driving element 6 is an N-channel MOSFET, and by controlling the gate voltage, the drain current can flow between the output terminal OUT and the ground terminal GND. Moreover, the non-inverting input terminal of the amplifier 7 is connected to the node N1, the inverting input terminal is connected to the reference voltage circuit 8, and the output terminal is connected to the gate terminal of the output driving element 6, so the output driving element 6 is controlled so that the node The voltage of N1 is equal to the reference voltage of the reference voltage circuit 8.

若設磁感測器1的輸出端子OUT的輸出電壓為VOUT、基準電壓電路8的基準電壓為VREF,則輸出電壓VOUT根據磁判定結果的情況區分而以二個式來表達。 VOUT=(1+R1/R2)×VREF…(1) VOUT={1+R1/(R2+R3)}×VREF…(2) 式1表示磁判定電路4的輸出為電壓VDD時的輸出電壓VOUT。式2表示磁判定電路4的輸出為電壓GND時的輸出電壓VOUT。If the output voltage of the output terminal OUT of the magnetic sensor 1 is VOUT and the reference voltage of the reference voltage circuit 8 is VREF, the output voltage VOUT is expressed in two formulas according to the situation of the magnetic determination result. VOUT=(1+R1/R2)×VREF…(1) VOUT={1+R1/(R2+R3)}×VREF…(2) Equation 1 represents the output voltage when the output of the magnetic determination circuit 4 is the voltage VDD VOUT. Equation 2 represents the output voltage VOUT when the output of the magnetic determination circuit 4 is the voltage GND.

如此,磁感測器1的輸出電壓VOUT不依存於上拉電阻18的電阻值,因此不會相對於上拉電阻18的偏差而受到影響。因此,可靈活地設定上拉電阻值,因而,作為進一步的效果,藉由加大上拉電阻值,亦可實現磁感測器系統的省電化。In this way, the output voltage VOUT of the magnetic sensor 1 does not depend on the resistance value of the pull-up resistor 18, and therefore will not be affected by the deviation of the pull-up resistor 18. Therefore, the value of the pull-up resistor can be flexibly set, and as a further effect, by increasing the value of the pull-up resistor, the power saving of the magnetic sensor system can also be realized.

以下,表示實現第一實施形態的磁感測器1的具體的電阻值的示例。 求出設外部電源VPU為5.0 V、基準電壓VREF為0.3 V時的、式1的輸出電壓VOUT為4.5 V、式2的輸出電壓VOUT為0.5 V的電路常數。根據式1及式2可知,R1:R2:R3的比率只要設定為7:0.5:10即可。The following shows an example of realizing the specific resistance value of the magnetic sensor 1 of the first embodiment. When the external power supply VPU is 5.0 V and the reference voltage VREF is 0.3 V, the circuit constants such that the output voltage VOUT of Equation 1 is 4.5 V and the output voltage VOUT of Equation 2 is 0.5 V are obtained. From Formula 1 and Formula 2, it can be seen that the ratio of R1:R2:R3 can be set to 7:0.5:10.

更具體而言,由於不限定上拉電阻18的電阻值,因此電阻R1至電阻R3的電阻值越大越理想。若將RPU設為上拉電阻18的電阻值,則其容許值根據式3求出。 RPU>(VPU-VOUT(1))/{VOUT(1)/(R1+R2+R3)}…(3) 例如,若設R1=700 kΩ、R2=50 kΩ、R3=1 MΩ,則上拉電阻18的電阻值RPU只要小於194 kΩ,磁感測器1便可動作。 更現實而言,若考慮到輸出驅動元件6的汲極電流容許範圍,上拉電阻18的電阻值理想的是數十Ω以上。More specifically, since the resistance value of the pull-up resistor 18 is not limited, the larger the resistance value of the resistors R1 to R3, the more ideal it is. If RPU is set as the resistance value of the pull-up resistor 18, its allowable value is calculated according to Equation 3. RPU>(VPU-VOUT(1))/{VOUT(1)/(R1+R2+R3)}...(3) For example, if R1=700 kΩ, R2=50 kΩ, R3=1 MΩ, then As long as the resistance value RPU of the pull-up resistor 18 is less than 194 kΩ, the magnetic sensor 1 can operate. More realistically, considering the allowable range of the drain current of the output drive element 6, the resistance value of the pull-up resistor 18 is desirably several tens of Ω or more.

如以上所說明般,根據第一實施形態的磁感測器1,判別電路19的輸入電壓是由基準電壓與分壓電路的分壓比來決定,因此不受上拉電阻18的電阻值偏差影響,而可準確地判定配線的斷線或短路等異常。 另外,亦可採取根據判別電路19所求出的輸入電壓,以可調整輸出電壓VOUT的方式使分壓電路的電阻為可微調(trimming)的構成。As described above, according to the magnetic sensor 1 of the first embodiment, the input voltage of the discrimination circuit 19 is determined by the voltage division ratio of the reference voltage and the voltage divider circuit, so the resistance value of the pull-up resistor 18 is not affected. Because of the influence of deviation, it is possible to accurately determine abnormalities such as wire breakage or short circuit. In addition, it is also possible to adopt a configuration in which the resistance of the voltage divider circuit can be trimmed so that the output voltage VOUT can be adjusted based on the input voltage obtained by the discrimination circuit 19.

圖2是表示本發明的磁感測器的第二實施形態的電路圖。 磁感測器100包含磁感測器元件3、磁判定電路4及輸出控制電路20。輸出控制電路20包含輸出驅動元件6、放大器7、作為分壓電路的電阻R1及電阻R2、基準電壓電路81、基準電壓電路82以及MOS開關90。Fig. 2 is a circuit diagram showing a second embodiment of the magnetic sensor of the present invention. The magnetic sensor 100 includes a magnetic sensor element 3, a magnetic determination circuit 4 and an output control circuit 20. The output control circuit 20 includes an output driving element 6, an amplifier 7, resistors R1 and R2 as a voltage dividing circuit, a reference voltage circuit 81, a reference voltage circuit 82, and a MOS switch 90.

磁感測器100、判別電路19與上拉電阻18是與第一實施形態同樣地連接,並進行同樣的動作。進而,磁感測器元件3、磁判定電路4、輸出驅動元件6與放大器7是與第一實施形態同樣地連接,並進行同樣的動作,因此省略說明。The magnetic sensor 100, the discrimination circuit 19, and the pull-up resistor 18 are connected in the same manner as in the first embodiment, and perform the same operation. Furthermore, since the magnetic sensor element 3, the magnetic determination circuit 4, the output drive element 6, and the amplifier 7 are connected in the same manner as in the first embodiment and perform the same operations, the description is omitted.

MOS開關90例如包含CMOS電晶體,擇一性地選擇基準電壓電路81或者基準電壓電路82而連接於放大器7的反相輸入端子。MOS開關90具備控制端子,控制端子輸入有磁判定電路4所輸出的二值電壓。The MOS switch 90 includes, for example, a CMOS transistor, and selectively selects the reference voltage circuit 81 or the reference voltage circuit 82 and is connected to the inverting input terminal of the amplifier 7. The MOS switch 90 includes a control terminal, and the binary voltage output from the magnetic determination circuit 4 is input to the control terminal.

當磁判定電路4的輸出為電壓GND時,MOS開關90選擇基準電壓電路81,將基準電壓電路81的輸出端子連接至放大器7的反相輸入端子。 另一方面,當磁判定電路4的輸出為電壓VDD時,MOS開關90選擇基準電壓電路82,將基準電壓電路82的輸出端子連接至放大器7的反相輸入端子。When the output of the magnetic determination circuit 4 is the voltage GND, the MOS switch 90 selects the reference voltage circuit 81 and connects the output terminal of the reference voltage circuit 81 to the inverting input terminal of the amplifier 7. On the other hand, when the output of the magnetic determination circuit 4 is the voltage VDD, the MOS switch 90 selects the reference voltage circuit 82 and connects the output terminal of the reference voltage circuit 82 to the inverting input terminal of the amplifier 7.

設基準電壓電路81所生成的基準電壓為VREF1,基準電壓電路82所生成的基準電壓為VREF2。基準電壓VREF1與基準電壓VREF2是值互不相同的基準電壓。It is assumed that the reference voltage generated by the reference voltage circuit 81 is VREF1, and the reference voltage generated by the reference voltage circuit 82 is VREF2. The reference voltage VREF1 and the reference voltage VREF2 are reference voltages with different values.

若設磁感測器100的輸出端子OUT的輸出電壓為VOUT,則輸出電壓VOUT根據磁判定結果的情況區分而以二個式來表達。 VOUT=(1+R1/R2)×VREF1…(4) VOUT=(1+R1/R2)×VREF2…(5) 式4表示磁判定電路4的輸出為電壓GND時的輸出電壓VOUT。式5表示磁判定電路4的輸出為電壓VDD時的輸出電壓VOUT。Assuming that the output voltage of the output terminal OUT of the magnetic sensor 100 is VOUT, the output voltage VOUT is expressed in two formulas according to the situation of the magnetic determination result. VOUT=(1+R1/R2)×VREF1...(4) VOUT=(1+R1/R2)×VREF2...(5) Equation 4 represents the output voltage VOUT when the output of the magnetic determination circuit 4 is the voltage GND. Equation 5 represents the output voltage VOUT when the output of the magnetic determination circuit 4 is the voltage VDD.

以下,表示實現第二實施形態的磁感測器100的具體的數值例。 求出設外部電源VPU為5.0 V而式4的輸出電壓VOUT為4.5 V、式5的輸出電壓VOUT為0.5 V的電路常數。當以基準電壓VREF1成為3.0 V的方式來設定基準電壓電路81時,根據式4可知,R1:R2的比率只要設定為0.5:1即可。而且,根據式4及式5可知,基準電壓VREF2只要設定為0.33 V即可。Hereinafter, a specific numerical example for realizing the magnetic sensor 100 of the second embodiment is shown. Determine the circuit constants assuming that the external power supply VPU is 5.0 V, the output voltage VOUT of Equation 4 is 4.5 V, and the output voltage VOUT of Equation 5 is 0.5 V. When the reference voltage circuit 81 is set so that the reference voltage VREF1 becomes 3.0 V, it can be seen from Equation 4 that the ratio of R1:R2 only needs to be set to 0.5:1. Furthermore, from Equations 4 and 5, it can be seen that the reference voltage VREF2 only needs to be set to 0.33 V.

圖3是表示本發明的磁感測器的第三實施形態的電路圖。 磁感測器200包含磁感測器元件3、磁判定電路4及輸出控制電路30。 基準電壓電路不同於第二實施形態,包含電阻91、電阻92及電阻93。而且,磁感測器200具備連接外部電源VPU的VDD2端子,VDD2端子連接於電阻93的一端與放大器7的反相輸入端子。電阻93藉由MOS開關90而連接於電阻91與電阻92中的任一個。並且,該些電阻是藉由對電壓VPU進行電阻分壓而獲得基準電壓。Fig. 3 is a circuit diagram showing a third embodiment of the magnetic sensor of the present invention. The magnetic sensor 200 includes a magnetic sensor element 3, a magnetic determination circuit 4 and an output control circuit 30. The reference voltage circuit is different from the second embodiment in that it includes a resistor 91, a resistor 92, and a resistor 93. Furthermore, the magnetic sensor 200 includes a VDD2 terminal connected to an external power supply VPU, and the VDD2 terminal is connected to one end of the resistor 93 and the inverting input terminal of the amplifier 7. The resistor 93 is connected to any one of the resistor 91 and the resistor 92 through the MOS switch 90. In addition, these resistors obtain the reference voltage by dividing the voltage VPU by resistors.

當磁判定電路4的輸出為電壓VDD時,MOS開關90選擇電阻91來與電阻93串聯連接。當磁判定電路4的輸出為電壓GND時,MOS開關90選擇電阻92來與電阻93串聯連接。When the output of the magnetic determination circuit 4 is the voltage VDD, the MOS switch 90 selects the resistor 91 to be connected in series with the resistor 93. When the output of the magnetic determination circuit 4 is the voltage GND, the MOS switch 90 selects the resistor 92 to be connected in series with the resistor 93.

設由外部電源VPU、電阻93及電阻91所生成的基準電壓為VREF1,設由外部電源VPU、電阻93及電阻92所生成的基準電壓為VREF2。基準電壓VREF1與基準電壓VREF2是值互不相同的基準電壓。 若設磁感測器200的輸出端子OUT的輸出電壓為VOUT,則輸出電壓VOUT是與第二實施形態的磁感測器100同樣地由式4與式5表示。Assume that the reference voltage generated by the external power source VPU, the resistor 93 and the resistor 91 is VREF1, and the reference voltage generated by the external power source VPU, the resistor 93 and the resistor 92 is VREF2. The reference voltage VREF1 and the reference voltage VREF2 are reference voltages with different values. Assuming that the output voltage of the output terminal OUT of the magnetic sensor 200 is VOUT, the output voltage VOUT is expressed by Equations 4 and 5 in the same way as the magnetic sensor 100 of the second embodiment.

以下表示實現第三實施形態的磁感測器200的具體的數值例。 求出設外部電源VPU為5.0 V而式4的輸出電壓VOUT為4.5 V、式5的輸出電壓VOUT為0.5 V的電路常數。式4的輸出電壓VOUT與式5的輸出電壓VOUT之比為9:1,因此基準電壓VREF1與基準電壓VREF2之比亦設定為9:1。若設基準電壓VREF1為3.0 V、基準電壓VREF2為0.33 V,則根據式4可知,R1:R2的比率只要設定為0.5:1即可。進而,對於電阻91、電阻92與電阻93,藉由設電阻91為300 kΩ、電阻92為14 kΩ、電阻93為200 kΩ,從而可實現第三實施形態。The following shows a specific numerical example for realizing the magnetic sensor 200 of the third embodiment. Determine the circuit constants assuming that the external power supply VPU is 5.0 V, the output voltage VOUT of Equation 4 is 4.5 V, and the output voltage VOUT of Equation 5 is 0.5 V. The ratio of the output voltage VOUT of Equation 4 to the output voltage VOUT of Equation 5 is 9:1, so the ratio of the reference voltage VREF1 to the reference voltage VREF2 is also set to 9:1. If the reference voltage VREF1 is set to 3.0 V and the reference voltage VREF2 is set to 0.33 V, it can be seen from Equation 4 that the ratio of R1:R2 only needs to be set to 0.5:1. Furthermore, with regard to the resistance 91, the resistance 92, and the resistance 93, the third embodiment can be realized by setting the resistance 91 to 300 kΩ, the resistance 92 to 14 kΩ, and the resistance 93 to 200 kΩ.

如以上所說明般,根據本發明的磁感測器,判別電路19的輸入電壓是由基準電壓與分壓電路的分壓比來決定,因此不會受到上拉電阻18的電阻值偏差影響,而可準確地判定配線的斷線或短路等異常。As explained above, according to the magnetic sensor of the present invention, the input voltage of the discrimination circuit 19 is determined by the voltage division ratio of the reference voltage and the voltage divider circuit, so it will not be affected by the resistance deviation of the pull-up resistor 18 , And can accurately determine abnormalities such as wiring disconnection or short circuit.

1、50、100、200‧‧‧磁感測器3‧‧‧磁感測器元件4‧‧‧磁判定電路5、90‧‧‧MOS開關6‧‧‧輸出驅動元件7‧‧‧放大器8、81、82‧‧‧基準電壓電路10、20、30‧‧‧輸出控制電路18、58‧‧‧上拉電阻19、59‧‧‧判別電路51‧‧‧信號處理電路52‧‧‧電晶體53‧‧‧定電流電路54、91、92、93、R1、R2、R3‧‧‧電阻GND‧‧‧電壓、接地端子IN、VDD2‧‧‧端子N1、N2‧‧‧節點OUT‧‧‧輸出端子VDD‧‧‧電源端子、電壓VPU‧‧‧外部電源端子、外部電源1, 50, 100, 200‧‧‧Magnetic sensor 3‧‧‧Magnetic sensor component 4‧‧‧Magnetic determination circuit 5,90‧‧‧MOS switch 6‧‧‧Output driving component 7‧‧‧Amplifier 8,81,82‧‧‧Reference voltage circuit 10,20,30‧‧‧Output control circuit 18,58‧‧‧Pull-up resistor 19,59‧‧‧Distinguishing circuit 51‧‧‧Signal processing circuit 52‧‧‧ Transistor 53‧‧‧Constant current circuit 54, 91, 92, 93, R1, R2, R3‧‧‧Resistor GND‧‧‧Voltage, ground terminal IN, VDD2‧‧‧Terminal N1, N2‧‧‧Node OUT‧ ‧‧Output terminal VDD‧‧‧Power supply terminal, voltage VPU‧‧‧External power supply terminal, external power supply

圖1是表示本發明的磁感測器的第一實施形態的電路圖。 圖2是表示本發明的磁感測器的第二實施形態的電路圖。 圖3是表示本發明的磁感測器的第三實施形態的電路圖。 圖4是表示習知的磁感測器裝置的電路圖。Fig. 1 is a circuit diagram showing the first embodiment of the magnetic sensor of the present invention. Fig. 2 is a circuit diagram showing a second embodiment of the magnetic sensor of the present invention. Fig. 3 is a circuit diagram showing a third embodiment of the magnetic sensor of the present invention. Fig. 4 is a circuit diagram showing a conventional magnetic sensor device.

1‧‧‧磁感測器 1‧‧‧Magnetic Sensor

3‧‧‧磁感測器元件 3‧‧‧Magnetic sensor components

4‧‧‧磁判定電路 4‧‧‧Magnetic determination circuit

5‧‧‧MOS開關 5‧‧‧MOS switch

6‧‧‧輸出驅動元件 6‧‧‧Output drive components

7‧‧‧放大器 7‧‧‧Amplifier

8‧‧‧基準電壓電路 8‧‧‧Reference voltage circuit

10‧‧‧輸出控制電路 10‧‧‧Output control circuit

18‧‧‧上拉電阻 18‧‧‧Pull-up resistor

19‧‧‧判別電路 19‧‧‧Distinguishing circuit

R1、R2、R3‧‧‧電阻 R1, R2, R3‧‧‧Resistor

GND‧‧‧電壓、接地端子 GND‧‧‧Voltage, ground terminal

N1、N2‧‧‧節點 N1、N2‧‧‧node

OUT‧‧‧輸出端子 OUT‧‧‧Output terminal

VDD‧‧‧電源端子、電壓 VDD‧‧‧Power terminal, voltage

VPU‧‧‧外部電源端子、外部電源 VPU‧‧‧External power supply terminal, external power supply

Claims (3)

一種磁感測器,其與判別電路的輸入端子連接的輸出端子利用上拉電阻而連接於外部電源端子,所述磁感測器的特徵在於,所述磁感測器包含磁感測器元件、輸入所述磁感測器元件的輸出電壓的判定電路、及將所述判定電路的信號輸出至所述磁感測器的輸出端子的輸出控制電路,所述輸出控制電路包括:第1電阻、第2電阻及第3電阻,串聯連接於所述磁感測器的輸出端子與接地端子之間;第1金屬氧化物半導體電晶體,所述第1金屬氧化物半導體電晶體的閘極連接於所述判定電路的輸出端子,所述第1金屬氧化物半導體電晶體的汲極連接於所述第2電阻與所述第3電阻的接點,所述第1金屬氧化物半導體電晶體的源極連接於所述接地端子;放大器,反相輸入端子連接於基準電壓電路的輸出端子,非反相輸入端子連接於所述第1電阻與所述第2電阻的接點;以及第2金屬氧化物半導體電晶體,所述第2金屬氧化物半導體電晶體的閘極連接於所述放大器的輸出端子,所述第2金屬氧化物半導體電晶體的汲極連接於所述磁感測器的輸出端子,所述第2金屬氧化物半導體電晶體的源極連接於所述接地端子,其中所述輸出控制電路以至少二值的電壓,將所述判定電路 的所述信號輸出至所述磁感測器的所述輸出端子。 A magnetic sensor, wherein an output terminal connected to an input terminal of a discrimination circuit is connected to an external power supply terminal by a pull-up resistor. The magnetic sensor is characterized in that the magnetic sensor includes a magnetic sensor element A determination circuit for inputting the output voltage of the magnetic sensor element, and an output control circuit for outputting a signal of the determination circuit to the output terminal of the magnetic sensor, the output control circuit including: a first resistor , The second resistor and the third resistor are connected in series between the output terminal and the ground terminal of the magnetic sensor; the first metal oxide semiconductor transistor, the gate of the first metal oxide semiconductor transistor is connected At the output terminal of the determination circuit, the drain of the first metal oxide semiconductor transistor is connected to the contact point of the second resistor and the third resistor, and the first metal oxide semiconductor transistor The source is connected to the ground terminal; the amplifier, the inverting input terminal is connected to the output terminal of the reference voltage circuit, and the non-inverting input terminal is connected to the contact point of the first resistor and the second resistor; and a second metal An oxide semiconductor transistor, the gate of the second metal oxide semiconductor transistor is connected to the output terminal of the amplifier, and the drain of the second metal oxide semiconductor transistor is connected to the magnetic sensor Output terminal, the source of the second metal oxide semiconductor transistor is connected to the ground terminal, wherein the output control circuit uses at least two-valued voltage to connect the determination circuit The signal of is output to the output terminal of the magnetic sensor. 一種磁感測器,其與判別電路的輸入端子連接的輸出端子利用上拉電阻而連接於外部電源端子,所述磁感測器的特徵在於,所述磁感測器包含磁感測器元件、輸入所述磁感測器元件的輸出電壓的判定電路、及將所述判定電路的信號輸出至所述磁感測器的輸出端子的輸出控制電路,所述輸出控制電路包括:第1電阻及第2電阻,串聯連接於所述磁感測器的輸出端子與接地端子之間;放大器,非反相輸入端子連接於所述第1電阻與所述第2電阻的接點;開關,控制端子連接於所述判定電路的輸出端子,第一輸入端子連接於第一基準電壓電路,第二輸入端子連接於第二基準電壓電路,輸出端子連接於所述放大器的反相輸入端子;以及金屬氧化物半導體電晶體,所述放大器的輸出端子連接於閘極,汲極連接於所述磁感測器的輸出端子,源極連接於所述接地端子,其中所述輸出控制電路以至少二值的電壓,將所述判定電路的所述信號輸出至所述磁感測器的所述輸出端子。 A magnetic sensor, wherein an output terminal connected to an input terminal of a discrimination circuit is connected to an external power supply terminal by a pull-up resistor. The magnetic sensor is characterized in that the magnetic sensor includes a magnetic sensor element A determination circuit for inputting the output voltage of the magnetic sensor element, and an output control circuit for outputting a signal of the determination circuit to the output terminal of the magnetic sensor, the output control circuit including: a first resistor And a second resistor, connected in series between the output terminal and the ground terminal of the magnetic sensor; an amplifier, a non-inverting input terminal connected to the contact point of the first resistor and the second resistor; switch, control The terminal is connected to the output terminal of the determination circuit, the first input terminal is connected to the first reference voltage circuit, the second input terminal is connected to the second reference voltage circuit, and the output terminal is connected to the inverting input terminal of the amplifier; and metal An oxide semiconductor transistor, the output terminal of the amplifier is connected to the gate, the drain is connected to the output terminal of the magnetic sensor, and the source is connected to the ground terminal, wherein the output control circuit has at least two values The voltage of the determination circuit is output to the output terminal of the magnetic sensor. 一種磁感測器裝置,其特徵在於包括:如申請專利範圍第1項或第2項所述的磁感測器; 所述判別電路,在輸入端子連接有所述磁感測器的輸出端子;以及所述上拉電阻,連接於所述磁感測器的輸出端子與所述外部電源端子之間。A magnetic sensor device, characterized by comprising: the magnetic sensor as described in item 1 or item 2 of the scope of patent application; In the discrimination circuit, the output terminal of the magnetic sensor is connected to the input terminal; and the pull-up resistor is connected between the output terminal of the magnetic sensor and the external power supply terminal.
TW106107312A 2016-03-08 2017-03-07 Magnetic sensor and magnetic sensor device TWI722128B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2016044661 2016-03-08
JP2016-044661 2016-03-08
JP2017006526A JP6797035B2 (en) 2016-03-08 2017-01-18 Magnetic sensor and magnetic sensor device
JP2017-006526 2017-01-18

Publications (2)

Publication Number Publication Date
TW201732295A TW201732295A (en) 2017-09-16
TWI722128B true TWI722128B (en) 2021-03-21

Family

ID=59857481

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106107312A TWI722128B (en) 2016-03-08 2017-03-07 Magnetic sensor and magnetic sensor device

Country Status (3)

Country Link
JP (1) JP6797035B2 (en)
KR (1) KR102275669B1 (en)
TW (1) TWI722128B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102122677B1 (en) * 2019-02-06 2020-06-12 주식회사 에프램 A Sensing Signal Control Circuit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137287A (en) * 1997-06-27 2000-10-24 Mitsubishi Denki Kabushiki Kaisha Physical parameter sensor having a self-testing circuit which recognizes an abnormal sensor state
JP2001165944A (en) * 1999-09-30 2001-06-22 Toyota Motor Corp Method of detecting abnormality of sensor
TWI279524B (en) * 2005-03-02 2007-04-21 Tetra Laval Holdings & Finance Magnetic sensors
CN102270006A (en) * 2011-06-28 2011-12-07 上海宏力半导体制造有限公司 Voltage adjusting circuit
TW201308819A (en) * 2011-07-21 2013-02-16 Sony Corp Detection device, power reception device, power transmission device, contactless power transmission system, and detection method
CN104571242A (en) * 2013-10-15 2015-04-29 精工电子有限公司 Voltage regulator

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2884985B2 (en) * 1993-04-06 1999-04-19 住友電気工業株式会社 Rotation sensor failure detection device
JP2005265751A (en) * 2004-03-22 2005-09-29 Renesas Technology Corp Magnetic detection circuit
JP4745734B2 (en) * 2005-06-30 2011-08-10 株式会社リコー System power supply device and operation control method thereof
JP2013012000A (en) * 2011-06-29 2013-01-17 Mitsumi Electric Co Ltd Semiconductor integrated circuit for regulator
US8990594B2 (en) * 2012-08-28 2015-03-24 Energy Pass Incorporation Apparatus for measuring a remaining power of a battery includes a first memory for storing a routine code and a second memory for storing an exception code

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137287A (en) * 1997-06-27 2000-10-24 Mitsubishi Denki Kabushiki Kaisha Physical parameter sensor having a self-testing circuit which recognizes an abnormal sensor state
JP2001165944A (en) * 1999-09-30 2001-06-22 Toyota Motor Corp Method of detecting abnormality of sensor
TWI279524B (en) * 2005-03-02 2007-04-21 Tetra Laval Holdings & Finance Magnetic sensors
CN102270006A (en) * 2011-06-28 2011-12-07 上海宏力半导体制造有限公司 Voltage adjusting circuit
TW201308819A (en) * 2011-07-21 2013-02-16 Sony Corp Detection device, power reception device, power transmission device, contactless power transmission system, and detection method
CN104571242A (en) * 2013-10-15 2015-04-29 精工电子有限公司 Voltage regulator

Also Published As

Publication number Publication date
JP6797035B2 (en) 2020-12-09
KR20170104941A (en) 2017-09-18
KR102275669B1 (en) 2021-07-09
TW201732295A (en) 2017-09-16
JP2017161505A (en) 2017-09-14

Similar Documents

Publication Publication Date Title
US8410821B2 (en) Output current detecting circuit and transmission circuit
JP6180815B2 (en) Voltage regulator
US20120194947A1 (en) Voltage regulator
US7772815B2 (en) Constant voltage circuit with higher speed error amplifier and current limiting
CN106066419B (en) Current detection circuit
US10495697B2 (en) Magnetic sensor and magnetic sensor device
US10505361B2 (en) Integrated circuit with reverse current protection and power source disconnection detection
TWI722128B (en) Magnetic sensor and magnetic sensor device
KR20170001184U (en) Sensing circuit, hybrid drive circuit, and sensor assembly
JP2021169762A (en) Switch operation device and power window control device
CN104181966B (en) Voltage-stablizer
US10366977B2 (en) Overheat protection circuit, and semiconductor integrated circuit device and vehicle therewith
CN105738002B (en) Overheat detection circuit and semiconductor device
JP6658269B2 (en) Overcurrent detection circuit
JP4149440B2 (en) Protection circuit for analog sensors
JP6808990B2 (en) Semiconductor physical quantity sensor device
US11378598B2 (en) Semiconductor integrated circuit device and current detection circuit
KR20170113198A (en) Current detection circuit
KR101997360B1 (en) Apparatus for detecting disconnection of inductive sensor
JP4908889B2 (en) Low voltage detection circuit
JP6229040B2 (en) Semiconductor integrated circuit device and sensing module having the same
WO2014125846A1 (en) Magnetic sensor
JP2015186349A (en) overcurrent detection circuit
JP2015046543A (en) Semiconductor integrated circuit device