| In urban rail transit vehicles(such as Metro),the auxiliary power supply system is one of the key equipments, its main fuction is to provide electricity for all types of electrical appliances in the vehicle. The security and reliability of auxiliary power supply system have an important effect on the normal operation of vehicle, so the real-time monitoring on the auxiliary power supply system is necessary, which will contribute to the maintenance and improvement of the system and can resolve the faults in time.This paper is based on a certain research project, and the aim of the project is to develop a monitoring system for auxiliary power supply system which consists of two parts:embedded monitoring unit in the auxiliary power supply system and data analysis software installed in PC. This paper mainly focuses on the the design of the software of the embeded monitoring unit,which realizes signal acquisitionã€data storage and communication. the software is composed of two parts:logical circuit design for FPGA&CPLD and software design for DSP.On the hardware platform based on DSP+FPGA&CPLD, XINTF interface module〠NandFlash interface moduleã€SRAM interface moduleã€ethernet controller interface module are designed with the method of schematic input in CPLD, and XINTF interface module〠ADC control moduleã€RTC control moduleã€asynchronous FIFO module and fault detection module are designed by mixed input of schematic and Verilog HDL in FPGA.Design of DSP software is an important part of this paper. DSP software is designed in a method called foreground-background system.In this method, foreground program made up of interrupt service routines is used for data acquisition from CPLD and FPGA.Background program is divided into four parts:initializing module which realizes initialization of hardware and software, data processing module which is charge of the storage of real-time dataã€historical data and system fault data, data access module which saves and reads data, manages bad block of NandFlash,data communication module which realizes RS232RS485ã€CAN and Ethernet communication.At last,this paper tests some modules of FPGPã€CPLD and DSP, as well as the overall functions of the software. The results show that the software can achieve the desired functions. |