---
title: Spintronics, GMR, TMR and MRAM
heading: Using the electron's spin as well as its charge, from hard-disk read heads to magnetic memory that keeps its data with the power off
eyebrow: B12 · Lesson 38 · Spintronics
xp: 40
---

::: hook
In a ferromagnet, electrons with spin along the magnetization and against it see different densities of states at the Fermi level, so they conduct differently. Put two magnetic layers a few nanometers apart and the resistance depends on whether their magnetizations point the same way. That's giant magnetoresistance, which took hard-disk capacities up a thousandfold after 1997, and its tunneling cousin now reads every disk and stores bits in MRAM. Lesson 37 introduced magnetic order and the thermal stability of small magnets; this lesson turns them into devices.
:::

::: play
- A magnetic tunnel junction has two ferromagnetic electrodes with spin polarizations $P_1$ and $P_2$, separated by a thin insulator. The curve is its resistance, relative to the parallel state, against the angle between their magnetizations.
- Jullière's model gives the conductance as $G \propto 1 + P_1P_2\cos\theta$.
- The readout gives the tunneling magnetoresistance, $\frac{R_{AP} - R_P}{R_P}$. Raise both polarizations toward 1 and it diverges, since antiparallel half-metals would block tunneling entirely.
:::

```sim plot
view: graph
x: t = 0..180 °
y: r = 0.8..2.5
slider: a = 0..0.9 step 0.01 = 0.5
slider: b = 0..0.9 step 0.01 = 0.5
plot: (1 + a*b)/(1 + a*b*cos(t*pi/180)) | label: resistance relative to parallel | samples: 300
readout: TMR, % = 2*a*b/(1 - a*b)*100 | digits: 3
```

::: predict
## Two magnetic layers sandwich a nonmagnetic metal. Electrons with one spin scatter little in both magnets; electrons with the other spin scatter strongly. When are the layers' resistance lowest?

- [x] When their magnetizations are parallel
- [ ] When they're antiparallel
- [ ] It doesn't depend on alignment
- [ ] When one of them is demagnetized

::: reveal
When they're parallel. Then one spin channel passes easily through both layers and short-circuits the other, which scatters in both. When they're antiparallel, every electron scatters strongly in one layer or the other, and there's no easy path. The two spin channels act like two resistors in parallel, and alignment rearranges which pieces sit in which channel.
:::
:::

::: nameit
## Two spin channels

At low temperature, spin-flip scattering is rare, so spin-up and spin-down electrons carry current as two independent channels (Mott's two-current model). In a ferromagnet, majority-spin electrons see one resistance r per layer and minority ones R. For two layers:

- parallel: one channel has 2r and the other 2R, in parallel: $R_P = \frac{2rR}{r + R}$;
- antiparallel: each channel has r + R: $R_{AP} = \frac{r + R}{2}$.

The giant magnetoresistance is $\frac{R_{AP} - R_P}{R_P} = \frac{(R - r)^2}{4rR} = \frac{(\alpha - 1)^2}{4\alpha}$ with $\alpha = R/r$.

## Tunneling magnetoresistance

In a magnetic tunnel junction, current tunnels through an insulator a nanometer or two thick. If each electrode's spin polarization at the Fermi level is $P = \frac{D_\uparrow - D_\downarrow}{D_\uparrow + D_\downarrow}$, and spin is conserved in tunneling, Jullière's model gives

$$\text{TMR} = \frac{2P_1P_2}{1 - P_1P_2},$$

about 67% for P = 0.5. Crystalline MgO barriers between CoFeB electrodes reach 200 to 600% at room temperature, beyond Jullière's estimate, because MgO passes electrons of one orbital symmetry far better than others, and in CoFeB that symmetry is almost fully spin-polarized.

## Writing with spin current

An electron passing through a magnetized layer leaves with its spin aligned, and the angular momentum it loses is transferred to the next magnet it enters: **spin-transfer torque**. Enough current flips the free layer. For a perpendicular junction the critical current is about

$$I_{c0} = \frac{4e}{\hbar}\frac{\alpha}{\eta}E_b,$$

with damping α, spin-polarization efficiency η and energy barrier $E_b$. Since $E_b = \Delta kT$ must stay near 60kT for ten-year retention (lesson 37), writing needs tens of microamps per bit, and smaller bits need less.

## MRAM

Each MRAM cell is one tunnel junction and one transistor. Reading senses the resistance; writing pushes current one way or the other through the junction. The bits hold their state without power, switch in nanoseconds, and survive essentially unlimited write cycles, which is why MRAM replaces embedded flash and some SRAM in microcontrollers and caches.
:::

::: example
## In a GMR trilayer, minority electrons scatter three times as strongly as majority ones (α = 3). What's the magnetoresistance?

::: solution
1. **Parallel resistance.** Taking r = 1,
   $$\begin{aligned} R_P &= \frac{2 \times 1 \times 3}{1 + 3} \\ &= 1.5 \end{aligned}$$
2. **Antiparallel resistance.**
   $$\begin{aligned} R_{AP} &= \frac{1 + 3}{2} \\ &= 2 \end{aligned}$$
3. **Magnetoresistance.**
   $$\begin{aligned} \frac{R_{AP} - R_P}{R_P} &= \frac{(3 - 1)^2}{4 \times 3} \\ &= 33\% \end{aligned}$$
4. **Real devices.** Real multilayers repeat the stack many times and add interface scattering, reaching 50 to 100% at room temperature in the best cases. The first GMR read heads in 1997 used spin valves with 5 to 10%, still several times the anisotropic magnetoresistance of the heads before them.

**Answer:** the magnetoresistance is 33%.
:::
:::

::: example
## Two electrodes each have spin polarization 0.5. What TMR does Jullière's model give? What about 0.6?

::: solution
1. **With P = 0.5.**
   $$\begin{aligned} \text{TMR} &= \frac{2 \times 0.25}{1 - 0.25} \\ &= 67\% \end{aligned}$$
2. **With P = 0.6.**
   $$\begin{aligned} \text{TMR} &= \frac{2 \times 0.36}{1 - 0.36} \\ &= 113\% \end{aligned}$$
3. **Near full polarization.** The model is steep there: at P = 0.9 it gives 853%.
4. **Real barriers.** Amorphous alumina barriers gave tens of percent, consistent with Jullière. MgO's symmetry filtering acts as if the effective polarization were nearly 1, which is how CoFeB/MgO junctions reach hundreds of percent.

**Answer:** Jullière's model gives 67% for a polarization of 0.5 and 113% for 0.6.
:::
:::

::: example
## An MRAM bit needs Δ = 60 at 300 K. Its free layer has damping 0.01 and spin-transfer efficiency 0.5, and the junction is 40 nm across. What's its energy barrier, its critical switching current and current density, and how long would it hold its state?

::: solution
1. **Energy barrier.**
   $$\begin{aligned} E_b &= 60kT \\ &= 1.55\ \text{eV} \end{aligned}$$
2. **Critical current.**
   $$\begin{aligned} I_{c0} &= \frac{4e}{\hbar}\frac{\alpha}{\eta}E_b \\ &= \frac{4 \times 1.602 \times 10^{-19}}{1.055 \times 10^{-34}} \\ &\quad \times 0.02 \times 2.49 \times 10^{-19} \\ &= 30\ \mu\text{A} \end{aligned}$$
3. **Current density.** Spread over
   $$\begin{aligned} A &= \pi(20\ \text{nm})^2 \\ &= 1.26 \times 10^{-11}\ \text{cm}^2 \end{aligned}$$
   that's $2.4 \times 10^6$ A/cm².
4. **Retention.** With an attempt rate of $10^9$ per second, a bit flips thermally at
   $$\begin{aligned} r &= 10^9e^{-60} \\ &= 8.8 \times 10^{-18}\ \text{s}^{-1} \end{aligned}$$
   once in 3.6 billion years.
5. **For a whole array.** That margin is for a whole array: a gigabit of bits held ten years with a 10⁻⁴ chance of any error needs Δ of about 70.

**Answer:** the barrier is 1.55 eV, the critical current 30 µA ($2.4 \times 10^6$ A/cm²), and a single bit would flip on its own about once in 3.6 billion years.
:::
:::

::: check
kind: parts
given: a = 2 | 3 | 5

## In a two-current model, minority-spin electrons see {a} times the resistance of majority ones in each magnetic layer.

::: part
answer: (a - 1)^2/(4*a)*100
unit: %
tolerance: 0.5%

### What's the GMR of a two-layer stack?

::: misses
- [(a - 1)*100] The channels add in parallel: $\frac{(\alpha - 1)^2}{4\alpha}$.
- [any] $\frac{(\alpha - 1)^2}{4\alpha}$.
:::
:::

::: part
answer: (1 + a)/2
tolerance: 0.5%

### What's $R_{AP}$, in units of the majority-spin resistance r?

::: misses
- [any] Each channel has r + R, and the two are in parallel.
:::
:::
:::

::: check
given: p = 0.3 | 0.5 | 0.7; q = 0.4 | 0.6
answer: 2*p*q/(1 - p*q)*100
unit: %
tolerance: 0.5%

## A tunnel junction's electrodes have spin polarizations {p} and {q}. What TMR does Jullière's model give?

::: right
Right. $\frac{2P_1P_2}{1 - P_1P_2}$.
:::

::: misses
- [2*p*q/(1 + p*q)*100] That's the ratio relative to $R_{AP}$; TMR is quoted relative to $R_P$.
- [any] $\text{TMR} = \frac{2P_1P_2}{1 - P_1P_2}$.
:::
:::

::: check
given: p = 0.5 | 0.7; t = 45 | 90 | 135
answer: (1 + p^2)/(1 + p^2*cos(t*pi/180))
tolerance: 0.5%

## A junction with both polarizations {p} has its free layer at {t}° to the fixed one. What's its resistance relative to the parallel state?

::: right
Right. Conductance goes as $1 + P^2\cos\theta$, so resistance relative to parallel is $\frac{1 + P^2}{1 + P^2\cos\theta}$.
:::

::: misses
- [(1 + p^2*cos(t*pi/180))/(1 + p^2)] That's the conductance ratio; invert it for resistance.
- [any] $G \propto 1 + P_1P_2\cos\theta$.
:::
:::

::: check
kind: parts
given: D = 40 | 60 | 80; a = 0.005 | 0.01; d = 20 | 40 | 60

## A perpendicular MTJ has thermal stability Δ = {D} at 300 K, damping {a}, spin-transfer efficiency 0.5, and a {d} nm diameter.

::: part
answer: 4*1.602176634e-19/1.054571817e-34*a/0.5*D*1.380649e-23*300*1e6
unit: µA
tolerance: 0.5%

### What's its critical switching current?

::: misses
- [any] $I_{c0} = \frac{4e}{\hbar}\frac{\alpha}{\eta}\Delta kT$.
:::
:::

::: part
answer: 4*1.602176634e-19/1.054571817e-34*a/0.5*D*1.380649e-23*300/(pi*(d/2*1e-7)^2)/1e6
unit: MA/cm²
tolerance: 0.5%

### What current density is that?

::: misses
- [any] Divide by the junction's area, $\pi(d/2)^2$.
:::
:::
:::

::: check
given: D = 40 | 50 | 60
answer: 1/(1e9*exp(-D))/3.156e7
unit: years
tolerance: 1%

## A magnetic bit has Δ = {D} and attempts to flip $10^9$ times a second. How long, on average, does it hold its state?

::: right
Right. $\tau = \tau_0e^\Delta$ with $\tau_0$ = 1 ns.
:::

::: misses
- [1/(1e9*exp(-D))] Convert seconds to years.
- [any] $\tau = 10^{-9}e^\Delta$ s.
:::
:::

::: check
given: N = 1000000 | 1000000000; y = 1 | 10; f = 0.0001 | 0.01
answer: ln(N*y*3.156e7*1e9/f)
tolerance: 0.5%

## An array of {N} bits must go {y} years with less than a {f} chance of any bit flipping (attempt rate $10^9$/s). What Δ does each bit need, at least?

::: right
Right. The expected number of flips, $Nt\,10^9e^{-\Delta}$, must stay below the allowed failure probability.
:::

::: misses
- [ln(y*3.156e7*1e9/f)] Every bit in the array can flip; multiply by N.
- [any] $\Delta = \ln\frac{Nt f_0}{p_{fail}}$.
:::
:::

::: check
kind: choice

## Why do CoFeB/MgO junctions show far more TMR than Jullière's model predicts from CoFeB's spin polarization?

- [ ] MgO is magnetic
- [x] Crystalline MgO transmits electrons of one orbital symmetry much better, and in CoFeB that symmetry is almost fully spin-polarized
- [ ] The electrons heat up in the barrier
- [ ] Jullière's model applies only to metals

::: right
Right. The barrier filters by symmetry, acting as if the effective polarization were close to 1.
:::

::: misses
- [1] MgO is a nonmagnetic insulator.
- [3] Tunneling is elastic; heating isn't the mechanism.
- [4] Jullière's model is about tunneling between metals, which this is; it just ignores symmetry.
:::
:::

::: check
kind: derivation
vars: r = 0.1..10, R = 0.1..10

## A two-layer spin valve whose layers each have resistance r for majority spins and R for minority spins.

::: step
answer: 2*r*R/(r + R)

### What's the parallel resistance?
:::

::: step
answer: (r + R)/2

### What's the antiparallel resistance?
:::

::: step
answer: (R - r)^2/(4*r*R)

### What's the GMR, $\frac{R_{AP} - R_P}{R_P}$?
:::

::: right
Right. It vanishes when r = R, when the magnet treats both spins alike.
:::
:::

::: explain
## Why does the resistance of a magnetic multilayer depend on whether its layers are magnetized the same way?

::: model
In a ferromagnet, the electrons at the Fermi level with spin along the magnetization have a different density of states, and so a different scattering rate, from those with spin against it. At low temperature electrons rarely flip their spins, so each spin direction carries its own current, like two wires in parallel. When the layers are parallel, one spin direction is the easy one in every layer and that channel short-circuits the stack. When they're antiparallel, every electron is the hard spin in one of the layers, so both channels are resistive. The same spin selectivity, applied to tunneling, gives TMR: an electron tunnels easily only into states of its own spin, which the second electrode provides in abundance when aligned and scarcely when opposed.
:::
:::

::: practice

::: check
given: p = 0.3 | 0.4 | 0.5 | 0.6 | 0.65 | 0.8
answer: 2*p*p/(1 - p*p)*100
unit: %
tolerance: 0.5%

## Jullière TMR for both polarizations {p}?

::: misses
- [any] $\frac{2P^2}{1 - P^2}$.
:::
:::

::: check
given: a = 1.5 | 2 | 3 | 4 | 6 | 10
answer: (a - 1)^2/(4*a)*100
unit: %
tolerance: 0.5%

## GMR for a scattering asymmetry of {a}?

::: misses
- [any] $\frac{(\alpha - 1)^2}{4\alpha}$.
:::
:::
:::
