DSP Based Position Control of PMSM with Real-Time Cycloidal Path Generation for Intelligent Motion Applications