TIDUF77 June   2024 MSPM0G1507

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 Terminology
    2. 1.2 Key System Specifications
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
    3. 2.3 Highlighted Products
      1. 2.3.1 TMS320F2800137
      2. 2.3.2 MSPM0G1507
      3. 2.3.3 DRV7308
      4. 2.3.4 UCC28911
      5. 2.3.5 TLV9062
      6. 2.3.6 TLV74033
      7. 2.3.7 ISO6721B
      8. 2.3.8 TMP6131
    4. 2.4 System Design Theory
      1. 2.4.1 Hardware Design
        1. 2.4.1.1 Modular Design
        2. 2.4.1.2 Auxiliary Flyback Power Supply
        3. 2.4.1.3 DC Link Voltage Sensing
        4. 2.4.1.4 Inrush Current Protection
        5. 2.4.1.5 Motor Phase Voltage Sensing
        6. 2.4.1.6 Motor Phase Current Sensing
        7. 2.4.1.7 Over Current Protection of DRV7308
        8. 2.4.1.8 Internal Overcurrent Protection for TMS320F2800F137
      2. 2.4.2 Three-Phase PMSM Drive
        1. 2.4.2.1 Field-Oriented Control of PM Synchronous Motor
          1. 2.4.2.1.1 Space Vector Definition and Projection
            1. 2.4.2.1.1.1 ( a ,   b ) ⇒ ( α , β ) Clarke Transformation
            2. 2.4.2.1.1.2 α , β ⇒ ( d ,   q ) Park Transformation
          2. 2.4.2.1.2 Basic Scheme of FOC for AC Motor
          3. 2.4.2.1.3 Rotor Flux Position
        2. 2.4.2.2 Sensorless Control of PM Synchronous Motor
          1. 2.4.2.2.1 Enhanced Sliding Mode Observer With Phase-Locked Loop
            1. 2.4.2.2.1.1 Mathematical Model and FOC Structure of an IPMSM
            2. 2.4.2.2.1.2 Design of ESMO for the IPMSM
            3. 2.4.2.2.1.3 Rotor Position and Speed Estimation With PLL
        3. 2.4.2.3 Field Weakening (FW) and Maximum Torque Per Ampere (MTPA) Control
        4. 2.4.2.4 Hardware Prerequisites for Motor Drive
          1. 2.4.2.4.1 Motor Current Feedback
            1. 2.4.2.4.1.1 Three-Shunt Current Sensing
            2. 2.4.2.4.1.2 Single-Shunt Current Sensing
          2. 2.4.2.4.2 Motor Voltage Feedback
  9. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Getting Started Hardware
      1. 3.1.1 Hardware Board Overview
      2. 3.1.2 Test Conditions
      3. 3.1.3 Test Equipment Required for Board Validation
    2. 3.2 Getting Started GUI
      1. 3.2.1 Test Setup
      2. 3.2.2 Overview of GUI Software
      3. 3.2.3 Setup Serial Port
      4. 3.2.4 Motor Identification
      5. 3.2.5 Spin Motor
      6. 3.2.6 Motor Fault Status
      7. 3.2.7 Tune Control Parameters
      8. 3.2.8 Virtual Oscilloscope
    3. 3.3 Getting Started C2000 Firmware
      1. 3.3.1 Download and Install Software Required for Board Test
      2. 3.3.2 Opening Project Inside CCS
      3. 3.3.3 Project Structure
      4. 3.3.4 Test Procedure
        1. 3.3.4.1 Build Level 1: CPU and Board Setup
          1. 3.3.4.1.1 Start CCS and Open Project
          2. 3.3.4.1.2 Build and Load Project
          3. 3.3.4.1.3 Setup Debug Environment Windows
          4. 3.3.4.1.4 Run the Code
        2. 3.3.4.2 Build Level 2: Open-Loop Check With ADC Feedback
          1. 3.3.4.2.1 Start CCS and Open Project
          2. 3.3.4.2.2 Build and Load Project
          3. 3.3.4.2.3 Setup Debug Environment Windows
          4. 3.3.4.2.4 Run the Code
        3. 3.3.4.3 Build Level 3: Closed Current Loop Check
          1. 3.3.4.3.1 Start CCS and Open Project
          2. 3.3.4.3.2 Build and Load Project
          3. 3.3.4.3.3 Setup Debug Environment Windows
          4. 3.3.4.3.4 Run the Code
        4. 3.3.4.4 Build Level 4: Full Motor Drive Control
          1. 3.3.4.4.1 Start CCS and Open Project
          2. 3.3.4.4.2 Build and Load Project
          3. 3.3.4.4.3 Setup Debug Environment Windows
          4. 3.3.4.4.4 Run the Code
          5. 3.3.4.4.5 Tuning Motor Drive FOC Parameters
          6. 3.3.4.4.6 Tuning Field Weakening and MTPA Control Parameters
          7. 3.3.4.4.7 Tuning Current Sensing Parameters
    4. 3.4 Test Results
      1. 3.4.1  Fast and clean Rising/Falling Edge
      2. 3.4.2  Inrush Current Protection
      3. 3.4.3  Thermal performance under 300VDC
      4. 3.4.4  Thermal performance under 220VAC
      5. 3.4.5  Overcurrent Protection by Internal CMPSS
      6. 3.4.6  IPM Efficiency with External Bias Supply under 300VDC
      7. 3.4.7  Board Efficiency with Onboard Bias Supply under 300VDC
      8. 3.4.8  Board Efficiency with External Bias Supply under 220VAC
      9. 3.4.9  Board Efficiency with Onboard Bias Supply under 220VAC
      10. 3.4.10 iTHD Test of Motor Phase Current
      11. 3.4.11 Standby Power Test
    5. 3.5 Migrate Firmware to a New Hardware Board
      1. 3.5.1 Configure the PWM, CMPSS, and ADC Modules
      2. 3.5.2 Setup Hardware Board Parameters
      3. 3.5.3 Configure Faults Protection Parameters
      4. 3.5.4 Setup Motor Electrical Parameters
    6. 3.6 Getting Started MSPM0 Firmware
  10. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 Bill of Materials
      3. 4.1.3 PCB Layout Recommendations
      4. 4.1.4 Altium Project
      5. 4.1.5 Gerber Files
    2. 4.2 Software Files
    3. 4.3 Documentation Support
    4. 4.4 Support Resources
    5. 4.5 Trademarks
  11. 5About the Author

Field Weakening (FW) and Maximum Torque Per Ampere (MTPA) Control

Permanent magnet synchronous motor (PMSM) is widely used in home appliance applications due to the high power density, high efficiency, and wide speed range. The PMSM includes two major types: the surface-mounted PMSM (SPM), and the interior PMSM (IPM). SPM motors are easier to control due to the linear relationship between the torque and q-axis current. However, the IPMSM has electromagnetic and reluctance torques due to a large saliency ratio. The total torque is non-linear with respect to the rotor angle. As a result, the MTPA technique can be used for IPM motors to optimize torque generation in the constant torque region. The aim of the field-weakening control is to optimize to reach the highest power and efficiency of a PMSM drive. Field-weakening control can enable a motor operation over the base speed, expanding the operating limits to reach speeds higher than rated speed and allow exceptional control across the entire speed and voltage range.

The voltage equations of the mathematical model of an IPMSM can be described in d-q coordinates as shown in Equation 29 and Equation 30.

Equation 29. vd=Lddiddt+Rsid-pωmLqiq 
Equation 30. vq=Lqdiqdt+Rsiq+pωmLdid+pωmψm

Figure 2-25 shows the dynamic equivalent circuit of an IPM synchronous motor.

TIDA-010273 Equivalent Circuit of an IPM
                    Synchronous MotorFigure 2-25 Equivalent Circuit of an IPM Synchronous Motor

The total electromagnetic torque generated by the IPMSM can be expressed as Equation 31 that the produced torque is composed of two distinct terms. The first term corresponds to the mutual reaction torque occurring between torque current iq and the permanent magnet ψm, while the second term corresponds to the reluctance torque due to the differences in d-axis and q-axis inductance.

Equation 31. Te=32p ψmiq+(Ld-Lq)idiq

In most applications, IPMSM drives have speed and torque constraints, mainly due to inverter or motor rating currents and available DC link voltage limitations respectively. These constraints can be expressed with the mathematical equations Equation 32 and Equation 33.

Equation 32. Ia=id2+iq2Imax
Equation 33. Va=vd2+vq2Vmax

where

  • Vmax and Imax are the maximum allowable voltage and current of the inverter or motor

In a two-level three-phase Voltage Source Inverter (VSI) fed machine, the maximum achievable phase voltage is limited by the DC link voltage and the PWM strategy. The maximum voltage is limited to the value as shown in Equation 34 if Space Vector Modulation (SVPWM) is adopted.

Equation 34. vd2+vq2vmax=vdc3

Usually the stator resistance Rs is negligible at high speed operation and the derivative of the currents is zero in steady state, thus Equation 35 is obtained as shown.

Equation 35. Ld2(id+ψpmLd)2+Lq2iq2 Vmaxωm

The current limitation of Equation 32 produces a circle of radius Imax in the d-q plane, and the voltage limitation of Equation 34 produces an ellipse whose radius Vmax decreases as speed increases. The resultant d-q plane current vector must be controlled to obey the current and voltage constraints simultaneously. According to these constraints, three operation regions for the IPMSM can be distinguished as shown in Figure 2-26.

TIDA-010273 IPMSM Control Operation
                    RegionsFigure 2-26 IPMSM Control Operation Regions
  1. Constant Torque Region: MTPA can be implemented in this operation region to provide maximum torque generation.
  2. Constant Power Region: Field-weakening control must be employed and the torque capacity is reduced as the current constraint is reached.
  3. Constant Voltage Region: In this operation region, deep field-weakening control keeps a constant stator voltage to maximize the torque generation.

In the constant torque region, according to Equation 31, the total torque of an IPMSM includes the electromagnetic torque from the magnet flux linkage and the reluctance torque from the saliency between Ld and Lq . The electromagnetic torque is proportional to the q-axis current iq, and the reluctance torque is proportional to the multiplication of the d-axis current id, the q-axis current iq, and the difference between Ld and Lq.

Conventional vector control systems of SPM motors only utilizes electromagnetic torque by setting the commanded id to zero for non-field-weakening modes. But while the IPMSM utilizes the reluctance torque of the motor, the designer must also control the d-axis current. The aim of the MTPA control is to calculate the reference currents id and iq to maximize the ratio between produced electromagnetic torque and reluctance torque. The relationship between id and iq, and the vectorial sum of the stator current Is is shown in the following equations.

Equation 36. Is=id2+iq2
Equation 37. Id=Iscosβ
Equation 38. Iq=Issinβ

where

  • β is the stator current angle in the synchronous (d-q) reference frame

Equation 31 can be expressed as Equation 39 where Is substituted for id and iq.

Equation 39 shows that motor torque depends on the angle of the stator current vector:

Equation 39. Te=32pIssinβ ψm+(Ld-Lq)Iscosβ

This equation shows the maximum efficiency point can be calculated when the motor torque differential is equal to zero. The MTPA point can be found when this differential, dTedβ is zero as given in Equation 40.

Equation 40. dTedβ=32p ψmIscosβ+(Ld-Lq)Is2cos2β=0 

Following this equation, the current angle of the MTPA control can be derived as in Equation 41.

Equation 41. βmtpa=cos-1-ψm+ψm2+8×Ld-Lq2×Is24×Ld-Lq×Is

Thus, the effective d-axis and q-axis reference currents can be expressed by Equation 42 and Equation 43 using the current angle of the MTPA control.

Equation 42. Id=Is×cosβmtpa
Equation 43. Iq=Is×sinβmtpa

However, as shown in Equation 41, the angle of the MTPA control, βmtpa is related to d-axis and q-axis inductance. This means that the variation of inductance impedes the ability to find the exceptional MTPA point. To improve the efficiency of a motor drive, estimate the d-axis and q-axis inductance online, but the parameters Ld and Lq are not easily measured online and are influenced by saturation effects. A robust Look-Up Table (LUT) method provides controllability under electrical parameter variations. Usually, to simplify the mathematical model, the coupling effect between d-axis and q-axis inductance can be neglected. Thus, assume that Ld changes with id only, and Lq changes with iq only. Consequently, d- and q-axis inductance can be modeled as a function of the d-q currents respectively, as shown in Equation 44 and Equation 45.

Equation 44. Ld=f1id, iq=f1id
Equation 45. Lq=f2iq, id=f2iq

Reduce the ISR calculation burden by simplifying Equation 41. The motor-parameter-based constant, Kmtpa is expressed instead as Equation 47, where Kmtpa is computed in the background loop using the updated Ld and Lq.

Equation 46. Kmtpa=ψm4×Lq-Ld=0.25×ψmLq-Ld
Equation 47. βmtpa=cos-1Kmtpa/Is-Kmtpa/Is2+0.5

A second intermediate variable, Gmtpa described in Equation 48, is defined to further simplify the calculation. Using Gmtpa, the angle of the MTPA control, βmtpa can be calculated as Equation 49. These two calculations are performed in the ISR to achieve a real current angle βmtpa.

Equation 48. Gmtpa=Kmtpa/Is
Equation 49. βmtpa=cos-1Gmtpa-Gmtpa2+0.5

In all cases, the magnetic flux can be weakened to extend the achievable speed range by acting on the direct axis current id. As a consequence of entering this constant power operating region, field-weakening control is chosen instead of the MTPA control used in constant power and voltage regions. Since the maximum inverter voltage is limited, PMSM motors cannot operate in such speed regions where the back-electromotive force, almost proportional to the permanent magnet field and motor speed, is higher than the maximum output voltage of the inverter. The direct control of magnet flux is not an option in PM motors. However, the air gap flux can be weakened by the demagnetizing effect due to the d-axis armature reaction by adding a negative id. Considering the voltage and current constraints, the armature current and the terminal voltage are limited as Equation 32 and Equation 33. The inverter input voltage (DC-Link voltage) variation limits the maximum output of the motor. Furthermore, the maximum fundamental motor voltage also depends on the PWM method used. In Equation 35, the IPMSM has two factors: one is a permanent magnet value and the other is made by inductance and current of flux.

Figure 2-27 shows the typical control structure is used to implement field weakening. βfw is the output of the field-weakening (FW) PI controller and generates the reference id and iq. Before the voltage magnitude reaches the limit, the input of the PI controller of FW is always positive and therefore the output is always saturated at 0.

TIDA-010273 Block Diagram of
                    Field-Weakening and Maximum Torque per Ampere ControlFigure 2-27 Block Diagram of Field-Weakening and Maximum Torque per Ampere Control

Figure 2-16 and Figure 2-18 show the implementation of FAST or eSMO based FOC block diagram. The block diagrams provide an overview of the functions and variables of the FOC system. There are two control modules in the motor drive FOC system: one is MTPA control and the other one is field-weakening control. These two modules generate current angle βmtpa and βfw, respectively, based on input parameters as shown in Figure 2-28.

TIDA-010273 Current Phasor Diagram of an
                    IPMSM During FW and MTPAFigure 2-28 Current Phasor Diagram of an IPMSM During FW and MTPA

The switching control module is used to determine angle of application, and then calculate the reference id and iq as shown in Equation 37 and Equation 38. The current angle is chosen as in the following: Equation 50 and Equation 51.

Equation 50. β=βfw if βfw>βmtpa
Equation 51. β=βmpta if βfw<βmtpa

The flow chart in Figure 2-29 shows the steps required to run InstaSPIN™-FOC with FW and MPTA in the main loop and interrupt.

TIDA-010273 Flow Chart for an
                    InstaSPIN-FOC Project With FW and MTPAFigure 2-29 Flow Chart for an InstaSPIN-FOC Project With FW and MTPA