Diffusion barrier 22 prevents the interlayer diffusion of the elements comprising the contact 36 and the bottom electrode 14A. It is preferably formed of a metal such as titanium nitride (TiN), titanium tungsten (TiW), tantalum (Ta), titanium (Ti), tungsten (W), molybdenum (Mo) or chromium (Cr).