Design of a general control platform for high power converters based on dual DSP[Copy link]
This paper introduces a general control platform for high-power converters. It is a dual-DSP control system architecture with TMS320C6713B as the floating-point arithmetic core and TMS320F2812 as the system fixed-point control core. The hardware circuit and software program design of each module of the system design are analyzed in detail. The system control platform has strong computing performance, good versatility and scalability, and has been successfully applied to the 400 kVA shore power supply prototype. Converter technology and modern power electronics technology are widely used in AC variable frequency speed regulation, power supply, power system transmission and distribution, power quality control, etc. High-power converters have the same or similar main circuit structure. Its controller structure is basically composed of signal conditioning circuit, A/D conversion circuit, microprocessor (DSP or single-chip microcomputer), PWM generator, switch input and output, and communication circuit with the host computer (serial port or network port). Therefore, the converter device controller has a wide range of commonalities. Here, a design scheme for a high-power converter universal control platform based on a dual DSP (TMS320C6713B and TMS320F2812) architecture is proposed. Compared with the converter-specific controller, it has stronger versatility, is conducive to the modular design of converter controller hardware and software, and promotes the research of converter device control algorithms and shortens its product development cycle. 1 Overall system design This system design uses TI's dual DSP processors TMS320C6713B (floating-point DSP) and TMS320F2812 (fixed-point DSP) as the core controller. The floating-point DSP TMS320C6713B expands the AD bus, realizes floating-point operations, and HPI interface online programming; while the fixed-point DSP TMS320F2812 event manager realizes PWM control, speed acquisition, switch state control, fault detection, and some communication functions. The dual-port RAM IDT70V25 realizes dual DSP communication, and has an IDT70V25 8 K×16 bit shared area, and a logic busy and interrupt access arbitration mode. At the same time, the control system is expanded with an FPGA to realize network communication, ISP, LCD display, keyboard input, etc. 2 System hardware circuit design 2.1 Acquisition circuit 2.1.1 Current and voltage detection circuit In order to effectively adjust the output voltage, current and power factor of the converter main circuit, the three-phase voltage, current signal and DC link voltage output signals are collected respectively. In view of the sampling accuracy and sampling rate requirements of the control platform, the AD7865 A/D converter of ANALOG Device Company is selected. The device is a high-speed, low-power, 4-channel synchronous sampling 14-bit A/D converter, powered by +5 V. It has a 2.4μs successive approximation A/D converter, 4 tracking/holding amplifiers, an internal 2.5 V reference voltage, an on-chip clock oscillator and a high-speed parallel interface. It synchronously samples 4-channel input signals and allows two input ranges of ±10 V and ±5 V. Here, ±10 V input voltage is selected. The three-phase line voltage, three-phase current, DC voltage and current, and input and output filter line currents on the input and output sides of the main circuit are collected by Hall sensors and output as currents. The current signal output by the Hall sensor is input into the A/D sampling circuit through the slot and converted into a ±15 V voltage signal through a precision resistor. The voltage signal is converted into a +10 V voltage signal through an active low-pass filter with amplitude modulation function, and then sent to the analog input terminal of AD7865 through an inverter. The control signals of AD7865, such as BUSY, are realized by the EMIF bus of TMS320C6713B through the logic decoding of EPM570T100 CPLD. 2.1.2 Motor speed detection circuit The general control platform of the converter uses an incremental photoelectric encoder to design the motor speed meter. The photoelectric encoder outputs two-phase signals QEPI and QEP2 with a pulse waveform difference of 90°. When rotating forward, QEP1 phase leads QEP2 phase; when rotating reversely, QEP2 phase leads QEP1 phase. The motor speed is measured according to the frequency of the optical pulse output by the photoelectric encoder. The incremental rotary encoder rotates coaxially with the motor under test and outputs three differential signals of A, B, and Z. Among them, the phase difference of the two groups of pulses A and B is 90°, which can easily determine the direction of rotation, and the Z path is the reference point positioning of one pulse per rotation. The three differential signals are converted into logic signals by MAX490ESA, and then isolated by high-speed optocoupler 6N137 and sent to the orthogonal pulse encoding circuit of TMS320F2812 to measure the motor speed. 2.2 Microprocessor Core Circuit The core unit of the general control platform, the main controller, needs to take into account the realization of the system's fixed-point and floating-point operations, analog sampling, protection, communication and other functions. Therefore, the main controller architecture of floating-point DSP + fixed-point DSP + FPGA is adopted. Among them, the floating-point DSP TMS320C6713B expands AD7865 through the CPLD EPM570T100 bus to complete the three-phase voltage, current, frequency and DC voltage and other control parameters; primary complex floating-point operations such as coordinate transformation; control algorithm implementation and operation status record storage, etc. The fixed-point DSP TMS320F2812 mainly realizes peripheral functions and some fixed-point operations. TMS320-F2812 reads the calculation results of TMS320C6713B through dual-port RAM IDT70V25; realizes SPWM, SVPWM through event manager modules EVA and EVB; fault state detection and protection; system main circuit switch state input and output, etc. FPGA EP2C20Q240 is connected to TMS320C6713B through HPI interface and to TMS320F2812 through McBSP interface. The remote PC updates the dual DSP program online through the network, making it easier to debug the dual DSP. 2.3 PWM signal generation and output circuit The control platform generates PWM control signals through SPWM, SVPWM and other modulations to control the converter, and then controls the main circuit switch of IGBT and IPM modules through the drive circuit to generate AC output. On the general control platform, the 16-channel PWM signals of the event manager EVA and EVB in TMS320F2812 are introduced into the CPLD EPMl270T144, and are output through the optical fiber HFBRl521 after being processed by the CPLD and driven by the SN75451. The PWM of the general control platform and the driver module of the main circuit are isolated by optical fiber, which can effectively eliminate the interference of the main circuit on the control platform. At the same time, the driver board receives the 16-channel fault signals sent by the driver board through the 16-channel optical fiber receiver HFBR252l and sends them to the CPLD for blocking the PWM output. The CPLD shapes the 16-channel PWM signals output by TMS320F2812, including adding complementary pulses, adding dead zones, limiting the minimum pulse width, etc.; blocking pulses according to actual requirements, completing protection actions and outputting fault signals. The PWM signal output by the CPLD is connected to a pull-down resistor, so that when the CPLD outputs high impedance, the PWM output is a certain low level, avoiding the switch device from being mis-turned on due to the uncertain state of the PWM signal during the reset period or when the CPLD has no loading program. 2.4 Switch state input and output circuitThe control platform reads the on/off status of the main circuit air switch, circuit breaker, button, etc. through the input of the switch state quantity; the main circuit circuit breaker, exhaust fan control switch, etc. are controlled through the switch state output and the on/off control output relay. The input and output of the switch quantity are composed of data, address bus, 74LVC245, optocoupler TLP52l and relay. The input of the switch quantity is converted to 3.3 V level through 74LV-C244 and sent to TMS320F2812; the switch quantity is output by 74LVC244 to control the signal light and relay, etc., so as to realize the functions of debugging, indication, protection action, etc. In this design, the switch state quantity has a total of 8 input and output channels, which are all isolated by optocouplers and powered by 24 V separately. Optocoupler isolation and separate power supply can effectively isolate the main circuit and the control platform, thereby reducing the interference of the main circuit to the control platform. 2.5 Communication module and human-machine interface (HMI) When the high-power converter is working, the control platform exchanges data with other systems such as the human-machine interface and the host computer through the communication circuit. The communication circuit is controlled by FPGA. In order to enable the dual DSP to update the program online and facilitate debugging, an FPGA EP2C20Q240 and a network controller RTL8019 are used to expand Ethernet. FPGA needs to expand 1 SDRAM HY57V641620 and 1 FlashE28F640 to store the soft-core Nios II and μCLinux operating system that need to be loaded when the FPGA is running. In order to achieve a good human-machine interface (HMI), the general control platform also expands an LCD and keyboard input circuit. The keyboard input circuit is controlled by ZLG7290 and communicates with FPGA through the I2C bus; ICD is a parallel interface, its data line is multiplexed with the network card controller RTL8019, and the control signal is sent directly by FPGA. 3 Control system software design The control system software design mainly includes initialization, communication, MD sampling, control algorithm, SPWM modulation, fault detection and processing and other procedures. 4 Conclusion The high-power converter universal control platform is applied to the 400 kVA shore power supply prototype, and the motor drag experiment based on SVPWM is carried out. The motor runs stably and there is no motor vibration caused by harmonics; the voltage and current sampling data of each channel of the main circuit are basically the same as the test results of the field instrument; the protection circuit can operate normally; the communication function is normal, and the dual DSP online update program is realized. It should be noted that this design is a universal control platform with complete peripheral functions. In actual products, modular tailoring is required according to relevant requirements. Compared with the traditional high-power converter dedicated controller, this universal control platform has strong computing power, large data storage capacity, can perform fixed-point and floating-point operations at the same time, has accurate and reliable analog circuits, rich communication resources and strong anti-interference ability.