本論文以數位訊號處理器整合的馬達驅動和量測模組,實現向量控制座標轉換的方法,控制永磁同步電動機,以轉速的誤差經過比例積分控制器算出q 軸電流的命令,d軸電流控制命令為零,透過電流誤差以及座標反轉換,再經過空間向量脈寬調變算出功率開關切換的命令,進而達到電流以及速度控制的架構。偵測發電機每一個週期的最高轉速,調整速度的命令,使系統能夠維持穩定轉速,達成主動式減震的目的。發電機透過三相全橋式開關整流器,可以整流出直流電壓,經由三相電流的關係,控制功率開關的切換,利用功率開關和發電機等效的電感來達到升壓的效果,以直流端電壓的誤差經過比例積分控制器算出電壓的命令,進而控制直流端電壓的穩定。This paper applied the digital signal processor combined with motor drives and measurement modules to realize field oriented control method. For control of permanent magnet synchronous motor , we can use the speed feedback error and the coordinate inverse transform to calculate the q-axis current command by proportional integral controller . The d-axis current command is zero. We used the space vector pulse width modulation to calculate the command of IGBT module to achieve the current and speed control of PMSM. We detected the maximum speed of each cycle of the generator mode to adjust the speed command for the system maintaining a steady speed also achieve the purpose of active damping control. Through the Full-bridge SMR, the generator can apply DC voltage. We detected the relationship of three-phase currents to control the power switch. The power switch and generator equivalent inductance can consist the voltage boost circuit. We detected the DC-side voltage feedback error , can use the proportional integral controller to calculates the voltage command, and then control the stability of the DC-side voltage.