cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F

omid hamdi
Senior

IS POSSIBLE CONNECT TWO TIMER IN ENCODER MODE SLAVE AND MASTER I NEED ENCODER MODE TIMER 24 BITY

5 REPLIES 5
KnarfB
Principal III

Yes. See AN4013 Application note STM32 cross-series timer overview and the reference manuals. Search for STM32 timer chaining.

Piranha
Chief II

It's possible, but I suggest learning reading, writing and forming thoughts and sentences first!

omid hamdi
Senior

I need connect pin from timer master to slave or can connect internally

I know is possible connect two bin encoder in master and slave and set divider

bout need try internally connection because no have free pin

I don't think so.

Encoder mode involves both counting AND direction. Direction can't be connected from master to slave.

You should use primarily the 32-bit timers (TIM2, TIM5). If they are not available, you should extend the counter in software - but the proper way is to sample the hardware timer periodically, relying on the update interrupt will lead to problems when the encoder oscillates at around the zero (over/underflow) point.

JW

Thanks for clarification. @Community member​ is right.