Skip to main content
EPala.2
Associate III
August 10, 2023
Solved

Can Encoder Mode Be Used on Timer Channels Other than 1 and 2

  • August 10, 2023
  • 1 reply
  • 1379 views

Hi, I am working on a project with STM32H730. Due to layout limitations, we'd like to use TIM2 channels 3 and 4 rather than 1 and 2 for encoder mode if possible. Is this possible?

This topic has been closed for replies.
Best answer by Peter BENSCH

 

The encoder interface is only connected to the internal signals TI1FP1 and TI2FP2, which in turn are only routed to CH1 and CH2 (see RM0468, e.g. fig. 373).

Regards
/Peter

1 reply

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
August 10, 2023

 

The encoder interface is only connected to the internal signals TI1FP1 and TI2FP2, which in turn are only routed to CH1 and CH2 (see RM0468, e.g. fig. 373).

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
EPala.2
EPala.2Author
Associate III
August 10, 2023

So to be clear, the answer is no, channels 3 and 4 cannot be used for an encoder.

Tesla DeLorean
Guru
August 10, 2023

Correct, NOT SUPPORTED

You can check the AF Mux fabrics to see if anything else routes.

You'd typically want to use the 32-bit TIM (TIM2/TIM5) on most platforms for encoders.

You can also create encoder inputs via EXTI, ie interrupt on the A-Channel, check direction via B-Channel in IRQ Handler. How we did mice and track-balls in the 80's

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..