2013-07-30 11:33 PM
Hi,
I'm working with stm32f2. I need example code, to count time between two rising edge of GPIO. I read somewhere, that is possibile by appropriate timer's configuration without GPIO's interrupt. Can you help me?Thanks #pwm-input2013-07-31 05:37 AM
You'd use a TIM with CHx in ''input capture'' mode, have it interrupt on CCx and compute the delta of values latched in CCRx between one event and the next.
2013-07-31 08:57 AM
Or, try PWM Input mode, this way you get a 0-based delta.
Examples are in the FW library. Edison