摘要

During the realization of a control algorithm for the practical motor driver system, simulation is an important procedure before the algorithm is implanted into the DSP chip. In most circumstances, the simulation is done before the algorithm is realized, which is simulated under the condition of continuous control system. However, the simulation neglects the effect of the discrete system caused by the software structure, which the algorithm in DSP is triggered by the events trigger interrupt. Moreover, the model is complicated and cannot reflect the real hardware and the pipelined algorithm. Furthermore, the accuracy and running time of the simulation model are controlled by the simulation step setting. In this paper, a novel discrete simulation model is realized and introduced to consider the effect of both hardware and software and to reduce the running time with a considerable accuracy. The unification of the parameters is also considered in the model to make the system more efficient. The result reveals that the proposed method reflects the effect of both the real hardware and the software, which form a close loop between the simulation and algorithm realization. The simulation runtime is reduced, while the accuracy is unchanged, and it is suitable for the simulation of high-speed motor driver system.