cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with TIM_EncoderInterfaceConfig

Ted Mao
Associate
Posted on January 04, 2018 at 17:33

Hello I am trying to use a STM32F4 Discovery Board to read an encoder and am having some difficulty. I have configured the pins and timer 3 and was planning on running TIM_GetCounter inside the timer 3 handler to see how fast its turning. However, when I call TIM_EncoderInterfaceConfig, the code runs, but never enters the timer 3 handler. If I don't call TIM_EncoderInterfaceConfig the code runs and runs timer 3 handler (but then I can't use TIM_GetCounter). How do I fix this?

0 REPLIES 0