Skip to main content
HMüll.4
Senior
May 2, 2025
Question

Quadrature encoder on STM32MP257 / M33 core?

  • May 2, 2025
  • 0 replies
  • 303 views

Hi,

I want to implement a quadrature encoder input with the 400 MHz M33 core of the STM32MP257 MCU:

  • two inputs which use 90 degree phase shifted pulses to increment or decrement a counter
  • no bitbanging, means it is natively running on the hardware
  • fully running on bare metel/HAL code on the M33 core
  • configured with CubeMX

My question: how can this be done exactly? Means what do I have to configure within CubeMX to have two (or four) inputs working as one (or two) quadrature encoder inputs with related counter(s)?

Thanks!