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_sensedbefore it is used in the duty calculation? - Is there an indirect path through the ADC processing or sensing library that links
VAC_MAX_SENSEto the PWM duty? - Why does reducing
VAC_MAX_SENSEfrom 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



