How to Generate a New Pulse When Frequency Changes

Thanks for the update Mark. It’s hard to envision exactly what you’re looking for without further details such as a drawing of exactly you envision the synchronization between the PWM for various channels.

I can make a few genera recommendations:

  • You can peruse the forum for other posts about variable frequency ramp generation, such that you can directly control your carrier. Some examples include post1 and post2.
  • You can also use the TI C2000 block which has some more advanced features for offline simulation. See this post,