The diesel generator sets digital control system based on DSP is studied in this paper. The principles of voltage and speed control are analyzed. The main DSP chip is 16-bit fixed-point TMS320LF2407A. The hardware design, the former channels, the after channels and the CAN controller are accomplished in this paper. The simulation results indicate the controller has high-performance processing capabilities and it can meet the need of Generator Sets' real-time control and performance requirements.