2025-02-09 8:47 AM
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?
2025-02-09 9:56 AM
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