Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

C2000WARE-DIGITALPOWER-SDK: TIDA 01604 Firmware Understanding

Part Number: C2000WARE-DIGITALPOWER-SDK
Other Parts Discussed in Thread: TIDA-01604, PMP23338, TMS320F280049C, TMS320F280039C, PMP23069

Hello TI Community,
I'm currently reviewing the TIDA-01604 firmware and analyzing the PWM waveforms while running the Open Loop AC build. During my testing, I observed something that I don't fully understand regarding the PWM duty cycle. In the code, the following macro is defined:
#define VAC_MAX_SENSE 676.1f
With VAC_MAX_SENSE set to 676.1f, the high-frequency leg reaches nearly 99% duty at the peak of the AC waveform.
However, when I changed only:
#define VAC_MAX_SENSE 300.0f
the peak duty of the high-frequency leg dropped to approximately 50%.
I'm trying to understand why changing VAC_MAX_SENSE has such a significant effect on the PWM duty.
From my understanding, in Open Loop AC mode the duty is mainly determined by:
dutyPU = dutyPU_DC * ac_vol_sensed;
Originally, the code used:
dutyPU = dutyPU_DC * acsine;
which I modified to:
dutyPU = dutyPU_DC * ac_vol_sensed;
I have not changed dutyPU_DC or ac_vol_sensed. The only parameter I changed was VAC_MAX_SENSE.
When I searched through the code, I could not find any direct place where VAC_MAX_SENSE is used to calculate the duty cycle. Therefore, I'm confused about how modifying this macro changes the PWM duty from nearly 99% to about 50%.
Please explain:

  • Does VAC_MAX_SENSE affect the scaling or normalization of ac_vol_sensed before it is used in the duty calculation?
  • Is there an indirect path through the ADC processing or sensing library that links VAC_MAX_SENSE to the PWM duty?
  • Why does reducing VAC_MAX_SENSE from 676.1f to 300.0f reduce the peak duty from nearly 99% to around 50%?

Additionally, I observed the same behavior in the PMP23338 firmware as well.  It would greatly help my understanding.
Thank you

  • Hi Vijay,

    Can you confirm the Digital power SDK version that you are testing out. Also the lab number which is tried out.

    Reagrds,
    Harisyam

  • Hi Harisyam,

    Please find the requested version details for the reference designs below:

    • TIDA-01604: Version 3.02.00.00(BUILD 1- OPEN lOOP AC)

    • PMP23338: Version 5.06.00.00(LAB 6 -  INV OPEN LOOP AC)


    Regards,
    Vijay 
  • Hi Vijay,

    TIDA01604 is an older design and we recommend to follow the pmp23338 design for development.

    From the firmware of pmp2338 if you use the following code:

    codedutyPU = dutyPU_DC * acsine;

    this will not change the duty based on VAC_MAX_SENSE definition.

    But if you are using the following code:

    dutyPU = dutyPU_DC * TTPLPFC_ac_vol_sensed_Volts;

    the duty will depend on the VAC_MAX_SENSE. This is because TTPLPFC_ac_vol_sensed_Volts is calculated by multiplying VAC_MAX_SENSE with the per unit value sensed.

    You mentioned the varible ac_vol_sensed in your question. This is absent in pmp23338 firmware, can you point to the right variable in pmp23338.

    Regards,
    Harisyam

  • Hi Harisyam,
    Thank you for your support. As you recommended, we will proceed with the PMP23338 reference design.
    However, I would like to understand where VAC_MAX_SENSE is actually used in the firmware. When we change the value of VAC_MAX_SENSE, we observe a significant change in the PWM duty, but we are unable to identify where this parameter influences the duty calculation.
    We observed the behavior in TIDA-01604.
    As shown in the images below, when VAC_MAX_SENSE is set to 676.1, we observe one duty pattern.The image attached is the duty changes when the VAC_MAX_SENSE is set to 676.1. However, when VAC_MAX_SENSE is changed to 358.55, when the duty is 100% at the AC peak, where the low-side switch remains completely OFF and the high-side switch remains completely ON.
    Could you please explain where VAC_MAX_SENSE is referenced in the firmware and how changing its value affects the PWM duty? We could not find a direct link in the code, so we would appreciate your guidance in understanding the signal flow for TIDA-01604.
    Regards,

    Vijay

  • Hi Harisyam,
    Thank you for your support. As you recommended, we will proceed with the PMP23338 reference design.
    However, I would like to understand where VAC_MAX_SENSE is actually used in the firmware. When we change the value of VAC_MAX_SENSE, we observe a significant change in the PWM duty, but we are unable to identify where this parameter influences the duty calculation.
    We observed the behavior in TIDA-01604.
    As shown in the images below, when VAC_MAX_SENSE is set to 676.1, we observe one duty pattern.The image attached is the duty changes when the VAC_MAX_SENSE is set to 676.1. However, when VAC_MAX_SENSE is changed to 358.55, when the duty is 100% at the AC peak, where the low-side switch remains completely OFF and the high-side switch remains completely ON.
    Could you please explain where VAC_MAX_SENSE is referenced in the firmware and how changing its value affects the PWM duty? We could not find a direct link in the code, so we would appreciate your guidance in understanding the signal flow for TIDA-01604.
    Regards,

    Vijay

  • Hi Vijay,

    Did you try the pmp23338 firmware in digital power SDK? Do you have the similar observation there as well?

    Regards,
    Harisyam

  • Hi Harisyam,

    Not yet ,we are going to try
    can you explain the behaviour of TIDA01604 like How the VAC_MAX SENSE IS showing impact on the DutyCycle.

    Regards,
    Vijay

  • Hi Vijay,

    TIDA1604 is an older design and the latest recommended reference design for totem pole PFC is pmp23338. Give me some time to check TIDA01604 and get back on this issue.

    Regards,
    Harisyam

  • Hi Vijay,

    The variable is dutyPU is not expected to depend on VAC_MAX_SENSE in build1 (Open Loop Check).


    Do you see the variation when you have the original code?
    dutyPU = dutyPU_DC * acsine;


    or does it only happen when you modify the code to 
    dutyPU = dutyPU_DC * ac_vol_sensed;

    Regards,
    Harisyam

  • Hello,
    Thank you for the clarification.
    It happened when i modifiedthe code to 
    dutyPU = dutyPU_DC * ac_vol_sensed;
    I checked PMP23338 Build 6 (open-loop AC), In my test, since I am applying an external AC input, I am not using the internally generated acSine for duty calculation. Instead, I am using:
    dutyPU = dutyPU_DC * TTPLPFC_ac_vol_sensed_pu;
    So the variable I was referring to earlier as ac_vol_sensed is actually:
    TTPLPFC_ac_vol_sensed_pu
    What I am observing is that when I change the definition of VAC_MAX_SENSE, the resulting PWM duty also changes, even though the duty calculation above uses only TTPLPFC_ac_vol_sensed_pu and does not directly use TTPLPFC_ac_vol_sensed_Volts.
    I am unable to find a direct link in the firmware showing how changing VAC_MAX_SENSE affects TTPLPFC_ac_vol_sensed_pu or the resulting dutyPU.
    Could you please help me identify where VAC_MAX_SENSE is influencing TTPLPFC_ac_vol_sensed_pu ?
    Thanl You

  • Hi,
    I am currently working with the PMP23338 reference design firmware. As discussed, PMP23338 is developed for the TMS320F280039C, whereas our hardware uses the TMS320F280049C.
    I have now also obtained the PMP23069 reference design/project.
    Could you please confirm whether I can use the PMP23069 firmware as the base/reference for the F280049C, instead of directly porting all the F280039C device-specific portions of PMP23338?
    If PMP23069 already provides firmware suitable for the F280049C, would it be better to start directly from the PMP23069 firmware rather than porting PMP23338 from F280039C to F280049C?
    Please let me know which approach you would recommend


    Regards,

    vijay

  • Hi Vijay,

    PMP23338 is the most updated reference design. We will recommend you refer this over pmp23069.

    I could not track the reason for change in duty ratio.

    Are you sure you are running LAB6, because if you run the current loop there is a grid voltage feed foreword term which is depended on VAC_MAX_SENSE  as given below

    Can you verify if the variable TTPLPFC_closeGiLoop is 0 in your code

    Regards,
    Harisyam

  • Hi Harisyam

    Thank you for your suggestion to use PMP23338
    I had one doubt regarding the PMP23338 as this was compatible to run onF280039C board but on the F280049C board
    can you help us how to port this project from the F280039C to F280049C board
    And also as PMP23338 and PMP23069 belongs to the same version and also PMP23069 compatible with the F280049C can we go with the PMP23069?

    Please let us know the  reason for change in duty ratio ASAP

  • Hi Vijay,

    If you are developing with plans for production, latest device F28P55x is preferred over F280049 or F280039. If it is one time validation, it may be easier for you to use a project that already supports your preferred device.

    In order to migrate project between these devices please follow the migration guide document: https://www.ti.com/lit/ug/spruiw3/spruiw3.pdf?ts=1786604164871&ref_url=https%253A%252F%252Fwww.google.com%252F 

    Let me try to replicate the duty change at my side and get back on it.

    Regards,
    Harisyam