How to count PWM pulse with timer on the STM32F407VG?
Hi, I'm trying to drive five stepper motors with PWM. But I need to count the pulses from the PWM to command the positions of each stepper motor and control the speed with a trapezoid form. So i was wondering, how to count PWM pulse with timer?
I'm working in a STM32F4 discovery board with a STM32F407VG and i use CubeMx and Keil.
another question : Can I have only one timer that count steps for all motors and turn off the ones that reached their position ?