cancel
Showing results for 
Search instead for 
Did you mean: 

Ultrasonic sensors, input capture configuration

vault
Associate
Posted on March 30, 2013 at 17:19

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?

#input-capture
0 REPLIES 0