The invention includes an apparatus and method for generating a write
current for a magnetic memory cell. The apparatus includes a write current
generator for generating a write current, the write current being
magnetically coupled to the magnetic memory cell. The apparatus further
includes at least one test magnetic memory cell, the write current being
magnetically coupled to the at least one test magnetic memory cell. A
switching response of the at least one test magnetic memory cell
determines a magnitude of the write current generated by the write current
generator. The method for determining a write current for a magnetic
memory cell includes supplying a test write current to a test magnetic
memory cell, sensing a magnetic state of the test magnetic memory cell to
determine a switching response of the test magnetic memory cell, and
generating the write current having a magnitude that is dependent upon the
switching response.