Question
Problems with TIM input capture
Posted on October 11, 2016 at 19:08
Hello, I am having some difficulties with input capture on the nucleo64-r401re.
I manage to generate a PWM signal to a ultrasonic sensor, that replies correctly (checked with oscilloscope), however i do not manage to capture the returning data correctly it seems. The callback fires but the data it reads is always the same.Here is my code:http://paste.ofcode.org/wsXi8arKfbCxHGy3fBQBf9Any ideas to what I am missing?