AnsweredAssumed Answered

Ultrasonic sensors, input capture configuration

Question asked by sh.roman on Mar 30, 2013
Hello,
I need to connect 4 Ultrasonic sensors to STM32f4. Basically I need to measure the pulse width on their output.
I tried to configure an interrupt  with TIM5 (32bit counter) for 4 channels and at each interrupt  switch to next channel, but it seems that only TIM5_ch2 (PA2) receives an interrupt.

Can TIM5 be configured to input capture at his 4 channels ?

How basically I cat configure such a task?

Outcomes