2016-10-14 04:14 AM
hi , i want to measure frequency using stm32f0.i didn't get how use input capture direct mode in timer refer
i am using keil MDK 5 and cube mx for programming . please help me . i didn't understand what to do ? i am new in stm32. thank you2016-10-14 05:43 AM
Input capture allows you to timestamp the edges of the input signal, from this you can deduce the period, and thus infer the frequency, right? The granularity of the time measurement is controlled by the frequency selected for the timebase. If your timebase clocks at 1 MHz there will be 100 ticks during a 10 KHz period.
2016-10-14 10:47 PM
thank you clive1 . can you please give example code or tutorial for input capture or reference manual for better understanding for me.
2016-10-16 12:41 PM
Have a look at the PWM input example. It's all in there. Frequency and duty cycle.