Abstract:The article uses the advantages of the DSP microprocessor in the Traction Control Unit (TCU) to design and implement a set of traction control programs. It not only includes the control and modulation algorithm programs of the four-quadrant rectifier and PWM inverter running on the DSP, but also the PC software that can be used to debug the algorithm program online and run on the PC after the TCU is installed. Finally, on the dSPACE semi-physical simulation platform, the traction control program successfully drives the train to steadily increase from 0km/h to 320km/h. At the same time, the user can view the key data waveforms of the traction control program in real time through the host computer software and modify online Algorithm parameters, upgrade the function of the traction control program. The experimental results verify the usability, ease of use, correctness and real-time performance of the traction control unit DSP program and host computer software designed in the article, and lay a software foundation for the optimization, innovation and verification of subsequent control algorithms.