title: using a timer to count pulses on STM32F7
body: <p>I have a question about using a timer to count pulses form a encoder (only one pin) I don't care about the direction.</p>
  
  <p>I'm tryning to use Timer 3, but I'm not sure how to set it up in CubeMx.</p>
  
  <p><a href="https://community.st.com/message/174554-using-a-timer-to-count-pulses-on-stm32f7" rel="nofollow noreferrer">picture and text</a></p>
  
  <p>I start it with: 
  HAL_TIM_Base_Start( mpEncoderTim );</p>
  
  <p>And read with: 
  count = mpEncoderTim->Instance->CNT;</p>
  
  <p>Hope anyone of you, have done this before, so you can give me a hint </p>
  
  <p>thanks in advance and best regards
  panduro..</p>