Sinusoidal Control of PMSM Motors with dsPIC30F …