Why the number of pulses is less than expected when I am using One Pulse Mode and Repetition Counter (RCR) to generate adjustable PWM pulses with number and frequency?
I need to generate PWM signals with adjustable number and frequency to drive a step motor. I expect the frequency ranges from 50Hz to 200KHz and the pulses count ranges from 1 to 2k. I have tried 3 different ways including: using timer interrupt to c...