I am trying to interface a Teknic Clearpath SDSK motor to STM32F7 Nucleo Dev Board. It is a Brushless DC motor with a stepper like interface. The motor moves a set distance based on the number of pulses it receives. The speed is determined by the frequency of the pulses, like a stepper motor. What is the best way to generate a fixed number of pulses reliably from STM32 F7?
One of the solutions that I came across is to feed a PWM out back in to a timer in counter mode, and stop the PWM out when the required number of pulses have been generated. Is there a novel way of doing this without the need of feedback and ISRs?