SPRACT7 August   2020 TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
  4. 2Fundamental Theories of FOC and Current Measurement
    1. 2.1 Basic Theory of FOC
    2. 2.2 Current Sensing Technique
      1. 2.2.1 Low-Side Current Measurement
        1. 2.2.1.1 Three-Shunt Current Sensing
        2. 2.2.1.2 Dual-Shunt Current Sensing
        3. 2.2.1.3 Single-Shunt Current Sensing
  5. 3Implementation of Single-Shunt Phase Current Reconstruction
    1. 3.1 Duty Cycle Compensation
    2. 3.2 PWM Phase Shift Compensation
    3. 3.3 Current Reconstruction
  6. 4Sensorless FOC With Single-Shunt Measurement
  7. 5Hardware Consideration for Single-Shunt Current Sensing
    1. 5.1 Slew Rate
    2. 5.2 Current Sensing Circuit
  8. 6Test Results
  9. 7Summary
  10. 8References

PWM Phase Shift Compensation

This method is more complex than the duty cycle compensation because it is implemented with asymmetric PWM. It means that both CMPA and CMPB values in ePWM module should be updated with different value depending on the value to be shifted. This method has some advantage such as same output voltage with original output voltage command. Also, it can be widely used in many applications because it doesn’t rely on any motor and system parameters, even though it has some disadvantage such as high THD and acoustic noise than the two- or three-shunt solution.

If dc link currents are sampled at PWM down count such as Figure 2-12, V1 and V2 vector duration on right side of SVPWM should have enough large than minimum active duration. To do this, first, find maximum and minimum duty cycle. The maximum duty cycle is shifted to the right direction to get a minimum active duration if the V1 vector between maximum and middle duty cycle is less than the minimum active duration get in Equation 2. Also, the minimum duty cycle is shifted to the left direction to get a minimum active duration if the V2 vector between middle and minimum duty cycle is less than the minimum active duration. The PWM channel with midrange duty cycle remains unchanged. Figure 3-3 shows the PWM phase shift compensation method explained above.

GUID-20200819-CA0I-VCFL-PLDQ-VQ7PM18MPT27-low.png Figure 3-3 PWM Phase Shift Compensation

Figure 3-4 shows the software flowchart of this method including ADC sampling point calculation. The CMPA and CMPB in EPWMx are newly calculated to have minimum active duration. It is necessary to know which sector the voltage reference output is in to determine which PWM channel have to be updated. Equation 4 shows the equation that was introduced in Space-Vector PWM with TMS320C24x/F24x Using Hardware and Software Determined Switching Patterns to determine the sector.

Equation 4. GUID-20200820-CA0I-0BJH-NXQM-ZQJQQDBLC3Q4-low.gif
N 1 2 3 4 5 6
Sector 2 6 1 4 3 5
GUID-20200819-CA0I-52GH-0XQ2-MC5N759N0HFG-low.png Figure 3-4 Flowchart of PWM Phase Shift Compensation