Magnetic sensor

The even function TMR film structure in magnetic sensors enhances the resolution of detecting magnetic scale displacement by outputting multiple cycles of detection signals, addressing the low resolution issue of odd function structures.

WO2024225192A1PCT designated stage expired Publication Date: 2024-10-31PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/015591
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-26
Filing Date
2024-04-19
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Magnetic sensors with odd function TMR film structures have low resolution when detecting displacement of magnetic scales with alternately arranged north and south poles, as they can only detect half the number of magnetic pole cycles.

Method used

A magnetic sensor with an even function TMR film structure, comprising a barrier layer, free layers, spacer layers, pinned layers, and antiferromagnetic layers, where the magnetization directions of the pinned layers are fixed and the free layers change direction with the magnetic field, outputting sine and cosine wave signals to improve detection resolution.

Benefits of technology

The even function TMR film structure allows for the detection of two cycles of magnetic poles, doubling the resolution of displacement detection compared to sensors with odd function structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024015591_31102024_PF_FP_ABST
    Figure JP2024015591_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The magnetic sensor is for detecting the amount of displacement of a magnetic scale in which N poles and S poles are alternately arranged along a first direction. The magnetic sensor includes a first signal generation unit and a second signal generation unit arranged side by side with the magnetic scale in a second direction orthogonal to the first direction. The first signal generation unit and the second signal generation unit each have an even function TMR film structure. The first signal generation unit is disposed at a position shifted by a phase difference of 45 degrees with respect to the position of the second signal generation unit in the first direction, which is the displacement direction of the magnetic scale.
Need to check novelty before this filing date? Find Prior Art

Description

magnetic sensor

[0001] The present disclosure relates generally to magnetic sensors, and more particularly to magnetic sensors having a TMR (Tunnel Magneto Resistance) film structure.

[0002] The magnetic sensor described in Patent Document 1 has an odd-function TMR (Tunnel Magneto Resistance) film structure that includes a barrier layer, a pinned layer, an antiferromagnetic layer, and a free layer. The pinned layer and the antiferromagnetic layer are stacked in this order on one major surface of the barrier layer. The free layer is stacked on the other major surface of the barrier layer. The magnetization direction of the pinned layer is fixed in a predetermined direction by the antiferromagnetic layer. The magnetization direction of the free layer changes in the same direction as the direction of an external magnetic field.

[0003] Japanese Patent Application Laid-Open No. 2008-198911

[0004] The magnetic sensor described in Patent Document 1 has an odd-function TMR film structure. Therefore, when detecting the displacement of a magnetic scale with alternating north and south poles, when two adjacent magnetic poles (north and south poles) of the multiple magnetic poles (north and south poles) of the magnetic scale pass by the magnetic sensor, the magnetic sensor can only output detection signals for half the number of periods of the passing magnetic poles (i.e., two). Therefore, the magnetic sensor has a problem of low resolution when detecting the displacement of the magnetic scale.

[0005] A magnetic sensor according to one aspect of the present disclosure is a magnetic sensor for detecting the displacement of a magnetic scale having alternating north and south poles arranged along a first direction. The magnetic sensor includes a first signal generating unit and a second signal generating unit arranged alongside the magnetic scale in a second direction intersecting the first direction. The first signal generating unit and the second signal generating unit each have an even-function TMR (Tunnel Magneto Resistance) film structure. The even-function TMR film structure includes a barrier layer, a first free layer, a first spacer layer, a first pinned layer, a first antiferromagnetic layer, a second free layer, a second spacer layer, a second pinned layer, and a second antiferromagnetic layer. The barrier layer has first and second major surfaces facing each other. The first free layer, the first spacer layer, the first pinned layer, and the first antiferromagnetic layer are stacked in this order in the second direction on the first major surface of the barrier layer. The second free layer, the second spacer layer, the second pinned layer, and the second antiferromagnetic layer are stacked in this order in the second direction on the second major surface of the barrier layer. The magnetization directions of the first pinned layer and the second pinned layer are fixed in the same direction. The magnetization direction of the first free layer is the same as the magnetization direction of the first pinned layer in the absence of a magnetic field, and changes to the same direction as the magnetic field in the presence of a magnetic field generated by the magnetic scale. The magnetization direction of the second free layer is opposite to the magnetization direction of the second pinned layer in the absence of a magnetic field, and changes to the same direction as the magnetic field in the presence of the magnetic field generated by the magnetic scale. The first signal generating unit outputs a sine wave signal whose phase changes depending on the relative angle between the magnetization directions of the first free layer and the second free layer of the first signal generating unit. The second signal generating unit outputs a cosine wave signal whose phase changes depending on the relative angle between the magnetization directions of the first free layer and the second free layer of the second signal generating unit. The first signal generating portion is disposed at a position shifted by a phase difference of 45 degrees from the position of the second signal generating portion in the first direction, which is the displacement direction of the magnetic scale.

[0006] The magnetic sensor of the present disclosure has the advantage of being able to improve the resolution when detecting the amount of displacement of a magnetic scale on which N poles and S poles are alternately arranged.

[0007] FIG. 1 is a perspective view showing the positional relationship between a magnetic sensor and a magnetic scale according to the embodiment. FIG. 2 is a cross-sectional view of an even-function TMR film structure of the magnetic sensor according to the embodiment. FIG. 3 is a configuration diagram of the magnetic sensor according to the embodiment. FIG. 4 is an explanatory diagram illustrating the relative positional relationship between a first signal generating unit and a second signal generating unit of the magnetic sensor according to the embodiment. FIG. 5 is a cross-sectional view of an odd-function TMR film structure of a magnetic sensor of Comparative Example 1. FIG. 6 is a configuration diagram of the magnetic sensor according to the embodiment. FIG. 7 is a comparison diagram comparing the detection signals of the magnetic sensor according to the embodiment and the magnetic sensor of Comparative Example 1. FIG. 7A shows the detection signal of the magnetic sensor of Comparative Example 1. FIG. 7B shows the detection signal of the magnetic sensor according to the embodiment. FIG. 8 is a perspective view illustrating the relationship between the magnetization direction of the first pinned layer of the magnetic sensor according to the embodiment and the displacement direction of the magnetic scale. FIG. 9 is a perspective view illustrating the relationship between the magnetization direction of the first pinned layer of the magnetic sensor according to Comparative Example 2 and the displacement direction of the magnetic scale. FIG. 10A is a graph showing the detection signal of the magnetic sensor according to the embodiment. FIG. 10B is a graph showing the detection signal of the magnetic sensor of Comparative Example 2. Fig. 11 is an explanatory diagram illustrating the dependency of the electrical resistance of the magnetic sensor of the embodiment on the direction of the external magnetic field. Fig. 12 is a configuration diagram of a magnetic sensor of a modified example. Fig. 13 is an explanatory diagram illustrating the relative positional relationship between the first signal generating unit and the second signal generating unit of the magnetic sensor of the same embodiment.

[0008] (1) Embodiments (1-1) Details of Configuration Figures 1, 2, 5, 8, and 9 described in the following embodiments are schematic diagrams, and the ratios of the sizes and thicknesses of the components in Figures 1, 2, 5, 8, and 9 do not necessarily reflect the actual dimensional ratios.

[0009] A magnetic sensor 1 according to an embodiment will be described with reference to FIGS.

[0010] The magnetic sensor 1 can be used, for example, as an encoder for controlling an autofocus (AF) lens of a camera, a smartphone, etc. The magnetic sensor 1 is a magnetic sensor having an even-function TMR (Tunnel Magneto Resistance) film structure (also called a dual soft-pin type TMR film structure).

[0011] As shown in FIG. 1, a magnetic sensor 1 is disposed around a magnetic scale 2 to detect the amount of displacement of the magnetic scale 2 .

[0012] The magnetic scale 2 has a plurality of magnetic poles 21, each consisting of a plurality of north poles and a plurality of south poles, with the north poles and south poles arranged alternately. The "N" designation on the magnetic scale 2 in FIG. 1 indicates a north pole, and the "S" designation indicates a south pole. The magnetic scale 2 is displaced along the direction in which the north poles and south poles are arranged alternately (magnetic pole arrangement direction). In other words, the displacement direction Q1 of the magnetic scale 2 is parallel to (the same direction as) the magnetic pole arrangement direction (first direction) of the magnetic scale 2. In the example of FIG. 1, the magnetic scale 2 is a linear-acting magnetic scale in which the plurality of magnetic poles 21 are arranged linearly, and is displaced linearly in its longitudinal direction. In this case, the magnetic sensor 1 is a linear encoder.

[0013] When the magnetic scale 2 is displaced relative to the magnetic sensor 1, the direction of the magnetic field generated by the magnetic poles 21 of the magnetic scale 2 that pass through the magnetic sensor 1 changes. This change causes a change in the electrical resistance of the even-function TMR film structure in the magnetic sensor 1, and this change causes a change in the phase of the detection signal output from the magnetic sensor 1. The amount of displacement of the magnetic scale 2 is detected from this detection signal.

[0014] (1-2) Description of the Even Function TMR Film Structure As shown in FIG. 2, the even function TMR film structure 3 includes a barrier layer 30, a first free layer 31, a first spacer layer 32, a first pinned layer 33, a first antiferromagnetic layer 34, a second free layer 35, a second spacer layer 36, a second pinned layer 37, and a second antiferromagnetic layer 38.

[0015] The barrier layer 30 is an insulating layer made of an insulator (for example, a ceramic made of MgO (magnesium oxide) or the like). The barrier layer 30 has a first main surface 30a and a second main surface 30b facing each other.

[0016] On the first major surface 30a of the barrier layer 30, a first free layer 31, a first spacer layer 32, a first pinned layer 33, and a first antiferromagnetic layer 34 are stacked in this order from the first major surface 30a side in a stacking direction ST1 (second direction). This stacking direction ST1 intersects (e.g., perpendicular to) the displacement direction Q1 (first direction) of the magnetic scale 2. More specifically, the first free layer 31 is stacked on the first major surface 30a of the barrier layer 30 and is made of a ferromagnetic material (e.g., a NiFeCo (nickel-iron-cobalt) alloy). The first spacer layer 32 is stacked on the first free layer 31 and is made of, for example, Ru (ruthenium). The first pinned layer 33 is stacked on the first free layer 31 and is made of a ferromagnetic material (e.g., a CoFe (cobalt-iron) alloy). The first antiferromagnetic layer 34 is made of an antiferromagnetic material (IrMn (iridium-manganese) alloy).

[0017] On the second major surface 30b of the barrier layer 30, a second free layer 35, a second spacer layer 36, a second pinned layer 37, and a second antiferromagnetic layer 38 are stacked in this order from the second major surface 30b side in a stacking direction ST1 (second direction). This stacking direction ST1 intersects (e.g., perpendicular to) the displacement direction Q1 (first direction) of the magnetic scale 2. More specifically, the second free layer 35 is stacked on the second major surface 30b of the barrier layer 30 and is made of a ferromagnetic material (e.g., a NiFeCo (nickel-iron-cobalt) alloy). The second spacer layer 36 is stacked on the second free layer 35 and is made of, e.g., Ru (ruthenium). The second pinned layer 37 is stacked on the second spacer layer 36 and is made of a ferromagnetic material (e.g., a CoFe (cobalt-iron) alloy). The second antiferromagnetic layer 38 is made of an antiferromagnetic material (IrMn (iridium-manganese) alloy).

[0018] The magnetization direction P1 of the first pinned layer 33 and the magnetization direction P2 of the second pinned layer 37 are mutually in the same direction and are fixed in a predetermined direction perpendicular to the stacking direction ST1 of the even function TMR film structure 3. The magnetization direction P1 of the first pinned layer 33 is fixed in the predetermined direction by the bonding force between the first antiferromagnetic layer 34 and the first pinned layer 33. The magnetization direction P2 of the second pinned layer 37 is fixed in the predetermined direction by the bonding force between the second antiferromagnetic layer 38 and the second pinned layer 37.

[0019] The magnetization direction P3 of the first free layer 31 is the same as the magnetization direction P1 of the first pinned layer 33 in the absence of a magnetic field, and changes to the same direction as the magnetic field generated by the magnetic scale 2 in the presence of a magnetic field. The thickness of the first spacer layer 32 is adjusted so that the magnetization direction P3 of the first free layer 31 in the absence of a magnetic field is the same as the magnetization direction P1 of the first pinned layer 33.

[0020] The magnetization direction P4 of the second free layer 35 is opposite to the magnetization direction P2 of the second pinned layer 37 in the absence of a magnetic field, and changes to the same direction as the magnetic field generated by the magnetic scale 2 in the presence of a magnetic field. The thickness of the second spacer layer 36 is adjusted so that the magnetization direction P4 of the second free layer 35 is opposite to the magnetization direction P2 of the second pinned layer 37 in the absence of a magnetic field.

[0021] In this even function TMR film structure 3, when a voltage is applied between the outer major surface 34a of the first antiferromagnetic layer 34 and the outer major surface 38a of the second antiferromagnetic layer 38, a current I1 flows in the stacking direction ST1 in the even function TMR film structure 3. The current I1 shown in Figure 2 represents the current that flows when a predetermined voltage, which is a constant DC voltage, is applied to the outer major surface 34a of the first antiferromagnetic layer 34 and the outer major surface 38a of the second antiferromagnetic layer 38 is connected to ground. In this even function TMR film structure 3, the electrical resistance in the stacking direction ST1 in the even function TMR film structure 3 changes depending on the relative angle between the magnetization direction P3 of the first free layer 31 and the magnetization direction P4 of the second free layer 35, and the magnitude of the current I1 (in other words, the phase of the current I1) changes depending on the change in electrical resistance. More specifically, when the magnetization direction P3 of the first free layer 31 and the magnetization direction P4 of the second free layer 35 are the same direction, the electrical resistance is minimized and the current I1 is maximized. On the other hand, when the magnetization direction P3 of the first free layer 31 and the magnetization direction P4 of the second free layer 35 are opposite directions, the electrical resistance is maximized and the current I1 is minimized.

[0022] (1-3) Configuration of the magnetic sensor As shown in FIG. 3, the magnetic sensor 1 includes a first signal generating unit 4 and a second signal generating unit 5, each having an even-function TMR film structure 3, a first output terminal 6, a second output terminal 7, a power supply terminal 8, and a ground terminal 9.

[0023] The power supply terminal 8 is a terminal connected to a power supply and receives a predetermined operating voltage. The ground terminal 9 is a terminal connected to ground. The first output terminal 6 is a terminal for outputting the sine wave signal generated by the first signal generating unit 4 to the outside. The second output terminal 7 is a terminal for outputting the cosine wave signal generated by the second signal generating unit 5 to the outside.

[0024] The first signal generating unit 4 outputs a sine wave signal whose phase changes according to the relative angle between the magnetization direction P3 of the first free layer 31 and the magnetization direction P4 of the second free layer 35 in the even function TMR film structure 3 of the first signal generating unit 4. More specifically, the first signal generating unit 4 has two TMR element units (a first TMR element unit 41 and a second TMR element unit 42). The first TMR element unit 41 and the second TMR element unit 42 are element units having the even function TMR film structure 3 and have the same structure. Therefore, the first TMR element unit 41 and the second TMR element unit 42 each include each of the layers 30 to 38 of the even function TMR film structure 3 (see FIG. 2).

[0025] The stacking directions ST1 of the first TMR element unit 41 and the second TMR element unit 42 are the same. The magnetization directions P1 of the first pinned layers 33 of the first TMR element unit 41 and the second TMR element unit 42 are the same. The second TMR element unit 42 is disposed on one side of the displacement direction Q1 of the first TMR element unit 41 in a plan view of the magnetic sensor 1 from the stacking direction ST1 (see FIG. 4). The first TMR element unit 41 and the second TMR element unit 42 are integrally formed. Because the first TMR element unit 41 and the second TMR element unit 42 have the same structure and the magnetization directions P1 of the first pinned layers 33 are the same, the first TMR element unit 41 and the second TMR element unit 42 can be easily formed integrally.

[0026] A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the first TMR element unit 41 in the stacking direction ST1 (second direction) is connected to the power supply terminal 8. A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the second TMR element unit 42 in the stacking direction ST1 is connected to the ground terminal 9. A second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the first TMR element unit 41 in the stacking direction ST1 and a second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the second TMR element unit 42 in the stacking direction ST1 are connected to each other via a first electric path D1. A branch point N1 of the first electric path D1 is connected to the first output terminal 6. A signal output from the branch point N1 is output from the first output terminal 6 as the above-mentioned sine wave signal.

[0027] The second signal generating unit 5 outputs a sine wave signal whose phase changes according to the relative angle between the magnetization direction P3 of the first free layer 31 and the magnetization direction P4 of the second free layer 35 in the even function TMR film structure 3 of the second signal generating unit 5. More specifically, the second signal generating unit 5 has two TMR element units (a third TMR element unit 51 and a fourth TMR element unit 52). The third TMR element unit 51 and the fourth TMR element unit 52 are element units having the even function TMR film structure 3 and have the same structure. Therefore, the third TMR element unit 51 and the fourth TMR element unit 52 each include each of the layers 30 to 38 of the even function TMR film structure 3 (see FIG. 2).

[0028] The stacking directions ST1 of the third TMR element unit 51 and the fourth TMR element unit 52 are the same as each other. Furthermore, the stacking directions ST1 of the third TMR element unit 51 and the fourth TMR element unit 52 are the same as the stacking directions ST1 of the first TMR element unit 41 and the second TMR element unit 42 of the first signal generating unit 4. In other words, the stacking directions ST1 of the first to fourth TMR element units 41, 42, 51, 52 of the magnetic sensor 1 are the same as each other.

[0029] The magnetization directions P1 of the first pinned layers 33 of the third TMR element unit 51 and the fourth TMR element unit 52 are the same as each other. Furthermore, the magnetization direction P1 of the first pinned layers 33 of the third TMR element unit 51 and the fourth TMR element unit 52 is the same as the magnetization direction P1 of the first pinned layers 33 of the first TMR element unit 41 and the second TMR element unit 42 of the first signal generation unit 4. That is, the magnetization directions P1 of the first pinned layers 33 of the first to fourth TMR element units 41, 42, 51, and 52 of the magnetic sensor 1 are the same as each other. As described above, the magnetization direction P2 of the second pinned layer 37 is the same as the magnetization direction P1 of the first pinned layers 33 in the same TMR element unit. Therefore, the magnetization directions P1 and P2 of all the pinned layers (first pinned layer 33 and second pinned layer 37) of all the TMR element units (first to fourth TMR element units 41, 42, 51, 52) in the magnetic sensor 1 are aligned in one direction.

[0030] The fourth TMR element unit 52 is disposed on one side of the third TMR element unit 51 in the displacement direction Q1 when viewed from above in the stacking direction ST1 of the magnetic sensor 1 (see FIG. 4 ). The third TMR element unit 51 and the fourth TMR element unit 52 are integrally formed. Because the third TMR element unit 51 and the fourth TMR element unit 52 have the same structure and the magnetization directions P1 of their first pinned layers 33 are the same, the third TMR element unit 51 and the fourth TMR element unit 52 can be easily formed integrally. Furthermore, the third TMR element unit 51 and the fourth TMR element unit 52 may be formed integrally with the first TMR element unit 41 and the second TMR element unit 42 of the first signal generating unit 4. In this case, the first to fourth TMR element units 41, 42, 51, and 52 have the same structure and the magnetization direction P1 of the first pinned layer 33 is the same direction, so the first to fourth TMR element units 41, 42, 51, and 52 can be easily formed integrally.

[0031] A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the third TMR element unit 51 in the stacking direction ST1 (second direction) is connected to the power supply terminal 8. A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the fourth TMR element unit 52 in the stacking direction ST1 is connected to the ground terminal 9. A second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the third TMR element unit 51 in the stacking direction ST1 and a second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the fourth TMR element unit 52 in the stacking direction ST1 are connected to each other via a second electrical path D2. A branch point N2 of the second electrical path D2 is connected to the second output terminal 7. A signal output from the branch point N2 is output from the second output terminal 7 as the cosine wave signal.

[0032] The displacement of the magnetic scale 2 is detected by a predetermined detection circuit based on the sine wave signal output from the first output terminal 6 and the cosine wave signal output from the second output terminal 7 .

[0033] The first signal generating unit 4 and the second signal generating unit 5 have the same configuration and structure. As will be described later, the first signal generating unit 4 and the second signal generating unit 5 are arranged with a phase difference of 45 degrees from each other in the displacement direction Q1 (first direction) of the magnetic scale 2. As a result, the first signal generating unit 4 outputs a sine wave signal, and the second signal generating unit 5 outputs a cosine wave signal.

[0034] (1-4) Positional Relationship between the First Signal Generator 4 and the Second Signal Generator 5 The magnetic sensor 1 is disposed around the magnetic scale 2 (on one of the main surfaces of the magnetic scale 2 in the example of FIG. 4 ) so that the stacking direction ST1 of the even-function TMR film structure 3 in the magnetic sensor 1 (i.e., the stacking direction ST1 (second direction) of the first to fourth TMR element portions 41, 42, 51, 52) intersects (e.g., is perpendicular to) the displacement direction Q1 (first direction) of the magnetic scale 2. That is, the first signal generator 4 and the second signal generator 5 of the magnetic sensor 1 are disposed side by side with the magnetic scale 2 in the second direction Q2 that intersects with the first direction Q1. In this arrangement, as shown in FIG. 4 , the first signal generator 4 is disposed at a position shifted in phase by 45 degrees from the position of the second signal generator 5 in the displacement direction Q1 (first direction) of the magnetic scale 2. In other words, in the displacement direction Q1 of the magnetic scale 2, the relative positions of the first signal generating unit 4 and the second signal generating unit 5 are set so that when the first signal generating unit 4 is located at the center of the N pole of the magnetic scale 2, the second signal generating unit 5 is located on the boundary K1 between the N pole and its adjacent S pole.

[0035] Here, the respective positions of the first signal generating unit 4 and the second signal generating unit 5 refer to, for example, the center positions of the respective shapes of the first signal generating unit 4 and the second signal generating unit 5 in a planar view. Furthermore, the "positions shifted by a phase difference of 45 degrees" means that when the signal output from the first signal generating unit 4 is regarded as a sine wave signal, the signal output from the second signal generating unit 5 can be regarded as a cosine wave signal (i.e., a signal whose phase is shifted by 90 degrees from the signal output from the first signal generating unit 4). Specifically, in this embodiment, the first signal generating unit 4 and the second signal generating unit 5 are arranged as follows: The magnetic poles 21 of the magnetic scale 2 are arranged at a constant interval L1 along the displacement direction Q1. The interval L2 between the first signal generating unit 4 and the second signal generating unit 5 along the displacement direction Q1 is half of the interval L1.

[0036] The positional relationship between the first signal generating unit 4 and the second signal generating unit 5 is set in this manner. This allows the first signal generating unit 4 to generate a sine wave signal and output the generated sine wave signal from the first output terminal 6. Also, the second signal generating unit 5 can generate a cosine wave signal and output the generated cosine wave signal from the second output terminal 7.

[0037] (1-5) Comparison of Output Waveforms of Magnetic Sensors of Comparative Examples and Embodiments (1-5-1) Comparative Example 1 The magnetic sensor 100 of Comparative Example 1 is a magnetic sensor having an odd-function TMR film structure 101 .

[0038] As shown in FIG. 5 , the odd-function TMR film structure 101 includes a barrier layer 102, a pinned layer 103, an antiferromagnetic layer 104, and a free layer 105. The barrier layer 102 has a first major surface 102a and a second major surface 102b facing each other. The pinned layer 103 and the antiferromagnetic layer 104 are stacked in this order on the first major surface 102a of the barrier layer 102. The free layer 105 is stacked on the second major surface 102b of the barrier layer 102. The pinned layer 103 is fixed in a predetermined direction perpendicular to the stacking direction ST2 of the odd-function TMR film structure 101. Under the magnetic field generated by the magnetic scale 2, the magnetization direction P5 of the free layer 105 changes in the same direction as the magnetic field generated by the magnetic scale 2. The materials of the layers 102, 103, 104, and 105 are the same as those of the layers 30, 31, 33, and 34 of the even-function TMR film structure 3, respectively.

[0039] In this odd function TMR film structure 101, when a voltage is applied between the outer major surface 105a of the free layer 105 and the outer major surface 104a of the antiferromagnetic layer 104, a current I2 flows in the stacking direction ST1 in the odd function TMR film structure 101. In this odd function TMR film structure 101, the electrical resistance in the stacking direction ST2 of the odd function TMR film structure 101 changes depending on the relative angle between the magnetization direction P5 of the free layer 105 and the magnetization direction P6 of the pinned layer 103, and the magnitude of the current I2 (in other words, the phase of the current I2) changes depending on the change in electrical resistance. More specifically, when the magnetization direction P5 of the free layer 105 and the magnetization direction P6 of the pinned layer 103 are the same, the electrical resistance is minimized and the current I2 is maximized. When the magnetization direction P5 of the free layer 105 and the magnetization direction P6 of the pinned layer 103 are opposite to each other, the electrical resistance is maximized and the current I2 is minimized.

[0040] As shown in Figure 6, the magnetic sensor 100 of Comparative Example 1 has four TMR element sections (first to fourth TMR element sections 106 to 109), each having an odd-function TMR film structure 101, a first output terminal 110, a second output terminal 111, a power supply terminal 112, and a ground terminal 113.

[0041] The power supply terminal 112 is a terminal connected to a power supply and receives a predetermined operating voltage. The ground terminal 113 is a terminal connected to ground. The first output terminal 110 is a terminal that outputs a sine wave signal generated by the magnetic sensor 100 to the outside. The second output terminal 111 is a terminal that outputs a cosine wave signal generated by the magnetic sensor 100 to the outside.

[0042] The magnetization directions P6 of the pinned layers 103 of the first to fourth TMR element units 106 to 109 are fixed in different directions. More specifically, when the magnetic sensor 100 is arranged around the magnetic scale 2, the magnetization direction P6 of the first TMR element unit 106 is the same direction as the displacement direction Q1 of the magnetic scale 2. The magnetization direction P6 of the second TMR element unit 107 is opposite to the magnetization direction P1 of the first TMR element unit 106. The magnetization direction P6 of the third TMR element unit 108 is perpendicular to the displacement direction Q1 of the magnetic scale 2. The magnetization direction P6 of the fourth TMR element unit 109 is opposite to the magnetization direction of the third TMR element unit 108.

[0043] The first ends of the first TMR element unit 106 and the third TMR element unit 108 in the stacking direction ST2 (the outer major surfaces 105a of the free layer 105) are connected to a power supply terminal 112. The first ends of the second TMR element unit 107 and the fourth TMR element unit 109 in the stacking direction ST1 (the outer major surfaces 105a of the free layer 105) are connected to a ground terminal 113. The second ends of the first TMR element unit 106 and the second TMR element unit 107 (the outer major surfaces 104a of the antiferromagnetic layer 104) are connected to each other and to a first output terminal 110. The sine wave signal is output from the first output terminal 110. The second ends of the third TMR element unit 108 and the fourth TMR element unit 109 (the outer major surfaces 104a of the antiferromagnetic layer 104) are connected to each other and to a second output terminal 111. The cosine wave signal is output from the second output terminal 111. Based on the sine wave signal and cosine wave signal, the amount of displacement of the magnetic scale 2 is detected by a predetermined detection circuit.

[0044] 7A, in the magnetic sensor 100 of Comparative Example 1, when the magnetic poles 21 (north and south poles) of the magnetic scale 2 pass through the magnetic sensor 1 one by one as the magnetic scale 2 is displaced, a sine wave signal M1 of one period is output from the first output terminal 110 and a cosine wave signal M2 of one period is output from the second output terminal 111 every time two magnetic poles 21 pass through (i.e., every time a pair of adjacent north and south poles passes through). That is, in the magnetic sensor 100 of Comparative Example 1, detection signals (sine wave signal M1 and cosine wave signal M2) of half the number of periods of the magnetic poles 21 passing through the magnetic sensor 100 are output from the first output terminal 110 and the second output terminal 111.

[0045] 7B , in the magnetic sensor 1 of the embodiment, when the magnetic poles 21 of the magnetic scale 2 pass through the magnetic sensor one by one as the magnetic scale 2 is displaced, a sine wave signal M3 of two periods is output from the first output terminal 6 and a cosine wave signal M4 of two periods is output from the second output terminal 7 every time two magnetic poles 21 pass through (i.e., every time a pair of adjacent north and south poles passes through). That is, in the magnetic sensor 1 of the embodiment, detection signals (sine wave signal M3 and cosine wave signal M4) of the same number of periods as the number of magnetic poles 21 passing through the magnetic sensor 1 are output from the first output terminal 6 and the second output terminal 7. In other words, in the magnetic sensor 1 of the embodiment, a detection signal having a period half that of the detection signal of the magnetic sensor 100 of Comparative Example 1 is output. Therefore, the magnetic sensor 1 of the embodiment can detect the displacement of the magnetic scale 2 with a resolution twice as high as that of the magnetic sensor 100 of the first comparative example.

[0046] (1-6) Relationship between the magnetization direction of the pinned layer of the magnetic sensor and the displacement direction of the magnetic scale As shown in Fig. 8, the magnetic sensor 1 of embodiment 1 is disposed around the magnetic scale 2 so that the magnetization direction P1 of the first pinned layer 33 of the first to fourth TMR element units 41, 42, 51, 52 of the magnetic sensor 1 intersects (e.g., is perpendicular to) the displacement direction Q1 of the magnetic scale 2. This makes it possible to suppress distortion in the waveforms of the output signals (sine wave signal M3 and cosine wave signal M4) of the magnetic sensor 1 (see Fig. 10A).

[0047] 9 shows the relationship between the magnetization direction P1 of the first pinned layers 33 of the first to fourth TMR element units 41, 42, 51, and 52 of the magnetic sensor 200 of Comparative Example 2 and the displacement direction Q1 of the magnetic scale 2. The magnetic sensor 200 of Comparative Example 2 has the same configuration and structure as the magnetic sensor 1 of the embodiment, except for the magnetization direction P1 of the first pinned layers 33 of the first to fourth TMR element units 41, 42, 51, and 52 when arranged around the magnetic scale 2. As shown in FIG. 10B , the magnetic sensor 200 of Comparative Example 2 is arranged around the magnetic scale 2 so that the magnetization direction P1 of the first pinned layers 33 of the first to fourth TMR element units 41, 42, 51, and 52 is parallel to the displacement direction Q1 of the magnetic scale 2. As shown in FIG. 10B , in the magnetic sensor 200 of Comparative Example 2, distortion occurs in the detection signals (sine wave signal M5 and cosine wave signal M6) output from the magnetic sensor 200.

[0048] The reason for distortion in the detection signal of the magnetic sensor 200 of Comparative Example 2 will be considered. Figure 11 shows the change in the electrical resistance of the even-function TMR film structure 3 of the magnetic sensor 1 when an external magnetic field, the direction of which is fixed, is applied to the magnetic sensor 1 and the amplitude of the external magnetic field is changed from a predetermined positive value to a predetermined negative value. Graphs G0 to G9 show the electrical resistance when the predetermined direction of the external magnetic field has relative angles of 0 degrees, 10 degrees, 20 degrees, 30 degrees, 40 degrees, 50 degrees, 60 degrees, 70 degrees, 80 degrees, and 90 degrees, respectively. The relative angles are the relative angles between the predetermined direction of the external magnetic field and the magnetization direction P1 of the first pinned layer 33 of the first to fourth TMR element units 41, 42, 51, and 52 of the magnetic sensor 1 when viewed in a plan view from the stacking direction ST1 of the magnetic sensor 1.

[0049] Here, it is assumed that the external magnetic field is a magnetic field generated by the magnetic scale 2. It is assumed that the predetermined direction of the external magnetic field is a direction parallel to the displacement direction Q1 of the magnetic scale 2. The positive range of the horizontal axis in FIG. 11 (i.e., when the amplitude of the external magnetic field is positive) corresponds to the magnetic flux density of the magnetic field generated by the north pole of the magnetic scale 2 that passes through the magnetic sensor 1. That is, in the positive range of the horizontal axis in FIG. 11, the magnetic field generated by the north pole acts on the magnetic sensor 1. Furthermore, the negative range of the horizontal axis in FIG. 11 (i.e., when the amplitude of the external magnetic field is negative) corresponds to the magnetic flux density of the magnetic field generated by the south pole of the magnetic scale 2 that passes through the magnetic sensor 1. That is, in the negative range of the horizontal axis in FIG. 11, the magnetic field generated by the south pole acts on the magnetic sensor 1.

[0050] As can be seen from Figure 11, as the relative angle approaches 90 degrees (graph G9), the electrical resistance changes symmetrically between when the amplitude of the external magnetic field is positive and when it is negative. In this case, the detection signals (sine wave signal and cosine wave signal) output from the magnetic sensor 1 become signals with reduced distortion. On the other hand, as the relative angle approaches 0 degrees (graph G0), the electrical resistance does not change symmetrically between when the amplitude of the external magnetic field is positive and when it is negative. In this case, the detection signals (sine wave signal and cosine wave signal) output from the magnetic sensor 1 become signals with distortion.

[0051] Thus, the more perpendicular the magnetization direction P1 of the first pinned layer 33 of the first to fourth TMR element units 41, 42, 51, and 52 of the magnetic sensor 1 is to the displacement direction Q1 of the magnetic scale 2, the more symmetrically the electrical resistance changes between the north and south poles of the magnetic scale 2. Furthermore, the more parallel the magnetization direction P1 of the first pinned layer 33 of the first to fourth TMR element units 41, 42, 51, and 52 of the magnetic sensor 1 is to the displacement direction Q1 of the magnetic scale 2, the less symmetrically the electrical resistance changes between the north and south poles of the magnetic scale 2. Due to these factors, distortion occurs in the detection signal of the magnetic sensor 200 of Comparative Example 2. For this reason, in this embodiment, as described above, the magnetic sensor 1 is arranged around the magnetic scale 2 so that the magnetization direction P1 of the first pinned layer 33 intersects (for example, is perpendicular to) the displacement direction Q1 of the magnetic scale 2, thereby suppressing distortion of the detection signal.

[0052] (1-7) Effects The magnetic sensor 1 according to the first embodiment is a magnetic sensor for detecting the amount of displacement of a magnetic scale 2 in which north and south poles are alternately arranged along a first direction Q1. The magnetic sensor 1 includes a first signal generator 4 and a second signal generator 5 arranged alongside the magnetic scale 2 in a second direction ST1 that intersects the first direction Q1. The first signal generator 4 and the second signal generator 5 each have an even function TMR film structure 3. The even function TMR film structure 3 includes a barrier layer 30, a first free layer 31, a first spacer layer 32, a first pinned layer 33, a first antiferromagnetic layer 34, a second free layer 35, a second spacer layer 36, a second pinned layer 37, and a second antiferromagnetic layer 38. The barrier layer 30 has a first major surface 30a and a second major surface 30b that face each other. The first free layer 31, the first spacer layer 32, the first pinned layer 33, and the first antiferromagnetic layer 34 are stacked in this order on the first major surface 30a of the barrier layer 30 in the second direction ST1. The second free layer 35, the second spacer layer 36, the second pinned layer 37, and the second antiferromagnetic layer 38 are stacked in this order on the second major surface 30b of the barrier layer 30 in the second direction ST1. The magnetization direction P1 of the first pinned layer 33 and the magnetization direction P2 of the second pinned layer 37 are fixed in the same direction. The magnetization direction P3 of the first free layer 31 is the same as the magnetization direction P1 of the first pinned layer 33 in the absence of a magnetic field, and changes to the same direction as the magnetic field generated by the magnetic scale 2 in the presence of a magnetic field. The magnetization direction P4 of the second free layer 35 is opposite to the magnetization direction P2 of the second pinned layer 37 in the absence of a magnetic field, and changes to the same direction as the magnetic field generated by the magnetic scale 2 in the presence of a magnetic field. The first signal generating unit 4 outputs a sine wave signal whose phase changes according to the relative angle between the magnetization directions P3, P4 of the first free layer 31 and the second free layer 35 of the first signal generating unit 4. The second signal generating unit 5 outputs a cosine wave signal whose phase changes according to the relative angle between the magnetization directions P3, P4 of the first free layer 31 and the second free layer 35 of the second signal generating unit 5. The first signal generating unit 4 is disposed at a position shifted by a phase difference of 45 degrees from the position of the second signal generating unit 5 in the first direction Q1, which is the displacement direction Q1 of the magnetic scale 2.

[0053] According to this configuration, the first signal generating unit 4 and the second signal generating unit 5 each have an even function TMR film structure 3, and the first signal generating unit 4 is disposed at a position shifted by a phase difference of 45 degrees from the position of the second signal generating unit 5 in the displacement direction Q1 of the magnetic scale 2. As a result, when two adjacent magnetic poles (adjacent north and south poles) of the magnetic poles 21 of the magnetic scale 2 pass by the magnetic sensor 1, it is possible to output detection signals (sine wave signals and cosine wave signals) with the same number of periods as the number (two) of magnetic poles 21 that pass by (i.e., twice as many as in the conventional case). This improves the resolution when detecting the displacement of the magnetic scale (2).

[0054] (1-8) Modifications Next, modifications of the embodiment will be described. In the following description, the same components as those in the embodiment will be assigned the same reference numerals, and detailed description will be omitted. The description will focus on the differences from the embodiment.

[0055] (1-8-1) Modification 1 A magnetic sensor 1B according to modification 1 will be described with reference to FIGS.

[0056] The magnetic sensor 1B of variant 1 is configured similarly to the magnetic sensor 1 of the above embodiment, except that the first signal generating unit 4B and the second signal generating unit 5B each generate a pair of differential signals and generate the sine wave signal or the cosine wave signal from the difference between the differential signals.

[0057] As shown in Figures 12 and 13, the magnetic sensor 1B includes a first signal generating unit 4B and a second signal generating unit 5B, each having an even function TMR film structure 3 (see Figure 2), a first output terminal 6, a second output terminal 7, a power supply terminal 8, and a ground terminal 9.

[0058] The first output terminal 6, the second output terminal 7, the power supply terminal 8, and the ground terminal 9 are the same as those in the above embodiment, and therefore a description thereof will be omitted.

[0059] The first signal generating unit 4B has four TMR element units (first to fourth TMR element units 61 to 64) and a first subtracting unit 65. In Fig. 13, only the first to fourth TMR element units 61 to 64 of the first signal generating unit 4B are shown.

[0060] The first to fourth TMR element portions 61 to 64 are element portions having the even function TMR film structure 3 (see FIG. 2) and have the same structure. Therefore, the first to fourth TMR element portions 61 to 64 each include each of the layers 30 to 38 (see FIG. 2) of the even function TMR film structure 3.

[0061] The stacking directions ST1 of the first to fourth TMR element units 61 to 64 are the same as each other. The magnetization directions P1 of the first pinned layers 33 of the first to fourth TMR element units 61 to 64 are the same as each other. As shown in FIG. 13 , the second TMR element unit 62 is disposed on one side of the displacement direction Q1 of the first TMR element unit 61 in a planar view from the stacking direction ST1 of the magnetic sensor 1B. The fourth TMR element unit 64 is disposed on one side of the displacement direction Q1 of the third TMR element unit 63 (the same side as the second TMR element unit 62) in a planar view from the stacking direction ST1 of the magnetic sensor 1B. The third TMR element unit 63 is disposed on one side of the first TMR element unit 61 in a direction perpendicular to the displacement direction Q1 in a planar view from the stacking direction ST1 of the magnetic sensor 1B. The fourth TMR element portion 64 is arranged on one side (for example, the same side as the third TMR element portion 63) of the second TMR element portion 62 in a direction perpendicular to the displacement direction Q1 when viewed in a plan view from the stacking direction ST1 of the magnetic sensor.

[0062] The first to fourth TMR element units 61 to 64 are integrally formed in the above-described arrangement. The first to fourth TMR element units 61 to 64 have the same structure and the magnetization direction P1 of the first pinned layer 33 of each of the first to fourth TMR element units 61 to 64 is the same, so the first to fourth TMR element units 61 to 64 can be easily formed integrally.

[0063] As shown in FIG. 12 , a first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the first TMR element unit 61 in the stacking direction ST1 (second direction) is connected to a power supply terminal 8. A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the second TMR element unit 62 in the stacking direction ST1 is connected to a ground terminal 9. A second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the first TMR element unit 61 in the stacking direction ST1 and a second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the second TMR element unit 62 in the stacking direction ST1 are connected to each other via a first electric path D11. A branch point N11 of the first electric path D11 is connected to a first input unit 65 a (described later) of the first subtraction unit 65. A first sine wave signal is output from the branch point N11.

[0064] A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the fourth TMR element unit 64 in the stacking direction ST1 (second direction) is connected to the power supply terminal 8. A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the third TMR element unit 63 in the stacking direction ST1 is connected to the ground terminal 9. A second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the fourth TMR element unit 64 in the stacking direction ST1 and a second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the third TMR element unit 63 in the stacking direction ST1 are connected to each other via a second electrical path D12. A branch point N12 of the second electrical path D12 is connected to a second input unit 65 b (described later) of the first subtraction unit 65. A second sine wave signal is output from the branch point N12. The second sine wave signal is a signal obtained by inverting the amplitude of the first sine wave signal.

[0065] The first subtraction unit 65 has a first input unit 65a, a second input unit 65b, and an output unit 65c. The first input unit 65a is connected to the branch point N11 and receives the first sine wave signal from the branch point N11. The second input unit 65b is connected to the branch point N12 and receives the second sine wave signal from the branch point N12. The output unit 65c is connected to the first output terminal 6. The first subtraction unit 65 subtracts the second sine wave signal input to the second input unit 65b from the first sine wave signal input to the first input unit 65a, and outputs the subtracted signal from the output unit 65c as the sine wave signal. The sine wave signal output from the output unit 65c is output from the first output terminal 6.

[0066] The second signal generation unit 5 has four TMR element units (fifth to eighth TMR element units 71 to 74) and a second subtraction unit 75. In Fig. 13, only the fifth to eighth TMR element units 71 to 74 of the second signal generation unit 5B are shown.

[0067] The fifth to eighth TMR element portions 71 to 74 are element portions having the even function TMR film structure 3 (see FIG. 2) and have the same structure. Therefore, the fifth to eighth TMR element portions 71 to 74 each include each of the layers 30 to 38 (see FIG. 2) of the even function TMR film structure 3.

[0068] The stacking directions ST1 of the fifth to eighth TMR element units 71 to 74 are the same as each other. The magnetization directions P1 of the first pinned layers 33 of the fifth to eighth TMR element units 71 to 74 are the same as each other. As shown in FIG. 13 , the sixth TMR element unit 72 is disposed on one side of the fifth TMR element unit 71 in the displacement direction Q1 when viewed from above in the stacking direction ST1 of the magnetic sensor 1B. The eighth TMR element unit 74 is disposed on one side of the seventh TMR element unit 73 in the displacement direction Q1 (the same side as the sixth TMR element unit 72) when viewed from above in the stacking direction ST1 of the magnetic sensor 1B. The seventh TMR element unit 73 is disposed on one side of the fifth TMR element unit 71 in the direction perpendicular to the displacement direction Q1 when viewed from above in the stacking direction ST1 of the magnetic sensor 1B. The eighth TMR element portion 74 is arranged on one side (for example, the same side as the seventh TMR element portion 73) in a direction perpendicular to the displacement direction Q1 of the sixth TMR element portion 72 when viewed in a plane from the stacking direction ST1 of the magnetic sensor 1B.

[0069] The fifth to eighth TMR element units 71 to 74 are integrally formed in the above-described arrangement. The fifth to eighth TMR element units 71 to 74 have the same structure and the magnetization direction P1 of the first pinned layer 33 of each of the fifth to eighth TMR element units 71 to 74 is the same, so the fifth to eighth TMR element units 71 to 74 can be easily formed integrally.

[0070] As shown in FIG. 12 , a first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the fifth TMR element unit 71 in the stacking direction ST1 (second direction) is connected to the power supply terminal 8. A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the sixth TMR element unit 72 in the stacking direction ST1 is connected to the ground terminal 9. A second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the fifth TMR element unit 71 in the stacking direction ST1 and a second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the sixth TMR element unit 72 in the stacking direction ST1 are connected to each other via a third electrical path D13. A branch point N13 of the third electrical path D13 is connected to a first input unit 75 a (described later) of the second subtraction unit 75. A first cosine wave signal is output from the branch point N13.

[0071] A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the eighth TMR element unit 74 in the stacking direction ST1 (second direction) is connected to the power supply terminal 8. A first end (outer main surface 34 a of the first antiferromagnetic layer 34) of the seventh TMR element unit 73 in the stacking direction ST1 is connected to the ground terminal 9. A second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the eighth TMR element unit 74 in the stacking direction ST1 and a second end (outer main surface 38 a of the second antiferromagnetic layer 38) of the seventh TMR element unit 73 in the stacking direction ST1 are connected to each other via a fourth electrical path D14. A branch point N14 of the fourth electrical path D14 is connected to a second input portion 75 b (described later) of the second subtraction unit 75. A second cosine wave signal is output from the branch point N14. The second cosine wave signal is a signal obtained by inverting the amplitude of the first cosine wave signal.

[0072] The second subtraction unit 75 has a first input unit 75a, a second input unit 75b, and an output unit 75c. The first input unit 75a is connected to branch point N13 and receives the first cosine wave signal from branch point N13. The second input unit 75b is connected to branch point N14 and receives the second sine wave signal from branch point N14. The output unit 75c is connected to the first output terminal 6. The second subtraction unit 75 subtracts the second cosine wave signal input to the second input unit 75b from the first cosine wave signal input to the first input unit 75a, and outputs the subtracted signal as the cosine wave signal from the output unit 75c. The cosine wave signal output from the output unit 75c is output from the second output terminal 7.

[0073] In Modification 2, as in the above embodiment, the first signal generating unit 4B and the second signal generating unit 5B have the same configuration and structure. The first signal generating unit 4B and the second signal generating unit 5B are arranged with a phase difference of 45 degrees from each other in the displacement direction Q1 (first direction) of the magnetic scale 2. As a result, a sine wave signal is output from the first signal generating unit 4B, and a cosine wave signal is output from the second signal generating unit 5B.

[0074] According to the first modification, the sine wave signal output from the first signal generating unit 4B is formed by the difference between the first sine wave signal and the second sine wave signal, and the cosine wave signal output from the second signal generating unit 5B is formed by the difference between the first cosine wave signal and the second cosine wave signal, thereby enabling the amplitude of the sine wave signal and the cosine wave signal to be amplified and the intrusion of noise to be suppressed.

[0075] (1-8-2) Modification 2 In the above embodiment, the magnetic scale 2 is a linear magnetic scale in which a plurality of magnetic poles 21 are arranged in a straight line, but the magnetic scale 2 may be a rotary magnetic scale in which a plurality of magnetic poles 21 are arranged alternately in a circle. In this case, the magnetic sensor 1 is a rotary encoder.

[0076] (9) Aspects As is clear from the above-described embodiments and modifications, the present specification discloses the following aspects.

[0077] A magnetic sensor (1; 1B) according to a first aspect is a magnetic sensor for detecting the amount of displacement of a magnetic scale (2) in which north and south poles are alternately arranged along a first direction (Q1). The magnetic sensor (1; 1B) includes a first signal generating unit (4; 4B) and a second signal generating unit (5; 5B) arranged alongside the magnetic scale (2) in a second direction (ST1) that intersects the first direction (Q1). The first signal generating unit (4; 4B) and the second signal generating unit (5; 5B) each have an even-function TMR (Tunnel Magneto Resistance) film structure (3). The even-function TMR film structure (3) includes a barrier layer (30), a first free layer (31), a first spacer layer (32), a first pinned layer (33), a first antiferromagnetic layer (34), a second free layer (35), a second spacer layer (36), a second pinned layer (37), and a second antiferromagnetic layer (38). The barrier layer (30) has a first major surface (30a) and a second major surface (30b) facing each other. The first free layer (31), the first spacer layer (32), the first pinned layer (33), and the first antiferromagnetic layer (34) are stacked in this order on the first major surface (30a) of the barrier layer (30). The second free layer (35), the second spacer layer (36), the second pinned layer (37), and the second antiferromagnetic layer (38) are stacked in this order on the second major surface (30b) of the barrier layer (30). The magnetization direction (P1) of the first pinned layer (33) and the magnetization direction (P2) of the second pinned layer (37) are fixed in the same direction. The magnetization direction (P3) of the first free layer (31) is the same as the magnetization direction (P1) of the first pinned layer (33) in the absence of a magnetic field, and changes to the same direction as the magnetic field generated by the magnetic scale (2). The magnetization direction (P4) of the second free layer (35) is opposite to the magnetization direction (P2) of the second pinned layer (37) in the absence of a magnetic field, and changes to the same direction as the magnetic field generated by the magnetic scale (2). The first signal generating unit (4; 4B) outputs a sine wave signal whose phase changes depending on the relative angle between the magnetization directions (P3, P4) of the first free layer (31) and the second free layer (35) of the first signal generating unit (4; 4B). The second signal generating unit (5; 5B) outputs a cosine wave signal whose phase changes depending on the relative angle between the magnetization directions (P3, P4) of the first free layer (31) and the second free layer (35) of the second signal generating unit (5; 5B).The first signal generating unit (4; 4B) is positioned at a position that is shifted by a phase difference of 45 degrees from the position of the second signal generating unit (5; 5B) in the first direction (Q1), which is the displacement direction (Q1) of the magnetic scale (2).

[0078] According to this configuration, the first signal generating unit (4; 4B) and the second signal generating unit (5; 5B) each have an even-function TMR film structure (3). The first signal generating unit (4; 4B) is positioned at a position shifted by a phase difference of 45 degrees from the position of the second signal generating unit (5; 5B) in the displacement direction (Q1) of the magnetic scale (2). This allows the magnetic sensor (1; 1B) to output detection signals (sine wave signals and cosine wave signals) with the same number of periods as the number (two) of magnetic poles (21) passing by. This improves the resolution when detecting the displacement of the magnetic scale (2).

[0079] In the magnetic sensor (1; 1B) according to the second aspect, in the first aspect, in the first signal generating unit (4; 4B) and the second signal generating unit (5; 5B), the magnetization direction (P1) of the first pinned layer (33) intersects with the first direction (Q1) when viewed in a plane from the second direction (ST1) of the even function TMR film structure (3).

[0080] According to this configuration, even if there is a difference in the ease of change of the magnetization direction (P3) of the first free layer (31) and the ease of change of the magnetization direction (P4) of the second free layer (35), distortion of the waveforms of the detection signals (sine wave signal and cosine wave signal) output from the first signal generating unit (4; 4B) and the second signal generating unit (5; 5B) can be suppressed.

[0081] In the magnetic sensor (1; 1B) according to the third aspect, in the first or second aspect, the magnetization direction (P1) of the first pinned layer (33) of the first signal generating unit (4; 4B) is the same as the magnetization direction (P1) of the first pinned layer (33) of the second signal generating unit (5; 5B).

[0082] This configuration allows the magnetization directions (P1, P2) of all the pinned layers (33, 37) in the magnetic sensor (1; 1B) to be unified in one direction, which makes it possible to easily form each of the pinned layers (33, 37) of the magnetic sensor (1; 1B) during the manufacturing process of the magnetic sensor (1; 1B).

[0083] The magnetic sensor (1; 1B) according to the fourth aspect is any one of the first to third aspects, in which, in the first direction (Q1), when the first signal generating unit (4; 4B) is located at the center of the north pole of the magnetic scale (2), the second signal generating unit (5; 5B) is located on the boundary (K1) between the north pole and the south pole.

[0084] With this configuration, the first signal generating unit (4; 4B) can be easily positioned at a position that is 45 degrees phase shifted from the position of the second signal generating unit (5; 5B) in the displacement direction (Q1) of the magnetic scale (2).

[0085] In a magnetic sensor (1) according to a fifth aspect, in any one of the first to fourth aspects, the first signal generating unit (4) has a first TMR element unit (41) and a second TMR element unit (42), each having an even-function TMR film structure (3). A predetermined voltage is applied to a first end of the first TMR element unit (41) in the second direction (ST1). A first end of the second TMR element unit (42) in the second direction (ST1) is connected to ground. A second end of the first TMR element unit (41) in the second direction (ST1) and a second end of the second TMR element unit (42) in the second direction (ST1) are connected via a first electric path (D1). A sine wave signal is output from a branch point (N1) of the first electric path (D1). The second signal generating unit (5) has a third TMR element unit (51) and a fourth TMR element unit (52), each having an even-function TMR film structure (3). A predetermined voltage is applied to a first end of the third TMR element unit (51) in the second direction (ST1). The first end of the fourth TMR element unit (52) in the second direction (ST1) is connected to ground. The second end of the third TMR element unit (51) in the second direction (ST1) and the second end of the fourth TMR element unit (52) in the second direction (ST1) are connected via a second electrical path (D2). A cosine wave signal is output from a branch point (N2) of the second electrical path (D2).

[0086] According to this configuration, the sine wave signal and the cosine wave signal can be generated using a simple circuit.

[0087] In a magnetic sensor (1B) according to a sixth aspect, in any one of the first to fourth aspects, the first signal generating unit (4B) has a first TMR element unit (61), a second TMR element unit (62), a third TMR element unit (63), and a fourth TMR element unit (64), each having an even-function TMR film structure (3). A predetermined voltage is applied to a first end of the first TMR element unit (61) in the second direction (ST1). A first end of the second TMR element unit (62) in the second direction (ST1) is connected to ground. A second end of the first TMR element unit (61) in the second direction (ST1) and a second end of the second TMR element unit (62) in the second direction (ST1) are connected via a first electric path (D11). A first end of the third TMR element unit (63) in the second direction (ST1) is connected to ground. A predetermined voltage is applied to a first end of the fourth TMR element portion (64) in the second direction (ST1). A second end of the third TMR element portion (63) in the second direction (ST1) and a second end of the fourth TMR element portion (64) in the second direction (ST1) are connected via a second electrical path (D12). A sine wave signal is generated by the difference between a first sine wave signal branched and output from the first electrical path (D11) and a second sine wave signal branched and output from the second electrical path (D12). The second signal generating portion (5B) has a fifth TMR element portion (71), a sixth TMR element portion (72), a seventh TMR element portion (73), and an eighth TMR element portion (74), each having an even function TMR film structure (3). A predetermined voltage is applied to a first end of the fifth TMR element portion (71) in the second direction (ST1). A first end of the sixth TMR element portion (72) in the second direction (ST1) is connected to ground. A second end of the fifth TMR element portion (71) in the second direction (ST1) and a second end of the sixth TMR element portion (72) in the second direction (ST1) are connected via a third electrical path (D13). A first end of the seventh TMR element portion (73) in the second direction (ST1) is connected to ground. A predetermined voltage is applied to a first end of the eighth TMR element portion (74) in the second direction (ST1). A second end of the seventh TMR element portion (73) in the second direction (ST1) and a second end of the eighth TMR element portion (74) in the second direction (ST1) are connected via a fourth electrical path (D14). A cosine wave signal is generated by the difference between a first cosine wave signal branched off from the third electrical path (D13) and outputted from the fourth electrical path (D14).

[0088] According to this configuration, the amplitude of the sine wave signal and the cosine wave signal can be amplified and the intrusion of noise can be suppressed.

[0089] 1, 1B Magnetic sensor 2 Magnetic scale 3 Even function TMR (Tunnel Magneto Resistance) film structure 4, 4B First signal generating section 5, 5B Second signal generating section 30 Barrier layer 31 First free layer 32 First spacer layer 33 First pinned layer 34 First antiferromagnetic layer 35 Second free layer 36 Second spacer layer 37 Second pinned layer 38 Second antiferromagnetic layer 41 First TMR element section 42 Second TMR element section 51 Third TMR element section 52 Fourth TMR element section 61 First TMR element section 62 Second TMR element section 63 Third TMR element section 64 Fourth TMR element section 71 Fifth TMR element section 72 Sixth TMR element section 73 Seventh TMR element section 74 Eighth TMR element section D1 First electric path D2 Second electric path D11 First electric path D12 Second electric path D13 Third electric path D14 Fourth electric path K1 Boundary P1 to P4 Magnetization direction Q1 Displacement direction (first direction) ST1 Lamination direction (second direction)

Claims

1. A magnetic sensor for detecting a displacement amount of a magnetic scale on which N poles and S poles are alternately arranged along a first direction, comprising a first signal generating unit and a second signal generating unit arranged alongside the magnetic scale in a second direction intersecting the first direction, the first signal generating unit and the second signal generating unit each having an even function TMR (Tunnel Magneto Resistance) film structure, the even function TMR film structure comprising: a barrier layer having a first main surface and a second main surface opposing each other; a first free layer, a first spacer layer, a first pinned layer and a first antiferromagnetic layer stacked in the second direction on the first main surface of the barrier layer; and a second free layer, a second spacer layer, a second pinned layer and a second antiferromagnetic layer stacked in the second direction on the second main surface of the barrier layer, the magnetization direction of the first pinned layer and the magnetization direction of the second pinned layer being fixed in the same direction, a magnetization direction of the first free layer is the same as the magnetization direction of the first pinned layer in the absence of a magnetic field, and changes to the same direction as the magnetic field in the presence of a magnetic field generated by the magnetic scale; a magnetization direction of the second free layer is opposite to the magnetization direction of the second pinned layer in the absence of a magnetic field, and changes to the same direction as the magnetic field in the presence of the magnetic field generated by the magnetic scale; the first signal generating unit outputs a sine wave signal whose phase changes depending on the relative angle between the magnetization directions of the first free layer and the second free layer of the first signal generating unit; the second signal generating unit outputs a cosine wave signal whose phase changes depending on the relative angle between the magnetization directions of the first free layer and the second free layer of the second signal generating unit; and the first signal generating unit is disposed at a position shifted by a phase difference of 45 degrees from the position of the second signal generating unit in the first direction, which is the displacement direction of the magnetic scale.

2. The magnetic sensor according to claim 1, wherein in the first signal generating section and the second signal generating section, the magnetization direction of the first pinned layer intersects with the first direction when viewed in a plan view from the second direction.

3. A magnetic sensor as described in claim 1 or 2, wherein the magnetization direction of the first pinned layer of the first signal generating section is the same as the magnetization direction of the first pinned layer of the second signal generating section.

4. A magnetic sensor as described in claim 1 or 2, wherein when the first signal generating portion is located at the center of the N pole of the magnetic scale in the first direction, the second signal generating portion is located on the boundary between the N pole and the S pole.

5. The first signal generating unit has a first TMR element unit and a second TMR element unit each having the even function TMR film structure, a first end in the second direction of the first TMR element unit is applied with a predetermined voltage, the first end in the second direction of the second TMR element unit is connected to ground, the second end in the second direction of the first TMR element unit and the second end in the second direction of the second TMR element unit are connected via a first electric path, and the sine wave signal is output from a branch point of the first electric path, the second signal generating unit has a third TMR element unit and a fourth TMR element unit each having the even function TMR film structure, the first end in the second direction of the third TMR element unit is applied with the predetermined voltage, and the first end in the second direction of the fourth TMR element unit is connected to the ground, 3. The magnetic sensor according to claim 1, wherein a second end of the third TMR element portion in the second direction and a second end of the fourth TMR element portion in the second direction are connected via a second electric circuit, and the cosine wave signal is output from a branch point of the second electric circuit.

6. The first signal generating section has a first TMR element section, a second TMR element section, a third TMR element section, and a fourth TMR element section each having the even function TMR film structure, a first end in the second direction of the first TMR element section is applied with a predetermined voltage, a first end in the second direction of the second TMR element section is connected to ground, a second end in the second direction of the first TMR element section and a second end in the second direction of the second TMR element section are connected via a first electric path, a first end in the second direction of the third TMR element section is connected to the ground, a first end in the second direction of the fourth TMR element section is applied with the predetermined voltage, and a second end in the second direction of the third TMR element section and a second end in the second direction of the fourth TMR element section are connected via a second electric path, the sine wave signal is generated by a difference between a first sine wave signal branched off from the first electric circuit and outputted and a second sine wave signal branched off from the second electric circuit, the second signal generating unit has a fifth TMR element unit, a sixth TMR element unit, a seventh TMR element unit and an eighth TMR element unit each having the even function TMR film structure, the predetermined voltage is applied to a first end in the second direction of the fifth TMR element unit, the first end in the second direction of the sixth TMR element unit is connected to the ground, the second end in the second direction of the fifth TMR element unit and the second end in the second direction of the sixth TMR element unit are connected via a third electric circuit, the first end in the second direction of the seventh TMR element unit is connected to the ground, and the predetermined voltage is applied to a first end in the second direction of the eighth TMR element unit, 3. The magnetic sensor according to claim 1, wherein a second end of the seventh TMR element portion in the second direction and a second end of the eighth TMR element portion in the second direction are connected via a fourth electric circuit, and the cosine wave signal is generated by a difference between a first cosine wave signal branched off and output from the third electric circuit and a second cosine wave signal branched off and output from the fourth electric circuit.

Citation Information

Patent Citations

  • Magnetic detection element

    JP2003309305A

  • Magnetoresistance effect element, magnetic field detector, position detector, rotation detector, and current detector using the same

    JP2012049213A

  • High Sensitivity TMR Magnetic Sensor

    US20210063503A1

  • Magnetic joint body, tmr element, tmr element array, magnetic sensor, magnetic sensor for linear encoder, and magnetic rotary encoder

    WO2024034206A1