A photon at half the threshold frequency for photoelectric effect is directed at the atom, their electrostatic interaction on just one hemisphere causes the atom as a whole to flip and thus the electron spin to be reversed.
In this case, the energy required for a spin reversal depended on the "lattice energy" that holds the atom in place as well as the moment of inertia of the atom itself.
Have a nice day.