A method for fabricating a magnetic element for use in a magnetic device including a contact electrically coupled to the magnetic element, the method comprising:
- providing a first pinned layer;
- providing a nonmagnetic spacer layer;
- providing a free layer having an out-of-plane demagnetization energy and a perpendicular magnetic anisotropy corresponding to a perpendicular anisotropy energy, the out-of-plane demagnetization energy being greater than the perpendicular anisotropy energy, the nonmagnetic spacer layer residing between the pinned layer and the free layer;
- and
- providing a perpendicular spacer layer adjoining the free layer, the perpendicular spacer layer inducing at least a portion of the perpendicular magnetic anisotropy in the free layer and including at least one of a doped nitride and doped MgO;
- wherein the magnetic element is configured to allow the free layer to be switched between a plurality of stable magnetic states when a write current is passed through the magnetic element.