Variable Phase PWM Signal, where phase updates twice (or an arbitrary amount) a period?

Hello all,

How would I implement such a thing? I have tried modifying the code for the Variable Phase PWM without success. I need the phase to update independently of when the carrier signal reaches its minimum and maximum values, and I require it to update several times per period. Thanks.

Thank you!

You can always generate the carrier waveforms directly and use an “Naturally” sampled approach, where the compare value with instantaneously update.

Some relevant posts: