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.

Changing Action Qualifier synchronously at TBCTR = Zero

Hello,

I have a question about action qualifiers in ePWM module. In my code I have to change the action qualifier within an interrupt. I want this change of action qualifier to take effect from the next PWM cycle.

From what I understand, if I change the value in AQCTLA register from AQ_SET to AQ_CLEAR, the change takes effect immediately. Is there a way to synchronize this change with TBCTR= Zero (i.e. the beginning of next ePWM cycle).

Can AQCSFRC register help me? If yes, could you please tell me about the way I should configure it?

Best regards,

Pawan