cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g431 timer encoder mode master slave

omid hamdi
Senior

any one can help me how to used 2 pcs 16bit timer for make one 32bit on encoder mode

need one example for setup timer

1 REPLY 1

> any one can help me how to used 2 pcs 16bit timer for make one 32bit on encoder mode

You can't. Encoder changes DIR (direction of counting), and that is not propagated through the TRGO-TRGI mechanism to other timer.

So either use 32-bit timer, or do it software - sample the timer regularly and count over/underflows.

JW