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.

TMS320F28069: How to stop generating PWM waveform immediately?

Genius 3095 points
Part Number: TMS320F28069


Dear team:

I want the chip to turn off the PWM1 & PWM2 output as soon as it emits 100 cycles of PWM. I have used the TZ module to force PWM to turn off after outputting 100 pulses. But doing so will still result in the last waveform being incomplete.(As shown in the figure)

Is there any other way to turn off the PWM output immediately after the chip sends out a waveform of 100 cycles?

Best regards

  • Do an interrupt every Y periods. Have a variable to count how many interrupts occurred. On the  YxCount=100-1 cycle, assuming you are using shadow mode, set all the action qualifiers to "FORCE Output LOW" on all events.

    That's one way.

    Nima