[STM32H7] Counting Pulses to Stepper Motor
I've configured a timer for Output-Compare on a pin that goes to a stepper motor. However is there a way to configure the timer such that it outputs a certain number of reload events / pulses and then stops completely.
In software, I understand I can accumulate the count in the TImer ISR and then stop the timer once the desired count has been reached, but would prefer to have the timer stop automatically.
Also is it recommended to route the output to a timer input to verify the number of pulses generated? Not sure how others implement driving a stepper motor, but I need a highly precise position!
