Estimation of rotor position and speed for sensorless DSP-based PMSM drives