Skip to main content
Visitor II
August 24, 2024
Question

how to implement ENCODER MoDE using GPIO ?

  • August 24, 2024
  • 1 reply
  • 602 views

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

    MM..1
    Chief III
    August 24, 2024

    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.