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