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.

how to use 28335 to configure ePWM module and program selective harmonic elimination code

Greetings

Recently I'm working on some coding work related to selective harmonic elimination for single phase inverter.

Comparing with traditional constant frequency PWM, SHE is different.

In constant frequency PWM, the period is constant but only duty cycle changes so that it is easy to configure the ePWM module.

In SHE, the duty cycle and period both changes so that it is kind of tricky to program things like this. I wonder whether it is feasible to use interrupt and configure the duty cycle and period at the same time?

One direct way for doing this is to use timer and toggle GPIO output. However, I'm worring about the deadband settings in this way.

If you have any suggestions, please share me your ideas!

Thanks !!