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.

Way to set all ePWM registers TBCTR to zero

Hello,

I'm using C28X part of Concerto,

I have the need to change "run time" the period of more ePWM registers and restart sincronously.

I read on datasheet that TBCLKSYNC can stop/start all ePWM in a singol instruction

SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 1 or 0;

but I have to write 0 to all EPwmXRegs.TBCTR registers ...

is there a way to set all in a singol instruction or special syncronizing register ??

  • is there a way to set all in a singol instruction or special syncronizing register ??

    Sorry Mauro, that won't be possible with a single instruction. You'll have to configure each and every ePWM peripheral individually.

    Regards,

    Gautam