Magnetic sensor

By using the magnetic field generator of exchange-coupled ferromagnetic and antiferromagnetic materials in the magnetic sensor, the free layer magnetization direction of adjacent magnetoresistive effect elements is ensured to be different, and the detection accuracy and reliability of the magnetic sensor is solved when there is no object magnetic field, and the detection accuracy and reliability are improved.

CN120403718APending Publication Date: 2025-08-01TDK CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510126106.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-31
Filing Date
2025-01-27
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the existing magnetic sensors, the magnetization directions of the two adjacent magnetoresistive effect elements are difficult to maintain different directions when there is no object magnetic field, resulting in insufficient detection accuracy and reliability.

Method used

A magnetic field generator containing a ferromagnetic material and an antiferromagnetic material is used to generate a biased magnetic field through exchange coupling to ensure that the free layer magnetization direction of adjacent magnetoresistive effect elements remains different when there is no object magnetic field. The first and second magnetic field generators respectively apply magnetic field components in different directions to the first and second magnetoresistive effect elements.

Benefits of technology

Under the condition of object-free magnetic field, effective distinction of the magnetization direction of the free layer of adjacent magnetoresistive effect elements is achieved, and the detection accuracy and reliability of the magnetic sensor are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120403718A_ABST
    Figure CN120403718A_ABST
Patent Text Reader

Abstract

The magnetic sensor includes a first MR element, a second MR element, a first magnetic field generator, and a second magnetic field generator. Each of the first magnetic field generating body and the second magnetic field generating body includes a ferromagnetic part and an antiferromagnetic part that is exchange-coupled to the ferromagnetic part. The first magnetic field generator is configured so as to generate a first magnetic field including a first component in a first direction, and to apply the first component to the first MR element. The second magnetic field generator is configured so as to generate a second magnetic field including a second component in the second direction, and to apply the second component to the first MR element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a magnetic sensor configured to apply a bias magnetic field to a magnetoresistive effect element. Background Art

[0002] In recent years, magnetic sensors have been used in various applications. Sometimes, a magnetic sensor is used in some applications, and the magnetic sensor uses a spin valve type magnetoresistive effect element provided on a substrate. The spin valve type magnetoresistive effect element has a magnetization fixed layer in which the direction of magnetization is fixed, a free layer in which the direction of magnetization can change according to the direction of an object magnetic field, and a spacer layer disposed between the magnetization fixed layer and the free layer.

[0003] There is a case where a certain magnetic sensor includes a unit that applies a bias magnetic field to a magnetoresistive effect element.

[0004] Japanese Unexamined Patent Application Publication No. 2015-125020 and Chinese Patent Application Publication No. 105988092A disclose a magnetic sensor that includes a magnetoresistive effect element and two magnetic field generators configured to sandwich the magnetoresistive effect element.

[0005] However, in a magnetic sensor, there is a requirement that when there is no object magnetic field, the magnetization directions of the free layers of two adjacent magnetoresistive effect elements are different from each other. Summary of the Invention

[0006] One object of the present invention is to provide a magnetic sensor capable of making the magnetization directions of the free layers of two adjacent magnetoresistive effect elements different from each other by using magnetic field generators.

[0007] A magnetic sensor according to one embodiment of the present invention includes: a first magnetoresistive effect element and a second magnetoresistive effect element, each including a free layer in which the direction of magnetization can change according to a magnetic field to be detected, that is, an object magnetic field; a first magnetic field generator including a first ferromagnetic portion containing a ferromagnetic material and a first antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the first ferromagnetic portion, and configured to generate a first magnetic field including a first component in a first direction and apply the first component to the first magnetoresistive effect element; and a second magnetic field generator including a second ferromagnetic portion containing a ferromagnetic material and a second antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the second ferromagnetic portion, and configured to generate a second magnetic field including a second component in a second direction different from the first direction and apply the second component to the second magnetoresistive effect element. There is no group of other magnetoresistive effect elements and other magnetic field generators capable of detecting magnetoresistive effects between a first group of the first magnetoresistive effect element and the first magnetic field generator and a second group of the second magnetoresistive effect element and the second magnetic field generator.

[0008] In the magnetic sensor according to one embodiment of the present invention, the first magnetic field generating body is configured to apply a first component of a first magnetic field to the first magnetoresistive element, and the second magnetic field generating body is configured to apply a second component of a second magnetic field to the second magnetoresistive element. Thus, according to the present invention, it is possible to make the magnetization directions of the free layers of the first magnetoresistive element and the second magnetoresistive element different from each other.

[0009] Other objects, features, and advantages of the present invention will become fully apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 is a perspective view of a magnetic sensor device including the magnetic sensor according to the first embodiment of the present invention.

[0011] Figure 2 is a functional block diagram showing the structure of the magnetic sensor device in the first embodiment of the present invention.

[0012] Figure 3 is a circuit diagram showing the circuit structure of the magnetic sensor according to the first embodiment of the present invention.

[0013] Figure 4 is a perspective view of a part of the first detection circuit in the first embodiment of the present invention.

[0014] Figure 5 is a top view of a part of the first detection circuit in the first embodiment of the present invention.

[0015] Figure 6 is a top view of a part of the second detection circuit in the first embodiment of the present invention.

[0016] Figure 7 is a top view of the main part of the magnetic sensor according to the first embodiment of the present invention.

[0017] Figure 8 is showing Figure 7 a cross-sectional view of a part of the cross-section at the position indicated by line 8-8 in

[0018] Figure 9 is a top view of a process in the manufacturing method of the magnetic sensor according to the first embodiment of the present invention.

[0019] Figure 10 is showing the next Figure 9 process top view.

[0020] Figure 11 is showing the next Figure 10 process top view.

[0021] Figure 12 It represents a top view of the subsequent Figure 11 process step.

[0022] Figure 13 It represents a top view of the subsequent Figure 12 process step.

[0023] Figure 14A It represents a second example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0024] Figure 14B It represents a third example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0025] Figure 14C It represents a fourth example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0026] Figure 15A It represents a fifth example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0027] Figure 15B It represents a sixth example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0028] Figure 15C It represents a seventh example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0029] Figure 16A It represents an eighth example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0030] Figure 16B It represents a ninth example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0031] Figure 16C It represents a tenth example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0032] Figure 17A It represents an eleventh example of the top view showing the configuration of the resistance portion and the magnetization direction of the ferromagnetic portion of the magnetic field generating body in the first embodiment of the present invention.

[0033] Figure 17B This is a top view showing the twelfth example of the configuration of the resistance part and the magnetization direction of the ferromagnetic part of the magnetic field generating body in the first embodiment of the present invention.

[0034] Figure 18 This is a cross-sectional view showing the main part of the first modified example of the magnetic sensor according to the first embodiment of the present invention.

[0035] Figure 19 This is a cross-sectional view showing the main part of the second modified example of the magnetic sensor according to the first embodiment of the present invention.

[0036] Figure 20 This is a cross-sectional view showing the main part of the third modified example of the magnetic sensor according to the first embodiment of the present invention.

[0037] Figure 21 This is a cross-sectional view showing the main part of the fourth modified example of the magnetic sensor according to the first embodiment of the present invention.

[0038] Figure 22 This is a cross-sectional view showing the main part of the fifth modified example of the magnetic sensor according to the first embodiment of the present invention.

[0039] Figure 23 This is a top view showing the main part of the magnetic sensor according to the second embodiment of the present invention.

[0040] Figure 24 This is showing Figure 23 A cross-sectional view of a part of the cross-section at the position indicated by the line 24-24 in

[0041] Figure 25 This is a top view showing the main part of the magnetic sensor according to the third embodiment of the present invention.

[0042] Figure 26 This is showing Figure 25 A cross-sectional view of a part of the cross-section at the position indicated by the line 26-26 in

[0043] Figure 27 This is a top view showing one process in the manufacturing method of the magnetic sensor according to the third embodiment of the present invention.

[0044] Figure 28 This is showing the subsequent Figure 27 Process top view.

[0045] Figure 29 This is showing the subsequent Figure 28 Process top view.

[0046] Figure 30 This is showing the subsequent Figure 29 Process top view.

[0047] Figure 31 It is a cross-sectional view of a main part showing a modified example of a magnetic sensor according to a third embodiment of the present invention.

[0048] Figure 32 It is a top view of a main part of a magnetic sensor according to a fourth embodiment of the present invention.

[0049] Figure 33 It shows Figure 32 A cross-sectional view of a part of the cross-section at the position indicated by line 33-33 in

[0050] Figure 34 It is a top view of a main part of a first modified example of a magnetic sensor according to a fourth embodiment of the present invention.

[0051] Figure 35 It is a cross-sectional view of a main part of a second modified example of a magnetic sensor according to a fourth embodiment of the present invention.

[0052] Figure 36 It is a cross-sectional view of a main part of a third modified example of a magnetic sensor according to a fourth embodiment of the present invention.

[0053] Figure 37 It is a perspective view of a magnetic sensor system including a magnetic sensor according to a fifth embodiment of the present invention.

[0054] Figure 38 It is a circuit diagram showing the circuit structure of a magnetic sensor according to a fifth embodiment of the present invention.

[0055] Figure 39 It is a perspective view of a part of a magnetic sensor according to a fifth embodiment of the present invention.

[0056] Figure 40 It is a top view of a part of a magnetic sensor according to a fifth embodiment of the present invention.

[0057] Figure 41 It is a side view of a part of a magnetic sensor according to a fifth embodiment of the present invention.

[0058] Figure 42 It is a top view of a main part of a magnetic sensor according to a fifth embodiment of the present invention.

[0059] Figure 43 It shows Figure 42 A cross-sectional view of a part of the cross-section at the position indicated by line 43-43 in

[0060] Figure 44 It shows Figure 42 A cross-sectional view of a part of the cross-section at the position indicated by line 44-44 in Detailed implementation mode

[0061] [First implementation mode]

[0062] Hereinafter, with reference to the accompanying drawings, the implementation modes of the present invention will be described in detail. First, with reference to Figure 1 and Figure 2 , the structure of the magnetic sensor device including the magnetic sensor of the first implementation mode of the present invention will be described. Figure 1 is a perspective view showing the magnetic sensor device in the present implementation mode. Figure 2 is a functional block diagram showing the structure of the magnetic sensor device in the present implementation mode.

[0063] The magnetic sensor device 100 in the present implementation mode includes the magnetic sensor 1 and the processor 2 of the present implementation mode. The magnetic sensor 1 is configured to detect the magnetic field of the detection object of the magnetic sensor 1, that is, the object magnetic field, and generate at least one detection signal. The magnetic sensor 1 can be a geomagnetic sensor for detecting geomagnetism, an angular sensor for detecting a rotating magnetic field or a magnetic sensor for a magnetic encoder, or a magnetic sensor for a current sensor for detecting the magnetic field generated by a detected current.

[0064] The processor 2 is configured to generate at least one detection value having a corresponding relationship with the object magnetic field based on at least one detection signal. The processor 2 is constituted by, for example, an application specific integrated circuit (ASIC).

[0065] The magnetic sensor 1 and the processor 2 each have the form of a chip having a rectangular parallelepiped shape. The magnetic sensor 1 has an upper surface 1a and a lower surface 1b located on opposite sides, and four side surfaces connecting the upper surface 1a and the lower surface 1b. The processor 2 includes an upper surface 2a and a lower surface 2b located on opposite sides, and four side surfaces connecting the upper surface 2a and the lower surface 2b. The magnetic sensor 1 is mounted on the upper surface 2a of the processor 2 in a posture where the lower surface 1b of the magnetic sensor 1 faces the upper surface 2a of the processor 2. The magnetic sensor 1 is joined to the processor 2 by, for example, an adhesive.

[0066] Here, as Figure 1 shown, the X direction, the Y direction, and the Z direction are defined. The X direction, the Y direction, and the Z direction are orthogonal to each other. In the present implementation mode, the direction perpendicular to the upper surface 1a of the magnetic sensor 1, that is, the direction from the lower surface 1b of the magnetic sensor 1 toward the upper surface 1a, is set as the Z direction. In addition, the direction opposite to the X direction is set as the -X direction, the direction opposite to the Y direction is set as the -Y direction, and the direction opposite to the Z direction is set as the -Z direction.

[0067] Hereinafter, a position in front of the reference position in the Z direction is referred to as "above", and a position on the opposite side of the "above" with respect to the reference position is referred to as "below". In addition, regarding the components of the magnetic sensor 1, the surface at one end in the Z direction is referred to as the "upper surface", and the surface at one end in the -Z direction is referred to as the "lower surface". In addition, the expression "when viewed from a specified direction (for example, the Z direction)" means observing an object from a position separated in a specified direction or in a direction parallel to the specified direction.

[0068] The magnetic sensor 1 has a plurality of first pads (electrode pads) provided on the upper surface 1a. The processor 2 has a plurality of second pads (electrode pads) provided on the upper surface 2a. In the magnetic sensor 1, two corresponding pads among the plurality of first pads and the plurality of second pads are connected to each other by bonding wires.

[0069] The magnetic sensor 1 includes a first detection circuit 10 and a second detection circuit 20. The first and second detection circuits 10 and 20 and the processor 2 are connected via the plurality of first pads, the plurality of second pads, and the plurality of bonding wires.

[0070] The first and second detection circuits 10 and 20 each include a plurality of magnetic detection elements. In the present embodiment, in particular, the plurality of magnetic detection elements are a plurality of magnetoresistive effect elements. Hereinafter, the magnetoresistive effect element is referred to as an MR element.

[0071] The first detection circuit 10 detects a component of the target magnetic field in a direction parallel to the X direction and generates at least one first detection signal having a corresponding relationship with the component. The second detection circuit 20 detects a component of the target magnetic field in a direction parallel to the Y direction and generates at least one second detection signal having a corresponding relationship with the component.

[0072] Next, with reference to Figure 3 the circuit structure of the magnetic sensor 1 will be described. Figure 3 is a circuit diagram showing the circuit structure of the magnetic sensor 1.

[0073] The first detection circuit 10 includes four resistor portions R11, R12, R13, R14, a power supply port V1, a ground port G1, and two output ports E11, E12. The resistor portion R11 is provided between the power supply port V1 and the output port E11. The resistor portion R12 is provided between the output port E11 and the ground port G1. The resistor portion R13 is provided between the output port E12 and the ground port G1. The resistor portion R14 is provided between the power supply port V1 and the output port E12. A voltage or current of a specified magnitude is applied to the power supply port V1. The ground port G1 is grounded.

[0074] The second detection circuit 20 includes four resistor parts R21, R22, R23, R24, a power supply port V2, a ground port G2, and two output ports E21, E22. The resistor part R21 is disposed between the power supply port V2 and the output port E21. The resistor part R22 is disposed between the output port E21 and the ground port G2. The resistor part R23 is disposed between the output port E22 and the ground port G2. The resistor part R24 is disposed between the power supply port V2 and the output port E22. A voltage or current of a specified magnitude is applied to the power supply port V2. The ground port G2 is grounded.

[0075] Next, Figures 4 - 6 the structures of the first and second detection circuits 10 and 20 will be described respectively. Figure 4 is a perspective view showing a part of the first detection circuit 10. Figure 5 is a top view showing a part of the first detection circuit 10. Figure 6 is a top view showing a part of the second detection circuit 20.

[0076] The magnetic sensor 1 further includes a substrate 30. The magnetic sensor 1 is formed by forming a plurality of components other than the substrate 30 on the substrate 30. The first detection circuit 10 and the second detection circuit 20 are provided on the substrate 30. The resistor parts R11 to R14 each include a plurality of MR elements 50A. The resistor parts R21 to R24 each include a plurality of MR elements 50B.

[0077] The plurality of MR elements 50A constituting the resistor part R11 are disposed between the power supply port V1 and the output port E11 in the circuit structure. The plurality of MR elements 50A constituting the resistor part R12 are disposed between the output port E11 and the ground port G1 in the circuit structure. The plurality of MR elements 50A constituting the resistor part R13 are disposed between the output port E12 and the ground port G1 in the circuit structure. The plurality of MR elements 50A constituting the resistor part R14 are disposed between the power supply port V1 and the output port E12 in the circuit structure.

[0078] The plurality of MR elements 50B constituting the resistor part R21 are disposed between the power supply port V2 and the output port E21 in the circuit structure. The plurality of MR elements 50B constituting the resistor part R22 are disposed between the output port E21 and the ground port G2 in the circuit structure. The plurality of MR elements 50B constituting the resistor part R23 are disposed between the output port E2 and the ground port G2 in the circuit structure. The plurality of MR elements 50B constituting the resistor part R24 are disposed between the power supply port V2 and the output port E22 in the circuit structure.

[0079] Figure 5Shows a first example of the arrangement of the resistance portions R11 to R14 in the substrate 30. In this example, the resistance portion R12 is arranged in front of the resistance portion R11 in the X direction. The resistance portion R13 is arranged in front of the resistance portion R12 in the Y direction. The resistance portion R14 is arranged in front of the resistance portion R11 in the Y direction.

[0080] Figure 6 Shows a first example of the arrangement of the resistance portions R21 to R24 in the substrate 30. In this example, the resistance portion R22 is arranged in front of the resistance portion R21 in the Y direction. The resistance portion R23 is arranged in front of the resistance portion R22 in the -X direction. The resistance portion R24 is arranged in front of the resistance portion R21 in the -X direction.

[0081] Subsequently, multiple other examples of the arrangements of the resistance portions R11 to R14 and R21 to R24 in the substrate 30 will be described.

[0082] Each of the resistance portions R11 to R14 further includes a plurality of lower electrodes 61 and a plurality of upper electrodes 62. As Figure 4 shown, each of the plurality of lower electrodes 61 electrically connects two MR elements 50A adjacent in a direction parallel to the X direction. Each of the plurality of upper electrodes 62 is arranged above the two lower electrodes 61 and electrically connects the adjacent two MR elements 50A. Thus, a plurality of MR elements 50A arranged in a row in the direction parallel to the X direction are connected in series.

[0083] Each of the resistance portions R11 to R14 further includes a plurality of connection electrodes (not shown). In each of the resistance portions R11 to R14, the plurality of connection electrodes electrically connect the plurality of lower electrodes 61 or the plurality of upper electrodes 62 so that the groups of the plurality of MR elements 50A arranged in a row are connected in series. With this structure, each of the resistance portions R11 to R14 includes a plurality of lower electrodes 61, a plurality of upper electrodes 62, and a plurality of MR elements 50A connected in series by the plurality of connection electrodes.

[0084] The above description of the connection relationship of the plurality of MR elements 50A basically also applies to the plurality of MR elements 50B of each of the resistance portions R21 to R24. If the plurality of MR elements 50A, the X direction, and the Y direction in the above description of the connection relationship of the plurality of MR elements 50A are respectively replaced with the plurality of MR elements 50B, the Y direction, and the X direction, it becomes a description of the connection relationship of the plurality of MR elements 50B.

[0085] The magnetic sensor 1 further includes a plurality of magnetic field generators 70A and a plurality of magnetic field generators 70B. The plurality of magnetic field generators 70A includes pairs of the plurality of magnetic field generators 70A each composed of two magnetic field generators 70A. The above two magnetic field generators 70A are arranged at a predetermined interval in a direction parallel to the Y direction with a MR element 50A sandwiched therebetween. The two magnetic field generators 70A are configured to apply a bias magnetic field to a MR element 50A located therebetween. The bias magnetic field is a part of the magnetic field generated by the magnetic field generator 70A and includes, as a main component, a component in a direction parallel to the Y direction. At least the main component of the bias magnetic field is applied to the MR element 50A.

[0086] The plurality of magnetic field generators 70B includes pairs of the plurality of magnetic field generators 70B each composed of two magnetic field generators 70B. The above two magnetic field generators 70B are arranged at a predetermined interval in a direction parallel to the X direction with a MR element 50B sandwiched therebetween. The two magnetic field generators 70B are configured to apply a bias magnetic field to a MR element 50B located therebetween. The bias magnetic field is a part of the magnetic field generated by the magnetic field generator 70B and includes, as a main component, a component in a direction parallel to the X direction. At least the main component of the bias magnetic field is applied to the MR element 50B.

[0087] As Figure 4 shown, each of the plurality of magnetic field generators 70A may also be sandwiched between the lower electrode 61 and the upper electrode 62. Although not shown, each of the plurality of magnetic field generators 70B may also be sandwiched between the lower electrode 61 and the upper electrode 62.

[0088] In the present embodiment, each of the plurality of MR elements 50A and the plurality of MR elements 50B is a spin valve type MR element. The spin valve type MR element may also include a magnetization fixed layer with a fixed magnetization direction, a free layer whose magnetization direction can vary according to the direction and intensity of the target magnetic field, and a spacer layer disposed between the magnetization fixed layer and the free layer. The spin valve type MR element may be a TMR (tunnel magnetoresistance effect) element or a GMR (giant magnetoresistance effect) element. In the TMR element, the spacer layer is a tunnel barrier layer. In the GMR element, the spacer layer is a non-magnetic conductive layer. In the spin valve type MR element, the resistance value varies according to the angle formed by the magnetization direction of the free layer relative to the magnetization direction of the magnetization fixed layer. When the angle is 0°, the resistance value becomes the minimum value, and when the angle is 180°, the resistance value becomes the maximum value. In each MR element, the free layer has a shape anisotropy in which the direction of the easy magnetization axis becomes orthogonal to the magnetization direction of the magnetization fixed layer.

[0089] A bias magnetic field is used, for example, to cause an MR element to linearly respond to a change in the intensity of an object magnetic field. Further, in a magnetic sensor using a spin valve type MR element, the bias magnetic field is also used to single-domain magnetize a free layer and direct the magnetization direction of the free layer in a certain direction when there is no object magnetic field. However, in a magnetic sensor, there is a requirement that the magnetization directions of the free layers of two adjacent MR elements are different from each other when there is no object magnetic field. Conventionally, for such a requirement, a magnetic field generating body formed by laminating an antiferromagnetic layer and a ferromagnetic layer has not been considered for application.

[0090] Next, refer to Figure 3 、 Figure 5 and Figure 6 to describe the magnetization direction of the magnetization fixing layer and the direction of the bias magnetic field. In Figure 3 , a plurality of solid arrows respectively depicted so as to overlap with the resistance portions R11 to R14, R21 to R24 represent the magnetization directions of the magnetization fixing layers in the respective resistance portions R11 to R14, R21 to R24. In Figure 5 , a plurality of arrows depicted so as to overlap with the plurality of MR elements 50A of the respective resistance portions R11 to R14 represent the magnetization directions of the magnetization fixing layers in the respective resistance portions R11 to R14. In Figure 6 , a plurality of arrows depicted so as to overlap with the plurality of MR elements 50B of the respective resistance portions R21 to R24 represent the magnetization directions of the magnetization fixing layers in the respective resistance portions R21 to R24.

[0091] In Figure 3 and Figure 5 shown in the example, the direction of the main component of the magnetization of the magnetization fixing layer in each of the resistance portions R11, R13 is the X direction. The direction of the main component of the magnetization of the magnetization fixing layer in each of the resistance portions R12, R14 is the -X direction. The free layers in the respective resistance portions R11 to R14 have shape anisotropy in which the direction of the easy magnetization axis is parallel to the Y direction.

[0092] In Figure 3 and Figure 6 shown in the example, the direction of the main component of the magnetization of the magnetization fixing layer in each of the resistance portions R21, R23 is the Y direction. The direction of the main component of the magnetization of the magnetization fixing layer in each of the resistance portions R22, R24 is the -Y direction. The free layers in the respective resistance portions R21 to R24 have shape anisotropy in which the direction of the easy magnetization axis is parallel to the X direction.

[0093] In Figure 3Among them, the arrows marked with symbols M11, M12, M13, and M14 respectively indicate the directions of the main components of the bias magnetic fields generated by the plurality of magnetic field generators 70A in the resistance portions R11, R12, R13, and R14. In Figure 5 Among them, the plurality of arrows depicted in a manner overlapping with the plurality of magnetic field generators 70A indicate the directions of the main components of the bias magnetic fields generated by the plurality of magnetic field generators 70A. The directions of the main components of the bias magnetic fields in the resistance portions R11 and R12 may also be in the Y direction. The directions of the main components of the bias magnetic fields in the resistance portions R13 and R14 may also be in the -Y direction.

[0094] In Figure 3 Among them, the plurality of hollow arrows depicted in a manner overlapping with the resistance portions R11 to R14 respectively indicate the directions of the magnetization of the free layers in the resistance portions R11 to R14 respectively when no object magnetic field is applied to the magnetic sensor 1. The directions of the main components of the magnetization of the free layers in the resistance portions R11 and R12 may be in the Y direction, or may be the same as the directions of the main components of the bias magnetic fields in the resistance portions R11 and R12. The directions of the main components of the magnetization of the free layers in the resistance portions R13 and R14 may be in the -Y direction, or may be the same as the directions of the main components of the bias magnetic fields in the resistance portions R13 and R14.

[0095] In Figure 3 Among them, the arrows marked with symbols M21, M22, M23, and M24 respectively indicate the directions of the main components of the bias magnetic fields generated by the plurality of magnetic field generators 70B in the resistance portions R21, R22, R23, and R24. In Figure 6 Among them, the plurality of arrows depicted in a manner overlapping with the plurality of magnetic field generators 70B indicate the directions of the main components of the bias magnetic fields generated by the plurality of magnetic field generators 70B. The directions of the main components of the bias magnetic fields in the resistance portions R21 and R22 may also be in the -X direction. The directions of the main components of the bias magnetic fields in the resistance portions R23 and R24 may also be in the X direction.

[0096] In Figure 3 Among them, the plurality of hollow arrows depicted in a manner overlapping with the resistance portions R21 to R24 respectively indicate the directions of the magnetization of the free layers in the resistance portions R21 to R24 respectively when no object magnetic field is applied to the magnetic sensor 1. The directions of the main components of the magnetization of the free layers in the resistance portions R21 and R22 may be in the -X direction, or may be the same as the directions of the main components of the bias magnetic fields in the resistance portions R21 and R22. The directions of the main components of the magnetization of the free layers in the resistance portions R23 and R24 may be in the X direction, or may be the same as the directions of the main components of the bias magnetic fields in the resistance portions R23 and R24.

[0097] In addition, the direction of magnetization may be the same as the direction of the main component of the magnetization described above, or may deviate slightly from the direction of the main component of the magnetization. Similarly, the direction of the bias magnetic field may be the same as the direction of the main component of the bias magnetic field described above, or may deviate slightly from the direction of the main component of the bias magnetic field. In the following description, the direction of magnetization is made the same as the direction of the main component of the magnetization, and the direction of the bias magnetic field is made the same as the direction of the main component of the bias magnetic field.

[0098] Next, with reference to Figure 3 the operations of the first and second detection circuits 10 and 20 will be described. In the first detection circuit 10, the potential at the connection point of the resistor portions R11 and R12, that is, the potential of the output port E11, and the potential at the connection point of the resistor portions R13 and R14, that is, the potential of the output port E12, vary according to the intensity of the component of the target magnetic field in the direction parallel to the X direction. The first detection circuit 10 may also generate signals corresponding to the potential of the output port E11 and the potential of the output port E12, respectively, as first detection signals. Alternatively, the first detection circuit 10 may generate a signal corresponding to the potential difference between the output ports E11 and E12 as the first detection signal. In this case, the first detection circuit 10 may further include a differential amplifier (differential detector) that outputs a signal corresponding to the potential difference between the output ports E11 and E12 as the first detection signal.

[0099] In the second detection circuit 2o, the potential at the connection point of the resistor portions R21 and R22, that is, the potential of the output port E21, and the potential at the connection point of the resistor portions R23 and R24, that is, the potential of the output port E22, vary according to the intensity of the component of the target magnetic field in the direction parallel to the Y direction. The second detection circuit 20 may also generate signals corresponding to the potential of the output port E21 and the potential of the output port E22, respectively, as second detection signals. Alternatively, the second detection circuit 20 may generate a signal corresponding to the potential difference between the output ports E21 and E22 as the second detection signal. In this case, the second detection circuit 20 may further include a differential amplifier (differential detector) that outputs a signal corresponding to the potential difference between the output ports E21 and E22 as the second detection signal.

[0100] Next, with reference to Figure 7 and Figure 8 the structures of the plurality of MR elements 50A, the plurality of MR elements 50B, the plurality of magnetic field generators 70A, and the plurality of magnetic field generators 70B will be described in detail. Figure 7 is a top view showing the main part of the magnetic sensor 1. Figure 8 is showing Figure 7 a partial cross-sectional view of the cross-section at the position indicated by the line 8-8 in

[0101] Here, as Figure 7and Figure 8 As shown, a first direction D1 and a second direction D2 that are orthogonal to each other and orthogonal to the Z direction are defined. In the first detection circuit 10, the first direction D1 is a direction parallel to the Y direction, and the second direction D2 is a direction parallel to the X direction. In the second detection circuit 20, the first direction D1 is a direction parallel to the X direction, and the second direction D2 is a direction parallel to the Y direction.

[0102] Hereinafter, the symbol 50 is used to represent any one of the plurality of MR elements 50A and the plurality of MR elements 50B, and the symbol 70 is used to represent any one of the plurality of magnetic field generators 70A and the plurality of magnetic field generators 70B. The magnetic sensor 1 includes at least one MR element 50. In the present embodiment, in particular, as at least one MR element 50, the magnetic sensor 1 includes a plurality of MR elements 50.

[0103] Here, focusing on one MR element 50, the structures of the MR element 50 and the magnetic field generator 70 will be described. The MR element 50 includes a plurality of magnetic films. The stacking direction of the plurality of magnetic films is a direction parallel to the Z direction. The plurality of magnetic films include the above-described magnetization fixing layer 52 and free layer 54. Each of the plurality of MR elements 50 also includes the above-described spacer layer 53, buffer layer 51, and capping layer 55. As Figure 8 shown, the buffer layer 51, magnetization fixing layer 52, spacer layer 53, free layer 54, and capping layer 55 are stacked in this order along the Z direction. Each of the buffer layer 51 and the capping layer 55 is formed of a non-magnetic metal material such as Ru, Ta, Cu, and Cr. The free layer 54 is formed of a soft magnetic material such as CoFe, CoFeB, NiFe, and CoNiFe.

[0104] The magnetization fixing layer 52 may also include an antiferromagnetic layer 521 disposed above the buffer layer 51 and a ferromagnetic layer 522 disposed above the antiferromagnetic layer 521. The antiferromagnetic layer 521 is in contact with the lower surface of the ferromagnetic layer 522, and an exchange coupling is generated between the antiferromagnetic layer 521 and the ferromagnetic layer 522 to fix the magnetization direction of the ferromagnetic layer 522. The magnetization direction of the magnetization fixing layer 52 is the same as the magnetization direction of the ferromagnetic layer 522.

[0105] The antiferromagnetic layer 521 is formed of an antiferromagnetic material such as IrMn and PtMn. The antiferromagnetic layer 73a of the antiferromagnetic portion 73 of the magnetic field generator 70 and the antiferromagnetic layer 521 may also contain at least one identical element. The ferromagnetic layer 522 is formed of a ferromagnetic material containing one or more elements of Co, Fe, and Ni.

[0106] The MR element 50 has an upper surface 50a at one end in the Z direction, a lower surface 50b at one end in the -Z direction, two side surfaces 50c at both ends in the first direction D1, and two side surfaces 50d at both ends in the second direction D2. The lower surface 50b of the MR element 50 is in contact with the lower electrode 61. Each of the two side surfaces 50c and the two side surfaces 50d is inclined with respect to the stacking direction of the plurality of magnetic films (the direction parallel to the Z direction).

[0107] The magnetic sensor 1 further includes at least one magnetic field generating body 70 configured to generate a bias magnetic field applied to the MR element 50. In the present embodiment, in particular, the magnetic sensor 1 includes two magnetic field generating bodies 70 configured to sandwich the MR element 50. The MR element 50 is disposed between the two magnetic field generating bodies 70 in the first direction D1.

[0108] In the present embodiment, each of the two magnetic field generating bodies 70 is disposed at a predetermined interval from the MR element 50. When viewed from the Z direction, each of the two magnetic field generating bodies 70 does not overlap with the MR element 50.

[0109] Each of the two magnetic field generating bodies 70 includes a ferromagnetic portion 72 made of a ferromagnetic material and an antiferromagnetic portion 73 made of an antiferromagnetic material. In the present embodiment, in particular, the antiferromagnetic portion 73 is disposed above the ferromagnetic portion 72.

[0110] At least a part of each of the two magnetic field generating bodies 70 overlaps with the MR element 50 when viewed from the first direction D1. In the present embodiment, the ferromagnetic portion 72 includes a ferromagnetic layer 72a made of a ferromagnetic material. The ferromagnetic layer 72a is configured to overlap with the MR element 50 when viewed from the first direction D1. The ferromagnetic layer 72a may also be configured to overlap with the entire free layer 54 when viewed from the first direction D1.

[0111] The ferromagnetic layer 72a is formed of a ferromagnetic material containing one or more elements of Co, Fe, and Ni. Examples of such ferromagnetic materials include CoFe, CoFeB, and CoNiFe.

[0112] In addition, instead of the ferromagnetic layer 72a, the ferromagnetic portion 72 may include a laminate composed of a plurality of stacked ferromagnetic layers, that is, a laminate composed of ferromagnetic materials that are different from each other in two adjacent layers. Examples of such laminates include a laminate of a Co layer, a CoFe layer, and a Co layer, Co 70 Fe 30 layer, Co 30 Fe 70 layer, and Co 70 Fe 30 layer laminate. In addition, Co 70 Fe30 represents an alloy composed of 70 atomic% Co and 30 atomic% Fe, Co 30 Fe 70 represents an alloy composed of 30 atomic% Co and 70 atomic% Fe.

[0113] The antiferromagnetic portion 73 includes an antiferromagnetic layer 73a made of an antiferromagnetic material. The antiferromagnetic layer 73a is disposed on the ferromagnetic layer 72a and is in contact with the ferromagnetic layer 72a. The antiferromagnetic layer 73a is formed of an antiferromagnetic material such as IrMn or PtMn, for example.

[0114] The ferromagnetic layer 72a has magnetization as a whole of the ferromagnetic layer 72a. The magnetization as a whole of the ferromagnetic layer 72a is the magnetization obtained by volume-averaging the vector sum of the magnetic moments per unit of atoms, crystal lattices, etc. in the whole ferromagnetic layer 72a. Hereinafter, the magnetization as a whole of the ferromagnetic layer 72a will be simply referred to as the magnetization of the ferromagnetic layer 72a. The antiferromagnetic layer 73a is in contact with the upper surface of the ferromagnetic layer 72a and is exchange-coupled with the ferromagnetic layer 72a. Thereby, the direction of the magnetization of the ferromagnetic layer 72a is specified.

[0115] In the present embodiment, the whole of the ferromagnetic portion 72 is substantially composed of the ferromagnetic layer 72a, and the whole of the antiferromagnetic portion 73 is substantially composed of the antiferromagnetic layer 73a. By the exchange coupling between the antiferromagnetic layer 73a and the ferromagnetic layer 72a, the antiferromagnetic portion 73 is exchange-coupled with the ferromagnetic portion 72. Thereby, the direction of the magnetization of the ferromagnetic portion 72 is specified. The direction of the magnetization of the ferromagnetic portion 72 is the same as the direction of the magnetization of the ferromagnetic layer 72a. The ferromagnetic portion 72 and the antiferromagnetic portion 73 generate a bias magnetic field based on the magnetization of the ferromagnetic portion 72. The magnetic field generating body 70 configured in this way has high resistance to an interfering magnetic field.

[0116] The two magnetic field generating bodies 70 cooperate to apply a bias magnetic field to the MR element 50. The direction of the magnetization of the ferromagnetic portion 72 of one of the two magnetic field generating bodies 70 and the direction of the magnetization of the ferromagnetic portion 72 of the other of the two magnetic field generating bodies 70 may be the same. In this case, the direction of the bias magnetic field generated by one of the two magnetic field generating bodies 70 and the direction of the bias magnetic field generated by the other of the two magnetic field generating bodies 70 become the same direction.

[0117] Each of the two magnetic field generating bodies 70 further includes a buffer layer 71 disposed on the lower surface side (-Z direction side) of the ferromagnetic layer 72a, and a cover layer 74 disposed on the antiferromagnetic layer 73a. The buffer layer 71 and the cover layer 74 are formed of nonmagnetic metal materials such as Ru, Ta, Cu, and Cr, for example.

[0118] The magnetic sensor 1 further includes an insulating layer 32 made of an insulating material such as Al2O3 and SiO2 and disposed around the MR element 50 and the two magnetic field generating bodies 70. The insulating layer 32 is interposed between the MR element 50 and the two magnetic field generating bodies 70.

[0119] The magnetic sensor 1 further includes an insulating layer 31 made of an insulating material and interposed between the substrate 30 (see Figures 4 - 6 ) and the lower electrode 61, and an insulating layer 33 made of an insulating material and interposed between the insulating layer 32 and the two magnetic field generating bodies 70. The insulating layer 33 is also interposed between the two magnetic field generating bodies 70 and the lower electrode 61. The insulating layers 31 and 33 are formed of an insulating material such as Al2O3 and SiO2, for example.

[0120] The upper electrode 62 is disposed above the MR element 50, the two magnetic field generating bodies 70, and the insulating layer 32. The upper surface 50a of the MR element 50 and the upper surfaces of the covering layers 74 of the two magnetic field generating bodies 70 are in contact with the upper electrode 62. The magnetic sensor 1 further includes an unillustrated insulating layer made of an insulating material and disposed above the upper electrode 62.

[0121] So far, the structure of the MR element 50 and the magnetic field generating body 70 has been described with a focus on one MR element 50. In the present embodiment, the magnetic sensor 1 includes a plurality of MR elements 50. Therefore, the magnetic sensor 1 includes a plurality of magnetic field generating bodies 70.

[0122] Figure 5 The plurality of arrows depicted so as to overlap with the plurality of magnetic field generating bodies 70A, and Figure 6 the plurality of arrows depicted so as to overlap with the plurality of magnetic field generating bodies 70B substantially represent the magnetization directions of the ferromagnetic portions 72 of the plurality of magnetic field generating bodies 70. Here, the magnetic field generating body 70 that is configured to apply a bias magnetic field to each of the plurality of MR elements 50 of an arbitrary resistance portion among the plurality of magnetic field generating bodies 70 is referred to as the magnetic field generating body 70 corresponding to the arbitrary resistance portion. In Figure 5 the example shown, the magnetization directions of the ferromagnetic portions 72 of the plurality of magnetic field generating bodies 70A corresponding to the resistance portions R11 and R12 are in the Y direction. The magnetization directions of the ferromagnetic portions 72 of the plurality of magnetic field generating bodies 70A corresponding to the resistance portions R13 and R14 are in the -Y direction.

[0123] In Figure 6 the example shown, the magnetization directions of the ferromagnetic portions 72 of the plurality of magnetic field generating bodies 70B corresponding to the resistance portions R21 and R22 are in the -X direction. The magnetization directions of the ferromagnetic portions 72 of the plurality of magnetic field generating bodies 70B corresponding to the resistance portions R23 and R24 are in the X direction.

[0124] Figure 5 andFigure 6 A first example of the magnetization direction of the ferromagnetic portion 72 of the magnetic field generating body 70 is shown. Other multiple examples of the magnetization direction of the ferromagnetic portion 72 of the magnetic field generating body 70 will be described later.

[0125] Next, a method for manufacturing the magnetic sensor 1 of the present embodiment will be described. The method for manufacturing the magnetic sensor 1 includes a step of forming at least one MR element 50 and a step of forming at least one magnetic field generating body 70. In the present embodiment, in particular, the step of forming at least one MR element 50 is a step of forming a plurality of MR elements 50, and the step of forming at least one magnetic field generating body 70 is a step of forming a plurality of magnetic field generating bodies 70.

[0126] First, the step of forming a plurality of MR elements 50 will be described. In the step of forming a plurality of MR elements 50, first, a plurality of initial MR elements that will later become the plurality of MR elements 50 may be formed. Each of the plurality of initial MR elements includes an initial magnetization fixing layer that will later become the magnetization fixing layer 52, a buffer layer 51, a spacer layer 53, a free layer 54, and a capping layer 55. The initial magnetization fixing layer includes an antiferromagnetic layer 521 and a ferromagnetic layer 522.

[0127] Next, the magnetization direction of the initial magnetization fixing layer may be fixed to the above-described specified direction by using a laser and an external magnetic field containing a component in a specified direction. Hereinafter, this step will be referred to as a step of fixing the magnetization direction of the initial magnetization fixing layer or a step of fixing the magnetization direction of the magnetization fixing layer 52. For example, in a plurality of initial MR elements that will later become the plurality of MR elements 50A constituting the resistance portions R11 and R13 of the first detection circuit 10, a laser is irradiated on the plurality of initial MR elements while applying an external magnetic field in the X direction. The laser is irradiated in such a manner that the temperature of the plurality of initial MR elements irradiated with the laser becomes equal to or higher than the blocking temperature of the antiferromagnetic layer 521 of the initial magnetization fixing layer. The temperature of the plurality of initial MR elements can be adjusted, for example, by the intensity or pulse width of the laser. After the laser is irradiated, when the temperature of the plurality of initial MR elements is lower than the blocking temperature, the magnetization direction of the initial magnetization fixing layer is fixed to the X direction. Thus, the initial magnetization fixing layer becomes the magnetization fixing layer 52.

[0128] In addition, among a plurality of initial MR elements of a plurality of MR elements 50A that later become the resistance portions R12 and R14 constituting the first detection circuit 10, by using an external magnetic field in the -X direction, the magnetization directions of the initial magnetization fixing layers of the plurality of initial MR elements can be fixed to the -X direction. The magnetization directions of the magnetization fixing layers 52 of each of the plurality of MR elements 50B of the resistance portions R21 to R24 constituting the second detection circuit 20 are also fixed by the same method as the magnetization fixing layers 52 of the plurality of MR elements 50A.

[0129] The MR element 50 is completed as follows: after fixing the magnetization direction of the magnetization fixing layer 52, the laminated film is patterned by etching so as to form two side surfaces 50c and two side surfaces 50d in the laminated film. In addition, after forming the two side surfaces 50c and the two side surfaces 50d in the laminated film, the process of fixing the magnetization direction of the initial magnetization fixing layer may be performed.

[0130] Next, the process of forming a plurality of magnetic field generators 70 will be described. First, focusing on one MR element 50, the outline of the process of forming two magnetic field generators 70 will be described. First, a photoresist mask is formed on the MR element 50 and the insulating layer 32. Next, the insulating layer 32 is etched. Next, in a state where the photoresist mask remains, an insulating layer 33 and two initial magnetic field generators 70P that later become two magnetic field generators 70 are sequentially formed. Each of the two initial magnetic field generators 70P includes an initial ferromagnetic portion that later becomes the ferromagnetic portion 72, a buffer layer 71, an antiferromagnetic portion 73, and a cover layer 74. The buffer layer 71, the initial ferromagnetic portion, the antiferromagnetic portion 73, and the cover layer 74 are sequentially laminated. Next, the photoresist mask is removed.

[0131] Next, using a laser and an external magnetic field containing a component in a specified direction, the magnetization direction of the initial ferromagnetic portion is fixed to the above-mentioned specified direction. Hereinafter, this process will be referred to as the process of fixing the magnetization direction of the initial ferromagnetic portion or the process of fixing the magnetization direction of the ferromagnetic portion 72. The method of fixing the magnetization direction of the initial ferromagnetic portion is the same as the method of fixing the magnetization direction of the initial magnetization fixing layer. That is, while applying an external magnetic field, each of the two initial magnetic field generators 70P is irradiated with a laser. The laser is irradiated so that the temperature of the two initial magnetic field generators 70P irradiated with the laser becomes equal to or higher than the blocking temperature of the antiferromagnetic portion 73. The temperature of the two initial magnetic field generators 70P can be adjusted, for example, by the intensity or pulse width of the laser. When the temperature of the two initial magnetic field generators 70P is lower than the blocking temperature after the laser irradiation, the magnetization direction of the initial ferromagnetic portion is fixed to the above-mentioned specified direction. As a result, the initial ferromagnetic layer becomes the ferromagnetic portion 72, and the two initial magnetic field generators 70P become two magnetic field generators 70.

[0132] In addition, the intensity of the laser for fixing the direction of magnetization of the initial ferromagnetic portion may also be smaller than the intensity of the laser for fixing the direction of magnetization of the initial magnetization fixing layer. Additionally, the intensity of the laser for fixing the direction of magnetization of the initial ferromagnetic portion is preferably an intensity that suppresses changes in the rate of magnetoresistance change with respect to the resistance of the MR element 50, namely, the magnetoresistance change rate.

[0133] Furthermore, in the case where each of the two magnetic field generating bodies 70 has a plurality of side surfaces formed by etching, the process of fixing the direction of magnetization of the initial ferromagnetic portion may be performed before forming at least one of the plurality of side surfaces, or may be performed after forming at least one of the plurality of side surfaces.

[0134] In addition, in the present embodiment, the ferromagnetic portion 72 is substantially a ferromagnetic layer 72a. Therefore, the initial ferromagnetic portion is substantially an initial ferromagnetic layer that will later become the ferromagnetic layer 72a. The process of forming the plurality of magnetic field generating bodies 70 can be described as replacing the ferromagnetic portion 72 and the initial ferromagnetic portion with the ferromagnetic layer 72a and the initial ferromagnetic layer, respectively.

[0135] Next, with reference to Figures 9 - 13 the process of fixing the direction of magnetization of the initial ferromagnetic layer will be described in more detail. In Figures 9 - 13 four resistance portions R11 to R14 of the first detection circuit 10 or four resistance portions R21 to R24 of the second detection circuit 20 are schematically shown. In Figures 9 - 13 the symbol R1 represents a resistance portion corresponding to the resistance portion R11 or the resistance portion R21. The symbol R2 represents a resistance portion corresponding to the resistance portion R12 or the resistance portion R22. The symbol R3 represents a resistance portion corresponding to the resistance portion R13 or the resistance portion R23. The symbol R4 represents a resistance portion corresponding to the resistance portion R14 or the resistance portion R24.

[0136] In Figures 9 - 13 one MR element 50 is shown representing a plurality of MR elements 50 in each of the resistance portions R1 to R4. Additionally, a plurality of initial magnetic field generating bodies 70P or a plurality of magnetic field generating bodies 70 configured to sandwich one MR element 50 of each of the resistance portions R1 to R4 are shown representing a plurality of initial magnetic field generating bodies 70P or a plurality of magnetic field generating bodies 70. Additionally, in Figures 9 - 13 the first direction D1 and the second direction D2 are also shown. In addition, in the same plurality of figures used in the subsequent description as Figures 9 - 13 the same representation method as Figures 9 - 13 is also used.

[0137] Figure 9 The resistance portions R1 to R4 after forming the plurality of initial magnetic field generating bodies 70P are shown. Figure 10Indicates the next process. In this process, while applying a magnetic field component MF1 in one direction parallel to the first direction D1 (in Figure 10 , the direction from bottom to top) to the magnetic sensor 1, a laser is selectively irradiated onto a plurality of initial magnetic field generating bodies 70P corresponding to the resistance parts R1 and R2. After the laser irradiation, the magnetization directions of the initial ferromagnetic layers of the irradiated plurality of initial magnetic field generating bodies 70P are fixed in the same direction as the direction of the magnetic field component MF1. Thus, as Figure 11 shown, the plurality of initial magnetic field generating bodies 70P irradiated with the laser become a plurality of magnetic field generating bodies 70.

[0138] For example, a mask 101 can also be used to selectively irradiate the plurality of initial magnetic field generating bodies 70P with a laser. The mask 101 has a plurality of openings 101a that expose several or all of the plurality of initial magnetic field generating bodies 70P corresponding to the resistance parts R1 and R2. The plurality of MR elements 50 of the resistance parts R1 to R4 and the plurality of initial magnetic field generating bodies 70P corresponding to the resistance parts R3 and R4 are covered by the mask 101. Through the plurality of openings 101a, a laser is irradiated onto several or all of the plurality of initial magnetic field generating bodies 70P. In the case of irradiating a laser onto several of the plurality of initial magnetic field generating bodies 70P, for example, while moving the magnetic sensor 1 using a stage, a laser is irradiated onto all of the initial magnetic field generating bodies 70P corresponding to the resistance parts R1 and R2.

[0139] In addition, the plurality of MR elements 50 are not irradiated with a laser, but during the laser irradiation, the temperature of the plurality of MR elements 50 may also rise. However, the temperature of the plurality of MR elements 50 is not higher than the blocking temperature of the antiferromagnetic layer 521.

[0140] Figure 12 Indicates the next process. In this process, while applying a magnetic field component MF2 in the other direction parallel to the first direction D1 (in Figure 12 , the direction from top to bottom) to the magnetic sensor 1, a laser is selectively irradiated onto a plurality of initial magnetic field generating bodies 70P corresponding to the resistance parts R3 and R4. After the laser irradiation, the magnetization directions of the initial ferromagnetic layers of the irradiated plurality of initial magnetic field generating bodies 70P are fixed in the same direction as the direction of the magnetic field component MF2. Thus, as Figure 13 shown, the plurality of initial magnetic field generating bodies 70P irradiated with the laser become a plurality of magnetic field generating bodies 70.

[0141] And Figure 10The processes shown are the same. For example, a mask 102 can also be used to selectively irradiate a plurality of initial magnetic field generating bodies 70P with laser light. The mask 102 has a plurality of openings 102a that expose some or all of the plurality of initial magnetic field generating bodies 70P corresponding to the resistance portions R3 and R4. The plurality of MR elements 50 of the resistance portions R1 to R4 and the plurality of magnetic field generating bodies 70 corresponding to the resistance portions R1 and R2 are covered by the mask 102. Through the plurality of openings 102a, some or all of the plurality of initial magnetic field generating bodies 70P are irradiated with laser light. In the case of irradiating some of the plurality of initial magnetic field generating bodies 70P with laser light, for example, while moving the magnetic sensor 1 using a stage, all of the initial magnetic field generating bodies 70P corresponding to the plurality of MR elements 50 of the resistance portions R3 and R4 are irradiated with laser light.

[0142] In addition, laser light is not irradiated to the resistance portions R1 and R2, but in the laser irradiation, the temperature of the plurality of magnetic field generating bodies 70 corresponding to the resistance portions R1 and R2 may also rise. However, the temperature of the plurality of magnetic field generating bodies 70 corresponding to the resistance portions R1 and R2 is not higher than the blocking temperature of the antiferromagnetic portion 73.

[0143] The method for manufacturing the magnetic sensor 1 may further include a step of annealing the laminate of the plurality of MR elements 50 in which the magnetization directions of the magnetization fixing layers 52 are respectively fixed and the plurality of magnetic field generating bodies 70 in which the magnetization directions of the ferromagnetic portions 72 are respectively fixed at a prescribed temperature. The annealing treatment can also be performed using an electric furnace, for example. By performing the annealing treatment, the magnetization directions of the magnetization fixing layer 52 and the ferromagnetic portion 72 can be stabilized. As a result, the characteristic variation of the magnetic sensor 1 after the magnetic sensor 1 is completed can be suppressed.

[0144] Next, the effects of the magnetic sensor 1 of the present embodiment will be described. As Figure 5 shown, in the present embodiment, several of the plurality of MR elements 50A of the resistance portion R11 and several of the plurality of MR elements 50A of the resistance portion R14 are adjacent to each other without other MR elements 50A capable of detecting the magnetoresistance effect interposed therebetween. Here, a group of the plurality of magnetic field generating bodies 70A that apply a bias magnetic field to several of the plurality of MR elements 50A of the resistance portion R11 and several of the plurality of MR elements 50A of the resistance portion R11 is referred to as a first group. In addition, a group of the plurality of magnetic field generating bodies 70A that apply a bias magnetic field to several of the plurality of MR elements 50A of the resistance portion R14 and several of the plurality of MR elements 50A of the resistance portion R14 is referred to as a second group. There is no other group of MR elements 50 and other magnetic field generating bodies 70 capable of detecting the magnetoresistance effect interposed between the first group and the second group.

[0145] In addition, the MR element 50 that is connected to any electrode and can detect the resistance value corresponds to another MR element 50 that can detect the magnetoresistance effect. On the other hand, as an MR element that does not correspond to the MR element 50 capable of detecting the magnetoresistance effect, for example, there are the following first to third MR elements. The first MR element is an MR element that is not connected to any electrode and cannot detect the resistance value of the MR element. The second MR element is a CIP (Current In Plane) type GMR element in which current flows in a direction substantially parallel to the plane of each layer constituting the MR element, that is, a GMR element having a thick conductive film formed thereon. The third MR element is an MR element with an incomplete structure, so that even if the direction or intensity of the applied magnetic field changes, the resistance value does not change. As such an MR element, for example, there is a TMR element or a GMR element in which the magnetization direction of the magnetization-fixed layer is not fixed.

[0146] In the magnetic sensor 1, there is a requirement that the magnetization directions of the free layers 54 in the first group and the magnetization directions of the free layers 54 in the second group are different from each other when there is no target magnetic field. In contrast, in the present embodiment, the magnetization direction of the ferromagnetic portion 72 of the magnetic field generating body 70A in the first group and the magnetization direction of the ferromagnetic portion 72 of the magnetic field generating body 70A in the second group are different from each other. In the present embodiment, in particular, the magnetization direction of the ferromagnetic portion 72 of the magnetic field generating body 70A in the first group and the magnetization direction of the ferromagnetic portion 72 of the magnetic field generating body 70A in the second group may also be in opposite directions. Therefore, the direction of the main component of the bias magnetic field generated by the magnetic field generating body 70A in the first group and the direction of the main component of the bias magnetic field generated by the magnetic field generating body 70A in the second group are also in opposite directions. Thus, according to the present embodiment, when there is no target magnetic field, the magnetization directions of the free layers 54 in the first group and the magnetization directions of the free layers 54 in the second group can be made different from each other.

[0147] In addition, as Figure 5As shown, in the present embodiment, several of the plurality of MR elements 50A of the resistance section R12 and several of the plurality of MR elements 50A of the resistance section R13 are adjacent to each other without any other MR elements 50A capable of detecting the magnetoresistance effect being interposed therebetween. Here, a group of the plurality of magnetic field generators 70A that apply a bias magnetic field to several of the plurality of MR elements 50A of the resistance section R12 and several of the plurality of MR elements 50A of the resistance section R12 is referred to as the third group. In addition, a group of the plurality of magnetic field generators 70A that apply a bias magnetic field to several of the plurality of MR elements 50A of the resistance section R13 and several of the plurality of MR elements 50A of the resistance section R13 is referred to as the fourth group. There is no other group of MR elements 50 and other magnetic field generators 70 capable of detecting the magnetoresistance effect interposed between the third group and the fourth group. The third group may be adjacent to one of the first group and the second group with a predetermined interval therebetween. The fourth group may be adjacent to the other of the first group and the second group with a predetermined interval therebetween.

[0148] The above description regarding the plurality of magnetic field generators 70A corresponding to the resistance sections R11 and R14 also applies to the plurality of magnetic field generators 70A corresponding to the resistance sections R12 and R13. In addition, the above description regarding the resistance sections R11 to R14 also applies to the resistance sections R21 to R24.

[0149] In addition, although not shown, one or two of the resistance sections R11 to R14 (hereinafter referred to as the first resistance section) are adjacent to one or two of the resistance sections R21 to R24 (hereinafter referred to as the second resistance section). In the magnetic sensor 1, there is sometimes a requirement that, when there is no target magnetic field, the magnetization directions of the free layers 54 of the plurality of MR elements 50A of the first resistance section and the magnetization directions of the free layers 54 of the plurality of MR elements 50B of the second resistance section are different from each other.

[0150] In the present embodiment, the magnetization direction of the ferromagnetic portion 72 of the plurality of magnetic field generators 70A corresponding to the first resistance section and the magnetization direction of the ferromagnetic portion 72 of the plurality of magnetic field generators 70B corresponding to the second resistance section are different from each other. In the present embodiment, in particular, the magnetization direction of the ferromagnetic portion 72 of the plurality of magnetic field generators 70A corresponding to the first resistance section and the magnetization direction of the ferromagnetic portion 72 of the plurality of magnetic field generators 70B corresponding to the second resistance section may be orthogonal. Therefore, the direction of the main component of the bias magnetic field generated by the plurality of magnetic field generators 70A corresponding to the first resistance section and the direction of the main component of the bias magnetic field generated by the plurality of magnetic field generators 70B corresponding to the second resistance section are also orthogonal to each other. Thus, according to the present embodiment, when there is no target magnetic field, it is possible to make the magnetization directions of the free layers 54 of the plurality of MR elements 50A of the first resistance section and the magnetization directions of the free layers 54 of the plurality of MR elements 50B of the second resistance section different from each other.

[0151] Next, the second to twelfth examples of the arrangement of the resistor portions R11 to R14 and R21 to R24 in the substrate 30 and the direction of magnetization of the ferromagnetic portion 72 of the magnetic field generating body 70 will be described.

[0152] Figure 14A The second example is shown. In Figure 1 , the resistor portions R1 to R4 shown in ​ are used to represent the resistor portions R11 to R14 and R21 to R24. In the second example, the arrangement of the resistor portions R1 to R4 is the same as the first example of the arrangement of the resistor portions R11 to R14 shown in ​ and the first example of the arrangement of the resistor portions R21 to R24 shown in ​ . That is, ​ represents that the arrangement of the resistor portions R1 to R4 is the same as the arrangement of the resistor portions R11 to R14 shown in ​ and the arrangement of the resistor portions R21 to R24 shown in ​ .

[0153] In addition, in ​ , a plurality of arrows respectively drawn so as to overlap the resistor portions R1 to R4 represent the direction of magnetization of the magnetization fixing layer 52 in each of the resistor portions R1 to R4. ​ Represents that the direction of magnetization of the magnetization fixing layer 52 in each of the resistor portions R1 to R4 is the same as the direction of magnetization of the magnetization fixing layer in each of the resistor portions R11 to R14 shown in ​ and the direction of magnetization of the magnetization fixing layer in each of the resistor portions R21 to R24 shown in ​ . That is, as described above, the direction of magnetization of the magnetization fixing layer 52 in each of the resistor portions R11 and R13 is the X direction, and the main direction of magnetization of the magnetization fixing layer in each of the resistor portions R21 and R23 is the Y direction. In ​ , an arrow in one direction parallel to the second direction D2 (in ​ , the direction from the resistor portion R1 toward the resistor portion R2) represents the direction of magnetization of the magnetization fixing layer 52 in each of the resistor portions R1 and R3 corresponding to the resistor portions R11, R13 or the resistor portions R21, R23.

[0154] In addition, as described above, the direction of magnetization of the magnetization fixing layer in each of the resistor portions R12 and R14 is the -X direction, and the direction of magnetization of the magnetization fixing layer in each of the resistor portions R22 and R24 is the -Y direction. In ​ , an arrow in the other direction parallel to the second direction D2 (in ​In the figure, the arrows in the direction from the resistance part R2 toward the resistance part R1 indicate the magnetization directions of the magnetization fixing layers 52 in the respective resistance parts R2 and R4 corresponding to the resistance parts R12, R14 or the resistance parts R22, R24.

[0155] In addition, in ​ the figure, the multiple arrows respectively depicted in a manner overlapping with the multiple magnetic field generators 70 indicate the magnetization directions of the ferromagnetic parts 72 of the respective magnetic field generators 70. In the second example, the magnetization directions of the ferromagnetic parts 72 of the multiple magnetic field generators 70 corresponding to the resistance parts R1 and R4 are in one direction parallel to the first direction D1 (in ​ the figure, the direction from the resistance part R4 toward the resistance part R1). That is, the magnetization direction of the ferromagnetic part 72 of each of the multiple magnetic field generators 70A corresponding to the resistance parts R11, R14 is the -Y direction, and the magnetization direction of the ferromagnetic part 72 of each of the multiple magnetic field generators 70B corresponding to the resistance parts R21, R24 is the X direction.

[0156] In addition, in the second example, the magnetization directions of the ferromagnetic parts 72 of the multiple magnetic field generators 70 corresponding to the resistance parts R2 and R3 are in another direction parallel to the first direction D1 (in ​ the figure, the direction from the resistance part R2 toward the resistance part R3). That is, the magnetization direction of the ferromagnetic part 72 of each of the multiple magnetic field generators 70A corresponding to the resistance parts R12, R13 is the Y direction, and the magnetization direction of the ferromagnetic part 72 of each of the multiple magnetic field generators 70B corresponding to the resistance parts R22, R23 is the -X direction.

[0157] As described above, in the second example, the arrangement of the resistance parts R1 to R4 is the same as that in ​ and ​ shown in the first example, but the magnetization direction of the ferromagnetic part 72 of the magnetic field generator 70 is different from that in the first example.

[0158] In addition, in the multiple figures used in the following description that are the same as ​ the above, the arrangement of the resistance parts R1 to R4 (resistance parts R11 to R14, R21 to R24) and the magnetization direction of the ferromagnetic part 72 of the magnetic field generator 70 are also represented in the same manner as ​ the above. In addition, in the following description, the correspondence between the resistance parts R1 to R4 and the resistance parts R11 to R14, R21 to R24, and the correspondence between the first and second directions D1, D2 and the X direction and the Y direction are omitted.

[0159] ​ Figure [ID] shows a third example. In the third example, the magnetization direction of the ferromagnetic part 72 of the magnetic field generator 70 is the same as that in ​ and ​The first example shown is the same, but the arrangements of the resistor parts R3 and R4 are different from those in the first example. That is, in the third example, the resistor parts R3 and R4 are respectively arranged in front of a direction parallel to the first direction D1 with respect to the resistor parts R1 and R2.

[0160] ​ Shows the fourth example. In the fourth example, the arrangements of the resistor parts R1 to R4 and the magnetization directions of the ferromagnetic parts 72 of the plurality of magnetic field generating bodies 70 corresponding to the resistor parts R1 and R3 are the same as those ​ shown in the third example, but the magnetization directions of the ferromagnetic parts 72 of the plurality of magnetic field generating bodies 70 corresponding to the resistor parts R2 and R4 are different from those in the third example. That is, in the fourth example, the magnetization directions of the ferromagnetic parts 72 of the plurality of magnetic field generating bodies 70 corresponding to the resistor part R2 are the same as the magnetization directions of the ferromagnetic parts 72 of the plurality of magnetic field generating bodies 70 corresponding to the resistor part R3, and are in the opposite direction to the third example. In addition, the magnetization directions of the ferromagnetic parts 72 of the plurality of magnetic field generating bodies 70 corresponding to the resistor part R4 are the same as the magnetization directions of the ferromagnetic parts 72 of the plurality of magnetic field generating bodies 70 corresponding to the resistor part R1, and are in the opposite direction to the third example.

[0161] ​ Shows the fifth example. In the fifth example, the magnetization direction of the ferromagnetic part 72 of the magnetic field generating body 70 is the same as that in ​ and ​ shown in the first example, but the arrangements of the resistor parts R1 to R4 are different from those in the first example. That is, in the fifth example, the resistor parts R1 to R4 are arranged in sequence along a direction parallel to the second direction D2.

[0162] ​ Shows the sixth example. In the sixth example, the arrangements of the resistor parts R1 to R4 are the same as those in ​ shown in the fifth example, and the magnetization direction of the ferromagnetic part 72 of the magnetic field generating body 70 is the same as that in ​ shown in the fourth example.

[0163] ​ Shows the seventh example. In the seventh example, the arrangements of the resistor parts R1 and R2 and the magnetization direction of the ferromagnetic part 72 of the magnetic field generating body 70 are the same as those in ​ shown in the fifth example, but the arrangements of the resistor parts R3 and R4 are different from those in the fifth example. That is, in the seventh example, the resistor part R4 is arranged in the second direction D2 at a position sandwiching the resistor part R2 between it and the resistor part R1. The resistor part R3 is arranged in the second direction D2 at a position sandwiching the resistor part R4 between it and the resistor part R2.

[0164] ​ Shows the eighth example. In the eighth example, the arrangements of the resistor parts R1 to R4 are the same as those in ​The same as the seventh example shown, the direction of magnetization of the ferromagnetic portion 72 of the magnetic field generating body 70 is the same as that of ​ the sixth example shown.

[0165] ​ Shows the ninth example. In the ninth example, the arrangement of the resistance portions R1 and R4 and the direction of magnetization of the ferromagnetic portion 72 of the magnetic field generating body 70 are the same as those of ​ the fifth example shown, but the arrangement of the resistance portions R2 and R3 is different from that of the fifth example. That is, in the ninth example, the resistance portions R2 and R3 are arranged between the resistance portions R1 and R4. The resistance portion R2 is arranged at a position closer to the resistance portion R4 than the resistance portion R1. The resistance portion R3 is arranged at a position closer to the resistance portion R1 than the resistance portion R4.

[0166] ​ Shows the tenth example. In the tenth example, the direction of magnetization of the ferromagnetic portion 72 of the magnetic field generating body 70 is the same as that of ​ the sixth example shown, but the arrangement of the resistance portions R1 to R4 is different from that of the sixth example. That is, in the tenth example, the resistance portions R1 to R4 are arranged in the order of the resistance portion R1, the resistance portion R3, the resistance portion R4, and the resistance portion R2 in a direction parallel to the second direction D2.

[0167] ​ Shows the eleventh example. In the eleventh example, the arrangement of the resistance portions R1 to R4 is the same as that of ​ the ninth example shown, and the direction of magnetization of the ferromagnetic portion 72 of the magnetic field generating body 70 is the same as that of ​ the sixth example shown.

[0168] ​ Shows the twelfth example. In the twelfth example, the arrangement of the resistance portions R1 to R4 is the same as that of ​ the tenth example shown, and the direction of magnetization of the ferromagnetic portion 72 of the magnetic field generating body 70 is the same as that of ​ the fifth example shown.

[0169] [Modification Example]

[0170] Next, the first to fifth modification examples of the magnetic sensor 1 of the present embodiment will be described. First, refer to ​ to describe the first modification example. ​ is a cross-sectional view showing the main part of the first modification example of the magnetic sensor 1. In the first modification example, the magnetization fixing layer 52 of the MR element 50 does not include ​The antiferromagnetic layer 521 shown. In the first modification example, the magnetization fixing layer 52 may also include a soft magnetic layer made of a ferromagnetic material containing one or more elements of Co, Fe, and Ni. In this case, by using a specific material such as Ta for the buffer layer 51 and reducing the thickness of the soft magnetic layer, the coercive force of the magnetization fixing layer 52 can also be increased. Alternatively, the magnetization fixing layer 52 may be made of a hard magnetic material containing elements such as Pt, Sm, and Nd.

[0171] In the process of fixing the magnetization direction of the magnetization fixing layer 52 in the first modification example, a laser and an external magnetic field including a component in a specified direction are used to fix the magnetization direction of the initial magnetization fixing layer to the above-mentioned specified direction. Among the plurality of initial MR elements of the plurality of MR elements 50A that will later become the resistance portions R11 and R13 constituting the first detection circuit 10, while applying an external magnetic field in the X direction, the plurality of initial MR elements are irradiated with a laser. By irradiating the laser, the coercive force of the magnetization fixing layer 52 of each of the plurality of initial MR elements is reduced, and the magnetization direction of the magnetization fixing layer 52 tilts toward the X direction. After irradiating the laser, the magnetization direction of the initial magnetization fixing layer is fixed to the X direction. Thus, the initial magnetization fixing layer becomes the magnetization fixing layer 52. In addition, the coercive force of the magnetization fixing layer 52 of each of the plurality of initial MR elements that are not irradiated with the laser is maintained at a level such that the magnetization direction of the magnetization fixing layer 52 does not tilt due to the external magnetic field.

[0172] In addition, among the plurality of initial MR elements of the plurality of MR elements 50A that will later become the resistance portions R12 and R14 constituting the first detection circuit 10, by using an external magnetic field in the -X direction, the magnetization direction of the initial magnetization fixing layer of each of the plurality of initial MR elements can be fixed to the -X direction. The magnetization direction of the magnetization fixing layer 52 of each of the plurality of MR elements 50B of each of the resistance portions R21 to R24 constituting the second detection circuit 20 is also fixed by the same method as the magnetization fixing layer 52 of each of the plurality of MR elements 50A.

[0173] Next, refer to ​ A description will be given of the second modification example. ​ FIG. is a cross-sectional view showing the main part of a second modification example of the magnetic sensor 1. In the second modification example, an antiferromagnetic layer 73a, a ferromagnetic layer 72a, and a cover layer 74 are sequentially arranged on the buffer layer 71. In the second modification example, the antiferromagnetic layer 73a is in contact with the lower surface of the ferromagnetic layer 72a and is exchange-coupled with the ferromagnetic layer 72a. Thereby, the magnetization direction of the ferromagnetic layer 72a is specified.

[0174] Next, refer to ​ A description will be given of the third modification example. ​It is a cross-sectional view of the main part showing a third modification example of the magnetic sensor 1. In the third modification example, the antiferromagnetic portion 73 includes not only the antiferromagnetic layer 73a but also the antiferromagnetic layer 73b. The antiferromagnetic layer 73b is disposed between the buffer layer 71 and the ferromagnetic layer 72a. The antiferromagnetic layer 73b is formed of an antiferromagnetic material such as IrMn or PtMn, for example.

[0175] The antiferromagnetic layer 73b is in contact with the lower surface of the ferromagnetic layer 72a and exchange-couples with the ferromagnetic layer 72a. In addition, as described above, the antiferromagnetic layer 73a is in contact with the upper surface of the ferromagnetic layer 72a and exchange-couples with the ferromagnetic layer 72a. In the third modification example, the magnetization direction of the ferromagnetic layer 72a is defined by exchange-coupling the antiferromagnetic layer 73a and the antiferromagnetic layer 73b with the ferromagnetic layer 72a.

[0176] Next, refer to ​ to describe the fourth modification example. ​ It is a cross-sectional view of the main part showing a fourth modification example of the magnetic sensor 1. In the fourth modification example, the ferromagnetic portion 72 includes not only the ferromagnetic layer 72a but also the ferromagnetic layer 72b. The ferromagnetic layer 72b is disposed between the buffer layer 71 and the ferromagnetic layer 72a. The ferromagnetic layer 72b is formed of a ferromagnetic material containing one or more elements of Co, Fe, and Ni. In the fourth modification example, the ferromagnetic layer 72b has magnetization in the same direction as the magnetization of the ferromagnetic layer 72a.

[0177] In the fourth modification example, the ferromagnetic layer 72a can also be formed of a ferromagnetic material capable of increasing the exchange-coupling energy with the antiferromagnetic layer 73a, and the ferromagnetic layer 72b can be formed of a ferromagnetic material having a saturation magnetic flux density larger than that of the ferromagnetic material constituting the ferromagnetic layer 72a. In this case, it is possible to increase the exchange-coupling energy between the ferromagnetic portion 72 composed of the ferromagnetic layers 72a and 72b and the antiferromagnetic layer 73a, increase the intensity of the bias magnetic field generated by the magnetic field generating body 70, and miniaturize the magnetic field generating body 70. As an example of the ferromagnetic layer 72a, a Co 70 Fe 30 layer can be cited. As an example of the ferromagnetic layer 72b, a Co 30 Fe 70 layer can be cited. In addition, Co 70 Fe 30 represents an alloy composed of 70 atomic% Co and 30 atomic% Fe, and Co 30 Fe 70 represents an alloy composed of 30 atomic% Co and 70 atomic% Fe.

[0178] Next, refer to ​ to describe the fifth modification example. ​It is a cross-sectional view showing the main part of the fifth modification of the magnetic sensor 1. In the fifth modification, the ferromagnetic portion 72 includes not only the ferromagnetic layer 72a but also the ferromagnetic layer 72b. The ferromagnetic layer 72b is disposed between the buffer layer 71 and the ferromagnetic layer 72a. The ferromagnetic layer 72b is formed of a ferromagnetic material containing one or more elements among Co, Fe, and Ni. The ferromagnetic layer 72a and the ferromagnetic layer 72b may be formed of the same ferromagnetic material or different ferromagnetic materials.

[0179] In addition, in the fifth modification, the magnetic field generating body 70 further includes a nonmagnetic layer 75 disposed between the ferromagnetic layer 72a and the ferromagnetic layer 72b. The nonmagnetic layer 75 is formed of a nonmagnetic metal material such as Ru, for example.

[0180] In the fifth modification, the ferromagnetic layer 72a and the ferromagnetic layer 72b may also be ferromagnetically exchange-coupled via the nonmagnetic layer 75 so that the directions of their magnetizations are the same. In this case, the ferromagnetic layer 72a and the ferromagnetic layer 72b have magnetizations in the same direction. The thickness of the nonmagnetic layer 75 is set to a thickness such that the exchange coupling between the ferromagnetic layer 72a and the ferromagnetic layer 72b does not disappear. By providing the nonmagnetic layer 75, the coercive force of the ferromagnetic portion 72 can be adjusted, or the surface roughness of the substrate of the ferromagnetic layer 72a can be adjusted.

[0181] Alternatively, the ferromagnetic layer 72a and the ferromagnetic layer 72b may be antiferromagnetically exchange-coupled via the nonmagnetic layer 75 by RKKY interaction. In this case, the direction of magnetization of the ferromagnetic layer 72a and the direction of magnetization of the ferromagnetic layer 72b become opposite directions. The direction of magnetization of the ferromagnetic portion 72 is the same direction as the direction of magnetization of the ferromagnetic layer 72a. When the ferromagnetic layer 72a and the ferromagnetic layer 72b are antiferromagnetically exchange-coupled, the net moment of the ferromagnetic portion 72 becomes smaller. Therefore, in the ferromagnetic portion 72, the Zeeman energy, which is the energy generated by the action of an external magnetic field on the magnetic moment, becomes smaller. As a result, even when an external magnetic field is applied, it is more difficult for the direction of magnetization of the ferromagnetic portion 72 to tilt than when the Zeeman energy is large.

[0182] The thickness of the nonmagnetic layer 75 is set such that the directions of magnetization of the ferromagnetic layer 72a and the ferromagnetic layer 72b based on RKKY interaction become assumed directions, and the strength of the exchange coupling based on RKKY interaction becomes an assumed strength.

[0183] [Second Embodiment]

[0184] Next, refer to ​ and ​ to describe the second embodiment of the present invention. ​It is a top view showing the main part of the magnetic sensor of this embodiment. ​ It shows ​ A cross-sectional view of a part of the cross-section at the position indicated by the 24-24 line in

[0185] The magnetic sensor 1 of this embodiment includes a plurality of magnetic field generating bodies 700 instead of the plurality of magnetic field generating bodies 70 in the first embodiment. The functions of the plurality of magnetic field generating bodies 700 and the positional relationship of the plurality of magnetic field generating bodies 700 with respect to the plurality of MR elements 50 are the same as those in the first embodiment.

[0186] Hereinafter, focusing on one MR element 50, the structure of the magnetic field generating body 700 will be described. The magnetic sensor 1 of this embodiment includes two magnetic field generating bodies 700 configured to sandwich the MR element 50. Each of the two magnetic field generating bodies 700 includes a ferromagnetic portion 712 made of a ferromagnetic material.

[0187] The ferromagnetic portion 712 includes a ferromagnetic layer 712a made of a ferromagnetic material. The ferromagnetic layer 712a is configured to overlap with the MR element 50 when viewed from the first direction D1. In this embodiment, in particular, the ferromagnetic layer 712a is configured to overlap with the entire free layer 54 when viewed from the first direction D1. In addition, the MR element 50 is disposed between two ferromagnetic layers 712a that are disposed at a predetermined interval in the first direction D1. The ferromagnetic layer 712a can also be formed of the same material as the ferromagnetic layer 72a in the first embodiment, for example.

[0188] Each of the two magnetic field generating bodies 700 further includes a buffer layer 711 disposed on the lower surface side of the ferromagnetic portion 712. The buffer layer 711 can also be formed of the same material as the buffer layer 71 in the first embodiment, for example.

[0189] The magnetic sensor 1 of this embodiment further includes a base layer 713 disposed on the MR element 50, the two ferromagnetic layers 712a, and the insulating layer 32, an antiferromagnetic layer 714 disposed on the base layer 713, and a cover layer 715 disposed on the antiferromagnetic layer 714. The antiferromagnetic layer 714 includes two opposing portions 714a that are respectively opposed to the two ferromagnetic layers 712a via the base layer 713, and a non-opposing portion 714b that is opposed to the MR element 50 and the insulating layer 32 via the base layer 713 but not opposed to the two ferromagnetic layers 712a. The two opposing portions 714a are connected to each other by the non-opposing portion 714b.

[0190] The base layer 713 includes two intervening portions 713a interposed between the two ferromagnetic layers 712a and the two opposing portions 714a. The cover layer 715 includes two protective portions 715a disposed on the two opposing portions 714a.

[0191] The base layer 713 is formed of a metallic material. In the present embodiment, in particular, the base layer 713 is formed of a ferromagnetic metallic material. When the base layer 713 is formed of a ferromagnetic metallic material, the base layer 713 may also be formed of the same material as the ferromagnetic layer 712a. Further, in the base layer 713, at least the intervening portion 713a may have magnetism. The portion of the base layer 713 intervening between the MR element 50, the insulating layer 32, and the antiferromagnetic layer 714 may or may not have magnetism.

[0192] The antiferromagnetic layer 714 may also be formed of the same material as the antiferromagnetic layer 73a in the first embodiment, for example. The covering layer 715 may also be formed of the same material as the covering layer 74 in the first embodiment, for example.

[0193] The buffer layer 711 and the ferromagnetic layer 712a constitute a first laminate 701. The base layer 713, the antiferromagnetic layer 714, and the covering layer 715 constitute a second laminate 702. The MR element 50 is disposed between two first laminates 701. The second laminate 702 is disposed on the MR element 50, the insulating layer 32, and two first laminates 701.

[0194] The second laminate 702 includes two laminated portions 702a disposed on two first laminates 701. The two laminated portions 702a each include an intervening portion 713a, a facing portion 714a, and a protecting portion 715a.

[0195] In the laminate formed of the first laminate 701 and the laminated portion 702a disposed on the first laminate 701, the facing portion 714a is exchange-coupled with the ferromagnetic layer 712a via the intervening portion 713a. Thereby, the direction of magnetization of the ferromagnetic layer 712a is defined.

[0196] Each of the two magnetic field generators 700 further includes an antiferromagnetic portion made of an antiferromagnetic material. In the present embodiment, the whole of the antiferromagnetic portion is substantially constituted by the facing portion 714a. Further, in the present embodiment, the whole of the ferromagnetic portion 712 is substantially constituted by the ferromagnetic layer 712a. By the facing portion 714a being exchange-coupled with the ferromagnetic layer 712a, the antiferromagnetic portion is exchange-coupled with the ferromagnetic portion 712. Thereby, the direction of magnetization of the ferromagnetic portion 712 is defined. The direction of magnetization of the ferromagnetic portion 712 is the same as the direction of magnetization of the ferromagnetic layer 712a. The ferromagnetic portion 712 and the antiferromagnetic portion generate a bias magnetic field based on the magnetization of the ferromagnetic portion 712. A bias magnetic field is applied to the MR element 50.

[0197] The ferromagnetic layer 712a is part of the first laminate 701, and the opposing portion 714a is part of the laminated portion 702a. Therefore, it can also be said that the first laminate 701 and the laminated portion 702a constitute the magnetic field generating body 700. The magnetic field generating body 700 includes a buffer layer 711, a ferromagnetic layer 712a, an intervening portion 713a, an opposing portion 714a, and a protective portion 715a.

[0198] The MR element 50 is disposed between two magnetic field generating bodies 700. The two magnetic field generating bodies 700 cooperate to apply a bias magnetic field to the MR element 50. The magnetization directions of the ferromagnetic layers 712a of one of the two magnetic field generating bodies 700 and the magnetization directions of the ferromagnetic layers 712a of the other of the two magnetic field generating bodies 700 can also be the same. In this case, the directions of the bias magnetic fields generated by one of the two magnetic field generating bodies 700 and the directions of the bias magnetic fields generated by the other of the two magnetic field generating bodies 700 become the same direction.

[0199] When the base layer 713 is formed of the same material as the ferromagnetic layer 712a, the ferromagnetic layer 712a and the intervening portion 713a substantially constitute a single ferromagnetic layer. The opposing portion 714a is in contact with the upper surface of the single ferromagnetic layer and is exchange-coupled with the single ferromagnetic layer.

[0200] The maximum dimension of the ferromagnetic layer 712a in the stacking direction (the direction parallel to the Z direction) of the plurality of magnetic films is greater than the maximum dimension of the base layer 713 in the stacking direction. In addition, the maximum dimension of the free layer 54 in the stacking direction is greater than the maximum dimension of the base layer 713 in the stacking direction.

[0201] The upper surface 50a of the MR element 50 faces the non-opposing portion 714b of the antiferromagnetic layer 714. The interval between the non-opposing portion 714b and the lower surface 50b of the MR element 50 is greater than the interval between the upper surface 50a and the lower surface 50b. The interval between the opposing portion 714a of the antiferromagnetic layer 714 and the upper surface of the lower electrode 61 can be the same as the interval between the non-opposing portion 714b and the lower surface 50b, or can be different from the interval between the non-opposing portion 714b and the lower surface 50b. In the latter case, the maximum interval between the opposing portion 714a and the upper surface of the lower electrode 61 can also be greater than the interval between the non-opposing portion 714b and the lower surface 50b.

[0202] The upper surface of the second laminate 702, that is, the upper surface of the covering layer 715, is in contact with the upper electrode 62. The planar shape of the second laminate 702 (the shape observed from the Z direction) can be the same as the planar shape of the upper electrode 62, can be smaller than the planar shape of the upper electrode 62, or can be larger than the planar shape of the upper electrode 62.

[0203] So far, the structure of the magnetic field generator 700 has been described with respect to one MR element 50. In the present embodiment, the magnetic sensor 1 includes a plurality of MR elements 50. As ​ shown, the plurality of MR elements 50 includes two MR elements 50 arranged along the second direction D2. A second laminate 702 is interposed between the two MR elements 50 and the upper electrode 62 that electrically connects the two MR elements 50. In ​ the example shown, the second laminate 702 is disposed above the two MR elements 50 and the four first laminates 701. In this example, the second laminate 702 includes four laminated portions 702a.

[0204] The two MR elements 50 are also electrically connected through the antiferromagnetic layer 714 of the second laminate 702. In addition, the two MR elements 50 are connected in series through the antiferromagnetic layer 714.

[0205] In addition, in the present embodiment, since the magnetic sensor 1 includes a plurality of MR elements 50 and a plurality of magnetic field generators 700, the magnetic sensor 1 includes a plurality of base layers 713, a plurality of antiferromagnetic layers 714, and a plurality of cover layers 715.

[0206] Next, the process of forming the plurality of magnetic field generators 700 in the present embodiment will be described. Here, with respect to one MR element 50, the process of forming two magnetic field generators 700 will be described. First, a photoresist mask is formed on the MR element 50 and the insulating layer 32. Next, the insulating layer 32 is etched. Next, in a state where the photoresist mask remains, an insulating layer 33, a buffer layer 711, and an initial ferromagnetic layer that will later become the ferromagnetic layer 712a are sequentially formed. Next, the photoresist mask is removed. Next, a base layer 713, an antiferromagnetic layer 714, and a cover layer 715 are sequentially formed on the MR element 50, the ferromagnetic layer 712a, and the insulating layer 32. Next, a process of fixing the magnetization direction of the initial ferromagnetic layer is performed. The process of fixing the magnetization direction of the initial ferromagnetic layer is the same as the process of fixing the magnetization direction of the ferromagnetic portion 72 in the first embodiment. By fixing the magnetization direction of the initial ferromagnetic layer, the initial ferromagnetic layer becomes the ferromagnetic layer 712a, and the magnetic field generator 700 is completed. [[ID=--]] [[ID=--]]

[0207] In addition, the ferromagnetic portion 712 of the magnetic field generator 700 in the present embodiment may also be the same as the fourth and fifth modification examples in the first embodiment and include two ferromagnetic layers. In the case where the ferromagnetic portion 712 includes two ferromagnetic layers, similar to the fifth modification example in the first embodiment, the magnetic field generator 700 may also include a non-magnetic layer disposed between the two ferromagnetic layers.

[0208] In addition, the antiferromagnetic portion of the magnetic field generating body 700 in the present embodiment may include, in addition to the opposing portion 714a, an antiferromagnetic layer disposed between the buffer layer 711 and the ferromagnetic layer 712a, which is the same as the third modification example in the first embodiment.

[0209] Other structures, functions, and effects in the present embodiment are the same as those in the first embodiment.

[0210] [Third Embodiment]

[0211] Next, with reference to ​ and ​ the third embodiment of the present invention will be described. ​ is a top view showing the main part of the magnetic sensor of the present embodiment. ​ is showing ​ a cross-sectional view of a part of the cross-section at the position indicated by line 26-26 in

[0212] Hereinafter, focusing on one MR element 50, the points where the structure of the magnetic sensor 1 in the present embodiment is different from that in the first embodiment will be described. In the present embodiment, compared with the first embodiment, two magnetic field generating bodies 70 are respectively disposed closer to the MR element 50. In the present embodiment, in particular, two magnetic field generating bodies 70 are respectively arranged so as to straddle the side surface 50c of the MR element 50. A part of each of the two magnetic field generating bodies 70 overlaps a part of the MR element 50 when viewed from the Z direction. An insulating layer 33 is interposed between the MR element 50 and the two magnetic field generating bodies 70.

[0213] In addition, ​ shows an example in which the structure of each of the two magnetic field generating bodies 70 is the same as the structure described with reference to ​ in the first embodiment. However, the structure of each of the two magnetic field generating bodies 70 may also be the same as any one of the multiple modification examples of the first embodiment. In particular, when the structure of each of the two magnetic field generating bodies 70 is the same as the fifth modification example of the first embodiment described with reference to ​ and the ferromagnetic layer 72a and the ferromagnetic layer 72b are antiferromagnetically exchange-coupled via the non-magnetic layer 75, the following effects are achieved. The intensity of the bias magnetic field based on the ferromagnetic layer 72a or the ferromagnetic layer 72b is greater than the intensity of the bias magnetic field based on the entire ferromagnetic portion 72. In the present embodiment, the distance between the free layer 54 of the MR element 50 and the ferromagnetic layer 72a or the ferromagnetic layer 72b is smaller than the example shown in ​ . Therefore, a bias magnetic field based on the ferromagnetic layer 72a or the ferromagnetic layer 72b, that is, a bias magnetic field having an intensity greater than the intensity of the bias magnetic field based on the entire ferromagnetic portion 72, can be applied to the free layer 54.

[0214] Next, the process of forming a plurality of magnetic field generators 70 in the present embodiment will be described. Here, focusing on one MR element 50, the process of forming two magnetic field generators 70 will be described. First, a first photoresist mask is formed on the stacked film that will later become the MR element 50. Next, using the first photoresist mask, the stacked film is patterned by etching so as to form two side surfaces 50d (see ​ ) in the stacked film. Next, with the first photoresist mask remaining, an insulating layer 32 is formed around the stacked film. Next, the first photoresist mask is removed.

[0215] Next, a second photoresist mask is formed on the stacked film and the insulating layer 32. Next, using the second photoresist mask, the stacked film is patterned by etching so as to form two side surfaces 50c (see ​ ) in the stacked film. In this etching, the insulating layer 32 is also etched. By forming two side surfaces 50c in the stacked film, the stacked film becomes the MR element 50. Next, with the second photoresist mask remaining, an insulating layer 33 and two initial magnetic field generators 70P that will later become two magnetic field generators 70 are sequentially formed. The structures of the two initial magnetic field generators 70P are the same as those in the first embodiment. Next, the second photoresist mask is removed.

[0216] Next, the magnetization directions of the initial ferromagnetic portions of the two initial magnetic field generators 70P are fixed. The method of fixing the magnetization direction of the initial ferromagnetic portion in the present embodiment is basically the same as that in the first embodiment.

[0217] Hereinafter, with reference to ​ the method of fixing the magnetization direction of the initial ferromagnetic portion in the present embodiment will be described in detail. First, as shown in ​ , while applying a magnetic field component MF1 in one direction parallel to the first direction D1 (in ​ , the upward direction from bottom to top) to the magnetic sensor 1, a laser is selectively irradiated to a plurality of initial magnetic field generators 70P corresponding to the resistance portions R1 and R2. After the laser irradiation, the magnetization directions of the initial ferromagnetic portions of the irradiated plurality of initial magnetic field generators 70P are fixed to the same direction as the direction of the magnetic field component MF1. Thus, as shown in ​ , the irradiated plurality of initial magnetic field generators 70P become a plurality of magnetic field generators 70.

[0218] For example, a mask 103 may also be used to selectively irradiate a plurality of initial magnetic field generating bodies 70P with laser light. The mask 103 has at least one opening 103a that exposes some or all of the plurality of initial magnetic field generating bodies 70P corresponding to the resistance portions R1 and R2. In the present embodiment, in particular, some or all of the plurality of MR elements 50 of the resistance portions R1 and R2 are also exposed from the at least one opening 103a. The plurality of MR elements 50 of the resistance portions R3 and R4 and the plurality of initial magnetic field generating bodies 70P corresponding to the resistance portions R3 and R4 are covered by the mask 103. Through the at least one opening 103a, some or all of the plurality of initial magnetic field generating bodies 70P are irradiated with laser light.

[0219] The plurality of MR elements 50 of the resistance portions R1 and R2 are also irradiated with laser light. Therefore, during the laser irradiation, the temperature of the plurality of MR elements 50 of the resistance portions R1 and R2 also rises. However, the magnetization directions of the magnetization fixing layers 52 of the plurality of MR elements 50 of the resistance portions R1 and R2 are maintained so as not to be tilted by the magnetic field component MF1. In order to maintain the magnetization direction of the magnetization fixing layer 52, a structure in which the magnetization fixing layer 52 is not higher than the blocking temperature of the antiferromagnetic layer 521 may be used, or the blocking temperature of the antiferromagnetic layer 521 may be made higher than the blocking temperature of the antiferromagnetic portion 73. Alternatively, in order to maintain the magnetization direction of the magnetization fixing layer 52, the intensity of the magnetic field component MF1 may be suppressed to a magnitude such that the magnetization direction of the magnetization fixing layer 52 does not tilt, or a structure that increases the coercive force of the magnetization fixing layer 52 or a structure in which the magnetization direction of the magnetization fixing layer 52 is difficult to change may be used.

[0220] ​ The following process is shown. In this process, while applying a magnetic field component MF2 in another direction parallel to the first direction D1 (in ​ this case, the direction from top to bottom) to the magnetic sensor 1, the plurality of initial magnetic field generating bodies 70P corresponding to the resistance portions R3 and R4 are selectively irradiated with laser light. After the laser irradiation, the magnetization directions of the initial ferromagnetic portions of the irradiated plurality of initial magnetic field generating bodies 70P are fixed in the same direction as the direction of the magnetic field component MF2. As a result, as ​ shown, the plurality of initial magnetic field generating bodies 70P irradiated with laser light become a plurality of magnetic field generating bodies 70.

[0221] With ​The processes shown are the same. For example, a mask 104 can also be used to selectively irradiate a plurality of initial magnetic field generating bodies 70P with laser light. The mask 104 has at least one opening 104a that exposes some or all of the plurality of initial magnetic field generating bodies 70P corresponding to the resistance portions R3 and R4. In the present embodiment, in particular, some or all of the plurality of MR elements 50 of the resistance portions R3 and R4 are also exposed from the at least one opening 104a. The plurality of MR elements 50 of the resistance portions R1 and R2 and the plurality of magnetic field generating bodies 70 corresponding to the resistance portions R1 and R2 are covered by the mask 104. Through the at least one opening 104a, some or all of the plurality of initial magnetic field generating bodies 70P are irradiated with laser light.

[0222] The plurality of MR elements 50 of the resistance portions R3 and R4 are also irradiated with laser light. Therefore, during the laser irradiation, the temperature of the plurality of MR elements 50 of the resistance portions R3 and R4 also rises. However, the magnetization directions of the magnetization fixing layers 52 of the plurality of MR elements 50 of the resistance portions R3 and R4 are the same as the magnetization directions of the magnetization fixing layers 52 of the plurality of MR elements 50 of the resistance portions R1 and R2, and are maintained without being tilted by the magnetic field component MF2.

[0223] Other structures, operations, and effects in the present embodiment are the same as those in the first embodiment.

[0224] [Modification Example]

[0225] Next, refer to ​ The modification example of the magnetic sensor 1 of the present embodiment will be described. ​ FIG. is a cross-sectional view showing a main part of a modification example of the magnetic sensor 1 of the present embodiment. In the modification example, the magnetization fixing layer 52 of the MR element 5 may include an antiferromagnetic layer 521 disposed on the buffer layer 51, a ferromagnetic layer 523 disposed on the antiferromagnetic layer 521, a nonmagnetic layer 524 disposed on the ferromagnetic layer 5, and a ferromagnetic layer 525 disposed on the nonmagnetic layer 524. The ferromagnetic layers 523 and 525 are formed of a ferromagnetic material containing one or more elements of Co, Fe, and Ni. The nonmagnetic layer 524 is formed of a nonmagnetic metal material such as Ru, for example.

[0226] The antiferromagnetic layer 521 may also be formed of the same material as the antiferromagnetic layer 521 shown in the first embodiment, for example. In addition, as in the first embodiment, the antiferromagnetic layer 73a of the antiferromagnetic portion 73 of the magnetic field generating body 70 and the antiferromagnetic layer 521 may contain the same elements. ​

[0227] ​The antiferromagnetic layer 521 generates an exchange coupling with the ferromagnetic layer 523 to fix the direction of magnetization of the ferromagnetic layer 523. The ferromagnetic layer 523 and the ferromagnetic layer 525 are antiferromagnetically exchange-coupled via the nonmagnetic layer 524. The directions of magnetization of the ferromagnetic layer 523 and the ferromagnetic layer 525 are opposite to each other. The direction of magnetization of the magnetization fixing layer 52 is the same as the direction of magnetization of the ferromagnetic layer 525.

[0228] In the modified example, since the directions of magnetization of the ferromagnetic layer 523 and the ferromagnetic layer 525 are opposite to each other, the net moment of the magnetization fixing layer 52 becomes smaller. Therefore, in the magnetization fixing layer 52, the energy generated by the external magnetic field acting on the magnetic moment, that is, the Zeeman energy, becomes smaller. Thus, as in the present embodiment, even if the temperature of the plurality of MR elements 50 rises due to the laser for irradiating the initial magnetic field generation body 70P, compared with the case where the Zeeman energy is large, the direction of magnetization of the magnetization fixing layer 52 is less likely to tilt toward the direction of the magnetic field component MF1 or the magnetic field component MF2.

[0229] In addition, in the modified example, the magnetization per unit area Mst1 of the ferromagnetic layer 523 may also be different from the magnetization per unit area Mst2 of the ferromagnetic layer 525. In the modified example, it is particularly preferable that the magnetization Mst1 is set to be equal to or less than the magnetization Mst2. In the case where Mst1 > Mst2, when the temperature of the plurality of MR elements 50 rises due to the laser for irradiating the initial magnetic field generation body 70P, regardless of the magnitudes of the intensities of the magnetic field component MF1 or the magnetic field component MF2, the direction of magnetization of the ferromagnetic layer 523 may tilt toward the direction of the magnetic field component MF1 or the magnetic field component MF2.

[0230] On the contrary, in the case where Mst1 ≤ Mst2, when the temperature of the plurality of MR elements 50 rises due to the laser for irradiating the initial magnetic field generation body 70P, in the case where the intensities of the magnetic field component MF1 or the magnetic field component MF2 are small, the direction of magnetization of the ferromagnetic layer 523 tilts toward the direction opposite to the direction of the magnetic field component MF1 or the magnetic field component MF2. In addition, in this case, in the case where the intensities of the magnetic field component MF1 or the magnetic field component MF2 are large, the direction of magnetization of the ferromagnetic layer 523 tilts toward the direction of the magnetic field component MF1 or the magnetic field component MF2. Therefore, in the case where Mst1 ≤ Mst2, by adjusting the intensities of the magnetic field components MF1 and MF2 to an appropriate magnitude, the direction of magnetization of the ferromagnetic layer 523 can be made to hardly change. Thereby, the change in the direction of magnetization of the magnetization fixing layer 52 can be suppressed.

[0231] In addition, even when Mst1 > Mst2, if the coercive force of the ferromagnetic layer 523 is large, it is difficult for the magnetization direction of the magnetization fixing layer 52 to tilt toward the direction of the magnetic field component MF1 or the direction of the magnetic field component MF2. Further, even when Mst1 > Mst2, depending on the magnetostriction of the ferromagnetic layer 523 and the state of the stress around the MR element 50, it is difficult for the magnetization direction of the magnetization fixing layer 52 to tilt toward the direction of the magnetic field component MF1 or the direction of the magnetic field component MF2.

[0232] [Fourth Embodiment]

[0233] Next, with reference to ​ and ​ a fourth embodiment of the present invention will be described. ​ is a top view showing a main part of the magnetic sensor of the present embodiment. ​ shows ​ a partial cross-sectional view of a cross-section at the position indicated by line 33-33 in

[0234] Hereinafter, focusing on one MR element 50, differences in the structure of the magnetic sensor 1 of the present embodiment from the second embodiment will be described. In the present embodiment, compared with the second embodiment, the two magnetic field generators 700 are respectively arranged closer to the MR element 50. In the present embodiment, in particular, the ferromagnetic layer 712a of the ferromagnetic portion 712 of each of the two magnetic field generators 700 is arranged to straddle the side surface 50c of the MR element 50. A part of the ferromagnetic layer 712a overlaps a part of the MR element 50 when viewed from the Z direction. An insulating layer 33 is interposed between the MR element 50 and the two magnetic field generators 700.

[0235] Next, a process of forming the plurality of magnetic field generators 700 in the present embodiment will be described. Here, focusing on one MR element 50, a process of forming the two magnetic field generators 700 will be described. First, a photoresist mask is formed on the laminated film that will later become the MR element 50, that is, on the laminated film formed with two side surfaces 50d (see ​ ) and the insulating layer 32. Next, using the photoresist mask, the laminated film is patterned by etching so as to form two side surfaces 50c (see ​ ) in the laminated film. In this etching, the insulating layer 32 is also etched. By forming two side surfaces 50c in the laminated film, the laminated film becomes the MR element 50.

[0236] Next, in a state where the photoresist mask remains, an insulating layer 33, a buffer layer 711, and an initial ferromagnetic layer that will later become the ferromagnetic layer 712a are sequentially formed. Next, the photoresist mask is removed. Next, a base layer 713, an antiferromagnetic layer 714, and a cover layer 715 are sequentially formed on the MR element 50, the initial ferromagnetic layer, and the insulating layer 32. Next, a process of fixing the magnetization direction of the initial ferromagnetic layer is performed. The process of fixing the magnetization direction of the initial ferromagnetic layer is the same as that in the second embodiment. By fixing the magnetization direction of the initial ferromagnetic layer, the initial ferromagnetic layer becomes the ferromagnetic layer 712a, and the magnetic field generating body 700 is completed.

[0237] Other structures, operations, and effects in this embodiment are the same as those in the second embodiment.

[0238] [Modification Example]

[0239] Next, first to third modification examples of the magnetic sensor 1 in this embodiment will be described. First, refer to ​ The first modification example will be described. ​ FIG. is a top view showing the main part of the first modification example of the magnetic sensor 1.

[0240] In the first modification example, each of the plurality of lower electrodes 61 electrically connects two MR elements 50 adjacent in the first direction D1. Each of the plurality of upper electrodes 62 electrically connects two MR elements 50 adjacent to each other and disposed above the two lower electrodes 61. Thus, the plurality of MR elements 50 arranged in a row in the first direction D1 are connected in series. In the first modification example, a plurality of connection electrodes electrically connect the plurality of lower electrodes 61 or the plurality of upper electrodes 62 so that groups of the plurality of MR elements 50 arranged in a row are connected in series.

[0241] In addition, in the first modification example, a second laminate 702 is interposed between two MR elements 50 arranged along the first direction D1 and the upper electrode 62. The two MR elements 50 are also electrically connected through the antiferromagnetic layer 714 (refer to ​ ) of the second laminate 702. In addition, the two MR elements 50 are connected in series through the antiferromagnetic layer 714.

[0242] Next, refer to ​ The second modification example will be described. ​ FIG. is a cross-sectional view showing the main part of the second modification example of the magnetic sensor 1. In the second modification example, the first laminate 701 includes a ferromagnetic portion 721A made of a ferromagnetic material instead of the ferromagnetic layer 712a. The ferromagnetic portion 721A has the same function as the ferromagnetic portion 712. The shape and arrangement of the ferromagnetic portion 721A may also be the same as the shape and arrangement of the ferromagnetic layer 712a.

[0243] The second laminate 702 includes a base portion 721B instead of the base layer 713. The shape and arrangement of the base portion 721B may be the same as those of the base layer 713. In addition, the base portion 721B includes an intervening portion 721Ba between the ferromagnetic portion 721A and the opposing portion 714a, and a non-intervening portion 721Bb other than the intervening portion 721Ba. The laminated portion 702a includes the intervening portion 721Ba instead of the intervening portion 713a.

[0244] In the second modification, in particular, the ferromagnetic portion 721A and the base portion 721B are formed of a single ferromagnetic layer 721. In ​ , the boundary between the ferromagnetic portion 721A and the base portion 721B is indicated by a dashed line.

[0245] Next, a third modification will be described with reference to ​ FIG. ​ is a cross-sectional view showing the main part of a third modification of the magnetic sensor 1. In the third modification, the base layer 713 is not provided, and the antiferromagnetic layer 714 is disposed on the MR element 50, the two ferromagnetic layers 712a, and the insulating layer 32.

[0246] [Fifth Embodiment]

[0247] Next, a fifth embodiment of the present invention will be described. First, the structure of a magnetic sensor system including the magnetic sensor of this embodiment will be described with reference to ​ FIG. ​ is a perspective view showing the magnetic sensor system 200 in this embodiment.

[0248] The magnetic sensor system 200 includes the magnetic sensor 201 of this embodiment and a magnetic field generating unit 202 that generates a predetermined magnetic field. In this embodiment, the magnetic field generating unit 202 is a magnet configured to apply a partial magnetic field, which is a part of the generated magnetic field, to the magnetic sensor 201. The partial magnetic field includes a first magnetic field component Hz parallel to the Z direction and a second magnetic field component Hy parallel to the Y direction.

[0249] As shown in ​ , in this embodiment, the magnetization direction of the magnetic field generating unit 202 is in the Y direction, and the direction of the second magnetic field component Hy is in the -Y direction. When the magnetic field generating unit 202 moves in the Y direction from a predetermined position, the direction of the first magnetic field component Hz becomes the Z direction, and when the magnetic field generating unit 202 moves in the -Y direction from the predetermined position, the direction of the first magnetic field component Hz becomes the -Z direction.

[0250] Next, the schematic structure of the magnetic sensor 201 of this embodiment will be described with reference to ​ FIG. ​ is a circuit diagram showing the circuit structure of the magnetic sensor 201.

[0251] The magnetic sensor 201 includes four resistance portions R31, R32, R33, R34, a power supply port V3, a ground port G3, and two output ports E31, E32. The resistance portion R31 is disposed between the power supply port V3 and the output port E31. The resistance portion R32 is disposed between the output port E31 and the ground port G3. The resistance portion R33 is disposed between the output port E32 and the ground port G3. The resistance portion R34 is disposed between the power supply port V3 and the output port E32. A voltage or current of a specified magnitude is applied to the power supply port V3. The ground port G3 is grounded.

[0252] The resistance portions R31 to R34 each include a plurality of MR elements 50. The plurality of MR elements 50 constituting the resistance portion R31 are disposed between the power supply port V3 and the output port E31 in the circuit structure. The plurality of MR elements 50 constituting the resistance portion R32 are disposed between the output port E31 and the ground port G3 in the circuit structure. The plurality of MR elements 50 constituting the resistance portion R33 are disposed between the output port E32 and the ground port G3 in the circuit structure. The plurality of MR elements 50 constituting the resistance portion R34 are disposed between the power supply port V3 and the output port E32 in the circuit structure.

[0253] The structure of the plurality of MR elements 50 is the same as that of the third embodiment. That is, as shown in the third embodiment ​ the plurality of MR elements 50 each include a buffer layer 51, a magnetization fixing layer 52, a spacer layer 53, a free layer 54, and a covering layer 55.

[0254] In ​ a plurality of solid arrows respectively drawn in a manner overlapping with the resistance portions R31 to R34 indicate the directions of magnetization of the magnetization fixing layers 52 in the respective resistance portions R3, to R34. In the example shown in ​ the directions of the main components of the magnetization of the magnetization fixing layers 52 in the resistance portions R31 and R34 are in the X direction. The directions of the main components of the magnetization of the magnetization fixing layers 52 in the resistance portions R32 and R33 are in the -X direction. The free layers 54 in the respective resistance portions R31 to R34 have shape anisotropy in which the direction of the easy magnetization axis is parallel to the Y direction.

[0255] The magnetic sensor 201 also includes a plurality of magnetic field generators 70. The structure of the plurality of magnetic field generators 70 is the same as that of the third embodiment. The plurality of magnetic field generators 70 includes pairs of the plurality of magnetic field generators 70 each constituted by two magnetic field generators 70. The above two magnetic field generators 70 are arranged at a predetermined interval in a direction parallel to the Y direction with one MR element 50 interposed therebetween. The two magnetic field generators 70 are configured to apply a bias magnetic field to one MR element 50 located therebetween. The bias magnetic field includes a component in the direction parallel to the Y direction as a main component.

[0256] In ​ , the arrows marked with symbols M31, M32, M33, and M34 respectively indicate the directions of the main components of the bias magnetic fields generated by the plurality of magnetic field generators 70 in the resistance portions R31, R32, R33, and R34. The directions of the main components of the bias magnetic fields in the resistance portions R31 and R34 are the Y direction. The directions of the main components of the bias magnetic fields in the resistance portions R32 and R33 are the -Y direction.

[0257] The direction of the bias magnetic field substantially represents the direction of magnetization of the ferromagnetic portions 72 of the plurality of magnetic field generators 70. The direction of magnetization of the ferromagnetic portions 72 of the plurality of magnetic field generators 70 corresponding to the resistance portions R31 and R34 is the Y direction. The direction of magnetization of the ferromagnetic portions 72 of the plurality of magnetic field generators 70 corresponding to the resistance portions R32 and R33 is the -Y direction.

[0258] In ​ , the plurality of hollow arrows respectively depicted so as to overlap with the resistance portions R31 to R34 indicate the directions of magnetization of the free layers in the respective resistance portions R31 to R34 when no partial magnetic field is applied to the magnetic sensor 201. The direction of the main component of the magnetization of the free layers in the resistance portions R31 and R34 may be the Y direction or the same as the direction of the main component of the bias magnetic field in the resistance portions R31 and R34. The direction of the main component of the magnetization of the free layers in the resistance portions R32 and R33 may be the -Y direction or the same as the direction of the main component of the bias magnetic field in the resistance portions R32 and R33.

[0259] Next, with reference to ​ the structure of the magnetic sensor 201 will be specifically described. ​ is a perspective view showing a part of the magnetic sensor 201. ​ is a top view showing a part of the magnetic sensor 201. ​ is a side view showing a part of the magnetic sensor 201.

[0260] The magnetic sensor 201 also includes a substrate 230. The magnetic sensor 201 is formed by forming a plurality of components other than the substrate 230 on the substrate 230.

[0261] The magnetic sensor 201 also includes at least one magnetic yoke made of a soft magnetic material. When viewed from the Z direction, the at least one magnetic yoke has a shape that is long in the Y direction. Additionally, the at least one magnetic yoke generates a magnetic field component in a direction parallel to the X direction based on ​ the first magnetic field component Hz shown.

[0262] As ​ shown, in the present embodiment, particularly as the at least one magnetic yoke, the magnetic sensor 201 includes a plurality of magnetic yokes 250 arranged along the X direction. Each of the plurality of magnetic yokes 250 has, for example, a rectangular parallelepiped shape that is long in the Y direction. The shapes of the plurality of magnetic yokes 250 are the same. Each of the plurality of magnetic yokes 250 has a first end face 250a and a second end face 250b located at both ends in a direction parallel to the X direction. In each of the plurality of magnetic yokes 250, the first end face 250a is located at one end in the -X direction, and the second end face 250b is located at one end in the X direction.

[0263] Each of the plurality of MR elements 50 is disposed at a position where the magnetic field component generated by the plurality of magnetic yokes 250 is applied. In the present embodiment, particularly, each of the MR elements 50 is disposed near the -Z direction end of each of the plurality of magnetic yokes 250. Additionally, the plurality of MR elements 50 are arranged in multiple numbers along the first end face 250a or the second end face 250b of each of the plurality of magnetic yokes 250. Hereinafter, the plurality of MR elements 50 arranged along the first end face 250a are denoted by the symbol 50C, and the plurality of MR elements 50 arranged along the second end face 250b are denoted by the symbol 50D. The directions of the magnetic field components received by the plurality of MR elements 50C and the directions of the magnetic field components received by the plurality of MR elements 50D are opposite to each other.

[0264] When viewed from the Z direction, the plurality of MR elements 50C and the plurality of MR elements 50D may or may not overlap with the plurality of magnetic yokes 250. In ​ the example shown, the plurality of MR elements 50C and the plurality of MR elements 50D are arranged so as not to overlap with the plurality of magnetic yokes 250 when viewed from the Z direction.

[0265] As ​ and ​As shown, the magnetic field generators 70C denote the magnetic field generators among the plurality of magnetic field generators 70 that are configured to sandwich the MR element 50C, and the magnetic field generators 70D denote the magnetic field generators configured to sandwich the MR element 50D. The magnetic sensor 201 further includes a plurality of magnetic yokes 90C and a plurality of magnetic yokes 90D each including a magnetic layer made of a soft magnetic material. The plurality of magnetic yokes 90C include pairs of the plurality of magnetic yokes 90C each composed of two magnetic yokes 90C. The two magnetic yokes 90C are arranged on both sides of one MR element 50C in a direction parallel to the X direction. The plurality of magnetic yokes 90D include pairs of the plurality of magnetic yokes 90D each composed of two magnetic yokes 90D. The two magnetic yokes 90D are arranged on both sides of one MR element 50D in a direction parallel to the X direction.

[0266] The plurality of magnetic yokes 90C have a function of guiding the magnetic field components generated by the plurality of magnetic yokes 250 to the plurality of MR elements 50C. The plurality of magnetic yokes 90D have a function of guiding the magnetic field components generated by the plurality of magnetic yokes 250 to the plurality of MR elements 50D.

[0267] The magnetic sensor 201 further includes a wiring portion 211 that electrically connects the plurality of MR elements 50C and a wiring portion 212 that electrically connects the plurality of MR elements 50D. The wiring portions 211 and 212 are each composed of a plurality of lower electrodes 61, a plurality of upper electrodes 62, and a plurality of connection electrodes. In addition, the lower electrodes 61 and the upper electrodes 62 are shown in ​ described later.

[0268] The wiring portion 211 includes a first wiring that electrically connects the plurality of MR elements 50C in which the main component direction of the magnetization of the magnetization fixing layer 52 is the X direction, and a second wiring that electrically connects the plurality of MR elements 50C in which the main component direction of the magnetization of the magnetization fixing layer 52 is the -X direction. The resistance portion R31 is formed by the plurality of MR elements 50C electrically connected by the first wiring. The resistance portion R32 is formed by the plurality of MR elements 50C electrically connected by the second wiring.

[0269] The wiring portion 212 includes a third wiring that electrically connects the plurality of MR elements 50D in which the main component direction of the magnetization of each magnetization fixing layer 52 is the -X direction, and a fourth wiring that electrically connects the plurality of MR elements 50D in which the main component direction of the magnetization of each magnetization fixing layer 52 is the X direction. The resistance portion R33 is formed by the plurality of MR elements 50D electrically connected by the third wiring. The resistance portion R34 is formed by the plurality of MR elements 50D electrically connected by the fourth wiring.

[0270] Next, the operation of the magnetic sensor 201 will be described. Since the first magnetic field component Hz does not exist, as a result, in a state where the magnetic field components generated by the plurality of magnetic yokes 250 also do not exist, the magnetization directions of the free layers 54 of the plurality of MR elements 50C and the plurality of MR elements 50D each become directions parallel to the Y direction.

[0271] When the direction of the first magnetic field component Hz is the Z direction, the direction of the magnetic field component received by each of the plurality of MR elements 50C constituting the resistance units R31 and R32 becomes the X direction, and the direction of the magnetic field component received by each of the plurality of MR elements 50D constituting the resistance units R33 and R34 becomes the -X direction. In this case, the magnetization directions of the free layers 54 of the plurality of MR elements 50C each tilt from the direction parallel to the Y direction toward the X direction, and the magnetization directions of the free layers 54 of the plurality of MR elements 50D each tilt from the direction parallel to the Y direction toward the -X direction. As a result, compared with the state where the magnetic field component does not exist, the resistance values of the plurality of MR elements 50C constituting the resistance unit R31 and the resistance values of the plurality of MR elements 50D constituting the resistance unit R33 decrease, and the resistance values of the plurality of MR elements 50C constituting the resistance unit R32 and the resistance values of the plurality of MR elements 50D constituting the resistance unit R34 increase. As a result, the resistance values of the resistance units R31 and R33 decrease, and the resistance values of the resistance units R32 and R34 increase.

[0272] When the direction of the first magnetic field component Hz is the -Z direction, the direction of the magnetic field component and the change in the resistance value of each of the resistance units R31 to R34 are opposite to those in the case where the direction of the first magnetic field component Hz is the Z direction described above.

[0273] The change amounts of the resistance values of the resistance units R31 to R34 depend on the intensity of the magnetic field components received by the plurality of MR elements 50C and the plurality of MR elements 50D. When the intensity of the magnetic field component increases, the resistance values of the resistance units R31 to R34 change in the direction in which their increase amounts or decrease amounts respectively increase. When the intensity of the magnetic field component decreases, the resistance values of the resistance units R31 to R34 change in the direction in which their increase amounts or decrease amounts respectively decrease. The intensity of the magnetic field component depends on the intensity of the first magnetic field component Hz.

[0274] Thus, when the direction and intensity of the first magnetic field component Hz change, the resistance values of the resistance portions R31 to R34 change such that the resistance values of the resistance portions R32 and R34 decrease as the resistance values of the resistance portions R31 and R33 increase, or the resistance values of the resistance portions R32 and R34 increase as the resistance values of the resistance portions R31 and R33 decrease. Accordingly, the potential at the connection point of the resistance portions R31 and R32, i.e., the potential of the output port E31, and the potential at the connection point of the resistance portions R33 and R34, i.e., the potential of the output port E32, change. The magnetic sensor 201 can also generate a signal corresponding to the potential of the output port E31 and a signal corresponding to the potential of the output port E32 as detection signals, respectively. Alternatively, the magnetic sensor 201 can generate a signal corresponding to the potential difference between the output ports E31 and E32 as a detection signal. In this case, the magnetic sensor 201 can further include a differential amplifier (differential detector) that outputs a signal corresponding to the potential difference between the output ports E31 and E32 as a detection signal.

[0275] The magnetic sensor system 200 can further include the ​ and ​ processor 2 shown in the first embodiment. The processor 2 can also be configured to receive one detection signal or two detection signals output from the magnetic sensor 201 and generate a detection value corresponding to the intensity of the first magnetic field component Hz or a detection value corresponding to the position of the magnetic field generating unit 202 (see ​ ).

[0276] Next, a detailed description will be given of the plurality of magnetic yokes 90C and the plurality of magnetic yokes 90D with reference to ​ . ​ FIG. is a plan view showing the main part of the magnetic sensor 201. ​ FIG. is a cross-sectional view showing a part of the cross-section at the position indicated by the line 43-43 in ​ . ​ FIG. is a cross-sectional view showing a part of the cross-section at the position indicated by the line 44-44 in ​ .

[0277] Hereinafter, any one of the plurality of magnetic yokes 90C and the plurality of magnetic yokes 90D will be denoted by the symbol 90. The configurations and shapes of the MR element 50 and the magnetic field generating body 70, and the positional relationship between the MR element 50 and the magnetic field generating body 70 are the same as those in the third embodiment.

[0278] Here, focusing on an MR element 50, the structure of the yokes 90 will be described. The two yokes 90 are arranged on both sides of the MR element 50 in a direction parallel to the X direction. The two yokes 90 are embedded in the insulating layer 32. An insulating layer 32 is interposed between the MR element 50 and the two yokes 90, and between the lower electrode 61 and the two yokes 90. Each of the two yokes 90 may include, in addition to the magnetic layer, a buffer layer interposed between the magnetic layer and the insulating layer 32 and a covering layer disposed on the magnetic layer. The buffer layer and the covering layer may be formed of a non-magnetic metal material, for example. Further, the two yokes 90 are respectively arranged to straddle the side surface 50d of the MR element 50. A part of each of the two yokes 90 overlaps a part of the MR element 50 when viewed from the Z direction.

[0279] The two yokes 90 are arranged between two magnetic field generating bodies 70 arranged at a predetermined interval in a direction parallel to the Y direction. The ferromagnetic layer 72a of the magnetic field generating body 70 is arranged to overlap the two yokes 90 when viewed from the Y direction or the -Y direction.

[0280] The ferromagnetic layer 72a is arranged to straddle the yoke 90. A part of the ferromagnetic layer 72a overlaps a part of the yoke 90 when viewed from the Z direction. An insulating layer 33 is interposed between the ferromagnetic layer 72a and the yoke 90. A part of the buffer layer 71 of the magnetic field generating body 70 is interposed between the ferromagnetic layer 72a and the insulating layer 33.

[0281] In the present embodiment, the upper electrode 62 is arranged above the MR element 50, the two magnetic field generating bodies 70, the two yokes 90, and the insulating layer 32.

[0282] In addition, the structure of the magnetic field generating body 70 in the present embodiment is not limited to ​ , ​ , ​ and ​ the examples shown. The magnetic sensor 201 of the present embodiment may also include a plurality of magnetic field generating bodies having the same structure as any of the first, second, third, or fourth embodiments, instead of the plurality of magnetic field generating bodies 70 in the present embodiment. Other structures, operations, and effects in the present embodiment are the same as those of any of the first to fourth embodiments.

[0283] In addition, the present invention is not limited to the above-described embodiments, and various modifications can be made. For example, the magnetic sensor of the present invention may also be a magnetic sensor including the first and second detection circuits 10 and 20 in the first embodiment and the magnetic sensor 201 of the fifth embodiment as the third detection circuit. In this magnetic sensor, the third detection circuit (magnetic sensor 201) may also be configured to detect the component of the object magnetic field in the direction parallel to the Z direction. This magnetic sensor may also be a geomagnetic sensor using the object magnetic field as the geomagnetism.

[0284] Alternatively, the MR element 50 may also be formed by laminating, from the lower electrode 61 side, a buffer layer 51, a free layer 54, a spacer layer 53, a magnetization-fixed layer 52, and a cover layer 55 in this order.

[0285] In addition, the modification example of the magnetic sensor 1 of the third embodiment is not limited to the third embodiment, and may also be applied to embodiments other than the third embodiment.

[0286] In addition, in the case where a first magnetic field generating body including a ferromagnetic portion having magnetization in a first direction and a second magnetic field generating body including a ferromagnetic portion having magnetization in a second direction different from the first direction are formed in sequence, when irradiating a first initial magnetic field generating body that will later become the first magnetic field generating body with a laser, the second initial magnetic field generating body that will later become the second magnetic field generating body may also be irradiated with a laser. In this case, after fixing the direction of magnetization of the ferromagnetic portion of the first magnetic field generating body, only the second initial magnetic field generating body is irradiated with a laser to fix the direction of magnetization of the ferromagnetic portion of the second magnetic field generating body.

[0287] As described above, the magnetic sensor of the present invention includes: a first magnetoresistive effect element and a second magnetoresistive effect element, each including a free layer whose magnetization direction can vary according to a magnetic field to be detected, i.e., an object magnetic field; a first magnetic field generating body including a first ferromagnetic portion containing a ferromagnetic material and a first antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the first ferromagnetic portion, and configured to generate a first magnetic field including a first component in a first direction and apply the first component to the first magnetoresistive effect element; and a second magnetic field generating body including a second ferromagnetic portion containing a ferromagnetic material and a second antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the second ferromagnetic portion, and configured to generate a second magnetic field including a second component in a second direction different from the first direction and apply the second component to the second magnetoresistive effect element. There is no group of other magnetoresistive effect elements and other magnetic field generating bodies capable of detecting the magnetoresistive effect between the first group of the first magnetoresistive effect element and the first magnetic field generating body and the second group of the second magnetoresistive effect element and the second magnetic field generating body.

[0288] In the magnetic sensor of the present invention, the first direction and the second direction may be opposite directions to each other. Alternatively, the first direction and the second direction may be orthogonal to each other.

[0289] In addition, in the magnetic sensor of the present invention, when no object magnetic field is applied to the first magnetoresistive effect element, the magnetization of the free layer of the first magnetoresistive effect element may also include a component in the first magnetization direction. When no object magnetic field is applied to the second magnetoresistive effect element, the magnetization of the free layer of the second magnetoresistive effect element may also include a component in a second magnetization direction different from the first magnetization direction.

[0290] In addition, in the magnetic sensor of the present invention, each of the first magnetoresistive effect element and the second magnetoresistive effect element may further include a magnetization fixing layer having a magnetization with a fixed direction. The magnetization fixing layer may also include: a first ferromagnetic layer containing a ferromagnetic material; a second ferromagnetic layer containing a ferromagnetic material; a nonmagnetic layer containing a nonmagnetic metal material and interposed between the first ferromagnetic layer and the second ferromagnetic layer; and an antiferromagnetic layer containing an antiferromagnetic material and in contact with the first ferromagnetic layer. The magnetization per unit area of the first ferromagnetic layer may also be less than or equal to the magnetization per unit area of the second ferromagnetic layer.

[0291] In addition, in the magnetic sensor of the present invention, each of the first magnetoresistive effect element and the second magnetoresistive effect element may also include an antiferromagnetic layer containing an antiferromagnetic material. The first antiferromagnetic portion, the second antiferromagnetic portion, and the antiferromagnetic layer may also contain at least one identical element.

[0292] In addition, the magnetic sensor of the present invention may further include a first port, a second port, and a third port. The first magnetoresistive effect element may also be configured between the first port and the second port in the circuit structure. The second magnetoresistive effect element may also be configured between the second port and the third port in the circuit structure.

[0293] In addition, the magnetic sensor of the present invention may further include: a third magnetoresistive effect element and a fourth magnetoresistive effect element, each including a free layer; a third magnetic field generating body including a third ferromagnetic portion containing a ferromagnetic material and a third antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the third ferromagnetic portion, and configured to generate a third magnetic field including a third component in a first direction and apply the third component to the third magnetoresistive effect element; and a fourth magnetic field generating body including a fourth ferromagnetic portion containing a ferromagnetic material and a fourth antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the fourth ferromagnetic portion, and configured to generate a fourth magnetic field including a fourth component in a second direction and apply the fourth component to the fourth magnetoresistive effect element. A group of other magnetoresistive effect elements capable of detecting the magnetoresistive effect and other magnetic field generating bodies may not be interposed between the third group of the third magnetoresistive effect element and the third magnetic field generating body and the fourth group of the fourth magnetoresistive effect element and the fourth magnetic field generating body. The third group may also be adjacent to one of the first group and the second group with an interval therebetween. The fourth group may also be adjacent to the other of the first group and the second group with an interval therebetween.

[0294] Based on the above description, various embodiments and modifications of the present invention can be implemented. Therefore, within the equivalent scope of the claims, the present invention can be implemented even by means other than the above-described best mode.

Claims

1. A magnetic sensor, characterized in that: It includes: A first magnetoresistive element and a second magnetoresistive element, each of which includes a free layer whose magnetization direction can change according to a target magnetic field of a magnetic field to be detected; A first magnetic field generating body, which includes a first ferromagnetic part containing a ferromagnetic material and a first antiferromagnetic part containing an antiferromagnetic material and exchange-coupled with the first ferromagnetic part, and is configured to generate a first magnetic field including a first component in a first direction and apply the first component to the first magnetoresistive element; And A second magnetic field generating body, which includes a second ferromagnetic part containing a ferromagnetic material and a second antiferromagnetic part containing an antiferromagnetic material and exchange-coupled with the second ferromagnetic part, and is configured to generate a second magnetic field including a second component in a second direction different from the first direction and apply the second component to the second magnetoresistive element, There is no other magnetoresistive element capable of detecting the magnetoresistive effect and other magnetic field generating bodies between the first group of the first magnetoresistive element and the first magnetic field generating body and the second group of the second magnetoresistive element and the second magnetic field generating body.

2. The magnetic sensor according to claim 1, characterized in that: The first direction and the second direction are opposite directions to each other.

3. The magnetic sensor according to claim 1, characterized in that: The first direction and the second direction are orthogonal to each other.

4. The magnetic sensor according to claim 1, characterized in that: When the target magnetic field is not applied to the first magnetoresistive element, the magnetization of the free layer of the first magnetoresistive element includes a component in a first magnetization direction, When the target magnetic field is not applied to the second magnetoresistive element, the magnetization of the free layer of the second magnetoresistive element includes a component in a second magnetization direction different from the first magnetization direction.

5. The magnetic sensor according to claim 1, characterized in that: Each of the first magnetoresistive element and the second magnetoresistive element further includes a magnetization fixing layer having a magnetization with a fixed direction, The magnetization fixing layer includes: a first ferromagnetic layer containing a ferromagnetic material; a second ferromagnetic layer containing a ferromagnetic material; a non-magnetic layer containing a non-magnetic metal material and interposed between the first ferromagnetic layer and the second ferromagnetic layer; and an antiferromagnetic layer containing an antiferromagnetic material and in contact with the first ferromagnetic layer.

6. The magnetic sensor according to claim 5, characterized in that: The magnetization per unit area of the first ferromagnetic layer is less than or equal to the magnetization per unit area of the second ferromagnetic layer.

7. The magnetic sensor according to claim 1, characterized in that: Each of the first magnetoresistive element and the second magnetoresistive element includes an antiferromagnetic layer containing an antiferromagnetic material, The first antiferromagnetic part, the second antiferromagnetic part and the antiferromagnetic layer contain at least one same element.

8. The magnetic sensor according to claim 1, characterized in that: It further includes: A first port; A second port; And A third port, The first magnetoresistive effect element is configured between the first port and the second port in the circuit structure. The second magnetoresistive effect element is configured between the second port and the third port in the circuit structure.

9. The magnetic sensor according to any one of claims 1 to 8, characterized in that: It further comprises: A third magnetoresistive effect element and a fourth magnetoresistive effect element, each of which includes the free layer; A third magnetic field generating body, which includes a third ferromagnetic portion containing a ferromagnetic material and a third antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the third ferromagnetic portion, and is configured to generate a third magnetic field including a third component in the first direction and apply the third component to the third magnetoresistive effect element; And A fourth magnetic field generating body, which includes a fourth ferromagnetic portion containing a ferromagnetic material and a fourth antiferromagnetic portion containing an antiferromagnetic material and exchange-coupled with the fourth ferromagnetic portion, and is configured to generate a fourth magnetic field including a fourth component in the second direction and apply the fourth component to the fourth magnetoresistive effect element. Between the third group of the third magnetoresistive effect element and the third magnetic field generating body and the fourth group of the fourth magnetoresistive effect element and the fourth magnetic field generating body, there is no other group of magnetoresistive effect elements and other magnetic field generating bodies capable of detecting the magnetoresistive effect. The third group is adjacent to one of the first group and the second group with an interval therebetween. The fourth group is adjacent to the other of the first group and the second group with an interval therebetween.

Citation Information

Patent Citations

  • Magnetic sensor

    CN105988092A

  • Current sensor, current measuring module, and smart meter

    JP2015125020A