2025-07-01 6:31 AM - last edited on 2025-07-01 6:45 AM by Andrew Neil
I want to route the internal comparators on the STM32G0B1 to the inputs of the encoder module. I can't find a way to do this in CubeMX. When I select "Encoder Mode" in the timer configuration, there is no option to route the comparators to the timer. Is this configuration possible?
Solved! Go to Solution.
2025-07-01 10:34 AM
They would be listed in the interconnect section of the Reference Manual. There are some pathways from COMP -> TIM, but none that would enable encoder functionality that I can see. You'd need COMP1->CH1 and COMP2->CH2.
2025-07-01 6:43 AM
No, they can't be routed internally to a timer input. You can route them externally using two pins to connect DACx_OUT and TIMx_CHx.
2025-07-01 7:53 AM
Ok, thanks for the reply. Did you find this documented anywhere or do you just know from experience?
2025-07-01 10:34 AM
They would be listed in the interconnect section of the Reference Manual. There are some pathways from COMP -> TIM, but none that would enable encoder functionality that I can see. You'd need COMP1->CH1 and COMP2->CH2.