use timer to decode pulse/step + direction signal?
STM32 timers can decode quadrature signals.
STM32 timers can count external pulses.
can STM32 timers do pulse counting AND take counting direction from a second external input?
my current solution (on an STM32F303CB/CC, but also F103) is to let the timer count rising edges of the step signal and set the timer's counting direction in the handler function to an external interrupt on the direction signal.
to illustrate what a stepdir signal looks like and what it represents, I've taken attached a picture from http://support.motioneng.com/Technology/SynqNet/pulse_logic.htm and put a red rectangle around the step and dir signals (ignore cw/ccw graphs).

