Hi jx1207@126.com,
Because the OC match does not reset the counter.
Your solution is correct, you need to update the TIM0TC2 register with the counter value of the next OC match.
Example S12ZVL ADC0 triggered by TIM0 OC updates PWM duty cycle
BR, Daniel