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.

Synchronous update of compare-registers of independed PWM-channels

Hi,

- I want to use ePWM1 and ePWM3 (RM46)
- I have initialized these PWMs to run snchronously (same period)
- I want to update the duty cycle (compare registers of PWM1 and PWM3) at the SAME time
- I'm using shadowing for these compare registers

But if the shadow transfer happens right after updating the PWM1 compare [shadow] register
(and before updating the PWM3 compare [shadow] register), the next period will be executed
with an 'old' (and thus wrong) value of PWM3 compare register.

Is there a way to avoid this 'glitch'?

Maybe a way to 'enable' or 'disable' the shadow transfer?

Or any other workaround?

Markus