cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 AND ENCODERS

sami
Associate II
Posted on April 15, 2013 at 09:42

Hello friends

I am confused where to wire my encoders to stm32f4 ; I have 2 encoders from 2 motors ,

After I read the manual is it possible to wire the 2 encoders to the same timer and can configure them individually ? or I need two timers ?

for example encoder 1 A to timer2 ch1 and B to timerch2

encoder 2 A to timer2 ch3 and B to ch4 (timer 2)

is that ok ? Or do  I need 2 seperate timers ?

Do you suggest a direct wirring of the endoders or should I use latches?

Thank you in advanced .

Esat

1 REPLY 1
Posted on April 15, 2013 at 13:38

Each timer has a single counting element, that pretty much limits the possible use cases right there.

The availability of different channel configuration likely permits the use of different pins to resolve other conflicts.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..