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.

TMS320F280039C: Use ECAP to generate PWM with some PWM cycles switched to low

Part Number: TMS320F280039C

Dear Champs,

I am asking this for our customer.

If the user wants to generate a simple PWM (no deadtime) like PWM1A below, and wants to switch it to low for one or some PWM cycles and then restore it later.

Questions:

In APWM mode, because CAP4 shows CAP2, the user can just use CAP4 to 0 to switch it to low and then restore CAP4 to the duty when needed.

Is our understanding correct?

  • In APWM mode, 

    CAP1 is Period register, CAP3 is shadow period register

    CAP2 is Compare register, CAP4 is shadow compare register

    Yes, iF the user is write to CAP4, this will load from shadow to active compare register (CAP2)  on the next TSCTR == Period (CAP1) and if you write 0 this should set the duty = 0%.

    Best,

    Ryan Ma