cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement ENCODER MoDE using GPIO ?

JohnGe
Associate

In my design , MCU controll 8 sets of  STEP MOTOR  .    Every MOTOR  has  A / B Encode pulse outputs
IN CubeMx  Six timers (TIM1-TIM5  & TIM8  )can be configured to ENCODER MODE 。  But  How to implement the other 2 Motors decoder ?   Can we use gpios ? 

1 REPLY 1
MM..1
Chief II

Based on max pulse speed. You can manage it in other timer IRQ. But here you dont have analog and digital filtering then need handle by sw.