Skip to main content
Associate II
February 9, 2025
Question

A single timer simultaneously using input capture and encoder mode.

  • February 9, 2025
  • 1 reply
  • 378 views

I want to use STM32CubeMX to configure the relevant peripherals and use a single timer, such as TIM3, to simultaneously implement an orthogonal encoder and input capture for frequency measurement. Can this be achieved?

1 reply

KnarfB
Super User
February 9, 2025

No. A timer has only one counter register. In encoder mode, encoder pulses will increment/decrement that counter with variable frequency depending on the encoder. For frequency measurement, you need some fixed frequency to compare with.

hth

KnarfB