Generating PWM interrupts every specified number of pulses (using Repetition Counter)
Hello everyone,
I would like to know how to configure Timer1 to run at a certain frequency, but the interrupt will only generate a certain number of pulses (determined by the repetition counter).
I am using STM32CubeIDE and nucleo-l476rg. I tried to do this, but the HAL_TIM_PWM_PulseFinishedCallback interrupt is still generated every pulse.
I will be grateful if someone tells me how to configure it in CubeMX and which interrupts to use in my code.
Best regards,
Grzegorz