The voltage space vector pulse width modulation wave is generated by the DSP chip

Publisher:Huanle666Latest update time:2006-09-29 Source: 单片机与嵌入式系统ic网Keywords:Vector Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction
  
  In electrical transmission, pulse width modulation (PWM-Pulse Width Modulation) control technology is widely used. As the requirements for the control performance of electrical transmission systems continue to increase, people have conducted in-depth research on PWM control technology: from the initial pursuit of sinusoidal voltage waveforms, to sinusoidal current waveforms, and then to sinusoidal magnetic flux, PWM control technology continues to innovate and improve. . The voltage space vector (SVPWM-Space Vector PWM) used in this article is an optimized PWM method, which can significantly reduce the harmonic components of the inverter output current and the harmonic losses of the motor, and reduce the pulsating torque. Due to its control Simple and easy to realize digitally, there is a trend to replace traditional SPWM (SinusoidalPWM). The continuous development of microcomputer technology makes digital PWM possible and has broad application prospects. This article uses the TMS320F240 in the TMS320C24x series of digital signal processors (DPS) launched by Texas Instruments (TI) specifically for motor control to implement SVPWM frequency conversion speed regulation [1, 2] . This article introduces two methods to implement SVPWM by TMS320F240. One is implemented using the conventional comparison function of TMS320F240. It is called SWSVPWM (software SVPWM); the other is implemented using the inherent hardware circuit of TMS320F240 to generate SVPWM, called HWSVWM (hardware SVPWM) [3] .

2 Basic principles and characteristics of SVPWM
  The voltage space vector method (SVPWM, called flux sinusoidal PWM) starts from the perspective of the motor and focuses on making the motor obtain a circular magnetic field with constant amplitude, that is, sinusoidal flux. It uses the ideal circular flux trajectory of the AC motor when powered by three-phase symmetrical sine wave voltage as the benchmark, and uses the actual magnetic flux generated by the different switching modes of the inverter to approximate the benchmark flux circle, thereby achieving higher control performance. The switching states of the upper and lower arms of the three-phase voltage source inverter bridge are complementary. Therefore, the switching states of the power devices of the three upper arms can be used to describe the working state of the inverter. The switching state of the power device is recorded as "1" , the off state is "0", then there are 8 combinations of switch states of the upper arm, which can be represented by the vector [a, b, c] t , respectively [0 0 0] t , [0 0 1] t ,... , [1 1 1] t .   After obtaining the phase voltage vector, then apply the unified theory of motor and abc-dq coordinate conversion: the   8 switching state vectors of abc coordinates can be converted into 8 voltage vectors of dq coordinates, which are recorded as U 0 , U 60 , U 120 , respectively. U 180 , U 240 , U 300 , U 000 , U 111 are called basic voltage space vectors, among which U 000 and U 111 are zero vectors, as shown in Figure 1.  




  The goal of SVPWM control technology is to control the space voltage vector U out to make a circular rotation according to the set parameters by controlling the switch state combination. At a certain moment, U out rotates in a certain area, and the required U out output can be obtained by combining the two non-zero vectors U x that make up this area according to the corresponding action times T 1 and T 2 respectively . In the process of rotating from one space voltage vector to another vector, the principle of minimal change in the switching state of the power device should be followed, that is, only the switching state of one power device should change. Based on this principle, the rotation direction between the basic space voltage vectors can be selected. The U x that acts first is called the main vector, and the U x that acts later is called the auxiliary vector. So U out can be expressed as   Since the sum of T 1 and T 2 is less than T P and the sum is less than T P (carrier period), it is necessary to use zero vector U 0 0 0 or U 1 1 1 to insert, and the insertion time is T 0 , T 1 +T 2 +T 0 =T P ​​. The zero vector has no effect on the size of U out and only compensates for the set frequency. At a very high switching frequency, U out can be regarded as a constant in each conversion cycle, and the above formula can be written as: Using this formula, T


1 and T 2
can be obtained respectively in the dq plane . The size of   the voltage space vector U out represents the effective value of the three-phase motor line voltage, and its frequency is also the frequency of the three-phase motor. Controlling the size, rotation speed and direction of U out can achieve variable frequency speed regulation. The inscribed circle of the hexagon consisting of the basic voltage space vector shown in Figure 1 is the maximum trajectory that U out can reach, so the maximum value of U out is the line voltage and phase voltage of the corresponding motor and V dc / , which It is times the maximum value of ordinary SPWM , so the DC voltage utilization rate of SVPWM is also the highest [4] .


3 Generate SVPWM based on TMS320F240

  TMS320F24x is a DSP chip newly developed by American TI company specifically for motor control. In addition to the inherent high-speed computing characteristics of DSP (50ns instruction cycle) and hardware multiplier, it also internally integrates three-phase PWM waveforms. Generator, the combination of the two allows us to generate SVPWM waves of any frequency through real-time calculations.   The TMS320C24x series products design a special PWM generation circuit for motor control, as shown in Figure 2.   From the hardware structure of on-chip PWM generation in Figure 2, we can see that PWM generation is controlled by specific registers:  

  

  


  (1) COMCON[12] controls whether the PWM output is the conventional comparison control PWM mode (SWSVPWM) or the hardware SVPWM mode (HWSVPWM).
  (2) ACTR [12-15] is the current vector, and the corresponding value is written according to the position of U out
. It is used when HWSVPWM is used.   (3) T1CON [11-13] controls the generation of symmetrical or asymmetrical PWM waveforms. The dead time is set to DBTCON. When the clock is 50ns, the set dead time range is 0~102.4μs.
  (4) COMCON controls PWM output or high-impedance output, which can be used for timely protection when the system fails.
  (5) The three comparison registers of CMPRx (x=1, 2, 3) respectively correspond to when to turn on the three phases a, b, and c. The size of their values ​​is determined by the action time of the main, auxiliary vector and zero vector. When SWSVPWM is used use.

3.1 SWSVPWM generation method


  The process of using software to generate SVPWM is that when the timer counter accumulates to a value equal to CMPRx = 1, 2, 3), the control signal output corresponding to the space vector will be changed. For example, write 0.25T 0 in CMPR1 , 0.25T 0 +0.5T 1 in CMPR2, and write 0.25T 0 +0.5T 1 +0.5T 2 in CMPR3 . The counter value of the timer will be the same as CMPRx one by one. If matched, the PWM waveform shown in Figure 3a will be output. Therefore, the task to be completed by the program that generates SVPWM - the timer interrupt subroutine is already very clear. In the main program, calculate the required frequency according to the control strategy and wait for the interrupt to occur. In the timer interrupt subroutine, determine the position of U out in the next carrier cycle based on the current position of f and U out at this time , determine the main vector and auxiliary vector, and calculate their respective times T 1 and T 2. Get the time value when allocation occurs and write it into CMPRx. As shown in Figure 3, the main vector in area I is U 0 and the auxiliary vector is U ±60 . The main vector in area II is U 120 and the auxiliary vector is U 60 , and so on in other areas.


3.2 HWSVPWM generation method
  
  In each PWM cycle, the action will be completed: at the beginning of the cycle, the PWM output is set according to the vector defined in ACTR [14-12]; in the upward counting process, at 0.5T 1 time When the first comparison match occurs (the counter value is equal to the CMPR1 value), the PWM output is converted into an auxiliary vector according to the rotation direction defined by ACTR [15] (0 means counterclockwise rotation, 1 means clockwise rotation), and at 0 .5T 1 + 0.5T 2 moment, when the second comparison match occurs (the counter value is equal to the CMPR2 value), the PWM output is converted into one of two zero vectors; during the downward counting process, with Symmetrical output in the first half of the cycle. Figure 4 shows the SVPWM waveforms in Area I and Area II, and the analogy can be applied to other areas.

3.3 Comparison of SWSVPWM and HWSVPWM

  
  It can be seen from the analysis that in each PWM cycle, the SWSVPWM waveform starts and ends with the zero vector U 000 , and the state of each inverter bridge arm changes, so the three-phase voltage remains after adding the dead zone. Balance does not affect the inverter line voltage; and the HWSVPWM waveform starts with the vector set in ACTR [14-12] and ends with it. There is a bridge arm state that never changes, and the number of switches is reduced, thereby reducing In addition to the switching loss, the dead zone only affects the two bridge arms, so it causes harmonic components in the line voltage waveform. When the switching frequency is high (such as 20kHz) and the dead time is small, the harmonic components are smaller. In addition, HWSVPWM requires less calculation and takes up less CPU time. Table 1 is a comparison of HWSVPWM and SWSVPWM.


4 Experimental analysis
  
  The TMS320F240 chip is used, plus the necessary peripheral circuits, to form a minimum DSP system. The intelligent power module uses Siemens' P221, with a maximum switching frequency of up to 20kHz and a dead time of only 2μs. Together with the incoming line filtering and rectification circuits, a simple and practical variable frequency speed regulation system can be made. The experimental motor is a 750W three-phase squirrel cage motor, a 100W three-phase wound motor, and the load is a 180W shunt DC generator with a sliding wire rheostat. The experiment uses the SWSVPWM method and compares it with the ordinary SPWM method.
  
  The experimental results are shown in Figures 5, 6, and 7. From the experimentally observed output voltage waveform, the current waveform has good sinusoidality; through FFT transformation, it is found that the harmonic elimination effect of SVPWM is obvious, especially the 6k±1 harmonic in the 0~ 1. Basically all harmonics in the 22kHz range are eliminated, and their harmonic amplitudes are more than 30dB smaller than the fundamental wave amplitude.

5 Conclusion
  
  This article studies the method of implementing SVPWM using DSP chip TMS320F240. After analysis and experiments, the results show that:
  (1) SVPWM has a high degree of harmonic optimization, is better at eliminating harmonics than SPWM, is easy to implement, and may improve voltage utilization.
  (2) SVPWM is more suitable for digital control systems. Digital control systems with microcontrollers as the core are the development trend, so SVPWM should be the preferred choice.
  (3) With TI's TMS320F240 as the core, it constitutes a fully digital control system that can generate SVPWM in two ways. In general small and medium-power frequency conversion speed regulation systems, it is very suitable to use this chip to implement SVPWM control technology.

references:

[1] TMS320C24X DSP Controllers-peripheral Library and Specific Devices〔J〕. 1997,2.
[2] TMS320C24X DSP Controllers-CPU System, and Instruction Set〔J〕. 1997,1.
[3] Zhenyu Yu. Space-Vector PWM Technique WithTMS320C24x/F24x Using Hardware and Software Determined Switching Patterns[J]. 1999.
[4] Zhenyu Yu, Figoli, David. AC Induction Motor ControlUsing ConstantV/HzPrinciple and Space- Vector PWM Technique With TMS320C240[J]. 1998.

Keywords:Vector Reference address:The voltage space vector pulse width modulation wave is generated by the DSP chip

Previous article:The voltage space vector pulse width modulation wave is generated by the DSP chip
Next article:A DSP-based software phase-locked loop model and implementation

Recommended ReadingLatest update time:2024-11-16 19:51

LED Display Digital Voltmeter Based on Single Chip Microcomputer
1 Introduction The single-chip microcomputer is an integrated circuit chip. With the penetration of computers in the social field, the application of single-chip microcomputers is constantly deepening, and at the same time, it drives the traditional control detection to be updated day by day. In the single-chip
[Industrial Control]
LED Display Digital Voltmeter Based on Single Chip Microcomputer
LM386 Low Voltage Audio Power Amplifier
1.Description : ​ LM386 is an audio power amplifier produced by National Semiconductor Corporation, mainly used in low-voltage consumer products. To minimize external components, the voltage gain is built in as 20. However, by adding an external resistor and capaci
[Embedded]
LM386 Low Voltage Audio Power Amplifier
Voltage acquisition and sampling circuit design
Voltage collection is often used in circuit design. The specific collection type is divided into DC collection and AC collection. The source voltage is passed through a series of circuit designs, and finally through AD (digital-to-analog conversion chip or microcontroller internal AD) Reading into the MCU and executin
[Microcontroller]
High Impedance Sensing Experiments Using a Single IC for High Voltage CMOS Amplifiers
introduction Accurate measurement of voltage requires minimizing the effects of the instrument wiring to the circuit being tested. Typical digital voltmeters (DVMs) use 10M resistor networks to keep loading effects to an inconspicuous level, even though this can cause significant errors, especially in higher volta
[Power Management]
High Impedance Sensing Experiments Using a Single IC for High Voltage CMOS Amplifiers
Flyback switching power supply: can work and light up HBLED lamp at 1.1V voltage
This Design Idea shows a method to drive low-power electronic circuits from a single 1.5V battery . It is based on a self-excited oscillator design that drives a flyback transformer to generate a higher, controlled voltage. This design can be used to power analog circuits, microcontrollers, and any other light loa
[Power Management]
Flyback switching power supply: can work and light up HBLED lamp at 1.1V voltage
Steps for measuring AC component voltage using an oscilloscope
When measuring AC component voltage, the input "select" switch should be placed in the "AC" position to isolate the DC component of the measured signal. Otherwise, when the superposition of the DC component voltage exceeds the linear deflection range of the deflection amplifier, the result will be inaccurate. However,
[Test Measurement]
Solution to the overvoltage alarm problem of the inverter
Use a frequency converter to control the fan. When the fan stops, the motor runs due to inertia and regenerates electricity. The frequency converter gives off an overvoltage alarm. How should this be solved? Let's learn about it below. Inverter overvoltage alarm problem The inverter overvoltage alarm
[Embedded]
Discussion on the "voltage regulator king" UC3842 in the new voltage feedback circuit
The well-known PWM switching power supply uses the sampling of the output voltage as the feedback voltage of the PWM controller. The feedback voltage is adjusted through the error amplifier inside the PWM controller to adjust the duty cycle of the switching signal in order to output a more stable voltage. Of course, t
[Power Management]
Discussion on the
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号