cancel
Showing results for 
Search instead for 
Did you mean: 

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

EPala.2
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

 

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.

View solution in original post

3 REPLIES 3
Peter BENSCH
ST Employee

 

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.

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..