Brushless DC Motor Control Based on DSP