Research on frequency conversion technology based on TMS320LF2407
2026-04-06 06:22:36··#1
Common AC/DC/AC frequency converters perform frequency and voltage regulation on the output section. Among various inverter control technologies, the most widely used is sinusoidal pulse width modulation (SPWM) technology. In variable frequency speed control systems, the application of DSP as a control chip to achieve digital control not only improves system reliability but also enhances control accuracy, real-time performance, hardware simplicity, and software programming ease, making it one of the most promising research directions in variable frequency speed control systems. This paper introduces the design and implementation method of a fully digital single-phase frequency converter based on the DSP TMS320LF2407A and using SPWM control technology, and finally presents experimental waveforms. 1 Introduction to TMS320LF2407A Chip The TMS320LF2407A is a single-chip DSP controller designed by TI specifically for motor control. It features a high-performance C2XLP core, employing an improved Harvard architecture and a four-stage pipelined operation. It not only possesses powerful high-speed computing capabilities but also integrates a wealth of motor control peripherals, such as event managers EVA and EVB, each including three independent bidirectional timers; support for generating programmable dead-time control PWM outputs; two of the four capture ports can be directly connected to orthogonal encoded pulses from photoelectric encoders; two independent 10-bit 8-channel A/D converters can simultaneously and in parallel complete the conversion of two analog inputs; an on-chip serial communication interface for communication with a host computer; an on-chip serial peripheral port for communication with peripherals; and 40 independently programmable multiplexed I/O ports that can be optionally configured as keyboard input and oscilloscope display input/output ports. These features greatly facilitate the implementation of AC motor variable frequency speed control. 2 System Overall Scheme and Hardware Circuit Figure 1 shows the system hardware block diagram. In this system, the TMS320LF2407A is used as the main control chip. The inverter adopts SPWM modulation control to implement the frequency conversion control algorithm. The system hardware consists of a main circuit, a display circuit, a keyboard input circuit, and detection and protection circuits. The DSP first collects the required frequency signal from the keyboard, then generates the corresponding SPWM signal through calculation, and transmits it to the drive circuit through an optocoupler to control the power transistors in the inverter bridge to turn on and off. At the same time, it collects relevant signals in the main circuit and judges whether there is a fault output. If there is a fault, the DSP's SPWM output is turned off, thereby turning off the main circuit. [img=230,218]http://www.21ic.com/news/upload/2008_11/081125093323341.jpg[/img] 2.1 Main Circuit Composition Figure 2 shows the main circuit of the system, which consists of three parts: a rectifier circuit, a filter circuit, and an inverter circuit. The rectifier circuit is a three-phase uncontrolled rectifier bridge, which rectifies the 380 V, 50 Hz AC power into pulsating DC power. Filter capacitors are used in the circuit to filter out voltage ripple, and they also decouple the rectifier circuit from the inverter to eliminate mutual interference. The average value of the rectified DC voltage is UO = 1.35U2 ≈ 1.4U2 = 540 V. U2 is the effective value of the AC side voltage. Considering a 10% fluctuation in the three-phase input power, UO = 500–560 V. In the main circuit diagram, power devices G1, G2, G3, and G4 represent IGBT devices, model MG50Q2YS40, with a withstand voltage of 1200 V, a control voltage of ±20 V, and a current of 50 A. R1 is a current-limiting resistor to prevent damage to the IGBTs from inrush current. L1 and L3 are common-mode filters, and HL1 and HL2 are current Hall effect sensors, which detect the current value of the main circuit and serve as the input signal for the protection circuit. Voltage Hall effect sensors are also used to detect the voltage value, serving as the input signal for the protection circuit and the voltage feedback signal, forming a voltage negative feedback. Four IGBTs controlled by SPWM technology are used for inversion. The output AC power is transformed by a transformer and then filtered by an LC filter to output a 220V AC power with a variable frequency. [img=437,157]http://www.21ic.com/news/upload/2008_11/081125093323342.jpg[/img] 2.2 Drive and Protection Circuit Figure 3 shows the principle of the drive circuit. The inverter circuit of this system uses IGBT chips as the power devices; therefore, the drive circuit uses four Mitsubishi M57962L drive modules. This drive module is a hybrid integrated circuit that integrates IGBT drive and overcurrent protection. In Figure 3, pin 13 of the M57962L is connected to PWM1 of the DSP (the other three M57962Ls are connected to PWM2, PWM3, and PWM4 respectively), pin 14 is grounded, and pins 1 and 6 are connected to the power supply. Furthermore, the M57962L uses low-voltage drive, meaning it can only be driven when a negative potential is input to pin 13. This prevents interference; when interference waveforms occur, the low-level driven M57962L cannot be driven. Additionally, during turn-off, if the voltage change is too large, a latch-up phenomenon can occur, causing the IGBT to malfunction and resulting in shoot-through of the upper and lower bridge arms. Therefore, an RC snubber circuit is used to suppress overvoltage and the rate of voltage change du/dt. [img=290,200]http://www.21ic.com/news/upload/2008_11/081125093323343.jpg[/img] 3. Digital Implementation of the System The inverter section of the system adopts the SPWM regular sampling algorithm. Its basic idea is to make the output pulses change according to a sinusoidal pattern, thus reducing the harmonic components in the output voltage and making the output voltage closer to a sine wave. For ease of digital implementation, the regular sampling method is used to generate the SPWM pulse sequence, as shown in Figure 4. Because the triangular carrier frequency is much higher than the sine wave frequency, the sinusoidal modulation wave ut within one cycle of the triangular carrier uc is considered constant. Thus, in one triangular wave cycle, only one sampling at point B is needed to make the midpoint of the generated SPWM pulse coincide with the midpoint (point A) of the corresponding triangular wave, greatly simplifying the calculation of the SPWM pulse. Let the amplitude of uc be 1, and the sinusoidal modulation signal ut = Msinωtt, where 0 ≤ M < 1 (M is the modulation index). Since △ABC ~ △EDA, we have: [img=425,295]http://www.21ic.com/news/upload/2008_11/081125093323345.jpg[/img] [img=234,181]http://www.21ic.com/news/upload/2008_11/081125093323344.jpg[/img] The sine function value is obtained by looking up a table. Additionally, N is a multiple of 3 in each segment of the synchronous modulation. Software programming is the core of inverter control circuit design. The system software mainly includes: main program, interrupt service routine, PI adjustment program, display program, etc. Figure 5 shows the main program flowchart, and Figure 6 shows the interrupt routine flowchart. In the main program, the initialization of the DSP system and external devices, I/O control signal management, and sine wave signal generation and processing are completed. In the interrupt routine, current and voltage detection, PI regulation calculation, calculation of modulation index M and frequency value under constant voltage-frequency ratio, sine wave processing and assignment of value to comparator CMPRL are completed. [align=center][img=273,458]http://www.21ic.com/news/upload/2008_11/081125093323346.jpg[/img] [img=231,570]http://www.21ic.com/news/upload/2008_11/081125093323347.jpg[/img] [/align] 4 Experimental Results Figure 7 shows the waveforms of PWM1 and PWM2 of the upper and lower transistors of the same bridge arm. As can be seen from the figure, a dead time of 2μs is set for the upper and lower bridge arms to ensure the safe operation of the inverter circuit. Figure 8 shows the PWM waveforms generated by the DSP. (1) and (2) are two complementary pulse signals with equal amplitude but unequal width. The high level is +5V, the low level is 0V, and the pulse width varies sinusoidally. Since the M57962L chip uses negative potential drive, a level conversion circuit is required. Figure 9 shows the final SPWM waveform driving the IGBT (the converted SPWM waveform). It can be seen from the figure that the waveform width varies sinusoidally. Figures 10(a) and (b) show the output voltage waveforms at f=200 Hz and f=300 Hz, respectively. Experimental results show that the output voltage waveform quality is good and the total harmonic distortion (THD) is low. [img=292,138]http://www.21ic.com/news/upload/2008_11/081125093323348.jpg[/img][img=356,820]http://www.21ic.com/news/upload/2008_11/081125093323349.jpg[/img] 5 Conclusion DSP-based digital control technology can greatly improve product consistency, overcome the performance dispersion caused by analog control, enhance control flexibility, simplify system structure, and improve the stability and reliability of the entire system, showing good application prospects. This design uses the TMS320LF2407A chip with SPWM control technology to convert a 380 V, 50 Hz AC power supply into a 220 V AC power supply with an adjustable frequency of 100–400 Hz. Actual measurements of the prototype show that the output waveform quality is good, overcoming the shortcomings of previous power supplies that used large intermediate frequency transformers, such as high noise, slow response, and severe waveform distortion. It is a product with good application prospects.