2023-08-10 08:34 AM
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?
Solved! Go to Solution.
2023-08-10 10:22 AM
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
2023-08-10 10:22 AM
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
2023-08-10 01:00 PM
So to be clear, the answer is no, channels 3 and 4 cannot be used for an encoder.
2023-08-10 01:17 PM
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