I am trying to change the order of which the PWM outputs are triggered for a C2000 series target. Currently the negative output of the PWM complimentary pair rises first, then fall, then deadtime and then the positive output rises, etc. I would like the positive output to rise first. I have tried changing the ‘Sequence’ parameter on the TI PWM block, with no luck.
I have attached the simple PLECS file which I am trying to get this to work on.
I set the duty cycle to 25%. Once the enable port is activated, PWM1A transitions to its active state first, followed by PWM1B after the configured dead time.
I am not seeing this behaviour on my LAUNCHXL-F28379D. I am seeing PWM3B transition first then PWM3A (after deadtime of course). I have attached a photo, it is also odd that the first pulse is shorter than the subsequent. I have also attached the exact script that I’ve used to run this.
Ideally I am able to control which complimentary output goes high first. I thought that the ‘Sequence’ parameter will do this, but unfortunately not.
Thanks for sharing the scope capture and the script. What you’re seeing is the expected behavior when using a symmetrical (triangle) carrier. My earlier example used a different carrier configuration, which explains why your results looked different from mine.
Why does the Sequence parameter make no visible difference?
While the PWM outputs are disabled, both PWMxA and PWMxB are held low. When the outputs are enabled, this hold is not released immediately. Instead, it is released at a carrier event selected so that the transition occurs in the middle of PWMxB’s on-time:
Positive sequence: PWMxA is high around counter = 0, so PWMxB is high around counter = period. The outputs are released at period.
Negative sequence: PWMxA is high around counter = period, so PWMxB is high around counter = 0. The outputs are released at zero.
The Sequence setting shifts the PWMxA pulse relative to the carrier, but the release point shifts accordingly. As a result, the startup behavior looks the same in both cases:
PWMxB turns on first. Its initial pulse is half its normal width because the outputs are enabled in the middle of its on-time. At 50% duty cycle, this corresponds to 25% of the switching period, which explains the shorter first pulse in your capture.
PWMxA then produces a full-width pulse after the configured dead time.
Normal PWM switching follows.
This behavior is intentional for a few reasons:
PWMxA never produces a truncated first pulse.
No switching edge occurs at the instant the outputs are released, ensuring that dead time is respected.
The low-side switch turns on first, allowing the bootstrap gate-driver supply to charge before the high-side switch is enabled.
If you specifically need PWMxA to turn on first, use a sawtooth carrier with Polarity: Active State = 1 and Sequence: Positive. With this configuration, PWMxA turns on first when the enable signal goes high.
Here is the waveform when I simply changed your carrier to sawtooth and kept everything else the same: