cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring the encoder function on Timer 2 and 3 of the STM32F767 Nucleo board not working

MinhTuanHua
Associate

Hello!

Problem: I am using 3 timers in the Encoder function on the Nucleo F767ZI board. The timers are TIM1, TIM2, and TIM3. The encoder function on TIM1 works perfectly. However, the encoder function on TIM2 and TIM3 is not working. They just count up 1 pulse, then down 1 pulse, then up 1 pulse again.

 

What I have done: I checked the physical connection, and they were working fine. I also tried swapping TIM1 and TIM2, and TIM was still working fine, and TIM2 was still not working, so I think there might be some problem with the firmware or when I configure TIM2. The configuration file (.ioc) is attached to this post.

 

Could you please help me with this problem? Thank you very much!

1 REPLY 1
TDK
Super User

This behavior happens if one line isnt’t hooked up. Verify pinout is correct, pins are free, and are connected to the header you are using.

If you feel a post has answered your question, please click "Accept as Solution".