This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: Controller Resonance Issue - TIDM_02008

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE, TIDM-1007

Tool/software:

We are working in the implementation of the digital control for a 'bidirectional  split-phase inverter.' So far we have have some success with VSI mode (inverter), but tunning the controllers in PFC mode is proving to be difficult.

So far we have base our control design following the TI 'TIDM_02008' design guide, but once we set heavier load at the Vbus

Topology: Bidirectional  split-phase inverter (2-phase 3-leg).

System Description

We are working on the implementation of digital control for a bidirectional split-phase inverter. Our system is a 2-phase 3-leg topology (split-phase) that can operate in both Voltage Source Inverter (VSI) mode and Power Factor Correction (PFC) mode. So far, we have achieved reasonable success with VSI mode, but tuning the controllers in PFC mode is proving to be challenging.

Our control design is based on the TI TIDM_02008 design guide. While the system operates stably at low load levels, we encounter significant issues when attempting to increase the load current.

Issue Description

When the system is running in PFC mode with 220 Vac input and rectifying to 400 Vdc, the controller response exhibits unwanted oscillations that increase with load current. Specifically:

  1. The current waveform shows oscillation behavior rather than a clean sine wave
  2. The resonance frequency appears to be between 1 kHz and 1.3 kHz
  3. The oscillations become progressively worse as load current increases
  4. The system becomes unstable at approximately 2A, which is well below our target nominal current

We've observed that our PI controller settings (GI_PI_KP = 0.8000, GI_PI_KI = 0.0400) appear adequate for light loads but potentially too aggressive under higher current conditions.

The following are TI's original settings:

#define TTPLPFC_GI_PI_KP (float) 0.3496503407
#define TTPLPFC_GI_PI_KI (float) 0.0020000510

#define TTPLPFC_GV_PI_KP (float) 0.6004499882
#define TTPLPFC_GV_PI_KI (float) 0.0001000236

#define TTPLPFC_GI_PI_MAX   ((float32_t)1.0)
#define TTPLPFC_GI_PI_MIN   ((float32_t)-1.0)

#define TTPLPFC_GV_PI_MAX   ((float32_t) 0.7)
#define TTPLPFC_GV_PI_MIN   ((float32_t)-0.02)

Attempted Solutions

We've experimented with:

  • Various PI controller gain combinations

However, these adjustments have not resolved the core resonance issue.

Technical Implementation Details

  • Implemented a two-phase PFC rectifier with a voltage-mode outer loop and current-mode inner loop
  • SPLL parameters currently set to (222.2862, -222.034)
  • Current controller operates at PWM switching frequency (50 kHz)
  • Current processing in the PWM ISR.
  • Voltage loop in a slower control ISR (10 kHz)

The following are TI's original settings:

SPLL_1PH_SOGI_config(&TTPLPFC_spll1,
                         TTPLPFC_AC_FREQ,
                         TTPLPFC_CONTROL_ISR_FREQUENCY,
                         (float32_t)(222.2862),
                         (float32_t)(-222.034));

We suspect the issue may involve:

  1. Possible coupling between voltage and current control loops
  2. SPLL sensitivity affecting stability under load conditions

Also, I'm not an expert in digital control implementation so I would like to know if you can help me to understand how TI came out with the following values for the PI controllers and the PLL, and why PI controllers instead of PR controller or something else:

.
.
.
#define TTPLPFC_GI_PI_KP (float) 0.3496503407
#define TTPLPFC_GI_PI_KI (float) 0.0020000510
#define TTPLPFC_GV_PI_KP (float) 0.6004499882
#define TTPLPFC_GV_PI_KI (float) 0.0001000236
.
.
.
SPLL_1PH_SOGI_reset(&TTPLPFC_spll1);
SPLL_1PH_SOGI_config(&TTPLPFC_spll1,
                         TTPLPFC_AC_FREQ,
                         TTPLPFC_CONTROL_ISR_FREQUENCY,
                         (float32_t)(222.2862),
                         (float32_t)(-222.034));
.
.
.

Any insights on addressing resonance issues in grid-connected power converters, especially regarding controller tuning methods, or SPLL parameter optimization would be greatly appreciated.

I would appreciate any feedback and if you know of any useful literature and/or workshops in the US to learn about digital control implementation.

Best,

Wilson

  • Hello Wilson

    Usually, if PLL and controller works at lower current, it should not shows issue at a higher current. I feel it may be because of hardware limitations. You can still give a try to further tune the controller parameters. You can refer the documents in C2000ware on controllers and how to tune them

    C:\ti\c2000\C2000Ware_5_04_00_00\libraries\control\DCL\c28\docs

    I am also attaching the guide for SPLL.

    SPLL_3pahse.pdfSPLL_single pahse.pdf

    Thank you

    Amir Hussain

  • Amir,

    Thanks for your reply. It was very informative about the PLLs.

    On the other hand It seem like every TI project is full of 'magic numbers' with no explanation whatsoever of how they get those values. I still don't understand why the following gains have such specific values:

    #define TTPLPFC_GI_PI_KP (float) 0.3496503407
    #define TTPLPFC_GI_PI_KI (float) 0.0020000510
    #define TTPLPFC_GV_PI_KP (float) 0.6004499882
    #define TTPLPFC_GV_PI_KI (float) 0.0001000236


    Do you have any feedback on how to get those values from the design guide, schematic and/or firmware?

    I would appreciate your help with this.

    Design guide: TIDM-2008/TIDM-1007 - Bidirectional Interleaved CCM Totem Pole Bridgeless PFC Reference Design Using C2000 MCU
    CCS project: ttplpfc_F28004x

    Best,

    Wilson

  • Hello Wilson

    The owner of this design does not work with TI anymore. I also do not know how these parameters were calculated. I found one excel sheet here.

    C:\ti\c2000\C2000Ware_DigitalPower_SDK_4_01_00_00\solutions\tidm_02008\hardware . I has some calculation related to SPLL and hardware. 

    For PI controller parameters, you also refer 

    https://www.ti.com/tool/SFRA

    Thank you

    Amir Hussain