Skip to main content
Associate
Question

STM32H735 TIM2 encoder mode with Index

I’m using STM32h735 with TIM2 in encoder mode to interface with an encoder,.

The need is to count encoder pulses and reset Timer counters upon index signal, as can be done with stm32g474 using the encoder+index mode.

The problem is that previously mentioned mode is not supported by timer peripherals of stm32h735.

Someone has some ideas to obtain the desired behaviour?

 

1 reply

waclawek.jan
Super User

One way to circumvent this problem may be a DMA triggered by the index signal (e.g. using some otherwise unused TIM channel), which would copy a constant 0 from memory to TIMx_CNT.

Whether this, or any other similar idea, is viable, depends on the details of the application.

JW