cancel
Showing results for 
Search instead for 
Did you mean: 

A single timer simultaneously using input capture and encoder mode.

smile
Associate

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 1
KnarfB
Principal III

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