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.

TMS320F28379S: Relationship between PWM syncing with no phase and interrupt triggering

Part Number: TMS320F28379S

Hi there,

I got a question regarding the PWM syncing and interrupt.

We are syncing PWM with an external signal with no phase (TBPHS = 0). We also set PWM interrupt will be triggered when counter = 0 or TBPRD (ETSEL[INTSEL] = ET_CTR_PRDZERO). The program seems to work fine, the motor did run.

But thinking a bit further we come up with a scenario that should have caused problem: Let say TBCTR just reach 0 and a PWM ISR is triggered. But shortly after, when TBCTR is at let say 4, external signal comes in, with the syncing mechanism TBCTR will be reset to 0. In this case will this cause interrupt signal to be fired again? If so is that mean an extra ISR will be running right after current ISR?

I tried to illustrate the scenario in the following figure:

Thanks for reading, any reply is appreciated