Excitation of resolver by pulses instead of continuous wave, to save energy